HX711 with 200kg loadcell. Always reading 0

So we are creating a weighing scale using a 200kg straight bar loadcell with hx711 adc, but no matter what code I use, I don't get any readings, I already tried changing the module and the loadcell, still no readings. what shoud I do? need help please

#include "HX711.h"

// HX711 circuit wiring
const int LOADCELL_DOUT_PIN = 2;
const int LOADCELL_SCK_PIN = 3;

HX711 scale;

void setup() {
  Serial.begin(9600);
  scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
}

void loop() {

  if (scale.is_ready()) {
    long reading = scale.read();
    Serial.print("HX711 reading: ");
    Serial.println(reading);
  } else {
    Serial.println("HX711 not found.");
  }

  delay(1000);
  
}

I included some photos in the attachments[sorry I'm new here and I dont know how to post them]

(deleted)

spycatcher2k:
So let me get this right!

You post NO code, and NO wiring diagram, and you want help to get this working.

No problem, I'll post NO solution. :slight_smile:

See what to do yet?

Sorry, my mistake.. this is the code I used
#include "HX711.h"

// HX711 circuit wiring
const int LOADCELL_DOUT_PIN = 2;
const int LOADCELL_SCK_PIN = 3;

HX711 scale;

void setup() {
Serial.begin(9600);
scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
}

void loop() {

if (scale.is_ready()) {
long reading = scale.read();
Serial.print("HX711 reading: ");
Serial.println(reading);
} else {
Serial.println("HX711 not found.");
}

delay(1000);

}

Wiring diagram (hand drawn, not Fritzing).

Defining the variable for every turn of loop is maybe ok but looks odd to me. At initialization "reading" is set to zero. Is scale.read() defined to deliver a long? If not, declare "reading" in accordance to the definition of the function.

jremington:
Wiring diagram (hand drawn, not Fritzing).

Here its is

https://www.instructables.com/id/How-to-Interface-HX711-Balance-Module-With-Load-Ce/ I also tried to follow this one,but no matter what calibration factor I put, the readings are always 0. Already tried changing loadcells and hx711, still no readings

What voltage do you measure between E+ and E-? and between A+ and A- at zero load and full load?

Post some photos of your setup and, especially, the connections.

Edielon. Looks like you got your wiring wrong.

Check the connection of the load cell to the Hx711 from here
https://www.brainy-bits.com/load-cell-and-hx711-with-arduino/

Hi, totally new here, I was wondering if you solved this problem?
I had a similar ish thing with Arduino Mega2560, Hx711 and 120kg load cell and the same code you posted.

I started with “...not found”
My initial trouble shooting was to swap SCK and DT that resulted in a reading of 0.

Once I found my multi-meter I got back on track and discovered I had not properly soldered the header to GND on the HX711 board.

Same problem here.

I have a 100kg load cell , on each of the wires i get 30Ohms ,

Connected to a HX711 , i'm pretty sure my wiring is OK (i tried switching it every possible way)

Tried it on a Mega and a Yun, but i get no increase in readings when i apply pressure on the cell.

Anyone can help ?

I used the same code as above here, same results.

@bartdereu

(i tried switching it every possible way) That's a good way to damage stuff.
Wiring diagram!

Well i didn't exactly put 2 230v wires together eh ? hahaha . It's still a voltage and a readout, so
no matter how you connect them, you can't harm the load cell .

Anyhow, this is how i started as a connection, and this is how it's still connected now.

bartdereu:
Well i didn't exactly put 2 230v wires together eh ? hahaha . It's still a small voltage and a readout trough resistors, so no matter how you connect them, i don't think you can harm the load cell .

Anyhow, this is how i started as a connection, and this is how it's still connected now.

I tink I see a mistake. Look at the code

const int LOADCELL_DOUT_PIN = 2;
const int LOADCELL_SCK_PIN = 3;

HX711 scale;

void setup() {
  Serial.begin(9600);
  scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);

Load cell data pin is defined to be 2 and CLK to pin 3. BUT in the drawing shown Data and CLK are connected the opposite way. I can't tell whether the   scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN); have the arguments in the wrong order or if the pin definition is swapped.

A clear mismatch.

Hey, thanks for your reply.

These things had been checked indeed, and were correct.

The problem is solved now, it was very very stupid ! one of the solderings on the hx711
was bad , so there was no connection from the pin to the pcb. I re-soldered the whole
thing and it works like a charm now.

Well, well, You're up and running. That's the main interest.

If may can be helpful to someone, I've considered this library the best for arduino GitHub - olkal/HX711_ADC: Arduino library for the HX711 24-bit ADC for weight scales cause it can also save calibration on EEPROM (and not only for that)
I've solved my zero read by wiring differently the sensor, red and green cable from sensor were crossed/wrongly colored (do a measure with tester and be sure the load of the resistive bridge is balanced)

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.