Hello
I'm after a bit of a critique, and if possible an easier/alternative solution to what I've come up with. I'm a software developer by trade and although not an absolute electronics beginner I'm still learning so apologize if I don't understand any of the comments/suggestions.
I've building a device where an internet enabled mcu controls a relay. In the event that the mcu cannot connect to the internet for whatever reason, I'd like to add a manual switch that can work in conjunction with the mcu. I envisage the mcu and manual switch working like those lights and switches you find in a corridor where either switch will toggle the current status.
Here's the schematic. It currently uses a P-channel MOSFET and an N-channel MOSFET in conjunction with a SPDT manual switch.
I've verified that it -should- work using this simulator and if you look you can see my intended behaviour.
As I said critique and improvements welcome - and an alternative circuit that doesn't use p-channels MOSFETs would also be appreciated as I seem to be having a hard time tracking down suitable ones. My GPIO pins are 3.3V and most of the p-channels I seem to find have a threshold between -2 and -4V.
Thanks in advance.
I'm after a bit of a critique, and if possible an easier/alternative solution to what I've come up with. I'm a software developer by trade and although not an absolute electronics beginner I'm still learning so apologize if I don't understand any of the comments/suggestions.
I've building a device where an internet enabled mcu controls a relay. In the event that the mcu cannot connect to the internet for whatever reason, I'd like to add a manual switch that can work in conjunction with the mcu. I envisage the mcu and manual switch working like those lights and switches you find in a corridor where either switch will toggle the current status.
Here's the schematic. It currently uses a P-channel MOSFET and an N-channel MOSFET in conjunction with a SPDT manual switch.
I've verified that it -should- work using this simulator and if you look you can see my intended behaviour.
As I said critique and improvements welcome - and an alternative circuit that doesn't use p-channels MOSFETs would also be appreciated as I seem to be having a hard time tracking down suitable ones. My GPIO pins are 3.3V and most of the p-channels I seem to find have a threshold between -2 and -4V.
Thanks in advance.