Ashok is the founder of Embedded Club, an Indian maker community, focusing on embedded programming and design, STEM education and training, application development, and 2D/3D animation. In this project, Ashok demonstrates how to use ESP8266 and implement an infrared remote control for an air conditioner. This method can also be used to implement any infrared remote control device.
Preparation tools
1× Any ESP8266 development board
1× Amazon Eco Dot speaker
1× IR LED
1× OLED display
First, emulate the IR commands of the original remote control on a new microcontroller unit, which can be any ESP8266 development board .
You will then need to turn on the original IR remote and send the IR signal to the analyzer in order to understand the code that sends the signal from the remote to the air conditioner. In this project, the waveform captured by the analyzer shows the following parameters:
Center frequency: 38 Khz
Modulation method: Pulse width
button value (12 bits)
Power on/off: 0xD81
Fan on/off: 0xD82
Swing on/off: 0xD84
Thermal On/Off: 0xD88
Ashok successfully cloned the IR remote based on these input values and turned its MCU into a new IR remote he could control. Next, he used a 100R resistor to connect P0_12 to the negative terminal of the IR LED and the positive terminal of the IR LED to 3.3V.
Then, test whether the new infrared remote control can control the air conditioner until it works properly.
Alexa Skills Setup Tutorial
In this step, you need to use Amazon Alexa Developer Skills to create all the necessary commands to the air conditioner.
Enter the INTENTS and call names to be used in the application.
The end point should be set to the default skill code area.
No lambda function is required.
HTTP requests can be handled in the code area.
Implementation
Finally, the code can be implemented using the ESP8266 to read and write HTTP requests to AWS (Amazon Web Services). Ashok used the www.iotboxapp.com website to direct his HTTP requests and then added the OLED to the board via the I2C interface. A diagram of this process is as follows:
Blockdiagram
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet