76
In front the sections, we focus on the "automatic driving", and they are obstacle avoidance experiments.
We didn't seem to have relationship with the car, it is lack of fun. Now in the next few sections, we will
develop the car from other aspects to make sure that we are able to control the car personally, then we will
start from the "infrared remote control", followed by "2.4G handle remote control" and the last is "mobile
phone Bluetooth control".
3.2.5 Infrared Remote Control
3.2.5.1 Suite Introduction
Infrared remote control is widely used in every field which is known to everyone, since it can control
other electrical appliances, naturally it can control the Hummer-Bot car. Let us take a look at the infrared
remote control first:
Infrared wireless remote control kit consists of Mini ultra-thin infrared remote controller and 38KHz
infrared receiver module, the remote controller has 17 function keys, the transmission distance is up to 8
meters which is very suitable for controlling equipment indoor. The infrared receiving module can receive
38KHz modulation remote control signal. Through the Arduino programming, the decoding operation of
Infrared wireless remote control signal can be realized so as to produce all kinds of remote control robot and
interactive works. The suite is shown in Fig.3.2.34.
else
if
(
dr
>=
1000
)
{
digitalWrite
(
M1
,
0
);
analogWrite
(
E1
,
180
);
//the speed value of motorA is 180
digitalWrite
(
M2
,
180
);
//the speed value of motorB is 180
analogWrite
(
E2
,
0
);
Serial
.
println
(
"Turning left2"
);
delay
(
200
);
// Special case If the return distance on the right is more than 1000, then the probe is blocked
and turn left at this moment
}
else
if
(
dr
<=
20
&&
dl
<=
20
)
{
digitalWrite
(
M1
,
255
);
//the speed value of motorA is 255
analogWrite
(
E1
,
0
);
digitalWrite
(
M2
,
0
);
analogWrite
(
E2
,
255
);
//the speed value of motorB is 255
Serial
.
println
(
"Turning around"
);
delay
(
700
);
// turn around if both sides are less than 20cm in distance
}
}
}
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 ...