Tower Pro SG90 Servos stop working with Arduino Uno

Hi,

I created a small project that controls servos using a joystick through an Arduino Uno board. My code compiles and uploads to the board without any problems. However, once I power on the servos (using a 9 volt battery), they jitter for a few seconds before completely dying. When I disconnect the 9 volt for about 30 seconds and reconnect it, the servos do the same thing. I have no idea what is going on here.

I think its also worth mentioning that I had built this project about 6 months ago but its been sitting around since then. When I first powered on the Arduino and servos today, it functioned as it did 6 months ago. But I uploaded a new code to the board, which didn't work as planned, so I RE-uploaded the code that was previously on the board (from 6 months ago) since I still had it on my computer. After doing that, I started having the issues. I have updated the IDE since but it has not helped.

It acts like the 9 volt battery is drained and that causes the issue of servo failure but I've checked the power and the battery has a good charge so this likely isn't it. As I said, the code, which is the same code that worked fine 6 months ago, still compiles and uploads to the board just fine, as it did before, but for some reason I am now having all these problems.

Maybe the servos have gone back since i last used them? Maybe the battery connection is messed up? I'm open to any suggestions.

If anyone has any idea as to what the issue could be I would really appreciate any help.

It seems I've solved my own problem.

After using a new battery everything works just fine. Not sure what was wrong with the initial 9 volt battery but using a new one solved the issue.

Hopefully in the future others can find this post helpful :slight_smile:

Hi,
Welcome to the forum.

What sort of 9V battery are you using?
One like this?

It will not be able to supply the current needed, as you have found.

If you are powering the servo through the 5V pin of the UNO, then be warned it is not designed to be used by a servo.

Can you describe or post a picture of your project please?

Tom... :slight_smile: