Microcontroller Based Weighing Machine

Overview

Abstract –

This paper presents the design of an efficient, accurate and inexpensive microcontroller based weighing scale which can be used in all weight measuring operations. A digital weighing scale widely uses a load cell (resistive strain gauge) to measure weight. It converts pressure into appropriate voltage levels. This voltage level is filtered and converted into digital data in the microcontroller which is then displayed on a 16*2 LCD. The prime goal of this project is to provide high precision, low cost and user friendly functionalities.

Introduction-

Now a day precise measurement and storage of weight is one of the most important activities in industries. The mechanical weighing machines are now replaced by the electronics weighing machine as electronic weighing machines are smart with the advantages like accuracy, reliability, and wide range.

The Electronics weighing bridges are comparatively light weight and easy to operate with direct display. Earlier electronic weighing machine were designed using DPM, Microprocessor and Personal computer. The disadvantage of DPM type weigh machine has no facility to store data internally. Microprocessor and Personal computer based system cost is very high. To remove this drawback microcontroller based weigh machine is designed.

This project presents the software and hardware design, results and conclusion.

 2.THEORETICAL BACKGROUNG:

A microcontroller is a type of microprocessor furnished in a single integrated circuit and needing minimum support chips. Its principle nature is maximum efficiency at minimum cost. A microcontroller is an intelligent core for a specialized dedicated system. It is a complete computer system with input-output lines, timers, Read-Only Memory (ROM), Read-Write Memory (RAM) and some peripherals such as counters and timers, analog to digital converters, comparators and serial ports. The PIC microcontroller is mostly build on the Harvard architecture and has characteristics which include RISC processor design, single word instructions, machine and data memory configuration and characteristic instruction formats.

The Reduced Instruction Set Computer (RISC) has 35 instructions and each instruction performs more elementary operations. Consequences of this are a smaller silion area, faster execution and reduced program size with fewer accesses to main memory. In the Harvard architecture the data and instructions use different path and storage areas. This type of machine can read and write instructions to and from memory at the same time and results in a faster machine. Since the device has separate buses for instructions and data it is possible for instructions to be sized differently than data items. Being able to vary the number of bits in each instruction op-code makes possible the optimization of program memory and the use of single-word instructions that can be fetched in one bus cycle. The PIC architecture has a two-stage instruction pipeline, since the fetch and current instruction and execution of the previous one can overlap in time, one complete instruction is fetched and executed at every machine cycle (pipelining).

The PIC clocking system is designed so that an instruction is fetched, decoded, and executed every four clock cycles where the clock is either internal or external. In this manner a PIC equipped with a 4MHz oscillator clock beats at a rate of 0.25 micro seconds. Since each instruction executes at every four clock cycles, each instruction takes 1 us when the pre-scalar is not used.

In the PIC16F690 microchip controller there 18 general purpose I/O pins are available where one pin is only input that is the master clear pin, 3 ports which include port A which is 6 pins wide, port B which is 4 pins wide and port C which is 8 pins wide making the device have 18 pins and 2 pins for powering the device. This microcontroller has three types of memory- ROM, RAM and EEPROM.ROM memory is used to permanently save program being executed that is why it is often referred to as program memory. Since ROM is made of FLASH technology, its contents can be changed by providing special programming voltage. Similar to program memory, the contents of EEPROM are permanently saved even after the power going off. The third memory is the RAM which consists of two parts: the general purpose registers (GPR) and the special function registers (SFR).

Peripheral devices in the pic16f690 microchip controller include the timer which is used as timers or counters. The asynchronous receiver transmitter contains all the clock generators, shift registers and data buffers necessary to perform an input or output serial data transfer independent of device program execution.

  1. DESIGNThe design of the microcontroller weigh scale was based on the PIC16F690 as the heart of the system. The design was divided into two main parts; hardware and software design.

3.1 Hardware designLCD to PIC Interface; LCD requires 8 pins for the 8 bit mode of sending data for 8-bit configuration mode of the LCD. PORTC of PIC16F690 is 8 bit wide and was found convenient for the data lines of the LCD. That is, RC0-7 PIC pins where connected to D0-7 data lines of LCD as shown on figure 2-1.Enable pin (E) of the LCD was connected to RA1 (pin 18) of the microcontroller. Register select (RS) pin of the LCD was connected to RB5 (pin 12) of microcontroller. Since the objective was to write data to the LCD read/write line was grounded; because at no point is data being read from the LCD. This helped free up an extra pin.

Figure 3‑1       LCD to PIC interface

The 10KΩ resistor connected between VSS and VDD to ground is used to vary the contrast of the LCD brightness. An optimal value is achieved depending on one wish. It varies the voltage from VDD value ground. To achieve a visual sign when operating in the safe limits (0-100gms) a green LED was used. This was connected between VDD and RA5 (pin 3) through a urrent limiting resistor of 330 ohms whose justification is is given in equation 2.1 below.

To make sure the value of current sourced is far below the maximum allowed current (25 mA) a 330 ohms resistor was chosen.

