Circuit 3D

Load cell

A load cell is a weight sensor: a metal beam with strain gauges bonded to it, wired as a bridge, whose output changes by a few millivolts as a weight bends the beam.

Vout = rated output × Vexcitation × load ÷ capacity

where the rated output is in mV per volt, often 1 or 2 mV/V: a 5 kg cell rated 1 mV/V on 5 V gives 2 mV for 2 kg.

An amplifier and converter such as the HX711 turns those millivolts into readings a microcontroller can use.

What is a load cell?

A load cell is a sensor that measures weight or force: a metal beam that bends very slightly under a load, with strain gauges bonded to it that turn that bending into a small voltage.

It is the weight sensor inside kitchen, bathroom and shop scales, and it is far more accurate than a force sensing resistor. Figure 1 shows a bar load cell, the kind most projects use.

T C C T 2 kg 2 mV T stretched, C squeezed

2 kg: the beam bends into an S, stretching two gauges and squeezing two by 200 µε, 0.02% of their length. Each changes by about 0.14 Ω of its 350, so the bridge gives 1 mV/V × 5 V × 2 kg ÷ 5 kg = 2 mV.

Figure 1. A 5 kg bar load cell rated 1 mV/V on 5 V, fixed at its left end. Its bending is drawn far larger than the fraction of a millimeter it really moves.

How does a load cell work?

A load cell works by bending: a weight on its free end flexes its beam into an S, stretching two strain gauges and squeezing the other two, which changes their resistance and unbalances a bridge.

The hole through the beam concentrates the bending where the gauges sit. The output rises in proportion to the weight, a few millivolts at full load.

What is a strain gauge, and how does it work?

A strain gauge is a thin zigzag of metal foil on a flexible backing; glued to a surface, it stretches or squeezes with it, and its resistance changes with its length.

Stretched, the foil grows longer and thinner, so its resistance rises; squeezed, it falls. The change is tiny: a gauge factor of about 2 means a 0.02% stretch changes it by 0.04%.

Why are a load cell’s gauges wired as a bridge?

A load cell’s gauges are wired as a Wheatstone bridge because its output starts at zero, so a change of a fraction of a percent shows up as a clear voltage instead of being lost.

With two gauges stretching and two squeezing, all four push the output the same way, and temperature changes cancel. Figure 2 builds a bridge from the lab’s resistors in 3D.

Rx = 1.2 kΩ: A sits at 2.5 V and B at 2.73 V, so VAB = −227 mV: Rx is above R3, so B rises past A.

Figure 2. The same bridge as a load cell’s, built from the lab’s 1 kΩ resistors on 5 V: when one arm changes, the voltage between the midpoints leaves zero.

What is the HX711?

The HX711 is a chip made for load cells: it powers the bridge, amplifies its output by 128, and converts it with a 24-bit analog-to-digital converter, 10 or 80 times a second.

It runs from 2.6 to 5.5 V and sends its readings over two pins, so it works with an Arduino, an ESP32 or a Raspberry Pi. An Arduino’s own 10-bit input could not see a few millivolts.

How do you wire a load cell to an Arduino?

To wire a load cell to an Arduino, connect its four wires to the HX711’s E+, E−, A− and A+, then the HX711’s VCC, GND, DT and SCK to 5 V, ground and two digital pins.

Mount the cell with one end on a fixed base and the load on the other, the arrow on its side pointing the way the force pushes. Figure 3 shows each wire.

cell E+ E− A− A+ HX711 DT SCK Arduino pins 2, 3

Red, E+: excitation +, the steady voltage the HX711 feeds the bridge from its own regulator.

Figure 3. A four-wire load cell into an HX711 board, and the board into an Arduino. These are the usual wire colors; check your cell’s datasheet.

How do you make a digital scale with an Arduino?

To make a digital scale, read the HX711 with nothing on the cell to get the tare, then add a known weight and divide the change in reading by its grams to get a calibration factor.

  1. Install an HX711 library and print the raw readings.
  2. Note the reading with the scale empty: the tare.
  3. Add a known weight and work out the factor, as Example 1 does.
  4. Subtract the tare from each reading and divide by the factor.

What types of load cell are there?

The common types are bar load cells for small scales, S-type cells for pulling forces, button cells for compression, and the flat half-bridge cells under bathroom scales.

Bar cells come in sizes from about 1 to 50 kg; pick one rated a little above the most you will weigh. A bathroom scale uses four 50 kg half-bridge cells, combined into one full bridge.

How do you work out a weight from a load cell’s reading?

Subtract the tare from the reading and divide by the calibration factor, the change in reading per gram.

Example 1: calibrating a scale

An empty scale reads 8,400, and 219,400 with a 500 g weight on it. With an unknown load it reads 135,000. What does the load weigh?

Given
an HX711 reading 8,400 with the scale empty and 219,400 with a 500 g weight on it, then 135,000 with an unknown load
Find
the unknown weight
Solution
Factor = (219,400 − 8,400) ÷ 500 g = 422 per gramm = (135,000 − 8,400) ÷ 422 = 300 g
Answer
300 g

Example 2: how much a strain gauge changes

A load stretches a 350 Ω strain gauge by 200 µε, millionths of its length. How much does its resistance change?

Given
a 350 Ω foil strain gauge with a gauge factor of 2, stretched by 200 µε, 0.02% of its length
Find
its change in resistance
Solution
ΔR = R × GF × ε = 350 Ω × 2 × 0.0002 = 0.14 Ω
Answer
0.14 Ω, 0.04% of its resistance: too small for a plain divider, so it is wired as a bridge and amplified

Summary

Key equations

  • ΔR = R × GF × ε a strain gauge’s change
  • Vout = mV/V × V × load ÷ capacity a load cell’s output
  • m = (reading − tare) ÷ factor a scale’s weight

Key terms

Strain
Change in length over length.
Gauge factor
ΔR/R per unit strain, about 2.
Excitation
The voltage across the bridge.
Tare
The reading with nothing on it.

Practice problems

  1. A 10 kg load cell rated 2 mV/V runs on 5 V. What is its output at full load?

  2. Why are a load cell’s strain gauges wired as a bridge?

  3. A 350 Ω gauge with a gauge factor of 2 is stretched by 500 µε. How much does it change?

  4. Which wire usually carries a four-wire load cell’s excitation +?

  5. A scale reads 8,400 empty and 422 more per gram. What does a reading of 50,600 weigh?

FAQ

Is a load cell the same as a weight sensor?

Yes: a load cell is the usual weight sensor, measuring the force a weight puts on it.

Why does my HX711 reading drift?

Usually from temperature, a loose mount, long unshielded wires, or the cell creeping under a steady load. Let it warm up and tare again.

What happens if I overload a load cell?

A little over its rating is usually safe, but well past it the beam bends for good and the cell reads wrong. Choose one rated above your heaviest load.