In a project I'm working on (Totem pole PFC) I need to sense the input AC voltage, scale it down, rectifing it/adding an offset and then send to the ADC of the digital controller to use in the control loop (average current control)
I tried a number of circuit, such as a voltage sensing transucer (LEM LV-25), but it has 3 problems:it's expensive, it's slow (<10kHz BW) and it has accuracy problems as the large power resistors heat up.
So I thought about using a differential amplifier and detect the line voltage between L and N, set ground to half ADC reference, i.e. 1.25V and have the output voltage equals 1.25 + k Vac, where k is the differential amp gain
This circuit :
Is this circuit going to work properly? how can I add isolation? and for the ground for (V-) and 1.25V voltage reference, will it be the GND of the MCU or the totem pole? sorry for the silly questions.
Thank you very much.