I currently have a current transformer that generate a 0 to 0.7 V AC voltage (in my case) when reading. It is actually an SCT013A current transformer.
I would need to simulate it using ESP32, so basically create a 50 Hz PWM signal that can vary from 0 to 0.7V over time.
My idea is use another pin to create the desired voltage, for example 0.65 V, by an analogwrite for the PWM generation but I have no idea on how to create it by a schematics.
Could someone move me in the right schematics direction or have an alternative idea?