Let's Make Robots!

812-R8

Rudolph's picture
Drives in in circles
Cost to build: 
$150
Time to build: 
2 hours

Here goes 812-R8. I really wanted to get something posted as this bot has been sitting here for almost a week now. More details and photos will be added later (along with a video, if I ever get around to making one).
IMG_4261.jpg

 

Instead of my usual arduino knockoff this on is built on the Propeller Platform from Gadget Gangster. The Prop Platform has both 3.3V and 5V regulators on board so no special power supplies were needed to run everything.
IMG_4303.jpg

 

The drive motors are a pair of GM3's from Solarbotics with their GM series wheels.
IMG_4242.jpg

 

Sight comes from a PING))) ultrasonic sensor. The Ping is mounted to an inverted Dagu micro servo via a polymorph bracket.
IMG_4243.jpg

 

Motor control is a SN754410 h-bridge. Three-pin headers for the servo and PING))), and the h-bridge are soldered to the Platform Prototyper Module, also from GG.
IMG_4264.jpg

 

Power comes from a 4xAA battery box mounted below the motors. This puts 6V to the VIN pin of the Prop Platform. (no photo)

Build time for the Prop Platform was probably about 45 minutes, and is included in the 2 hour (estimated) build time. Not included in the build time was me breaking a solder tab off one of the GM3s, or the time spent locating a suitable replacement motor (pirated from one of my dead wowwee robots). Build time also does not include time spent reading the Propeller documentation and figuring out how to program a different microcontroller.

Cost to build includes motors, wheels, prop platform and proto module, PING))),  servo, and Prop Plug (the programmer doowhackey).

The code uses the PING object from the Object Exchange. I think it is included in the Windows package of the Spin Tool but I don't recall for certain. I also used somebody else's servo driver. The h-bridge control is nothing special, just putting the right pins low or high. I'll probably end up using an h-bridge object eventually to be able to match the motor speeds to each other.

I can't attach .spin files (I'll fix that another time) so here's the code hosted elsewhere.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Prettybird's picture

Still on basic stamp here but have a prop board ( USB prototype ) laying if I ever get daring. Waiting for video.

 

TheGrue's picture
Get daring? LOL Writing in SPIN is like cheating, since there are so many cool objects already made that you can use in your project.
nmcclana's picture

Your code looks very good!  I like how you've organized the code, making each direction for the robot as a method.

One tip - you can create an archive of your code and it will put all your object files into a single zip;

archive.png

 

What's holding up the back end of the robo?

Rudolph's picture

I spotted the archive thingie but so far it's not quite working out for me. I think I just don't have things (various objects) organized correctly is all. It just gives me an error "could not find object" or something. By the way, I'm using BST on Ubuntu instead of the "real" spin tool. I guess it's possible, though not likely, that BST doesn't handle the archiving thing as well.

I still figure to do a blog or Tip about using the Prop Platform on Linux, not that it was remotely tricky to accomplish. I also plan on playing more with the Spin Tool in a virtual WinXP with VirtualBox.

There's nothing holding the back end up. For now it just drags its battery box arse along the ground ;)

TheGrue's picture
In order to archive you need to load the top object into Propeller RAM or EEPROM to compile your code first. Once you do that, the archive function should make a .zip file with all the objects that you are using with a readme.txt file that shows the hierchy of the objects.