Close Menu
  • Articles
    • Learn Electronics
    • Product Review
    • Tech Articles
  • Electronics Circuits
    • 555 Timer Projects
    • Op-Amp Circuits
    • Power Electronics
  • Microcontrollers
    • Arduino Projects
    • STM32 Projects
    • AMB82-Mini IoT AI Camera
    • BLE Projects
  • IoT Projects
    • ESP8266 Projects
    • ESP32 Projects
    • ESP32 MicroPython
    • ESP32-CAM Projects
    • LoRa/LoRaWAN Projects
  • Raspberry Pi
    • Raspberry Pi Projects
    • Raspberry Pi Pico Projects
    • Raspberry Pi Pico W Projects
  • Electronics Calculator
Facebook X (Twitter) Instagram
  • About Us
  • Disclaimer
  • Privacy Policy
  • Contact Us
  • Advertise With Us
Facebook X (Twitter) Instagram Pinterest YouTube LinkedIn
How To Electronics
  • Articles
    • Learn Electronics
    • Product Review
    • Tech Articles
  • Electronics Circuits
    • 555 Timer Projects
    • Op-Amp Circuits
    • Power Electronics
  • Microcontrollers
    • Arduino Projects
    • STM32 Projects
    • AMB82-Mini IoT AI Camera
    • BLE Projects
  • IoT Projects
    • ESP8266 Projects
    • ESP32 Projects
    • ESP32 MicroPython
    • ESP32-CAM Projects
    • LoRa/LoRaWAN Projects
  • Raspberry Pi
    • Raspberry Pi Projects
    • Raspberry Pi Pico Projects
    • Raspberry Pi Pico W Projects
  • Electronics Calculator
How To Electronics
Home » Weighing Machine using Arduino Load Cell & HX711 Module
Arduino Projects

Weighing Machine using Arduino Load Cell & HX711 Module

Mamtaz AlamBy Mamtaz AlamUpdated:November 19, 2022103 Comments4 Mins Read
Share Facebook Twitter LinkedIn Telegram Reddit WhatsApp
Arduino Load Cell HX711
Share
Facebook Twitter LinkedIn Pinterest Email Reddit Telegram WhatsApp

Overview:

In this project we will be “interfacing HX711 Load cell amplifier with Arduino” and 16*2 LCD for designing Weighing Machine using Arduino Load Cell & HX711 Module. This is a simple “Arduino Weight Measurement project”.

The electronic weighing machine uses a load cell to measure the weight produced by the load, here most load cells are following the method of a strain gauge, Which converts the pressure (force) into an electrical signal, these load cells have four strain gauges that are hooked up in a Wheatstone bridge formation.

If you want to measure the higher weights of more than 10KG, you can check our 40Kg Weighing Scale. You can also make your own IoT Weighing Scale using ESP8266 WiFi Module.



Bill of Materials

For designing Arduino Weighing Machine using Load Cell & HX711 Module we use the following components. Each and every component are described below further.

S.N.Components Quantity
1Arduino UNO Board1Amazon | AliExpress
216x2 LCD Display1Amazon | AliExpress
3Potentiometer 10K 1Amazon | AliExpress
4Load Cell 10Kg1Amazon | AliExpress
5HX711 Module1Amazon | AliExpress
6Push Buttons1Amazon | AliExpress
7Connecting Wires20Amazon | AliExpress
8Breadboard1Amazon | AliExpress


What is Load Cell?

Load Cell

A load cell is a transducer that is used to create an electrical signal whose magnitude is directly proportional to the force being measured. It is basically a device that measures strain and then converts force into electric energy which serves as a measurement for scientists and workers. The strain measurement by load cells helps in maintaining the integrity of the unit under pressure and protects people and equipment nearby.


HX711 Load Cell Amplifier

The Load Cell Amplifier is a small breakout board for the HX711 IC that allows you to easily read load cells to measure weight. By connecting the amplifier to your microcontroller you will be able to read the changes in the resistance of the load cell, and with some calibration, you’ll be able to get very accurate weight measurements.

The HX711 uses a two-wire interface (Clock and Data) for communication. Any microcontroller’s GPIO pins should work, and numerous libraries have been written, making it easy to read data from the HX711. Check the hookup guide below for more information. Load cells use a four-wire Wheatstone bridge configuration to connect to the HX711. These are commonly colored RED, BLK, WHT, GRN, and YLW. Each color corresponds to the conventional color coding of load cells:

