Steve Spence
Published © GPL3+

Weigh Objects with an Arduino Scale

Weigh objects, and make decisions based on weight.

BeginnerShowcase (no instructions)98,227
Weigh Objects with an Arduino Scale

Things used in this project

Hardware components

HX711
×1
Arduino UNO
Arduino 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

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

2 projects • 15 followers
IT Engineer and Electronics Tech. Solar and wind power designer. Ham radio operator, Arduino / Pi nut ...
Thanks to Weihong Guan.

Comments