DIY Voltmeter Using Arduino and Processing

by engineerkid1 in Circuits > Arduino

3511 Views, 4 Favorites, 0 Comments

DIY Voltmeter Using Arduino and Processing

7.JPG

Hello and welcome to today's project. I'm Sarvesh and today

we will make an arduino based voltmeter. But what's different about this one is that it will show its output on the processing software. Now in one of my previous tutorial we made a processing based flappy bird by getting inputs from the arduino. This project is also similar to that one. We will measure the voltage using the analog input pin of the arduino. The input voltage can be high like 20 V and the arduino analog pin cannot measure that much voltage due to its resolution of 10 bits(1024)i.e. 5V. So we will use a resistor divider to bring this voltage down to a range of 0-30 V (512). Now let's make this project.

Gather All the Required Supplies .

1.JPG

I strongly suggest you to buy the components from UTSource.net because they provide high quality products and ship them on time. They also provide high quality PCB's at affordable rates. So do check them out.

1 X Arduino Pro Micro

1 X Resistor (10K and 100K ohm)

Breadboard

Male to male header wires

Batteries for testing

Multimeter

Connections .

2.JPG

Do the connections as shown in the circuit diagram above.

Connect the two resistors in series and connect their centre point to Analog pin A0. Then connect the other end of 10K R to Gnd and the other end of 100K resistor to +5V. Now apply the test voltages to these two ends. That's it the connections are done.

Upload Program to Your Arduino Board.

3.JPG

Now download the program given below and open it. Remember

to select the proper board before uploading the code. Here we used Arduino Pro Micro. If you are using an Arduino Uno then just keep in as it is. Now upload the code to the board.

Downloads

Open the Processing Sketch.

4.JPG
5.JPG
6.JPG

Download and open the processing sketch and make sure you

select the proper com port in the processing code. Now click on the run button and start measuring voltages at the - and + pins of the resistor divider. I have attached few images of my result. Hope you enjoy making this small voltmeter. You can also use a LCD and display voltage readings on it making it a portable digital voltmeter. You can also create your PCB and give this project a professional look. PCB Design Services That's it for today guys. See you'll soon with another project.

Downloads