Introduction: Super Simple Beginners Robot!



'''ROBOT VIDEO'''
Here is an offsite link to the video while YouTube is processing the embedded version...

I created this Instructable for the absolute n00by robot wannabe. I have noticed a huge jump in the number of beginners getting into the hobby and the number of "how do I" questions seem to be mounting. Maybe this humble little Instructable will help one or two create their first robot. You will find basic source code at the end of this Instructable.

Don't panic at the number of steps... I broke the robot down into many tiny little steps for ease of following.

This little robot is nothing more than a simple plywood platform that carries a couple of modified model airplane servos as the main drive system, a microcontroller and a IR sensor. I designed in plenty of room to expand and add on. You should be able to build it in about 3 hours if you have the parts on hand.

The microcontroller I chose is the OOPic R. I picked this micro because the dozens of built in objects and sample codes make it easy for the beginner to get up and running quickly. They can be found from any of the major robot parts suppliers for usually less than 60 bucks. Get the starter kit as it has a programming cable and battery clip included.
You can use any microcontroller as long as you can plug a servo directly into it (that shortens the list, lol).

The servos listed are all Hitec HS-311 model airplane servos found at nearly any hobby shop for less than 10 bucks in some cases.

The IR sensor is a Sharp GP2D12 Analog unit available from Digikey (www.digikey.com). Any of the GP2D12XXX analog series will do the job.

The Tailwheel is a simple Dubro .20-.40 model airplane 1" wheel with mount. Pick one up at the hobby shop where you get your servos.

The wood base is a scrap piece of 1/4 inch birch plywood and the servo / sensor mount is a scrap piece of just about anything wooden. I used a piece of fir.

I made the billet aluminum wheels myself but you can use any wheel designed for servo attachment.

The rest of the robot consists of a few screws and some electrical standoffs.

Without the SPECAIL add on at the end it cost me about $95.00 USD. The special step adds about 50 bucks.

Be nice as it is my first Instructable.

Step 1: Tools and Materials

Here is a list of what you will need to build the Super SImple Robot!

Parts list:
-ooPic R Microcontroller (http://www.thebotshop.com/)
(note - You can use whichever microcontroller you are comfortable with)
-Sharp GP2D12 With wired JST connector
-Billet Aluminum Wheels/Tires (or equivelent)
-Hitec HS-311 Servos, Modified
-Super Glue
-.5 X 1 inch Double Sided Tape
-1/4 inch Plywood and a piece of scrap wood
-Dubro .20-.40 RC Airplane Tailwheel assmbly
-Misc. spaces/standoffs and screws/nuts-9 Volt battery
-Heat shrink tubing 1/16 x 3 inches
-3 standard female crimp pins (do not panic if you cant get them)
-Paint *optional
-9 volt battery

Tools:
-Misc Small Screwdrivers
-Needle Nose Pliers
-Drill and bits
-Saw
-Soldering Iron
-Solder
-Sandpaper
-Sharp Pencil
-Ruler

Total Cost approx. $95.00 USD
Time to Build approx. 2.5 - 3 hours

Step 2: Modify the Servos

You will need to modify your servos using the super glue the potentiometer method. I chose not to waste space by detailing it here as there are dozens of articles on Instructables and Google showing you how. If demand calls for it I will add it here later.

Essentially you need to tear them apart, find the 90 (no movement) position, super glue the pot top and bottom, put it all back together, modify the output gear, file off the top of the pot shaft flush with the case mold.

The Hitec HS-311 has a plastic pot shaft that makes it easy to file down. If you use a different servo that has a metal pot you must alter the underside of the output gear instead.

Potentiometer = Pot = Variable Resistor

Step 3: Cut the Wood Parts

Cut a piece of 1/4 inch birch plywood or equivelent, into a 3.25 inch square for the base.

**SPECIAL**
Cut a second piece of 1/4 plywood matching the first for a easy add on later.

Cut a piece of scrap wood into a 2 5/16 inch long, 3/4 inch tall, 1/2 inch thick GP2D12 mount.

The scrap servo / IR mount could be made by laminating 2 pieces of the 1/4 inch birch plywood together.

When everything is cut out give it a gentle sanding to clean up any rough or fuzzy edges.

Step 4: Drill the Holes

Using your microcontroller as a guide, layout the mounting holes on the plywood favoring the front as shown.

Using the tailwheel mount as a guide, layout the mounting holes on the plywood favoring the rear as shown.

Drill all holes with a 1/8 inch drill bit.

If you chose to make the spare base piece from **SPECIAL** in step 3, then clamp the two bases together and drill the microcontroller holes at the same time. Seperate the two pieces and drill the tail wheels holes in one of them only.

Step 5: Install the Servo / IR Mount

Super glue the servo / IR mount from Step 2 to the bottom of the plywood making sure to center it left and right as well as flush it up with the front edge of the plywood as shown.

Step 6: Drill Holes for Servo Wires

Temporarily places your servos in their mounting position behind the servo / IR mount and you will notice that the wires hit the mount on the back side. We will need some holes to allow the wires to pass through. Servos must be oriented so that the output shafts are closer to the front of the base, not the rear.

Using a servo as a guide, determine and mark where the holes need to be drilled on the mount.

Using your pencil and ruler, transfer those points to the front of the mount as shown in step 4.

Drill holes with a 5/16 drill bit. Be careful, you can split the wood. Never fear, if you do just super glue it together.

OPTIONALLY you can reroute the servo wires through a small hole drilled in the bottom of the servo during modification and avoid this step alltogether.



Step 7: Tailwheel

Install the tailwheel assembly at the center rear of the base as shown using a couple of 4-40 X 1/2 inch machine screws and nuts.

Make sure the screw heads, or nuts depending on orientation, get countersunk into the plywood so they do not interfere with servo installation.

Do not worry about height right now, we will adjust it later.

Step 8: Install Standoffs

It is best to get your board standoffs mounted right now before the servo go in.

Using a 4-40 X 1 inch screw, a 4-40 x 1/4 inch standoff and a 4-40 nut, install one in each microcontroller hole as shown.

Make sure the screw heads get countersunk into the plywood so they do not interfere with servo installation.

Step 9: Install Servos

Super glue the servos to the bottom side of the plywood base and up against the servo / IR mount. It only takes a drop or two..

Route the servo wires through the holes in the servo / IR mount as shown.

Step 10: Install the Microcontroller

Install the microcontroller on the standoffs as shown.

It may be necessary to place a washer on each standoff to lift the microcontroller over the tailwheel assembly depending on your layout skills.

Secure the microcontroller with either 4-40 nuts or 2.5 inch female to male standoffs (shown) for the **SPECIAL** add on later.

Step 11: Install Wheels

This step is a biggy... Install your wheels of choice and adjust the tailwheel do that the base sites level or slightly rear low.

Instuctable goody: I have extra sets of the wheels out in the shop, email for details.

Step 12: Add a Battery

Double sticky tape the battery in the space behind the servos and in front of the tailwheel on the bottom of the base. The battery needs to sit on edge to fit.

If you are building the **SPECIAL** version you can wait and use the upstairs space to mount the battery.

Step 13: Plug in the Servos

Plug the left servo into oopic servo port 31. Right most 3 pin port.
Plug the right servo into oopic servo port 30.

Look for the two servo connectors with yellow wires in the image notes at the rear of the picture.

Step 14: Install the IR

Super glue the Sharp GP2D12 over the holes/wires on the front mount.

Mount the IR as high as you can to minimize floor reflections.

Place it wires up and you can see a little relief in the plastic case for the servo wires to fit behind.

Step 15: Wire the IR

The hardest part of the whole robot, trust me.
On each of the wires for the GP2D12 place a 1 inch piece of heat shrink tubing. Slide it way out of the way.

Solder (or crimp) a single female crimp pin receptacle on to each wire.

OPTIONAL - NOT RECOMMENDED FOR NON SOLDERERS!
You can solder the end of the wire just to the tip of the needed microcontroller pins and slide the heat shrink over it to protect from shorting. It must be done fast and carefully.

Slide the heat shrink tubing flush to the face of the crimp receptacle.

Using a lighter of heat gun shink the tubing.

Sorry, I could not get a good picture all all of this small stuff.

Find any open 5 volt pin on the oopic and plug the red GP2D12 wire into it. There are lots of them. I used a spare 5 volt from the 12C port. Shown in the image notes.

Find any open GND pin on the oopic and plug the black GP2D12 wire into it. There are lots of them. I used a spare GND from the 12C port. Shown in the image notes.

Find pin3 and plug the white GP2D12 wire into it. There is only one of them lol.

Step 16: Source Code

UPDATED 2/16/09
SOURCE CODE FOR THE SONAR OPTION IN THE NEXT STEP (SPECIAL STUFF)

Follow the directions for your microcontroller and cut and paste this code into the editor. Compile and send to the robot.

The code is ultra simple but the bot avoids most obstacles it sees. It is easy to take my code and expand upon it.

'SuperSimpleBeginnersRobot
'www.instructables.com
'Ted Macy
'ted@oobug.com
'2/16/09
'-----------------------------------------------------------------
' Create and Setup Objects
'-----------------------------------------------------------------
Dim Servo_Right As New oServo
Dim Servo_Left As New oServo
Dim SRF04Servo As New oServo
Dim GP2D12 As oIRRange(3,8,cvOn)
Dim SRF04 As oSonarDV(8,9,cvOn)

SRF04Servo.IOLine=29 'Set the servo to use I/O Line 30.
SRF04Servo.Center=28 'Set the servos center to 28. (see manual)
SRF04Servo.Operate=cvTrue 'Last thing to do, Turn the Servo on.
Servo_Right.IOLine = 30 'Set the servo to use I/O Line 30.
Servo_Right.Center = 28 'Set the servos center to 28. (see manual)
Servo_Right.Operate =cvTrue 'Last thing to do, Turn the Servo on.
Servo_Left.IOLine = 31 'Set the servo to use I/O Line 31.
Servo_Left.Center = 28 'Set the servos center to 28. (see manual)
Servo_Left.Operate =cvTrue 'Last thing to do, Turn the Servo on.
'-----------------------------------------------------------------
' End Create and Setup Objects
' Main routine is your primary routine called upon power up!
'-----------------------------------------------------------------
Sub main()
Do
Call IR
Call Forward_All
Call SServo
Loop
End Sub
'-----------------------------------------------------------------
' End of Main routine
' Start of Drive System Subroutines
'-----------------------------------------------------------------
Sub Spin_Left()
Servo_Left.Invert=0
Servo_Left = 62
Servo_Right = 60
End Sub

Sub Spin_Right()
Servo_Right.Invert=1
Servo_Left = 62
Servo_Right = 60
End Sub

Sub Forward_All()
Servo_Right.Invert=0
Servo_Left.Invert=1
Servo_Right = 60
Servo_Left = 62
End Sub

Sub REVERSE()
Servo_Right.Invert=1
Servo_Left.Invert=0
Servo_Right = 60
Servo_Left = 62
End Sub

Sub STOP()
Servo_Left = 0
Servo_Right = 0
Call SServo
End Sub
'-----------------------------------------------------------------
' End of Drive System Subroutines
' Start of Sensor Subroutines
'-----------------------------------------------------------------
Sub SServo()
SRF04Servo.Position=15
SRF04.Operate.Pulse(1,1,250)
If SRF04.Value<128 Then
Call Spin_Right
Else Call Forward_All
End If
ooPIC.Delay=600

SRF04Servo.Position=31
SRF04.Operate.Pulse(1,1,250)
If SRF04.Value<64 Then
Call REVERSE
Else Call Forward_All
End If
ooPIC.Delay=600

SRF04Servo.Position=46
SRF04.Operate.Pulse(1,1,250)
If SRF04.Value<128 Then
Call Spin_Left
Else Call Forward_All
End If
ooPIC.Delay=600

SRF04Servo.Position=31
SRF04.Operate.Pulse(1,1,250)
If SRF04.Value<64 Then
Call REVERSE
Else Call Forward_All
End If
ooPIC.Delay=600
End Sub

Sub IR()
If GP2D12.Value<64 Then
Call STOP
End If
End Sub
'-----------------------------------------------------------------
' End of Sensor Subroutines
'-----------------------------------------------------------------

Step 17: SPECIAL STUFF

Using the extra base section cut at the beginning you can add a servo and sonar device for greater ranging abilities.

You will need:

Servo (not modified)
SRF04 or 08 with servo mount from Acroname (www.acroname.com)
Spare base section

Cut a hole in the front edge of the plywood just large enough for the servo to fit into.

Install plywood over the long standoffs and secure with some 4-40 nuts. You will need to countersink the bottom side of the holes to allow the entire standoff diameter to fit in them about 1/8 inch so that the threads stick up far enough.

Install the servo, sonar mount and sonar.

Hook the servo to oopic servo port 29 and wire the sonar to the pins as shown in the oopic users manual. You will have to use the sample code in the IDE to test it as I have not written any yet... Battery died.

You can add many levels for add ons if you want simply by cutting and drilling more pieces of plywood and adding standoffs.

Add more sensors like the QRB1134 to make your bot a line follower.

Have fun and build more bots! You can email me on or off list for help.

I will add video shortly. I am on dialup and have to drive 20 miles to town to get to high speed.

theo570 AT yahoo DOT com

Ted (BIGBUG)



Comments

author
BIGBUG made it! (author)2014-12-06

UPDATED VERSION OF THE SSBR IS NOW AN 'IBLE!!!

https://www.instructables.com/id/SUPER-SIMPLE-BEGINNERS-ROBOT-II-ARDUINO-UNO-VER/

SSBRimg13.jpg
author
Twizler12 (author)2015-03-18

author
Master anuroop (author)2011-05-06

Hi , i am from india and i want to know where can i get the parts of robbot because i can't afford t buy anything from abroad

author

Same problem here too,bro..
its not about the affordability, they wont just ship you some common parts!! :(
And its very hard to find 'em in India! :(

author

Same here dude, if something is very hard to find in India then its nearly impossible to find it in Bihar ( kya yaar )

author

Same here dude, if something is very hard to find in India then its nearly impossible to find it in Bihar ( kya yaar )

author
shade450 (author)Master anuroop2012-03-28

http://robokits.co.in

author
ramyabar (author)2015-02-09


Hi can i get the programming part of this robot its awesome please ramyashree2612@gmail.com please reply to my mail

author
ramyabar (author)2015-02-09


Hi can i get the programming part of this robot its awesome please ramyashree2612@gmail.com please reply to my mail

author
BIGBUG (author)2013-08-15

THANK YOU TO EVERYONE WHO HAS READ, COMMENTED OR FAVORITED MY SSBR 'IBLE. WOW, NEARLY 100,000 VIEWS! COOL!

I am working on an updated version even as I type this... please fav me so you can see it pop up in a few days.

Thanks again. Oh, and thank you special, Nicole.

author
ramyabar (author)BIGBUG2015-02-09

Hi can i get the programming part of this robot its awesome please ramyashree2612@gmail.com please reply to my mail

author
ramyabar (author)BIGBUG2015-02-09

Hi can i get the programming part of this robot its awesome please ramyashree2612@gmail.com please reply to my mail

author
kronnicbot (author)2014-03-28

Good day, I am stephen k. Paul, I live in Nigeria. Am so much interested in robotics, but unfortunately for me, I can't lay my hands on some components. So pls if you guys can help me get some robot stuffs, I will be glad. If u accept my request pls reply me and then I will give you full details of myself. Alot of people needs these robots but only few builders are available who cannot lay their hands on components.pls I need your help to help others. Thanks.

author
pinkypinky10 (author)kronnicbot2014-10-02

cool i too am a nigerian tho i live in the caribbean.bless the lord.i have an old computer power source but i dont no what to do with it. ask random people for old appliances.you find many awesome things with those.

author
Daena Damonse (author)2014-04-26

Very interesting, really got me into robotics!

author
i am an atheist (author)2014-03-12

can you say which software should i use to write the program ?

author
Trapper51 (author)2014-01-27

i just made an account to favorite it..

cant wait till u get updated version :D

author
Robot_N00B (author)2013-07-18

Where do u get the parts?can u give us a website?And about how much does it cost?

author
BIGBUG (author)Robot_N00B2013-08-15

News version coming soon....

author
Hanan2002 (author)2013-05-06

Where should I paste these source codes?

author
BIGBUG (author)Hanan20022013-08-15

Unless you accidentally have an oopic and IDE for it, the source code is not longer usable. Arduino version coming soon...

author
TheParacorder (author)2012-08-02

did you model it after a boe bot? thats awsome

author
BIGBUG (author)TheParacorder2013-08-15

LOL The first rendition of the SSBR was waaaay before the Boe...

author
Geekaton (author)2012-12-01

Is this a wall avoiding robot??

author
BIGBUG (author)Geekaton2013-08-15

Obstacle, in general.

author
anhaarajaz (author)2013-02-03

Please give me a link to bye all these parts

author
BIGBUG (author)anhaarajaz2013-08-15

I am redoing this 'ible with updated parts... coming soon.

author
Sassah122 (author)2013-02-03

Awesome

author
BIGBUG (author)Sassah1222013-08-15

Thank you!

author
anurag rock (author)2013-04-05

nice robot real...

author
BIGBUG (author)anurag rock2013-08-15

Thank you!

author
jleslie48 (author)2013-07-03

is this how to "modify the servo"

http://www.simkits.com/downloads/documents/Modify%20a%20servo%20HS-322.pdf

author
vicky666 (author)2010-11-16

what is a Dubro .20-.40 RC Airplane Tailwheel assmbly because it is the only thing i haven't got!THNX!

author
BIGBUG (author)vicky6662010-11-16

V666,

You will find it in the pictures and in the assembly instructions. If you need to buy one try this link for the bracket -->http://www3.towerhobbies.com/cgi-bin/wti0001p?&I=LXD850&P=7 and this link for the wheel -->http://www3.towerhobbies.com/cgi-bin/wti0001p?&I=LXD811&P=M . Both are usually available in any good local hobby store.

Don't forget, you can use any microcontroller that you have to control this robot. Let me know if you need help when it gets to that point.

I always enjoy a new rating... (hint) lol 

BB

author
tmj61 (author)BIGBUG2011-02-07

Hi BIGBUG

you say we can use any microcontroller we want? Will your code work with an arduino?

author
BIGBUG (author)tmj612011-03-18

Sure, although not sure why you would wanna use one... but hey that is just me.

Check this out --> http://oopicraptor.blogspot.com/

author
bigjeff5 (author)BIGBUG2012-12-13

Oopic seems to be a lot more expensive than the arduino, and pretty much dead as far as commercial support/development goes.

These days you can build a functioning USB based Arduino for under $5 (~2.50 if you do without the USB to UART).  See http://shrimping.it/blog for more info.  If you can do this project then you can probably build the Shrimp too pretty easily.

author
ajapope (author)BIGBUG2012-07-23

i need your help ASAP

author
ajapope (author)2012-07-23

HI I LIVE IN THE USA AND I CAN`T FIND A LINK TO BUY THE OOPIC R MICROCONTROLLER......... CAN SOMEONE PLEASE HELP ME!!!!


MY E-MAIL IS uaqtpi@yahoo.com

thanks :)

author
rsmaudsley (author)2012-05-31

The referenced website above it just a web development company. Nowhere to order robotic parts.

I like this project and I've been wanting to get in to robotics and Arduino.

author
deen abdul (author)2012-02-01

for what this robots is mainly used for?

author
vadipp (author)deen abdul2012-02-03

I'd say for fun. But they may develop into some project which really does useful stuff. It's only limited by one's imagination.

author
deen abdul (author)2012-02-01

for this kind of robots are mainly used for?

author
BIGBUG (author)2011-07-13

Just a note for my fans... I have started the process of kitting this robot. All aluminum chassis, ooPic basic language controller and a built in speech system.

Watch my website for details: http://babblebot.net

author
taduolis15 (author)BIGBUG2011-10-09

i want to make this in a pc mouse housing, im going to use dc motor and i was wondering if you could help me with the elektric part cuz im good in programing.
so i need the brai to be small. could you like tell me which one to get or how to make it?? THX

author
spazgadget (author)2011-05-08

MWAHAHAHAHA! mine has a HAMMER!

author
vicky666 (author)2010-11-19

have u got a simpler robot than this as i need to make 1 in school for a project.

author
BIGBUG (author)vicky6662010-11-22

Yes I do, several matter of fact.

What do you want, SIMPLE or CHEAP?

What do you want it to do?

What do you know about robotics?

What do you know about programming?

What is the goals?

Answer by private message please

BIGBUG

author
BIGBUG (author)2010-11-08

OK, followers and the lucky passers by... there have been a few comments that indicate that this robot project could be even more simple.

I will leave it up to you, the viewer.

Tell me what you want in a Super Simple (CHEAP) Beginners Robot and I will do a brand new 'ible on it.

You have until December 8th, 2010 to either respond to this comment or send me a message on 'ibles... Do your best.

author
tmj61 (author)BIGBUG2010-11-11

Hey I have what might be a stupid question, but how do you controle the robot? Is there a remote?

About This Instructable

244,701views

329favorites

License:

Bio: Evil, Mad, Nerdy Robotics Experimenter!
More by BIGBUG:SUPER SIMPLE BEGINNERS ROBOT II (ARDUINO UNO VER.)Super Simple Beginners Robot!
Add instructable to: