Introduction: Creating an Universal Remote With NodeMCU

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

Step 1: 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

Step 2: Wiring It Up

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

Step 3: Coding: Setting Things Up

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

Step 4: Coding: the Loop

Step 5: Coding: Web Socket

Step 6: Coding Web Client

Step 7: Using the Project

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