Description
What it is
1-channel relay module High-level trigger designed for the D1 Mini WIFI expansion board. Allows remote control of electrical devices via the D1 board.
Features
- 1-channel relay
- High-level trigger
- Compatible with the D1 Mini WIFI expansion board
What it is for
The 1-channel relay module with high-level trigger is ideal for remote control of electrical devices such as lamps, motors, or solenoids using the D1 Mini WIFI board. It can be used to create home automation projects, remote device control, or sensor control.
Tutorial: How to use the 1-channel relay with high-level trigger
The 1-channel relay with high-level trigger is ideal for controlling electrical devices with the D1 Mini WIFI board. Useful for beginners and intermediates.
What you need
- D1 Mini WIFI board
- Power supply cable
- Relay control cable
- Device to control
Steps
- 1. Mount the relay on the D1 expansion circuit.
- 2. Connect the 5V pin of the relay to the 5V of the D1.
- 3. Connect the GND pin of the relay to the GND of the D1.
- 4. Connect the control pin of the relay to pin D2 of the D1.
- 5. Connect the relay contact to the device to be controlled.
- 6. Load the Arduino code.
- 7. Check the datasheet for voltage and current values.
- 8. Test the functionality.
Example code
```
void setup() {
pinMode(2, OUTPUT);
}
void loop() {
digitalWrite(2, HIGH);
delay(5000);
digitalWrite(2, LOW);
delay(5000);
}
```
Mini project
Turn on an LED when the D1 receives a signal.
Common mistakes
- Do not check the voltage and current values on the datasheet.
- Connect the control pin to pin 3V3 instead of 5V.
- Do not check the polarity of the connectors.
- Do not test the relay with a real device.
Recommended accessories
- LED
- Resistor
- Power cable
- Relay control cable
Frequently asked questions
Does the relay work with batteries?
Check the datasheet for voltage values.
Which pins of the D1 can I use?
Any digital pin.
Can the relay handle high currents?
Check the datasheet for current values.
Can I use a 2-way relay?
No, this relay is a 1-way relay.





Reviews
There are no reviews yet.