Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By elaser
#80905 Hello all,
I have a bunch of these PIR salvaged from led lights dead after an year.
Image
They are meant to be connected to the 220 VAC directly.
I was thinking to use a sonoff, connect to main input leads then connect the sonoff gpio ground to the negative output (small black wire) and a free gpio to the positive output.
Would this work?
User avatar
By QuickFix
#80919 You really always want to isolate mains power from any GPIO.

It wouldn't surprise me if the entire circuit (PIR-board and LED-board) runs on a lower voltage and use simple capacitor droppers to step down the voltage.
I think it would be wise to first reverse engineer the schematics before doing anything else: perhaps with some modifications you can run all off a safe(r) power supply. :idea: