Switching polarity of rectified AC power with a microcontroller
If you're okay using four MOSFETs instead of two, you could use a pair of push-pull circuits. Adding a diode in the AC path will prevent reverse conduction through the body diodes. If you want to draw current during both half-cycles, use a bridge rectifier. Or you could add a capacitor if you want something closer to DC.







simulate this circuit &ndash; Schematic created using CircuitLab