Hi, I have a question about controlling power mosfets. Lets say I have some electronic circuit that is fed with a commercial switching mode power supply and I have a high voltage, full wave rectified AC signal (220V line). The ground of the electronic circuit and the diode bridge should be the same in order to control the mosfet but how? I tried connecting the two grounds together but a high voltage gets everywhere in the electronic circuit. What should I do?