ELECTRONIC SCALE PROJECT

by leeselectronic in Circuits > Arduino

1458 Views, 2 Favorites, 0 Comments

ELECTRONIC SCALE PROJECT

picture 1 entire project.jpg

Created by: Tao You

Overview:

This electronic scale is operated by Arduino UNO, load cell, a load cell amplifier HX711 to amplify the signal from the load cell, and a 2X16 LCD display in order to show the weight in digital format.

Supplies

Preparation

6666.jpg

The working principle of the load cell is that the object’s weight will be measured by bending the aluminum load cell bar on either side of the bar. The white adhesive in the middle will calculate the load cell’s inner resistance when the bar is bending. Therefore, we can mount one side of the load cell to a stabilizing object, while connecting the wires on the opposite side. Here using a block of wood is a good stabilizing object since we can attach the load cell to the woodblock by using M4 screws.

Soldering Headers on the Load Cell Amplifier

picture 2 hx711 front.jpg
picture 3 hx711 back.jpg

The HX711 load cell amplifier is a precision analog to digital converter designed for weighing objects. The product initially comes with the header separated. Therefore we need to solder/jump headers onto the 4-pin side, to generate communication with Arduino by utilizing male-female (M/F) jumper wires. As for the 6-pin side, we can solder the wires that come with the load cell directly: E+, E- represent the voltage positive (red wire on the load cell) and negative (black wire). A+, A- is the positive (white wire) and negative (green wire) for data.

Building the Switch Circuit

picture 4 circuit.jpg
picture 5 circuit real.jpg

We can add a switch if we want the LCD keeping display zero due to the sensitivity of the load cell amplifier, otherwise, the LCD might display negative or non zero values. The switch is a 4-pin tactile switch, single pole single throw (SPST), momentary on and off switch which can handle 0.5A. Therefore, add a 10k ohm resistor to act as a pull-down resistor and by ignoring one pin the Arduino will receive HIGH state when the switch is off and LOW state when the switch is on because of the current flow.

Coding Part 1

picture 6 code 1.jpg

Coding Part 2

picture 7 code 2.jpg

Library

picture 8 library manager.jpg

There are two essential libraries that need to be added into the Arduino IDE: The “HX711_ADC” by Olav Kallhovd and the LCD I2C library by John Rickman which can be downloaded from https://github.com/johnrickman/LiquidCrystal_I2C. The HX711_ADC library can be downloaded via Arduino IDE’s Library Manager and search HX711, then install the “HX711_ADC” one. To install John Rickman’s LCD I2C library, select “Sketch-Add file” in the Arduino IDE

Circuit Connection

图片2.jpg

As for the LCD screen, we need to do solder or jump a lot of wires, so it is better to get LCD I2C which has a 4-pin connector only. The LCD I2C has pin called “SDA” and “SCL” which can connect into Arduino “SDL” and “SCL” pin respectively.

Video

ELECTRONIC SCALE PROJECT