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.