3.2 Software design-

Software design was divided into the following divisions:

  1. ADC program.
  2. LCD program.
  3. LED subprogram.
  4. Main program to coordinate the others.

The initialization involved pin configuration. The ADC subprogram and LCD subprograms were also written in assembly code language in mplab.

  1. EXPERIMENTAL RESULTS AND ANALYSIS-

Table 4.1 below shows simulated results when the design was run on proteus. It shows the variation of the displayed value of the weight as the voltage is varied from 0 to 5 volts as well as the resistance drops consequently. The table also shows the status of the LED as the weight is varied.

Table 4.1‑ Table of simulated results.

VOLTAGE      %  RESISTANCE      KΩ   VOLTAGE         V DISPLAYEDVALUE  in  gm          LED      STATUS
       0         10        0         0.0         ON
       1         9.9        0.05         9.775         ON
       2         9.8        0.1         19.55         ON
       3         9.7        0.15         28.348         ON
       4         9.6        0.2         37.145         ON
       5         9.5        0.25         45.943         ON
       6         9.4        0.3         53.763         ON
       7         9.3        0.35         61.583         ON
       8         9.2        0.4         69.404         ON
       9         9.1        0.45         77.224         ON
       10         9.0        0.5         85.044         ON
       11         8.9        0.55         91.886         ON
       12         8.8        0.6         98.729         ON
       13         8.7        0.65         105.571         OFF
       14         8.6        0.7         112.414         OFF
       15         8.5        0.75         119.256         OFF

 

When the voltage to the microcontroller input was at zero, the displayed value was also at zero while the visual alarm was ON to show that the weight was within the specified limit. Behold 100 gm the visual alarm goes off indicating that the weight level is behold the specified minimum limit.

4.1 System Evaluation.

  • Number of main ICs. In terms of the number of components, the developed PIC16F690 Microcontroller Based Electronic Weighing Balance (MCBEWB) uses the least. The microcontroller chip has adequate in-built Flash Memory, EEPROM, RAM and I/O ports. Any microprocessor based electronic weighing balance would require an external RAM, an external EPROM and an I/O device among other support chips. This renders the latter extremely expensive.
  • From the portability perspective, the developed system has unlimited range as all that is needed is a single external power supply. It has been designed to make it as compact as possible. The Butchery Electronic Weighing Balance (BEWB) is bulky and therefore has limited portability.
  • In terms of space, the developed system required least space for both the digital circuitry and the analog circuitry. This is attributed to the fact that minimal number of chips was used and to crown it all, the system was implemented on PCB boards. Owing to the many external chips used, in BEWBs and SRLEWBs, a lot of space is required for circuit implementation.
  • The developed system is considered the most flexible, as in-system reprogramming is possible. This is courtesy of the built-in Serial Programmable Interface (SPI) of the PIC16F690 microcontroller. Program can be written or erased up to 1000 times. Some BEWBs and SRLEWBs use dedicated chips like those in DMMs. They only perform specific tasks and cannot be changed or modified to do otherwise. For those that are microprocessor based, in-system reprogramming is not possible. Microprocessor based related Control/Data Acquisition Applications use external EPROM for program storage. To change the program, it is erased by exposing it to UV, a tedious process indeed.
  • Range and Resolution. The developed electronic weighing balance has tried to address both resolution and range. It is the best in as far as striking a balance between range and resolution goes. This is a modest system with a reasonable range while at the same time being sensitive enough. This is quite rare in virtually all-electronic weighing systems.
  • Display Capability. In as far as display capability is concerned; the developed system enjoys the widest capability. Using the ASCII code, it can display all alphanumeric data/information. It can display special characters. BEWBs and SRLEWBs can only display numeric data/information. Information in letters or symbols is usually engraved alongside the LCD display.

Conclusion-The project design objectives of the weight monitoring system were successfully achieved. The system displaying unit LCD was able to monitor the variations in weight. This weigh scale is of great importance for the industries involved in weight taking and also in the retail market.

REFERENCES:

  1. PIC16F631/677/685/687/689/690 Data sheet 20-pin Flash-Based, 8-bit CMOS Microcontrollers with Nano Watt Technology.[Performance]. Microchip Technology Inc., 2006.
  2. S.a.M.p. Canton, Microcontroller Programming The Microchip PIC, Taylor & Francis Group, 2007.
  3. D. Green Embedded Systems Programming with the PIC16F690, Second Edition ed., 2008.
  4. Bates, Interfacing PIC Microcontrollers Embedded Design by Interactive Simulation, Martin Bates: Elsevier, 2006.
  5. Ibrahim, PIC BASIC Projects 30 Projects Using PIC BASIC and PIC BASIC PRO, Great Britain: MPG Books Ltd, 2006.

Chapter Two: Literature Review

2.0 INTRODUCTION:

This chapter provides the background and context of the research problems, reviews the existing literature on the Microcontroller Based Weighing Machine, and acknowledges the contributions of scholars who have previously conducted similar research [REV65855] …

