# hx711py **Repository Path**: LeTree19/hx711py ## Basic Information - **Project Name**: hx711py - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-03 - **Last Updated**: 2021-04-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # HX711 for Raspbery Py ---- Quick code credited to [underdoeg](https://github.com/underdoeg/)'s [Gist HX711.py](https://gist.github.com/underdoeg/98a38b54f889fce2b237). I've only made a few modifications on the way the captured bits are processed and to support Two's Complement, which it didn't. Update: 25/02/2021 ---- For the past years I haven't been able to maintain this library because I had too much workload. Now I'm back and I've been working on a few fixes and modifications to simplify this library, and I might be commiting the branch by mid-March. I will also publish it to PIP. Instructions ------------ Check example.py to see how it works. Installation ------------ 1. Clone or download and unpack this repository 2. In the repository directory, run ``` python setup.py install ``` Using a 2-channel HX711 module ------------------------------ Channel A has selectable gain of 128 or 64. Using set_gain(128) or set_gain(64) selects channel A with the specified gain. Using set_gain(32) selects channel B at the fixed gain of 32. The tare_B(), get_value_B() and get_weight_B() functions do this for you. This info was obtained from an HX711 datasheet located at https://cdn.sparkfun.com/datasheets/Sensors/ForceFlex/hx711_english.pdf