HX711 Module

Red (Excitation+ or VCC)
Black (Excitation- or GND)
White (Amplifier+, Signal+ or Output+)
Green (A-, S- or O-)
Yellow (Shield)


Design & Consideration

Load Cell and HX711 Connection:

Base Design

1
2
3
4
- RED Wire is connected to E+
- BLACK Wire is connected to E-
- WHITE Wire is connected to A-
- GREEN Wire is connected to A+

Load Cell Assembly on Base:

A base is also required to fix the load cell over it by using nuts and bolts. Here we have used a hard plyboard for the frame for placing things over it and a light wooden board as Base. This is required as load cell bends slightly when some weight is placed over it.

Arduino Weighing Machine using Load Cell HX711



Arduino Weighing Machine using Load Cell HX711


Circuit Diagram: Interfacing HX711 Load Cell with Arduino

Assemble the circuit as shown in the figure for “Interfacing HX711 & Load Cell with Arduino“.
Circuit Diagram


Working Explanation:

Before making the whole circuit to work it is necessary to “calibrate load cell with HX711 with Arduino“. For “calibrating Load Cell with HX711 with Arduino” we need to put 100g weight at starting when the LCD displays put 100g weight. Once 100gm weight is kept over the load cell, calibration is done. Now simply you can put any weight for measuring with 99.9% accuracy.

Load cell which is an amplifier senses the weight and supplies an electrical analog voltage to HX711 Load Amplifier Module. Then this amplified value is fed to the Arduino where the output of HX711 is converted into the weight values in grams. The output result is displayed on the 16*2 LCD.




Source Code for Interfacing HX711 Load Cell with Arduino:

Simply copy this code and upload it to the Arduino board. Make sure to have the same connection as indicated above in the circuit diagram.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#include <LiquidCrystal.h>
LiquidCrystal lcd(7, 6, 5, 4, 3, 2);
 
#define DT A0
#define SCK A1
#define sw 9
 
long sample=0;
float val=0;
long count=0;
 
unsigned long readCount(void)
{
unsigned long Count;
unsigned char i;
pinMode(DT, OUTPUT);
digitalWrite(DT,HIGH);
digitalWrite(SCK,LOW);
Count=0;
pinMode(DT, INPUT);
while(digitalRead(DT));
for (i=0;i<24;i++)
{
digitalWrite(SCK,HIGH);
Count=Count<<1;
digitalWrite(SCK,LOW);
if(digitalRead(DT))
Count++;
}
digitalWrite(SCK,HIGH);
Count=Count^0x800000;
digitalWrite(SCK,LOW);
return(Count);
}
 
void setup()
{
pinMode(SCK, OUTPUT);
pinMode(sw, INPUT_PULLUP);
lcd.begin(16, 2);
lcd.print(" Weight ");
lcd.setCursor(0,1);
lcd.print(" Measurement ");
delay(1000);
lcd.clear();
calibrate();
}
 
void loop()
{
count= readCount();
int w=(((count-sample)/val)-2*((count-sample)/val));
lcd.setCursor(0,0);
lcd.print("Measured Weight");
lcd.setCursor(0,1);
lcd.print(w);
lcd.print("g ");
 
if(digitalRead(sw)==0)
{
val=0;
sample=0;
w=0;
count=0;
calibrate();
}
}
 
void calibrate()
{
lcd.clear();
lcd.print("Calibrating...");
lcd.setCursor(0,1);
lcd.print("Please Wait...");
for(int i=0;i<100;i++)
{
count=readCount();
sample+=count;
}
sample/=100;
lcd.clear();
lcd.print("Put 100g & wait");
count=0;
while(count<1000)
{
count=readCount();
count=sample-count;
}
lcd.clear();
lcd.print("Please Wait....");
delay(2000);
for(int i=0;i<100;i++)
{
count=readCount();
val+=sample-count;
}
val=val/100.0;
val=val/100.0; // put here your calibrating weight
lcd.clear();
}


Video Demo & Guide

DIY Arduino Weighing Scale with Load Cell & HX711 Module - Full Calibration
Watch this video on YouTube.

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Reddit Telegram WhatsApp
Previous ArticleInterface ENC28J60 Ethernet Module with Arduino Webserver
Next Article Temperature Based Fan Speed Controller using Arduino

Related Posts

DC Energy Meter using Arduino

Build a DC Energy Meter using Arduino – 32V/5A

Updated:August 26, 2025
Interfacing ADXL375 Accelerometer with Arduino

