Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
abhinav
Published © GPL3+

Arduino Voltmeter (Standalone Application)

The Arduino input voltages can be easily monitored by using a standalone Windows application without Arduino IDE or the serial monitor.

BeginnerFull instructions provided1 hour6,874
Arduino Voltmeter (Standalone Application)

Things used in this project

Story

Read more

Schematics

Actual circuit

For the simplicity i just connected the A2 to other power pins

installing Firmata

Install this library. After this, open file>examples>firmata>
StandardFirmata and run this code on your arduino board.After successful uploading close the Arduino IDE.

Installing firmata on Processing

click "java" on the right top of the Processing IDE and click Add Mode
,and click on libraries tab .Under Hardware section you can see this

Exporting the application

After saving the code click ,File>export application>select the platform(windows or linux)>export

circuit connection and displaying the result on the monitor

A2 is connected to 5v pin

Extending the range of voltage measurement

This circuit is used to scale down the higher voltage to lower voltage within the tolerance limit .I didn't give any exact value to the resistors .if R1=10k and R2=10k you can measure the voltage upto 10 volts. VA2 is the voltage across GND and analog pin A2,and V is the voltage to be measured.

Code

Processing code

Processing
In order to run the processing on your pc you need java .Otherwise it wont work
import processing.serial.*;

import cc.arduino.*;

Arduino arduino;
float s;
void setup()
{
  size(250,200);
  arduino=new Arduino(this,"COMxx",57600);//xx IS YOUR ARDUNO PORT NUMBER eg "COM5"
  textSize(70); 
  textAlign(CENTER);  
}
void draw()
{
  background(255);
  s=arduino.analogRead(2);
  s=s*5/1024;
  fill(#FFAC52);
  text(s,100,125);

  delay(500);
}

Credits

abhinav
3 projects • 46 followers
Contact

Comments

Please log in or sign up to comment.