Not a question, just a useful circuit that i figure might be useful to someone. 60 HZ AC to a DC SQ wave, with variable voltage. It could probably be nit picked to death but this is what i came up with and it works for me, the resistor values are just what i had a bag of and they happen to work as for the transistors just about any npn and pnp will work. The zener diode exists only for two reasons, protection for the transistors and it keeps it from going negative. This took me a long time to figure out by just experimenting, longer than i care to admit
.