Introduction
The weight sensor module is designed for high precision weight scale, it’s based on an chip of HX711 which consist of an precision 24-bit A/D(analog to digital convert). The weight sensor has two lines of analog channel for input, and integrate programmable amplifier which could gain the maximum 128 times. Compare to other chips, HX711 not only has a few basic function, but also contains high integration, fast response, immunity, and other features.
Usage
[code]
/* sample for digital weight scale of hx711, display with a HD44780 liquid crtstal monitor
*
* hardware design: syyyd
* available at http://syyyd.taobao.com
*
* library design: Weihong Guan (@aguegu)
* http://aguegu.net
*
* library host on
* https://github.com/aguegu/Arduino
*/
// Hx711.DOUT - pin #A1
// Hx711.SCK - pin #A0
// LCD.RS - pin 12
// LCD.En - pin 11
// LCD.D4 - pin 5
// LCD.D5 - pin 4
// LCD.D6 - pin 3
// LCD.D7 - pin 2
#include <LiquidCrystal.h>
#include <hx711.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
Hx711 scale(A1, A0);
void setup() {
lcd.begin(16, 2);
}
void loop() {
lcd.setCursor(0, 0);
lcd.print(scale.getGram(), 1);
lcd.print(" g");
lcd.print(" ");
delay(200);
}
[/code]
Resource
Program
Schematic