RoboCircuits
Published

Arduino Digital Voltmeter 5V

Get accurate readings for voltage using arduino.

ExpertFull instructions provided5,482
Arduino Digital Voltmeter 5V

Things used in this project

Story

Read more

Schematics

circuit diagram

This is the circuit diagram of Arduino Digital Voltmeter...

Code

Arduino Code for Arduino Digital Voltmeter

C/C++
this is the code for digital voltmeter
#include<LiquidCrystal.h>
LiquidCrystal lcd(12,11,5,4,3,2);
int analogPin=1;
void setup()
{
  lcd.begin(16,2);
}
void loop()
{
  int v=analogRead(analogPin);
  voltage=v/1023*5.0;
  lcd.print("voltage=");
  lcd.print(voltage);
  
}

Credits

RoboCircuits

RoboCircuits

3 projects • 3 followers
RoboCircuits is a YouTube channel working on making cool arduino projects and tutorials.

Comments