HX711 in use
Posted: Tue Jul 26, 2022 8:56 pm
Hi
I know a lot of forum members (and Matrix staff) are very familiar with the HX711 and I've read most of the posts. My own experience until recently was a few years back before FC had a component, and "Pete Smart" kindly shared his code. I have vague memories of using a small red PCB and having reasonable results in some basic testing.
Having a potential need to use some load cells I bought a device off of a well known cheap module outlet which included a 20Kg cell too. Years back I bought some 20Kg cells and each individual cell was far, far in excess of what I paid for the HX711 + cell. However you do get what you pay for so my hopes weren't too high.
I expected random noise, a lot of noise..... 24 bit ADC is surely way too much for a gadget running at only a few volts. Who needs to measure in nano volts and if you did I think you would not be doing it under anything other than heavily screened lab conditions
I downloaded the example and changed target to a PIC16F1939 and a "combo board" moving the connections to Port C. Looking at the component properties I see the Clock Transition Delay at 25uS. The "tooltip" suggests a max of 1uS for 10Hz and 4uS for 80Hz. Why the discrepancy? I assume an oversight or typo (incidentally the board I'm using seems fixed at 10Hz unless I want to attack it).
I get the setting of scaling factors, channel/gain and sample count etc then the zeroing, but I was sceptical of getting stable readings (random noise etc). When running the example I get a variance of anything up to +/- 1000 or so between readings with no load on the cell. I did kind of expect as much. I don't think this would easily be averaged out unless you wished to wait forever per reading and I do appreciate using a lower gain would help too.
I found that to get any usable stability I need to shift the result right by 10. With this shift I could load the cell and get repeatable, stable results even without much averaging.
I would be keen to hear of anyone else's experience with this module. Do you have similar instability? It could just be that my module+cell is cheap for a reason and that is my issue. Any brands that you can recommend that work well?
Regards
I know a lot of forum members (and Matrix staff) are very familiar with the HX711 and I've read most of the posts. My own experience until recently was a few years back before FC had a component, and "Pete Smart" kindly shared his code. I have vague memories of using a small red PCB and having reasonable results in some basic testing.
Having a potential need to use some load cells I bought a device off of a well known cheap module outlet which included a 20Kg cell too. Years back I bought some 20Kg cells and each individual cell was far, far in excess of what I paid for the HX711 + cell. However you do get what you pay for so my hopes weren't too high.
I expected random noise, a lot of noise..... 24 bit ADC is surely way too much for a gadget running at only a few volts. Who needs to measure in nano volts and if you did I think you would not be doing it under anything other than heavily screened lab conditions

I downloaded the example and changed target to a PIC16F1939 and a "combo board" moving the connections to Port C. Looking at the component properties I see the Clock Transition Delay at 25uS. The "tooltip" suggests a max of 1uS for 10Hz and 4uS for 80Hz. Why the discrepancy? I assume an oversight or typo (incidentally the board I'm using seems fixed at 10Hz unless I want to attack it).
I get the setting of scaling factors, channel/gain and sample count etc then the zeroing, but I was sceptical of getting stable readings (random noise etc). When running the example I get a variance of anything up to +/- 1000 or so between readings with no load on the cell. I did kind of expect as much. I don't think this would easily be averaged out unless you wished to wait forever per reading and I do appreciate using a lower gain would help too.
I found that to get any usable stability I need to shift the result right by 10. With this shift I could load the cell and get repeatable, stable results even without much averaging.
I would be keen to hear of anyone else's experience with this module. Do you have similar instability? It could just be that my module+cell is cheap for a reason and that is my issue. Any brands that you can recommend that work well?
Regards