PSC , AVR and HS 422 trouble
I have almost tried everything..
I am Using an AT90S8515 with a BASCOM avr code (BASIC) and a bunchof HS-422 servos..
Even though green light on the PSC blinks at the exact intervals according to the code, the servos dont move to the positions..
They get stuck at probably the default position and dont budge..
The code is :
The crystal is fine the circuit is fine as the green light blinks.. the power should be fine because I am using 6 pack NiCad 1500mAh batteries or a 10 Amp variable voltage source..
Please help ..
Rao
I am Using an AT90S8515 with a BASCOM avr code (BASIC) and a bunchof HS-422 servos..
Even though green light on the PSC blinks at the exact intervals according to the code, the servos dont move to the positions..
They get stuck at probably the default position and dont budge..
The code is :
Dim Ch1 As Byte Dim Pw As Word Dim Pw1 As Byte , Pw2 As Byte Dim Ra As Byte Dim Car As Byte Dim Ba As Byte Ra = 7 Ch1 = 1 Ba = 0 Car = &H0D ' HEx representation of Carriage Return 0D Print "!SCSBR" ; Ba ; Car Do Pw = 350 Pw1 = Low(pw) Pw2 = High(pw) Print "!SC" ; Ch1 ; Ra ; Pw1 ; Pw2 ; Car Waitms 2000 Pw = 700 Pw1 = Low(pw) Pw2 = High(pw) Print "!SC" ; Ch1 ; Ra ; Pw1 ; Pw2 ; Car Waitms 2000 Loop
The crystal is fine the circuit is fine as the green light blinks.. the power should be fine because I am using 6 pack NiCad 1500mAh batteries or a 10 Amp variable voltage source..
Please help ..
Rao
Comments
And all of a sudden the motor on channel 1 starts to run to a position it cant reach..(when I press reset on PSC)
Probably my problem was that I didnt make common ground for motor and uC and PSC...
Do you guys think Hitec HS 422s have pulse widths different from other servos?? i.e. not the usual 1ms-2ms Pulse width..
I am trying to find out on the internet if it is so.. if someone else has the link or the data, please help me out..
Rao