Chat freely about anything...

User avatar
By Zinx
#14476 You can make a super cheap & small power supply if you're willing to do without isolation (if you don't understand how dangerous that is, don't do it - the entire circuit is high voltage and deadly, despite only being 3.3V to the module) w/ a fuse, full bridge rectifier, 440+V capacitor (for reactance; saftey variety recommended), 3.3V zener diode, 10V+ capacitor (for storage/filtering), and resistor.

For the 300mA the ESP8266 requires the resistor or the diode are going to have to dissipate a lot of power. With a 5 ohm resistor & 6uF 440+V cap for reactance (~339mA current limit), looks like the resistor and zener will both need to handle ~2W. Note these values assume 220VAC RMS @ 50Hz.

If you do go that route, understand that you can't touch any part of the circuit, including your ESP8266 module and anything it's connected to while it's powered, and if you don't put an additional 1Megaohm or so bleeder resistor on the capacitor used for reactance, it can still hold a dangerous charge for quite some time after being unplugged.

Image
User avatar
By Hugo Pereira
#56811 Hello Ribeiro!

Did you managed to do your projects? I was very interested in the wall switch. Can you share what you did and how you did it?? I am from Portugal too so I am trying to figure out where you bought all this stuff since i will start my project soon as well

Thanks!