The SparkFun Load Cell Amplifier - HX711 is a precision breakout board that facilitates the interfacing of a load cell with a microcontroller, such as an Arduino. The HX711 module is a 24-bit analog-to-digital converter (ADC) specifically designed for weighing scales and industrial control applications to interface directly with a bridge sensor. This component is commonly used in applications requiring high-precision measurements of weight, force, or strain, such as digital scales, industrial systems, and experimental data collection.
Pin Name | Description |
---|---|
VCC | Power supply (2.6V to 5.5V) |
GND | Ground |
DT | Data output from HX711 to microcontroller |
SCK | Serial Clock Input |
E+ | Excitation+ for load cell |
E- | Excitation- for load cell |
A+ | Channel A positive input |
A- | Channel A negative input |
B+ | Channel B positive input (optional use) |
B- | Channel B negative input (optional use) |
Connecting the Load Cell:
Powering the HX711:
Data Communication:
#include "HX711.h"
// HX711 circuit wiring
const int LOADCELL_DOUT_PIN = 3;
const int LOADCELL_SCK_PIN = 2;
HX711 scale;
void setup() {
Serial.begin(9600);
scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
}
void loop() {
if (scale.is_ready()) {
long reading = scale.read();
Serial.print("Reading: ");
Serial.println(reading);
} else {
Serial.println("HX711 not found.");
}
}
Q: Can I use multiple HX711 boards with one microcontroller? A: Yes, you can use multiple HX711 boards by connecting each one to different digital I/O pins on the microcontroller.
Q: How do I change the gain or data rate of the HX711? A: The gain and data rate can be set through the library functions provided by the HX711 library. Refer to the library documentation for specific instructions.
Q: What is the maximum weight the HX711 can measure? A: The maximum weight the HX711 can measure depends on the load cell's capacity. The HX711 is an ADC that reads the electrical signal from the load cell, which varies based on the load cell's specifications.