Skip to content

277 load cell validity check #379

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

tkevinbest
Copy link
Member

@tkevinbest tkevinbest commented Apr 9, 2025

I added logic to the SRI/Dephy amplifier class to detect broken wires. This was the problem that was very hard to diagnose at biorob, since just one of the loadcell wires was broken.

The new code monitors the raw ADC values and throws an error if it is consistently measures saturation at max or min values. Unit tests added as well. The user can disable this if they want during the amplifier constructor, but the default is enabled.

I also fixed some typing issues in the loadcell class regarding the size of the raw uints, and added a new "counter" class to the math module.

@tkevinbest tkevinbest linked an issue Apr 9, 2025 that may be closed by this pull request
@tkevinbest tkevinbest force-pushed the 277-load-cell-validity-check branch from 827d710 to 597844b Compare April 30, 2025 11:20
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

Successfully merging this pull request may close these issues.

Load cell validity check
1 participant