3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Balancing Robot

Balancing Robot
This is a very simple robot that uses a simple switch as a sensor and stands on only two wheels with inverted pendulum mechanism.
When the robot is going to fall the motor starts and moves the robot to the direction it is going to fall, so the motor torque about the center of gravity that is higher than the motor makes the robot balanced.


 
Remove these adsRemove these ads by Signing Up
 

Step 1Things you need

Things you need
«
  • Motor.JPG
  • Shaft and Wheels.JPG
  • Battery Holders.JPG
  • Switch.JPG
  • Wires.JPG
  • Position of Battery Holders on the Neck.JPG
  • Sensor Switch.JPG
  • Button Cell.JPG
  • Nail.JPG
  • last photo ←
»
To make this robot you need following parts and tools:
small electric motor
some gears
(or a motor with gearbox)
a shaft
two wheels
some sheets of plastic to make bearings and the robot neck
two battery holders
4 AA batteries
one button cell
one SPDT (single pole double throw) switch with a metal lever
one toggle switch for the on/off switchs
one nail
some wire
soldering iron
some glue
« Previous StepDownload PDFView All StepsNext Step »
216 comments
1-40 of 216next »
Jul 22, 2011. 5:34 PMDavid97 says:
I built one of these and my one doesn't tip over. It is about 11 cm in height. Also mounting the switch out further from the axel helps it is 1.5 cm from axel from the cloest edge on switch. Hope this helps to get your one working well.
Aso it is a good idea to have the hight of switch adjustable. As I spent 2 hours adjusting the hight.
Dec 22, 2009. 11:44 AMAlKaswa says:
where would i find a single pole double throw switch
Jan 6, 2010. 3:24 PMmilsorgen says:
 aka radioshack

ive also pulled one out of a computer, and several other interesting looking switches. mostly out of the optical drives, front panels and a somewhat of floppy drives, but if you keep your eyes open...
Jul 21, 2011. 8:25 PMben_xman says:
I've also noticed that radioshack has accelerometers. I wonder if you could use those too? Might be more arduino based than BEAM though....
May 7, 2010. 7:07 PMChowmix12 says:
try the buttons from mouses. they are conveniently SPDT, (not needed) but they have no lever, i've been able to fashion ones from paperclips and other simple materials.
Jun 1, 2011. 4:41 PMTigrisLi says:
Where did you get the wheel with the shaft??
Jun 4, 2011. 12:20 PMTigrisLi says:
ok, thanks!
Dec 28, 2010. 9:19 AMladieslilman98 says:
Add a second sensor, the motor wont work as hard, and it will stay balanced longer.
Nov 25, 2010. 2:23 AMtobyscool says:
i made the hugest mistake i shorted the batteries EPIC FAIL so my battery bursted
Aug 22, 2010. 8:43 AMExocetid says:
This robot is great and I really like how you did the position sensor, extremely clever and what "Instructables" is all about. That said, you might want to change the switch on your sensor, which basically just gives you "Bang-Bang" control and hence the instability, to a potentiometer or variable resistor. That may involve putting an amplifier in there, but we EE's have been allowing ME's to use electronics for quite some time now ;-) (mechatronics)
Feb 4, 2010. 2:31 PMForgetMyProfile says:
It seems to me that the center of gravity is high which causes the robot to have to react faster than it is capable of due to the circuitry delays, inefficiency of the wheels to move as quickly as needed.

I have two Segways (a blast, by the way) and they stand up on their own. It's fun to watch them "dance"..

I literally had to go to the factory in NH to take a class on how to ride these models. Yes, long time ago.

What they suggested this: to stabilize my units when first riding it, add some weights to the saddle bags on either side. It not only helped me when learning, it helped the Segway stay upright without excess movement

So what I'll seggest (lol) to you is this: get the center of gravity lower by moving the batteries down or adding weight to the bottom of the plastic. That should allow the bot to stay upright without falling over.

LET ME KNOW HOW THAT WORKS.

Robb
Grand Rapids, MI
May 27, 2010. 12:23 AMiMakeItHappen says:
 Thats really cool and a good idea, and i have an alarm clock like that, it has a very dense material on the bottom with a rounded edge, so to turn it off u just push it back, then it pops back up.

