Read a single strain gauge data

Hello everyone
I want to read a single strain gauge data using HX711 module and ESP32
My circuit is like the following picture

and my code is

#include "HX711.h"

// HX711 circuit wiring
const int LOADCELL_DOUT_PIN = 16;
const int LOADCELL_SCK_PIN = 4;

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

Nothing changes when I deform the strain gauge
It just shows 8388607

So what’s the problem

1 Like

1 Like

1 Like

1 Like

1 Like

1 Like

1 Like

Hi @SeyedMHA and welcome to the forum.

Do you maybe have an oscilloscope? With it, I think you could check if any signal is coming from the strain gauge or not. Meaning, if maybe the strain gauge is defective or maybe some other part of the circuit is giving problems. In the end, it also can be the code.