Hello Again,
After further study, I am able to isolate my question even more. Looks like I’ll need to identify bits I need to print to the display - then do some masking.
Same challenge here as previous question, different different “scale” hardware: To display force on 4 digit 7 Segment display. The HX711 is a 24 bit ADC; incidentally the scale factor my Wheatstone bridge scale setup requires is 43000.
Using the Bogde Library and the example code (full and basic - cobbled) here are some numerical, decimal outputs from the serial monitor indicating FORCE in pounds. Note that a feasible maximum force could be in the hundreds, eg “198.2” which I wish to display, with decimal for tenths in every reading, on the SparkFun COM-11442 four-digit Serial 7 Segment display:
HX711 reading: -829132
18:22:54.621 → | average force: -0.19 (NO LOAD)
18:22:54.821 → get value output: -8048.00
18:22:55.122 → I received: -0.1873720932
HX711 reading: -605081
18:22:48.051 → | average force: 5.04 (LIGHT LOAD)
18:22:48.305 → get value output: 217427.00
18:22:48.552 → I received: 5.0023255348
HX711 reading: 796473
18:18:39.587 → | average force: 37.33 (MODERATE LOAD)
18:18:39.841 → get value output: 1596969.00
18:18:40.089 → I received: 36.9229087829
HX711 reading: 2023354
18:21:42.676 → | average force: 66.42 (HIGHER LOAD
18:21:42.930 → get value output: 2918129.00
18:21:43.177 → I received: 68.9497451782
The “serial monitor” function does not display all the leading or trailing zeroes so I do not know which BITS I need to mask for the output data I want to display (from 0.1 lbs to 299.9 lbs).
The HX711 presumably outputs 24 bits of data each reading. Can you please advise me how to identify WHICH of those bits I will need in my desired force range of 0.1-299.9 lbs, so I can figure out the masking required?
Thanks!
Mark