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

Power_down #220

Closed s56jsc closed 2 years ago

s56jsc commented 2 years ago

Hi I use HX711 with ESP-07 with battery supply so power consumption is important. I note, that there is only 10uA difference if I use scale.power_down() function. What do I do wrong?

 void loop() { 

  sensors_1.requestTemperatures(); 
  temperatura = sensors_1.getTempCByIndex(0);
  zajem_adc= analogRead(beri_senzor);               // napetost na bateriji

  Serial.print("Reading: ");
  teza= scale.get_units(5), 3;
  Serial.print (teza);
  Serial.println(" kg"); 

  if (digitalRead(TARA) == LOW) {
    shrani_tara(); 
    Serial.println("tipka TARA.");
  }
  Serial.print("zajem ADC ");
  Serial.println(zajem_adc);
  Serial.print("temperatura ");
  Serial.print(temperatura);
  Serial.println(" st.C");

  scale.power_down();              // put the ADC in sleep mode
  Serial.print("gremo spat... ");
  ESP.deepSleep(60e6);                            // se spravimo v deep sleep čez 60 sekund 
}
s56jsc commented 2 years ago

I found problem command scale.power_down(); works. Problem is (china???) HX711. In work mode need 3.5mA on power down 0.31mA. This is far away from datasheet! If I disconnect power from HX711 then I have only 0.04mA power consumption on ESP!