Normally, a remote controle is used to create a lirc configuratiomn file by using irrecord
. The project provides the tools for doing the reverse. Create a config file manually, then, teach the codes to a universal remote control.
- Nodemcu
- BC337 Transistor
- 1KΩ Resistor
- 47Ω Resistor
- IR LED 940nm
- Click the "Sketch" -> "Include Library" -> "Manage Libraries..." Menu items.
- Enter
IRremoteESP8266
into the "Filter your search..." top right search box. - Click on the IRremoteESP8266 result of the search.
- Select the version you wish to install and click "Install".
Update your wifi & password in the
esp8266-ir.ino
source file then compile and uploadesp8266-ir.ino
Copy irc.default
as lirc.conf
and add the customized IR codes, then copy it to the required device
sudo systemctl restart lirc
update the ESP8266 IP address in the
remote.py
(server_ip
)
Start the server (python remote.py
) on your local machine and go to: http://127.0.0.1:8989/
The page will show you al list of button name configured in lirc.conf
and when clicked it would send a request to the NodeMCU which in turn will send the respective IR code.
Follow the remote control instruction to learn new codes