ich nehme an du hast KEIN "enable interrupts" drinne!
Druckbare Version
ich nehme an du hast KEIN "enable interrupts" drinne!
der gesamte Code lautet:
'Test zur Ansteuerung von Servos
Config Portb = Output
Enable Interrupts
Config Servos = 1 , Servo1 = Portb.1 , Reload = 10
Servo(1) = 150
20 Servos mit einem ATMega8
http://www.4finger.net/~smay/avr/servomaster/
http://www.4finger.net/~smay/avr/servotester/
Gruss
Michael
@x-ryder
brauch ich den Befehl:
ENABLE INTERRUPTS auch wenn ich ein
Servo ansteuere?
jepp (ich bin ein nicht sichbarer leertext)
ok danke das werd ich mal probieren
Moin, habe diesen COde:
$regfile = "m8def.dat"
$crystal = 1000000
Config Portb = Output
Enable Interrupts
Config Servos = 1 , Servo1 = Portb.1 , Reload = 10
Servo(1) = 150
Das Servo tickert nur so - woran kann's liegen?
BJörn
Hi Björn,
ich weiss es auch nicht genau, aber ich glaube du solltest noch folgendes unten an deinen Code anbringen:
Do
Loop
Und gib anstatt "config Portb = Output" einmal "config Pinb.1 = Output" ein!
Ich hoffe ich konnte dir helfen.
Muss das leider nochmal aufgreifen - funst nähmlich immer nocn nicht.
Nicht das geringste Zeichen am Servo.Code:$regfile = "m8def.dat"
$crystal = 7372800
Config Portb = Output
Enable Interrupts
Config Servos = 1 , Servo1 = Pinb.0 , Reload = 10
Do
Servo(1) = 150
Loop
Gruß, Björn
Hast du mal versucht Reload auf 20 Millisekunden hochzusetzen ??
Manche Servos wollen nun einmal die 20 Millisekunden Pause haben ( schon selbst ausprobiert ).
MfG Kjion