Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›IoT & Wireless
  4. ›ESP8266 Wi-Fi Relay Boards (ESP-01S and ESP-12F)

Component guide · Intermediate · 4 min read

ESP8266 Wi-Fi Relay Boards (ESP-01S and ESP-12F)

Flashing, Pins and Code

By Geekobot Learning Team · Updated 29 Oct 2026

On this page
Short answerWhat the ESP8266 Wi-Fi relay board isESP8266 Wi-Fi relay board pinoutWiring the ESP8266 Wi-Fi relay boardExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

These boards combine an ESP8266 (ESP-01S or ESP-12F) with one to four relays and a power supply, making a cheap programmable Wi-Fi switch. The ESP-01S relay uses GPIO 0 for its relay and runs from 5 V; the ESP-12F boards take 5 V, 7 to 28 V, 5 to 80 V or mains input and expose GPIO and programming pins. Flash them with Arduino, ESPHome or Tasmota for Home Assistant.

Key specs at a glance

ESP-01S relay
1 relay on GPIO 0, 5 V input, ESP-01S plugs in
ESP-12F 1-channel
Relay on GPIO 16 or 5 (by board), DC 5 to 80 V or AC input
ESP-12F 4-channel
Relays on GPIO 16, 14, 12, 13 (typical), DC 7 to 28 V or 5 V
Relays
10 A (30 A on some 4-channel boards) at 250 V AC / 30 V DC
Programming
UART pins (TX, RX, GND, IO0) with a 3.3 V USB to TTL adapter
RF version
GB-IOWC-1522 adds 433 MHz remote control

Models in this guide

These are alternatives. Pick the one that fits your project; you only need one.

  • Option 1ESP8266 ESP-01S WiFi Relay Module w/ 10A Relay₹89
  • Option 25V Relay Module for ESP-01 / ESP-01S (ESP Not Included)₹98
  • Option 3LC-Relay-ESP12-1R-MV ESP8266 1-Channel Wi-Fi Relay Module₹779
  • Option 4ESP8266 ESP-12F Wireless Wi-Fi Relay Module 1-Channel DC5-80V₹529
  • Option 58-80V Wi-Fi Single-Channel Relay Module₹569
  • Option 6ESP8266 ESP-12F 4-Channel Relay Module DC7-28V/5V 30A₹1,099
01

What the ESP8266 Wi-Fi relay board is

These suit DIY projects: a pump controller, gate opener, garage door, or a lab supply switch, with your own firmware. Relay GPIO assignments vary between sellers, so check the board silkscreen or test each GPIO.

The ESP-01S relay is the smallest; the 4-channel ESP-12F board has free GPIO for sensors.

02

ESP8266 Wi-Fi relay board pinout

The pins on the ESP8266 Wi-Fi relay board and what each one does.

PinFunction
VCC / DC+Supply (5 V, 7 to 28 V or 5 to 80 V by board)
GNDGround
TX / RX / GNDProgramming UART (3.3 V)
IO0Tie to GND while powering on to flash
Relay COM / NO / NCLoad contacts
Spare GPIOSensors and buttons (ESP-12F boards)
PinFunction
VCC / DC+
Supply (5 V, 7 to 28 V or 5 to 80 V by board)
GND
Ground
TX / RX / GND
Programming UART (3.3 V)
IO0
Tie to GND while powering on to flash
Relay COM / NO / NC
Load contacts
Spare GPIO
Sensors and buttons (ESP-12F boards)
03

Wiring the ESP8266 Wi-Fi relay board

Use a 3.3 V USB to TTL adapter for flashing and disconnect mains while the adapter is attached. Some cheap ESP-01 relay boards need the newer ESP-01S (with pull-ups) to work.

