Niente da fare, ho provato pure un quartetto di sensori con 3 fili opportunamente collegati, ma non cambia niente.
A queto punto credo che ci sia un problema sull'hardware/software di arduino. Se vi viene in mente qualchel prova che posso fare dite pure, intanto vi allego l'atro codice che ho usato.
#include <HX711.h> //You must have this library in your arduino library folder
#define DOUT 57
#define CLK 56
HX711 scale(DOUT, CLK);
//Change this calibration factor as per your load cell once it is found you many need to vary it in thousands
float calibration_factor = -96650; //-106600 worked for my 40Kg max scale setup
//=============================================================================================
// SETUP
//=============================================================================================
void setup() {
Serial.begin(9600);
Serial.println("Press T to tare");
scale.set_scale(-96650); //Calibration Factor obtained from first sketch
scale.tare(); //Reset the scale to 0
}
//=============================================================================================
// LOOP
//=============================================================================================
void loop() {
Serial.print("Weight: ");
Serial.print(scale.get_units(), 3); //Up to 3 decimal points
Serial.println(" kg");
delay(100);
if(Serial.available())
{
char temp = Serial.read();
if(temp == 't' || temp == 'T')
scale.tare(); //Reset the scale to zero
}
}