Devices & Components
Arduino Nano
Alphanumeric LCD, 16 x 2
Solderless Breadboard Full Size
Trimmer Potentiometer, Square
Jumper wires (generic)
Resistor 100 ohm
USB-A to Mini-USB Cable
Rotary Potentiometer, 10 kohm
Hardware & Tools
Multitool, Screwdriver
Software & Tools
Arduino IDE
Project description
Code
Arduino Digital Volt meter
c_cpp
Copy that
1#include <LiquidCrystal.h> 2 3LiquidCrystal lcd(5,6,7,8,9,10); 4 5float 6 voltage; 7float val; 8const int Vref = 5.0; 9const int resolution = 1024.0; 10 11void 12 setup() { 13 // put your setup code here, to run once: 14lcd.begin(16,2); 15lcd.setCursor(0,0); 16lcd.print("Voltage:"); 17 18} 19 20void 21 loop() { 22 // put your main code here, to run repeatedly: 23val = analogRead(A3); 24voltage 25 = (val*Vref)/resolution; 26lcd.setCursor(0,1); 27lcd.print(voltage); 28delay(90); 29} 30
Downloadable files
Arduino Digital Volt meter
Download PDF
Arduino Digital Volt meter
Arduino Digital Volt meter
Download PDF
Arduino Digital Volt meter
Comments
Only logged in users can leave comments