Hi, i am new in arduino. I tried to create a program based on the tutorial to control the servo. Initially, when i plugged in to my pc and download the program. the servo is working properly.
Then I connect the arduino to a battery, the servo is continuously rotating.
Can anyone help me solve this issue?
Thanks
Disconnect the battery from the servo.
The servo is not connected to the battery. the servo is connected to the 5V and ground of the Arduino. I connected the 9V battery to the power supply jack of the arduino.
Depending on the battery type (unknown)
and the code (unseen)
and the wiring (unseen)
And the servo type (unknown)
Arduino's pins can only supply a certain amount of current and you may be exceeding that or the battery is insufficient for the purpose.
You might want to READ THIS then you can post some crucial information.
Bob.
OK, disconnect the 5V from the servo.
It shouldn't be there in the first place, you should have a separate supply for the servo.
How is this an "Installation and troubleshooting" topic?
Thanks Guys, I will try to check and supply different power supply to the servo.
And I will go to project guidance topic.