Load cell with HX711

hello

I work during a period on a project load cell 40 kg with hx711

But every time I can not find results for a long period of testing

The connection is shown in the attachment and the result also

you can help me?

this is the code

#include "HX711.h"

// HX711.DOUT	- pin #A1
// HX711.PD_SCK	- pin #A0

HX711 scale(A1, A0);		// parameter "gain" is ommited; the default value 128 is used by the library

void setup() {
  Serial.begin(38400);
  Serial.println("HX711 Demo");

  Serial.println("Before setting up the scale:");
  Serial.print("read: \t\t");
  Serial.println(scale.read());			// print a raw reading from the ADC

  Serial.print("read average: \t\t");
  Serial.println(scale.read_average(20));  	// print the average of 20 readings from the ADC

  Serial.print("get value: \t\t");
  Serial.println(scale.get_value(5));		// print the average of 5 readings from the ADC minus the tare weight (not set yet)

  Serial.print("get units: \t\t");
  Serial.println(scale.get_units(5), 1);	// print the average of 5 readings from the ADC minus tare weight (not set) divided 
						// by the SCALE parameter (not set yet)  

  scale.set_scale(2280.f);                      // this value is obtained by calibrating the scale with known weights; see the README for details
  scale.tare();				        // reset the scale to 0

  Serial.println("After setting up the scale:");

  Serial.print("read: \t\t");
  Serial.println(scale.read());                 // print a raw reading from the ADC

  Serial.print("read average: \t\t");
  Serial.println(scale.read_average(20));       // print the average of 20 readings from the ADC

  Serial.print("get value: \t\t");
  Serial.println(scale.get_value(5));		// print the average of 5 readings from the ADC minus the tare weight, set with tare()

  Serial.print("get units: \t\t");
  Serial.println(scale.get_units(5), 1);        // print the average of 5 readings from the ADC minus tare weight, divided 
						// by the SCALE parameter set with set_scale

  Serial.println("Readings:");
}

void loop() {
  Serial.print("one reading:\t");
  Serial.print(scale.get_units(), 1);
  Serial.print("\t| average:\t");
  Serial.println(scale.get_units(10), 1);

  scale.power_down();			        // put the ADC in sleep mode
  delay(5000);
  scale.power_up();
}

arduino aplo.jpg

There's no answer ? :confused: :confused: :confused:

To what question?

hello

I work during a period on a project load cell 40 kg with hx711

But every time I can not find results for a long period of testing

The connection is shown in the attachment and the result also

you can help me?

this is the code

#include "HX711.h"

// HX711.DOUT	- pin #A1
// HX711.PD_SCK	- pin #A0

HX711 scale(A1, A0);		// parameter "gain" is ommited; the default value 128 is used by the library

void setup() {
  Serial.begin(38400);
  Serial.println("HX711 Demo");

  Serial.println("Before setting up the scale:");
  Serial.print("read: \t\t");
  Serial.println(scale.read());			// print a raw reading from the ADC

  Serial.print("read average: \t\t");
  Serial.println(scale.read_average(20));  	// print the average of 20 readings from the ADC

  Serial.print("get value: \t\t");
  Serial.println(scale.get_value(5));		// print the average of 5 readings from the ADC minus the tare weight (not set yet)

  Serial.print("get units: \t\t");
  Serial.println(scale.get_units(5), 1);	// print the average of 5 readings from the ADC minus tare weight (not set) divided 
						// by the SCALE parameter (not set yet)  

  scale.set_scale(2280.f);                      // this value is obtained by calibrating the scale with known weights; see the README for details
  scale.tare();				        // reset the scale to 0

  Serial.println("After setting up the scale:");

  Serial.print("read: \t\t");
  Serial.println(scale.read());                 // print a raw reading from the ADC

  Serial.print("read average: \t\t");
  Serial.println(scale.read_average(20));       // print the average of 20 readings from the ADC

  Serial.print("get value: \t\t");
  Serial.println(scale.get_value(5));		// print the average of 5 readings from the ADC minus the tare weight, set with tare()

  Serial.print("get units: \t\t");
  Serial.println(scale.get_units(5), 1);        // print the average of 5 readings from the ADC minus tare weight, divided 
						// by the SCALE parameter set with set_scale

  Serial.println("Readings:");
}

void loop() {
  Serial.print("one reading:\t");
  Serial.print(scale.get_units(), 1);
  Serial.print("\t| average:\t");
  Serial.println(scale.get_units(10), 1);

  scale.power_down();			        // put the ADC in sleep mode
  delay(5000);
  scale.power_up();
}

arduino aplo.jpg

Hi,
Is this related to this?

https://forum.arduino.cc/index.php?topic=485310.msg3322306#msg3322306

Can you post a picture of your project so we can see your component layout?
Have you a DMM to measure some voltages?

Tom.... :slight_smile:

thank you for your reply
You will find the pictures of my project in the attached piece
And for measurements with the voltmeter
What measure do you propose?
You can give me your proposal?

Note : that means this reading in serial com ?? and when I add a load nothing changes

Sans titre.jpg

Hello

I made measurements through the voltmeter

He gave me the following results

E- ----->E+ = 4V
E- ----->A- = 2.8V
E- ----->A+ = 1.6V

Dout -----> 5V

And if I but a load on load cell Dout will change nothing

what do you think ?

please help

Hi,
Measure the voltage across A+ and A- as you place and lift load off the cell.

Tom... :slight_smile:

Hi,
We need a clearer picture of your project and how your load cell is mounted.

Thanks.. Tom.... :slight_smile:

Hi thanks for your encouragement reply :slight_smile: :slight_smile: :slight_smile:

Ca gives me a lot of creativity

I measured the voltage between A + and A- I found 1.20 V in both cases with load and no load

I believe that there is a problem of connection of the wires with the HX711 because I work with a model scale Chinese :confused: :confused: :confused:

E + ----> E- = 4V
E- -----> A- = 2.8 V
E- -----> A + = 1.5 V
A + -----> A- = 1.20 V

help :cry: