40
int
E1
=
5
;
//PWMA
int
M1
=
9
;
//PWMA
int
E2
=
6
;
//PWMB
int
M2
=
10
;
//PWMB
void setup
()
{
}
void loop
()
{
analogWrite
(
M1
,
0
);
analogWrite
(
E1
,
150
);
//the speed value of motorA is 150
analogWrite
(
M2
,
0
);
analogWrite
(
E2
,
150
);
//the speed value of motorB is 150
delay
(
5000
);
//******** ******************************//forward
analogWrite
(
M1
,
0
);
analogWrite
(
E1
,
0
);
//the speed value of motorA is 0
analogWrite
(
M2
,
0
);
analogWrite
(
E2
,
0
);
//the speed value of motorB is 0
delay
(
1000
);
Summary of Contents for Hummer-Bot-1.0
Page 1: ...Hummer Bot 1 0 Instruction Manual V 2 0 ...
Page 18: ...15 Step4 You need to install motors Figure 3 1 5 Schematic diagram of motor installation ...
Page 50: ...47 Figure 3 2 15 Diagram of Data without Obstacles ...
Page 83: ...80 Test code Path hummer bot Lesson ModuleDemo IrkeyPressed IrkeyPressed ino ...