Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use HX711 (left-facing): Examples, Pinouts, and Specs

Image of HX711 (left-facing)
Cirkit Designer LogoDesign with HX711 (left-facing) in Cirkit Designer

Introduction

The HX711 is a precision 24-bit analog-to-digital converter (ADC) designed for applications requiring high accuracy and low noise, such as weigh scales and industrial control systems. It is specifically optimized for reading load cells and other bridge sensors, making it a popular choice in electronic weighing systems. The left-facing orientation refers to the direction of the input pins, which can be important for certain circuit layouts and designs.

Explore Projects Built with HX711 (left-facing)

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Raspberry Pi and ESP8266-Based Smart Weighing System with Camera Integration
Image of CAPSTONE HARDWARE: A project utilizing HX711 (left-facing) in a practical application
This circuit integrates multiple HX711 weighing sensor modules connected to load cells for weight measurement, an OV7725 camera module interfaced with a Raspberry Pi 4B for image capture, and a WeMOS ESP8266 for wireless communication. Additionally, it includes an Adafruit 24-Channel PWM LED driver for controlling LEDs and a buzzer module for audio alerts.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Mega 2560-Based Smart Weighing System with Bluetooth Connectivity
Image of SMART BRIDGE CIRCUIT DIAGRAM: A project utilizing HX711 (left-facing) in a practical application
This circuit is a weighing system that uses two load cells connected to HX711 modules for weight measurement, interfaced with an Arduino Mega 2560. The system includes an LCD for displaying weight, a Bluetooth module for wireless communication, and LEDs for status indication, with a micro servo for additional mechanical control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO and HX711 Load Sensor Interface with Dual Axis Joystick and LED Indicators
Image of led joystick: A project utilizing HX711 (left-facing) in a practical application
This circuit is a dual-system setup featuring two Arduino UNOs. One system interfaces with an HX711 module and a load sensor to measure weight, while the other system uses a joystick module and multiple LEDs to create a user interface for visual feedback. Both systems include basic setup and loop code templates for further development.
Cirkit Designer LogoOpen Project in Cirkit Designer
Raspberry Pi 5-Based OCR and Weighing System with Wi-Fi Connectivity
Image of OCR Project: A project utilizing HX711 (left-facing) in a practical application
This circuit integrates a Raspberry Pi 5 with an OV2640 camera module, an ILI9488 TFT screen, an infrared proximity sensor, and a load cell with an HX711 sensor module. The system captures images and performs OCR to extract text from documents, displays the text and weight measurements on the TFT screen, and allows data export via WiFi.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with HX711 (left-facing)

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of CAPSTONE HARDWARE: A project utilizing HX711 (left-facing) in a practical application
Raspberry Pi and ESP8266-Based Smart Weighing System with Camera Integration
This circuit integrates multiple HX711 weighing sensor modules connected to load cells for weight measurement, an OV7725 camera module interfaced with a Raspberry Pi 4B for image capture, and a WeMOS ESP8266 for wireless communication. Additionally, it includes an Adafruit 24-Channel PWM LED driver for controlling LEDs and a buzzer module for audio alerts.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of SMART BRIDGE CIRCUIT DIAGRAM: A project utilizing HX711 (left-facing) in a practical application
Arduino Mega 2560-Based Smart Weighing System with Bluetooth Connectivity
This circuit is a weighing system that uses two load cells connected to HX711 modules for weight measurement, interfaced with an Arduino Mega 2560. The system includes an LCD for displaying weight, a Bluetooth module for wireless communication, and LEDs for status indication, with a micro servo for additional mechanical control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of led joystick: A project utilizing HX711 (left-facing) in a practical application
Arduino UNO and HX711 Load Sensor Interface with Dual Axis Joystick and LED Indicators
This circuit is a dual-system setup featuring two Arduino UNOs. One system interfaces with an HX711 module and a load sensor to measure weight, while the other system uses a joystick module and multiple LEDs to create a user interface for visual feedback. Both systems include basic setup and loop code templates for further development.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of OCR Project: A project utilizing HX711 (left-facing) in a practical application
Raspberry Pi 5-Based OCR and Weighing System with Wi-Fi Connectivity
This circuit integrates a Raspberry Pi 5 with an OV2640 camera module, an ILI9488 TFT screen, an infrared proximity sensor, and a load cell with an HX711 sensor module. The system captures images and performs OCR to extract text from documents, displays the text and weight measurements on the TFT screen, and allows data export via WiFi.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications:

  • Digital weigh scales
  • Industrial process control
  • Load cell signal amplification
  • Force and pressure measurement systems

Technical Specifications

The HX711 is a highly integrated ADC with an internal amplifier, designed to interface directly with bridge sensors. Below are its key technical details:

