"I'm trying to build an oscilloscope using an ESP32 and opamp. I specifically want to visualize analog AC signals up to 30 volts. I've encountered a problem here that I can't seem to overcome. It's impossible to proceed without common grounding the AC line's neutral with the ESP32's GND line, but linking the neutral of the AC line to the ESP32's GND is a significant risk. I could use an optocoupler, but the downside of that is it converts negative alternation to positive alternation. How can I common ground the neutral of the AC line with the GND of the DC line?"
