Dr.Toilet
Dr.Toilet

Reputation: 11

Android Things HX711

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?

Upvotes: 1

Views: 900

Answers (2)

Jamie Boyd
Jamie Boyd

Reputation: 1

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:

https://github.com/jamieboyd/AutoMouseWeight

https://github.com/jamieboyd/GPIO_Thread

Upvotes: 0

Andrii Omelchenko
Andrii Omelchenko

Reputation: 13343

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.

Upvotes: 1

Related Questions