You are on page 1of 33

Digital Weighing Machine Weighing machine is very useful product.

It helps us in checking our weight aswell as other products weight. Moreover, Weighing machine are used in manyindustrial and commercial applications. Without a weight machine it is not possibleto know the exact mass of anything. There are two types of weighing measuringsystem called analog weighing machine and digital weighing machine. The analogweighing system is very erroneous. In digital weighing machine, we dont have toface any problem. Only viewing the display we come to know the exact weight of the product.In digital weighing machine, we interface with the digital world. In our project, wecome to know the basic principle of digital weighing machine and know how tomake a digital weight machine easily and cheaply. This project basically helps usto compete with Manufacturer Company of digital weighing machine in future

Load Cell Stand of iron to set up Load Cell Microcontroller( PIC16F877A) Op-Amp (AD620 & LM358) Bread Board, Printed circuit Board(PCB) 7-segment display Three power supply Concomitant: Resistors, Capacitors, Connecting Wires.

MPLAB software to do the code Brief descriptions of important usable components Load cell : Load cell is used as force measuring component.We collected a load cell of 3KG.As a result in our project weonly could measure till 3 KG. There are four or two straingauges in load cell depending on the capacity of load cell. It works like a Wheatstone bridge. Fig: Block diagram of load cell When we dont give any load to it, it remains balanced; there is no flowing of current as well as corresponding voltage.

Whenever we hang on a load on to it, imbalance situation is occurred. Stress isc a u s e d b y e x t e r n a l f o r c e . S t r a i n g a u g e c o n v e r t s t h e d e f o r ma t i o n t o e l e c t r i c a l signals. The electrical signal output is typically in the order of a few mill volts.

Op-amp AD620 &LM358 : It is an instrumentation amplifier which is atype of differential amplifier . They are mainly used to amplify very smalldifferential signals from strain gauges. It has got very lowDCoffset, lowdrift, l o w noise, very high gain. We made our gain 100 using AD620. We also used op-amp LM358 to amplify our AD620 output further more. Bread board : breadboard i s a c o n s t r u c t i o n b a s e f o r a o n e - o f - a - k i n d electronic circuit. I t s t h e s o l d e r l e s s b r e a d b o a r d wh i c h d o e s n o t r e q u i r e soldering. Moreover is reusable. Fig: breadboard


Microcontroller (PIC16F877A ) : P I C 1 6 F 8 7 7 A i s a s m a l l p i e c e o f s e mi c o n d u c t o r i n t e g r a t e d c i r c u i t s . Th e p a c k a g e t yp e o f t h e s e i n t e g r a t e d c i r c u i t s is DIP package. We could use another microcontroller.

ButPIC16F877A has some advantages. . This package is v e r y e a s y t o b e soldered onto the strip board. PIC16F877A is very cheap. Moreover, it isa l s o v e r y e a s y t o b e a s s e m b l e d . S o w e u s e t h i s c h i p . T h i s I C c a n b e reprogrammed and erased up to 10,000 times .Therefore it is very good for new product development phase. Printed circuit board : A printed circuit board or PCB is used t o mechanically support and electrically connectelectronic componentsusingconductivep a t h wa ys , t r a c k s o r s i g n a l t r a c e s etchedf r o m c o p p e r s h e e t s laminatedonto a non-conductive substrate. We set up our microcontroller inthe PCB .

Fig: Printed circuit board


Components that we need to make our IC (PIC16F877A) work are just a 5V p o w e r s u p p l y a d a p t e r , a 2 0 M H z c r y s t a l o s c i l l a t o r a n d 2 u n i t s o f 2 2 p f capacitors. So we set up the components in PCB board. We also set up someLEDs for the 7 segment in the PCB.

7 segment display : A seven-segment display, or seven-segment indicator, isa f o r m o f e l e c t r o n i c display devicefor displayingdecimal numerals. A 7 segment display consists of 7 individual LEDs with one end of each LEDc o n n e c t e d t o g e t h e r . W e u s e d c o m m o n c a t h o d e m e a n s t h e m i n u s e s a r e connected together

Project description

Hardware Description
Hardware part is done in a breadboard. We constructed our circuit

diagram on bread board. Isolate four wires are coming out of the load cell. Two wires are

usedas input in our amplifier and other two are used as and Ground. We connectedit with the AD620;

supplied (+ve) 7.5 volt and ( ve) 7.5 volt separately using two power supply in the AD620 op amp.

We measured the change in voltage as theweight flexes via the green and white wires. We measured

across a resistor of 1

k.ohm and connected a capacitor parallel to resistor, so that we can avoid the noise.For one KG it was giving us only 1.8 volts whereas we supposed to get 5 volt for one KG. So to amplify our voltage we passed the output voltage () t o o p - a m p LM358.Using a variable resistor of 17.2k.ohm we amplify our previous voltage 18times using following formula: = ( 1 + ) Fig: circuit diagram for hardware part After that, we got the 5volt for one 1KG and 3 volt for 1/2 KG. Software description Whenever we got the analog input from the hardware part, we need to pass itthrough the microcontroller to the 7-segment display.

Software part is mainly the coding or programming. We did o u r c o d e u s i n g MPLAB software. As our input was analog and we wanted to show it on a digitalform. The analog to digital conversion was completely done in our code. This partwas little bit difficult to as we had to check the code many times. Port A is used asout input of the analog input. We used port B of microcontroller for the 7-segmentdisplay and used port D for the data selector. We converted the input from binaryto 10-bit BCD which displayed in 7-segment in a corresponding decimal value. Aswe use 10 bit, we could show from 0-1023.We burn the code into microcontroller using a burner and then set up the chip in aPrinted circuit board. Fig: Digital weighing machine

A fter that we connected the PCB board with the 7-segment display. When we dintgive any load, the display was showing an offset value. For 1/2 kg it was showingus decimal 588 and for one kg it was 1023. Problem faced during doing our project Mainly we faced problem in hardware part. By checking the load cell wires again and again we had to find out which of the two are inputs.

Making of stand of iron was also very difficult part. When we use LM358, the output was highest fixed on 3.87 volt. It was little bit difficult to find out the reason behind it. After some analysis we foundout that because of the less power supply of 5 volt we were n ot getting theexact amplified voltage. When we increase the voltage, we got our outputfrom the LM358. Moreover we could not make sub tractor circuit for avoiding the leakagevoltage only because of time shortness. We a l s o b u r n e d o n e o f o u r mi c r o c o n t r o l l e r s b e c a u se o f e x c e s s i v e p o w e r supply. As because PIC16F877A is very sensitive we have to very careful of Further Improvements can be done in following ways Our weight machine was giving us a huge offset value w h i c h i s r e a l l y undesirable. So to avoid that offset value we could make a sub tractor circuitwhich would peter out the offset almost. If we want than we can develop this weighing machine by many ways suchas we can use keypad like if we keep any product on the machine than it willshow the cost, weight and total cost of that product on the display. For doingthis we also have to develop the code.We i g h i n g ma c h i n e i s v e r y u s e f u l f o r u s . Wi t h o u t w e i g h i ng ma c h i n e i t i s n o t possible to know exact mass of anything. It becomes a part of our daily life. Theo r i g i n a l c o s t o f a weighing machine is very high but our invented w e i g h i n g machine is very low cost. We spend almost 1500 taka for this weighing machine but the original price of weighing machine is approximately 4000-5000 taka.D o i n g t h i s p r o j e c t w a s v e r y i n t e r e s t i n g . From this project acquire lots of

You might also like