Leon van der Krogt
Published

Sonoff Mini Optocoupler 2-way hotel switching

With the modification in this project, the Sonoff-Mini can be connected instead of the existing lamp.

IntermediateFull instructions provided1 hour4,613
Sonoff Mini Optocoupler 2-way hotel switching

Things used in this project

Hardware components

1N4007 – High Voltage, High Current Rated Diode
1N4007 – High Voltage, High Current Rated Diode
or use a ready tot use rectifier bridge
×4
330nF 400V
×1
1,8 kilo ohm 1 watt
×1
Resistor 1M ohm
Resistor 1M ohm
a small 1/8 Watt will do the job.
×1
LDR, 1 Mohm
LDR, 1 Mohm
×1
LED clear 5mm
I used an old bicycle red LED light.
×1
Itead Sonoff mini
×1

Software apps and online services

Maker service
IFTTT Maker service
I am using eWelink for Sonoff and Smart Life for Tuya devices.

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
shrink tubes
Solder Wire, Lead Free
Solder Wire, Lead Free

Story

Read more

Schematics

220 Volt optocoupler with LED and LDR

The LED circuit will be in place of the existing lamp. The LightDependedResistor(LDR) will be connected tot the switch input of the Sonoff Mini.

Code

Tasmota, IFTTT, GoolgeHome, Alexa, etc.

Arduino
Navitve you can use IFTTT, GoogleHome, ALexa, etc.
Not necessary for this project but if you like to flash the Sonoff you can reflash it with Tasmota firmware.
https://ifttt.com/ 
https://www.itead.cc/blog/sonoff-work-with-google-home 
https://www.itead.cc/sonoff-work-with-amazon-alexa
https://github.com/arendst/Tasmota  

Credits

Leon van der Krogt

Leon van der Krogt

1 project • 1 follower

Comments