Single Motor Bot
![main6.jpg](/proxy/?url=https://content.instructables.com/FOI/PK4W/IJWUUW2K/FOIPK4WIJWUUW2K.jpg&filename=main6.jpg)
The single motor bot is straightforward little simple bot that is a great stepping stone for learning robotics. I choose the term "Simple Bot" very intentionally.
Simple Bots are a style of robotics I have come up with that incorporate the following guidelines:
They need to be able to be quickly and easily manufactured with readily available items.
They need to be easily understood.
They need to be mobile.
They need to be autonomous.
They need to be built in such a way that it can later incorporate more
complex logic and/or be used as a fundamental element of a more complex
organism.
This 'straight forward' Single Motor Bot is a classic example of a Simple Bot. It is like a robot in many ways, but lacking in intelligence, and responsiveness. Nevertheless, bots like these are great springboards for jumping into the wild world of robotics. If you can build this, you are a long stride towards building your first full-fledged robot.
Check out my book Homemade Robots for more projects! |
Materials
![1A.jpg](/proxy/?url=https://content.instructables.com/FPY/2HJ9/IJIX27J8/FPY2HJ9IJIX27J8.jpg&filename=1A.jpg)
For this project, you will need:
(x1) Fly swatter
(x1) 1/4" x 5-1/4" turnbuckle with eye bolts
(x2) 2" caster assembly
(x1) 3" caster assembly
(x2) 3/4" x 4-40 flathead bolts
(x2) 3/4" x 4-40 washers (optional)
(x2) 3/4" x 4-40 nuts
(x1) Assorted zip ties (not pictured)
(x1) Modified continuous rotation servo and 4 x AA battery pack**
(x4) AA batteries (not pictured)
**The modification of the motor is covered in steps 13 through 17 of the Basic Electronics Skills for Robotics lesson.
Free the Wheel
![3A.jpg](/proxy/?url=https://content.instructables.com/FTH/HW7L/IJIX273R/FTHHW7LIJIX273R.jpg&filename=3A.jpg)
![3B.jpg](/proxy/?url=https://content.instructables.com/FYP/H5ID/IJIX274K/FYPH5IDIJIX274K.jpg&filename=3B.jpg)
![3C.jpg](/proxy/?url=https://content.instructables.com/F5S/FLEZ/IJIX274L/F5SFLEZIJIX274L.jpg&filename=3C.jpg)
Remove the two 2" wheels from their respective caster assemblies.
Typically this just involves removing a bolt and pulling out the axle bolt.
In some cases, there is not a bolt to remove and the axle is rivited in place. I won't lie, this is annoying and you should avoid getting these. If you did happen to get something like this, you have a few options for freeing the wheels. The easiest is to cut away the rivits using a rotary tool such as a Dremel and a cutting wheel. Should you not have a rotary tool, you could also saw through the shaft with a hacksaw. This is foolproof, but may keep you busy for a while.
Mount the Wheels
![resized_FH8IP90IJIX26QK.jpg](/proxy/?url=https://content.instructables.com/FBT/PRYK/IMGLGI9O/FBTPRYKIMGLGI9O.jpg&filename=resized_FH8IP90IJIX26QK.jpg)
![axle.jpg](/proxy/?url=https://content.instructables.com/FYW/ZS9Z/IJIX26QJ/FYWZS9ZIJIX26QJ.jpg&filename=axle.jpg)
Remove the eyelets from the turnbuckle, and slide each respective eyelet shaft through the center of one of the wheels. Once you have done this, thread the eyelets back onto the turnbuckle. It is now an instant robot axle shaft that is stable, rigid, and perfectly aligned.
Remove the Other Wheel
![4A.jpg](/proxy/?url=https://content.instructables.com/F5N/E5MA/IJIX67ZH/F5NE5MAIJIX67ZH.jpg&filename=4A.jpg)
![4B.jpg](/proxy/?url=https://content.instructables.com/FU8/0TY6/IJIX682E/FU80TY6IJIX682E.jpg&filename=4B.jpg)
![4C.jpg](/proxy/?url=https://content.instructables.com/FA5/B6RM/IJIX684B/FA5B6RMIJIX684B.jpg&filename=4C.jpg)
![4D.jpg](/proxy/?url=https://content.instructables.com/FFW/RBV8/IJIX6857/FFWRBV8IJIX6857.jpg&filename=4D.jpg)
![4E.jpg](/proxy/?url=https://content.instructables.com/FEC/8W7P/IJIX6867/FEC8W7PIJIX6867.jpg&filename=4E.jpg)
Remove the 3" wheel from the caster assembly by loosening the nut and bolt holding it in place.
In this case you likely don't need to worry about rivits, because wheels of this size rarely have them.
However, you will notice that this wheel has a bearing instead of a thick plastic hub. Sometimes this can make it more difficult to attach a motor because bearings are meant to spin in place, which is the opposite of what we want. We want something we can attach the motor to that won't spin at all.
If you find your wheel has a bearing, it is not the end of the world. For starters, the motor's attachment bracket might be wide enough that it is bigger than the bearing. In our case, we will discover it is. What this means is that we can simply drill through the plastic on the side of the bearing and zip tie our motor in place. Problem solved.
If this is not the case, also no big deal. Simply find a piece of plastic that will fit inside the wheel. Later on, you will then attach the motor to one side of this piece of plastic, and the wheel to the other. This intermediate piece will hold them together.
When using pre-made parts, you can't be daunted by the unexpected. You simply have to be willing to be flexible and adapt your plans. Most problems are easily to solved.
Modify the Servo Horn
![2B.jpg](/proxy/?url=https://content.instructables.com/FPL/2SLH/IJIX5Y7G/FPL2SLHIJIX5Y7G.jpg&filename=2B.jpg)
![2A.jpg](/proxy/?url=https://content.instructables.com/F9M/SVBJ/IJIX5Y47/F9MSVBJIJIX5Y47.jpg&filename=2A.jpg)
The gear-like thing attached to the servo's motor shaft is called a horn. Most servo horns come with tiny mounting holes which are more or less useless. In order to make them useful, it is generally important to widen them to be large enough to pass a fastener through.
For a standard servo, this typically means using a 1/8" drill bit. This hole is large enough for both small zip ties and 4-40 bolts. In our case, we will be fastening things to the servo horn with zip ties
In order to span the bearing in the center of the wheel, we want to select the servo horn's outer mounting holes. These holes align with the plastic rim around the outside of the bearing.
To widen the holes, simply use a power drill with a 1/8" bit and quickly drill through. The existing hole should serve as a very good pilot, and the softness of the material should offer no resistance.
Mark and Drill
![5B.jpg](/proxy/?url=https://content.instructables.com/FLG/QXYB/IJIX69RD/FLGQXYBIJIX69RD.jpg&filename=5B.jpg)
![5C.jpg](/proxy/?url=https://content.instructables.com/FOG/DDWM/IJIX6BLY/FOGDDWMIJIX6BLY.jpg&filename=5C.jpg)
![5A.jpg](/proxy/?url=https://content.instructables.com/FCC/9P7B/IJIX69M9/FCC9P7BIJIX69M9.jpg&filename=5A.jpg)
Center the servo horn upon the wheel's plastic hub and mark the center of each hole in the servo horn using a mini screwdriver. Typically a center punch and hammer is used for this task. However, the wheel's hub is made of a very soft plastic and we can get away with making a pilot hole using a mini screwdriver. Just a light tap on the screwdriver with a hammer should be more than enough to make a small indent.
Once all the marks are in place, drill straight through each marking upon the wheel with a 1/8" drill bit.
Shape the Fly Swatter
![6A.jpg](/proxy/?url=https://content.instructables.com/F8M/CSEV/IJIX6ELQ/F8MCSEVIJIX6ELQ.jpg&filename=6A.jpg)
![6B.jpg](/proxy/?url=https://content.instructables.com/FFT/3GG3/IJIX6ELR/FFT3GG3IJIX6ELR.jpg&filename=6B.jpg)
The fly swatter is going to serve as the frame or "body" for the bot. Since it is still a fly swatter and yet, a bot, it not entirely a perfect fit quite yet. It needs to be shaped.
We will be mounting the turnbuckle wheel axle where the handle meets the paddle. Basically, we want to make cuts such that the wheels can spin freely when the axle is centered. To do this just get a pair of scissors and trim away enough of the fly swatter to allow for this.
Also, don't forget to keep in mind aesthetics! Like anything else in life - having style is classy. A simple thing to go for is simply to make sure the two sides you are cutting mirror one another. You can also try following the patterns on the swatter itself.
Mark the Motor Mount
![7A.jpg](/proxy/?url=https://content.instructables.com/FHH/LR2R/IJM01ZU2/FHHLR2RIJM01ZU2.jpg&filename=7A.jpg)
![7B.jpg](/proxy/?url=https://content.instructables.com/FDS/AQZR/IJM01ZW8/FDSAQZRIJM01ZW8.jpg&filename=7B.jpg)
![7C.jpg](/proxy/?url=https://content.instructables.com/FHR/OTUT/IJM0200G/FHROTUTIJM0200G.jpg&filename=7C.jpg)
![7D.jpg](/proxy/?url=https://content.instructables.com/FPZ/PQTX/IJM0202A/FPZPQTXIJM0202A.jpg&filename=7D.jpg)
Place the motor at the end of the fly swatter's handle and trace its outline along one of its edge.
Trim the Edge
![8A.jpg](/proxy/?url=https://content.instructables.com/FLM/MJS2/IJM02711/FLMMJS2IJM02711.jpg&filename=8A.jpg)
![8B.jpg](/proxy/?url=https://content.instructables.com/FSK/B29I/IJM0272B/FSKB29IIJM0272B.jpg&filename=8B.jpg)
![8C.jpg](/proxy/?url=https://content.instructables.com/F16/SG26/IJM0274Y/F16SG26IJM0274Y.jpg&filename=8C.jpg)
![8D.jpg](/proxy/?url=https://content.instructables.com/F8N/6B1I/IJM02797/F8N6B1IIJM02797.jpg&filename=8D.jpg)
![8E.jpg](/proxy/?url=https://content.instructables.com/FZW/AGDB/IJM027AI/FZWAGDBIJM027AI.jpg&filename=8E.jpg)
Trim away the edge of the fly swatter in-between the two mark lines with a pair of cutting pliers. Continue trimming until you have neatly cut away enough material to snuggly seat the servo motor inside.
Depending on the type of plastic the fly swatter is made out of, it may crack if you try to cut it directly with cutting pliers. To prevent stress fractures, a trick is to drill a series of small 1/8" stress relief holes along the bottom edge. You can then snip the plastic towards these holes, which will absorb the stress and keep the plastic from cracking.
Mark and Drill Motor Mounting Holes
![9A.jpg](/proxy/?url=https://content.instructables.com/FIV/9SM9/IJM04Q80/FIV9SM9IJM04Q80.jpg&filename=9A.jpg)
![9B.jpg](/proxy/?url=https://content.instructables.com/FF6/BHTM/IJM04Q8Q/FF6BHTMIJM04Q8Q.jpg&filename=9B.jpg)
![9C.jpg](/proxy/?url=https://content.instructables.com/FEZ/F8WP/IJM04Q95/FEZF8WPIJM04Q95.jpg&filename=9C.jpg)
![9D.jpg](/proxy/?url=https://content.instructables.com/FJJ/5V5F/IJM04Q9S/FJJ5V5FIJM04Q9S.jpg&filename=9D.jpg)
Place the servo inside the opening you have just cut. Use a pen to mark the servo mounting holes that overlap with the plastic.
Drill through each of these marks with a 1/8" drill bit.
Attach
![10A.jpg](/proxy/?url=https://content.instructables.com/FST/HBQR/IJM04RM0/FSTHBQRIJM04RM0.jpg&filename=10A.jpg)
![10B.jpg](/proxy/?url=https://content.instructables.com/F16/FHSN/IJM04RME/F16FHSNIJM04RME.jpg&filename=10B.jpg)
![10C.jpg](/proxy/?url=https://content.instructables.com/FCT/E6UG/IJM04RMG/FCTE6UGIJM04RMG.jpg&filename=10C.jpg)
Attach the motor to the frame using zip ties. Pull them as tight as possible, and then trim away the excess tails.
Attach the Wheel
![11A.jpg](/proxy/?url=https://content.instructables.com/F3E/VNOY/IJM04XZF/F3EVNOYIJM04XZF.jpg&filename=11A.jpg)
![11B.jpg](/proxy/?url=https://content.instructables.com/FKT/NH0I/IJM04Y2T/FKTNH0IIJM04Y2T.jpg&filename=11B.jpg)
![11C.jpg](/proxy/?url=https://content.instructables.com/FW6/P6DZ/IJM04Y2X/FW6P6DZIJM04Y2X.jpg&filename=11C.jpg)
![11D.jpg](/proxy/?url=https://content.instructables.com/F6S/G59H/IJM04Y73/F6SG59HIJM04Y73.jpg&filename=11D.jpg)
![11E.jpg](/proxy/?url=https://content.instructables.com/FX4/CIUL/IJM04YAI/FX4CIULIJM04YAI.jpg&filename=11E.jpg)
Insert two zip ties both down through the wheel, and the corresponding holes on the servo horn. Next, pass each respective tail back up through the servo horn and the wheel using one of the two free holes. Once passed through, fasten the wheel tight.
You may do this and realize your zip tie is not long enough. Fret not. This is an easy problem to solve. Just slide the head of a new zip tie on the tail of the last. You have just extended it. Now you can now close it pull it tight like you would any other zip tie.
Again, trim way any unnecessary excess plastic once the wheel is completely attached.
Attach the Axle Shaft
![12A.jpg](/proxy/?url=https://content.instructables.com/FR7/S6FI/IJM053X5/FR7S6FIIJM053X5.jpg&filename=12A.jpg)
![12B.jpg](/proxy/?url=https://content.instructables.com/FXJ/1BO1/IJM053YB/FXJ1BO1IJM053YB.jpg&filename=12B.jpg)
![12C.jpg](/proxy/?url=https://content.instructables.com/F1G/TKQS/IJM0542T/F1GTKQSIJM0542T.jpg&filename=12C.jpg)
![12D.jpg](/proxy/?url=https://content.instructables.com/FGP/WEE0/IJM0545Z/FGPWEE0IJM0545Z.jpg&filename=12D.jpg)
By now you may be beginning to notice a trend. Most things are easily attached using zip ties. The reason I like using zip ties is that they are strong, cheap, relatively small, and easy to undo. You can zip tie two things together, decide you don't like it, and undo it rather painlessly. Zip ties are both a quick way to protoype and make structural joints. They are fantastic, and we will continue to use them extensively throughout these lessons.
Anyhow...
Zip tie the turnbuckle wheel shaft to the underside of the fly swatter such that the wheels are able to spin freely.
Mount the Battery Holder
![13D.jpg](/proxy/?url=https://content.instructables.com/FN1/4SZ0/IJM05DRL/FN14SZ0IJM05DRL.jpg&filename=13D.jpg)
![13A.jpg](/proxy/?url=https://content.instructables.com/F3A/7HNI/IJM05DQ4/F3A7HNIIJM05DQ4.jpg&filename=13A.jpg)
![13B.jpg](/proxy/?url=https://content.instructables.com/FK7/U9AF/IJM05DQR/FK7U9AFIJM05DQR.jpg&filename=13B.jpg)
![13E.jpg](/proxy/?url=https://content.instructables.com/FG0/JFP6/IJM05DS8/FG0JFP6IJM05DS8.jpg&filename=13E.jpg)
![13F.jpg](/proxy/?url=https://content.instructables.com/FM2/WY4V/IJM05DSU/FM2WY4VIJM05DSU.jpg&filename=13F.jpg)
The one part that does not get attached with zip ties is the battery holder. Bolts are used to mount the battery holder because battery holder tend to have mounting holes directly below the batteries. Using zip ties will push the batteries upward and cause them to pop out. This is no good. There is typically not a good or easy way to zip tie battery holders down without interfereing with the batteries. Bolts are typically the better option when dealing with these.
The use of washers is optional depending on the size of the holes in the swatter. Initially, I thought I might have needed them, but it turned out they were not necessary. If the holes in the swatter turn out to be bigger than the size of the 4-40 nut, you will need to use them.
Clean Up the Wiring
![16L.jpg](/proxy/?url=https://content.instructables.com/FLD/QZJJ/IKWV9EV9/FLDQZJJIKWV9EV9.jpg&filename=16L.jpg)
![14A.jpg](/proxy/?url=https://content.instructables.com/FEQ/V2GT/IJM05H43/FEQV2GTIJM05H43.jpg&filename=14A.jpg)
![14B.jpg](/proxy/?url=https://content.instructables.com/F36/K2K7/IJM05H5H/F36K2K7IJM05H5H.jpg&filename=14B.jpg)
It is good form to bundle of the loose wires and tidy them up using zip ties. This helps to prevent them from snagging and breaking.
Batteries
![15A.jpg](/proxy/?url=https://content.instructables.com/FKI/WRS2/IJM05HN2/FKIWRS2IJM05HN2.jpg&filename=15A.jpg)
When everything is all cleaned up, power it on by inserting the batteries.
I kept things simple. There is no on/off switch in this design. Simply remove a battery to turn it off.
Troubleshooting
![resized_FUO3Y8SIN96AFOY.jpg](/proxy/?url=https://content.instructables.com/FSG/W6GG/IOEKKCXU/FSGW6GGIOEKKCXU.jpg&filename=resized_FUO3Y8SIN96AFOY.jpg)
If you followed my instructions to a 'T' you may currently be noticing your bot is going backwards!
Normally, I would have gone back and corrected my instructions so that everything worked perfectly the first time, but after thinking about it for a moment, I decided there was a teachable moment here.
First off, maybe it's not actually going backwards. Maybe that is the way you wanted it to go to begin with. In which case, you are done. Congratulations.
Or maybe it is not the way you wanted it to go, but you like it better like this. In which case, celebrate happy accidents, and pat yourself on the back.
Or perhaps - like me - you wanted it to go the other way and this is annoying you.
If this is the case, let's try to figure out what is going wrong.
Remember that the direction of a motor is determined by the polarity of the power supply connected to it. So, if the motor is spinning the wrong way, that means that power and ground need to be reversed. This is simple to do with a little rewiring.
To begin, snip the wires, and clip away any of the old solder connections.
Strip the ends of all the wires, add some more shrink tube, and then solder them red to black, and black to red.
Make sure they are nicely insulated with shrink tube.
Lastly, clean up the wiring once more with a with zip tie.
The problem should now be solved.
To avoid this problem in the future, simply check polarity and orientation before you solder the wires and mount the motors.
Anyhow, to reiterate, I left the instructions incorrect so that you can understand:
1) When building robots, things go wrong.
2) That is okay.
3) Sometimes you can simply embrace the mistakes.
4) Even should you not, mistakes are often easy to fix.
5) And can be avoided with good planning.