Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use WeMos D1 Mini Relay Shield: Examples, Pinouts, and Specs

Image of WeMos D1 Mini Relay Shield
Cirkit Designer LogoDesign with WeMos D1 Mini Relay Shield in Cirkit Designer

Introduction

The WeMos D1 Mini Relay Shield is a compact and versatile add-on designed specifically for the WeMos D1 Mini development board. It allows users to control high-voltage devices (such as lights, fans, or appliances) using low-voltage signals from the D1 Mini. This shield is ideal for IoT applications, home automation, and remote control systems. Its small form factor and ease of use make it a popular choice for hobbyists and professionals alike.

Explore Projects Built with WeMos D1 Mini Relay Shield

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Wemos D1 Mini Controlled Relay with IR Sensor and LED Indicator
Image of GarageDoor: A project utilizing WeMos D1 Mini Relay Shield in a practical application
This circuit is designed to interface a Wemos D1 Mini microcontroller with a two-channel relay, an IR sensor, pushbuttons, and an LED with a current-limiting resistor. The Wemos D1 Mini controls the relay channels via its D1 and D2 pins, receives input from the IR sensor on pin D7, and uses pins D5 and D6 to interact with the pushbuttons through diodes for input debouncing or protection. The LED indicates status or provides feedback, and the 5V power from the Wemos D1 Mini is distributed to the relay, IR sensor, and LED through diodes for polarity protection.
Cirkit Designer LogoOpen Project in Cirkit Designer
I2C-Controlled OLED Display with External EEPROM and Interactive Pushbuttons
Image of godmode: A project utilizing WeMos D1 Mini Relay Shield in a practical application
This is a microcontroller-based interactive device featuring a Wemos D1 Mini, an OLED display, external EEPROM, and an I/O expander. It includes user input buttons and status LEDs, with potential MIDI interface capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO and ESP-8266 Controlled Relay with Pushbutton Interface
Image of COMMANDE DE BARRIERE ARDUINO-ESP8266*ESP32CAM: A project utilizing WeMos D1 Mini Relay Shield in a practical application
This circuit features an Arduino UNO controlling a 3-channel relay module for device actuation, interfaced with an ESP-8266 for WiFi communication. User inputs are captured through multiple pushbuttons with pull-down resistors, and an Adafruit Datalogger Shield is included for potential data logging or future expansion.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Bluetooth-Controlled Relay System
Image of ARM: A project utilizing WeMos D1 Mini Relay Shield in a practical application
This circuit features an Arduino UNO microcontroller interfaced with an HC-05 Bluetooth Module and an 8-Channel 5V Relay Shield. The Arduino is configured to communicate with the Bluetooth module via its serial pins (D0 and D1) and control the relay channels through digital pins D2 to D9. The purpose of this circuit is likely to enable wireless control of various devices connected to the relay shield, with commands received via Bluetooth.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with WeMos D1 Mini Relay Shield

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of GarageDoor: A project utilizing WeMos D1 Mini Relay Shield in a practical application
Wemos D1 Mini Controlled Relay with IR Sensor and LED Indicator
This circuit is designed to interface a Wemos D1 Mini microcontroller with a two-channel relay, an IR sensor, pushbuttons, and an LED with a current-limiting resistor. The Wemos D1 Mini controls the relay channels via its D1 and D2 pins, receives input from the IR sensor on pin D7, and uses pins D5 and D6 to interact with the pushbuttons through diodes for input debouncing or protection. The LED indicates status or provides feedback, and the 5V power from the Wemos D1 Mini is distributed to the relay, IR sensor, and LED through diodes for polarity protection.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of godmode: A project utilizing WeMos D1 Mini Relay Shield in a practical application
I2C-Controlled OLED Display with External EEPROM and Interactive Pushbuttons
This is a microcontroller-based interactive device featuring a Wemos D1 Mini, an OLED display, external EEPROM, and an I/O expander. It includes user input buttons and status LEDs, with potential MIDI interface capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of COMMANDE DE BARRIERE ARDUINO-ESP8266*ESP32CAM: A project utilizing WeMos D1 Mini Relay Shield in a practical application
Arduino UNO and ESP-8266 Controlled Relay with Pushbutton Interface
This circuit features an Arduino UNO controlling a 3-channel relay module for device actuation, interfaced with an ESP-8266 for WiFi communication. User inputs are captured through multiple pushbuttons with pull-down resistors, and an Adafruit Datalogger Shield is included for potential data logging or future expansion.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ARM: A project utilizing WeMos D1 Mini Relay Shield in a practical application
Arduino UNO Bluetooth-Controlled Relay System
This circuit features an Arduino UNO microcontroller interfaced with an HC-05 Bluetooth Module and an 8-Channel 5V Relay Shield. The Arduino is configured to communicate with the Bluetooth module via its serial pins (D0 and D1) and control the relay channels through digital pins D2 to D9. The purpose of this circuit is likely to enable wireless control of various devices connected to the relay shield, with commands received via Bluetooth.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Home automation (e.g., controlling lights, fans, or appliances)
  • IoT projects requiring high-voltage device control
  • Remote control systems
  • Industrial automation and monitoring
  • Smart energy management systems

