Let's Make Robots!


Object Avoidance
quab.bas2.88 KB

Update 3/27: Per request, I've attached the code I used for this guy.


This is my next little object-avoider, made from spare parts from around the house. I actually made this guy a while ago, but I wanted to try to program a fun personality for it. Since that never happened, I'll just post it and move on.

Parts: Since the bot is powered by low-torque pager motors (yes, with pepsi caps for wheels), the body needed to be lightweight. So i made it out of some old CD cases. I accidentally stepped on the plastic partway through the process, so I ended up with lots of little plastic parts. no biggie; now the shell is just made from lots of little parts. The buck-teeth are made from an outlet cover.

This project also used my first robot part ever: my picaxe project board. While creating my own "Start Here F-type" robot, I accidentally soldered the A/B motor ports into oblivion. So as you can see, I bypassed them, and soldered pins directly to the motor driver chip outs. the rest of the chip is plugged into the board.

Code: I haven't had much success with servos, so I wanted to make an object avoider that didn't use one. To avoid getting snagged on the "blind spots"to either side of the sonar sensor, I made it wiggle from side to side as it moves forward. (I noticed that crabs, who can't move their heads, do the same thing). The goal was to make the bumper switches unnecessary. 

Instead of programming "turn left / turn right" subroutines, i made a single "turn" that either went left or right based on a "direction" bit variable. The main loop then includes an "inc direction" line that toggles which way to go. That way I only have to say "go forward for X, then turn" instead of "go forward for x, turn left, go forward for x, turn right".

QUAB also has a speaker that beep-bop-boops one of dozens of little sounds when he encounters objects, in an effort to give him some personality. But there was a lot of background noise in the movie, so you'll have to take my word for it.

The top of the shell is taken from the same scrapped toy that provided my other bot's housing.quab_top.jpg

Looks tough, doesn't it? The treads are extra Tamiya treads from the infamous gearbox.


I vant to avoid your object. blah!


my jimmy-rigged h-bridge (blue wires).


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
I like the use of the safety outlet cover for the front support. I like trying to use everyday items to solve problems instead of running to the store and buying something off the shelf.
These are fun to see wandering around, all one unit, twitching about. Looks like fun.

Good observation on the crabs. I'll have to remember taht one. I also like the front view as he appears to be lop-sided - excellent character.


yeah, i wish i could say that was on purpose. Almost all features of my robots happen as compensation for something going wrong. In this case, I needed small wheels to fit on a clipped pager motor. The Tamiya wheels were perfect, but they're convex, so i wouldn't be able to glue them. A pepsi cap, on the other hand .... was supposed to be better.
hey thanks
You are developing a style, and I like it :D
Looks good, moves great! Well done. 
Hey, perhaps you could insert a pearl between the 2 sticks at the front?

TWSS? Ok I'm done... I will admit I had the ZZ Top song in my head when I read the post.

I like the idea of reusing parts from around the house. Did your bumper switches have leads that long or did you add something? I got a couple with roller wheels on the end but they are much shorter.

They came that long. HobbyEngineering.com.