hi,
I'm trying to connect a load cell , to Arduino uno via 412 arduino sensor weight ADC board which based on HX711, this is the code:
#include "HX711.h"
#define DOUT 3
#define CLK 2
HX711 scale;
float calibration_factor=-10;
void setup() {
Serial.begin(9600);
Serial.println("HX711 calbrationsketch");
Serial.println("remove all weight from scale");
Serial.println("after reading begin, place known weight on scale");
Serial.println("press + or a to increase calibration factor");
Serial.println("press - or z to decrease calibration factor");
scale.begin(DOUT,CLK);
scale.set_scale();
scale.tare();
long zero_factore=scale.read_average();
Serial.print("zero factore: ");
Serial.println(zero_factore);
}
void loop() {
scale.set_scale(calibration_factor);
Serial.print("reading");
Serial.print(",");
Serial.print(scale.get_units(),1);
Serial.print("kg");
Serial.print(",");
Serial.print(calibration_factor);
Serial.println( );
if (Serial.available()){
char temp =Serial.read();
if (temp =='+'|| temp=='a')
calibration_factor+=1;
else if (temp=='-'||temp=='z')
calibration_factor-=1;
}
delay (5000);
}
resulting readings are zero like this:
HX711 calbrationsketch
remove all weight from scale
after reading begin, place known weight on scale
press + or a to increase calibration factor
press - or z to decrease calibration factor
zero factore: -1
reading,0.0kg,-10.00
reading,0.0kg,-10.00
reading,0.0kg,-10.00
reading,0.0kg,-10.00
reading,0.0kg,-10.00
reading,0.0kg,-10.00
reading,0.0kg,-10.00
reading,0.0kg,-9.00
reading,0.0kg,-9.00
reading,0.0kg,-8.00
reading,0.0kg,-8.00
reading,0.0kg,-8.00
reading,0.0kg,-8.00
reading,0.0kg,-8.00
reading,0.0kg,-8.00
reading,0.0kg,-8.00
reading,0.0kg,-7.00
reading,0.0kg,-7.00
reading,0.0kg,-6.00
I've checked wiring several times and followed the instruction very carfully, and I still get zeroes
please help.