All wiring guides

Free wiring guides

Wire the HX711 load cell to the ESP32-S3

Load cell 1 kg with HX711 amplifier. Weighs what stands on it.

When buying: The load cell's four wires go to the HX711: red E+, black E−, white A−, green A+. Check your cell's own colour sheet.

Which pin goes where

On the partOn the ESP32-S3
GNDGND
DTGPIO 5
SCKGPIO 6
VCC3V3

Wire it with the USB cable unplugged. Follow the names printed on your own part: makers sometimes reorder the pins.

In 3D

Example sketch

// Load cell 1 kg with HX711 amplifier
// on the ESP32-S3-DevKitC-1 (N8R2 or N16R8)
// https://stem.manusignal.com/en/parts/hx711-load-cell-esp32-s3
#include <HX711.h>

const int PIN_DT = 5;
const int PIN_SCK = 6;

HX711 scale;

void setup() {
  Serial.begin(115200);
  scale.begin(PIN_DT, PIN_SCK);
  scale.tare();
}

void loop() {
  if (scale.wait_ready_timeout(500)) Serial.println(scale.get_value(5));
  delay(300);
}
  • Tools > Board > ESP32S3 Dev Module, then Tools > Port and choose the board's port.
  • HX711 (by Bogdan Necula): install it from Sketch > Include Library > Manage Libraries.

This sketch is compiled for the board before the page is published. It has not been run on real hardware by us.

What you should see

Open the Serial Monitor at 115200. The number stays near zero and jumps when you press on the load cell.

If it does not work

The weight drifts or is negative.
Swap the white and green wires. Then set the calibration number in the sketch with a known weight.

The same part on the ESP32-C3

Build something with it

These Build Packs use this part on this board, with the same pins.

More parts on the ESP32-S3