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.

'BOB' V2.0

Step 5Turn The Hardware Into A Working Robot!

Here's the code for BOB. There are a lot of comments in there to help understand what is going on. There's also 'commented out' code that either isn't being used, or is used for debugging. The code section that handles the ultrasonic rangefinder readings was made by another author; I got it off the Arduino site. Credit to that section goes to that author.

*IMPORTANT* : I have found out that in order to view the code, you have to open it in a word processor (Microsoft Word, Notepad, Wordpad, OpenOffice, etc.). For some reason it defaults to being a 'Windows Media TMP File'.
« Previous StepDownload PDFView All StepsNext Step »
4 comments
Mar 18, 2012. 7:04 AMDSPNRG says:
FYI: If I right-click on the file; select 'Save Link As..'; rename file 'BOB_V2_0.pde; I can open it by double clicking, in which case it opens using the default association you have set on your OS; or in the alternative, open your favorite editor (Arduino sketch or, in my case, Microsoft Visual Studio ultimate with the Visual Micro plugin (see http://www.visualmicro.com/). Works like a charm.

I was hoping for better commenting/documentation as my preferred method of code proofing is to simply read the comments for an overall understanding. In this case, however, the code is very simple, so no biggie.

I really like this design schema and may "borrow" some of the ideas for my own project. That is what is so great about these instructables!
Mar 28, 2011. 11:33 AMPaNiCPeRCePTioN says:
Are you using an arduino uno or duemillonove? or is it an old NG or something?
Aug 29, 2011. 11:14 AMnigel da nautilus says:
answers in step 1 :)
Sep 3, 2009. 8:12 AMRayanarfawi says:
please mortaldoom can you put a scamatic because in the arduino i dnt found pin 5 and 6 , 7, 9, 11 because its the first time i use arduino atmega168 please help me explain me how to make all the connection and thnks

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