Projects / Digital weighing scale

Digital weighing scale

Intermediate1.5 hGuided buildReviewed

Build it step by step

0 of 5 done
  1. UNO++BRASS361 g

    Mount 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.

  2. UNO++362 g

    Wire the cell

    Red E+, black E−, white A−, green A+.

  3. UNO+363 gPCF8574

    Wire the HX711 and LCD

    DT to D3, SCK to D2, LCD on A4/A5, tare button on D4.

  4. UNO++364 g

    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.

  5. UNO

    Check linearity

    Weigh two or three known items and compare.

In short

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

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
Load cell red / blackHX711 E+ / E−Bridge excitation
Load cell white / greenHX711 A− / A+Bridge signal (swap if weights read negative)
HX711 VCC / GNDUno 5V / GNDAmplifier power
HX711 DT / SCKUno D3 / D2Data and clock
LCD SDA / SCLUno A4 / A5Display
ButtonUno D4 and GNDTare

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.

CheckExpected
Empty after tare0.0 g, steady within ±1 g
1 L water bottleAbout 1000 to 1050 g (bottle weight included)
Press tare with a cup onShows 0.0, then only what you add to the cup
Reading drift over 5 minutesLess 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 →

Ask Lark AI

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.