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

How to read port B on hx711? #6

Open
carlberg74 opened this issue Jan 29, 2018 · 1 comment
Open

How to read port B on hx711? #6

carlberg74 opened this issue Jan 29, 2018 · 1 comment

Comments

@carlberg74
Copy link

Is this possible?
Cant find any api to change port.. or am I missing something?

@carlberg74 carlberg74 changed the title How to B port on hx711? How to read port B on hx711? Jan 29, 2018
@dangrie158
Copy link
Owner

dangrie158 commented Jan 30, 2018

Hi,

I had to take a look at the datasheet but it seems to be indeed possible in the current code (although not very well documented):
According to https://cdn.sparkfun.com/datasheets/Sensors/ForceFlex/hx711_english.pdf you can select the channel and gain by specifying the number of clock bits. You can have the following configurations:

PD_SCK Pulses Input channel Gain
25 A 128
26 B 32
27 A 64

Which means, setting the gain to 32 should automatically switch to channel B. I don't think it is possible to use channel B with any other gain.

Hope this helps

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