Load Cell HX711 Weighing Sensor

SKU: RN1010
HX711 load cell amplifier module with 6-pin load-cell connector, 4-pin GND, DT, SCK, VCC header and two pin header strips

Load Cell HX711 Weighing Sensor

SKU: RN1010
Default
Regular price $5.49
/
  • Free shipping on all orders over $100
  • Secure payments
  • Low stock - 9 items left
  • Inventory on the way

Add $100.00 more for free shipping

Tax included. Shipping calculated at checkout.

You'll also need

An HX711 24-bit analog-to-digital converter module that reads the tiny signal from a load cell and sends it to an Arduino, ESP32 or Raspberry Pi Pico over two wires.

Use it with a 4-wire strain-gauge load cell to build scales and weight sensors. The module has a 6-pin load-cell connector (E+, E−, A−, A+, B−, B+) and a 4-pin controller connector (GND, DT, SCK, VCC).

ADC
24-bit
Supply
2.6–5.5 V
Channel A gain
128 or 64
Interface
2-wire serial

Why choose it

  • Two-wire reading — the HX711 sends 24-bit results over DT and SCK, so you only need two digital pins.
  • Built for load cells — gain of 128 or 64 on channel A and 32 on channel B suits the small signal from a strain-gauge bridge.
  • Works from 2.6 V to 5.5 V — the same module runs from an Arduino UNO (5 V) or an ESP32 and Raspberry Pi Pico (3.3 V).

Specifications

HX711 chip
Chip HX711 (Avia Semiconductor)
Resolution 24-bit
Input channels 2 differential: channel A and channel B
Programmable gain Channel A: 128 or 64; channel B: 32
Output data rate 10 SPS or 80 SPS, set by the chip’s RATE pin
Supply voltage 2.6–5.5 V
Supply current Normal operation < 1.5 mA; power-down < 1 µA
Operating temperature −40 °C to +85 °C
Interface and pins
Serial interface PD_SCK (clock) and DOUT (data), no programming needed
Load-cell inputs (J1) E+, E−, A−, A+, B−, B+
Controller pins (JP2) GND, DT, SCK, VCC
Load-cell supply On-chip regulator supplies the load cell (E+ / E−)
Physical
Size 40 mm × 20 mm (1.56 in × 0.79 in), approx.
Weight 5 g

Compatibility

Platform Works Notes
Arduino UNO / Nano (5 V) ✓ Yes Power the module from 5 V; DT and SCK work on any two digital pins.
ESP32 / ESP8266 (3.3 V) ✓ Yes Power the module from 3.3 V. The supply must match the board’s logic voltage.
Raspberry Pi Pico (3.3 V) ✓ Yes Power the module from 3V3(OUT). Do not use VBUS (5 V).
Raspberry Pi (3.3 V GPIO) ✓ Yes Power the module from 3.3 V so that DT stays at 3.3 V.
Software ✓ Yes Arduino IDE (C++) or MicroPython. Examples below need no extra library.

In the box

Included
  • 1 × HX711 weighing sensor module
  • 1 × 6-pin and 1 × 4-pin pin header strip, as shown in the main photo

The load cell is sold separately.

Applications

  • Digital kitchen or parcel scale with a bar-type load cell
  • Weight-triggered switch or counter, for example counting items on a shelf
  • Logging weight over time with an ESP32 or Raspberry Pi Pico

Tutorial

What you'll build: read a load cell through the HX711 and print the weight in grams on your computer twice a second. About 30 minutes.

Choose your board

Board Logic voltage Pins used Language Best for
Arduino UNO 5 V D2 (SCK), D3 (DT) C++ (Arduino IDE) First-timers
ESP32 3.3 V GPIO4 (SCK), GPIO16 (DT) C++ (Arduino IDE) Projects that need Wi-Fi

New to this? Start with the Arduino UNO.

How it works

A load cell bends a tiny amount when you put weight on it, and its resistance changes. The signal is only a few millivolts, so the HX711 amplifies it and turns it into a 24-bit number. Your board reads that number with two wires.

  • GND — the return path. Every GND must be joined.
  • E+ / E− — the power the module gives the load cell.
  • A+ / A− — the tiny signal that comes back from the load cell.
  • DT / SCK — data and clock. The board pulses SCK and reads one bit of data from DT each pulse.
  • Tare — reading the empty scale once and subtracting it, so the display starts at zero.
Arduino UNO Tutorial

