27
Press the “▲” “▼” “>” “<" "OK" button in your remote, you will see their IR code
as following picture:
Write down the IR code of your control buttons “▲” “▼” “>” “<” “OK” button.
Step B) Replace the IR code in lesson 2 sketch file:
Open your Lesson 2 code again, then you will see following lines define the IR
CODE of each button:
#define IR_ADVANCE 0x00FF18E7 //code from IR controller “▲” button
#define IR_BACK 0x00FF4AB5 //code from IR controller “▼” button
#define IR_RIGHT 0x00FF5AA5 //code from IR controller “>” button
#define IR_LEFT 0x00FF10EF //code from IR controller “<" button
#define IR_STOP 0x00FF38C7 //code from IR controller “OK” button
#define IR_turnsmallleft 0x00FFB04F //code from IR controller “#” button
Please change the value of each button in above lines to match the code
from Step A). If you don’t know how to change, just
send email to
and give us the code of each button from
Step A)
, I can
help you to change the code and email new sketch file to you.
Above method can also allow you to use other IR sending device (i.e TV
remote, DVD remote, air conditioner remote etc) to control the car. Just use
Step A)
to get the key code of your remote and change the sketch file in Step
B), it will work.
Summary of Contents for 3
Page 6: ...6 ...
Page 13: ...13 Connection Step 1 Connect OSOYOO Motor Shield V1 0 with the motor ...
Page 18: ...18 ...
Page 25: ...25 Step 5 Choose corresponding board and port for your project upload the sketch to the board ...
Page 39: ...39 Step 7 Connect ultrasonic module with OSOYOO motor shield V1 0 as below connection diagram ...
Page 40: ...40 Step 8 Connect buzzer module with OSOYOO motor shield V1 0 as below connection diagram ...
Page 48: ...48 Step 4 Choose corresponding board port for your project upload the sketch to the board ...