Watcher:
Why not use an energy meter chip like the AD7751?
I'll read up on that. probably won't go with that aproach though since i've allready bought some of the parts. I'm also real eager about trying to program this.
MarkT:
CS is an input to the ADC, not an output from it.
Thank you for the heads up.
DVDdoug:
I'd recommend that you isolate ALL of 5V & 9V circuitry from the AC power line.
[/quote]
This circuit is isolated from everything else on the circuit board in this design. just curious if i could get rid of the adc and feed the signal directly do the esp32 wich i now understand is a bad idea. Just a bit of a shame since the esp has so many ADCs