I want to control the output of a transformer. So the input is 220V, 50 Hz. I am stepping it down to 24V. Now I want a switch that can vary the output between 0-24v. How do I make such a switch? If I put a resistance for dropping the voltage, I am afraid it might get heated or it might result in some noise. What do I do? Any suggestions?
Update:
Just for clarification: I want Ac ranging from 0-24, so the user can control the output like 0-5v ac, 0-15v ac , 0-24v ac.. and so on. Sorry for not giving this detail in my question.