ESP8266 Wi-Fi relay board pinESP-01S relayESP-12F 4-channel
Supply5 V 1 A7 to 28 V DC
Relay controlGPIO 0 (fixed)GPIO 16, 14, 12, 13 (check board)
FlashingRemove ESP-01S and use the programmerTX, RX, GND + IO0 to GND
LoadCOM and NOCOM and NO per channel
Supply
ESP-01S relay:
5 V 1 A
ESP-12F 4-channel:
7 to 28 V DC
Relay control
ESP-01S relay:
GPIO 0 (fixed)
ESP-12F 4-channel:
GPIO 16, 14, 12, 13 (check board)
Flashing
ESP-01S relay:
Remove ESP-01S and use the programmer
ESP-12F 4-channel:
TX, RX, GND + IO0 to GND
Load
ESP-01S relay:
COM and NO
ESP-12F 4-channel:
COM and NO per channel
04

Example code

Choose "Generic ESP8266 Module". For an ESP-12F board, change RELAY to the board's relay GPIO. Tasmota has ready templates for many of these boards.

Web switch for an ESP-01S relay (Arduino) · Arduino C++Verify & upload in Electrolark
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
const int RELAY = 0;                 // ESP-01S relay board
ESP8266WebServer server(80);

void page() { server.send(200, "text/html", "<a href='/on'>ON</a> | <a href='/off'>OFF</a>"); }

void setup() {
  pinMode(RELAY, OUTPUT); digitalWrite(RELAY, HIGH);   // most are active-low
  WiFi.begin("your-wifi", "your-password");
  while (WiFi.status() != WL_CONNECTED) delay(300);
  server.on("/", page);
  server.on("/on",  [] { digitalWrite(RELAY, LOW);  page(); });
  server.on("/off", [] { digitalWrite(RELAY, HIGH); page(); });
  server.begin();
}

void loop() { server.handleClient(); }
05

Setup and tuning

Find relay pins

toggle each GPIO in a test sketch and listen for the click.

Boot state

GPIO 0, 2 and 15 affect boot; a relay on GPIO 0 may click at power-up.

Supply

DC5-80V boards suit 12 V, 24 V and 48 V systems directly.

Enclosure

mount in a plastic box with cable glands for mains loads.

06

What you need

Shop this list12 of 13 found in our store · ₹5,906

  • ESP8266 ESP-01S WiFi Relay Module w/ 10A Relay: the part this guide coversESP8266 ESP-01S WiFi Relay Module w/ 10A Relay₹89
  • 5V Relay Module for ESP-01 / ESP-01S (ESP Not Included): another version this guide covers5V Relay Module for ESP-01 / ESP-01S (ESP Not Included)₹98
  • Generic LC-Relay-ESP12-1R-MV ESP8266 1-Channel Wi-Fi Relay Module: another version this guide coversLC-Relay-ESP12-1R-MV ESP8266 1-Channel Wi-Fi Relay Module₹779
  • ESP8266 ESP-12F Wireless Wi-Fi Relay Module 1-Channel DC5-80V: another version this guide coversESP8266 ESP-12F Wireless Wi-Fi Relay Module 1-Channel DC5-80V₹529
  • Generic 8-80V Wi-Fi Single-Channel Relay Module: another version this guide covers8-80V Wi-Fi Single-Channel Relay Module₹569
  • ESP8266 ESP-12F 4-Channel Relay Module DC7-28V/5V 30A: another version this guide coversESP8266 ESP-12F 4-Channel Relay Module DC7-28V/5V 30A₹1,099
  • ESP8266 ESP-12F Wi-Fi Relay Module w/ AC-DC Power Supply: another version this guide coversESP8266 ESP-12F Wi-Fi Relay Module w/ AC-DC Power Supply₹709
  • 4-Channel WiFi RF Relay Switch Module DC5-32V w/ 433MHz Remote: another version this guide covers4-Channel WiFi RF Relay Switch Module DC5-32V w/ 433MHz Remote₹1,489
  • USB to ESP-01 programmer adapter: to flash ESP-01S relay boardsUSB to ESP-01 Programmer Adapter (CH340)₹72Closest match, check the specs
  • USB to TTL serial converter: to talk to the module from a PCUSB to TTL Serial Converter (CH340G / CP2102 / FT232RL / PL2303)₹85Closest match, check the specs
  • Hi-Link AC-DC power module: to power a DIY relay board from mainsHi-Link AC-DC Power Module, More Models₹211Closest match, check the specs
  • Fuse holder: to fuse the switched circuitFind this part
  • Digital multimeter: to check supply and signal voltagesDigital Multimeter₹177
