Skip to content

Make accurate voltage readings on arduino using the internal reference voltage.

License

Notifications You must be signed in to change notification settings

tobiasschuerg/ArduinoAccurateVoltage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArduinoAccurateVoltage

After trying multiple things to get good sensor readings (such as using resistors, capacitors, etc...) I came accross a Blog entry by majenko, who uses the internal reference voltage to get accurate readings.

usage

double voltage = getVoltage(A0);
Serial.println(voltage, DEC);

0.7257656097

To print some additional debug information to the Serial, set the debug flag to true:

getVoltage(A0, true);

VCC: 5.161, raw reading:144.000, raw voltage:0.703, adjusted voltage:0.726

About

Make accurate voltage readings on arduino using the internal reference voltage.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages