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.

Make a wall avoiding Robot!

Step 5Programing Walbot

Programing Walbot
«
  • Verify code.jpg
  • Upload to board.jpg
  • Arduino-NG-1.jpg
So you've done all the exterior mechanical and electrical work, now its time to teach Walbot to avoid walls. Download the free Arduino program, and install it along with the USB drivers in the Drivers folder. Download the program I wrote for Walbot here and open that in the Arduino program. Next you want to compile the code by clicking the play (sideways triangle) button that says verify to the left when you hover over it. When it has finished compiling, use a USB cable to plug in the Arduino. The Arduino itself can be powered by the USB cables regulated 5Volts. Right next to the silver USB plug on the Arduino, there should be a jumper pin ( a little black piece of plastic and metal that connects two of the three pins sticking up), make sure when powering the board through USB that that pin is set nearest the USB plug ( there should be two labels under the jumper pin the right is USB the left should say EXT, you want it on the USB one for now). So now when you plug the USB cable into the Arduino board the green power LED underneath the PCB shield we made should be on, and the yellow indicator LED on top should light up once or twice. Note: If the green power LED on the Arduino board does not come on, take the USB cable out and check the jumper pin again, and that the USB cable is plugged into your computer!
You should have already compiled the code in the Arduino program, so now click the upload button and it should start uploading onto the Arduino board (you can see the orange TX and RX LED's flashing on the Arduino board if this is happening). If you get an error that it is not responding first push the reset button ton the Arduino board ( the little DIP switch, after you push this you have about 6 seconds to upload the code before it reboots), if it still doesn't work, make sure you installed the USB drivers correctly (they are in the drivers folder in the Arduino folder you downloaded). If you still can't get it to work, consult the Arduino Forum and ask for help, they can guide you through what you need to do. If everything went well your program should have booted up in about 10 seconds, and if the AA batteries are charged and installed, the motors should turn on and if the Sonar detects something within 16 inches the yellow indicator light will turn on and the Right wheel will reverse direction for half a second. You can now unplug the USB cable, switch the jumper to EXT, plug in the Power Jack and put it on the ground.
If you have done everything right so far, you will now have your very own obstacle avoiding robot!

If you have any questions or comments (or if I left something critical out which I probably did) just leave me a message in the comment area.

Also if you have any robot related questions I suggest that you join the Society of Robots Forum which I am a member of, and one of the people there will be more than happy to answer your questions! Happy Roboting!
« Previous StepDownload PDFView All StepsNext Step »
5 comments
May 4, 2008. 8:23 AMsmitty9357 says:
i love this robot and i really want to finish it but whenever i try to verify the Walbot_QT_Program it says, " error: expected primary-expression before 'else' can you please help i need to finish this by Tuesday.
Feb 10, 2009. 2:12 PMakatsuki666 says:
and yes the errors with else but i deleted nothing pls help
Feb 10, 2009. 2:11 PMakatsuki666 says:
a bunch of errors.... help
May 5, 2008. 2:10 PMsmitty9357 says:
ok thanks that works now but what exactly did ypu mean when you were talking about step six on on page "step four" could you explain it in a little more detail.

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!
33
Followers
5
Author:Brandon121233