Technical Specifications

The WeMos D1 Mini Relay Shield is designed to work seamlessly with the D1 Mini and features the following specifications:

Key Technical Details

  • Operating Voltage: 5V DC (powered via the D1 Mini)
  • Relay Control Voltage: 3.3V (compatible with D1 Mini GPIO pins)
  • Relay Output Ratings:
    • Maximum Voltage: 250V AC or 30V DC
    • Maximum Current: 10A
  • Relay Type: SPDT (Single Pole Double Throw)
  • Dimensions: Matches the D1 Mini form factor
  • LED Indicators: Onboard LED to indicate relay status
  • Weight: Approximately 5g

Pin Configuration and Descriptions

The WeMos D1 Mini Relay Shield connects directly to the D1 Mini via its pin headers. Below is the pin configuration:

Pin Description
G Ground connection
5V 5V power supply (from D1 Mini)
D1 GPIO pin used to control the relay

Usage Instructions

How to Use the Component in a Circuit

  1. Attach the Shield: Plug the WeMos D1 Mini Relay Shield directly onto the D1 Mini board. Ensure the pins are aligned correctly.
  2. Connect the Load:
    • Identify the relay's three terminals: COM (Common), NO (Normally Open), and NC (Normally Closed).
    • Connect the high-voltage device (e.g., a light or fan) to the COM and NO terminals if you want the device to turn on when the relay is activated.
    • Use the COM and NC terminals if you want the device to turn off when the relay is activated.
  3. Power the System: Supply power to the D1 Mini via USB or an external power source.
  4. Control the Relay: Use the D1 Mini's GPIO pin (default: D1) to send a HIGH or LOW signal to control the relay.

Important Considerations and Best Practices

  • Safety First: Always ensure the high-voltage side of the relay is properly insulated to prevent electric shock or short circuits.
  • Current Limits: Do not exceed the relay's maximum current and voltage ratings (10A, 250V AC or 30V DC).
  • External Power: If controlling multiple relays or high-power devices, consider using an external power supply to avoid overloading the D1 Mini.
  • GPIO Pin Selection: By default, the relay is controlled via GPIO pin D1. If you need to use a different pin, modify the code accordingly.

Example Code for Arduino UNO

Below is an example code snippet to control the relay shield using the D1 Mini:

// Example code to control the WeMos D1 Mini Relay Shield
// This code toggles the relay ON and OFF every 2 seconds

#define RELAY_PIN D1  // Define the GPIO pin connected to the relay

void setup() {
  pinMode(RELAY_PIN, OUTPUT);  // Set the relay pin as an output
  digitalWrite(RELAY_PIN, LOW);  // Initialize the relay to OFF state
}

void loop() {
  digitalWrite(RELAY_PIN, HIGH);  // Turn the relay ON
  delay(2000);  // Wait for 2 seconds
  digitalWrite(RELAY_PIN, LOW);   // Turn the relay OFF
  delay(2000);  // Wait for 2 seconds
}

Troubleshooting and FAQs

Common Issues Users Might Face

  1. Relay Not Activating:

    • Cause: Incorrect GPIO pin configuration or wiring.
    • Solution: Verify that the correct GPIO pin is defined in the code and connected to the relay.
  2. High-Voltage Device Not Working:

    • Cause: Incorrect wiring of the high-voltage side.
    • Solution: Double-check the connections to the COM, NO, and NC terminals.
  3. Relay Clicking but No Output:

    • Cause: Insufficient power supply or damaged relay.
    • Solution: Ensure the D1 Mini is receiving adequate power. Replace the relay shield if necessary.
  4. Overheating:

    • Cause: Exceeding the relay's current or voltage ratings.
    • Solution: Ensure the load does not exceed 10A or 250V AC/30V DC.

Solutions and Tips for Troubleshooting

  • Use a multimeter to check the continuity of the relay terminals when activated.
  • Test the relay with a simple LED circuit before connecting high-voltage devices.
  • If the onboard LED does not light up when the relay is activated, check the power supply and GPIO signal.

By following this documentation, you can effectively integrate the WeMos D1 Mini Relay Shield into your projects and troubleshoot any issues that arise.