I'm a Computer Engineering student(from Brazil) and I'm currently immersed in a challenging project that involves electronics and programming. I need to develop a differential probe to measure voltages of 220V or even higher, with the goal of integrating this data into an STM32 microcontroller.
Most of my knowledge lies in the realm of programming, and I have limited experience in electronics and power electronics. Hardware is relatively new territory for me.
My plan is to use resistors to step down the 220V voltage to 3.3V (which is the maximum limit the STM32 can read). However, I'm a bit lost when it comes to creating an effective circuit that preserves the waveform's characteristics and makes it positive so the microcontroller can read it without loss of information.
Additionally, I'm interested in calculating the RMS value of the voltage and conducting further studies on the collected data.
If you have any experience in electronics, electrical engineering, or embedded systems programming and can share tips, resources, or guidelines to tackle this challenge, I would be extremely grateful. I'm open to any guidance and eager to learn!
Thank you in advance for any help you can provide. I'm looking forward to embarking on this learning journey with your assistance.

Most of my knowledge lies in the realm of programming, and I have limited experience in electronics and power electronics. Hardware is relatively new territory for me.
My plan is to use resistors to step down the 220V voltage to 3.3V (which is the maximum limit the STM32 can read). However, I'm a bit lost when it comes to creating an effective circuit that preserves the waveform's characteristics and makes it positive so the microcontroller can read it without loss of information.
Additionally, I'm interested in calculating the RMS value of the voltage and conducting further studies on the collected data.
If you have any experience in electronics, electrical engineering, or embedded systems programming and can share tips, resources, or guidelines to tackle this challenge, I would be extremely grateful. I'm open to any guidance and eager to learn!
Thank you in advance for any help you can provide. I'm looking forward to embarking on this learning journey with your assistance.
