olkal/HX711_ADC

using channel A + B together

vina258466 opened this issue · 4 comments

i want to try to use two load cells but only use one hx711 module, the first load cell i connect to channel A and the second load cell i connect to channel B, how can i use this library, please share the solution for my problem

olkal commented

You can select the B-channel like this: LoadCell.setGain(32); and back to A-channel: LoadCell.setGain(128);

I don't have the solution or any code example for what you try to acheive. There is only one dataset in the library and until that has been "flushed" with new readings from the selected channel, the average value would be a mix of channel A and B. So to make it work I think you should use two instances of the library, one instance for each channel. Also note that the B-cannel have a gain of only 32, so it's likely to have more noise and less resolution compared to the A-channel.

If possible, use one dedicated HX711 for each loadcell.

thank you for the information

This issue is stale because it has been open for 30 days with no activity.

This issue was closed because it has been inactive for 14 days since being marked as stale.