Infrared Remote Control - Keywish Hummer-Bot-1.0 Instruction Manual

Table of Contents

Advertisement

else if
(dr
>= 1000) {
digitalWrite(M1, 0);
analogWrite(E1, 180);
digitalWrite(M2, 180);
analogWrite(E2, 0);
Serial.println("Turning
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
<=
digitalWrite(M1, 255);
analogWrite(E1, 0);
digitalWrite(M2, 0);
analogWrite(E2, 255);
Serial.println("Turning
delay(700);
// turn around if both sides are less than 20cm in distance
}
}
}
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.
//the speed value of motorA is 180
//the speed value of motorB is 180
left2");
20
&&
dl
<= 20) {
//the speed value of motorA is 255
//the speed value of motorB is 255
around");
76

Advertisement

Table of Contents
loading

Table of Contents