|
|
|
|
|
by stavros
1808 days ago
|
|
This is a nice hack, but I'm always very wary of playing with large voltages because it's too easy for things to go wrong. Instead, for controlling mains devices, I recommend a Sonoff S20: https://esphome.io/devices/sonoff_s20.html I usually flash ESPurna onto it (Tasmota and ESPhome are also good choices), it's very easy to do and it's extremely reliable and hopefully has a lower chance of fire than anything I'd make. |
|
One of the outlets is always on, and the other three are controlled by the control signal. Two of those are normally off and turn on when the control signal is present, and the third is normally on and turns off when the control signal is present.
I'm using it to control a space heater with a Raspberry Pi. The GPIO pins on most microcontrollers commonly used in DIY projects will work directly to control the relay.
[1] https://dlidirect.com/products/iot-power-relay
[2] https://www.sparkfun.com/products/14236
[3] https://www.amazon.com/Iot-Relay-Enclosed-High-Power-Raspber...