Git Product home page Git Product logo

Comments (4)

olkal avatar olkal commented on September 28, 2024

Hi, and thanks!
The code does not care at all whether you set the HX711 at low rate 10hz or high rate 80hz.

At low rate the HX711 use 8x internal oversampling, so changing from high rate to low rate you should see 8x slower settling time and 8x (3 bit) better resolution.

The libray have functions for measuring the real settling time and samples pr second, see example file Testing.ino.

from hx711_adc.

GoncaloFelicio avatar GoncaloFelicio commented on September 28, 2024

from hx711_adc.

GoncaloFelicio avatar GoncaloFelicio commented on September 28, 2024

Hi, i came into another issue, since im using 4 lc's at the same time, sometimes the readings dont sync with the HX711 readings and a wrong number comes up. How do I make it so it's always synced properly? should i change the 'milis' time ?

from hx711_adc.

olkal avatar olkal commented on September 28, 2024

Yes. Or you can remove the millis interval entirely by polling the update() function, it will return a positive value only if there is new conversions available. Something like this (for ea load cell):

  //LoadCell.update(); // comment this out...

  //get smoothed value from data set
  if (LoadCell.update()) {  // will return true only if there is new data
    float i = LoadCell.getData();
    Serial.print("Load_cell output val: ");
    Serial.println(i);
    //t = millis();
  }

I'm not sure if the serial com can cope with all the date from 4x LC's at 80hz though. If so, you could try changing from 9600 to 115200 baud.

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.