I have a PIC-based program written that simulates a hydroelectric generator= .. It uses a DDS algorithm driving a PWM output to a low-pass filter.=20 When powered up it generates a pretty clean sine wave at exactly 60Hz (within the accuracy of the crystal anyway). The frequency can be varied with two digital inputs which represent raise and lower pulses to the simulated generator. We used it by driving it through an audio amplifier and a transformer into frequency and phase transducers. It was used to test a synchroscope program I also wrote. While the program is proprietary to my customer, I can give out info on how it works if requested. I may even be able to get permission from my custome= r to disclose it. -- Bob Ammerman RAm Systems -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of IVP Sent: Monday, January 14, 2013 6:59 PM To: Microcontroller discussion list - Public. Subject: Re: [EE] Controllable AC voltage source > For this sort of thing, and audio amplifier driving a reverse-=20 > connected mains transformer can provide a quick & cheap solution Mike, I was going to suggest that, for the higher voltages anyway. I've see= n it used to control frequency-sensitive mains equipment, including some vintage gear that was built without speed regulation feedback Joe -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membershi= p options at http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .