ADS1015 I2C ADC
ADS1015 I2C ADC
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
-
- Posts: 26
- Joined: Wed Jul 27, 2016 5:06 am
Re: ADS1015 I2C ADC
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
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
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.
-
- Posts: 26
- Joined: Wed Jul 27, 2016 5:06 am
Re: ADS1015 I2C ADC
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
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
As per our conversation on IRC, that library now has a class for ADS1115, which returns 16-bit results.
-
- Posts: 26
- Joined: Wed Jul 27, 2016 5:06 am
Re: ADS1015 I2C ADC
Sent from my ASUS_T00J using Tapatalk
Re: ADS1015 I2C ADC
Thanks for sharing. I ordered a ADS1115 today. Good timing
-
- Posts: 26
- Joined: Wed Jul 27, 2016 5:06 am
Re: ADS1015 I2C ADC
Nice mcauser,
Sent from my ASUS_T00J using Tapatalk
Sent from my ASUS_T00J using Tapatalk