AC to DC Power Supply Design for PI/Arduino/ESP32 Electronics

I recall there was discussions at the time in this thread about the distortion the power supply caused on the AC signal.

A later version used a full-wave rectifier but I suspect that subjects the IC to unacceptable common mode voltages (although the limits on that aren’t specified by Atmel). That was further discussed in this thread.