84
#include <IRremote.h>
*/In this section, we use infrared remote control, so we need to
call the corresponding library file, as for what is in the library file, we will not
study, and interested friends can drive research. We have put this library files on the
CD-ROM, we need to copy this folder to the Arduino IDE installation path "libraries"
folder, otherwise the program can not compile. */
int
E1
=
5
;
//PWMA
int
M1
=
9
;
//DIRA****************************************left
int
E2
=
6
;
//PWMB
int
M2
=
10
;
//DIRB****************************************right
int
RECV_PIN
=
12
;
long
expedite1
=
0xFF6897
;
/* Define a long integer expedite1 variable, and assign this
variable 0xFF689, FF689 is the infrared remote control button encoding */
long
expedite2
=
0xFFB04F
;
long
advance
=
0xFF18E7
;
long
back
=
0xFF4AB5
;
long
stop
=
0xFF38C7
;
long
left
=
0xFF10EF
;
long
right
=
0xFF5AA5
;
IRrecvirrecv
(
RECV_PIN
);
decode_results results
;
void
setup
()
{
Serial
.
begin
(
9600
);
irrecv
.
enableIRIn
();
// Initialize the infrared receiver
}
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 ...