# HX711 Load Cell Amplifier: Wiring, Calibration, and PCB Design Guide

Learn how to connect an HX711 load cell amplifier, calibrate weight measurements, troubleshoot unstable readings, and integrate the circuit into a PCB.

Written by [Jharwin Barrozo](https://www.flux.ai/jharwinbarrozo)

Published Oct 2026 - 8 min read

![HX711 Load Cell Amplifier: Wiring, Calibration, and PCB Design Guide](https://www.flux.ai/p/assets/blogs/hx711-load-cell-amplifier/main.webp)

Load cells are sensors that convert applied force or weight into a small electrical signal. Because this millivolt-level output is much smaller than the signals a microcontroller typically reads from components such as **analog temperature sensors** or [potentiometers](https://www.flux.ai/p/blog/how-to-wire-a-potentiometer), it requires amplification and an analog-to-digital converter (ADC).

The HX711 is a load-cell interface integrated circuit (IC) that solves both problems in one inexpensive IC. It combines a programmable-gain amplifier with a 24-bit analog-to-digital converter designed specifically for bridge sensors such as strain-gauge load cells, which use a Wheatstone bridge to convert small resistance changes into a differential voltage. This makes the HX711 a popular choice for digital scales, force measurement systems, material testing equipment, and connected weighing devices.

This guide explains how the HX711 works, how to wire it to a load cell and microcontroller, and how to calibrate it for accurate measurements. It also covers practical PCB-design considerations for engineers building the HX711 into a custom board.

## What Is the HX711?

The HX711 is a precision 24-bit ADC designed to interface directly with bridge sensors such as strain-gauge load cells.

A typical load cell produces a differential output across its two signal terminals, measured in millivolts. Such a signal is too small for most general-purpose microcontroller ADCs to measure accurately. The HX711 amplifies the differential voltage and converts it into a digital value that a microcontroller can read and, after calibration, translate into a weight or force measurement.

According to the [HX711 datasheet](https://cdn.sparkfun.com/datasheets/Sensors/ForceFlex/hx711_english.pdf), the IC includes:

-   A 24-bit sigma-delta ADC
-   A programmable-gain amplifier
-   Two differential input channels
-   An integrated oscillator
-   An on-chip power-supply regulator
-   A simple two-wire digital interface
-   Selectable 10 or 80 samples-per-second operation

Channel A supports gains of 128 or 64. Channel B uses a gain of 32. Most weighing applications connect the load cell to Channel A and use the maximum gain. The HX711 multiplexes the two channels rather than sampling them simultaneously, so only one channel is converted at a time. Software can select Channel A or Channel B for the next conversion, allowing Channel B to serve as a second measurement input when its lower fixed gain of 32 is suitable.

The HX711 does not communicate through [standard I²C or SPI](https://www.flux.ai/p/blog/spi-vs-i2c). Instead, it uses two signals:

-   `DOUT` or `DT` for data
-   `PD_SCK` or `SCK` for the clock and power-down control

Many development boards and libraries hide the timing details, allowing the microcontroller to request measurements through a simple software interface. For example, an Arduino HX711 library may provide functions such as `is_ready()`, `tare()`, and `get_units()` instead of requiring application code to manually generate and count the HX711 clock pulses.

## HX711 Load Cell Wiring

A four-wire load cell is normally a Wheatstone bridge with two excitation wires and two signal wires.

Common HX711 breakout-board connections include:

| **Connection** | **Purpose** |
| --- | --- |
| E+ | Positive bridge excitation |
| E− | Negative bridge excitation |
| A+ | Positive differential signal |
| A− | Negative differential signal |
| B+ / B− | Optional second input channel |
| VCC | Module supply |
| GND | Ground |
| DT or DOUT | Digital data output |
| SCK or CLK | Digital clock input |

Note that the wire colors are not standardized. One manufacturer may use red for excitation positive, while another may use red for a signal wire. Always verify the load cell’s datasheet or measure the bridge resistance before relying on wire color.

To connect an HX711 module to an Arduino:

| **HX711** | **Arduino Uno example** |
| --- | --- |
| VCC | 5 V |
| GND | GND |
| DT | Digital pin 3 |
| SCK | Digital pin 2 |

The load cell connects separately to `E+`, `E−`, `A+`, and `A−`.

During an initial wiring check, gently apply a load in the direction that will later be defined as positive. If the raw HX711 count decreases instead of increasing, swap `A+` and `A−`. Reversing the signal wires changes the measurement polarity without damaging the bridge. Alternatively, the polarity can be fixed later via software during calibration.

For a three-wire or half-bridge sensor, additional sensors or completion resistors (e.g., fixed resistors that form the missing arms of the Wheatstone bridge) may be required to form a full Wheatstone bridge. Do not assume that every strain-gauge sensor can connect directly to the four terminals used by a full-bridge load cell.

## How to Calibrate an HX711

The HX711 returns a raw ADC count, not a measurement in grams or kilograms. Calibration establishes the relationship between ADC counts and physical weight.

The process requires two reference points:

1.  The unloaded reading, also called the zero offset
2.  The reading produced by a known reference weight

A simple calibration equation is:

**Calibration-factor equation**

Suppose the unloaded reading is 8,400 counts and a 500-gram reference weight produces 408,400 counts:

The system therefore produces approximately 800 counts per gram.

Several Arduino HX711 libraries use this scale factor internally. The following example illustrates the general workflow:

**Arduino HX711 calibration workflow**

```
#include "HX711.h"

const byte HX711_DOUT = 3;
const byte HX711_SCK = 2;

HX711 scale;

void setup() {
  Serial.begin(115200);

  scale.begin(HX711_DOUT, HX711_SCK);

  scale.set_scale();
  scale.tare(20);

  Serial.println("Scale zeroed.");
  Serial.println("Place a known weight on the load cell.");
}

void loop() {
  if (scale.is_ready()) {
    long reading = scale.get_value(10);
    Serial.println(reading);
  } else {
    Serial.println("HX711 not ready");
  }

  delay(500);
}
```

After recording the change produced by the reference weight, apply the calculated scale factor:

```
scale.set_scale(800.0);
scale.tare();

float weightGrams = scale.get_units(10);
```

The sign and exact value depend on the load cell orientation, wiring, supply voltage, mechanics, and software library. Save the final calibration factor in nonvolatile storage if the device must retain calibration after power cycling.

**For better calibration accuracy and measurement repeatability:**

-   Use a reference weight near the center of the intended measurement range.
-   Average multiple readings.
-   Let the electronics and load cell reach a stable temperature.
-   Perform calibration after the sensor is mechanically installed.
-   Check multiple weights to identify nonlinearity.
-   Re-zero the scale only when it is genuinely unloaded.

Note that calibration cannot compensate for a mechanically unstable platform. Side loading, mounting stress, vibration, and flex in the enclosure can all cause inconsistent measurements.

## HX711 PCB Design Considerations

A prototype HX711 breakout board is convenient for quickly wiring and testing a load cell without designing the analog circuitry from scratch. However, integrating the HX711 into a custom PCB gives you more control over noise, dimensions, power, and connectors.

The HX711 receives the load cell’s millivolt-level bridge signal through its differential analog inputs, such as `A+` and `A−` for Channel A. These inputs are especially sensitive because the load cell signal is small. Treat the bridge connection as a low-level differential measurement path.

Place the HX711 close to the PCB connector where the load-cell cable enters the board. Keep the `A+` and `A−` traces short, parallel, and away from switching nodes, clock lines, antennas, motors, and [high-current traces](https://www.flux.ai/p/blog/high-current-pcb-design).

Other useful layout practices include:

-   Place [decoupling capacitors](https://www.flux.ai/p/blog/decoupling-capacitors-pcb) close to the HX711 supply pins.
-   Use a quiet ground reference around the analog section.
-   Avoid routing digital clock signals beside the load-cell inputs.
-   Keep DC/DC converters and inductors away from the analog front end.
-   Provide strain relief for the load-cell cable.
-   Add clearly labeled test points for power, ground, data, clock, and analog inputs.
-   Follow the datasheet’s regulator and bypass-capacitor recommendations.
-   Consider input filtering where the sensor environment is noisy.
-   Decide how cable shielding connects to circuit or chassis ground.
-   Protect external connectors against electrostatic discharge when appropriate.

Do not route high bridge current and sensitive return signals through long shared copper paths. Ground voltage differences that appear insignificant elsewhere can become visible in a precision measurement.

In Flux, you can place the HX711, load-cell connector, capacitors, programming header, and microcontroller in a single schematic before moving into PCB layout. Use the schematic to document connector pin assignments and calibration test points, then review the analog and digital routing separately.

## Troubleshooting Unstable HX711 Readings

Unstable measurements are often caused by mechanics or power integrity rather than software.

Check the following:

**The reading does not change**

Verify that the bridge is receiving excitation voltage. Confirm that the signal wires are connected to Channel A and that the microcontroller pin assignments match the code.

**The reading moves in the wrong direction**

Swap `A+` and `A−`, rotate the load cell mechanically, or use a negative calibration factor.

**The reading changes when the cable moves**

Inspect the connector and cable strain relief, including the clamp, tie-down, or other mechanical support that prevents cable movement from pulling directly on the electrical connections. Long unshielded cables can also pick up electromagnetic interference.

**The zero value drifts**

Allow the system to warm up. Check for mechanical preload, temperature changes, unstable power, mounting stress, and air movement around sensitive weighing platforms.

**The reading is noisy**

Reduce vibration, average several samples, separate the analog section from switching circuitry, and use the slower sample rate when the application does not require fast updates.

## FAQs

### Is the HX711 really a 24-bit ADC?

The converter produces a 24-bit result, but the usable noise-free resolution is lower and depends on gain, sample rate, layout, power quality, and the connected sensor.

### Can the HX711 measure more than one load cell?

Multiple load cells can be combined electrically into one bridge. The HX711 also has two input channels, although the channels use different gain configurations and are not sampled simultaneously.

### Does the HX711 use I²C?

No. It uses a dedicated clock and data interface rather than standard I²C or SPI.

### Can the HX711 measure force instead of weight?

Yes. The same circuit can measure tension, compression, and other forces if the load cell and mechanical assembly are appropriate, such as a compression load cell mounted to measure pressing force or a tension load cell installed inline with a pulling load.

### Why does an HX711 calibration factor become negative?

A negative factor usually means the differential signal polarity is reversed relative to the direction defined as positive. It does not necessarily indicate a fault.

## About the author

[Jharwin Barrozo](https://www.flux.ai/jharwinbarrozo)

Electronics Engineer at Flux

Jharwin is an electronics engineer mainly focused on satellites. He built his own ground station using Flux to monitor RF activities on the International Space Station. Find him on Flux [@jharwinbarrozo](https://flux.ai/jharwinbarrozo)

Let’s start building

Build your big idea together with Flux. All you need to do is describe what you want to make, or what problem you want to solve. Flux will work with you to make it a reality.

![Close-up photo of a PCB made with Flux, with an ESP32 module, buttons, and a microSD slot.](https://www.flux.ai/p/assets/blogs/miscellaneous/sidebar-cta-pcb.webp) [Try it Free](https://www.flux.ai/signup)

## More in Component & Platform Guides

[

![A 3d model of arduino uno board](https://www.flux.ai/p/assets/blogs/arduino-getting-started/main.webp)

### Arduino Uno Basics: Beginner's Guide to Getting Started

15 Min Read](https://www.flux.ai/p/blog/arduino-uno-basics-beginners-guide-to-getting-started)[

![ESP32 Board with its pinout label and diagram, each pin label and function on different colors](https://www.flux.ai/p/assets/blogs/esp32-pinout/main.webp)

### ESP32 Pinout Guide: Everything You Need to Know

11 Min Read](https://www.flux.ai/p/blog/esp32-pinout-everything-you-need-to-know)[

![A raspberry pi 3B and zero boards laid out together showing graphical GPIO pinout](https://www.flux.ai/p/assets/blogs/raspberry-pi-guide/main.webp)

### Raspberry Pi Pinouts: A Comprehensive Guide

8 Min Read](https://www.flux.ai/p/blog/raspberry-pi-pinouts-a-comprehensive-guide)[

![An arduino uno microcontroller board with its sketch code on Arduino IDE being used as background in a monitor.](https://www.flux.ai/p/assets/blogs/arduino-code-guide/main.webp)

### Arduino Code for Beginners: How to Write Your First Sketch

8 Min Read](https://www.flux.ai/p/blog/arduino-code-a-comprehensive-guide-for-beginners)[

![Meet the Arduino Nano R4: Why Is This Tiny Upgrade So Big for Makers?](https://www.flux.ai/p/assets/blogs/arduino-nano-r4/main.webp)

### Meet the Arduino Nano R4: Why Is This Tiny Upgrade So Big for Makers?

6 Min Read](https://www.flux.ai/p/blog/meet-the-arduino-nano-r4-why-is-this-tiny-upgrade-so-big-for-makers)[

![A microcontroller board with the words Arduino Pro Micro on it.](https://www.flux.ai/p/assets/blogs/arduino-pro-micro/main.webp)

### What is Arduino Pro Micro: a Comprehensive Introduction for Novices

5 Min Read](https://www.flux.ai/p/blog/what-is-arduino-pro-micro-a-comprehensive-introduction-for-novices)[

![Schematic diagram of arduino uno board with all of its passive and active components](https://www.flux.ai/p/assets/blogs/arduino-uno-schematic-diagram/main.webp)

### Arduino Uno Schematic Diagram: A Comprehensive Guide

8 Min Read](https://www.flux.ai/p/blog/arduino-uno-schematic-diagram)[

![Side by side comparison of the 3 powerful and most common Arduino microcontroller boards; Arduino Mega 2560, Arduino Uno and Arduino Micro.](https://www.flux.ai/p/assets/blogs/arduino-mega-uno-micro/main.webp)

### Arduino Mega vs. Uno vs. Micro: Key Differences

6 Min Read](https://www.flux.ai/p/blog/what-is-the-real-difference-arduino-mega-vs-micro-vs-uno)[

![Different packages or footprint of famous atmega328p microcontroller with its pinout](https://www.flux.ai/p/assets/blogs/atmega328p-still-top-choice/main.webp)

### Why Atmega328p is Still a Top Choice for Microcontroller Projects in 2023

8 Min Read](https://www.flux.ai/p/blog/why-atmega328p-is-still-a-top-choice-for-microcontroller-projects-in-2023)[

![ESP32 Chip in a dark background: A powerful microcontroller with integrated Wi-Fi and Bluetooth, driving IoT innovation with seamless connectivity.](https://www.flux.ai/p/assets/blogs/esp32-history/main.webp)

### Exploring ESP32: from History to Application

3 Min Read](https://www.flux.ai/p/blog/exploring-esp32-from-history-to-application)[

![3d rendered of an ESP8266 microcontroller board, showing its compact size with the Wi-Fi module, chip antenna, and GPIO pins clearly visible, ideal for embedding wireless internet connectivity into DIY electronics projects.](https://www.flux.ai/p/assets/blogs/everything-about-esp8266/main.webp)

### ESP8266 Pinout Guide: Complete GPIO Reference & IoT Project Tips

10 Min Read](https://www.flux.ai/p/blog/esp8266-pinout-everything-you-need-to-know)[

![Attiny85 chip in two different packages viewed on top, also showing pinout diagram](https://www.flux.ai/p/assets/blogs/attiny85/main.webp)

### Introduction to the ATtiny85 Microcontroller

12 Min Read](https://www.flux.ai/p/blog/introduction-to-the-attiny85-microcontroller)[

![STM32 microcontroller chip overview – Why choose STM32? Discover STM32F4 ARM-based processors, optimized for performance with USB OTG, SWD, and UART support](https://www.flux.ai/p/assets/blogs/stm32-things-you-need-to-know/main.webp)

### STM32: Things You Need to Know

10 Min Read](https://www.flux.ai/p/blog/stm32-things-you-need-to-know)[

![Arduino Nano Guide](https://www.flux.ai/p/assets/blogs/arduino-nano-guide/main.webp)

### Arduino Nano Guide

10 Min Read](https://www.flux.ai/p/blog/arduino-nano-guide)[

![A top view photo of raspberry pi zero 2 w board](https://www.flux.ai/p/assets/blogs/pi-zero-2w/main.webp)

### Raspberry Pi Zero 2 W Review: a Powerful and Affordable Mini Computer

9 Min Read](https://www.flux.ai/p/blog/raspberry-pi-zero-2-w-review-a-powerful-and-affordable-mini-computer)[

![RP2350 A4 Stepping: Why Raspberry Pi Pico’s Latest Upgrade Changes Everything](https://www.flux.ai/p/assets/blogs/rp2350-a4-stepping/main.webp)

### RP2350 A4 Stepping: Why Raspberry Pi Pico’s Latest Upgrade Changes Everything

8 Min Read](https://www.flux.ai/p/blog/rp2350-a4-stepping-why-raspberry-pi-picos-latest-upgrade-changes-everything)[

![Photos of Raspberry Pi Pico 2 PCB board and its predecessor Raspberry Pi Pico boards laid out with a text suggesting their key differences](https://www.flux.ai/p/assets/blogs/pi-pico-vs-pi-pico-2/main.webp)

### Raspberry Pi Pico 2 vs Pico: Key Differences and Upgrades

8 Min Read](https://www.flux.ai/p/blog/whats-new-in-the-raspberry-pi-pico-2-a-showdown-with-the-original-raspberry-pi-pico)[

![Choosing the Right Platform to Build Your Project](https://www.flux.ai/p/assets/blogs/choosing-the-right-microcontroller/main.webp)

### Choosing the Right Platform to Build Your Project

9 Min Read](https://www.flux.ai/p/blog/choosing-the-right-platform-to-build-your-project)[

![Raspberry pi boards and arduino boards laid out side by side.](https://www.flux.ai/p/assets/blogs/arduino-vs-raspberry-pi/main.webp)

### Arduino vs. Raspberry Pi: Key Differences and Which to Choose

8 Min Read](https://www.flux.ai/p/blog/arduino-vs-raspberry-pi-comparison)[

![ESP32 boards and Arduino boards side by side, highlighting the comparison between these popular IoT microcontroller platforms.](https://www.flux.ai/p/assets/blogs/esp32-vs-arduino/main.webp)

### ESP32 vs Arduino: Key Differences & Which to Choose?

8 Min Read](https://www.flux.ai/p/blog/esp32-vs-arduino)[

![arduino board and text suggesting this is all about the arduino map () function](https://www.flux.ai/p/assets/blogs/arduino-map-function/main.webp)

### How to Use the Arduino map() Function: A Complete Guide

4 Min Read](https://www.flux.ai/p/blog/how-to-use-the-arduino-map-function-a-complete-guide)[

![A simplified schematic diagram illustrates how pull-up and pull-down resistors are utilized in microcontroller applications](https://www.flux.ai/p/assets/blogs/pull-up-down-resistors/main.webp)

### Understanding Pull-up and Pull-down Resistors: A Guide for Arduino and Microcontrollers

7 Min Read](https://www.flux.ai/p/blog/understanding-pull-up-and-pull-down-resistors-a-guide-for-arduino-and-microcontrollers)[

![What Is an Open Circuit? Causes, Examples, and Troubleshooting](https://www.flux.ai/p/assets/blogs/what-is-an-open-circuit/main.webp)

### What Is an Open Circuit? Causes, Examples, and Troubleshooting

10 Min Read](https://www.flux.ai/p/blog/what-is-an-open-circuit)[

![A 7-segment display wired to an Arduino with current-limiting resistors.](https://www.flux.ai/p/assets/blogs/7-segment-display-arduino/main.webp)

### How to Connect a 7-Segment Display to Arduino: Wiring and Code

9 Min Read](https://www.flux.ai/p/blog/7-segment-display-arduino)

See All (24)

## Let’s start building.

Let’s build your idea together. All you need to do is describe what you want to make, or what problem you want to solve. Flux will work with you to make it a reality.

[Try it Free](https://www.flux.ai/signup)

 ![Close-up of a Flux-designed printed circuit board](https://www.flux.ai/p/assets/homepage-v2/mission-visual.webp)
