Servidor de Controle Remoto IR

Descontinuado. Ver em ESP8266

Lista de material:

Arduino Header Pinout:

(Fonte: raspberrypi.com e ChatGPT)

Software:

(com ajuda do ChatGPT)

Depois de instalar e configurar o SO, instale o LIRC. Update the package index and upgrade the installed packages:

$ sudo apt update

$ sudo apt upgrade

Install the LIRC package and its dependencies:

$ sudo apt install lirc

Configure LIRC to work with your IR receiver by editing the LIRC configuration file:

$ sudo vi /etc/lirc/lirc_options.conf

Change the following line:

driver = devinput

to:

driver = default

Edit the LIRC hardware configuration file to match your IR receiver:

$ sudo nano /etc/lirc/hardware.conf

Uncomment the following lines and set the GPIO pin number that your IR receiver is connected to:

LIRCD_ARGS="--uinput --listen"

LOAD_MODULES=true

DRIVER="default"

DEVICE="/dev/lirc0"

MODULES="lirc_rpi"

GPIO_IN_PIN=<GPIO_pin_number>

Restart the LIRC service to apply the changes:

$ sudo systemctl restart lirc

Test the IR receiver by running the following command:

$ irw