Hi all,
The goal is to generate a +/- 100V square wave from a 120 VAC wall source.
In addition, I need to be able to control the frequency and amplitude from a microcontroller.
I'm currently using a half rectifier and capacitor circuit to create the +/- 100V and feeding that into a comparator op-amp and using a signal from my micro to switch the output. However the problem is that the +/- 100V signal is referenced to NAC while the signal from my micro is referenced to GND from a voltage regulator and the comparator will have to be referenced to both GND and NAC which probably isn't a good idea.
If anyone has any suggestions or a new solution, please let me know.
Thanks
The goal is to generate a +/- 100V square wave from a 120 VAC wall source.
In addition, I need to be able to control the frequency and amplitude from a microcontroller.
I'm currently using a half rectifier and capacitor circuit to create the +/- 100V and feeding that into a comparator op-amp and using a signal from my micro to switch the output. However the problem is that the +/- 100V signal is referenced to NAC while the signal from my micro is referenced to GND from a voltage regulator and the comparator will have to be referenced to both GND and NAC which probably isn't a good idea.
If anyone has any suggestions or a new solution, please let me know.
Thanks