GPIO based IR RX
If you want to use your extra IR receiver by connecting to GPIO port (ex. one of expansion connectors), gpio-ir-recv module with LIRC can be used.
IR functionality based on GPIO is supported on Ubuntu version 3.14.29-58 (2016/05/18) or higher version.
LIRC version of Ubuntu 18.04 is higher than Ubuntu 16.04 and related files under /etc/lirc/ are configured differently.
Hardware Example
The below picture is a sample test environment using a IR receiver module, ROM-WT138LM that is the same module built in ODROID-C2 board.
IR Receiver | C2 Expansion Net | Description |
---|---|---|
IR | Pin#7 GPIOX.BIT21 | IR output |
GND | Pin#14 GND | Ground |
3V3 | Pin#17 3.3V Power | 3.3V Power |
Configuring LIRC for GPIO based IR RX
LIRC version of Ubuntu 18.04 is higher than Ubuntu 16.04 and related files under /etc/lirc/ are configured differently.
Select your Ubuntu version first among the following guides.