Google+

Thursday, 3 April 2014

DIY handmade Hexapod with arduino (Hexdrake)

Hello, I,m David and in this instructable I`ll show how I made this hexapod whose name is Hexdrake.
Since I was 16 I became interested in electronic and later in robotics. After getting some level and programming skills using arduino I decided to build a robot, but not a simple robot with one pair of wheels, something more interesting. I liked the idea of having a hexapod but did not have much money to buy one.
So I built a low cost 2DOF hexapod made with hand-cut wood and Sg90 servos.

Step 1: Designing the parts and making the templates

I designed the pieces according to the size of SG90 servos. The CAD file is only for reference and I did after designing the pieces by hand on paper to use as a template. I used a sheet of wood about 3 mm of thick. After having the templates the next step is to pass them on to the wooden board.
According to the size of the servo the number of pieces are:
48x A part
6x B
12x C
12x D
12x E
12x F
12x G
12x H
6x I
2x J

Step 2: Time to cut!!!

Tools:
Saw, lime, electric dril and a good hand.
Before cutting some pieces is easier to drill the holes using a 3mm drill. I advise to use a fine saw to cut all the pieces accurately. After cutting each piece filing the edges to be soft.

Step 3: Glue certain parts between them

Tools:
Glue(Superglue for more strength), twezers, toilet paper (to clean the excess glue).
To make the main parts of each leg where the servos are subject I needed to unit 4 A pieces. Then, for each leg glue a piece B with C. And the last thing to be are two H pieces together.
*Be careful to align the holes well of certain pieces or can also be done is glue before and then do drills the holes.

Step 4: Painting and Decorating

Materials and tools:
EVA foam(red and black), glue, scissors, rule, pencil and black acrylic paint.
For a more professional finish I decided paint some of the pieces with black acrylic paint, and the body and legs cover them with black and red eva foam.

Step 5: Attaching the servos to the legs and body

Materials:
A lot of screws, screwdriver and 12 SG-90 servos.

Step 6: Add electronics and connect.

Electronic:
An arduino. USC 16-channel servo controller, UBEC 8A hobbywing, lipo battery.
Power supply:
The servo controller needs two power supplies: servo power supply and chip power supply.
-Servo power supply (+): VS (left of the blue connecting terminal at Position 3 in the figure)
-Servo power supply (‐): GND (middle of the blue connecting terminal at Position 3 in the figure)
Servo power supply’s parameters depend on the parameters of the attached servo. For example, if the SG-90 servo has a power supply of 4V‐5V, the servo power supply can use the power source of 4‐5V.
-Chip power supply (+): VSS (right of the blue connecting terminal at Position 3 in the figure)
-Chip power supply (‐): GND (middle of the blue connecting terminal at Position 3 in the figure)
There is a VSS requirement of 6.5‐12V. If the chip power is input through the VSS port, the power supply has to range from 6.5 to 12V.
Connections Arduino, USC and servos:
What is marked red in the figure are the servo’s connectors for signal wires (be careful about the direction when
connecting to the servo).
To connect the USC controller simple connect de rx of the USC to the tx of arduino and the tx pin with the rx pin of the USC. And connect GND pin of USC with arduino.

usc_en.pdf431 KB

Hello, I,m David and in this instructable I`ll show how I made this hexapod whose name is Hexdrake.
Since I was 16 I became interested in electronic and later in robotics. After getting some level and programming skills using arduino I decided to build a robot, but not a simple robot with one pair of wheels, something more interesting. I liked the idea of having a hexapod but did not have much money to buy one.
So I built a low cost 2DOF hexapod made with hand-cut wood and Sg90 servos.

Step 1: Designing the parts and making the templates

I designed the pieces according to the size of SG90 servos. The CAD file is only for reference and I did after designing the pieces by hand on paper to use as a template. I used a sheet of wood about 3 mm of thick. After having the templates the next step is to pass them on to the wooden board.
According to the size of the servo the number of pieces are:
48x A part
6x B
12x C
12x D
12x E
12x F
12x G
12x H
6x I
2x J

Step 2: Time to cut!!!

Tools:
Saw, lime, electric dril and a good hand.
Before cutting some pieces is easier to drill the holes using a 3mm drill. I advise to use a fine saw to cut all the pieces accurately. After cutting each piece filing the edges to be soft.

Step 3: Glue certain parts between them

