Stufin
Home Quick Cart Profile

HX711 Load Cell Module

Buy Now

Supply Voltage

2.6V to 5.5V

Current Consumption

1.5mA (typical)

Analog-to-Digital Converter (ADC) Resolution24-bit

Input Sensitivity

128mV/V (typical)

Clock Frequency

10MHz (typical)

Interface

SPI (Serial Peripheral Interface)

Operating Temperature Range

-20C to 70C

Dimensions

28.5mm x 15.5mm x 5.5mm

Applications

The HX711 Load Cell Module is suitable for a variety of IoT applications, including

Weighing Scales

Industrial, commercial, or domestic weighing scales

Industrial Automation

Monitoring and control of industrial processes involving weight measurement

IoT Devices

Integration into IoT devices requiring weight measurement, such as smart home appliances or wearables

Robotics

Integration into robotic systems requiring precise weight measurement and control

Conclusion

The HX711 Load Cell Module is a highly accurate and reliable weight measurement module suitable for a wide range of IoT applications. Its compact design, low power consumption, and high precision make it an ideal choice for integrating load cells into IoT devices.

Pin Configuration

  • HX711 Load Cell Module Pinout Explanation
  • The HX711 Load Cell Module is a popular weighing scale module used in various IoT applications. It consists of 6 pins, which are explained below:
  • Pinout Structure:
  • 1. VCC (Power Supply)
  • Function: Supplies power to the module
  • Voltage: Typically 2.7V to 5V
  • Connection: Connect to a power source (e.g., Arduino board, breadboard, or voltage regulator)
  • 2. GND (Ground)
  • Function: Provides a ground reference for the module
  • Connection: Connect to a ground pin on the power source or a common ground point
  • 3. DT (Data Out)
  • Function: Transmits the weight measurement data from the module
  • Connection: Connect to a digital input pin on a microcontroller (e.g., Arduino, Raspberry Pi, or ESP32)
  • 4. SCK (Clock)
  • Function: Provides a clock signal for the module's internal ADC
  • Connection: Connect to a digital output pin on a microcontroller (e.g., Arduino, Raspberry Pi, or ESP32)
  • 5. E+ (Excitation Positive)
  • Function: Provides an excitation voltage to the load cell
  • Connection: Connect to the positive leg of the load cell
  • 6. E- (Excitation Negative)
  • Function: Provides an excitation voltage to the load cell
  • Connection: Connect to the negative leg of the load cell
  • Connection Example with Arduino:
  • Here's an example connection diagram with an Arduino Uno board:
  • VCC Arduino 5V
  • GND Arduino GND
  • DT Arduino Digital Pin 2
  • SCK Arduino Digital Pin 3
  • E+ Load Cell Positive Leg
  • E- Load Cell Negative Leg
  • Important Notes:
  • Make sure to connect the load cell to the E+ and E- pins correctly, as swapping the connections can damage the load cell or the module.
  • Use a suitable power source and voltage regulator to ensure a stable voltage supply to the module.
  • Ensure the clock signal (SCK) is connected to a digital output pin on the microcontroller, as it is used to trigger the ADC conversion.
  • By following this connection guide, you can successfully integrate the HX711 Load Cell Module into your IoT project and start measuring weights accurately.

Code Examples

HX711 Load Cell Module Documentation
Overview
The HX711 Load Cell Module is a high-precision weight measurement module designed for various IoT applications, including industrial automation, robotics, and smart home devices. This module is based on the HX711 chip, a 24-bit analog-to-digital converter (ADC) specifically designed for weight scale and load cell applications.
Features
High precision: 24-bit resolution
 Low noise: 50-60 Hz noise rejection
 High accuracy: 0.01% full-scale range (FSR)
 Supports multipleGain options: 32, 64, and 128
 Compatible with various load cell types: Aluminum, Steel, and Stainless Steel
Pinout
VCC: Power supply (3.3V or 5V)
 GND: Ground
 DT: Data transmission pin
 SCK: Clock pin
 E+: Excitation positive pin
 E-: Excitation negative pin
Code Examples
### Example 1: Basic Weight Measurement using Arduino
This example demonstrates how to use the HX711 Load Cell Module to measure weight using an Arduino board.
```cpp
#include <HX711.h>
#define DOUT  12  // DT pin
#define CLK  13  // SCK pin
HX711 scale(DOUT, CLK);
void setup() {
  Serial.begin(9600);
  scale.set_scale(2280.f); // adjust this value according to your load cell
  scale.tare(); // reset the scale to zero
}
void loop() {
  float weight = scale.get_units(10); // get the average weight of 10 readings
  Serial.print("Weight: ");
  Serial.print(weight, 2);
  Serial.println(" kg");
  delay(500);
}
```
### Example 2: Weight Measurement with Calibration using Raspberry Pi (Python)
This example demonstrates how to use the HX711 Load Cell Module to measure weight using a Raspberry Pi and calibrate the scale using a known weight.
```python
import time
import RPi.GPIO as GPIO
# GPIO pin assignments
DOUT = 17  # DT pin
CLK = 23  # SCK pin
# HX711 constants
REFERENCE_UNIT = 1  # adjust this value according to your load cell
offset = 0  # calibration offset
GPIO.setmode(GPIO.BCM)
GPIO.setup(DOUT, GPIO.IN)
GPIO.setup(CLK, GPIO.OUT)
def read_weight():
    value = 0
    for _ in range(24):
        GPIO.output(CLK, GPIO.HIGH)
        value = (value << 1) | GPIO.input(DOUT)
        GPIO.output(CLK, GPIO.LOW)
    return value
def calibrate_scale(kg):
    global offset
    offset = read_weight() - kg  REFERENCE_UNIT
def get_weight():
    value = read_weight() - offset
    return value / REFERENCE_UNIT
calibrate_scale(1.0)  # calibrate with a 1kg weight
while True:
    weight = get_weight()
    print("Weight: {:.2f} kg".format(weight))
    time.sleep(1)
```
These examples demonstrate the basic usage of the HX711 Load Cell Module in different contexts. The provided code can be modified and adapted to suit specific IoT applications.