Skip to content

Python Library for the HX711 load cell amplifier

License

Notifications You must be signed in to change notification settings

j-dohnalek/hx711py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HX711PY

Python library for the HX711 load cell amplifier and Raspberry Pi

Initial Calibration

  1. Place nothing on the scale, run the calibration.py and record the output. That is the offset.
  2. Place a known weight like 1kg(1000g) on the scale, record the output as weight.
  3. Calculate the ratio
ratio = (w - offset) / 1000

1000 being the 1000 grams or the weight previously placed on scale

Edit the example.py file with the offset and ratio

def setup():
    """
    code run once
    """
    hx.set_offset(`Place offset here`)
    hx.set_scale(`Place ratio here`)
    hx.tare()
    pass

Resources

Source code adapted from:
https://gist.github.com/underdoeg/98a38b54f889fce2b237

Documentation adapted from:
https://github.com/aguegu/ardulibs/tree/master/hx711

HX711 Datasheet (EN):
http://image.dfrobot.com/image/data/SEN0160/hx711_english.pdf

About

Python Library for the HX711 load cell amplifier

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages