Load Cell not receiving any value

Hi, I'm following this tutorial HX711 with a Four Wire Load Cell and Arduino | Step by Step Guide. - YouTube
but my 1kg load cell and amplifier not receiving any value, it just shows : Nan

Show us your current code and how the things are connected.

1 Like

this is the schematic diagram that i followed exactly. kindly ignore some serial heading to bluetooth module

and the code and library was obtained from here:

Could be due to poor soldering or bad connections. Post a close up, focused photo of your connections, and the code, using code tags.

Better tutorial here: Getting Started with Load Cells - SparkFun Learn

im suspecting the same too.
is there any way i can avoid soldering at all for the amplifier?

because im not super handy with soldering :sweat_smile:

most seller provide male dupon which is detached

#include "HX711.h"
//#include <Wire.h>

// HX711 circuit wiring
const int LOADCELL_DOUT_PIN = A1;
const int LOADCELL_SCK_PIN = A0;  

//LiquidCrystal_I2C lcd(0x27, 16, 2);
HX711 scale;

void setup() {
  Serial.begin(9600);
  Serial.println("Remove items from the weighing ");
  //lcd.begin();
  //lcd.backlight();
  scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
  scale.set_scale(440.0);       //ubah di sini known weight               // this value is obtained by calibrating the scale with known weights; see the README for details
  scale.tare(50);				        // reset the scale to 0
  Serial.println("Silahkan Untuk Menimbang");
}

void loop() {
  Serial.print("Berat");
  float berat= scale.get_units(25);
  //if(berat<=0.1)
  //{
  //  berat=0.0;
  //}
  Serial.println(berat,1);
  if(berat<1000)
  {
    Serial.println("Place item to weight");
   Serial.println("Weight is = ");
   Serial.println(berat,1); " g";
  
  }
  scale.power_down();
  delay(2000);
  scale.power_up();
}

No. All connections must be carefully soldered. Very small voltages and currents are involved, and good connections are essential.

Adafruit and Sparkfun have excellent soldering tutorials. Practice with PCBs from discarded toys or other electronics.

I changed the position to A1 and A0 following the code, not following the schematic diagram

That example (post No.6) isn't part of the youtube chap's github/library --
GitHub - olkal/HX711_ADC: Arduino library for the HX711 24-bit ADC for weight scales

HX711_ADC/Read_1x_load_cell.ino at master · olkal/HX711_ADC · GitHub

owh sorry i must wrongly pasted another sample from other youtuber.

yes the reference u provided was correct

i attempted two different library but both also giving no reading from amplifier :smiling_face_with_tear:

Indrek(youtube)/olkal(github) seems to have it right, so I would stick with that.

let me try another round by changing the amplifier

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.