Hello,
I have a problem with measuring load with load cells. I connected them to a combinator board from Sparkfun and reconnected the combinator bord to the HX711 amplifier from Sparkfun.
I've used the following code:
#include "HX711.h"
#define DOUT 3
#define CLK 2
HX711 scale(DOUT, CLK);
float calibration_factor = -7050;
int meting = (scale.get_units(), 1);
int zoemer = 11;
int belastingnorm = -1;
void setup() {
Serial.begin(9600);
pinMode(zoemer, OUTPUT);
scale.set_scale(calibration_factor); //This value is obtained by using the SparkFun_HX711_Calibration sketch
scale.tare(); //Assuming there is no weight on the scale at start up, reset the scale to 0
Serial.println("Readings:");
}
void loop() {
Serial.print("Reading: ");
Serial.print(scale.get_units(), 1); //scale.get_units() returns a float
Serial.print(" lbs"); //You can change this to kg but you'll need to refactor the calibration_factor
Serial.println();
delay(450);
if(meting>belastingnorm) {
digitalWrite(zoemer,HIGH);
}
}
When i open the serial. I get only one number which doesn't change when i put load on the load cells.
I checked the circuit and the loadcells are correctly connected to the combinator board. Do have anyone a solution for this problem so i can measure load?
I detached the circuit i have build.
Greetings Gert