Introduction: The Carpet Crawler - a BEAM Robot.

  
The Carpet Crawler is a small robot which will shuffle its way across your floor.  Watch the video, and you will see how it got its name (that, and I'm an old prog rock fan at heart!). 

BEAM stands for Biology, Electronics, Aesthetics, Mechanics, and is a school of robot design working on the KISS philosophy - I prefer the "Keep It Sweet and Simple" definition.   Google for 'beam robotics' and you'll find a veritable plethora of sites.

The 'brain' of this robot is a latching relay, the sensors are a pair of microswitches and the 'muscle' is a modified servo-motor. Energy comes from 2 x AAA batteries.  A pair of LEDs brighten things up a bit.

The original video was blocked almost immediately (in the US) by the copyright stazi, so here it is without the music. 
Look HERE to hear the eponymous track (but no Peter Gabriel on this one).

 

Step 1: Tools and Materials

  
Almost no special tools required - You will just need standard electronics workbench tools.  However, you will need a Very Small crosspoint screwdriver to open the servo.

Brass strip - 1/32" x 1/4" x 8"
Plain stripboard
2 offcuts of copper strip stripboard
M2 (2mm) nuts and bolts

Micro RC servo (7.5g) with horns and screws.
DPCO latching 3 Volt relay - I got mine from Farnell (9899600)
(They no longer do PCB mounting. This is the SMD version - smaller)
2 x miniature microswitches.  Mine came out of a couple of CDROM drives
2 x LEDs - I used red ones.  (Blue or white may not work in this application)
1 x 100R resistor (Use 47R if using yellow or green LEDs)
2 x AAA battery holder and batteries
Thin link wire
 
In the UK we use both Imperial and metric measures.  Personally, I tend to think Imperial but measure metric.  As a quick reference,  3mm is 1/8"   25mm is 1"   305mm = 1'.

Step 2: Modifying the Servo

  
A standard radio control servo is designed to be driven by a train of pulses to accurately position the output shaft over 160 degrees or so of travel according to the input pulse width.  This is not what I want for this project, but a servo is also a motor and a gearbox in a small box, which is! 

There are two ways of modifying a servo for continuous rotation.  One involves retaining some speed and direction control of the motor by 'tricking' the control electronics.  This still needs the pulse train input to control it.  I don't want this.

The other way is to hack out the control electronics and connect the input wires directly to the motor which means you will need to control motor speed and direction directly.  This is what I've done here.
I did this some time ago without taking photos so I'll just give you THIS link to Guibot's Instructable.  Servos vary, but the principle is the same :- Stop potentiometer limiting movement : Cut off endstop tab on gear : Connect motor leads to supply leads.

Lay out the gears in line as you disassemble the gearbox as they are surprisingly tricky to put back if you lose the sequence.  If you don't have any silicone grease, preserve as much as possible as you do this and smear it back on the touching surfaces when you reassemble the servo.

Step 3: The Mechanics

  
Look at the photos for detail of how the chassis goes together.  If I was doing this again I'd make the stripboard a few holes longer and mount the relay back of the batteries.  Use the 2mm nuts to make a pillar for the servo to sit on, and tighten everything down tight, but make sure you don't put too much strain on the servo mounting lugs.

I found the best way to cut away the stripboard was with sharp cutters, holding and twisting a small portion from the centre of the area first, then nibbling away at each side, hole by hole.

Use a vice to put the initial bend on the brass strip, and then adjust the angle with a pair of pliers. I used a Dremel to give a bit of an edge for more grip front and back.

Mount the servo and put the front pair of horns on before you drill the brass, and drill and mount one by one to get the holes in the right places.  Use the tiny screws which come with the servo to fix the front strips and longer self-tappers for the rear as these also act as a mechanical endstop by hitting the stripboard. Put a piece of 3mm heatshrink over the long screws. 

The microswitches are glued onto the servo using contact adhesive, and positioned so the long screw clicks the microswitch just before the mechanical endstop.

Drill a hole in the base of the battery holder to fit the top of the bolt and allow it to sit flat on the board.  Attach with hot-glue.

Step 4: The Theory

  
The clever bit of the Crawler is the latching relay.  Unlike a normal relay, once power is removed from a latching relay coil, it will stay in the state it's in.  To flip it over you pulse the coil with the opposite polarity and it will change state and stay there until the next flip.  It's a relay with a memory!  The wiring of the DPCO (double pole change over) contacts reverses the polarity to the motor (so it reverses direction) on each flip of the relay.

The pulses to the relay coil come from the two microswitches which are activated when the relay horn gets to each endstop.  As each switch is activated, it energises the coil until the motor has reversed and driven the horn away from the endstop.

Step 5: The Electronics

  
I discovered that I could mount the SMD relay on a scrap of veroboard to make connections to it more easily.  The pin / hole pitch is entirely different, but with the thinness of the pins and the spacing of the holes it worked.  The pins are only just long enough, so cut off the tiny plastic lugs on the relay with a craft knife to give an extra fraction, and solder very carefully.

The LED board is another scrap of stripboard.  The LEDs are in parallel but connected so that current flowing one way lights one of them, and flowing the other way lights the other.  Solder them with the large terminal of one to the small terminal of the other.

I've used the same colour wires as the circuit diagram to make it easier to follow.   
Connect the small boards to the relay, switches and motor using thin link wire.  Cut the wires to length and solder to the boards and then attach them to the servo and battery holder with hot-glue.

The on/off switch is a small piece of tapered wood which is inserted to lever the battery away from the holder contact.

Step 6: Getting the Crawler Crawling

  
The little brute fired up first time and went crawling off.  If yours jams against one side and won't budge, swap over the motor connections to set it right.  By trial and error I foun
d that it got better grip if I flattened  the angles a bit.  If it goes off to left or right, gently tweak the arm of the microswitches to equalise the movement. 

While we're on the subject of robots you might like to read my story about the Instructables Robot.

"The Carpet Crawlers" is a song from "The Lamb Lies Down on Broadway" album by Genesis, before they became the Phil Collins band.  I saw them on the 'Lamb' tour in 1975, and the image of Peter Gabriel slithering around the stage in the Slipperman costume (with the inflatable genitals) is one which is not easily forgotten.

Comments

author
danmcclain made it!(author)2012-03-14

Very Cool!

author
Robot+Lover made it!(author)2011-10-16

Lots of clicking I would imagine with the relay and the switches. Cool instructable!

author
blinkyblinky made it!(author)2011-06-17

Very clever.

author
keithosmarferrer made it!(author)2011-06-09

it is like a flip flop circuit mate!!!

author
tzq33tdq made it!(author)2011-02-21

can it turn? this is an awesome robot!!!

author
AndyGadget made it!(author)2011-02-23

Nope - Forward only.
To turn, you'd need to limit the travel of the servo arm on one or the other side, which would need more complicated mechanics and electrics.
The aim of this was simplicity, although a much larger steering one shuffling around the garden would be an interesting idea.

author
tzq33tdq made it!(author)2011-02-23

If i made to and joined them together with a servo would it turn?

author
Unit042 made it!(author)2010-11-03

Interesting robot. I wonder if the relay could be omitted in favor of a custom made switch that performed the same function as the microswitches and realys put together.... Anyway, the relay is Double Pole Double Throw (DPDT). I think 'change-over' might be the archaic term from the days of relay-operated telephone system(?)

author
AndyGadget made it!(author)2010-11-06

You could do it with a simple DPDT switch, but the mechanics would be more intricate and it would need to be a very light operation switch.  The momentum of the system would have to carry the switch beyond the 'break' position to make the other contacts.  A toggle-type switch would work but the force required to operate it would be higher.  It would be easier on a larger Crawler.
Regarding the DPCO - I'm pretty archaic myself and we used to use DPDT and DPCO interchangably, but you're right, DPDT is current and fits in with the naming scheme for other types.

author
Unit042 made it!(author)2010-11-06

By custom-made, I was referring to home-made, ie taking some stiff copper wire/paperclips, a square inch of cardboard(plus or minus a bit), and a tiny, weak spring (easy to get from dead printers, VCRs etc.), and a bit of patience. If you had enough patience, the homemade DPDT might work... although it would take a bit of ingenuity to make sure the problem you mentioned does not occur.
Dagnabbit, now I've got to go try it. My sense of curiosity won't leave me alone.... ;)

