Yahboom Omibox Robot Kit arduino IDE course 5.16 Infrared remote control
1-1.The position of the Infrared receiver on the robot car
1-2.Learn about the Arduino Uno pins connected to the Infrared receiver of Omibox programmable robot
1-3.Learn about Infrared remote controller
As shown on the left figure above, the infrared receiver on the Omibox programmable robot circled by the red wire frame on the left.
As shown on the right figure above, infrared remote controller.
The infrared remote controller is used to send a signal to the infrared receiver, and the infrared receiver is used to receive the signal sent by the infrared remote controller.
According to the hardware manual, we can know that infrared receiver is connected the A3 of the Arduino Uno.
Please see the IR.ino file for this experimental procedure.
1.We need to open the code of this experiment: CarRun.ino, click“√” under the menu bar to compile the code, and wait for the word "Done compiling " in the lower right corner, as shown in the figure below.
2. Click 【Tools】 --- 【Board】 -- we need to choose Arduino Uno. As shown in the figure below.
3.In the menu bar of Arduino IDE, we need to select 【Tools】---【Port】--- selecting the port that the serial number displayed by the device manager, as shown in the figure below.
4. After the selection is completed, you need to click “ → ”under the menu bar to upload the code to the Arduino UNO board. When the word “Done uploading” appears in the lower left corner, the code has been successfully uploaded to the Arduino UNO board, as shown in the figure below.
After the program is uploaded, open the power of the robot car. Infrared remote controller can control robot car to complete the following function.
The code of the experiment: 16.Infrared remote control.rar