script.pdf
script.pdf
This
project allows us to measure the electrical potential difference, both in AC and DC, and
display the results in real-time on a screen.
Once everything is ready, we write the code to read the voltage from pin A0 and calculate
the actual value using the voltage divider formula.
When testing the system with a 9V battery, the voltage divider reduces the voltage to
approximately 2.7V. This is calculated using the formula: