This tutorial includes all the necessary information for the mechanical construction, electronic architecture, and software packages for Protei_007, including the laser templates and code packages. This can be constructed in a few hours. Required tools include a laser cutter.
MAJOR THANKS TO SEEED STUDIO for supporting the building of the following Protei prototype!
Step 1: MATERIALS
3' x 3' plexiglass, either 1/8" or 1/4"
Servo motors (preferably with a metal coupler - I use 17, 8 large ones, 5 medium ones, 4 micro servos) - I like these from sparkfun, but you can get them at many electronics or hobby shops)
3/8" vinyl tubing (for example)
18 guage wire
TOOLS / Accessories
DC power supply
Step 2: Laser Cut the Plexiglass Ribs
There are three sizes of servos I used for the joints, each which I embedded in the plexiglass ribs. These ribs, which are aligned perpendicularly along the length of the body, have five holes and a slot for the servo. The holes are for the wiring and structural support from one list to the next. Here are the template files used for the laser cut. I made these in Illustrator. If the servos used are slightly different in size, alter the file prior to printing so that the servos fit in snuggly.
I used three sizes of servos. I made 8 large ribs for servos, 5 mid sized ribs for mini servos, and 4 small ribs on the ends (tail and head) for the micro servos.
Download the laser template files.
Step 3: Glue the Servos in the Ribs
Attach a servo arm that is just linear to each servo.
Once the plexiglass ribs are cut, embed the servos in each rib. Sand down the plexiglass if you are having trouble fitting the servo in. Make sure that the servo arm can spin freely. If not, readjust the fitting of the servo inside the plexiglass so that it can. Use epoxy to hold them in place.
Step 4: Connect the Ribs
I used two methods for connection of one servo joint to the next. In the center of the body, I used rigid perforated brackets. I attached these to the servo arm each side of the servo arm with small machine screws (the ones that came with the servos).
For the joints towards either end of the snake, I used a more flexible, organic joint, composed of the flexible rubber tubing. For this, cut about 3 inches of rubber tubing, and slip the tubing onto the servo arm. If you are having trouble sliding it on, use a heatgun by heating the tube, then pushing it onto the servo arm before it cools. For added structural support, screw the tubing into the servo arm.
When you do this, make sure that the servo arm, is always on the same side (so that when you attach the plexiglass ribs together, the joints will all be on one side of the snake body).
Step 5: BUILD the Structure Out
This is a repetitive step. But keep attaching all the ribs together until you have built the entire snake.
String the servo wires that hang free through the holes in the side of the ribs, from the back backward of the snake to the front.
Step 6: WIRE It Up
Run wires from the each servo through the lateral holes on the ribs all the way to the head of the snake, where the housing for the microcontroller and power supply will be. Keep good track (using color coding is best)
Step 7: Plug in Wires to a Breadboard or a Perf Board
Follow this schematic.
Step 8: Add a Power Supply
Because the Arduino hardware only outputs 40mAmp per pin, but the servos can require up to 2 amps at full torque (though generally less), an external power supply might be necessary. Depending on the number of servos and their specifications, you can decide what specifications for a battery is required. A 6V NiMH like this works but it is heavy. Plug this into the power and ground from the battery as seen on the schematic.
Step 9: Upload the Code
I modelled this type motion:
Step 10: Let It Run!
Step 11: Optional: Add a Camera
I use this wireless spy camera . It is very simple to hook this up, using a nine volt battery to power it. Because series 2 xbees use 2.4 gigahertz wireless, you should avoid a camera with that same frequency of transmission (try 950 MHz). Just power the camera, plug in the receiver, hook up the receiver to a monitor using RCA cable, or to a computer for camera vision. TO go from RCA to USB try a grass valley converter.
Step 12: Optional: Add Wireless Control
Using xbees and a hacked joystick, I added remote control capability:
First, I got the xbees talking to each other.
Then I got some button presses from one xbee to move some servos from the other.