0% found this document useful (0 votes)
4 views

script.pdf

The document outlines a project to create a voltage meter using Arduino, capable of measuring AC and DC voltage. It details the necessary components, including a voltage sensor and resistors for a voltage divider, and provides instructions for setting up the circuit and writing the code. The project demonstrates how to safely measure voltages up to 9V, reducing them to a manageable level for the Arduino.

Uploaded by

Oswany
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

script.pdf

The document outlines a project to create a voltage meter using Arduino, capable of measuring AC and DC voltage. It details the necessary components, including a voltage sensor and resistors for a voltage divider, and provides instructions for setting up the circuit and writing the code. The project demonstrates how to safely measure voltages up to 9V, reducing them to a manageable level for the Arduino.

Uploaded by

Oswany
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Hi everyone. Today, we’ll talk about how to create a voltage meter using Arduino.

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.

For this project, we’ll need:


* An Arduino, which will act as the system’s brain.
* A voltage sensor for the measurements.
* Resistors for a voltage divider.
* A breadboard and connecting wires.
* And, of course, a power source, like a 9V battery.
First, we set up a voltage divider using a 7kΩ resistor (R1) and a 3kΩ resistor (R2). This
reduces the input voltage to safe levels for the Arduino, which can only handle up to 5V.
* Connect R1 to the positive terminal of the battery and its other end to the node shared with
R2.
* Then, R2 connects this node to the ground.
* Finally, connect the node between R1 and R2 to the Arduino’s A0 pin, and the ground to
the Arduino’s GND.

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:

Vout =Vin ×R1+R2R2


So, 9V is reduced to 2.7V, confirming that the circuit works correctly and protects the
Arduino."
And that’s it. With this simple project, you can measure voltages safely and accurately using
Arduino. It’s a great tool for your electronics projects.

You might also like