HX711-multi icon indicating copy to clipboard operation
HX711-multi copied to clipboard

Update HX711-multi.cpp

Open MR-Nejati opened this issue 3 years ago • 3 comments

I was trying to use this library to measure 12 load cells with 12 hx711 modules. This library was working fine up to 4 load cells and modules, but oddly when I was trying to measure more than 5 load cells, it was not working. Then I decided to write my own code to read the signals and I found out what is wrong with this library: the HX711 datasheet clearly says that PD_SCK high time should not exceed 50 us, so as the numbers of load cells increase you pass the limit. The solution is so simple: you just have to write the results in PD_SCK low time which does not have limits.

image

now it works for me fine with 12x HX711 and is not limited to that.

image

MR-Nejati avatar Nov 07 '21 09:11 MR-Nejati

You're a life saver! Mine worked with only 2 load cells (arduino micro), after that it stopped. This fixed it easily, thanks for the time saved that would have been wasted trying to figure this out! 🎉

veiico avatar Feb 03 '22 09:02 veiico

P.S. Even though this project seems to be abandoned, please leave this PR open for other strugglers to see 😉

veiico avatar Feb 03 '22 09:02 veiico

You're a life saver! Mine worked with only 2 load cells (arduino micro), after that it stopped. This fixed it easily, thanks for the time saved that would have been wasted trying to figure this out! 🎉

you are welcome!

MR-Nejati avatar Feb 03 '22 09:02 MR-Nejati