I was working on an object tracker with a sensor board on a servo. The servo is controlled by a picaxe. This is the program:
main: servo 0,150 pause 20 goto main
(its actually more, but for testing i limited it to these rows) Now when i attached the servo it somehow went crazy and keeps spinning around,... So i thought, maybe its the servo.. lets try another one. Bam.. same thing.. keeps spinning around.
I connected both servo's to another controller board (from my hexapod bot) and they do the same thing, keep spinning around. So i think i somehow broken the servos but i dont know wth i did wrong.
They didn’t do that when i bought them I already used them in my hexapod bot, but only after using them on my PICAXE this happened. So i think the logic circuit is fried, like Rik said.
Only thing is, i don’t know why… I use 4.5v on the picaxe and the servo is connected to the same power as the picaxe. The servos should be able to run at 6V.
Should i have used a resistor between the PIC output and the servo signal wire?
Ok, it seems i should have used a resistor between the PIC output and servo signal wire. And also a seperate power source and only use ‘servo’ to initialize the servo and then use ‘servopos’ to change the position.
Probably typical beginner mistakes Cost me 2 servos but i will never forget it