androidthings / contrib-drivers

Open source peripheral drivers
Apache License 2.0
560 stars 174 forks source link

[driver] Issue with driver for ADS1115 #118

Open jenchenUA opened 5 years ago

jenchenUA commented 5 years ago

In case, when a range of measuring is set as RANGE_6_144V, and I try to measure 5v, I got ~4.8v instead of 5v.

Fleker commented 5 years ago

There may be a margin of error that is listed in the device datasheet. There may also be a part of your circuit that is causing a small drop, such as a resistor.

jenchenUA commented 5 years ago

There may be a margin of error that is listed in the device datasheet.

No, I've connected an input of the ADC directly to a source of 5v power without resistors and I've got only ~4.8v. But, there exists a strange thing that I've noticed, I've tried to measure 3.3v in such way and with my circuit, and it was measured correctly with the range: RANGE_6_144V.