Make you ideal fun
34
Code
// Servo Library
#include <Servo.h>
// Servo name
Servo frontServo
;
Servo rearServo
;
// time delay between steps
int
walkSpeed
=
500
;
// center servos
int
centerPos
=
90
;
// servo angles for walking pattern
int
frontRightUp
=
70
;
int
frontLeftUp
=
110
;
int
backRightForward
=
70
;
int
backLeftForward
=
110
;
// another center position
int
centerTurnPos
=
81
;
// servo angles for walking pattern
int
frontTurnRightUp
=
70
;
int
frontTurnLeftUp
=
110
;
int
backTurnRightForward
=
70
;
int
backTurnLeftForward
=
110
;
// variable for distance value
int
distance
=
0
;
// average distance value
int
distanceCheck
=
0
;
// Array for distance values
int
collectDistance
[
5
];
// Variables for counters
int
i
;
int
f
;
int
r
;
// assign analog pin A1
Содержание 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...