Home > News & Updates > Electronics News Updates > Universal Remote Control with Alexa and IR

Universal Remote Control with Alexa and IR

Summary of Universal Remote Control with Alexa and IR


Summary (under 100 words) I built an Alexa-controlled IR remote using an Alexa smart home skill, AWS Lambda, Adafruit IO MQTT broker, and an ESP8266-based Arduino (Adafruit Feather HUZZAH) running IRremoteESP8266. Voice commands go from Alexa to Lambda, which publishes MQTT messages to Adafruit IO; the ESP8266 subscribes, decodes the commands, and emits IR signals to the TV. Currently includes Samsung codes, with plans to fetch wider device codes from online databases.

Parts used in the Universal Remote Control with Alexa and IR:

  • Amazon Alexa (Smart Home Skill)
  • AWS Lambda (back-end for the skill)
  • Adafruit IO (MQTT broker)
  • Adafruit Feather HUZZAH ESP8266 (Arduino-compatible device)
  • IR LED and associated circuitry for IR transmission
  • IRremoteESP8266 library
  • MQTT libraries for ESP8266
  • TV (Samsung codes used)
  • IR code database (external databases for TV codes)

I hate looking where is the remote controller or grab my phone to control my TV or other IR devices. Alexa and hacking saved my day!

Story

Quick Solutions to Questions related to Universal Remote Control with Alexa and IR:

  • How does the voice command reach the TV?
    The voice command goes to Alexa, triggers the smart home skill, calls AWS Lambda, which publishes MQTT messages to Adafruit IO; the ESP8266 subscribes and sends IR signals to the TV.
  • Can I use AWS Lambda as the back-end for the Alexa skill?
    Yes, AWS Lambda is used as the back-end for the Alexa smart home skill in this project.
  • Why was Adafruit IO chosen for this project?
    Adafruit IO was chosen because it provides a free MQTT broker suitable for low traffic and simple connections from small devices.
  • Which Arduino-compatible board was used?
    The Adafruit Feather HUZZAH ESP8266 was used because it supports WiFi, MQTT, and IR libraries.
  • Which IR library works with the chosen device?
    The IRremoteESP8266 library works with the Adafruit Feather HUZZAH ESP8266 and provides examples including MQTT communication.
  • Are TV codes included for all brands?
    Currently only Samsung TV codes were added; other brands are available in external databases and may be integrated later.
  • Why was the MKR1000 not used?
    The MKR1000 was not used because the IR library did not yet support that device at the time.
  • Is AWS IoT used for device communication?
    No, AWS IoT was not used; the project uses Adafruit IO MQTT because smaller devices did not support AWS IoT authentication mechanisms in this case.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top