Gespeichert von Erik Wegner
am/um
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
- Mount flash partition writeable:
mount -o remount,rw /flash
- Edit nano /flash/config.txt and insert
dtoverlay=gpio-ir,gpio_pin=17
after# End of default configuration
and before[all]
- Remount flash partition readonly:
mount -o remount,ro /flash
- 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
- https://libreelec.wiki/configuration/ir-remotes#lirc-support
- https://www.einplatinencomputer.com/raspberry-pi-infrarot-empfaenger-und-fernbedienung-einrichten/
- https://oberguru.net/elektronik/raspberrypi/ir-raspberry-pi-openelec.html
- https://forum.libreelec.tv/thread/22434-libreelec-pi-zero-dac-zero-ir-remote-problem/?postID=143018&highlight=gpio_in_pin#post143018