ESP8266 ESP-01 Relay Shield (ESP-01 Module Not Included)

30,00 DH

Availability:

184 in stock

SKU: 0110-A Categories: ,

Description

ESP8266 ESP-01 Relay Shield (ESP-01 module not included)

This intelligent relay shield is based on the ESP-01/ESP-01S Wi-Fi module. It lets you control a load remotely over Wi-Fi, up to 10 A AC or DC, and can be configured with AT commands or Lua firmware.

Note: The shield is sold without the ESP-01 module. You can purchase it separately here.

Technical specifications

  • Operating voltage: 5–12 V DC
  • Operating current: ≥ 250 mA
  • Supported Wi-Fi module: ESP-01 / ESP-01S
  • Wi-Fi transmission range: up to 400 m in an open area
  • Switchable AC load: 10 A / 250 VAC
  • Switchable DC load: 10 A / 30 VDC
  • Control: ESP-01 GPIO0 (LOW activates the relay)
  • LED indicators: power, Wi-Fi, and relay
  • Dimensions: 37 × 25 mm

Typical applications

  • Home automation: control lamps, shutters, and outlets
  • IoT and smart-home projects
  • Remote control and automation
  • Prototyping with Arduino, Raspberry Pi, or ESP8266

Compatibility

  • Works with any microcontroller or host that supports 3.3 V UART
  • Can be programmed/configured using AT commands or Lua scripts
  • Can be used with the Arduino IDE through the ESP-01

Here is a minimal Arduino IDE example to upload directly to your ESP-01 module (with the Relay Shield). It switches the relay ON and OFF every second:

#include <ESP8266WiFi.h>

// Remplacez par vos identifiants Wi-Fi
const char* ssid = "VOTRE_SSID";
const char* password = "VOTRE_MDP";

// Broche de contrôle du relais sur l'ESP-01
// (sur le Relay Shield, GPIO0 pilote le relais : LOW = ON, HIGH = OFF)
const uint8_t relayPin = 0;

void setup() {
// Console Série pour debug
Serial.begin(115200);
delay(10);

// Initialisation de la broche relais
pinMode(relayPin, OUTPUT);
digitalWrite(relayPin, HIGH); // État OFF au démarrage

// Connexion Wi-Fi (facultative, mais souvent utile)
Serial.print("Connexion au Wi-Fi ");
Serial.print(ssid);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print('.');
}
Serial.println("nConnecté au réseau Wi-Fi !");
}

void loop() {
// Active le relais
Serial.println("Relais ON");
digitalWrite(relayPin, LOW);
delay(1000);

// Désactive le relais
Serial.println("Relais OFF");
digitalWrite(relayPin, HIGH);
delay(1000);
}

Upload steps

  1. Install ESP8266 board support in the Arduino IDE using Tools > Board > Boards Manager > esp8266.
  2. Open File > Preferences.
  3. Under Additional Boards Manager URLs, add this address:
    https://raw.githubusercontent.com/esp8266/Arduino/gh-pages/package_esp8266_index.json
  4. Select the ESP-01 board.
  • Tools > Board > Generic ESP8266 Module
  • Tools > ESP8266 Module > Module: select ESP-01.
  • Set the flash speed (usually 115200) and Flash Size to 1M (no SPIFFS), as appropriate.
  • Select the correct COM port.
  • Connect the ESP-01 to the Relay Shield and a 3.3 V USB-to-TTL adapter, then upload the sketch.

Once powered, the relay will activate and deactivate every second.

Keywords: relay, Wi-Fi, smart home, IoT, home automation.

Thank you for your loyalty!

EN