A 4-wire strain-gauge bar load cell in 1 kg, 5 kg, 10 kg and 20 kg ratings, for building your own digital scale.
This compact 75 mm bar bends slightly under load, and its strain gauges turn that into an electrical signal. Pair it with an HX711 amplifier board and an Arduino UNO, ESP32 or Raspberry Pi Pico to weigh anything up to the rated capacity.
Why choose it
- Four capacities, one size — choose 1 kg, 5 kg, 10 kg or 20 kg to suit your heaviest load; the body size is the same.
- Works with common boards — with an HX711 board it connects to Arduino UNO, ESP32 and Raspberry Pi Pico using two signal pins.
- Easy to fit — threaded mounting holes in the body let you fix one end and load the other.
Specifications
| Core | |
|---|---|
| Type | Strain-gauge bar (beam) load cell, 4-wire |
| Rated capacity (by option) | 1 kg · 5 kg · 10 kg · 20 kg |
| Output | Small analogue signal; needs an amplifier such as the HX711 |
| Physical | |
| Dimensions | 75 mm × 12.7 mm × 12.7 mm |
| Mounting | Threaded mounting holes in the body |
| Wires | 4 colour-coded wires: red, black, green, white |
Compatibility
| Platform | Works | Notes |
|---|---|---|
| Arduino UNO / Nano (5 V) | ◐ With adapter | Connect through an HX711 amplifier board; never straight to a pin |
| ESP32 (3.3 V) | ◐ With adapter | HX711 board, powered from 3V3 |
| Raspberry Pi Pico (3.3 V) | ◐ With adapter | HX711 board, powered from 3V3(OUT) |
| Software | ✓ Yes | Arduino IDE with "HX711 Arduino Library"; MicroPython with the community hx711_gpio.py driver |
In the box
- 1 × load cell (the capacity you choose)
Options
| Option | What is different | Choose it when |
|---|---|---|
| 1kg | Rated capacity 1 kg | Your heaviest load is under 1 kg |
| 5kg | Rated capacity 5 kg | Your heaviest load is under 5 kg |
| 10kg | Rated capacity 10 kg | Your heaviest load is under 10 kg |
| 20kg | Rated capacity 20 kg | Your heaviest load is under 20 kg |
Applications
- Kitchen or parcel scales
- Weighing a bag, bucket or tank on a bracket
- Force or load monitoring in small projects
Tutorial
What you'll build: a digital scale that prints the weight on your computer every half second · About 30 minutes.
Choose your board
| Board | Logic voltage | Pins used | Language | Best for |
|---|---|---|---|---|
| Arduino UNO | 5 V | D2, D3 | C++ (Arduino IDE) | First-timers |
| ESP32 | 3.3 V | GPIO16, GPIO4 | C++ (Arduino IDE) | Sending weights over Wi-Fi later |
| Raspberry Pi Pico | 3.3 V | GP4, GP5 | MicroPython (Thonny) | Learning Python |
New to this? Start with the Arduino UNO.
How it works
Pressing on the load cell bends the metal bar a tiny amount. Strain gauges glued to the bar change their resistance, and the load cell turns that into a very small voltage. A microcontroller cannot read such a small voltage, so an HX711 amplifier board makes it bigger and sends it to the board as a number.
- GND — the return path; every GND must be joined.
- E+ / E− — the power (excitation) wires that feed the load cell.
- A+ / A− — the signal wires that carry the tiny voltage back.
- Tare — setting the scale to zero with nothing on it.
You need: Arduino UNO R3, a data USB cable, an HX711 amplifier board (Load Cell HX711 Weighing Sensor) and 4 jumper wires.
■ Power ■ GND ■ Signal ■ Other signal Load cell wires are named by their colour. Check the pin labels printed on your HX711 board.
| # | Arduino UNO R3 pin | → | Module pin | Wire colour | Notes |
|---|---|---|---|---|---|
| 1 | 5V | → | HX711 VCC | Red | Power (5V) |
| 2 | D2 | → | HX711 DT | Yellow | Data |
| 3 | D3 | → | HX711 SCK | Green | Clock |
| 4 | GND | → | HX711 GND | Black | Ground |
| 5 | HX711 E+ | → | Load cell | Red | Excitation + |
| 6 | HX711 E− | → | Load cell | Black | Excitation − |
| 7 | HX711 A+ | → | Load cell | Green | Signal + |
| 8 | HX711 A− | → | Load cell | White | Signal − |
Wires 5–8 are the same on every board.
Watch out: The HX711 can run from 2.6–5.5 V, so 5 V from the UNO is fine. Keep wires 5–8 short and tidy: the signal from the load cell is very small and picks up noise easily.
Install the Arduino IDE, then Sketch → Include Library → Manage Libraries → search for HX711 Arduino Library by Bogdan Necula (library page) → Install.
Tools → Board → Arduino UNO, then Tools → Port → the port of your board. If no port appears, use a data USB cable and install the USB driver for your board.
Connect wires 1–8 as in the table. Do not touch the load cell body yet; leave it resting on the bench.
Paste the code below into a new sketch and click Upload. Do not touch the load cell while it starts: it sets zero in the first seconds.
▸ Example — Read the weight
// Wiring: HX711 VCC->5V, GND->GND, DT->D2, SCK->D3
#include "HX711.h"
const int LOADCELL_DOUT_PIN = 2; // DT pin
const int LOADCELL_SCK_PIN = 3; // SCK pin
const float CALIBRATION_FACTOR = 1.0; // you can change this (see step 5)
HX711 scale;
void setup() {
Serial.begin(115200); // speed of the Serial Monitor
scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
if (!scale.wait_ready_timeout(1000)) { // wait up to 1 second for the HX711
Serial.println("HX711 not found - check wiring");
while (true) {} // stop here
}
Serial.println("OK - epartners.co.nz test");
scale.set_scale(CALIBRATION_FACTOR); // divide the raw value by this number
scale.tare(10); // set zero (nothing on the load cell)
}
void loop() {
Serial.print("Reading: ");
Serial.println(scale.get_units(10), 1); // average of 10 readings
delay(500);
}
✓ Check: Open the Serial Monitor at 115200 baud. It prints "OK - epartners.co.nz test" once, then "Reading:" every half second. If it says "HX711 not found - check wiring", check wires 1–4.
You need: ESP32 DevKitC (ESP32-WROOM-32), a data USB cable, an HX711 amplifier board (Load Cell HX711 Weighing Sensor) and 4 jumper wires.
■ Power ■ GND ■ Signal ■ Other signal Load cell wires are named by their colour. Check the pin labels printed on your HX711 board.
| # | ESP32 DevKitC (ESP32-WROOM-32) pin | → | Module pin | Wire colour | Notes |
|---|---|---|---|---|---|
| 1 | 3V3 | → | HX711 VCC | Red | Power (3V3) |
| 2 | GPIO16 | → | HX711 DT | Yellow | Data |
| 3 | GPIO4 | → | HX711 SCK | Green | Clock |
| 4 | GND | → | HX711 GND | Black | Ground |
| 5 | HX711 E+ | → | Load cell | Red | Excitation + |
| 6 | HX711 E− | → | Load cell | Black | Excitation − |
| 7 | HX711 A+ | → | Load cell | Green | Signal + |
| 8 | HX711 A− | → | Load cell | White | Signal − |
Wires 5–8 are the same on every board.
Watch out: ESP32 pins are 3.3 V only. Power the HX711 from 3V3, never 5 V, so DT stays at 3.3 V. Keep wires 5–8 short and tidy.
Install the Arduino IDE, then Sketch → Include Library → Manage Libraries → search for HX711 Arduino Library by Bogdan Necula (library page) → Install.
Follow the official install guide: File → Preferences → Additional boards manager URLs → add
https://espressif.github.io/arduino-esp32/package_esp32_index.json. Then Tools → Board → Boards Manager → install esp32 by Espressif Systems.Tools → Board → ESP32 Dev Module, then Tools → Port. If the upload fails, set Tools → Upload Speed → 115200 and upload again.
Connect wires 1–8 as in the table, then paste the code below and click Upload.
▸ Example — Read the weight
// Wiring: HX711 VCC->3V3, GND->GND, DT->GPIO16, SCK->GPIO4
#include "HX711.h"
const int LOADCELL_DOUT_PIN = 16; // DT pin
const int LOADCELL_SCK_PIN = 4; // SCK pin
const float CALIBRATION_FACTOR = 1.0; // you can change this (see step 5)
HX711 scale;
void setup() {
Serial.begin(115200); // speed of the Serial Monitor
scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
if (!scale.wait_ready_timeout(1000)) { // wait up to 1 second for the HX711
Serial.println("HX711 not found - check wiring");
while (true) {} // stop here
}
Serial.println("OK - epartners.co.nz test");
scale.set_scale(CALIBRATION_FACTOR); // divide the raw value by this number
scale.tare(10); // set zero (nothing on the load cell)
}
void loop() {
Serial.print("Reading: ");
Serial.println(scale.get_units(10), 1); // average of 10 readings
delay(500);
}
✓ Check: Open the Serial Monitor at 115200 baud. It prints "OK - epartners.co.nz test" once, then "Reading:" every half second. If it says "HX711 not found - check wiring", check wires 1–4.
You need: Raspberry Pi Pico (RP2040), a USB cable, an HX711 amplifier board (Load Cell HX711 Weighing Sensor) and 4 jumper wires.
■ Power ■ GND ■ Signal ■ Other signal Load cell wires are named by their colour. Check the pin labels printed on your HX711 board.
| # | Pico pin | → | Module pin | Wire colour | Notes |
|---|---|---|---|---|---|
| 1 | 3V3(OUT) (pin 36) | → | HX711 VCC | Red | Power (3.3 V) |
| 2 | GP4 (pin 6) | → | HX711 DT | Yellow | Data |
| 3 | GP5 (pin 7) | → | HX711 SCK | Green | Clock |
| 4 | GND (pin 38) | → | HX711 GND | Black | Ground |
| 5 | HX711 E+ | → | Load cell | Red | Excitation + |
| 6 | HX711 E− | → | Load cell | Black | Excitation − |
| 7 | HX711 A+ | → | Load cell | Green | Signal + |
| 8 | HX711 A− | → | Load cell | White | Signal − |
Wires 5–8 are the same on every board.
Watch out: Pico pins are 3.3 V only. Power the HX711 from 3V3(OUT) (pin 36), not VBUS (pin 40, which is 5 V). Keep wires 5–8 short and tidy.
Download and install Thonny.
Hold the BOOTSEL button while plugging in the USB cable, then install the firmware from micropython.org. In Thonny, choose the interpreter MicroPython (Raspberry Pi Pico).
Download
hx711_gpio.py from the community robert-hh/hx711 repository, open it in Thonny and choose File → Save as → Raspberry Pi Pico, keeping the name hx711_gpio.py.Connect wires 1–8 as in the table, then plug the USB cable in again.
Paste the code below into Thonny and click Run. Do not touch the load cell while it sets zero. Save it as
main.py on the Pico to run it when the Pico is powered.▸ Example — Read the weight
# Wiring: HX711 VCC->3V3(OUT) pin 36, GND->GND pin 38, DT->GP4 (pin 6), SCK->GP5 (pin 7)
from machine import Pin
from hx711_gpio import HX711 # hx711_gpio.py must be saved on the Pico
import time
DT_PIN = 4 # GP4 = DT
SCK_PIN = 5 # GP5 = SCK
CALIBRATION_FACTOR = 1.0 # you can change this (see step 6)
hx = HX711(Pin(SCK_PIN, Pin.OUT), Pin(DT_PIN, Pin.IN, pull=Pin.PULL_DOWN))
hx.read() # first reading: the HX711 answered
print("OK - epartners.co.nz test")
offset = hx.read_average(15) # zero point (nothing on the load cell)
while True:
raw = hx.read_average(10) # average of 10 readings
print("Reading:", round((raw - offset) / CALIBRATION_FACTOR, 1))
time.sleep(0.5)
✓ Check: The Thonny shell prints "OK - epartners.co.nz test" once, then "Reading:" every half second. If nothing prints, check wires 1–4 and that the driver file is saved on the Pico.
Calibrate it (all boards)
- Run the example with
CALIBRATION_FACTOR = 1.0and nothing on the load cell. The reading should be close to 0. - Place a known weight on the free end, for example a 500 g item weighed on kitchen scales. Note the reading.
- Divide that reading by the weight in grams. Put the result in
CALIBRATION_FACTORand run again: the reading is now in grams.
Never put more than the rated capacity of your load cell on it.
Troubleshooting
| Board | Problem | Likely cause | Fix |
|---|---|---|---|
| All | Reading is always 0 or does not change | Signal wires A+ / A− not connected, or loose | Check wires 7 and 8 and that the HX711 label matches the table |
| All | Reading goes down when you add weight | A+ and A− swapped, or the load is on the wrong side | Swap the green and white wires, or flip the direction of the load |
| All | Reading drifts or jumps | Loose wires, long wires, or the load cell is not firmly mounted | Shorten the wires, mount the cell firmly, leave it to settle for a minute |
| All | "HX711 not found" or no output | DT / SCK swapped, or VCC / GND wrong | Check wires 1–4 against the table |
| ESP32 | Stuck on "Connecting…" | Board not in upload mode | Hold the BOOT button until uploading starts |
| ESP32 | Upload fails or stops part-way | Upload speed too high for the USB cable | Tools → Upload Speed → 115200, then upload again |
| Pico | No Pico drive appears | BOOTSEL not held while plugging in | Unplug, hold BOOTSEL, plug in again |
| Pico | ImportError: no module named hx711_gpio | Driver file not on the Pico | Save hx711_gpio.py to the Pico (step 3) |
Try next: add a button to tare the scale, or show the weight on an OLED display.
Spotted a problem in this tutorial? Email support@epartners.co.nz and we'll check it and update the tutorial.
- Never load it beyond its rated capacity; overloading can damage it.
- Fix one end firmly and load the other end, in the direction of the arrow printed on the body.
- Handle it gently and do not pull on the thin wires.
Resources
- HX711 amplifier datasheet (PDF)
- HX711 Arduino Library (bogde/HX711)
- MicroPython HX711 driver (robert-hh/hx711)
- Arduino-ESP32 installation guide
FAQ
▸ Can I connect the load cell straight to an Arduino?
No. The load cell gives a very small signal, so use an HX711 amplifier board between the load cell and your Arduino, ESP32 or Raspberry Pi Pico.
▸ Which capacity should I choose?
Choose a rating above the heaviest load you will weigh: 1 kg, 5 kg, 10 kg or 20 kg. Never exceed the rating.
▸ How do I get readings in grams?
Calibrate with a known weight: divide the reading by the weight in grams and use that number as the calibration factor, as shown in the Tutorial.
Technical question about this part? Email support@epartners.co.nz with your board and wiring, and we'll help you get it working.
Shipping: $5.99 urban, $9.99 rural. Free shipping on orders of $100 or more.
Order by 10:30am (NZT), Monday to Friday, and we dispatch the same day. Orders placed after 10:30am, on weekends or on public holidays are dispatched the next business day.
Delivery usually takes 1–2 business days after dispatch (2–3 for rural addresses). See our Shipping Policy for full details.