手可摘棉花

Using ESP8266 to implement Alexa-controlled infrared remote control

 
Overview

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

 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-24 18:13:10

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号