Document Information

    • Format: DOC/PDF
    • Title: Microcontroller Based Weighing Machine:

YOU MAY LOVE THESE (Recommended)

  • To start a project on Spam Filtering Using Machine Learning Techniques Implemented With Design Tree Classifier, follow these guidelines: A spam filter is a program that is used to detect unsolicited and unwanted email and prevent those messages from getting to a user’s inbox. E-mail spam, known as unsolicited bulk Email (UBE), junk mail, or unsolicited commercial email (UCE), is the practice of sending unwanted e-mail messages, fr…

    39 Pages 1 - 5 Chapters 5,850 Words DOC/PDF Format Instant Download UPN66417

  • Techniques for writing the “Nylon Cutting And Sealing Machine” Project

    To develop a project on Nylon Cutting And Sealing Machine, follow these approaches: This Nylon sealing and cutting machine has an added advantage of making 800 sealed bags per hour. The constructional machines were sourced locally. The machine can cut and seal Nylon at a affordable cost. The constructional size of 31 cm x 7.5cm x 12.4 which comprises the following component. The…

    27 Pages 1 - 4 Chapters 3,037 Words DOC/PDF Format Instant Download UPN63407

  • Writing strategies for the “Modification Of An Existing Metal Sheet-Bending Machine” Project

    To undertake a project on Modification Of An Existing Metal Sheet-Bending Machine, follow these effective ways: The metal bending machine is designed to be manually operated. The bending machine with working capacity to complete a 900 fold of a full-length plate (8 ft = 2400mm) and up to 2.5mm thickness. The construction is based on initial machine design, materials. The machine can be used to perform any …

    34 Pages 1 - 5 Chapters 6,363 Words DOC/PDF Format Instant Download UPN64198

  • To write a project on Fabrication Of A Polythene Bag Sealing And Cutting Machine, follow these structure: This machine is meant for sealing and cutting of nylon bag of different sizes. This machine is operated with electrical system. This machine can cut and seal nylon of different sizes. It also comprises of materials as follows: Mechanical and Electrical section Mechanical section include the frame…

    37 Pages 1 - 6 Chapters 4,494 Words DOC/PDF Format Instant Download UPN63403

  • Guide for writing the “Electric Pop Corn Machine” Project

    To carry out a project on Electric Pop Corn Machine, follow these effective methods: An electric popcorn machine is machine that is used to popcorn for human consumption. It uses electricity as it sources of energy, transfer it energy, that is used to pop the Corn. Also it has a stirrer, which rotate due to the convection of electrical energy from the source to mechanical energy …

    31 Pages 1 - 4 Chapters 3,495 Words DOC/PDF Format Instant Download UPN63372

  • To start a project on Development And Performance Evaluation Of Rice Destoning Machine, follow these guidelines: A motorized rice de-stoning machine was designed, fabricated and evaluated for performance. The traditional method of rice de-stoning machine characterized with a lot of deficiency in terms local rice containing smaller stones during de-stoning operation. A lot of energy is expended in solving th…

    37 Pages 1 - 5 Chapters 7,234 Words DOC/PDF Format Instant Download UPN64111

  • To develop a project on Development And Performance Evaluation Of Durability Testing Machine, follow these approaches: Durability is used for quantifying the quality of briquette as the ratio of the unbroken weight to initial weight of briquette. This equally measure the durability of briquette under impact load during transportation and handling. A durability machine was developed and has dimension of 300mm×(25×…

    52 Pages 1 - 5 Chapters 7,108 Words DOC/PDF Format Instant Download UPN64109

  • Writing strategies for the “Detail Fabrication Of A Candle Molding Machine” Project

    To undertake a project on Detail Fabrication Of A Candle Molding Machine, follow these effective ways: The fabrication of this candle moulding machine was based on creative activity, which entailed integrated knowledge and application of material science, strength of material, property of material and elements of design. However, this project offered us the opportunity to use a great wealth of exp…

    33 Pages 1 - 7 Chapters 3,885 Words DOC/PDF Format Instant Download UPN63425

  • To write a project on Design And Implementation Of A Body Mass Index (BMI) Machine Using Load Cell And Ultrasonic Sensor, follow these structure: Here we propose an automated BMI calculator system that does not need the user to input anything. The user just needs to stand on a platform and the system displays BMI as well as body type of user. The system uses load cells for weight sensing along with an ultrasonic sensor for height measureme…

    96 Pages 1 - 5 Chapters 16,110 Words DOC/PDF Format Instant Download UPN64447

  • Guide for writing the “Design And Fabrication Of Wood Lathe Machine” Project

    To carry out a project on Design And Fabrication Of Wood Lathe Machine, follow these effective methods: This write up outlines the design and fabrication of wood lathe machine. This type of lathe is capable of creating different wood designs using the cheapest available material and method. To achieve functional and efficient wood lathe of this kind, we analyzed as well as synthesized the different…

    60 Pages 1 - 5 Chapters 4,771 Words DOC/PDF Format Instant Download UPN63400

Live Chat