You need: Arduino UNO R3, a data USB cable, 4 jumper wires, a load cell. Jumper wires and a load cell are in our store.

Arduino UNOHX711 moduleLoad cellJP2J1GNDGNDE+Excitation +D3DTE−Excitation −D2SCKA−Signal −5VVCCA+Signal +5 V logicLoad-cell wiresB− / B+ not used

■ Power ■ GND ■ Data / signal + ■ Clock / signal −

# Arduino UNO pin Module pin Wire Notes
1 GND GND Dark grey Common ground
2 D3 DT Yellow Data from the HX711
3 D2 SCK Green Clock to the HX711
4 5V VCC Red Module runs from 5 V on the UNO
5–8 — E+, E−, A−, A+ — Join to the load-cell wires with the same names (see the diagram)

Watch out: Unplug the USB cable before you move any wire. Check the pin labels printed on your module, because the order of the pins can differ between batches.

1
Install the Arduino IDE
Download the Arduino IDE and install it. Plug in the UNO with a data USB cable. If no port appears, install the USB driver for your board.
2
Choose the board and port
Tools → Board → Arduino AVR Boards → Arduino Uno. Tools → Port → pick the new port.
3
Wire it up
Connect the four pins on JP2 as in the diagram and table, then the load-cell wires to E+, E−, A−, A+. Leave B− and B+ empty.
4
Upload the example
Paste the sketch below, press Upload, then open Tools → Serial Monitor and set it to 115200 baud.
▸ Example 1 — Read the load cell (Arduino UNO)
// HX711 load cell amplifier - Arduino UNO
// Wiring: VCC->5V, GND->GND, DT->D3, SCK->D2
const int DOUT_PIN = 3;   // DT pin of the module
const int SCK_PIN  = 2;   // SCK pin of the module

long offsetRaw = 0;           // zero point, set by tare at start-up
const float CAL_FACTOR = 1.0; // you can change this: raw counts per gram (see step below)

// Wait until the HX711 pulls DT low (= a reading is ready). Returns false after 1 second.
bool waitReady() {
  unsigned long start = millis();
  while (digitalRead(DOUT_PIN) == HIGH) {
    if (millis() - start > 1000) return false;
  }
  return true;
}

// Read one 24-bit reading (channel A, gain 128).
long readRaw() {
  long value = 0;
  noInterrupts();                              // keep each SCK pulse short
  for (int i = 0; i < 24; i++) {
    digitalWrite(SCK_PIN, HIGH);
    delayMicroseconds(1);
    value = (value << 1) | digitalRead(DOUT_PIN);  // MSB first
    digitalWrite(SCK_PIN, LOW);
    delayMicroseconds(1);
  }
  digitalWrite(SCK_PIN, HIGH);                 // 25th pulse = next reading is channel A, gain 128
  delayMicroseconds(1);
  digitalWrite(SCK_PIN, LOW);
  interrupts();
  if (value & 0x800000L) value |= 0xFF000000L; // sign-extend the 24-bit number
  return value;
}

void setup() {
  Serial.begin(115200);
  pinMode(SCK_PIN, OUTPUT);
  pinMode(DOUT_PIN, INPUT);
  digitalWrite(SCK_PIN, LOW);                  // SCK must be low when idle

  if (!waitReady()) {
    Serial.println("HX711 not found - check wiring");
    while (true) {}                          // stop here
  }
  Serial.println("OK - epartners.co.nz test");

  // Tare: average 10 readings with nothing on the load cell
  long sum = 0;
  for (int i = 0; i < 10; i++) {
    waitReady();
    sum += readRaw();
  }
  offsetRaw = sum / 10;
}

void loop() {
  if (waitReady()) {
    long raw = readRaw();
    long net = raw - offsetRaw;
    Serial.print("Raw: ");
    Serial.print(raw);
    Serial.print("  Net: ");
    Serial.print(net);
    Serial.print("  Weight (g): ");
    Serial.println(net / CAL_FACTOR, 1);
  }
  delay(500);
}

✓ Check: The Serial Monitor (115200 baud) prints "OK - epartners.co.nz test" once, then a Raw, Net and Weight line twice a second. Press gently on the load cell and the Net number changes.

5
Calibrate to grams
Put a known weight on the load cell, for example a 500 g item you have weighed on kitchen scales. Note the Net number, then work out CAL_FACTOR = Net ÷ weight in grams. Type that number into the sketch and upload it again. The Weight (g) column now shows grams.
ESP32 Tutorial

