Summary config LIRC 0.10.1-5.2
as Transmitter and Receiver for Raspberry (Raspbian or DietPi) with Kernel 4.19 based on elmicha comment on 30 May 2019
- copy all files from this repo to your Raspberry
- install patched and builded LIRC as it does here for 4.19 kernel
cd ./lirc-patched
sh ./deps-install.sh
sh ./lirc-install.sh // this will fail it's normal
- run
sh lirc-setup.sh
to copy all files at needed destination - add two lines into
/boot/config.txt
or/DietPi/config.txt
dtoverlay=gpio-ir,gpio_pin=17
dtoverlay=pwm-ir-tx,gpio_pin=18
- reboot
- Your IR-receiver signal pin should be connected into GPIO-17
- Your IR-transmitter should be connected into GPIO-18
- IR-led circuit and connection to Raspberry
- open first ssh terminal for Raspberry and run
journalctl -fu lircd
- open second ssh terminal for Raspberry and run
irsend --device=/var/run/lirc/lircd-tx SEND_ONCE TEST KEY_0
- success result you should see at your first ssh session
To check supported IR and enabled protocols run sudo ir-keytable
, to enable all possible protocols run sudo ir-keytable -p all -t -v
- Send and Receive doesn't work from the same Raspberry device, in my case i tested with Raspberry Zero, but if we use two separate devices it works