Skip to content
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

ADS1256 cannot get correct readout value #10

Open
victorll998 opened this issue Jan 20, 2021 · 0 comments
Open

ADS1256 cannot get correct readout value #10

victorll998 opened this issue Jan 20, 2021 · 0 comments

Comments

@victorll998
Copy link

victorll998 commented Jan 20, 2021

I ran the sample code using raspberry pi 4b but I cannot any reading that makes sense to me.

I modified the ads function to get spi buffer readings. It showed that the voltage reading of the built-in pot on channel 0 is always 0 (I double-checked the jumpers and wire connection and they should be fine).

Setting aside the hardware issues, I had a close look at BCM ads library. There is one thing I wasn't sure about. In line 248, why we need a filter for the spi buffer readings? shouldn't it be like " read |= 0xFF000000" as for a sign extension from 24-bit to 32-bit signed integer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant