Codey OnlineArduino- & ESP32-Komponentenbibliothek › HX711 Load Cell Amplifier
HX711 Load Cell Amplifier
Eingabe & Taster

HX711 Load Cell Amplifier

Der HX711 ist ein dedizierter Load-Cell-Verstärker, der Dehnungsmessstreifen-Brücken ausliest und das Brückensignal in einen digitalen Ausgang umwandelt. Er wird über E+/E- mit einer Brücke verbunden und bietet eine einfache Zweidraht-Schnittstelle mit DT (Data) und SCK (Clock) für Mikrocontroller wie Arduino oder ESP32.

Breite: 42.3 mm

Pinbelegung — HX711 Load Cell Amplifier

Pin Signal Beschreibung
E+ power Positive excitation supply for the load cell bridge.
E- ground Negative excitation return for the load cell bridge.
A- analog Channel A negative differential input from the load cell signal pair.
A+ analog Channel A positive differential input from the load cell signal pair.
B- analog Channel B negative differential input for a second bridge signal.
B+ analog Channel B positive differential input for a second bridge signal.
GND ground Ground reference for the HX711 module and connected microcontroller.
DT data HX711 serial data output to the microcontroller.
SCK clock Serial clock input used by the MCU to read data and set gain.
VCC power Module power input for the HX711 logic and load-cell excitation regulator.

Beispielschaltplan — HX711 Load Cell Amplifier

Von Nach Kabel
board:5V x1:VCC red
board:GND x1:GND black
board:D3 x1:DT green
board:D2 x1:SCK blue

Arduino-Beispielcode — HX711 Load Cell Amplifier

Dieses Beispiel wurde für das arduino-uno geschrieben und kompiliergeprüft. Codey Online passt es für jedes andere unterstützte Board an.

#include <HX711.h>

const int HX711_DOUT_PIN = 3;
const int HX711_SCK_PIN = 2;

HX711 scale;

void setup() {
  Serial.begin(9600);
  while (!Serial) {
    ;
  }

  Serial.println("HX711 Load Cell Amplifier example");
  Serial.println("Initializing...");

  scale.begin(HX711_DOUT_PIN, HX711_SCK_PIN);

  // In a real project, calibrate this value for your load cell.
  // This example uses a default calibration factor so the sketch compiles and runs.
  scale.set_scale();
  scale.tare();

  Serial.println("Tare complete.");
}

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

  delay(500);
}

Ähnliche Komponenten

Drukknop

Drukknop

Keypad 4x3

Keypad 4x3

Tactile switch

Tactile switch

Bau dein Arduino- oder ESP32-Projekt mit AI

Beschreib einfach, was du bauen willst. Codey Online schreibt den Code, zeichnet den Schaltplan, kompiliert alles und flasht dein Board direkt aus dem Browser.

Kostenlos starten