As the the name implies, ESP8266 5V Wi-Fi relay switch modules are Wi-Fi enabled, relay power switches. The module includes a detachable ESP-01 microcontroller board. The main function of these boards are to be used as wireless power switches accessible from Smartphones.
The ESP8266 5V Wi-Fi relay switch modules are small, inexpensive modules measuring in at 45 x 28 x 20 mm. It needs 5V DC to operate. Similar to other Songle relay switch modules, the on-board relay can tolerate 110 – 250V AC or up to 30 V DC at 10A. The module is also equipped with serial port debugging pins and has a build-in ‘flyback’ diode to protect the circuit from voltage spikes.
ESP8266 5V Wi-Fi Relay switch module specifications
DC Pins: 3. IN, VCC, GND / S, +, – (marked).
AC Sockets: 3. NO (normal open), COM, NC (normal closed) (marked)
Working voltage: 5V DC (connected via screw terminal connectors). 12V DC modules also available
Operating current: >1000 mA (1000 mA tested successfully)
Serial port debugging pins: Tx, Rx, Vcc, GND (marked)
Board baud rate (MCU STC15F104W): 9600 bps, but 115200 bps is also been reported to work in some cases
ESP-01 baud rate: default is 115200 bps, is set to 9600 through programming
On-board LED: yes
Size: 45 x 28 x 20 mm (L,W,H). Might be module dependent.
Pin size: male, 5 x 2.54 mm
Weight: 40 g
The ESP-01 module
The ESP8266 5V Wi-Fi relay switch module is shipped with a detachable ESP-01 microcontroller board. It will most likely be the black edition (ESP-01s) with 1 MB of flash memory. Out of the box, this module is flashed with an AT command firmware (AI-Thinker firmware).
By using the serial port debugging pins settings for things such as the working mode (see below), baud rate, TCP server port and the number of connections can be set, but these need to be re-programmed each time the module was disconnected from power.
The ESP8266 5V Wi-Fi relay switch module automatically reduces the input voltage of the ESP8266 to 3.3V DC.
Setting up the ESP8266 5V Wi-Fi relay switch module
Out of the box, some option settings of the ESP8266 5V Wi-Fi relay switch modules need to be set (see The ESP-01 module above). Depending on its purpose/desired working mode (see below), serial commands need to be send to the module using its serial debugging pins and serial debugging software (see below). The pins are to be connected to a USB to TTL serial converter, e.g. FTDI USB to TTL serial converter module, which, in turn, is connected to a PC via an USB port.
Unfortunately the default process of setting up an ESP8266 5V Wi-Fi relay switch module is impractical. The biggest downfall of these modules are that the options settings will be lost each time power is disconnected from the module. This means that the module needs to be installed and connected in its functional environment before the option settings can be set.
ESP8266 5V Wi-Fi relay switch modules can be used as stand-alone Wi-Fi connected device (AP or access point mode) or can be connected (on)to a local area network (STA or station mode). With AP mode up to 5 connections can be made at the same time and it is said that a connection can be made from as far as 400 meters away. Either way, connection and communication to the module is made by using a TCP connection App (such as EasyTCP for Android). Baud rates of 115200 or 9600 bps can be used.
The process itself can be seen here.
To get started with the ESP8266 5V Wi-Fi relay switch modules you will need
- ESP8266 5V Wi-Fi relay switch module (buy 1 from BangGood | buy 3 from BangGood)
- A personal computer to be able to do debugging
- Serial port debugging software (download the original debugging software | download better alternative debugging software [‘Terminal’])
- FTDI USB to TTL serial converter module (buy 1 from BangGood)
- mini-B USB cable (buy 1 from BangGood)
- Breadboard (buy 1 from BangGood | buy 5 from BangGood)
- 5 VDC 1 A power supply converter module (buy 1 from BangGood | buy 3 from BangGood | buy 5 from BangGood)
- 20 cm female to female jumper cable dupont wire set (buy 1 from BangGood)
Although the ESP-01 and relay switches on their own are considered fairly low power consumers (300 mA and ~0.45 Watts respectively), the ESP8266 5V Wi-Fi relay switch modules needs a fair amount of current to operate. I tested two power supply converter modules (5V/700 mA and 5V/1000 mA). The module only functioned normally when 1000 mA current was applied.
Although proper instructions might be hard to come by, ESP8266 5V Wi-Fi relay switch modules are still inexpensive and small enough to incorporate into DIY projects. Although they programming can be a bit confusing and impractical, these modules are great to be used as Smartphone operated trigger switches for high voltage units like lights in Home automation projects.
More microelectronics related posts
22 July 2018
Fiverr is the world’s largest freelance services marketplace for entrepreneurs to focus on growth & create a successful business at affordable costs.
22 June 2018
See how to add the #ESP8266 board to the #Arduino IDE... #electronics
5 June 2018
Read more about using the UART interface... #microcontrollers #IoT
5 June 2018
Read more about the FTDI USB to TTL serial converter module... #BehindTheScenes #diy #microelectronics
2 June 2018
Read more about using serial ports for communication... #microelectronics
19 December 2017 | Updated 5 June 2018
Check out the inexpensive ESP-01 Wi-Fi module... ESP8266 #microcontrollers #DIY