Instructables
loading
loading

Hack a TowerPro Micro Servo to Spin 360 / Continuous Rotation

Featured
Picture of Hack a TowerPro Micro Servo to Spin 360 / Continuous Rotation

Hey guys! Since I've got my servos, I've had two that I set aside for hacking. So, coming to my favorite website for help, I was sorely disappointed when I couldn't seem to find any instructables on how to mod a micro servo. After viewing a few, I went to my workbench and got to work. I was very surprised when I opened up my micro servo and found it to be slightly different then the bigger servos. So, I decided I would make a guide on how to hack into your servo! So what are we waiting for? Lets get started.
But then you ask, doesn't this defeat the whole purpose of a servo? Well, no. We just utilize the gearbox, so that we can use this motor as a drive motor for a robot. So now, let's really get started!

 
Remove these adsRemove these ads by Signing Up

Step 1: Ingredients:

Ingredients needed: (no, not food ingredients unfortunately)

  • Rotary tool or a utility knife
  • Very small screwdriver (phillips)
  • Soldering pencil* and solder
  • Wire snips
  • Needle noes pliers
  • 2x 2.2k resistors
  • Helping Hands (AKA 3rd hand) BTW check out this awesome instructable on making helping hands. Thanks rstraugh!

    &

  • 10 minutes

Step 2: Disassembly

Picture of Disassembly
IMG_2286.JPG

First remove any servo arms, legs, and limbs from the servo.
Then, using a very small screwdriver, unscrew the four screws on the bottom of the servo. Be very careful not to lose these.
Watch the video for the disassembly of the gears. The top main gear my be hard in coming off. You can see I had a little trouble getting it off in the video.

Clip #285 from AJ on Vimeo.

1-40 of 53Next »
Romninja4 months ago

Hey! I just did this in 20 minutes. It works well. Here's code to make it turn in one direction or the other. Can be uploaded directly.

#include <Servo.h>
Servo myservo;
void setup()
{
myservo.attach(9);
myservo.write(0); //this goes backwards

//or do "myservo.write(180);" to go forwards
}
void loop() {}

Hey! Do you know also how to stop the motor for a couple seconds and then continue with turning.

Romninja Romninja4 months ago

Oh... You probably want to power this from something else than usb power!

I think my ch340 on board chip couldn't handle the current draw and it died.but i can probably still program that same arduino using a cp2102.

I used 1kOhm resistors and it works. How can I make it turn continuously for only 1000msec? I think the original had only ~180 degrees of rotation. So it wasn't possible to turn it for 270 degrees. I suppose doing the hack it isn't possible to rotate for 800 degrees exactly, right? (unless I measure the msec)

The solution was easy:

myservo.attach(9);

myservo.write(0);

delay(1000);

myservo.detach();

:D

RHED5 months ago

help, how can i run it on reverse. using your test code?

im using the test code to open my sliding door.

now, i need to run it in reverse to close it.

FoamboardRC (author)  RHED5 months ago
Just try changing servoPosition to something else! I don't know I've never actually tried it.
Cengizhan_195 months ago

Hello,

I have the same servo and I want it to spin 360 degrees. I just didnt understand collar part of it. Where did you take it from? Can you explain it a little bit more in details please. I have to finish my robot for a contest in my school.

FoamboardRC (author)  Cengizhan_195 months ago
I'm not really sure what's the problem. I even made a video showing exactly where the collar is and taking it off.

http://vimeo.com/58424222

ıs it a must step? I mean what if I just skip this part because I saw some other videos in the web and the only thing they do is soldering the resistors to the pcb and cutting the mechanical stop on the gear.

Here is a video:

FoamboardRC (author)  Cengizhan_195 months ago

Their pots may not have the ring. On mine it had a ring that stopped the gears from spinning around. If you don't have it then don't worry about it. If you do then just do what i said.

so ı should look at the potentiometer for that ring right?

And one last thing ı have 2k resistors. Will those ones work for that

FoamboardRC (author)  Cengizhan_195 months ago

Yeah you should be fine with two 2K resistors.

thank you ver much

FoamboardRC (author)  Cengizhan_195 months ago
Hope that helps

Nice! Quick hack, worked with my FS90 micro. There was no removable collar to limit the pot, so I just cut it. Thank you!!

Your videos and pictures was very helpful. I'll probably be using this guide several more times!

FoamboardRC (author)  Frederik-WillemF7 months ago
Awesome! I'm really glad you liked it!
OddTodd1 year ago

I must commend your efforts sir, for this is by far the best tutorial on the subject I have been able to find. The majority of alternatives just remove the internal board as a whole, rendering their efforts useless to me as my project requires that the ability to control the speed [via PWM] remain intact. To summarize, thank you.

FoamboardRC (author)  OddTodd1 year ago
Thank you I'm so glad I could be of help to you. Good luck with your project!
agrgic131 year ago

I'm new in electronics, but this two resistors on pictures are 22 ohm, not 2,2k? Am I wrong?

FoamboardRC (author)  agrgic131 year ago

2.2k ohm resistor is 2,200 ohms!! 22Ω wont work!

Hi, great video thanks helped me a lot, I jwanted to share a tip for those of you that does not have a dremel, you can use the soldering pencil to get rid of the mechanical stop, it works perfect.

brunoxyz1 year ago
Does this hack still allow the control of direction from the code?
FoamboardRC (author)  brunoxyz1 year ago
No
actually it works! you can change the direction of rotation, speed and even stop it using arduino. Just tried it.

