I have been trying to use IRFZ44 as low side switch to ground the ground terminal of an optional 7805 that I wish to use whenever I want. For this I have connected the drain terminal to to circuit ground and the source to 7805 ground. The 7805 Vin is already connected to 12V. The MOSFET was turning on and off when the voltage regulator 7805 wasnt in the circuit. But after inserting it what I observed that when the MOSFET is turning On, the source voltage remains 0V, while the drain voltage attains a stable 9V! At the same time the 7805 isnt getting the circuit ground.
Cannot understand why is this happening. Any help is appreciated. Thanks in advance!