Tools:
Glue(Superglue for more strength), twezers, toilet paper (to clean the excess glue).
To make the main parts of each leg where the servos are subject I needed to unit 4 A pieces. Then, for each leg glue a piece B with C. And the last thing to be are two H pieces together.
*Be careful to align the holes well of certain pieces or can also be done is glue before and then do drills the holes.

Step 4: Painting and Decorating

Materials and tools:
EVA foam(red and black), glue, scissors, rule, pencil and black acrylic paint.
For a more professional finish I decided paint some of the pieces with black acrylic paint, and the body and legs cover them with black and red eva foam.

Step 5: Attaching the servos to the legs and body

Materials:
A lot of screws, screwdriver and 12 SG-90 servos.

Step 6: Add electronics and connect.

Electronic:
An arduino. USC 16-channel servo controller, UBEC 8A hobbywing, lipo battery.
Power supply:
The servo controller needs two power supplies: servo power supply and chip power supply.
-Servo power supply (+): VS (left of the blue connecting terminal at Position 3 in the figure)
-Servo power supply (‐): GND (middle of the blue connecting terminal at Position 3 in the figure)
Servo power supply’s parameters depend on the parameters of the attached servo. For example, if the SG-90 servo has a power supply of 4V‐5V, the servo power supply can use the power source of 4‐5V.
-Chip power supply (+): VSS (right of the blue connecting terminal at Position 3 in the figure)
-Chip power supply (‐): GND (middle of the blue connecting terminal at Position 3 in the figure)
There is a VSS requirement of 6.5‐12V. If the chip power is input through the VSS port, the power supply has to range from 6.5 to 12V.
Connections Arduino, USC and servos:
What is marked red in the figure are the servo’s connectors for signal wires (be careful about the direction when
connecting to the servo).
To connect the USC controller simple connect de rx of the USC to the tx of arduino and the tx pin with the rx pin of the USC. And connect GND pin of USC with arduino.

Step 7: Programming

Software:
Arduino IDE, USC sofware.
Before programming with arduino is necessary to know the limits of all the servos and know the limits values. For example using the mouse to drag the slider in the servo panel (drag the servo panel corresponding to the channel with which the servo is connected). So connecting the USC inside the hexapod with the usb to the program I get all de max and min values of each servo.
Now is time to program the arduino to control the USC. The servo controller is a slave device, meaning that it can either accept commands or execute preset commands. It cannot think at all. Communication protocol: serial communication (TTL level), baud rate 9600, no check bit, 8 data bits, 1 stop bit To control the servo through the servo controller. The Command format are:
-Control one single servo:
#1P1500T100\r\n
Data 1 refers to the servo’s channel.
Data 1500 refers to the servo’ location, in the range 500‐2500.
Data 100 refers to the time of execution and represents the speed, in the range 100‐9999
-Control multiple servos:
#1P600#2P900#8P2500T100\r\n
Data 1, 2, and 8 refer to the servo’s channels
Data 600, 900, and 2500 refer to the locations of the servos that correspond to three channels
Data 100 refers to the time of execution and represents the speed of three servos. Regardless of the number of servos, there is only one time, or one T. The command is executed at the same time; that is, all servos operate simultaneously.
Within the limits of each servo is necessary to calculate the maximum range or "step" of all horizontal servos to find the smallest of them and convert it as the maximum of one step. And this variable enter into the equations of all movements. The same would have to make with the vertical servos.

Step 8: Adding some personality

I was thinking things I could add to my hexapod and one of the things that came to me were add a good eyes. I decided to add the eyes to hexapod to give more expression to the time to move or express actions. Design sketches on paper of various shapes for the eyes. In the end I decided on the design of the photos.
In the end I decided on the design of the photos. This consists of a strip of 32 blue LEDs around the edge and a matrix of 5 rows and 9 columns of red LEDs. Thus the matrix can display various kinds of pupil and the pupil can move throughout the matrix.

Step 9: Eyes controller board

To control both eyes I designed a simple first version control board based on two atmega8 controlling both matrix directly. In future versions i will do an improved more effective board for complete control of the matrix and the strip of blue LEDs.

Step 10: Adding a Jaw

To make the jaw I did some previous designs in cardboard to find the most correct form to the hexapod. When I found the form, I make the jaw in a small block of aluminum from a heat sink. It is driven by two servos moving together. After, I added it inside a strip of rubber to increase grip, and paint and decorate as the same style of the hexapod.

Step 12: Final results

This is the final result. In the future i will make actualizations, for example a controller with two joysticks, etc
Read More


Join Us

//go.ad2up.com/afu.php?id=25365

© Copyright 2012, Design by Lord HTML.