thanks for the instructable, the two resistors method works like a charm.

FoamboardRC (author)  brunoxyz1 year ago
Oh sorry I misunderstood you I thought you were asking if you could use it like a regular servo- my bad. It can't position itself because the potentiometer is gone.

Really? I've never really got into the code part for that would you mind sharing your code with me?

Thanks!
hey no problem, I figured you misunderstood my question. The code is very simple, All you need to know is that the servo accepts values from 0 to 180 and that at 90 it won't move and the farther you move from 90 in either direction it will go faster in that direction. It makes sense since it's trying to catch up with the potentiometer that's not working anymore.

Check out this example, they use a potentiometer but you can just manually or dynamically assign different values too.

http://arduino.cc/en/Tutorial/Knob
FoamboardRC (author)  brunoxyz1 year ago
Haha ok thanks I haven't used a servo in an Arduino project for almost a year now so I'm a bit rusty :D.

Thanks!

Happy Hacking!
sanketrege1 year ago
Here's a shortcut that worked for me: only break the plastic stopper on the top most gear (as shown in Clip #313). I didn't have to remove the pot nor the black sleeve thingy. Use the following code:

#include

Servo myservo; // create servo object to control a servo
// a maximum of eight servo objects can be created

int val = 0; // variable to store the servo position

void setup()
{
Serial.begin(9600);
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}


void loop()
{
if ( Serial.available())
{
delay(1000);
char ch = Serial.read();
switch(ch) {
case '1':
myservo.attach(9);
myservo.write(180);
break;
case '2':
myservo.detach();
break;
}
}
}

by writing 180 degree position you make the servo make infinite ccw rotations and by using the detach command you make it stop!

I can't get it to rotate in the cw direction though..If anyone has a solution please let me know!
fenix8k2 years ago
xD i sugest u to try to get some smd components the resistors are veeeeeeeeeeeery cheap :P i buy a "kit" 100 of all values from 0 to 100kohm 25$ us dolars they are like 5k resistors :P
FoamboardRC (author)  fenix8k2 years ago
Okay, once I get some money :D
fenix8k2 years ago
nice work but i can suggest u to use SMD resistors :P i do the same to a copy of this servo and i add a second pivot and almost i can t close it :P with smd resistors (1208) that part would be tiny :P
FoamboardRC (author)  fenix8k2 years ago
Yeah, that is a good idea, the only problem is I don't have any SMD anything!
e13jimenez2 years ago
The whole point of a servo is that the unit knows its position precisely. The 5k pot was the sensing device that tells the arduino how far the motor has spun thats why there's three wires (power ground and signal). By removing it pot from the equation its now just a little motor in a gearbox. The 'servo' now has no clue what its angular position is. Idk how cheap these things are, but I wouldn't recommend running this hack unless you're really in a pinch. You can't use the servo library with this.
FoamboardRC (author)  e13jimenez2 years ago
Well the whole point of this instructable is to have a strong motor that spins endlessly. Yeah, the servo library doesn't work, but, that not what it's for. What this whole thing is for is like for driving the wheels of a smaller robot. Just look around, and you will see tons of smaller-sized robots that use these hacked servos for a drive motor. All the built-in gears eliminates the need for having to buy a extra gearbox. The servo when spinning endlessly makes for a pretty strong drive motor.
Actually, the servo library does still work.. The arduino based robot I made awhile back, used the stock servo library, and controlled 3 servos. (assigned as servo1, servo2, and servo3 off pins 8, 9, & 10. then simply attaching them as servos.. You can then control them as percentages of how fast you want them to spin, in each direction.. ( map(val, -100, 100, 0, 179) for -100% (full backward) to 100% (Full forward) )..
FoamboardRC (author)  Gelfling62 years ago
Well, thanks! I don't even know what the servo library is =). And yes, I didn't use the percentages when I was testing this.
For those not familiar, look under File -> Examples -> Servo -> Knob .. the code would be similar to this example, but assigning the -100 to 100 mapping to the full backward (0) to full stop (89) to full forward. (179).. Now, granted, -100 to +100, is a pretty wide range. Usually steps of 10 each direction is reasonable. as long as 0 means stop..
The raw code of the servo library (the included Servo.h), does about the same, mapping the 0 to 179 to the ###-Hz pulse out to the servo. (If you've ever tinkered with the Parallax Basic Stamp, their code directly pulses the driving pin from the MCU out to the servo at the exact #-Hz)..

I've converted Futaba S3004's to continuous rotation, because the cheaper Futba servos Parallax uses for their BOE-Bot, had managed to wear out the motor (the Electric motor inside) bearings. Nothing makes you cringe worse, than hearing a servo motor sqealing. ARGH!
 
Further to what Electricloser says, this method has the advantage that you can control the speed of the motor by using the standard servo control signal.  Mid-point (nominally 150) is stationary.  Less than that and the servo will drive in one direction; greater than that it will turn in the other. 
The greater the difference between the control signal and the mid-point value, the faster the motor will run because of the acceleration gradient set by the control circuitry.
Different manufacturers / models will give a differing number of speed steps and from my experience, digital servos give a greater number than analogue ones.  (The best I've had was about 15 each way.)
I'm not familiar with the Arduino servo library but as long as you can set the pulse-width from it, you can control the speed of servos modified in this way.
1-40 of 53Next »