My procedure :
Wiring :
RPi3 -> remote
Gnd -> Gnd
+3,3v -> +vcc
GPIO 23 -> Signal
1) Installing "lirc" package with :
- Code: Select all
pacman -S lirc
2) change file "/boot/config.txt" to enable lirc :
- Code: Select all
dtoverlay=lirc-rpi
dtparam=gpio_out_pin=24
dtparam=gpio_in_pin=23
dtparam=gpio_in_pull=up
3) Creating a file /etc/module-load.d/lirc.conf with this (use "nano") :
- Code: Select all
lirc_rpi
4) Creating a file /etc/conf.d/lircd.conf
- Code: Select all
LIRCD_ARGS="--uinput"
DRIVER="default"
DEVICE="/dev/lirc0"
MODULES="lirc_rpi"
5) Creating a file /etc/modprobe.d/lirc.conf
- Code: Select all
options lirc_rpi gpio_in_pin=23 gpio_out_pin=22
6) load service "lircd.service" like this : (with systemctl command...)
7) Creating a file /etc/lirc/lircd.conf.d/lircd.conf :
- Code: Select all
# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.9.0-pre1(default) on Sat Oct 29 14:49:46 2016
#
# contributed by DOUG WYMAN
#
# brand: KEYES
# model no. of remote control:
# devices being controlled by this remote:
#
begin remote
name KEYES
bits 16
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100
header 9087 4478
one 609 1632
zero 609 526
ptrail 610
repeat 9089 2212
pre_data_bits 16
pre_data 0xFF
gap 108011
toggle_bit_mask 0x0
begin codes
KEY_UP 0x629D
KEY_DOWN 0xA857
KEY_LEFT 0x22DD
KEY_RIGHT 0xC23D
KEY_OK 0x02FD
KEY_1 0x6897
KEY_2 0x9867
KEY_3 0xB04F
KEY_4 0x30CF
KEY_5 0x18E7
KEY_6 0x7A85
KEY_7 0x10EF
KEY_8 0x38C7
KEY_9 0x5AA5
KEY_0 0x4AB5
KEY_BACK 0x42BD
KEY_EXIT 0x52AD
end codes
end remote
RQ : it's speciale file for KEYES remote, each remote has a special file like this...