Dear Friends
I read this topic and seems is en the line of what I need.
Recently I bought 3 load cells (1kg, 3kg,and 5kg), one HX711.
With mine arduino uno I conect one load cell.
DT to pin D3 from uno and CLK to pin D2 from uno.
Load cell works fine and it is very sensitive.
For the project I not need to use a big board like arduino uno, and I buy the arduino nano.
After upload the same code, same connections in the arduino nano, simply does not work.
The readings does not start, I try to change for digital ports D5 and D6 but nothing.
At the begginning I thout that the HX711 was broken, but I connect again in the uno and it works fine.
So the conclusion, there must be some problem with the arduino uno.
#include "HX711.h"
HX711 scale(3, 2); //HX711 scale(DT3, CLK2);
float calibration_factor = 275;//valores baixos aumenta a leitura
float units;
float ounces;
void setup()
{
Serial.begin(9600);
Serial.println("HX711 weighing");
scale.set_scale(calibration_factor);
scale.tare();
Serial.println("Readings:");
}
void loop()
{
Serial.print("Reading:");
units = scale.get_units(),10;
// if (units < 0)//se menpr que zero tara
{
// units = 0.00; //toma valor de zero
}
ounces = units * 0.035274;
Serial.print(units);
Serial.println(" grams");
delay(1000);
}
Best
carlos