Giter VIP home page Giter VIP logo

Comments (7)

olkal avatar olkal commented on June 1, 2024

Hi!
Sure, just remove the "LoadCell.start" function in the setup part of your scetch, then tare will not be performed. The powerUp() and powerDown() functions can be usefull to save power if the HX711 is connected all the time.

Keep in mind that the data set will contain old data when you wake up the unit, so you need to fill the data set with fresh conversions if you want to read an updated value that is represents the current load.

from hx711_adc.

spanout avatar spanout commented on June 1, 2024

Perfect ..thank you

from hx711_adc.

spanout avatar spanout commented on June 1, 2024

Hi, sorry to come back to this, but I have been away and unable to check until today. Removing the call to Start() gives be bad readings but with start, the value is perfect.

My setup code is:

  LoadCell.begin();
  long stabilisingtime = 2000; 
  LoadCell.start(stabilisingtime);
  LoadCell.setCalFactor(104510.80);
  while (!LoadCell.update());

And my reading code is:

void loop() {
  

  LoadCell.update();


  if (millis() > t + 10000) {
    outval(LoadCell.getData());
    t = millis();
  }

  
  
}

I have the CalFactor, is it possible to get this to work from startup with a weight on the sensor and to give the correct value at that point. The reason I need this is if there was a power outage, I do not want the load sensor to tare to the weight that is on it.

Any help is greatly appreciated

from hx711_adc.

olkal avatar olkal commented on June 1, 2024

Hi!
If you by "bad readings" mean that you get a very high value readout, that makes perfect sense as you don't substract the tare value anywhere else in your code. Is this the case? If you put a known mass on the load cell, does the value increase same as the mass?

from hx711_adc.

spanout avatar spanout commented on June 1, 2024

Ahh.... got it... taking away that'tare value' makes it work perfectly.

Thank you and sorry for the stupid question

from hx711_adc.

olkal avatar olkal commented on June 1, 2024

You're welcome :)

from hx711_adc.

sidikhanrei avatar sidikhanrei commented on June 1, 2024

Hi, this is interesting.
Can you post the sample code how to use this lib without start()?

from hx711_adc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.