You need: ESP32 DevKitC (ESP32-WROOM-32), a data USB cable, 4 jumper wires, a load cell.

ESP32 DevKitCHX711 moduleLoad cellJP2J1GNDGNDE+Excitation +GPIO16DTE−Excitation −GPIO4SCKA−Signal −3V3VCCA+Signal +3.3 V logicLoad-cell wiresB− / B+ not used

■ Power ■ GND ■ Data / signal + ■ Clock / signal −

# ESP32 pin Module pin Wire Notes
1 GND GND Dark grey Common ground
2 GPIO16 DT Yellow Data from the HX711
3 GPIO4 SCK Green Clock to the HX711
4 3V3 VCC Red Power the module from 3.3 V, never 5 V
5–8 — E+, E−, A−, A+ — Join to the load-cell wires with the same names (see the diagram)

Watch out: ESP32 pins are 3.3 V only. Power the module from 3V3 so that DT never goes above 3.3 V. Check the pin labels printed on your board.

1
Install the Arduino IDE
Download the Arduino IDE and install it.
2
Add the ESP32 board package
File → Preferences → Additional boards manager URLs → paste https://espressif.github.io/arduino-esp32/package_esp32_index.json. Then Tools → Board → Boards Manager → search "esp32" → install "esp32 by Espressif Systems". See the official install guide.
3
Choose the board and port
Tools → Board → esp32 → ESP32 Dev Module. Plug in the board with a data USB cable, then Tools → Port. If no port appears, install the USB driver for your board.
4
Wire it up
Connect the four pins on JP2 as in the diagram and table, then the load-cell wires to E+, E−, A−, A+. Leave B− and B+ empty.
5
Upload the example
Paste the sketch below and press Upload. If the upload fails, set Tools → Upload Speed → 115200 and upload again. If it stays on "Connecting…", hold the BOOT button until uploading starts. Then open the Serial Monitor at 115200 baud.
▸ Example 1 — Read the load cell (ESP32)
// HX711 load cell amplifier - ESP32
// Wiring: VCC->3V3, GND->GND, DT->GPIO16, SCK->GPIO4
const int DOUT_PIN = 16;   // DT pin of the module
const int SCK_PIN  = 4;   // SCK pin of the module

long offsetRaw = 0;           // zero point, set by tare at start-up
const float CAL_FACTOR = 1.0; // you can change this: raw counts per gram (see step below)

// Wait until the HX711 pulls DT low (= a reading is ready). Returns false after 1 second.
bool waitReady() {
  unsigned long start = millis();
  while (digitalRead(DOUT_PIN) == HIGH) {
    if (millis() - start > 1000) return false;
  }
  return true;
}

// Read one 24-bit reading (channel A, gain 128).
long readRaw() {
  long value = 0;
  noInterrupts();                              // keep each SCK pulse short
  for (int i = 0; i < 24; i++) {
    digitalWrite(SCK_PIN, HIGH);
    delayMicroseconds(1);
    value = (value << 1) | digitalRead(DOUT_PIN);  // MSB first
    digitalWrite(SCK_PIN, LOW);
    delayMicroseconds(1);
  }
  digitalWrite(SCK_PIN, HIGH);                 // 25th pulse = next reading is channel A, gain 128
  delayMicroseconds(1);
  digitalWrite(SCK_PIN, LOW);
  interrupts();
  if (value & 0x800000L) value |= 0xFF000000L; // sign-extend the 24-bit number
  return value;
}

void setup() {
  Serial.begin(115200);
  pinMode(SCK_PIN, OUTPUT);
  pinMode(DOUT_PIN, INPUT);
  digitalWrite(SCK_PIN, LOW);                  // SCK must be low when idle

  if (!waitReady()) {
    Serial.println("HX711 not found - check wiring");
    while (true) {}                          // stop here
  }
  Serial.println("OK - epartners.co.nz test");

  // Tare: average 10 readings with nothing on the load cell
  long sum = 0;
  for (int i = 0; i < 10; i++) {
    waitReady();
    sum += readRaw();
  }
  offsetRaw = sum / 10;
}

void loop() {
  if (waitReady()) {
    long raw = readRaw();
    long net = raw - offsetRaw;
    Serial.print("Raw: ");
    Serial.print(raw);
    Serial.print("  Net: ");
    Serial.print(net);
    Serial.print("  Weight (g): ");
    Serial.println(net / CAL_FACTOR, 1);
  }
  delay(500);
}