author
AndyGadget made it!(author)2010-11-09

Hmmm.... That's a thought. I don't think you'd even need the spring if you used a slide type arrangement with drawing pins (thumbtack) contacts and foil to make the connection. I wouldn't trust my life to it though #;¬)

author
D5quar3 made it!(author)2010-04-15

 Cam i get the latching relay on an U.S. site

author
AndyGadget made it!(author)2010-04-17

Yep, THIS is the same part from the U.S. Farnell.

author
MoritzB made it!(author)2010-04-09

Wow very clever circut, also the face of it looks great!

author
sci4me made it!(author)2010-04-06

clever!

author
metldrumer984 made it!(author)2010-02-25

CUTE!! and awesome 5/5 =]

author
winterfresh made it!(author)2010-02-03

 Sorry to rain on your instructable, but your video seems to have been blocked. Still looks cool though!

Keep Instuctableing!

author
AndyGadget made it!(author)2010-02-03

Rats!  I had the original song up on YouTube and would take it down if the copyright stazi objected, but it looks like there's a fingerprinting mechanism going on and it was blocked within an hour of going up - I'd gone to bed.

I'll repost the video later, but it won't be the original tune.

author
winterfresh made it!(author)2010-02-05

Well, the video is now up and, -Er, crawling. Still looking awesome! Maybe you could slap an Arduino onto one of these and teach it obstacle avoidance?

Scooch, scooch, scooch...

author
AndyGadget made it!(author)2010-02-06

Steering on this is rather limited - It only knows about 'forward'.
Another project, Techno-Gecko, is at the early design stage and this will have a PicAxe brain, directional control and sensors.  Big on design - Small in size.

author
AndyGadget made it!(author)2010-02-04

Can you see the vid now?
Music (of a sort) coming later.

(Your arduino head and my crawler could be brothers . . . Scary!)

author
incorrigible+packrat made it!(author)2010-02-04

Is that lambswool under its naked copper feet?

Wish I coulda seen the Lamb live, but being two years old at the time, I might not have fully appreciated it.

How about building a two motor version with radio control, so that the carpet crawler can heed its caller?

author
AndyGadget made it!(author)2010-02-04

I thought about putting a few direct references in the text but I decided it would pass wayyyy to many people by.  (Small 2 servo walker in the design stage at the moment.  May be a while though.)

author
incorrigible+packrat made it!(author)2010-02-04

Oh well, if people don't get it, they'll just carry on as if nothing were there.

author
frollard made it!(author)2010-02-03

I really look forward to seeing it move - looks really cool :D

author
Frivolous+Engineering made it!(author)2010-02-02

Excellent 'ible!  The blinking LED eyes are a nice touch.

Can't wait to see the video.

About This Instructable

18,304views

55favorites

License:

More by AndyGadget:Simple Effective Mouse CatcherAuto-lock mod for smartphone caseThe Orange Screamer
Add instructable to: