You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Thanks! Please can you try:

    h=require("https://github.com/espruino/E­spruinoDocs/blob/master/devices/HX711.js­").connect({
      sck : B15,
      miso : LED2,
      lsbGrams : 0.00103123388,
      mode : "A128"
    });
    h.tare();
    setInterval(function() {
      print(h.readGrams());
    }, 1000);
    

    and see if it works for you?

    I don't have one to test with here so it's guesswork really.

    The module itself is here if you want to take a look at what's available: https://github.com/espruino/EspruinoDocs­/blob/master/devices/HX711.js

    I tried to make it so that it will output the correct number of pulses - I think you probably hit issues because if the delay is too great between pulses it can really throw it off.

    I also added isReady - since it looks like you can tell if a reading is ready by checking the state of the DATA line - it might help with allowing you to get a good reading at a higher data rate.

About

Avatar for Gordon @Gordon started