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.

Obstacle-Avoiding Robot with a Personality!

Obstacle-Avoiding Robot with a Personality!
«
  • IMG_0926.JPG
  • IMG_0928.JPG
  • IMG_0931.JPG
  • IMG_0933.JPG
Unlike most roaming 'bots, this one actually roams in such a way that it actually seems to be 'thinking'! With a BASIC Stamp microcontroller (Basic Atom, Parallax Basic Stamps, Coridium Stamp, etc.), a chassis of some kind, a few sensors, and some sophisticated code from this instructable, you can create a robot that will execute movements you never even programed into it!

Here's a video (it's kind-of low quality, but I'm working on that. (I am still trying to work out the part that it's too slow.)


 
Remove these adsRemove these ads by Signing Up
 

Step 1The Sensors

The (name?)...Well, let's just call it Bob. Bob has five sensors

  • Ultrasonic Rangefinder (aka "sonar")
  • 2 Sharp GP2D12 IR Sensors
  • 1 Standard IR Assembly (more on this later)
  • 1 CdS (Cadmium Sulphide) Photocell

The ultrasonic rangefinder helps Bob see obstacles that are right in front of him; they also tell him what distance the object is from him. This can be obtained from many sources. You can find them from (Parallax ; they call it the "Ping)))"), Acroname, HVW Technologies, and so many more sites. No matter where you go to find them, they all cost about the same (~ $30). The two IR sensors made by Sharp are very easy to use when used for simple object detection as in this case. You can get them at may online stores, such as the ones listed above. They help Bob see obstacles that the ultrasonic rangefinder can't; obstacles that are coming too close to the sides of the chasis. They cost about $12 to $15 depending on where you get them. The "IR assembly" I made myself; see step 2 for assembly. The CdS Photocell (or light-variable resistor, whatever your preference) is for detecting changes in ambient lighting. Bob uses them to know when he's in a dark or light room.

If anyone who has prior experience with any of the Sharp IR rangers, FYI, they are not being used for actual distance measurement in this robot. I do not have an ADC (Analog-to-Digital Converter), neither do I know how to use them that way. They are simply providing a HIGH or LOW signal to the BS2 microcontroller.

The datasheets for the Sharp IR's as well as the Ping))) sensor can be found on the net, but if you're lazy like me, you can scroll down a little further an there they are!
« Previous StepDownload PDFView All StepsNext Step »
36 comments
Oct 18, 2010. 4:44 PMtzq33tdq says:
do you know how much this costs? and were do i get the stuff to build it with?
This is awesome and please answer my questions.
Dec 22, 2009. 4:07 PMwillrandship says:
This could, thanks to the sonar being used, theoretically be used to map places out, removing the necessity of a manual map-out of areas. This could be implemented in such things as automatic vacuums and such! The robot goes out to map the area, determines the best area covering and sets out on its mission. Coming upon an obstacle, it could update its maps, and hence never need user input!
Oct 31, 2009. 1:21 PMLinemenOwn says:
In step 4, what is the VDD voltage needed for the IR Detector?
Oct 22, 2009. 9:31 AMmiketwo says:
That's a really cute robot.  The startup chirp is the best.
Aug 17, 2009. 12:30 PMomega9o says:
to make it move faster remove the 100 milisec pause in the ping coding
Jul 30, 2009. 10:05 AMairyna says:
why does the source code have an error....got error on string when i run it using the Matlab
May 8, 2008. 2:39 PMkenny789 says:
were do you get the mini bread boards they look really useful or did you jsut but the boe on the robot
May 8, 2008. 6:14 PMkenny789 says:
but theres no radioshack in candda :( only the crappy source witch dosent sell electonics
Feb 18, 2009. 2:59 PMthepelton says:
American Science and Surplus has a lot of parts for robot building. Just Google them. Not sure what the dollarUS/dollarCA exchange rate is any more.
Dec 4, 2007. 10:50 PMstep23 says:
hm... i want to build a robot, aswell but i dont' want to spend much money... so i guess my best bet would be to salvage parts from broken electronics... so where do i start and how much did this project cost you
Jan 12, 2009. 5:46 PMgodfreyandthandi says:
you should try the $50 dollar robot on societyofrobots.com
Jul 21, 2008. 7:32 PMEvilthingamabober says:
HEARTATTACK!!!!!!
Jun 21, 2009. 7:04 PMwill421 says:
$999,999,999,999,999,999,999,999,999,999,999,999,999,999,99?
*Grabs chest* UGHHHHHHHHHH... *BANG*
Dec 5, 2007. 9:45 AMthewoodcarver says:
try this bookmy son found it useful in making robots some out of "found" parts ....motors from broken toys parts from a mouse etc.
Oct 1, 2008. 5:35 PMkiss my donkey says:
Nice looking forward to build P.S fry lock is awesome
Aug 23, 2008. 4:01 AMkoolgalforever says:
please could u tel me the range of the CdS photocell u've used...
Dec 4, 2007. 10:46 PMDa_Fudge says:
This is absolutely awesome! Is that just a aluminium base? looks really cool! Plus from me.
May 29, 2008. 9:01 PMsonic55575 says:
looks kinda like WALL-E!
May 5, 2008. 4:16 PMBrandon121233 says:
Nice job, but I'm curious as to why you have it stop and go in a jerking motion?
May 8, 2008. 9:16 PMBrandon121233 says:
Yeah my robot Walbot http://www.instructables.com/id/Make-a-wall-avoiding-Robot!/ uses the Arduino board, and it works great.
Dec 7, 2007. 5:30 PMdbc1218 says:
Get the ServoPal from parallax or any servo controller, then you won't have to send the pulses to the servo every 20 or so milliseconds. Then it will run smooth and not jerk.
Dec 5, 2007. 10:45 AMbackcountry says:
Here's video of an obstacle avoiding robot I made that uses no microcontroller, no programming, and only a single 9v battery. 2 distance sensors, 2 relays, 2 transistors, and a resistors/capacitors/diodes is all it takes.
http://youtube.com/watch?v=zW1pwJyjOVI
http://youtube.com/watch?v=szJ0eleTgSk

Dec 7, 2007. 6:49 AMsunithaya says:
Great job on this one. The speed is impressive. How about posting an instructable on it?
Dec 6, 2007. 5:33 AMBrennn10 says:
That is really great, nice job!
Dec 5, 2007. 7:44 PMJr Hacking kid says:
hay i have that thats called the boe bot right? boe bot stand for 'borad of education bot'
Dec 5, 2007. 3:26 AMkillerjackalope says:
if you give it a suicidal oersonality does it still avoid walls or does that only affect the drop off sensors
Dec 4, 2007. 9:03 PMGorillazMiko says:
cool! you must be really smart to make something like this, unlike me, haha.

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!
41
Followers
10
Author:mortaldoom780(Reece)