← All parts

HX711 Load Cell Amplifier

Avia SemiconductorHX711

24-bit ADC designed for load cells / strain gauges. Differential channels A and B; communicates over a simple 2-wire (DT/SCK) protocol. The heart of most digital scales.

In stock

Specifications

0

No specs listed.

Pinout

10
PinNameFunctionsNotes
E+E+
POWER
Load cell excitation +
E-E-
GND
Load cell excitation -
A-A-
ADC
Channel A -
A+A+
ADC
Channel A +
B-B-
ADC
Channel B -
B+B+
ADC
Channel B +
GNDGND
GND
Ground
DTDT
GPIO
Data out (to MCU)
SCKSCK
GPIO
Clock (from MCU)
VCCVCC
POWER
2.7-5V supply

Interactive pinout

Highlight:
HX711

Click a pin to copy its name · tap a tag above to spotlight a bus.

Starter code

Community starter examples — minimal, unofficial, and provided to get you wiring fast. Verify against the manufacturer datasheet before relying on them.

Arduino (C++)

Arduino library: HX711 Arduino Library (by Bogdan Necula)

arduino
// HX711 load-cell amplifier — community starter example
#include <HX711.h>

#if defined(ESP32)
  #define DT_PIN 4      // data
  #define SCK_PIN 5     // clock
#else
  #define DT_PIN 3
  #define SCK_PIN 2
#endif

HX711 scale;

void setup() {
  Serial.begin(115200);
  scale.begin(DT_PIN, SCK_PIN);
  scale.tare();                 // zero the empty scale
}

void loop() {
  Serial.println(scale.get_units(5));   // average of 5 readings
  delay(500);
}

MicroPython

MicroPython library: hx711 (robert-hh/hx711)

python
# HX711 load cell (ESP32) — community starter example
# lib: robert-hh/hx711 (hx711.py on the board)
from machine import Pin
from hx711 import HX711
import time

hx = HX711(d_out=Pin(4), pd_sck=Pin(5))   # DT=GPIO4, SCK=GPIO5
hx.tare()

while True:
    print(hx.read())
    time.sleep(0.5)

Wiring

PinArduino Uno R3ESP32 DevKitC (WROOM-32)Notes
VCC+5V3V32.7-5.5 V; match the board logic
GNDGNDGND
DTD3GPIO4Data out
SCKD2GPIO5Clock

Typical uses

  • Digital scales and weight measurement
  • Force / strain-gauge sensing