Page 1 of 1

ADS1015 I2C ADC

Posted: Fri Jun 10, 2016 9:30 pm
by deshipu
ADS1015 is a nice I2C-based analog-to-digital converter chip, with four 12-bit channels and configurable gain. Here's a driver for it: https://bitbucket.org/thesheep/micropython-ads1015/src​

Re: ADS1015 I2C ADC

Posted: Mon Aug 22, 2016 4:13 am
by joehunt588
Hi deshipu thank for the code :)

may i know how to read 16bit(65536)

>>from ads1015 import*

>>ads=ADS1015(i2c)
>>ads.read(0)
>>1076

how to convert it for readable value?
i try using this equation:-
(1076*3.3)/65536
but cannot got actual value,im using ads1115 for the test. Using multimeter value is 3.2volt

Re: ADS1015 I2C ADC

Posted: Mon Aug 22, 2016 7:43 am
by deshipu
Not sure what you mean by "readable value". Also, you won't get a 16-bit value from this, since the ADC is only 12 bit -- so the range should be 0-4096.

Re: ADS1015 I2C ADC

Posted: Mon Aug 22, 2016 8:28 am
by joehunt588
Thank you for reply
May i know how can i change it for 16bit any code i need to change for can be use,as i know ads1015 n ads1115 is same address ,

Sent from my ASUS_T00J using Tapatalk

Re: ADS1015 I2C ADC

Posted: Mon Aug 22, 2016 10:24 am
by deshipu
As per our conversation on IRC, that library now has a class for ADS1115, which returns 16-bit results.

Re: ADS1015 I2C ADC

Posted: Mon Aug 22, 2016 11:00 am
by joehunt588
Image

Sent from my ASUS_T00J using Tapatalk

Re: ADS1015 I2C ADC

Posted: Mon Aug 22, 2016 12:40 pm
by mcauser
Thanks for sharing. I ordered a ADS1115 today. Good timing :)

Re: ADS1015 I2C ADC

Posted: Mon Aug 22, 2016 11:08 pm
by joehunt588
Nice mcauser,

Sent from my ASUS_T00J using Tapatalk