3 way switch with MOSFET
Something like this? You can still use the 3 way switch and have the micro also function as a 3 way. I left off the gate ctrl because you already know how to do this. You would need two gate controllers for each line, when you want to turn the light on or off with the micro, just toggle one control line high and one line low. Make sure you get the polarity right, NMOS does not turn on if the gate voltage is not higher than the drain voltage.







simulate this circuit &ndash; Schematic created using CircuitLab