I am trying to switch a small water pump (for a pet fountain) according to the output of a PIR sensor. A couple of years ago I setup a circuit on a breadboard and tested it with the pump - it worked! Unfortunately, I don't have schematics or photos of the circuit anymore.
The circuit is powered by the power adaptor of the water pump (12VAC output). Using the L7805CV it should regulate to 5VDC (for the PIR sensor). The PIR sensor activates a transistor which uses the same 5VDC to activate a relay. The relay should then switch the original 12VAC.
I am a bit confused why that worked back then. I tried a similar setup now and the L7805CV gets hot, but there is no power output.
Can I source the L7805CV with AC power? (without using a diode bridge)
If not, is it correct that I could use a diode bridge to convert the 12VAC to 12VDC and use that as an input for the L7805CV?
Update: