bogde / HX711

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

Non-blocking mode not working. #152

Open Curious-Nikhil opened 5 years ago

Curious-Nikhil commented 5 years ago

The HX711 - timeout example sketch doesn't work.

It's supposed to return "0" when the loadcell is disconnected. I still get garbage values.

image

A temp fix.

 if (scale.wait_ready_timeout(1000) == 0 || scale.read() < 1000)
  {
    Serial.println("HX711 not Found");
    RED();
    while (1);
  }

Please help.

Curious-Nikhil commented 5 years ago

added a temp fix.

amotl commented 5 years ago

Dear @Curious-Nikhil,

thanks for writing in. Sorry to hear this mode added by us the other day doesn't work as expected for you. We have to admit that we haven't had the chance to test it on actual hardware yet.

I believe the fix would count as a workaround for you but we should really fix the library appropriately if possible.

With kind regards, Andreas.

Curious-Nikhil commented 5 years ago

Hey! Thanks a lot for the amazing library. @amotl !

It's cool. No problem. Thanks again! :D

amotl commented 5 years ago

I'd like to extend the thanks to @bogde and all others who helped the library getting where it is now. Glad this piece of software is helpful for you.