Introduction: Arduino Weight Scale

The HX711 load cell amplifier is used to get measurable data out from a load cell and strain gauge.

Step 1: Code

//////include

#include<LiquidCrystal.h>

#include "HX711.h"

LiquidCrystal lcd(11, 12, 4, 5, 6, 7);

#define calibration_factor 12800.00 //This value is obtained using the SparkFun_HX711_Calibration sketch

#define DOUT 9 #define CLK 8

HX711 scale(DOUT, CLK);

void setup() { lcd.begin(16,2);

scale.set_scale(calibration_factor); //This value is obtained by using the SparkFun_HX711_Calibration sketch scale.tare(); //Assuming there is no weight on the scale at start up, reset the scale to 0

}

void loop() { lcd.print("Peshorja: "); delay(3000)

;lcd.setCursor(2,1); ;lcd.print(scale.get_units()); //scale.get_units() returns a float lcd.println(); }