-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for ads1015 #2223
Comments
#2188 is similar in that it adds support to a variant of a chip that we already have a module for. Not sure if it helps to look for inspiration there. |
Thanks for the tip. I am new here, so for me it is not obvious how far is the memory consumption an issue. Looking at the chip specs, I see no way to automate the initialization - from i2c side both chips appear identical. |
I manage to add support for multiple devices as well as different device type ads1015. I also believe it will work unchanged with ads1x13 and ads1x14. The changes can be seen under https://github.com/paweljasinski/nodemcu-firmware/tree/new-ads1115. I would appreciate feedback before updating documentation and doing a PR. |
PR merged. Thanks a lot for your contribution Pawel, very much appreciated! |
Missing feature
When using ads1015 chip, the existing ads1115 module can be used. However, not everything maps 1:1.
The single shot mode, module programs an esp timer with the values which are incorrect. The interval values are longer than necessary (e.g. 10ms is programmed where 1ms would be sufficient)
Interpretation of constant values used to program sampling frequency is different (e.g. ads1115.DR_8SPS is equivalent of ads1015.DR_128SPS)
Justification
ads1015 breakout boards are is available from adafruiit and ali
Workarounds
ads1115module can be used in continuous mode
use ads1115 module as-is with known limitations
The text was updated successfully, but these errors were encountered: