
Make you ideal fun
37
delay
(
80
);
frontServo
.
write
(
frontLeftUp
+
9
);
rearServo
.
write
(
backLeftForward
-
6
);
delay
(
110
);
frontServo
.
write
(
centerPos
);
rearServo
.
write
(
centerPos
);
delay
(
80
);
}
// walk forward to the left
void
moveTurnLeft
()
{
frontServo
.
write
(
frontTurnRightUp
);
rearServo
.
write
(
backTurnLeftForward
);
delay
(
110
);
frontServo
.
write
(
centerTurnPos
);
rearServo
.
write
(
centerTurnPos
);
delay
(
80
);
frontServo
.
write
(
frontTurnLeftUp
);
rearServo
.
write
(
backTurnRightForward
);
delay
(
110
);
frontServo
.
write
(
centerTurnPos
);
rearServo
.
write
(
centerTurnPos
);
delay
(
80
);
}
// blink LED. This function can be called in any situation you want. Just
add led(); in the code where you want to blink the LED.
void
led
(){
// loop for the LED to blink it 5 times for 0.05 sec on and 0.1 sec off
for
(
int
l
=
0
;
l
<=
5
;
l
++)
{
digitalWrite
(
13
,
HIGH
);
delay
(
50
);
digitalWrite
(
13
,
LOW
);
delay
(
100
);
}
}
Содержание Insect-Robot
Страница 1: ...Make you ideal fun 1 Insect Robot Instruction Manual...
Страница 9: ...Make you ideal fun 9 Figure 11 Bend the cutted paper into the shape as figure 12 Figure 12...
Страница 11: ...Make you ideal fun 11 Install the Nano board on the servo as figure 15 but don t fix Figure 15...
Страница 27: ...Make you ideal fun 27 Figure 43...
Страница 28: ...Make you ideal fun 28 After adjusting the angle you can completely fix the forefoot Figure 44...