Servos..... (quick question??)

hax

New Member
Hi all,

I have some very simple code running on an 08M:



moveservo:
wait 1
'high 2
wait 1
servo 0,200
wait 1
servo 1,100
wait 1
goto moveservo


If I run the code as-is, the servo pulses are continuous, and the servos are held in position. If I "un comment" the third line "high 2" the servos don't work...... Scratching my head as to why this is the case.....Since the servos are connected to pin 0 and pin 1.... nothing to do with pin2.....
 

hax

New Member
I just tried high 2, wait 1, low 2, and any time pin 2 is high, the servo commands stop working. It's an 08M version 2 firmware (old) is that a bug in the firmware?
 

hax

New Member
Ah, never mind, brain fart. The full story is that I'm running output 2 to a relay, which is inadvertently disconnecting the servo pin in my circuit... thought I was going crazy... derp!
 

hippy

Technical Support
Staff member
One advantage of using SYMBOL defined pins is they can help make the code clearer without adding comments; "HIGH POWER_RELAY" would perhaps have helped here and having named servo pins can aid identifying which you are moving when there are multiple servos.
 
Top