Key Specifications:

  • Resolution: 24-bit ADC
  • Input Channels: 2 differential input channels (Channel A and Channel B)
  • Gain: Programmable gain of 32, 64, or 128 (default: 128 for Channel A)
  • Operating Voltage: 2.6V to 5.5V
  • Current Consumption: < 1.5mA (normal mode), < 1µA (power-down mode)
  • Data Rate: 10Hz or 80Hz (selectable)
  • Temperature Range: -40°C to +85°C
  • Input Noise: < 1µV (at gain = 128, 10Hz data rate)
  • Interface: Serial (2-wire: Data and Clock)

Pin Configuration:

The HX711 has 16 pins, but only 10 are typically used in most applications. Below is the pinout for the left-facing orientation:

Pin Number Pin Name Description
1 VCC Power supply (2.6V to 5.5V)
2 VFB Feedback voltage for internal regulator (connect to VCC for external supply)
3 VBG Bandgap reference voltage (not typically used in standard applications)
4 AVDD Analog power supply (connect to VCC)
5 AGND Analog ground
6 A+ Positive input for Channel A
7 A- Negative input for Channel A
8 B+ Positive input for Channel B
9 B- Negative input for Channel B
10 DGND Digital ground
11 PD_SCK Power-down and serial clock input
12 DOUT Serial data output
13-16 NC Not connected

Usage Instructions

The HX711 is straightforward to use in a circuit, especially for load cell applications. Below are the steps and considerations for integrating the HX711 into your project:

Connecting the HX711:

  1. Power Supply: Connect the VCC pin to a 3.3V or 5V power source, and connect AGND and DGND to ground.
  2. Load Cell Connection:
    • Connect the load cell's positive signal wire to A+ and the negative signal wire to A-.
    • If using a second load cell or sensor, connect it to B+ and B-.
  3. Microcontroller Interface:
    • Connect the PD_SCK pin to a digital output pin on your microcontroller (e.g., Arduino).
    • Connect the DOUT pin to a digital input pin on your microcontroller.

Important Considerations:

  • Gain Selection: The gain is set automatically based on the input channel:
    • Channel A: Gain = 128 or 64
    • Channel B: Gain = 32
  • Data Rate: The data rate is selectable between 10Hz and 80Hz by controlling the PD_SCK pin during initialization.
  • Decoupling Capacitors: Place a 0.1µF capacitor between VCC and GND to reduce noise.

Example Code for Arduino UNO:

Below is an example of how to interface the HX711 with an Arduino UNO to read data from a load cell:

#include "HX711.h" // Include the HX711 library

// Define HX711 pins
#define DOUT 3  // Data output pin connected to Arduino pin 3
#define CLK 2   // Clock pin connected to Arduino pin 2

HX711 scale; // Create an instance of the HX711 class

void setup() {
  Serial.begin(9600); // Initialize serial communication
  scale.begin(DOUT, CLK); // Initialize the HX711 with the defined pins
  scale.set_scale(); // Set the scale factor (calibration required)
  scale.tare(); // Reset the scale to zero
  Serial.println("HX711 initialized. Place weight on the scale.");
}

void loop() {
  if (scale.is_ready()) { // Check if the HX711 is ready
    long reading = scale.get_units(); // Get the weight reading
    Serial.print("Weight: ");
    Serial.print(reading);
    Serial.println(" units");
  } else {
    Serial.println("HX711 not ready. Check connections.");
  }
  delay(500); // Wait 500ms before the next reading
}

Notes:

  • The HX711.h library can be installed via the Arduino Library Manager.
  • Calibration is required to convert raw ADC values into meaningful weight units.

Troubleshooting and FAQs

Common Issues:

  1. No Data Output:

    • Cause: Incorrect wiring or loose connections.
    • Solution: Double-check all connections, especially the DOUT and PD_SCK pins.
  2. Unstable Readings:

    • Cause: Electrical noise or insufficient power supply decoupling.
    • Solution: Add a 0.1µF capacitor between VCC and GND. Ensure a stable power source.
  3. Incorrect Weight Measurements:

    • Cause: Improper calibration or incorrect gain setting.
    • Solution: Perform proper calibration using known weights. Verify the gain setting.
  4. HX711 Not Ready:

    • Cause: Faulty sensor or incorrect initialization.
    • Solution: Check the load cell connections and ensure the HX711 is powered correctly.

FAQs:

  • Q: Can I use the HX711 with a 3.3V microcontroller?

    • A: Yes, the HX711 operates at 2.6V to 5.5V, making it compatible with 3.3V systems.
  • Q: How do I calibrate the HX711?

    • A: Use a known weight to determine the scale factor. Adjust the scale factor in your code using the set_scale() function.
  • Q: Can I connect multiple load cells to the HX711?

    • A: Yes, the HX711 supports two channels (A and B). However, only one channel can be read at a time.
  • Q: What is the difference between the left-facing and right-facing HX711?

    • A: The orientation refers to the direction of the input pins, which may affect circuit layout but does not impact functionality.