HX711 with Arduino Uno: constant '8388607' output

When using an Arduino connected to an HX711 amplifier connected to a Wheatstone half bridge. I am extracting the raw values from the Arduino.

The value that i am getting is 8388607 consistently. I have used this setup before and it was working but i have tried everything and not getting a different result.

Hi and welcome!

see here:

-8388608 / 8388607 are the smallest / biggest numbers a 24bit two’s complement can carry, so the ADC values are clipped. This leads to a change in wiring (when your same appliance before worked), a dirty GND interconnection or thelike.

If software change at your site is the reason for that, consider using a recent version of bogde/HX711 lib - but this as a 2nd step.

2 Likes

Ich hatte das selbe Problem. Ursache war die Hardware. Da war schlicht und einfach ein Transistor von der Platine gefallen… :tired_face:

Zum Glück hab ich noch ein paar von den Dinger rumfliegen. Getauscht, lief. Vorher aber stundenlang Kabel durch gemessen und Schaltung & Software geprüft…

3 Likes

Krass, das hatte ich noch nicht gesehen!

See also at Getting a list of all predefined compiler macros - #2 by Andreas.

#define __INT24_MAX__ 8388607L
1 Like

So my wiring was faulty but once fixed I still capped at the value mentioned. I used the line below in my code which halfed the gain thus bringing the readings back into measured range.

scale.set_gain(64);

I hope this helps anyone else.

2 Likes

@ckrohne hatte mir zwei ältere Open Hive WiFi Solar / Adafruit HUZZAH zugeschickt, einen von mir zusammengelötet und einer von ihm. Beide lieferten nach bisherigem problemlosen Werkeln plötzlich keine korrekten Daten für die Waage mehr.

Bei der Ausgabe der Rohdaten mit der HX711-Bibliothek spuckt der eine nur 8388607-Werte aus, der andere alteriert zwischen den möglichen extremen:

Get raw values for lower limit: 
-1
-1
-1
8388607
8388607
8388607
8388607

Sehe ich heute das erste mal so! Leider ist das HX711-Board festgelötet und nicht gesteckt, was den Austausch schwierig macht.

1 Like