Project tutorial
Electronic Weighing Machine

Electronic Weighing Machine © GPL3+

Arduino Uno-based electronic weighing machine by 5-wire 3 kg load cell.

  • 10,940 views
  • 10 comments
  • 22 respects

Components and supplies

Apps and online services

About this project

I want to know about the electronic components weight. So I decided to do my own weighing machine :)

To do that you have to download some libraries which are listed below

LiquidCrystal_PCF8574

Wire

HX711

Connect all components as per the circuit diagram.

Programming part is critical

1. Calibration

In Calibration open the calibration sketch upload with out any load on the tray. Then put some known weight element then open serial port increment or decremented the calibration factor util you see the known value.

For example if you put 250gram weight, on first time it will give 400 gram or 1kg before calibration.. You use a, s, d, f or z, x, c, v keys to correct the calibration level until you get 250 grams from 400gram or 1kg. Then just note down the calibration factor.

2. Actual Sketch

Put the calibrated value xxxxxxx on this line and upload thats all....

scale.set_scale(xxxxxxx);

3. To reset the tare value I use one push button.

<_e_26CL >
Discription
<_e_26CL >

Code

CodeC/C++
/*
 * https://facebook/nissiembeddedlab
 * 2018 September 4
 * 3 Kg Load Cell HX711 Module Interface with Arduino to measure weight in Kgs
 Arduino  pin  2 -> HX711 CLK 3 -> DOUT 5V -> VCC GND -> GND
*/

#include "HX711.h"  
#define DOUT  3
#define CLK  2

HX711 scale(DOUT, CLK);
#include <Wire.h>
#include <LiquidCrystal_PCF8574.h>

LiquidCrystal_PCF8574 lcd(0x3F);
float calibration_factor = -96650;
const int SW = 7;
void setup() 
{
  Wire.begin();
  Wire.beginTransmission(0x3F);
  pinMode(SW, INPUT_PULLUP);
  lcd.setBacklight(255);
  lcd.begin(16, 2);
  lcd.setCursor(0,0);
  lcd.print("Nissi 3kgLoadCell");
  lcd.setCursor(0,1);
  lcd.print("Press Sw to tare");
  scale.set_scale(-849650); 
  scale.tare();           
}
void loop() 
{
  lcd.setCursor(0,1);
  lcd.print("W =  ");
  lcd.setCursor(6,1);
  lcd.print(scale.get_units(),3); 
  lcd.println(" kg   ");
  int x = digitalRead(SW);
  if(x == LOW)
  {
      scale.tare();  
  }
}

Schematics

Circuit
We bb tgap0et5nz

Comments

Similar projects you might like

Arduino-Based Bitcoin Candy Vending Machine

Project tutorial by Team Elkrem

  • 3,766 views
  • 17 comments
  • 38 respects

Electronic Safe with Arduino

Project showcase by chummer1010

  • 24,874 views
  • 28 comments
  • 54 respects

CNC Part Picking Machine

Project tutorial by Arduino “having11” Guy

  • 5,271 views
  • 1 comment
  • 10 respects

Electronic Piano Keyboard With Preset Songs

Project tutorial by Lindsay Fox

  • 77,973 views
  • 60 comments
  • 150 respects

Caravaggio, A Drawing Machine

Project showcase by Michele

  • 20,104 views
  • 10 comments
  • 123 respects

English Pronunciation Training Machine

Project tutorial by HomeMadeGarbage

  • 7,518 views
  • 0 comments
  • 19 respects
Add projectSign up / Login