Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

HX711 and load cells

Featured Replies

Hi,

 

First i'm french, so please excuse my english.

I'm new to this forum but not new with Orange Pi (One)
I'm already running 4 OPi with some basic hardware (like DS18B20, HT21D, relay module, etc...) for different projects like egg incubator, central heating, chicken door, etc...

I'm working on a new project for a connected beehive and i'm trying to use loadcells with an HX711 but i can't get any data from my HX711.

The code i'm using is this one: https://github.com/ggurov/hx711/blob/master/hx711.c

The only thing i can obtain is "No data to consider"
I have made a "quick and dirty" script to change #define CLOCK_PIN and #define DATA_PIN from 1 to 30, compile and run the hx711 script for each pin values, but whatever pin i use i can't get any data from my hx711.

Did someone already work with hx711 and load cells on an OPi One ?

 

Any help will be appreciated, thank you in advance :)

 

 

 

That code is for the Raspberry PI, not the Orange PI, and the way it obtains the necessary timings looks highly platform dependent, which is probably why it doesn't work. Using an hardware timer would be a much better solution IMO, but due to Linux non-realtime nature, I would use a small cheap micro controller just to take the readings, buffer them, and transform them into serial  (i2c, whatever) packets upon request from the OPi.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.