ESP32 HX711 reading are constant 8388607

I am having trouble using a string gauge sensor with a hx711 and esp32 wroom 32. If I read the data from the hx11, I constantly get: "Raw Value: 8388607". I tried changing the IC, changing the components, unplugging the sensors, using different codes but nothing seems to work. Here is my test code, but I am sure it is right:

#include <Arduino.h>
#include <HX711.h>
const int HX711_DOUT_PIN = 15;  // HX711 data pin
const int HX711_SCK_PIN = 2;   // HX711 clock pin
HX711 scale;

void setup() {
  Serial.begin(115200);
  Serial.println("HX711 Raw Value Test");
  scale.begin(HX711_DOUT_PIN, HX711_SCK_PIN);
  Serial.println("Ready to read raw values...");
}
void loop() {
  long rawValue = scale.read();
  Serial.print("Raw Value: ");
  Serial.println(rawValue);
  delay(1000);
}

Here is my wiring diagram:


I know, STRAIN_S+ and STRAIN_S- are switched up, but it shouldn't be an issue.

Why not try first with the following Module (Fig-1)?


Figure-1:

Your topic has been moved to a more suitable location on the forum. The Nano ESP32 section is specific for the Arduino Nano ESP32.

1 Like

I had an already working circuit, so i have integrated it to my pcb design. But now, I have ordered this module to test it out.

1 Like

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