IR Station

Infrared Remote Controller with ESP8266 WiFi-module
You can control your home appliances with your smartphone or laptop.

Main parts

  • ESP-WROOM-02 (ESP8266 WiFi Module)
  • IR Receiver
  • IR LED
  • Indicator LED

How to Use

Setup the Device

  1. Supply power to the device.
  2. Connect your cellphone or laptop to Wi-Fi SSID “IR-Station”.
  3. Access http://192.168.4.1 in a browser
  4. Enter Wi-Fi SSID of your home and its password
  5. Enter a device name you like. Because it will be a part of URL, you cannot use space or symbol character.
  6. Click OK button.
  7. If connection succeeded, Wi-Fi “IR-Station” will automatically disappear.
  8. Connect your cellphone or laptop to your home’s Wi-Fi.
  9. Access http://DEVICE_NAME.local in a browser. (the smart phones or laptops with Bonjour)
  10. Access http:/192.168.xx.xx (one example) in a browser. Please see the device log data to get the device IP address. (the smart phones or laptops with no Bonjour)
  11. If something appears, setup is complete.

Store Signals

  1. Access http://DEVICE_NAME.local in a browser. DEVICE_NAME is the device name you entered in the previous form.
  2. Look at the form of the bottom of the screen.
  3. Click “Recode a Signal” button.
  4. Select a channel you want to assign a signal.
  5. Enter a name of the signal. Don’t use Japanese character.
  6. Click Recode button. An LED indicator will light.
  7. Press the button on the remote controller toward the device to store the signal.

Remote Control

  1. Access http://DEVICE_NAME.local in a browser.
  2. Click a button which assigned a signal you want to send.

LED Indicator

Color Status
Red Error
Green Booting, Sending Signal or Receiving Signal
Blue Listening

Display Sample

display

How to Make

Required Library

Please Add the Libraries below to your Arduino IDE

  • Arduino TimeLib (https://github.com/PaulStoffregen/Time/blob/master/TimeLib.h)
  • Arduino Json (https://github.com/bblanchon/ArduinoJson)

Steps

  1. Gather the components.
  2. Assemble the components according to the circuit diagram.
  3. Connect the device and the PC with a serial-to-USB conversion module.
  4. Prepare Arduino IDE and serial-USB converter’s driver.
  5. Open the preferences of Arduino IDE and fill in this URL: http://arduino.esp8266.com/stable/package_esp8266com_index.json to “Additional Boards Manager URLs”.
  6. Add “Generic ESP8266 Module” in the Arduino IDE Board Manager.
  7. Add the required libraries to your Arduino IDE in the Arduino IDE Library Manager or zip files.
  8. Open IR-station firmware in the Arduino IDE.
  9. Select “Generic ESP8266 Module” and configure each item of board settings properly. See Arduino Board Settings below.
  10. Select correct serial COM port and upload program to the device. When upload program, GPIO0 and GPIO2 must be pulled-up, and GPIO15 must be pulled-down. It’s necessary to reset the devie immediately before upload. It’s a little difficult.
  11. The uploading takes about 30 seconds.
  12. Upload the SPIFFS data: menu -> tool -> ESP8266 Sketch Data Upload. (See https://github.com/esp8266/Arduino/blob/master/doc/filesystem.md)
  13. Process termination.

Arduino Board Settings

item select
Board ESPino (ESP-12 Module)
Flash Mode QIO
CPU Frequency 80MHz
Flash Size 4M(3M SPIFFS)
Reset Method ck
Upload Speed 115200

Components

Device Components

Components Details Quantity
ESP8266 WiFi Module ESP-WROOM-02 1
IR receiver PL-IRM0101-3 or equivalents 1
IR LED anything good 2 or 4
Nch FET BS170 or equivalents 1
IR LED Current Regulation Resistor 4.7 ohms, 1W 1~2
Pull-up/down Resistor 10k ohms 5
Indicator LED RGB full-color LED 1
Voltage Regulator output: 3.3V 150mA or more 1
Bypass Capacitor 0.1uF 2~3
Power Stabilization Capacitor 470uF~1000uF 1

Optional Device Components

Components Details Quantity
Reset Switch tact switch 1
Program Upload Switch tact switch 1

Requires

Requires Details Quantity
Serial-to-USB conversion Module such as FT232 1
Power Supplyer over 3.3V 1

Circuit Diagram

sketch

Sample

sample