✓ Check: The Serial Monitor (115200 baud) prints "OK - epartners.co.nz test" once, then a Raw, Net and Weight line twice a second. Press gently on the load cell and the Net number changes.

6
Calibrate to grams
Put a known weight on the load cell, for example a 500 g item you have weighed on kitchen scales. Note the Net number, then work out CAL_FACTOR = Net ÷ weight in grams. Type that number into the sketch and upload it again. The Weight (g) column now shows grams.

Troubleshooting

Board Problem Likely cause Fix
All "HX711 not found - check wiring" DT or SCK on the wrong pin, loose wire, or no power to VCC Check the pin table; make sure VCC and GND are connected and the module is powered from the board’s logic voltage.
All Net number goes down when you add weight A+ and A− are swapped Swap the A+ and A− wires at J1.
All Net number is always 0 or does not change Load cell not connected to E+, E−, A−, A+, or a broken wire Re-check the four load-cell wires against the labels in your load cell’s documentation.
All Readings drift or jump Load cell not fixed firmly, long wires, or the cell is still warming up Mount the load cell so it can only flex in one direction, keep wires short, and wait a minute after power-up.
ESP32 Stuck on "Connecting…" Board is 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 or USB chip Tools → Upload Speed → 115200, then upload again.

Try next: add a button that runs the tare again, or show the weight on an OLED or LCD screen.

Spotted a problem in this tutorial? Email support@epartners.co.nz and we'll check it and update the tutorial.

Good to know
  • Power the module from the same voltage as your board’s logic: 5 V for an Arduino UNO, 3.3 V for an ESP32 or Raspberry Pi Pico.
  • A load cell is not included. Use a 4-wire load cell and match its wires to E+, E−, A−, A+ using its documentation.
  • Do not load the cell beyond its rated capacity; it can be damaged or give wrong readings.

Datasheet

Key figures from the manufacturer's datasheet for the HX711, the 24-bit analog-to-digital converter that reads the load cell on this module.

HX711 analog-to-digital converter
Chip HX711, 24-bit ADC for weigh scales
Input channels 2 differential: channel A and channel B
Gain Channel A: 128 or 64; channel B: 32
Full-scale input (AVDD = 5 V) ±20 mV (A, gain 128); ±40 mV (A, gain 64); ±80 mV (B, gain 32)
Output data rate 10 SPS (RATE = 0) or 80 SPS (RATE = DVDD) with the on-chip oscillator
Output code 24-bit, two's complement
Supply voltage 2.6–5.5 V
Supply current Normal operation < 1.5 mA; power-down < 1 µA
Serial interface PD_SCK in, DOUT out; 25, 26 or 27 clock pulses per reading
Channel and gain select 25 pulses: A, 128; 26 pulses: B, 32; 27 pulses: A, 64
Power-down PD_SCK held high for more than 60 µs
Operating temperature −40 °C to +85 °C

Download the HX711 datasheet (PDF, 164 KB)

▸ Preview the datasheet

If the preview does not load on your device, use the download link above.

Source: AVIA Semiconductor, HX711 24-Bit Analog-to-Digital Converter (ADC) for Weigh Scales.

Resources

FAQ

▸ Does the HX711 work with 3.3 V boards such as the ESP32 and Raspberry Pi Pico?

Yes. The HX711 supply range is 2.6–5.5 V, so you can power the module from 3.3 V. Use the same voltage as your board’s logic so that DT stays within the board’s limit.

▸ Does this module include a load cell?

No. The module is the amplifier and converter only. Connect a 4-wire load cell to E+, E−, A−, A+.

▸ What are channel A and channel B?

They are the two differential inputs. Channel A has a gain of 128 or 64 and channel B a gain of 32. A single load cell is normally connected to channel A, which is what the examples read.

▸ Do I need a library?

No. The examples read the HX711 directly using the two-wire protocol in the datasheet, so you do not need to install an HX711 library.

▸ How do I get the weight in grams?

Tare with nothing on the load cell, put a known weight on it, then divide the Net number by the weight in grams. That gives the CAL_FACTOR used in the examples.

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.

This site is protected by hCaptcha and the hCaptcha Privacy Policy and Terms of Service apply.

Load Cell - ePartners
1kg load cell, 75 mm aluminium-coloured bar with four threaded holes and red, black, green and white wires
Load Cell
$9.99
Recently viewed