Page 265 - Amphibionics : Build Your Own Biologically Inspired Robot
P. 265
Amphibionics 06 3/24/03 9:02 AM Page 244
Amphibionics
PROGRAM 6.4
:1000100003195C28F03091000E0880389000F03011
motor-test.hex file
:1000200091030319910003198F0303195C28182801
listing :1000000061288F00220884002009282084138F088B
:100030002B2003010C1820088E1F20088E0803199E
:100040000301900F252880060C28262800000F2881
:10005000841780055C280D080C0403198C0A803075
:100060000C1A8D060C198D068C188D060D0D8C0D35
:100070008D0D5C288F018E00FF308E07031C8F07CB
:10008000031C5C2803308D00DF3048203C288D01A4
:10009000E83E8C008D09FC30031C51288C070318A6
:1000A0004E288C0764008D0F4E280C1857288C1C86
:1000B0005B2800005B28080083130313831264008D
:1000C0000800831603308500013086008312061273
:1000D00083160612831206138316061383128612E2
:1000E00083168612831286108316861083120611D9
:1000F000831606118312861183168611053083122A
:10010000A2000830A00073308E000A300120323087
:100110008E000A3001200616831606128312061777
:100120008316061383120B308F00B8303B20061263
:10013000831606128312061383160613831286147F
:1001400083168610831206158316061183120B3050
:100150008F00B8303B20861083168610831206115C
:0C0160008316061183128B286300B4285C
:02400E00F53F7C
:00000001FF
In the next program, the robot’s four basic walking subroutines
will be developed. The robot will walk forward, turn to the left,
walk in reverse, and then turn to the right. As described earlier,
in order for a two-motor, four-legged robot to walk successfully,
it is necessary for one set of legs to be in the forward position
when the other set of legs are in motion. This ensures static sta-
bility. Otherwise, the robot does not get maximum body lift or
forward/reverse motion with each leg cycle. For example, when
the crocodile robot moves in a forward direction, the microcon-
troller first turns on the left leg motor. A small delay is intro-
duced so that the leg has time to move past the leg position
244