i want to read a load cell with the raspberry pi 3 and android things using a HX711 24-bit adc and i2c. After hours of searching i still havent found a solution on how to set up the hx711 using i2c and read data from it. Is it even possible for now?
Asked
Active
Viewed 853 times
1
-
1Please [edit] your question to show [the code you have so far](http://whathaveyoutried.com). You should include at least an outline (but preferably a [mcve]) of the code that you are having problems with, then we can try to help with the specific problem. You should also read [ask]. – Toby Speight Jun 23 '17 at 11:28
2 Answers
1
For I²C on Android Things: take a look at Official Documentation, than at example like this (especially at that file), this or that (MCP 4725 — I²C Communication Basics part).
But, seems as described in datasheet, HX711 has interface similar to I²C, but not exactly I²C. Please take a look at this project for details.

Andrii Omelchenko
- 13,183
- 12
- 43
- 79
0
As pointed out previously, HX711 does no use i2c, but needs to be bit-banged from GPIO.
For Raspberry Pi, I have a threaded c++ solution for reading weights from an HX711, with a Python/C module wrapper so you can use it from Python. More explanation and code at:

Jamie Boyd
- 1
- 1