How to hack a servo for continuous rotation - TowerPro MG995 by meanpc
Featured
Digital-Metal-Gear-Servo-48g-MG995.jpg
Why would you want or need to modify your perfectly good servo?  It turns out that servo motors are great little gear motors that can connect directly to a microcontroller without the need for a motor driver circuit.  The problem is that servo motors are made to turn between 90 and 180 degrees, for turning the front wheels of a remote control car, turning a rudder, controlling ailerons, etc.

But we want to use these cheap high-torque motors to turn the wheels on our robot.  This instructable will show you how to make your servo spin 360 degrees.

Why the TowerPro MG995?  It's cheap and powerful.  At 4.8 volts, the MG995 produces 138.9 oz/in of torque and spins 360 degrees in 1.2 seconds.  The MG995's are all over eBay for just under ten dollars apiece.  I might not use these to steer a $1,000 RC plane, but they are terrific for powering the drive wheels on your robot.

I highly recommend watching the YouTube video first so you have an overall view of what you will be doing in this project.

 
Remove these adsRemove these ads by Signing Up

Step 1: Parts and tools

How to hack the mg995 servo-35.jpg
Parts and tools

MG 995 Servo
Two 2.2k ohm resistors

Soldering iron
solder
sponge
Needle-nose and diagonal pliers
Flat and phillips head screwdrivers
Helping hands
Electrical tape

**Optional - for testing purposes
Arduino or microcontroller of your choice
3 jumper wires
skootles says: May 1, 2013. 6:16 PM
Note for others: One problem I had came during the re-assembly. The right-most gear in this picture has a pin on top and for some reason mine came loose when putting it all back together, causing the gear to become dislodged and the motor to not work correctly. I had to open it back up and push down on that pin to make sure it was secure.

Other than that, everything went perfect. Great guide!
cobourgdave says: Apr 4, 2013. 7:40 AM
Just saw this in April 2013, and I liked your approach. Nice tutorial, clear and concise. Would suggest that a video camera on a tripod would have made the images a little more stable, but what the heck, it WAS viewable. Nice job, hope to see more
radiogareth says: Apr 1, 2013. 4:25 AM
Nice glossy hack, well done :-)
I found there was space inside to just remove the potentiometer from its drive shaft, leave it in the center of its travel, tape it up along with the metal stop pin and fit it all back inside the servo in case I needed to de-hack it later. Only problem is each servo may have slightly different 'middles' (dead zone), but you could re-assemble the gear train, send it middle pulses and adjust the pot until it stops. HTH :-)
Gareth
Robin Capehood says: Nov 17, 2012. 11:48 PM
Din't work. Its still doing pulse rotation.
jduffy54 says: Oct 16, 2012. 2:56 PM
I would just like to comment that you can have more than one line per step. Mine are a little long, but most of these steps are one sentence. My internet is slow, so this took like 20 minutes to see the whole instructable.
meanpc (author) says: Nov 1, 2012. 12:46 PM
Dial-up?
jduffy54 says: Nov 1, 2012. 2:06 PM
No, regular internet. It's not peticularly fast, but its not bad. Main problem was the gazillion steps. Would have helped it there was more than a line of text per step
meanpc (author) says: Nov 2, 2012. 12:14 AM
Yeh, I can see how that would be annoying. I'll keep that in mind next time.
Pandalo says: Nov 1, 2012. 12:17 PM
What if i'm not using an arduino? I'm new to servomotors, and i'm about to hack 4 of these pieces. Whats the pulse modulation for these babies when hacked?
meanpc (author) says: Nov 1, 2012. 12:45 PM
I don't know, but I googled it for you and this was the best I could find:

http://www.societyofrobots.com/robotforum/index.php?topic=5062.5;wap2
rc jedi says: Aug 27, 2012. 8:24 PM
the drive on the 995's are very robust, but the driver setup buzzes, so they are a great choice for your project. the 996 have better driver circuit, i have used both for some time. servos are so cool. great pictures, thanks for showing it.
meanpc (author) says: Aug 28, 2012. 5:22 PM
The motor seems to be strong and the gears are metal, so I think it should be pretty robust. Some of the negatives I have read on the net about the MG995 were more on the build quality - especially the quality of the connections of the wiring.

I think they will make good drive motors for a robot though.

Thanks for taking the time to comment!
jwolski1 says: Aug 23, 2012. 7:04 PM
Great job! I just did this with a futaba s3003 controlled by my arduino uno. I didn't want to do the soldering, so I instead just set the pot near the middle. I can still use servo.write(180) and servo.write(0) to go in either direction. To stop, I just do a server.detach().

Thanks for the idea!
Sandisk1duo says: Aug 20, 2012. 12:29 AM
Is there a way to hack the servo in a way that allows you to read the value of the potentiometer?

Thanks!
meanpc (author) says: Aug 20, 2012. 12:35 AM
I don't see why not. Couldn't you just hack the potentiometer so that it can rotate 360 degrees, send 5v in one lead, then send the other lead to an analog input on an Arduino or whatever microcontroller you are using? You can test the potentiometer before hand and can tell exactly what position the potentiometer, and thus the connected motor are in. Would be relatively simple I think.

The only tripping point might be that the wipers in the potentiometer would get worn out really quickly, depending on the duty cycle of the motor. Remember the contacts on slot cars back in the day? I imagine the wipers would wear out in similar fashion.

A good idea though, you should try it.
amandaghassaei says: Aug 19, 2012. 2:36 PM
cool, thanks for posting, I'll have to try this sometime.
meanpc (author) says: Aug 20, 2012. 12:26 AM
Thanks for looking and commenting. Just checked out your instructables - WOW.
PeckLauros says: Aug 19, 2012. 4:25 PM
Good tutorial and nice pictures.
meanpc (author) says: Aug 20, 2012. 12:25 AM
Thanks! I have 4 of these servos, and hacked the first one the other day. I decided to make an instructable with the second. The pictures are still captures of the video my daughter took .
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!