Hi community, what I'm trying to do with this circuit is to get a 5V signal on the output whenever an input AC signal is present. That simple. It works perfectly with 9VAC on the input but when it goes down to around 5VAC, the transistor starts supplying the regulator less (around 4-5Volts) and output voltage goes down to 3Volts.
I am still learning electronics and just found out that I have to limit the current going into the base of the transistor with a resistor. What else am I missing here? Any comment would help. Seemed like an easy application.