bogde / HX711

An Arduino library to interface the Avia Semiconductor HX711 24-Bit Analog-to-Digital Converter (ADC) for Weight Scales.
MIT License
896 stars 538 forks source link

Cant handel to return more than 2²⁴-1 value #227

Open sepehr-mnp opened 2 years ago

sepehr-mnp commented 2 years ago

Hi. First id like to thank you for putting your time on creating this useful library. I am using an arduino mega and MPS20N0040D sensor and it works just fine, until the pressure gets up to 16777215 and it just stops and cant get any higher, i assume it is because of limit of 3 bytes return in .read() function, i really need to show more pressure than that but the accuracy is not that much important for me. Could you please help me?

bogde commented 2 years ago

im not sure i understand your question. if accuracy is not important you could try increasing the value of set_scale by a factor of 10, 100, 1000 ... and then use get_units()