robert-hh / ads1x15

Micropython driver for ADS1115 and ADS1015
90 stars 25 forks source link

Dataformat of ads1115.py #9

Closed jomasnash closed 3 months ago

jomasnash commented 3 months ago

Hi Robert,

If you follow the datasheet of the ads1115 your "raw_to_v(self, raw)" should divide by 32768 and not 32767 (line 146). See chapter 9.5.4 of the TI. datasheet. (notice that the left arrow of figure 33 points to 8001H not 8000H) I know, in practice you will not notice the difference.

robert-hh commented 3 months ago

Thanks. I updated the repository.