Build it step by step
0 of 5 doneMount the load cell
Screw one end to a base plate and the other to the top plate with spacers, so the cell bends freely. The arrow on the cell points down.
Wire the cell
Red E+, black E−, white A−, green A+.
Wire the HX711 and LCD
DT to D3, SCK to D2, LCD on A4/A5, tare button on D4.
Calibrate
Upload with the platform empty, put a known weight on (a sealed 500 g packet or a 1 L water bottle about 1000 g), and set factor = factor × shown ÷ real. Upload again.
Check linearity
Weigh two or three known items and compare.
How do you build a digital weighing scale?
A 5 kg load cell and HX711 amplifier weigh objects to about a gram, with a tare button and readings on an LCD. You need Arduino Uno R3, Load cell 5 kg (bar type), HX711 load cell amplifier, 16x2 LCD with I2C backpack (PCF8574), Tactile push button 6 mm, Brass spacer kit M3 (standoffs) and Jumper wires male to female (40 pcs). It takes 5 steps and about 90 minutes.
- Level
- Intermediate
- Time
- About 90 min
- Parts
- 7
Wiring
| From | To | Why |
|---|---|---|
| Load cell red / black | HX711 E+ / E− | Bridge excitation |
| Load cell white / green | HX711 A− / A+ | Bridge signal (swap if weights read negative) |
| HX711 VCC / GND | Uno 5V / GND | Amplifier power |
| HX711 DT / SCK | Uno D3 / D2 | Data and clock |
| LCD SDA / SCL | Uno A4 / A5 | Display |
| Button | Uno D4 and GND | Tare |
Code
Arduino IDE, board "Arduino Uno". Install "HX711 Arduino Library" by Bogdan Necula (bogde) and LiquidCrystal I2C.
Runs on a virtual Arduino Uno in your browser, with sliders for the sensors. Happy with it? Verify and upload to your real board from the same page (Chrome or Edge on a computer).
#include <HX711.h>
#include <LiquidCrystal_I2C.h>
HX711 scale;
LiquidCrystal_I2C lcd(0x27, 16, 2);
float factor = 420.0; // set by calibration: raw units per gram
void setup() {
pinMode(4, INPUT_PULLUP);
Serial.begin(9600);
lcd.init(); lcd.backlight(); lcd.print("Taring...");
scale.begin(3, 2); // DT, SCK
scale.set_scale(factor);
scale.tare(20); // empty platform = zero
lcd.clear();
}
void loop() {
if (digitalRead(4) == LOW) { lcd.clear(); lcd.print("Tare"); scale.tare(20); lcd.clear(); }
float g = scale.get_units(10); // average of 10 readings
if (fabs(g) < 0.5) g = 0;
lcd.setCursor(0, 0); lcd.print("Weight: ");
lcd.setCursor(0, 1); lcd.print(g, 1); lcd.print(" g ");
Serial.println(g, 1);
// Calibration: put a known weight on, then factor = factor * shown / real
}What the serial monitor should show
Open the serial monitor at the baud rate in the code. This is what our simulator prints for a virtual Arduino Uno with its sensors at their default values. Your numbers will follow your real readings, but the format should match.
0.0
Test checklist
What you should see at each check. If a reading is far off, stop and use the troubleshooting list.
| Check | Expected |
|---|---|
| Empty after tare | 0.0 g, steady within ±1 g |
| 1 L water bottle | About 1000 to 1050 g (bottle weight included) |
| Press tare with a cup on | Shows 0.0, then only what you add to the cup |
| Reading drift over 5 minutes | Less than 2 to 3 g |
If it does not work
Weights read negative
Swap the white and green wires (A+ and A−).
Wild jumps
The cell is touching the base. Only the screwed ends should touch the plates.
Always 0 or no change
Check DT and SCK are not swapped, and the cell's wire colours on your module's sheet.
Slow creep
Normal for cheap cells. Tare just before weighing.
Still stuck? Find the fault step by step with your multimeter →
Common questions
What parts do I need for the digital weighing scale?
Arduino Uno R3, Load cell 5 kg (bar type), HX711 load cell amplifier, 16x2 LCD with I2C backpack (PCF8574), Tactile push button 6 mm, Brass spacer kit M3 (standoffs) and Jumper wires male to female (40 pcs). Brass spacer kit M3 (standoffs): To mount the load cell between two plates.
How long does the digital weighing scale take to build?
About 90 minutes for a intermediate maker, in 5 steps.
How do I know the digital weighing scale works?
Empty after tare: 0.0 g, steady within ±1 g. 1 L water bottle: About 1000 to 1050 g (bottle weight included). Press tare with a cup on: Shows 0.0, then only what you add to the cup.
Weights read negative: what should I check?
Swap the white and green wires (A+ and A−).
Wild jumps: what should I check?
The cell is touching the base. Only the screwed ends should touch the plates.
Always 0 or no change: what should I check?
Check DT and SCK are not swapped, and the cell's wire colours on your module's sheet.
Slow creep: what should I check?
Normal for cheap cells. Tare just before weighing.
