Hx711 reads with UNO ok and NANO ko

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

So the conclusion, there must be some problem with the arduino uno.

Interesting conclusion. The code and hardware works when using the Uno. The code and hardware does not work when using the Nano. There, the problem must be with the Uno?

:slight_smile: :slight_smile: :slight_smile:

Sorry for the mystake, of course I would to say NANO.

How can I see/test that the nano send the correct voltages or something could be bad.
As it isn't an original arduino nano could be a fake chip?

best regards
carlos