Interfacing ADXL375 Accelerometer with Arduino (±200g)

Updated:June 28, 2025
PZEM-004T Arduino Energy Meter

DIY AC Energy Meter using PZEM-004T & Arduino

Updated:March 6, 20254K
Interfacing BMI160 Accelerometer & Gyroscope with Arduino

Interfacing BMI160 Accelerometer & Gyroscope with Arduino

Updated:February 2, 20255K
Password Based Door Lock Security System Using Arduino & Keypad

Password Based Door Lock Security System Using Arduino & Keypad

Updated:February 2, 20252433K
Earthquake Detector Alarm with with Accelerometer & Arduino

Earthquake Detector Alarm with Accelerometer & Arduino

Updated:February 2, 2025652K
View 103 Comments

103 Comments

  1. haziq on July 17, 2018 10:10 PM

    hi, i want to do same project with you but using 4 hx711 and 20kg load sensor. can you help me for coding?

    Reply
    • Alex Newton on July 28, 2018 9:56 AM

      The same code will work. Just assemble the hardware in parrallel connection.

      Reply
      • Espiritujeffrey on February 1, 2019 12:25 PM

        Hello can I have a code for 200kg weight sensor???

    • Jefferson Lianes Martins on April 16, 2019 8:09 AM

      Boa noite! Eu sou técnico de balanças…
      Acredito que não precisará mudar o código, pois você irá utilizar as 4 células de carga em paralelo e para uni-las, deverá utilizar uma caixa de junção com 4 trimpots, para ajustar os cantos da balança.

      Reply
  2. haziq on July 17, 2018 10:12 PM

    hi alex, im doing same project with you but using 4 hx711 and 4 20kg load sensor. can u help me with the coding?

    Reply
  3. Yuli Pramono on September 20, 2018 12:31 AM

    hello mr.. my name is pramono.. im from indonesia..
    i have a project use load cell..
    im doing project same with you,, but i have a problem,, when calibrating in 100 gr the program work very well, but if i change the mass up to 200 gr the measurement cant accurately

    sorry i cant speak english fluently
    i hope you can answer my question..
    thanks

    Reply
    • Alex Newton on September 24, 2018 10:50 AM

      For calibration the program is set in such a way that only 100 gm will calibrate the circuit. do not use any other weights for calibration, it won’t work

      Reply
      • DG3 on December 18, 2018 2:47 AM

        What if you want to use other weight, such as 200grams?. What do i need to change in the code?

        Ty!

      • Alex Newton on December 18, 2018 9:40 AM

        Use 100 gm for calibration. If you wish to use other weights apart from 100gm, the whole code needs editing.

  4. Ruturaj Desai on September 23, 2018 12:29 PM

    hello sir i am doing same project but i want to measure weight 0 to 1000k. tell me components names please, i mean can we use hx711 amplifier for 1000kg weight too?? i am waiting for reply

    Reply
    • Alex Newton on September 24, 2018 10:52 AM

      with larger weights the calibration for low weights will distort and may changes +/-10%. But for higher weights you can use the same Hx711 but load cell requires of 1000Kg

      Reply
      • Trimukh on September 28, 2018 7:59 PM

        Sir, I have 3 questions.
        1. want to use a 100 kg load cell. so for this also the hx711 and Arduino Uno 3 remains same or should I make any changes?
        2. Should I have to connect it to the computer all the time?
        3. Is calibration required whenever I turn it on?
        please answer it, sir. THANK YOU.

      • Alex Newton on September 28, 2018 10:11 PM

        1. Yes you can use 100 kg load cell for measuring weight upto 100 kg. And yes the circuits remains same.

        2. You don’t need to connect to PC all the time. Rather 5 voly batter or 5 volt power supply adapter can be used instead of PC. PC is used for the first time for uploading code to Arduino.

        3. And yes calibration is required everytime you turn ON the machine.

  5. Manideepvarma on October 5, 2018 10:58 AM

    hi sir.. i am doing project on cantilever beam deflections using Arduino board and stain gauges..the problem is Arduino code..I was unable to write the code for it… i followed your “Arduino Weighing Machine using Load Cell HX711 Module” ..to understand the code ..it simply through me into great confusion. would you help me…please

    Reply
    • Alex Newton on October 5, 2018 11:02 AM

      Please modify this same code using mathematical expression by multiplying with some factor using the formula for strain gauge, it should work.

      Reply
  6. SZM on November 1, 2018 8:44 PM

    Hi sir. I’m newbie for this project, I’m just tested as same as yours,but there is a problem where the lcd cannot display the weight, and I don’t know where is the mistake. :”(

    Reply
    • Alex Newton on November 2, 2018 6:48 AM

      Check the connection once again.The LCD id not didplaying anything bcoz of connection issue only, follow the diagram. Then Upload the code.

      Reply
  7. danielo on December 19, 2018 5:12 PM

    tnx for the project also i used your code it works for me but i want to use your code and to print the out put on my computer so i want your help to edit the code to a serial print code please help me

    Reply
    • Alex Newton on December 19, 2018 8:24 PM

      replace lcd.print with Serial.print or add a line serial.print below each lcd line with same instuctions.

      Reply
      • Amberkar Deepika on October 29, 2019 1:52 PM

        it is not working sir….i wanted to print the output on my computer…it’s just showing a blank screen

      • Houari DALI YOUCEF on January 3, 2020 5:59 PM

        Don’t forget also the Serial.begin(9600);

  8. danielo on January 4, 2019 1:17 PM

    tnx for comment it works but i want to use 200kg load cell and the 100g calibrating is not working so please help me on the code or where to change the code?
    thank you

    Reply
  9. Ruturaj on January 7, 2019 10:22 PM

    hello Alex Newton i need your help i am doing same project but i want to measure water or liquid or measure scale can you please tell me whats the coding can i use your coding or procedure
    or may b change any thing in coding please help me

    Reply
  10. yuli tri on January 7, 2019 10:34 PM

    hello Alex Newton sir i am doing same project but i want to measure water, liquid or fuel or petrol like this scale weight, but in litters not kg please tell me procedure or components i am waiting for reply

    Reply
    • Alex Newton on January 7, 2019 10:48 PM

      Simply change g to ml for measuring liquid mass.
      and to convert to kg divide the final result in program by 1000.

      Reply
    • yuli tri on January 7, 2019 11:01 PM

      sir sorry please explain briefly i m new for understand this can you help me more where i can change g to ml section in your coding
      can i add density code for measuring fuel or liquid ?????

      Reply
  11. adams on January 8, 2019 10:36 PM

    hi can i know what readcount() will return actually?

    Reply
  12. gias on January 26, 2019 8:09 AM

    I am doing same project same as with you. I am using 3kg load cell from LWBMT, hx711, arduino mega, adapter for supply and LCD to display. I have tried some code like your code, HX711 bodge library, and try to edit both oh them. But, my best resolution is unstable +- 2g. I wanna get stable at least 1g without fluctuation. Can you give me advise what should i do?

    Reply
    • Alex Newton on January 26, 2019 1:41 PM

      You can’t coz it has +-2G resolution

      Reply
  13. Uwe on January 31, 2019 11:44 PM

    Hi Alex,I built up your project by using a 20kg Load cell and an I2-LCDisplay and it works fine until it gets to calibration.
    Display asks for that 100g weight,but nothing happens after putting the weight on it.
    Do you have an idea whats going wrong?
    Thanks so far!

    Reply
    • Alex Newton on February 1, 2019 10:39 AM

      Check HX711 connection with load cell or arduino. One of the guy was facing the same issue. Later he found he hasn’t soldered one wire. Red colored HX711 and green color hx711 both has different pins.

      Reply
      • Uwe on February 1, 2019 7:16 PM

        Hi,I have the green one.After exchanging the green and red cable everythings fine.
        Thanks!!

      • Uwe on February 2, 2019 12:38 AM

        sorry , I meant changing the red and white cable.

  14. Espiritu Jeffrey on February 1, 2019 12:26 PM

    can i have a code for 200 kg weight sensor please?

    Reply
  15. Sarajin on February 8, 2019 10:38 PM

    Hi! In getting the actual weight in grams, can you please explain this formula?
    w=(((count-sample)/val)-2*((count-sample)/val));

    Reply
  16. Subhradeep Gupta on March 14, 2019 10:15 PM

    Hello sir, I’m trying to make this project using 1kg load cell and I’ve done all the connections as per your circuit diagram. But still the LCD isn’t showing anything after “Put 100g & wait”. It’s not showing anything new after that even after I put 100g weight for a long time. The “Put 100g & wait” line is not going away either. I’m using the green HX711. Can you help me out?
    One more thing, in some previous comments you said that the system needs calibration every time it’s turned on. Is there any way to calibrate it for a long time, or until I want to calibrate it again?

    Reply
    • Alex Newton on March 14, 2019 11:28 PM

      There are two versions of HX711, i.e Red & Green coloured. For green coloured circuit is same. But for red color 1 more extra connection is needed. You might be using red one and missing the connection. Connect vcc and vdd pins together.

      Reply
      • Subhradeep Gupta on March 15, 2019 12:12 AM

        Actually I’m using the green one. Do I need to install the HX711 library? And can you help me with the permanent calibration? I mean I don’t want the system to be calibrated every time it’s turned on.

  17. Kush on March 27, 2019 6:24 AM

    sir it is taking long time for calibrating

    Reply
  18. Harish on March 27, 2019 11:57 PM

    Sir, The display shows waiting for calibration and load 100g for only a fraction of a second and it automatically shows weight as 0g irrespective of whether I place any weight or not.

    Reply
    • Alex Newton on March 28, 2019 1:06 AM

      This means either your load cell is damaged.
      Or your load cell is shaking and not fixed properly.(maximum chance)
      Or you have shorted some of the terminals

      Reply
  19. Subhradeep Gupta on March 28, 2019 2:28 AM

    Sir, the project is working fine but it needs to calibrate every time it’s turned on. Is there any way of permanent calibration? Is it possible to store some value using EEPROM.write(address,value) in any address in the arduino which can be used (using EEPROM.read(address)) to measure the weights instead of calibration when the next time the system is turned on?

    Reply
    • Alex Newton on March 28, 2019 12:33 PM

      This can be done by modifying code and using eprom function to store value initially for calibration. You may try.

      Reply
  20. Mahmudul Hasan on March 30, 2019 6:34 PM

    Sir when i put 100gm weight, the weight in display keep changing between 95-107. It doesn’t not show a fixed value.

    Reply
  21. Mahmudul Hasan on March 30, 2019 6:44 PM

    Sir after putting 100gm weight, the LCD is showing various weight 95-107gm continuosly. What might be the issue?

    Reply
    • Alex Newton on March 30, 2019 6:47 PM

      This happens if card board is not properly fixed on load cell or if it is not moving or if it has movable parts.
      Next thing don’t use the load cell in a room with fan or any other force bcoz fan air effects the mass.

      Reply
  22. Dursun unal on March 31, 2019 3:21 PM

    I have a problem in my program is giving continuous error message LCD problem
    please publish Hex code on this page

    Reply
  23. bruce1 on April 7, 2019 6:22 AM

    Problem got an error code on line 6 #define sw 9 ? how do I fix this?/

    Reply
    • Bruce1 on April 12, 2019 6:46 AM

      Can anyone help??

      Reply
  24. vog on April 11, 2019 2:57 AM

    hello sir..i have a problem..When it says to put 100g & wait I put 100g on but nothing happens, it doesnt go forward to calibration..can you please help me?

    Reply
  25. vog on April 11, 2019 3:02 AM

    hello sir..i have a problem..when it say to put on 100g % wait i put 100g on but nothing happens, it doesnt go forward to calibrating …can you please help me

    Reply
    • pauly on May 24, 2019 2:26 AM

      hello sir..i have a problem..When it says to put 100g & wait I put 100g on but nothing happens, it doesnot go forward to calibration..can you please help me?

      Reply
      • Alex Newton on May 24, 2019 8:56 AM

        Check connection

  26. salem jawher on April 15, 2019 10:12 PM

    Can i have the proteus library files for HX711 and the load cell sensor

    Reply
  27. salem jawher on April 15, 2019 10:14 PM

    can i have the proteus library files for HX7111 and the load cell sensor

    Reply
  28. Tan on May 10, 2019 8:40 AM

    Hi Alex, do you have c language program for hx711 with load cell?

    Reply
    • Alex Newton on May 10, 2019 8:56 AM

      This program is itself a C language program

      Reply
      • Tan on May 10, 2019 9:00 AM

        Can i use this program in PIC16F887?

      • Alex Newton on May 10, 2019 9:23 AM

        No u can’t this program is compitible to Avr microcontroller, i.e ATmega328

      • Kamesh on July 8, 2019 8:11 PM

        Sir i am using arduino mega
        Processor is ATMega2560
        Would it work?

  29. Natalia Bastos on May 30, 2019 11:06 PM

    hello, how can i download the Load Cell & HX711 library for proteus,I can not find anywhere

    Reply
  30. Wittaya Jirawiwatwanich on June 8, 2019 6:18 PM

    When put 100g on The load cell that showed me( -1g) what happen.

    Reply
  31. Wittaya Jirawiwatwanich on June 9, 2019 4:10 PM

    I want to knowed when I put 100g weight on load cell on. it showed -1g on lcd. What happen

    Reply
  32. armman on July 17, 2019 10:11 AM

    i want to store calibration values in eeprom. so that i wont have to calibrate on every power on.
    which variable will be stored in EEPROM for this ?

    Reply
  33. sobin sebastian on July 28, 2019 10:54 PM

    pinMode(DT, OUTPUT);
    digitalWrite(DT,HIGH);
    digitalWrite(SCK,LOW);
    Count=0;
    pinMode(DT, INPUT);
    while(digitalRead(DT)); Can you please say why did you first set DT pin as outpin pin and made it high, and then you made it as input pin? and reading the status of pin

    Reply
  34. VIJAYAN on August 9, 2019 6:52 PM

    Hi alex, Can you explain the algorithm for coding….

    Reply
  35. Leonardo on August 24, 2019 12:07 AM

    I have carried out the tests with several load cells and the code does not work

    Reply
  36. Leo on August 24, 2019 12:08 AM

    I have carried out the tests with several load cells and the code does not work

    Reply
  37. deema alsaleh on September 4, 2019 3:57 PM

    val=val/100.0; // put here your calibrating weight

    who we can put our weight in your equation exactly ?

    i think i miss things in calibration part , i don’t know what can be

    Reply
  38. shami on September 12, 2019 11:30 PM

    hello sir
    i m new n i have practice same your project but i don’t use LCD i just print output on computer than please tell me
    i add this code or not … or where i change serial.printl() ????
    void setup()
    {
    pinMode(SCK, OUTPUT);
    pinMode(sw, INPUT_PULLUP);
    lcd.begin(16, 2);
    lcd.print(” Weight “);
    lcd.setCursor(0,1);
    lcd.print(” Measurement “);
    delay(1000);
    lcd.clear();
    calibrate();
    }

    void loop()
    {
    count= readCount();
    int w=(((count-sample)/val)-2*((count-sample)/val));
    lcd.setCursor(0,0);
    lcd.print(“Measured Weight”);
    lcd.setCursor(0,1);
    lcd.print(w);
    lcd.print(“g “);

    if(digitalRead(sw)==0)
    {
    val=0;
    sample=0;
    w=0;
    count=0;
    calibrate();
    }
    }

    Reply
  39. Narutu on September 23, 2019 10:14 PM

    Hello Sir, My LCD Stuck At “Calibrating… Please Wait…” know why?

    Reply
  40. Pranab Mishra on September 29, 2019 4:29 AM

    Sir, I want to get 4 outputs with defined weight range e.g. 100-120g output led-1; 120-200g output led-2 and so on. Please guide me to add the code.
    secondly, is it possible to avoid calibration to 100 g and reset the machine to ZERO by pushing a button as it is available in all general machines.

    Reply
  41. samuel on December 3, 2019 6:13 AM

    holaa en el codigo me marca un error en el apartado vacio calibrar () a que se debe este error

    Reply
  42. Yousef Albaker on December 3, 2019 11:25 PM

    Hey man I have a question, is it possible to change the value of the calibrating weight? can I add 50g instead of 100g to calibrate the scale? and if I change the calibrating mass, what segments of the code should I change?

    Thank you in advance

    Reply
  43. heerak on December 19, 2019 8:14 AM

    hey i need to make talking weighing machine with ardunio and hx711 please provide me come for ardunio to speaker please please please

    Reply
  44. Lenard on January 12, 2020 5:23 PM

    Hello I’m new in this hx711, I know you use a 20kg load cell and i want to know that does it work on a 3kg? Should there a need to change of a 20kg to 3kg from the code?

    Reply
    • Alex on January 12, 2020 5:33 PM

      The same code will for for 20kg load cell too. You don’t need to change anything.

      Reply
  45. Gulyás József on January 12, 2020 8:40 PM

    Jó napot ! Kell e a kódon változtatni ha én 200Kg szenzort használok ?

    Reply
  46. Abhiram Shindikar on February 8, 2020 5:08 PM

    while verifying this code is gives error ” A1 was declared in this scope”

    Reply
  47. Jacob Ismael Villarroel on February 27, 2020 8:51 AM

    Que peso hay que tomar en cuenta de la base de la bazcula.? Antes de añadir los 100 g

    Reply
  48. Subhradeep Gupta on March 3, 2020 10:36 AM

    It is stuck at “Put 100g and wait”. Can you tell me any solution?

    Reply
  49. vaibhav manohar narkhede on March 4, 2020 2:19 PM

    Is it necessary to make a stand on weight sensor

    Will it work without it atleast for testing purposes

    Reply
    • Mr. Alam on March 5, 2020 10:45 AM

      It will work but the result are not accurate.

      Reply
  50. Raji Naidu on March 13, 2020 5:52 PM

    Hey Alex we want the code for 200 kg weight sensor why are you not responding for this ? If u do then pls tell me where u replaied

    Reply
  51. saikumar chetlapally on May 3, 2020 10:16 PM

    sir i want to control a dc motor via load cell can you help me with that

    Reply
  52. Bojan Mudrinic on May 9, 2020 5:21 AM

    Hello, I use an Arduino r3 and a 10 kg load cell. Do I need to change anything in the code?

    Reply
  53. Bojan Mudrinic on May 9, 2020 1:58 PM

    Hello, I use an Arduino r3 ATMEGA 16U2 and a 10 kg load cell. Do I need to change anything in the code?

    Reply
  54. Yunesh on May 21, 2020 8:58 AM

    Hello, Instead of using LCD i need to send the same data to cloud. I have seen several videos but in coding part i am stuck. Can you please suggest me how to move forward? Thanks

    Reply
    • Mr. Alam on May 21, 2020 9:13 AM

      There is already another post related to Sending the data to the Cloud. Check here: IOT Weighing Scale with HX711 Load Cell & ESP8266.

      Reply
  55. Dyny Afrina on June 26, 2020 6:11 PM

    have u solved it? because i got the same problem 😦

    Reply
  56. Gilbert on November 21, 2020 7:50 AM

    Hi ! can I used your project for 500gms ( max. ) graduation 0.50 gms weighing machine ? Thank you very much

    Reply
  57. Zack on December 24, 2020 2:34 PM

    Hi, I assembled the load cell but the values are fluctuating after I removed my 100g load. Can you help me?

    Reply
  58. kumar jha on January 17, 2021 5:09 PM

    Dear, I have one doubt. I studied many posts regarding the use of HX711. In some video people used A0 , A1 (i.e. analog pins) for Dout and CLK( SCK), and somewhere they used D4 and D5 digital pins.. Can you explain this part.

    Reply
    • Mr. Alam on January 17, 2021 5:12 PM

      The Dout & Clk are the digital input pins. You can use any Arduino pins like D4, D5, A0,A1. The analog pin of arduino like A0,A1, A2,…… can be used as digital pins as it has internal ADC.

      Reply
  59. Ali Asjad on January 24, 2021 5:31 AM

    can i use 5kh load cell same for this code?
    and one more issue , i used i2c crystal led display and it shows only boxes not numbers or value , can uh help me to solve this problem?

    Reply
  60. WUNPINI on September 21, 2021 5:16 AM

    Hello Sir, i have three questions,

    What do you mean in the code by the statement ‘ val=val/100.0;
    val=val/100.0; // put here your calibrating weight
    How do i perform the calibration.
    i want to interface this project with GSM such that am notify by SMS alert when the weight reaches a certain value.
    PLEASE URGENT ATTENTION NEEDED. Thanks in advance

    Reply
  61. Dr. Manaf on October 22, 2021 10:37 PM

    Hello dear. I want to use 199 g load cell. Will the same circuit and code do well? Thanks

    Reply
  62. Dr. Manaf on October 23, 2021 1:26 AM

    sorry, 100 g load cell

    Reply
  63. eshan on December 13, 2021 3:59 AM

    i am using a 100g load cell, and it is not working, can you help me

    Reply
  64. Shaik Habeeb on March 17, 2022 12:55 PM

    Hai, my name is Habeeb.

    I am working on the weighing scale project. here in my project I have used 4 load cells of 50kg each. I have made all the connections interfacing HX711 with Arduino Uno along with LCD (16×2). I have tried many codes for getting output but couldn’t get it. The issue I am facing here is every time I need to calibrate the scale, after that when I place the loads it’s fluctuating and after removing the load its not getting back to zero. can you please tell what code should I use to solve this.

    Reply
  65. Andres J. Marra on April 29, 2022 10:07 PM

    Hi. i want to activate the ledpin or other led when it reaches certain threshold, can i do it?

    Reply
  66. Fauzan on May 7, 2022 1:16 PM

    Hello sir, I want make project like this but use mathlab simulink, can yo help me?

    Reply
  67. ismail ahmad on June 5, 2022 1:32 PM

    i am also working on four load cells will you guide me plz bro

    Reply

CommentsCancel reply

Latest Posts
IoT based Battery SoC (%) Monitoring System with ESP32

IoT based Battery SoC (%) Monitoring System with ESP32

September 28, 2025

Speed-Run Translations: Making Fast-Moving Meme Videos Accessible Worldwide

September 22, 2025
DIY ESP32 Board for Battery Powered IoT Applications

DIY ESP32 Board for Battery Powered IoT Applications

September 28, 2025
Build IoT DC Energy Meter with ESP32 Web Dashboard

Build IoT DC Energy Meter with ESP32 Web Dashboard

September 5, 2025

The Future of Video Production: Adding Emotion with AI Voice Generators

August 26, 2025
DC Energy Meter using Arduino

Build a DC Energy Meter using Arduino – 32V/5A

August 26, 2025
A Beginner’s Guide to Building Compact Electronic Circuits at Home

A Beginner’s Guide to Building Compact Electronic Circuits at Home

August 5, 2025
Why DIY IoT Prototype Fails at Scale Hidden Component‑Sourcing Trap

Why DIY IoT Prototype Fails at Scale: Hidden Component‑Sourcing Trap

July 24, 2025
Top Posts & Pages
  • Earthquake Detector Alarm with Accelerometer & Arduino
    Earthquake Detector Alarm with Accelerometer & Arduino
  • IoT AC Energy Meter with PZEM-004T & ESP32 WebServer
    IoT AC Energy Meter with PZEM-004T & ESP32 WebServer
  • IoT Based Electricity Energy Meter using ESP32 & Blynk
    IoT Based Electricity Energy Meter using ESP32 & Blynk
  • ECG Graph Monitoring with AD8232 ECG Sensor & Arduino
    ECG Graph Monitoring with AD8232 ECG Sensor & Arduino
  • ESP32 CAN Bus Tutorial | Interfacing MCP2515 CAN Module with ESP32
    ESP32 CAN Bus Tutorial | Interfacing MCP2515 CAN Module with ESP32
  • How to use Modbus RTU with ESP32 to read Sensor Data
    How to use Modbus RTU with ESP32 to read Sensor Data
  • Temperature Based Fan Speed Controller using Arduino
    Temperature Based Fan Speed Controller using Arduino
  • Buck Converter: Basics, Working, Design & Application
    Buck Converter: Basics, Working, Design & Application
Categories
  • Arduino Projects (197)
  • Articles (59)
    • Learn Electronics (19)
    • Product Review (15)
    • Tech Articles (27)
  • Electronics Circuits (46)
    • 555 Timer Projects (21)
    • Op-Amp Circuits (7)
    • Power Electronics (13)
  • IoT Projects (197)
    • ESP32 MicroPython (7)
    • ESP32 Projects (74)
    • ESP32-CAM Projects (15)
    • ESP8266 Projects (76)
    • LoRa/LoRaWAN Projects (22)
  • Microcontrollers (37)
    • AMB82-Mini IoT AI Camera (4)
    • BLE Projects (17)
    • STM32 Projects (19)
  • Raspberry Pi (93)
    • Raspberry Pi Pico Projects (57)
    • Raspberry Pi Pico W Projects (12)
    • Raspberry Pi Projects (24)
Follow Us
  • Facebook
  • Twitter
  • Pinterest
  • Instagram
  • YouTube
About Us

“‘How to Electronics’ is a vibrant community for electronics enthusiasts and professionals. We deliver latest insights in areas such as Embedded Systems, Power Electronics, AI, IoT, and Robotics. Our goal is to stimulate innovation and provide practical solutions for students, organizations, and industries. Join us to transform learning into a joyful journey of discovery and innovation.

Copyright © How To Electronics. All rights reserved.
  • About Us
  • Disclaimer
  • Privacy Policy
  • Contact Us
  • Advertise With Us

Type above and press Enter to search. Press Esc to cancel.

Ad Blocker Enabled!
Ad Blocker Enabled!
Looks like you're using an ad blocker. Please allow ads on our site. We rely on advertising to help fund our site.