User Manual

112
Lesson 23 IR Remote Control
Introduction
Each button of an IR remote control (as shown below) has a string of specific encoding.
When a button is pressed, the IR transmitter in the remote control will send out the
corresponding IR encoding signals. On the other side, when the IR receiver receives certain
encoding signals, it will decode them to identify which button is pressed.
Components
- 1 * Raspberry Pi
- 1 * Breadboard
- 4 * Jumper wires (Male to Male, 2 red and 2 black)
- 1 * Network cable (or USB wireless network adapter)
- 1 * IR Receiver
- 1 * RGB LED module
- 1 * IR Remote Control
- 1 * 3-Pin anti-reverse cable
- 1 * 4-Pin anti-reverse cable
Experimental Principle
In this experiment, we use the lirc library to read infrared signals returned by buttons of the
remote control and translate them to button values. Then use liblircclient-dev (C) and pylirc
(Python) to simplify the process for reading values from the remote control. In this experiment
use 9 buttons on the top of the remote to control the color of the RGB LED module. Each row
represents one color, and each column represents the brightness.
OFF Dark
Bright
Red
Green
Blue