background image

4. Sequencing the Hexapod Gait

Gaits

Now that you have constructed your hexapod, it is time to make it walk. A method of walking
forward with legs is called a

gait

, and animals or robots with many degrees of freedom have

a variety of gaits available – humans can walk, run, hop, or skip; horses can walk, trot,
canter, or gallop, and so on. Your hexapod is so simple that it has just one possible gait for
forward motion, called the

tripod gait

.

In the tripod gait, your hexapod has three feet in contact with the ground at all times: the
front and back legs on one side and the middle leg on the other side. The angle of the middle
servo determines which side is up and which side is down. It achieves forward motion by
pushing those feet backwards against the ground while the other feet move forward through
the air. Then the hexapod shifts its weight to the other three feet and moves forward in the
same way. By continuously shifting its weight using the middle legs, then moving the raised
feet forward, it walks forward.

Walking forward with the Maestro Control Center

You can easily assemble motion sequences using the Maestro Control Center’s sequencer
feature. For documentation on the sequencer, see

Section 4.c

of the

Micro Maestro

User’s Guide

[http://www.pololu.com/docs/0J40]

.

Use the controls on the Status tab of the Maestro Control center to move your hexapod
to each of these four positions, pressing the “Save Frame” button after each, to save a
sequence.

Sample Project: Simple Hexapod Walker

© 2001–2010 Pololu Corporation

4. Sequencing the Hexapod Gait

Page 15 of 21

Содержание Sample Project: Simple Hexapod Walker

Страница 1: ...ls and Tools 3 3 Construction 5 4 Sequencing the Hexapod Gait 15 5 Using a Script for Obstacle Avoidance 18 6 Suggested Modifications and Improvements 20 7 Conclusion and Community 21 Sample Project S...

Страница 2: ...The 2 high hexapod is capable of walking forward and backward and can turn left and right Two forward looking distance sensors provide obstacle avoidance The brain of the hexapod is the Pololu Micro...

Страница 3: ...harp GP2Y0D810Z0F Digital Distance Sensor 10cm This is a tiny distance sensor with a long enough range to keep your hexapod out of trouble 1 1171 Battery Pack 4 8 V 150mAh This battery pack will provi...

Страница 4: ...anged slightly since this sample project was written Versions shipping now have solid black cases instead of transparent blue ones and a portion of the top plane on the opposite side of the output sha...

Страница 5: ...tep 2 Set up the Maestro for self power With your battery disconnected attach a wire red from the positive terminal of the battery connector to VIN Take care not to short or damage any of the componen...

Страница 6: ...header included with the Maestro temporarily connect a servo to port 0 Make sure to connect the wires correctly with the brown or black wire connected to ground You should hear a short high pitched wh...

Страница 7: ...the servos and sensors to the Micro Maestro This step requires patience and care A second pair of hands could be very useful Use solder to tin the leads of the servos so that they can be connected ini...

Страница 8: ...onnections for the two sensors Ribbon cable makes the assembly relatively clean but you can use whatever wire you have available Look ahead in the instructions to see where the sensors are going to go...

Страница 9: ...object is detected If the LEDs are always on you probably forgot to set the ports to inputs in Step 3 Step 6 Construct the legs Unfold the paper clips into straight pieces of wire Pliers make ugly de...

Страница 10: ...h 1 25 1 75 1 75 and 1 25 like this The middle legs of the hexapod The segments at the end should be 1 25 in length Hot glue the legs onto servo horns Use a straight horn for the middle legs and cross...

Страница 11: ...neutral positions as shown in the picture Fix them in place with the included screws holding the legs as you tighten them so that you do not apply torque to the fragile servo gears Glue the Maestro to...

Страница 12: ...e hexapod flush with the bottom so that there will be as much clearance as possible Make sure that the middle legs have plenty of room to turn left and right without hitting the battery Glue the senso...

Страница 13: ...ms and maximums Set the neutral positions as the Go to values for each servo and set Min and Max values so that your hexapod will never destroy itself Adjust the angles of the wires so that all six fe...

Страница 14: ...ou might want to do is to add a dab of hot glue to each foot so that the metal is less likely to scratch up your work surface Your hexapod is now ready to be programmed Sample Project Simple Hexapod W...

Страница 15: ...chieves forward motion by pushing those feet backwards against the ground while the other feet move forward through the air Then the hexapod shifts its weight to the other three feet and moves forward...

Страница 16: ...dle legs touching the ground Frame 1 down legs move back front legs move forward Frame 2 weight shifted to the other tripod Sample Project Simple Hexapod Walker 2001 2010 Pololu Corporation 4 Sequenci...

Страница 17: ...select the Run script on startup option on the Script tab and apply settings your hexapod will automatically start to walk You can now disconnect it from USB and allow it to walk on its own Reconnect...

Страница 18: ...customize this to get the behavior you want start back up if both sensors see an object left_sensor right_sensor logical_and if back back back goto start endif back up and turn right if the left sens...

Страница 19: ...frame_0_2 Frame 2 100 6528 frame_1 Frame 3 120 4992 6976 frame_0_2 Frame 0 return sub frame_0_1_2 2 servo 1 servo 0 servo delay return sub frame_0_2 2 servo 0 servo delay return sub frame_1 1 servo d...

Страница 20: ...and detect obstacles sooner Alternative servos the entire design could be scaled up A power switch so that the battery does not have to be unplugged over and over Boost regulation http www pololu com...

Страница 21: ...re your projects We would love to hear about your experiences and we would be delighted to see any improvements or alterations you make We will post hexapod projects submitted by others below Hexapod...

Отзывы: