Hx711, load cell issue

hi
I connect load cell with hx711 and hx711 to arduino due.
and i put a code like below-hx711 basic example code.

#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);
  
}


and connect the device like above image.

but from serial monitor i only get 0 value like
hx711 reading ; 0

can i get advice about what is the problem.
thank you

What is the issue? My crystal ball is not cooperating today.

Do you have a datasheet for the load cell?

have you tried it?

const int LOADCELL_DOUT_PIN = 3;
const int LOADCELL_SCK_PIN = 4;

Even if the load cell is weighted, only 0 is output without any change.

...

Sry, I don't have it... I will tried to find simillar one.

You first need to find the sensitivity.
Apply 5v for the excitation voltage and connect a voltmeter with at least 4 digits of resolution to the signal wires.
You will need to mount it properly and apply 10kg.
Note what the voltmeter reads.

@asdfsgada - the load cell must bend/flex to get a reading as @jim-p has noted... here is an example image (it is not showing the bolts holding the plates to the hx711 - but you need mounting hardware):

1 Like

Your figure shows an ESP, not a Due.

If you really are powering the HX with 5v as shown, then you could have damaged your Due.

Warning: Unlike most Arduino boards, the Arduino Due board runs at 3.3V. The maximum voltage that the I/O pins can tolerate is 3.3V. Applying voltages higher than 3.3V to any I/O pin could damage the board.

Get a Sparkfun HX711. It is designed for use with 3.3v processors and allows you to also give the HX the 5v it needs for the Analog part.

thanks for your advice
i forgot about the arduino due operating voltage is 3.3v

by the way what is esp means, when i googling it it is like wifi module right?

yeah so i tried to bending the load cell like that shape with my hand
but it change nothing..

Yes. ESP8266 or ESP32. Can be programed just like other Arduino boards. Wifi, BT, faster processors (and both are 3.3v), more memory...

PS: if you are powering the HX711 with 3.3v, it won't work, because the analog part needs that 5v. And the digital needs 3.3v to be compatible with the 3.3v processor. Hence the suggestion to get the Sparkfun HX711 in post #11.

Make something like the drawing.

thanks for your advice

okay

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