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

Setting GAIN after each read #50

Closed
eghantous82 opened this issue Oct 20, 2016 · 2 comments
Closed

Setting GAIN after each read #50

eghantous82 opened this issue Oct 20, 2016 · 2 comments

Comments

@eghantous82
Copy link

eghantous82 commented Oct 20, 2016

After reading the datasheet for the Hx711 [https://cdn.sparkfun.com/datasheets/Sensors/ForceFlex/hx711_english.pdf] it appears that that 25-27 pulses on PD_SCK are required to set the GAIN and INPUT. Looking at the code, it looks like it's looping 1-3 times. Am I missing something?
25 -> A 128
26 -> B 32
27 -> A 64

@bogde
Copy link
Owner

bogde commented Oct 20, 2016

shiftIn (x3) should pulse the clock 24 times; then the code i think you're referring to pulse it again 1, 2, or 3 times depending on the required gain factor, that should give 25, 26, 27 pulse, like in the datasheet. let me know if you think that may not be correct.

@eghantous82
Copy link
Author

Thanks, sorry I missed that.

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

2 participants