Steve Spence
Published © GPL3+

Weigh Objects with an Arduino Scale

Weigh objects, and make decisions based on weight.

EasyShowcase (no instructions)64,132
Weigh Objects with an Arduino Scale

Things used in this project

Hardware components

HX711
×1
Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
Load Cell
×1

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

Schematic

created with schemeit from digikey
Hx711%20schematic

Code

Load Cell Sketch

C/C++
Copy into Arduino IDE and upload to your Arduino. Don't forget to install library (see code line 4)
/* sample for digital weight scale of hx711
 * library design: Weihong Guan (@aguegu)
 * library host on
 *https://github.com/aguegu/ardulibs/tree/3cdb78f3727d9682f7fd22156604fc1e4edd75d1/hx711
 */
 // See original article and code / library link at http://arduinotronics.blogspot.com/2015/06/arduino-hx711-digital-scale.html

// Hx711.DOUT - pin #A2
// Hx711.SCK - pin #A3

#include <Hx711.h>
Hx711 scale(A2, A3);

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

void loop() {
  Serial.print(scale.getGram(), 1);
  Serial.println(" g");
  delay(200);
}

Credits

Steve Spence

Steve Spence

1 project • 10 followers
IT Engineer and Electronics Tech. Solar and wind power designer. Ham radio operator, Arduino / Pi nut ...
Contact
Thanks to Weihong Guan.

Comments