Weight Sensor Amplifier-HX711

From Elecrow
Revision as of 09:43, 13 June 2022 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

This Weight Sensor amplifier is based on HX711,which consist of an amplifier and a precision 24-bit analog-to-digital convertor designed for weigh scale and industrial control applications to interface directly with a bridge sensor. Compared with other chips, HX711 not only has a few basic function, also contains high integration, fast response, immunity, and other features. The chip lowed the cost of the electronic scale, at the same time, improving the performance and reliability. The input interface of this weight sensor module is used sensor interface, which is compatible with Arduino I/O ports. The output adopts compact terminal that makes weight sensor module easier to connect the weight sensor. It's the best choose for electronic enthusiast to do some tiny home scale.

Model: SHX711O
Weight sensor amplifier HX711.jpg

Alt text

Schematic

Hx711 sch.jpg

Usage

The following sketch demonstrates a simple application of setting the time and reading it out.

1.Hardware connection

Weight Sensor Scales Kit- 20KG hardware.jpg Weight Sensor Scales Kit- 20KG hardware1.jpg

2.Download the library File:Hx711 Library

3.Unzip it into the libraries file of Arduino IDE by the path: ..\arduino-1.0\libraries.

4.Open the code directly by the path:File -> Example ->hx711->SerialScale.

// Hx711.DOUT - pin #A1
// Hx711.SCK - pin #A0

#include "hx711.h"

Hx711 scale(A1, A0);

void setup() {

  Serial.begin(9600);

}

void loop() {

  Serial.print(scale.getGram(), 1);
  Serial.println(" g");

  delay(200);
}

5.Upload the code,then open the serial monitor to see the result.

Weight Sensor Scales Kit- 20KG result.jpg


Resource