Recommended Free Tools
“ESP8266 WiFi 5V 1 Channel Relay Delay Module IoT Smart Home” is not a standardized model number. It is marketplace wording for several different boards, including ESP-01/ESP-01S relay carriers, integrated ESP-12F relay boards, and products such as the Sonoff RE5V1C. The name alone does not establish the GPIO, trigger polarity, firmware, isolation, relay rating, or safe mains use.
Before connecting power, identify the exact PCB revision, ESP module, relay part number, supply arrangement, and control pin. These modules are useful for low-voltage prototypes and local automation, but an unidentified exposed board should not be treated as a certified household wiring product.
As an Amazon Associate I earn from qualifying purchases.
What this module actually contains
A typical board combines:
- an ESP8266 Wi-Fi microcontroller;
- a 5V relay coil;
- a transistor or MOSFET relay driver;
- a flyback diode;
- a status LED;
- possibly a 5V-to-3.3V regulator;
- relay contacts marked
COM,NO, andNC.
The ESP8266 itself is a 3.3V device. Espressif specifies approximately 2.7–3.6V operation and recommends a 3.3V supply with at least 500mA available for ESP8266/ESP8285 designs. A board advertised as “5V” may therefore mean that its input or relay coil is 5V, with an onboard regulator supplying the ESP8266—not that its GPIO pins accept 5V logic. See Espressif’s ESP8266 hardware guidance.
Identify the exact board before wiring it
Record these details from the PCB and its documentation:
#1 Best Overall
- Based on ESP-01S module.
- This module uses ESP-01S as the main control and is remotely controlled by mobile phone APP for smart home or IOT projects.
- With this smart relay, you can easy to DIY your smart switch and control any device through your phone anywhere.
- Light weight, compact size and very easy to install in a small case.
- Package Includes: 5Set ESP8266 Transceiver + Relay Switch Board
- ESP-01, ESP-01S, ESP-12F, ESP-12E, ESP8285, or another module;
- relay manufacturer and part number;
- input labels such as
5V,VCC,VIN,3V3,USB, or AC input; - the relay-control label and actual GPIO;
- whether a regulator, optocoupler, button, or programming header is fitted;
- whether the relay input is active-low or active-high;
- how the board behaves after power-up, reset, Wi-Fi loss, and firmware failure;
- the screw-terminal labels and the relay’s printed contact rating.
Do not assume that two similar-looking marketplace boards use the same pin. A documented ESP-12F relay board uses GPIO5 by default and exposes COM, NO, and NC, but another revision or an ESP-01S carrier may route the relay elsewhere. The documented board also has multiple possible power inputs and warns that only one should be used at a time. Treat that as a board-specific rule, not a universal feature. See the ESPHome ESP-12F relay reference.
What “one channel” means
One channel means one independently controlled relay. It does not necessarily mean that the relay pin is freely available on a header. Some boards permanently connect the relay driver to one GPIO; others permit a resistor or jumper change.
NodeMCU and WeMos labels are aliases rather than GPIO numbers. Common mappings are:
Free tools Windows power users keep installed
One-click scans. No signup required.
| Board label | GPIO | Comment |
|---|---|---|
| D1 | GPIO5 | Common relay choice |
| D2 | GPIO4 | Common general-purpose choice |
| D3 | GPIO0 | Boot strap pin |
| D4 | GPIO2 | Boot strap and onboard LED on many boards |
| D8 | GPIO15 | Boot strap pin |
For a documented board, GPIO4 or GPIO5 is usually preferable where available. Avoid GPIO6–GPIO11 because they are generally connected to flash memory. Use GPIO0, GPIO2, and GPIO15 only when the board’s design preserves the required startup levels. Espressif documents GPIO0, GPIO2, and GPIO15 boot requirements in its ESP8266 boot-mode documentation.
Relay contacts: COM, NO, and NC
- COM: the common moving contact;
- NO: normally open; COM connects to NO when the coil is energized;
- NC: normally closed; COM connects to NC when the coil is not energized.
The coil and contacts are separate parts of the relay, but that does not automatically make the complete PCB safe or fully isolated. An optocoupler on a board also does not prove that grounds, power rails, clearances, or the finished assembly are isolated.
Rank #2
- 3V Relay Module: Working Voltage: DC 3-3.3V; Working Current: 65mA; Trigger Current: 3mA;Load: 10A 250VAC / 10A 30VDC;Load Current: 10A max
- Optocoupler Isolator: 3V/3.3V Power Relay Module Supports Photocoupler Isolation Control
- High Level Trigger: The Relay Module is Triggered by High Level Signal, Which Can Be Input From Microcontroller IO
- Jumper Caps: By Removing the Jumper Caps on the Pins,You can Select Whether the Relay and the Signal Share the Same Power Supply or Not,But We Are Recommended to Share the Same Power Supply
- Wide Application: These 3V Relay Power Switch Module Works Well With ARM /PIC /AVR /MCU/Raspberry/CNC machine/ PS4/3.3V /NodeMCU/ ESP8266 Module etc.
A relay may be marked “10A 250VAC,” but that marking applies to the particular relay under specified conditions. It is not proof that an assembled hobby board is suitable for a continuous 10A household, motor, heater, lamp, or construction-site load. Inductive, motor, capacitive, and high-inrush loads impose different stresses from resistive loads.
Delay, inching, self-lock, and power-on behavior
Marketplace listings use these terms inconsistently:
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errors- Self-lock or latching mode: the relay remains on until an off command is received.
- Inching or pulse mode: the relay turns on and switches off automatically after a configured interval.
- Delay-on: activation occurs after a delay.
- Delay-off: deactivation is postponed.
- Power-on state: the relay may restore its previous state, start off, or start on.
The timer may be implemented by vendor firmware, an onboard controller, or your own ESPHome automation. “Delay module” does not necessarily mean it contains a dedicated hardware timer. The Sonoff RE5V1C is a useful comparison because it is explicitly marketed as a 5V Wi-Fi inching/self-lock relay, but that does not prove that a generic board provides the same modes.
Power and logic-level wiring
Typical integrated board
5V supply positive ─── board 5V/VCC
5V supply negative ─── board GND
Switched circuit ─── relay COM/NO/NC
Use this arrangement only after confirming the board’s input circuit. Some boards accept 5V through a regulator; others expose multiple inputs or have unusual power routing.
ESP8266 with a separate 5V relay board
5V supply positive ─── relay VCC
5V supply negative ─── relay GND
ESP8266 GND ─── relay GND
ESP8266 GPIO ─── relay IN, only if 3.3V-compatible
Never connect 5V directly to an ESP8266 3.3V power or GPIO pin. Do not assume that an input advertised as “5V relay compatible” is safe for the ESP8266. Verify the input circuit, or use a suitable transistor, open-drain interface, or level shifter. Community documentation is inconsistent about 5V tolerance; the safe design assumption is that ESP8266 GPIO is not general-purpose 5V logic. See the ESP8266 wiring guidance.
Rank #3
- Relay supports Normally Open and Normally Closed
- Relay supports High-level Trigger or Low-Level Trigger selectable by a jumper
- Relay with Optocoupler Isolation
- Relay with Terminal Blocks for both Input and Output Interface
- Relay with two LED Indicators: power (green LED), the relay status (red LED)
Active-low versus active-high control
Many relay boards are active-low:
- GPIO LOW = relay on;
- GPIO HIGH = relay off.
Others are active-high. Confirm the behavior with the relay LED, a schematic, or a multimeter. A relay that appears permanently on is often simply being driven with the wrong polarity.
Configure the inactive level immediately during startup, then enable normal control. This reduces unwanted activation while the ESP8266 is resetting or connecting to Wi-Fi. A relay attached to a boot strap pin can still pulse or prevent boot despite correct application code.
Arduino IDE setup and a safe low-voltage test
The ESP8266 Arduino core supports Wi-Fi networking, HTTP, mDNS, OTA, filesystems, SPI, I2C, and related libraries. Install it as follows:
- Open Arduino IDE → Preferences.
- Add this Boards Manager URL:
https://arduino.esp8266.com/stable/package_esp8266com_index.json - Open Tools → Board → Boards Manager.
- Install the ESP8266 platform.
- Select the exact board under Tools → Board.
Use the exact board profile and GPIO identified from the PCB. The following example assumes GPIO5 and an active-low relay:
const uint8_t RELAY_PIN = 5; // GPIO5; verify this on your board
void relayOff() {
digitalWrite(RELAY_PIN, HIGH); // active-low assumption
}
void relayOn() {
digitalWrite(RELAY_PIN, LOW);
}
void setup() {
digitalWrite(RELAY_PIN, HIGH);
pinMode(RELAY_PIN, OUTPUT);
relayOff();
}
void loop() {
relayOn();
delay(1000);
relayOff();
delay(4000);
}
Test the relay first with an isolated, low-voltage DC load. GPIO5 is only an example; ESP-01S carriers and similar boards can use another pin.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Rank #4
- This module uses genuine relays and normally open interfaces. High stability and low power consumption.
- Strong driving ability, stable and reliable performance. High efficiency, fine workmanship, and durable.
- Add one more ESP-01S module. This smart relay module is based on the ESP-01S WIFI module design. It can be used to DIY your own smart switch. It can be remotely controlled by the mobile phone APP and provides APP and LUA source programs. It's easy to use right away.
- The package includes:2 pcs ESP8266 ESP-01S Relay module, relay WIFI smart socket (with ESP-01S)
- We are very grateful for all customers’ opinions to improve sales, if you are not satisfied, please contact us to find the best solution
ESPHome configuration
ESPHome is a practical route to local Home Assistant control, provided the exact board, GPIO, and polarity are known:
esphome:
name: esp8266-relay
esp8266:
board: esp01_1m # change to the actual board
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: "ESP8266 Relay Fallback"
password: !secret fallback_password
logger:
api:
ota:
switch:
- platform: gpio
name: "Relay"
pin:
number: GPIO5 # verify this pin
inverted: true # remove/change if active-high
restore_mode: ALWAYS_OFF
The inverted: true setting handles active-low hardware, while restore_mode: ALWAYS_OFF gives the relay a defined software state after restart. Confirm that the board’s hardware pull resistors and boot behavior do not override this during reset. ESPHome documents GPIO switches and inverted outputs.
Pulse or inching operation
For a garage-door trigger, gate input, or other momentary control, use a short pulse rather than a switch that can remain on. The interval must suit the equipment and should never be the only safeguard against a hazardous stuck-on condition:
switch:
- platform: gpio
id: garage_relay
name: "Garage Relay"
pin:
number: GPIO5
inverted: true
restore_mode: ALWAYS_OFF
- platform: template
name: "Garage Door Pulse"
optimistic: true
turn_on_action:
- switch.turn_on: garage_relay
- delay: 500ms
- switch.turn_off: garage_relay
ESPHome’s Shelly 1 reference also demonstrates a 0.5-second pulse, but that is an example pattern, not a universal timing recommendation.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Choosing a control method
- Local HTTP: simple for a LAN prototype, but it requires authentication and should not be exposed directly to the Internet.
- MQTT: useful for Home Assistant and multi-device automation; design retained-state and reconnect behavior deliberately.
- ESPHome: usually the quickest Home Assistant route, with OTA updates, logging, fallback access point, GPIO inversion, and configurable restore behavior.
Decide what happens when Wi-Fi, the broker, or the router fails. “Remain in the last state” may be unacceptable for pumps, heaters, motors, locks, and garage doors. Consider an off timeout, a local control path, or a defined hardware-safe state.
Best Value
- ✔Based on ESP-01S WIFI module.
- ✔Designed for smart home,internet and other DIY projects.
- ✔With this smart relay, you will easy to DIY your smart switch to control any device by your phone anywhere.Providing APP and LUA source programs. It can be controlled remotely
- ✔Light weight, compact size and very easy to install in a small case
- ✔Package Includes: 3 Set ESP8266 Transceiver + Relay Switch Board
Troubleshooting
The relay activates during boot
Likely causes include active-low logic, a boot strap pin, a driver pull-up or pull-down, or firmware initializing the pin too late. Move the relay to a documented safer GPIO, correct the inversion setting, and verify the board’s startup circuit.
The ESP8266 will not boot
Check GPIO0, GPIO2, and GPIO15 levels, the selected board profile, flash mode, serial-download mode, and supply voltage. A relay coil can also cause a supply collapse if the 5V source is inadequate.
The relay clicks but the load remains off
Check COM/NO/NC selection, measure voltage at the contact terminals, confirm the load’s own supply, and account for inrush or inductive behavior. A click proves coil movement, not correct load wiring.
The relay is always on
Check active-low polarity, floating inputs, 3.3V input compatibility, the actual firmware GPIO, and any resistor or LED connected to that pin.
Wi-Fi loss leaves an unsafe state
Define whether the relay should turn off, remain on, pulse once, accept local control, or require a physical reset. Do not leave this as an accidental consequence of the firmware.
Mains and construction-site safety
A bare hobby relay board is not automatically suitable for a wall box, fixed building wiring, exposed plant room, or construction-site installation. For mains work:
- use an appropriate enclosure and strain relief;
- maintain creepage and clearance;
- separate low-voltage and mains conductors;
- use appropriate fusing and insulated terminals;
- de-energize the circuit before wiring;
- follow local electrical regulations;
- use a qualified electrician where required;
- do not interpret a printed “10A” relay marking as certification of the complete module.
Begin testing with isolated low-voltage DC. Never place an exposed, uncertified PCB near combustible material or treat “smart-home safe” as a property of an unidentified marketplace board.
Which option is appropriate?
| Option | Best for | Main limitation |
|---|---|---|
| Generic ESP8266/ESP-01S board | Low-cost experiments and low-voltage loads | Pinout, polarity, firmware, isolation, and build quality may be unclear |
| ESPHome-compatible ESP-12F board | Local Home Assistant projects | A similar-looking PCB may not be the documented revision |
| Sonoff RE5V1C | A clearly identified 5V inching/self-lock module | Its ecosystem and documentation may not suit fully independent firmware projects |
| Shelly one-channel relay | A more finished smart-home installation | Less suitable when the goal is the cheapest bare bench module |
| ESP32 | New designs needing more GPIO or processing capacity | Unnecessary for a simple single-relay ESP8266 project |
For a productized smart-home installation, compare documented one-channel options from Shelly. For a 5V inching/self-lock requirement, consult the official Sonoff documentation. For a simple offline delay, a conventional timer relay may be more predictable than adding Wi-Fi.
Quick Recap
Final buying checklist
- Is the exact PCB revision shown?
- Is the ESP module identified?
- Is the relay GPIO documented?
- Is active-low or active-high behavior confirmed?
- Is the 5V input path verified?
- Is the relay contact rating appropriate for the actual load type?
- Can the power-on and Wi-Fi-loss states be controlled?
- Is local firmware or protocol support available?
- Is the board enclosed and suitably certified for the intended installation?
- Can the project be tested first with isolated low-voltage DC?
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

