Panel Cookies
Strain gauge + Arduino scale

Help me by sharing this post


PREVIOUS PART       NEXT TUTORIAL

PART 5 - Body weight scale

This time we use 50 or 100Kg laod cells. We need 4, one for each corner that we will put over a solid plate. So make the scheamtic below and then upload the code. This will give you the weight taht is palced on top of the solid plate.

This Load Cell Amplifier is a small breakout board for the HX711 IC that allows you to easily read load cells to measure weight. By connecting the amplifier to your microcontroller you will be able to read the changes in the resistance of the load cell, and with some calibration, you’ll be able to get very accurate weight measurements. This can be handy for creating your own industrial scale, process control or simple presence detection.

HX711 load cell amplifier specification

Differential input voltage: ±40mV(Full-scale differential input voltage is ± 40mV)
Data accuracy: 24 bit (24 bit A / D converter chip.)
Refresh frequency: 80 Hz
Operating Voltage : 5V DC
Operating current : <10 mA
Size:38mm*21mm*10mm



#include "HX711.h" //Download here: https://electronoobs.com/images/Arduino/tut_115/HX711-master.zip

// HX711.DOUT - pin #D3
// HX711.PD_SCK - pin #D2

HX711 scale(D3, D2); 

void setup() {
 Serial.begin(9600);
 Serial.println("HX711 Demo");

 Serial.println("Before setting up the scale:");
 Serial.print("read: tt");
 Serial.println(scale.read()); 

 Serial.print("read average: tt");
 Serial.println(scale.read_average(20)); 

 Serial.print("get value: tt");
 Serial.println(scale.get_value(5)); 

 Serial.print("get units: tt");
 Serial.println(scale.get_units(5), 1); 

 scale.set_scale(2280.f); 
 scale.tare(); 

 Serial.println("After setting up the scale:");

 Serial.print("read: tt");
 Serial.println(scale.read()); 

 Serial.print("read average: tt");
 Serial.println(scale.read_average(20)); 

 Serial.print("get value: tt");
 Serial.println(scale.get_value(5)); 

 Serial.print("get units: tt");
 Serial.println(scale.get_units(5), 1); 
 Serial.println("Readings:");
}

void loop() {
 Serial.print("one reading:t");
 Serial.print(scale.get_units(), 1);
 Serial.print("t| average:t");
 Serial.println(scale.get_units(10), 1);

 scale.power_down(); 
 delay(5000);
 scale.power_up();
}


Arduino body weight scale 4 load cells tutorial




PART 6 - Video tutorial


Help me by sharing this post












yt_link
insta_link
fb_link
twitter_link

Also see Wheatstone Bridge Theory


ADVERTISERS



PCBWAY PCB service





Curso Arduino Online nivel Intermedio