Killed my WROOM32 with a relay
Posted: Wed Feb 16, 2022 4:21 pm
I fried my ESP32 WROOM32 board and I think it happened because I did not use diodes with the relay. I am going to get a new board but wanted to check if I am doing the right thing with diodes this time.
I have 2 coil, 5v latching relay - Panasonic DW1205HL. To trigger on/off i am using two GPIO pins (12 and 13). To amplify the trigger signal I am using a small transistor with 4k5 resistor on 'base' pin (two in total - one of each for each coil).
relay center (+) goes to 5v on ESP32
relay trigger (-) goes to transistor pin 1 (collector)
transistor pin 2 (base) goes to 4k5 resistor and then to GPIO 12 (the same is for the second coil but goes to GPIO 13)
transistor pin 3 (emitter) goes to ESP32 ground.
It worked for couple of days but then everything stopped. I disconnected everything and ESP32 does not boot anymore. It is hard to tell what specifically got burnt but DMM shows ground and 3.3v are shorted somewhere.
So now the question. Do i put the diodes between GPIO 12/13 and 5v? ..or any other thoughts?
Thank you
Val
I have 2 coil, 5v latching relay - Panasonic DW1205HL. To trigger on/off i am using two GPIO pins (12 and 13). To amplify the trigger signal I am using a small transistor with 4k5 resistor on 'base' pin (two in total - one of each for each coil).
relay center (+) goes to 5v on ESP32
relay trigger (-) goes to transistor pin 1 (collector)
transistor pin 2 (base) goes to 4k5 resistor and then to GPIO 12 (the same is for the second coil but goes to GPIO 13)
transistor pin 3 (emitter) goes to ESP32 ground.
It worked for couple of days but then everything stopped. I disconnected everything and ESP32 does not boot anymore. It is hard to tell what specifically got burnt but DMM shows ground and 3.3v are shorted somewhere.
So now the question. Do i put the diodes between GPIO 12/13 and 5v? ..or any other thoughts?
Thank you
Val