How do i use i2c of dragon board 410c

tutorial
96boards

#1

I am implementing I2C to read ADS1115 data by using python, but I can’t find any resources to get a headstart. Can someone please tell me how to do that, so that I get things moving, at least.


#2

There is an existing kernel driver for this particular I2C device, you can enable it via SENSORS_ADS1015 config, and add the corresponding device-tree node. But if you really want to drive it yourself from python/userspace/I2C, you can use python-smbus library (pydoc smbus for documentation) and follow the datasheet [1].

[1] https://cdn-shop.adafruit.com/datasheets/ads1115.pdf


#3

I am implementing I2C to read ADS1115 data by using python, but I
can’t find any resources to get a headstart. Can someone please tell
me how to do that, so that I get things moving, at least.

Ideally you should first check hardware connectivity with i2cdetect (and
maybe i2cset/get is appropriate). It is useful to know you have
everything hooked up correctly before jumping into python.

Note that DB410C requires i2cdetect be run with the -r argument
(because the controller does not support “quick write”).

Once you have the hardware working then I think library code such as
https://github.com/adafruit/Adafruit_Python_ADS1x15 should work with
little or no modification on DB410C.