Project tutorial
Arduino Voltmeter (Standalone Application)

Arduino Voltmeter (Standalone Application) © GPL3+

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

  • 2,687 views
  • 3 comments
  • 10 respects

Components and supplies

Apps and online services

About this project

Processing is an open source language /development tool for writing programs in other computers. It is useful when you want those other computers to "talk" with an Arduino, for instance to display or save some data collected by the Arduino.

The Arduino can interact with Processing and can even control the physics simulation or the games that run on the Processing environment.

Code

Processing codeProcessing
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);
}

Schematics

Actual circuit
For the simplicity i just connected the A2 to other power pins
Img 20170413 233526986 p2fibcn6p8
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.
Firmata z1y2q7isga
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
Firmata install fs34nwipib
Exporting the application
After saving the code click ,File>export application>select the platform(windows or linux)>export
Export z5pi767dn8
circuit connection and displaying the result on the monitor
0v rpjjhhi9jf
A2 is connected to 5v pin
5v 8gklrn2nal
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.
Additionl diagram 7zxkz9qej2

Comments

Similar projects you might like

DIY Voltmeter with Arduino and a Nokia 5110 Display

Project tutorial by Nick Koumaris

  • 11,864 views
  • 6 comments
  • 22 respects

Arduino as a Voltmeter

Project tutorial by AJ-Explains-It-All

  • 2,465 views
  • 0 comments
  • 6 respects

Voltmeter Using Arduino

Project showcase by Team Next Tech Lab

  • 33,315 views
  • 26 comments
  • 68 respects

DIY Voltmeter Using Arduino and Smartphone

Project tutorial by IoT_hobbyist

  • 2,645 views
  • 3 comments
  • 30 respects

Arduino Digital Voltmeter 5V

Project tutorial by RoboCircuits

  • 5,047 views
  • 4 comments
  • 15 respects

Swarm Robot Using NRF Chat Application

Project tutorial by 3 developers

  • 4,496 views
  • 2 comments
  • 19 respects
Add projectSign up / Login