Add new comment

LibreELEC with TSSP 4P38 IR receiver

Submitted by Erik Wegner on
Aufmacherbild

Hardware setup

Requirements: a Raspberry PI 2, a SD card with LibreELEC, a TSSP 4P38, some jumper wires

See https://www.raspberrypi.org/documentation/usage/gpio/ for GPIO pins

  • Connect 3 V (PIN 1) to receiver V
  • Connect Ground (PIN 6) to receiver GND
  • Connect GPIO 17 to receiver DATA/OUT

Software setup

  1. Mount flash partition writeable: mount -o remount,rw /flash
  2. Edit nano /flash/config.txt and insert
    dtoverlay=gpio-ir,gpio_pin=17
    after # End of default configuration and before [all]
  3. Remount flash partition readonly: mount -o remount,ro /flash
  4. Reboot!

Check basic IR functions

Check that lirc has been startet:

$ dmesg | grep lirc
[    7.370062] rc rc0: lirc_dev: driver gpio_ir_recv registered at minor = 0, raw IR receiver, no transmitter

Kill lircd and start mode2 to see raw events:

$ killall lircd
$ mode2
Using driver default on device /dev/lirc0
Trying device: /dev/lirc0
Using device: /dev/lirc0
Warning: Running as root.
space 16777215
pulse 446
space 3003
pulse 508
space 2991
pulse 551

Create keymap

$ irrecord /storage/.config/lircd.conf

Now configure these keys:

KEY_UP, KEY_DOWN, KEY_LEFT, KEY_RIGHT, KEY_PLAYPAUSE, KEY_MENU, KEY_OK

Sources

Associated categories
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.