bogde / HX711

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

Need to set clk line to LOW during setup with Adafruit Feather NRF52840 #225

Open twonius opened 2 years ago

twonius commented 2 years ago

When using the Sparkfun Loadcell breakout, If I don't explicitly set the clock pin LOW during the setup for some reason is_ready will never return true. With this added the example code executes without issues.

I'm not sure if this is something specific to this board but I just thought this might help someone else.

void setup() {

  Serial.begin(57600);
  scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);

  // ?
  digitalWrite(LOADCELL_SCK_PIN,LOW);

}
banoz commented 2 years ago

I've had this issue as well and I'd suggest to simply use power_up() method.