In the previous chapters the ESP866 has been controlling relays, reading temperature and humidity, but not all the appliances around the house can be controlled with a relay. There are some of them that can be controlled using the infrared like TV or air-conditioning Now let's see how we can use ESP8266 to turn on/off a Panasonic TV. This can be extended to other TV brands by modifying the addresses and values.
ESP8266 and Infrared communication
Hardware components
To complete this project you will need:
- ESP8266
- Infrared LEDs (maybe from an old remote)
- Some 100-ohm resistors (depending on the number of your infrared LEDs, one per LED)
- One 1-Kilo Ohm resistor
- One 2N2222 NPN transistor
Use the following schematic for...