07

Alternatives and when to choose them

  • ✓ESP-01 ESP8266: the module on the small relay board.
  • ✓ESP-12F module: the module on the larger boards.
  • ✓5V relay module: relays for any microcontroller.
08

Common mistakes to avoid

  • !Flashing with mains connected.
  • !Using an old ESP-01 instead of ESP-01S.
  • !Assuming relay GPIOs from another seller's board.
  • !5 V logic on the programming pins.
09

Frequently asked questions

Which GPIO controls the relay?

GPIO 0 on ESP-01S boards; it varies on ESP-12F boards, often 16, 14, 12 and 13.

Can it run Tasmota?

Yes, with a template for the relay pins.

Can it switch 230 V?

Yes, through the relay contacts, with proper enclosure and fusing.

Why does my ESP-01 not start on the board?

It needs an ESP-01S with built-in pull-ups.

Can I add sensors?

Yes on ESP-12F boards with spare GPIO.

Parts for this guide

  • ESP8266 ESP-01S WiFi Relay Module w/ 10A Relay
    ₹89View
  • 5V Relay Module for ESP-01 / ESP-01S (ESP Not Included)
    ₹98View
  • LC-Relay-ESP12-1R-MV ESP8266 1-Channel Wi-Fi Relay Module
    ₹779View
  • ESP8266 ESP-12F Wireless Wi-Fi Relay Module 1-Channel DC5-80V
    ₹529View
  • 8-80V Wi-Fi Single-Channel Relay Module
    ₹569View
  • ESP8266 ESP-12F 4-Channel Relay Module DC7-28V/5V 30A
    ₹1,099View
  • ESP8266 ESP-12F Wi-Fi Relay Module w/ AC-DC Power Supply
    ₹709View
  • 4-Channel WiFi RF Relay Switch Module DC5-32V w/ 433MHz Remote
    ₹1,489View
  • USB to ESP-01 Programmer Adapter (CH340)
    ₹72View
  • USB to TTL Serial Converter (CH340G / CP2102 / FT232RL / PL2303)
    ₹85View
  • Hi-Link AC-DC Power Module, HLK-PM/M Series
    ₹240View
  • Fuse Holder (Panel, PCB and HRC)
    ₹105View
  • Digital Multimeter
    ₹177View
Shop Wi-Fi Modules & Development BoardsShop Relay ModulesShop Smart Home Switches, Relays & Energy Meters

Keep learning

Component guideIntermediateESP-01 / ESP-01S ESP8266 ModuleThe ESP-01 is a tiny ESP8266 Wi-Fi module with 8 pins: power, serial, reset, chip enable and two GPIOs.3 min read · IoT & WirelessComponent guideIntermediateESP-12F, ESP-12E and ESP-12S ESP8266 ModuleThe ESP-12F is the bare ESP8266 Wi-Fi module inside NodeMCU and Wemos boards: an 80 MHz chip, 4 MB flash and a PCB antenna on a 16-pad shielded module.5 min read · Boards & MicrocontrollersHow-toIntermediateWi-Fi Smart Switches and RelaysSmart switches are Wi-Fi relays that turn lights and appliances on and off.3 min read · IoT & WirelessComponent guideIntermediateUSB to TTL Serial AdaptersA USB to TTL adapter turns a computer USB port into a 3.3 V or 5 V serial port, so you can program boards without USB (Pro Mini, ESP-01, ESP32-CAM) or read a debug console.4 min read · Boards & Microcontrollers

Sources

  • ESP8266 Wi-Fi relay board specifications
  • Tasmota device templates

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the ESP8266 Wi-Fi relay board isESP8266 Wi-Fi relay board pinoutWiring the ESP8266 Wi-Fi relay boardExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide4 items · ₹2,324

ESP8266 ESP-01S WiFi Relay Module w/ 10A Relay · 8-80V Wi-Fi Single-Channel Relay Module · 4-Channel WiFi RF Relay Switch Module DC5-32V w/ 433MHz Remote · Digital Multimeter

Run itChange the inputs and watch the output

The relay on GPIO0 is active-low on this board. Nothing is printed.

Relay OFF

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question