but why do u have 2 segways, its pretty cool, i just dont understand y u have them.
May 27, 2010. 2:05 AMForgetMyProfile says:
Originally, I bought the two Segways for advertising purposes.

My intention was to hire good looking college gals to ride them around with our company logo on the side of the saddle bags, answering questions about our business and handing out literature.

Great marketing idea, but have not had enough time to devote to the project.
Jan 7, 2010. 7:01 PMRobot Lover says:
  I like this. Reminds me of my youth, building a line following robot with a car battery and two window regulator motors from an old Lincoln.
  It would be interesting to try it with tilt switchs (**MERCURY is BAD kids**) and perhaps make two stages of power, voltage divider between cells for those times when it tilts beyond a certain range the additional voltage is switched on.
  Also would be neat to try a magnetic pendulem with reed switchs.

Good Job.
May 7, 2010. 7:04 PMChowmix12 says:
but you would need a spdt tilt switch... i think this switch is better because of its immediate response and its adjustable. You can't adjust the force of gravity on the tilt sensor...
Feb 13, 2010. 11:28 AMstephenniall says:
Mercury is Cool !
Mar 15, 2010. 12:46 PMl33tm4s73r says:
lolz
Feb 13, 2010. 1:57 PMRobot Lover says:
it's true.
Apr 29, 2010. 6:18 PMratgod says:
Thats pretty good considering their is no microcontroller doing the balancing, its a neat simplistic design.

excellent instructable.
Apr 2, 2010. 5:14 AMlothartje says:
nice music :)
Mar 12, 2010. 10:27 AMgodscountry says:
this is interesting,another way to balance on one or two wheels without the high cost,if perfected,it might make for some fun toys.
Feb 22, 2010. 4:34 PMcupnoodles2 says:
its pretty nice i made one myself but its not working that great lol
i think its because i only used two gears one on the motor and another one on the driver shaft so there's no mechanical income but im not sure if its that or it is just that the batterries are not fresh enought :O

thanks for the instructable and i apologize for my bad english
Feb 22, 2010. 4:59 PMcupnoodles2 says:
honestly i know that there's not enought torq lol since i didnt used a third gear well im remaking it xD
Dec 25, 2009. 9:00 AMdingo27 says:
This is awesome! So simple, but i wouldnt reccomend soldering a battery, it may explode 
Dec 7, 2009. 10:23 AMMikishiwa says:
will it be possible to make this robot drive straight without balancing in one spot continuously? For example using this www.instructables.com/id/Tilt_Sensor_cheap_easy_nontoxic/ as a switch, so it will be able to balance in two directions an maybe drive 2-5 metres without falling.
Dec 2, 2009. 12:42 AMchengtianzheng says:
Here, the best design!
Dec 2, 2009. 12:39 AMchengtianzheng says:
nice working,thank you!
Oct 27, 2009. 8:08 AMewiemers says:
The problem isn't the center of gravity, it's stability. The switch will work as a measurement device so long as the robot is VERY close to vertical. If you get much past that narrow threshold, the robot doesn't add more torque to the motor to compensate. If you want it to be more stable, you'll have to use some analog device to measure the tilt-angle and another circuit to control motor torque through input voltage. A simple sensor would be a multi-turn potentiometer.
Sep 9, 2009. 2:38 PMBinary Ninja says:
For a future robot you may want to put the weight lower so it has a lower center of gravity.
Sep 12, 2009. 2:39 PMrimar2000 says:
No, the center of gravity must be higher. You played to hold a stick upright in the palm of your hand? The longer, is easier to keep it vertical.
Sep 22, 2009. 9:28 AMTwistedmindZ says:
well the higher the weight is the more torque it creates for the motor to overcome to stay balanced. When you are holding a stick upright torque isn't a problem relative to your size. So i too think lower center of gravity would make it more stable.
Sep 23, 2009. 7:38 AMrimar2000 says:
I don't agree with you. Sorry I can not do the test, but I am sure.
Sep 22, 2009. 10:14 AMrimar2000 says:
Well, but, have you tried?
1-40 of 216next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
52
Followers
11
Author:vahid_you2004(Visit dihav.com)
I'm a mechanical engineer, and I like computer programming, mechanics, electronics and specially the robotics.