OpenMarine
ADS1115 Change decimal place - Printable Version

+- OpenMarine (http://forum.openmarine.net)
+-- Forum: OpenPlotter (http://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: How do I...? (http://forum.openmarine.net/forumdisplay.php?fid=3)
+--- Thread: ADS1115 Change decimal place (/showthread.php?tid=949)



ADS1115 Change decimal place - Luckbert - 01-13-2018

Hello, everyone,
I'm facing a problem.
I want to measure voltage with an ADS1115. So far, so good. I followed the docu procedure and get values. However, my output value shows 7000.00 V. However, a voltage source with 7 V is connected. How can I change the decimal place?
Greetings Jürgen


RE: ADS1115 Change decimal place - e-sailing - 01-15-2018

(01-13-2018, 11:11 AM)Luckbert Wrote: Hello, everyone,
I'm facing a problem.
I want to measure voltage with an ADS1115. So far, so good. I followed the docu procedure and get values. However, my output value shows 7000.00 V. However, a voltage source with 7 V is connected. How can I change the decimal place?
Greetings Jürgen
Add in the openplotter_analog.conf [ADS1115_X] Section
adjust_points = [[0.0,0.0],[7000.0,7.0],[20000.0,20.0]]

You can add more points to the line if you have non linear values.