

The WeMos D1 Mini Relay Shield V2 is a compact and versatile relay module designed specifically for the WeMos D1 Mini microcontroller. This shield allows users to control high-voltage devices (such as lights, fans, or appliances) using low-voltage signals from the D1 Mini. It is ideal for IoT applications, home automation projects, and other scenarios where electrical load switching is required.








The WeMos D1 Mini Relay Shield V2 is designed to work seamlessly with the D1 Mini and features the following specifications:
| Parameter | Specification |
|---|---|
| Operating Voltage | 5V DC (powered via D1 Mini) |
| Trigger Voltage | 3.3V (compatible with D1 Mini GPIO) |
| Relay Type | SPDT (Single Pole Double Throw) |
| Maximum Load Voltage | 250V AC / 30V DC |
| Maximum Load Current | 10A |
| Dimensions | 34.2mm x 25.6mm x 19.3mm |
| Weight | ~10g |
The relay shield connects directly to the WeMos D1 Mini via its pin headers. Below is the pin configuration:
| Pin Name | Description |
|---|---|
| VCC | 5V power supply input (provided by the D1 Mini) |
| GND | Ground connection |
| IN | Control signal input (connect to a GPIO pin on the D1 Mini) |
| NO | Normally Open terminal (connect to the load for default OFF state) |
| NC | Normally Closed terminal (connect to the load for default ON state) |
| COM | Common terminal (connect to the power source or load as required) |
Hardware Setup:
COM terminal.NO (Normally Open) or NC (Normally Closed) terminal, depending on the desired default state.Software Setup:
IN pin to control the relay.Example Circuit:
COM and NO terminals.Below is an example code snippet to control the relay shield using the D1 Mini:
// Define the GPIO pin connected to the relay's IN pin
#define RELAY_PIN D1 // D1 corresponds to GPIO5 on the D1 Mini
void setup() {
pinMode(RELAY_PIN, OUTPUT); // Set the relay pin as an output
digitalWrite(RELAY_PIN, LOW); // Ensure the relay is off at startup
}
void loop() {
// Turn the relay ON
digitalWrite(RELAY_PIN, HIGH);
delay(5000); // Keep the relay on for 5 seconds
// Turn the relay OFF
digitalWrite(RELAY_PIN, LOW);
delay(5000); // Keep the relay off for 5 seconds
}
Relay Not Activating:
Relay Stuck in ON or OFF State:
High-Voltage Device Not Working:
COM, NO, or NC) based on the desired behavior.Noise or Chattering from the Relay:
By following this documentation, users can safely and effectively integrate the WeMos D1 Mini Relay Shield V2 into their projects.