M5Stack ADS110 I2C A->D module setting gain? #10466
Replies: 1 comment
-
see: example is for python smbus lib for I2C but it has good example for set/select configuration of adc, based on datasheet You will be able to configure adc in micropython something like: from machine import I2C where: for example gain = 1 , bits [ PGA0, PGA0 ] = 0 , 0 then CONFIG = b'0' ( gain = 2 ->CONFIG = b'1' , gain = 4 -> CONFIG = b'2' From UIflow repo (https://github.com/m5stack/UIFlow-Code) based on i2c_bus.py lib You Can Use easyI2C.write_u8() method |
Beta Was this translation helpful? Give feedback.
-
Using M5Stack ADS110 I2C A->D modules.
Any ideas how you set the gain value please . Preferably using UIFlow or failing that Micropython
Module & chip Datasheets describes 4 gain settings.
https://shop.m5stack.com/products/adc-unit
Beta Was this translation helpful? Give feedback.
All reactions