10kg Load Cell (TAL220) with Hx.711 gives reading of 0 all the time

Greetings,
I am undergoing a project that involves the use of a load cell to detect the presence of weight on top of a plate (E.g. when something is placed on it)

Here is my problem: I always get a reading of 0 regardless of what is on the load cell. There are some occasional fluctuations (random values) popping out but most of the time it stays 0.

I've included my code here:

#include "HX711.h"
HX711 scale(A1, A0); // DOUT, SCK


void setup()
{
  Serial.begin(9600);
  scale.set_scale(2280.f); 
  scale.tare();
}

void loop()
{
  Serial.print("one reading: ");
  Serial.println(scale.get_units(), 1);
}

And this is my setup:

Things I've tried:

  • Reinstalling the library
  • Switching Arduino boards
  • Switching load cells
  • Checking the wiring multiple times

Can anyone take a look and provide me with some guidance? Your advice is much appreciated.

Your code: HX711 scale(A1, A0); // DOUT, SCK

But your image shows DOUT, SCK going to digital pins 2 and 3.

:confused:

DaveEvans:
Your code: HX711 scale(A1, A0); // DOUT, SCK

But your image shows DOUT, SCK going to digital pins 2 and 3.

:confused:

Thanks for spotting that - I switched the pins to their respective places (A1, A0)
This time, the value changes from zero to 8388607, and it stays at that exact value no matter what I did to it (Adding weight, decreasing weight...).

The value u read 0x7fffff means 'no load'.
Do you read the correct input (A)?
Check connections and code

It seems unlikely that YOUR calibration factor is the same as the factor in the example (2280.f).

Have you calibrated the scale in accordance with the library instructions?