Git Product home page Git Product logo

simplehx711's Introduction

SimpleHX711

This is a simple (maybe not so simple :) ) non blocking library for the Avia Semiconductor HX711 24-Bit Analog-to-Digital Converter (ADC) for Weight Scales.

With this library you can:

  • use it in a blocking or non blocking way.
  • suppress the first readings after a reset.
  • check the status of the chip:
    • init: the chip is initializing and has not reached the required reads
    • valid: the last reading is valid
    • poweredDown: the chip is powered down
    • timedOut: the initializing time after powerup, reset and gain change is 400 ms when the output data rate is 10 Hz, if the chip is not ready after 500 ms it's probably disconnected
  • optionaly smooth the output by applying exponetial smoothing, the smoothing factor alpha can be between 1/256 and 255/256
  • tare the output, which "resets" the output to 0, this can use the smoothed and the unsmoothed output
  • calibrate the chip by adjusting the output to the desired value.
  • all the settings can be read and written to.

See the example how to use this library.

simplehx711's People

Contributors

edwincroissant avatar

Watchers

James Cloos avatar  avatar

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.