Hey there,
i tried to supply around 5 V for the Servo with a NPN. The base current is controlled by the arduino. And the servo of course too.
To check if everything works fine, i wanted to let the Servo turn left, wait, then turn right, and so on. But all it does is turn to one direction and it keeps wanting to turn.
Any suggestions?
Well, if you are trying to switch the servo power on the ground side of the servo, what you observe is typical. Is the servo also starting to get warm? When you open the ground side of the servo, then the current supplied to the servo will try to go to ground thru the servo control wire connected to the arduino. Could damage your servo/arduino.
Thanks,
sorry, but i don't fully get what u mean. Is the whole circuit wrong?
jacko91:
Thanks,
sorry, but i don't fully get what u mean. Is the whole circuit wrong?
Well, is it working for you? Also it looks like you are trying to power the servo from a 9v battery. If so I hope the battery runs down before it kills your servo.
Well that's why i use the npn, to supply 5 V to the servo. Could u be more specific, with the circuit?
Is there maybe someone who had luck with a servo powered through a npn?
Hey,
i just made another discovering trying to figure the problem out.
the servo starts also turning when i only plug in both power lines.
Also If i connect directly 4 batteries ( total voltage of 5,5V) everything just works perfect.
But when i connect it to the npn/9V battery power supply it still just turns in one direction and keeps wanting to turn.
I measured the voltage going in the servo (5,2 V) so that can't be it. And since it is turning it should be enough current as well. I have the arduino gnd and the gnd of the 9 v battery both connected to the emitter.
Any idea?
thanks