
|
INFO - FAQ - CC2-Forum - CCPro-Forum |
|
||
|
> Hello Gerd, > To use servos on the DA ports you must change the ports into servo mode. > To power the servos you must use a secondary power supply, do not use the +5V from the application board, the servos pull to much mA. > Remember to connect all the GND's. > I have listed a program for you to try, > Greetings, > Drifter2006 > > '**************** I/O PORTS ****************' > define servo1 da[1] > define servo2 da[2] > > define lcd_backlight_off port[16] > '*******************************************' > '**************** VARIABLES ****************' > define position_servo1 byte[1] > define position_servo2 byte[2] > '*******************************************' > '**************** CONSTANTS ****************' > > '*******************************************' > '****************** SETUP ******************' > print"#ON_LCD#"; : print"#INIT#"; : print"#CLR#"; : lcd_backlight_off = 0 : print"#OFF#"; > print"#ON_CONFIG#"; : put 1 : print"#OFF#"; '<<-- Switch the da ports to servo mode' > '*******************************************' > '***************** PROGRAM *****************' > #start > print" Enter position servo 1" > input position_servo1 > servo1 = position_servo1 > > print" Enter position servo 2" > input position_servo2 > servo2 = position_servo2 > > goto start > > > > Hallo Leute! > > > > Ich möchte ein neues Projekt realisieren. 2 Servos sollen Heizungsklappen steuern. Leider bin ich fast ein Anfänger und habe die Sig.-Leitung des Servo an DA1 angeschlossen und die VCC des Servo an 5V. > > > > Wenn ich nun ein zahl zwischen 1 und 255 auf den DA1 sende tut sich nichts, nun ein leises surren. > > Was mache ich falsch? Ich habe von Treibern gelesen. Wer kann helfen? > > > > Gruß Gerd |
| Antwort schreiben |