WEBVTT

NOTE
Tutorial 10 - Infrared Remote Control - ADA031-V5.0
Transcript by RoboGeeks: https://robogeeks.org/videos/eNe1wABShUE

1
00:00:04.400 --> 00:00:10.300
This lesson introduces the principle of infrared remote control and demonstrates the usage of

2
00:00:10.300 --> 00:00:18.530
infrared remote control through an example program. Required components, robotic arm control

3
00:00:18.530 --> 00:00:27.590
board, infrared remote, OLED screen, USB cable, battery. An infrared remote control system

4
00:00:27.590 --> 00:00:33.490
generally consists of a transmitter and a receiver. The ADEPT robotic arm control board

5
00:00:33.490 --> 00:00:38.750
integrates an infrared receiver, which is connected to pin D2 of the microcontroller.

6
00:00:39.430 --> 00:00:44.610
When you press a key on the infrared remote controller, a set of modulated signals will be

7
00:00:44.610 --> 00:00:51.870
sent. The infrared receiver outputs demodulated digital pulses. Each key corresponds to a unique

8
00:00:51.870 --> 00:00:58.350
pulse code, and the system identifies different keys by these codes. In addition, different remote

9
00:00:58.350 --> 00:01:03.890
controllers have different encoding schemes. It is normal that the same signal code maps to

10
00:01:03.890 --> 00:01:18.630
different keys on different remotes. Let's start the demonstration. First, plug the OLED into the

11
00:01:18.630 --> 00:01:24.810
controller board, then connect the controller board to your computer with a USB cable. Connect the

12
00:01:24.810 --> 00:01:43.040
battery and turn on the power switch. Next, open the example code. Select the board type and serial

13
00:01:43.040 --> 00:02:02.250
port, then upload the program to the control board. After successful upload, open the serial monitor.

14
00:02:03.610 --> 00:02:09.610
Point the remote controller at the infrared receiver on the control board and press any key. Both the

15
00:02:09.610 --> 00:02:16.810
serial monitor and OLED screen will display the corresponding key code. Code principle, initialize the

16
00:02:16.810 --> 00:02:24.650
infrared receiver instance. Continuously capture and decode infrared remote signals inside the loop, then output the

17
00:02:24.650 --> 00:02:28.810
decoded key value to the serial monitor and OLED screen.
