Creating an Universal Remote With NodeMCU

by diegomenezes in Circuits > Wireless

1984 Views, 3 Favorites, 0 Comments

Creating an Universal Remote With NodeMCU

Artboard Copy.jpg

In this project, we will build a universal remote control capable of cloning and send infrared signals. A web interface will be used to control all this process.

A NodeMCU in conjunction with an infrared photoreceptor will be responsible to clone the remote control keys. It will use the RAW method for that. An IR LED will send the cloned code to the devices.

The project was created by:

  • Rodrigo Andrades
  • Diego M. G. Vieira

Components

This project does not demand much material. You will need

  1. NodeMCU
  2. Breadboard
  3. Jumper Wires
  4. Micro USB Cable
  5. VS1838B IR Photoreceptor / Receiver
  6. Infrared Emitter Led (IR) 5mm 940nm

And of course the remotes you want to clone

Wiring It Up

Layout.jpeg

Above is the wiring layout for this project:

After completing the connections. It is time to install the Arduino IDE and import it into the IRremoteESP 8266 library.

Load the code in the NodeMCU and see if it is working

you can find the complete code here: Github : IR Control

Coding: Setting Things Up

1.png

here we basically configured the WiFi network and the serial speed rate to 115200 baud

Coding: the Loop

2.png

Coding: Web Socket

3.png

Coding Web Client

web_page.html.png

Using the Project

WhatsApp Image 2018-06-23 at 19.25.14.jpeg

With the application running you can now go your browser and switch between the send and receive modes. When the app is in receive mode, it can capture the key code and attach it to an action. To dispatch an action switch back to "send mode" and click into the desired action