simpleWalker: 4-legged 2-servo walking robot
Step 6: Upload the program
The arduino program is very straigforward. I used an RS232 dongle made on breadboard to upload the program. Again the schematic, bootloader sources etc. can be found on the wiki. The arduino sketch:
<code>
#include <Servo.h>
Servo frontservo,backservo;
char forward[] = {60,100,100,100,100,60,60,60};
void setup()
{
frontservo.attach(9);
backservo.attach(10);
}
void loop()
{
for(int n=0;n<4;n++)
{
frontservo.write(forward[2*n]);
backservo.write(forward[(2*n)+1]);
delay(300);
}
}
</code>




