

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.








The WeMos D1 Mini Relay Shield is designed to work seamlessly with the D1 Mini and features the following specifications:
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 |
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
}
Relay Not Activating:
High-Voltage Device Not Working:
Relay Clicking but No Output:
Overheating:
By following this documentation, you can effectively integrate the WeMos D1 Mini Relay Shield into your projects and troubleshoot any issues that arise.