Home
About Us
Achievement
Home
Raspberry-Pi Projects
_Raspberry Pi 4 Complete Guide
Arduino Project
_All Projects
Esp8266 Project
_All Projects
Esp32 Project
_Automation-with-feedback
DIY Weighing Scale using Load Cell HX711 & Arduino
Just Do Electronics
August 20, 2022
Circuit Diagram :-
Component List :-
1.Arduino Nano
2.Load Cell
3.Push Button
4.16x2 Lcd Display
5.
10k potentiometer
Code :-
//Prateek //wwww.prateeks.in //https://www.youtube.com/c/JustDoElectronics/videos #include
// https://github.com/olkal/HX711_ADC #include
#include
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);//RS,EN,D4,D5,D6,D7 HX711_ADC LoadCell(5, 4); // dt pin, sck pin int taree = 6; int a = 0; float b = 0; void setup() { pinMode (taree, INPUT_PULLUP); LoadCell.begin(); // start connection to HX711 LoadCell.start(1000); // load cells gets 1000ms of time to stabilize LoadCell.setCalFactor(375); lcd.begin(16, 2); lcd.setCursor(1, 0); // set cursor to first row lcd.print("Digital Scale "); // print out to LCD lcd.setCursor(0, 1); // set cursor to first row lcd.print(" 10KG MAX LOAD "); // print out to LCD delay(3000); lcd.clear(); } void loop() { lcd.setCursor(1, 0); // set cursor to first row lcd.print("Digital Scale "); // print out to LCD LoadCell.update(); // retrieves data from the load cell float i = LoadCell.getData(); // get output value if (i<0) { i = i * (-1); lcd.setCursor(0, 1); lcd.print("-"); lcd.setCursor(8, 1); lcd.print("-"); } else { lcd.setCursor(0, 1); lcd.print(" "); lcd.setCursor(8, 1); lcd.print(" "); } lcd.setCursor(1, 1); // set cursor to secon row lcd.print(i, 1); // print out the retrieved value to the second row lcd.print("g "); float z = i/28.3495; lcd.setCursor(9, 1); lcd.print(z, 2); lcd.print("oz "); if (i>=5000) { i=0; lcd.setCursor(0, 0); // set cursor to secon row lcd.print(" Over Loaded "); delay(200); } if (digitalRead (taree) == LOW) { lcd.setCursor(0, 1); // set cursor to secon row lcd.print("Load Reset"); LoadCell.start(1000); lcd.setCursor(0, 1); lcd.print(" "); } }
Video :-
0 Comments
Newer
Older
ESP32 Interfacing With LDR Sensor
How To Make RFID & Keypad Based Door Lock
Ultrasonic Sensor as a Counter with Arduino
IoT Based Patient Health Monitoring System Using Blynk App
How to Make Gas Leak Detector & Auto Exhaust Fan Using Arduino
MLX90614 Non-Contact Infrared Thermometer With Arduino
Measure CO2 Level in Air Using Arduino
Esp32 Cam Based Face Unlock
ESP32 Led Blink With Push Button
Smart Street Light Using Arduino
YouTube
Like on Facebook
Follow on Twitter
Follow on Google+
Follow on Instagram
Subscribe on Youtube
Hi WelCome To My Website If you have a creative mind and want to learn Electronics even without studying it then FRIENDS this Website And Youtube Channel is for you, I am crazy creators who love making Electronics things. I have a bunch of more than 130 Tutorial Videos on My YouTube Channel and I upload a new Tutorial every Sunday.
Tags
Arduino Project
Esp32 Project
Esp8266 Project
0 Comments