HX711 load cell amplifier
This Load Cell Amplifier is a small breakout board for the HX711 IC that allows you to easily read load cells to measure weight. By connecting the amplifier to your microcontroller you will be able to read the changes in the resistance of the load cell, and with some calibration, you’ll be able to get very accurate weight measurements. This can be handy for creating your own industrial scale, process control or simple presence detection.
HX711 load cell amplifier specification
- Differential input voltage: ±40mV(Full-scale differential input voltage is ± 40mV)
- Data accuracy: 24 bit (24 bit A / D converter chip.)
- Refresh frequency: 80 Hz
- Operating Voltage : 5V DC
- Operating current : <10 mA
- Size:38mm*21mm*10mm
Library: HX711-master.zip
Code
#include "HX711.h" // HX711.DOUT - pin #A1 // HX711.PD_SCK - pin #A0 HX711 scale(A1, A0); void setup() { Serial.begin(9600); Serial.println("HX711 Demo"); Serial.println("Before setting up the scale:"); Serial.print("read: tt"); Serial.println(scale.read()); Serial.print("read average: tt"); Serial.println(scale.read_average(20)); Serial.print("get value: tt"); Serial.println(scale.get_value(5)); Serial.print("get units: tt"); Serial.println(scale.get_units(5), 1); scale.set_scale(2280.f); scale.tare(); Serial.println("After setting up the scale:"); Serial.print("read: tt"); Serial.println(scale.read()); Serial.print("read average: tt"); Serial.println(scale.read_average(20)); Serial.print("get value: tt"); Serial.println(scale.get_value(5)); Serial.print("get units: tt"); Serial.println(scale.get_units(5), 1); Serial.println("Readings:"); } void loop() { Serial.print("one reading:t"); Serial.print(scale.get_units(), 1); Serial.print("t| average:t"); Serial.println(scale.get_units(10), 1); scale.power_down(); delay(5000); scale.power_up();