Arduino Programming talk about Load Cell

 Today we are going to


talk about Load Cell. Many people told me to tell about Load Cell (Figure 2). They brought this from Part 16, a request from all of them.

A load cell is a sensor that can measure mass. Although there are many types of load cells, strain gage based load cells are mostly used. Today we are talking about these strain gage based load cells.

We can see load cells of different sizes in this strain gage based load sell. You can see this load cell in different sizes like 1Kg, 5Kg, 10Kg, 40Kg, 100Kg. I am using a 10Kg load cell today. I bought it from scionelectronics.

Today, these load cells can be seen in almost every digital weighing machine.

When electricity is supplied to this load cell and some load is placed on it, the mass is calculated by using the resistance that changes due to an invisible bending.

Load Cell Amplifier and ADC (Analog to Digital Converte) module are used to do this. HX711 is a module made by combining both Load Cell Amplifier and ADC.

By connecting this module with the Arduino, it is possible to read the changes in the resistance of the load cell and obtain very accurate measurements. If you connect this load cell correctly and write the code correctly to the Arduino, you can get an accuracy of about 0.3% - 0.25%.

You can see 4 red, black, white, green/blue wires to connect the Load Cell and the HX711 Load Cell Amplifier Module.

The following is how the wires are connected to the HX711 Module.

Analog Side :-

Red Wire - E+

Black Wire - E-

White Wire - A-

Green Wire - A+

Digital Side :-

GND - GND

VCC - Power In

DT - Data IO Connection

SCK - Serial Clock Input

This HX711 module has the ability to provide voltage from 2.1v to 5.5v.

In order to measure the mass accurately, a platform must be connected to the load cell. (Important :- The Platform should not be dug outside the limits of the holes for mounting the Load Cell to the Platform) (Figures 4, 5, 6)

Let's see how we can work by adding a Load Cell with Arduino. For that we need

1) A 10Kg Load Cell. (Doesn't have to be 10Kg) -

2) HX711 Module -

3) 16×2 LCD Display

4) Arduino Uno

5) Potentiometer

6) 10k Resistor

7) Jumper Wires

Now arrange the devices as shown in Figure 7...

Now upload the following code.


#include <LiquidCrystal.h> //Library for LCD Display

#include "HX711.h" //Library for HX711 Module (Link attached)

#define DOUT A1 //DT Pin

#define CLK A0 //SCK Pin

HX711 scale(DOUT, CLK);

LiquidCrystal lcd(8, 9, 10, 11, 12, 13); //LCD Pin

float calibration_factor = 237745; //Change this value

void setup() {

   lcd.begin(16, 2);

   lcd.setCursor(2, 0); //LCD Position

   lcd.print("YS Load Cell");

   lcd.setCursor(5, 1);

   lcd.print("Coding");

   delay(3000);

   scale.set_scale();

   scale.tare(); //Reset the scale

}

void loop() {

   lcd.clear();

   scale.set_scale(calibration_factor);

   lcd.setCursor(0, 0);

   lcd.print("Reading:-");

   lcd.setCursor(4, 1);

   lcd.print(scale.get_units(), 3);

   lcd.setCursor(10, 1);

   lcd.print("Kg");

   delay(100);

}

.

So, I will say one more thing that many people have heard from me in comments and inbox that there is no place to buy these Arduino parts for people outside Colombo. So I thought it would be convenient for you guys if I told you about where I buy things.

"Scion Electronics" You can buy any item related to Arduino with a warranty from this shop. Their shop is in front of Malabe Slit Campus and Moratuwa Campus. If you are in a foreign country, you can bring these items home. Their website has details about all the items. You can get the Arduino parts you want with a guarantee.

Today we talked about how to represent the mass of an LCD Display using a Load Cell. By improving this, you can make a complete scale... and some device that works according to the mass. You can improve this according to your creativity. You can use it to identify capacitors with help. Since the negative connection of the circuit is everywhere, take the multimeter to the buzzer and place one probe on the negative connection and the other probe on the two terminals of the device to be tested. If the buzzer rings at one terminal, it is most likely a capacitor.

NB

This is not a 100% scientific method

Post a Comment

0 Comments