Load cell not reading any values

Hi, my load cell is not reading any values. It is giving me '0'. I am using Arduino NANO, HX711 and 2 50kg Square Load cells.

"#include "HX711.h"

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

HX711 scale;

void setup() {
Serial.begin(57600);
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);"


(note that i changed the pins to DOUT = 2 , SLK = 3)

i have checked the connectivity between dout,slk,vcc and gnd to the arduino board.
i have also checked the resistance between A- & A+ (around 990ohms) and E- & E+ (around 900ohms)

What happens if you change the "long" into "float"?

1 Like

it changes from 0 to 0.00

Better to check the voltages.
Hold negative lead of the DMM on the metal shield of the USB socket (ground).

E+ should be close to 4.25volt
E- should be 0.00volt >> important, the board could have a production fault is this is wrong.
A+ and A- should be half of E+

Now measure differential voltage between A+ and A-
It should be <40mV.
Leo..

@laughana
The following sketch will do functional check of the Lod Cells.
1. Connect DT-pin of HX711 Module with A1-pin of UNO.
2. Connect SCK-pin of HX711 Module with A0-pin of UNO.
3. Upload the following sketch.

/* This program takes 10 samples from LC + HX711B at
   1-sec interval and then computes the average.
*/

unsigned long x = 0, y = 0;
unsigned long dataArray[10];
int j = 0;

void setup()
{
  Serial.begin(9600);
  pinMode(A1, INPUT); //DT line  //Yellow cable in my Setup
  pinMode(A0, OUTPUT);  //SCK line  //Orange cable in my Set up
}

void loop()
{

  for (int j = 0; j < 10; j++)
  {
    digitalWrite(A0, LOW);//SCK is made LL
    while (digitalRead(A1) != LOW) //wait until Data Line goes LOW
      ;
    {
      for (int i = 0; i < 24; i++)  //read 24-bit data from HX711
      {
        clk();      //generate CLK pulse to get MSB-it at A1-pin
        bitWrite(x, 0, digitalRead(A1));
        x = x << 1;
      }
      clk();  //25th pulse
      Serial.println(x, HEX);
      y = x;
      x = 0;
      delay(1000);
    }
    dataArray[j] = y;
  }

  Serial.println("===averaging process=========");
  unsigned long C1 = 0;   //C1 = Count-1 against no fuel in the Tank

  for (j = 0; j < 10; j++)
  {
    C1 += dataArray[j];
  }
  Serial.print("Average Count = ");
  C1 = C1 / 10;
  Serial.println(C1, HEX);
}

void clk()
{
  digitalWrite(A0, HIGH);
  delayMicroseconds(50);
  digitalWrite(A0, LOW);
}

4. Open SM at Bd = 9600.
5. Check that SM shows some counts.
6. Put some weight on the Load Cells; check the count on SM changes.

E+ is 4.22V, E- is 0.015, A+ is 2.10, A- is 2.15

differential voltage about 1.3mv

its still giving me 0 value.

Time to measure the resistances of each (disconnected) load cell.
See if/how they react to weight.
Leo..

Hi,
Can you post some images of your project please?
So we can see your layout.

Can we please have a circuit diagram of your project?
An image of a hand drawn schematic will be fine, include ALL power supplies, component names and pin labels.

Thanks.. Tom... :smiley: :+1: :coffee: :australia:

Hi Tom, sorry for the poorly drawn schematic

(pls ignore the bluetooth module on the right side)

Thankss

Now, you have to follow these trouble shooting steps:
1. Connect resistor network with HX711 Module and then connect the module with UNO/NANO as per Fig-1 using short jumpers. Do not connect the LCD.


Figure-1:

2. Upload the sketch of post #5.
3. Slowly vary the R3-pot and check that you get changing values on the Serial Monitor.
4. Now remove the resistor network and connect only one load cell with the HX711 Module using short jumpers.
5. Put some varying weight on the load cell and check that the readings on SM changes.

Hi, I'm using the potentiometer to adjust the resistance but the values are still zero. could it be because of a faulty HX711 amplifier?

also, are my connections correct? I'm quite new to this.

thankyouuu

Here's the serial monitor value

hmmmm, they're all giving me 0.00ohms

sometimes it will go up to 0.01 - 0.05ohm

Your jumpers are still too... long. Use single jumper for each connection. Remove the load cell connections completely. You cannot trust the bread board. Some of them are very bad. If have soldering iron, then solder edge connector on the HX711 Module and then use jumpers after continuity check.

Try one more time and then change the HX711 Module if you have a redundant one.

image

And when you go back to your load cells, put some heat shrink tubes or electrical tape around the connections so the live parts can't touch each other.

:confused:

thanks for the help guys !! figured it out. it was faulty hx711 T.T