In this instructable/video, I've built a voltmeter to measure high voltages DC (0-90v) with relative precision and accuracy using an Arduino Nano.
You can find the complete instructable tutorial & code here: https://www.instructables.com/id/Ardu...
The test measurements I took were accurate enough, mostly within 0.3v of the actual voltage measured with a standard voltmeter (I used an Astro AI DM6000AR). This is close enough for my intended use of the device.
To archive this I used a voltage reference (4.096v) and voltage divider.
On the code side, I used, of course, the "external reference" option for the Arduino Nano and the "Smoothing" example in the Arduino tutorials.
Also check the second video I made about precise voltage using an Arduino: • Arduino Precise High Voltage meter(0-100V ...
========================================================
Supplies Used in this video:
1 x Arduino Nano - https://amzn.to/2TiPaHY
1 x Oled Display (SSD 1306) - https://amzn.to/2LCPhts
1 x 1/4W 1% Resistors - 1k ohm - https://amzn.to/3dVGfEc
1 x 1/4W 1% Resistors - 220k ohm - https://amzn.to/3dVGfEc
1 x 1/4W 1% Resistors - 10k ohm - https://amzn.to/3dVGfEc
1 x 4.096v LM4040DIZ-4.1 Voltage Reference - https://www.digikey.com/product-detai...
Breadboard and wires - https://amzn.to/2z0KmjH
Astro AI DM6000AR - https://amzn.to/3cJDVzR
USB Power Bank - https://amzn.to/3cEhk7Q
9V Batteries -https://amzn.to/2zST1o0
CanadianWinters is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn fees by linking to Amazon.com and affiliated sites. By using these links, as an Amazon Associate I earn from qualifying purchases, even if you buy something else--and it won't cost you anything.