Hello, I have an error while running the program for the load cell, although I tried all the library for the HX711. Here is the error
#include "HX711.h"//you muct have this library in your arduino library folder
#define Dout D5
#define CLK D6
HX711 scale (DOUT, CLK);
//change this clabration factor as per your load cell once it is found you many need to vary it in untill it give the correct values
float calibration_factor = -109525; //-106600 worked for my 40Kg max scale setup
//======================================================================================================================================
// SETUP
//======================================================================================================================================
void setup () {
Serial.begin(9600);
Serial.printin("HX711 calibration");
Serial.printIn("Remove all weigtht from scale");
Serial.printIn("After reading begin, place known weight on scale");
Serial.printIn("Press a,s,d,f to increase calibration factor by 10,100,1000,10000 respectively");
Serial.printIn("Press z,x,c,v to decearse calibration factor by 10,100,1000,10000 respectively");
Serial.printIn("Press t for tare");
Scale.set_scale();
Scale.tare(); //Reset the scale to 0
long zero_factor = scale.read_average(); //Get a baseline reading
Serial.print("zero factor: "); //This can be used to remove the need to tare the scale.
Serial.printIn(zero_factor);
}
//====================================================================================================================================
// LOOP
//====================================================================================================================================
void loop (){
scale.set_scale(calibration_factor); //Adjust to this calibration factor
Serial.print(Reading: ");
Serial.print(scale.get_units(), 3);
Seral.print(" kg"); //Change this to kg and re-adjust the calibration factor if you follow SI unit:
Serial.print (" calibration_factor: ");
Serial.print(calibration_factor);
Serial.printIn();
if(Serial.available ())
}