• No results found

Design and Simulation of Electronic Balance Based on Single Chip Microcontroller

N/A
N/A
Protected

Academic year: 2020

Share "Design and Simulation of Electronic Balance Based on Single Chip Microcontroller"

Copied!
6
0
0

Loading.... (view fulltext now)

Full text

(1)

1 0

2 7 2ndInternaitona lConferenceonManufactuirngScienceandI nformaitonEngineeirng(ICMSIE2017) 8

7 9 : N B S

I -1-60595- 65 -2 1

a

l

u

m

i

S

d

n

a

n

g

is

e

D

it

o

n

o

f

E

l

e

c

t

r

o

n

i

c

B

a

l

a

n

c

e

B

a

s

e

d

o

n

S

i

n

g

l

e

C

h

i

p

M

i

c

r

o

c

o

n

t

r

o

ll

e

r

g

n

a

h

Z

a

i

x

n

u

J

d

n

a

u

o

h

Z

g

n

i

p

n

a

Y

T C A R T S B A

y l e d i w n e e b s a h h c i h w , t n e m e r u s a e m y ti l a u q r o f l o o t t n a t r o p m i n a s i e c n a l a B

e c n a l a b c i n o r t c e l e t n e m e l p m i o T . e f il y a d y r e v e d n a h c r a e s e r c i f it n e i c s n i d e s u

s e s u n g i s e d e h t , m e t s y s g n i h g i e

w many components ,including AT89C51 Single o

r c i M p i h

C -controller , Strain gauge load cell , Ampilfying elements , A / D .

c t e , s m r a l A d n a s r o ti n o m D C L , s r e t r e v n o

c The Prote lsoftware w as appiled to m

u m i n i m e h t n g i s e

d weighitng system circui t diagram of micro- oc ntroller , A

, m a r g a i d t i u c r i c n o it a c i f il p m

a /D converter circui tdiagrams ,etc .The Clanguage s

a

w usedt ocompliethemainprogramsandsub-programs ,andt hent heseprograms s tl u s e r e h T . m e t s y s e c n a l a b c i n o r t c e l e e t a l u m i s o t e r a w t f o s s u e t o r P o t t r o p m i l li w

. n o it c n u f e r a t d n a e c i r p t i n u f o t n e m t s u j d a , d l o h s e r h t f o m r a l a e h t s w o h

s 1

S D R O W Y E K

o r c i M p i h C e l g n i S , n o it a l u m i S l a c i r e m u

N -computer ,ElectronicBalance

N O I T C U D O R T N

I

e g n a r e d i w a s a h h c i h w , y ti l a u q e h t g n i r u s a e m r o f l o o t t n a t r o p m i n a s i e c n a l a B

y ll a u d a r g e l p o e p h ti w . h c r a e s e r c i f it n e i c s d n a e f il y a d y r e v e n i s n o it a c il p p a f o

l a c i n a h c e m l a n o it i d a r t e h t , y c a r u c c a t n e m e r u s a e m e h t n o s t n e m e r i u q e r d e v o r p m i

u n e e b e v a h s e l a c

s nable to mee tthe demand for measuremen taccuracy .In fact , o

r c i M p i h C e l g n i S n o d e s a b s e c n a l a b c i n o r t c e l

e -computer has many advantages , , n o i s i c e r p h g i h , t h g i e w t h g il , g n i h g i e w t s a f , g n i d a e r t c e r i d , y a l p s i d l a ti g i d s a h c u s

(2)

e w o H . n o o s d n a e c n e g il l e t n i e r o

m ver ,tradiitona lmechanica lbalance [1] can' thas e r o m e m o c e b s a h e c n a l a b c i n o r t c e l e e h t f o n o it a c il p p a e h t o S . s e g a t n a v d a e v o b a e h t . e v i s n e t x e e r o m d n a r o s n e s g n i h g i e w n r e d o M . r o s n e s g n i h g i e w e h t s i e c n a l a b c i n o r t c e l e f o e r o c e h T o t d e p o l e v e d y ll a u d a r g s

i ward the miniaturized ,integrated ,mufit-funcitona land o w t o t n i d e d i v i d y l n i a m s i e c n a l a b c i n o r t c e l e y b d e s u r o s n e S . s n o it c e r i d t n e g il l e t n i . ] 2 [ r o s n e s e c n a l a b e c r o f c it e n g a m o r t c e l e e h t d n a r o s n e s e g u a g n i a r t s e v it s i s e r : s d n i k a h c l a i r e t a m l a t e m a n o d e s a

B nge in resistance value under the aciton of pressure n o n d e r u s a e m e h t s t r e v n o c r o s n e s e g u a g n i a r t s e c n a t s i s e r , n o i s n e t d n

a -electrictiy

c i n o r t c e l e e h t r o F . y ti c i r t c e l e f o t u p t u o e h t s e m o c e b n e h t d n a , e c n a t s i s e r o t n i d a o l c i n o r t c e l e , y r t s u d n i e h t n i e c n a l a

b balancesisgenerated byusingtheresisitvestrain .t e k r a m e h t f o d n e w o l e h t t a d e t e g r a t y l n i a m d n a , r o s n e s d e t c u r t s n o c s i e c r o f c it e n g a m o r t c e l e d e c n a l a b e h t n o d e s a b e c n a l a b c i n o r t c e l E e h t n i d e c a l p s i h c i h w , li o c e h t o t d e t c e n n o c d o r g n it r o p p u s a h ti

w fixedpermanen t

t e n g a

m -iron and magnet-steel .When the coi lis electrified ,electromagneitc force t e n g a m e h t h ti w s t c a n w o s ti y b d e t a r e n e

g -stee lforce ,occurring an upward force . h t n i t c e j b o d e h g i e w e h t f o y ti v a r g s d r a w n w o d e h t h ti w d e c n a l a b s i e c r o f e h

T epan .

h g u o r h t d e s s a p t n e r r u c l i o c e h t o t l a n o it r o p o r p s i t c e j b o e h t f o y ti v a r g e h t e s u a c e B d n a l o r t n o c c it a m o t u A . t c e j b o e h t h g i e w o t d e s u e b n a c t n e r r u c e h t , li o c e h t f o s r o s n e s t n e m e c a l p s i d h ti w d e v e i h c a s i li o c e h t n i e z i s t n e r r u c e h t f o t n e m e r u s a e m

balance ,actuators and ampilfiers .When the weigh tof the objects in the disc y l s u o n o r h c n y s s e v o m o t li o c e h t s e v i r d c s i d e h t o t d e t c e n n o c d o r r e d l o h e h t , s e g n a h c d n a r o t a l u g e r e h t h g u o r h t s e s s a p d n a l a n g i s s i h t s t c e t e d r o s n e s t n e m e c a l p s i d , n w o d t n e r r u c e h

t ampilfiersoast oadjustt hesizeoft hecoi lcurrent ,whichcanproducea e h t f o n o it i s o p l a n i g i r o e h t e r o t s e r o t n a p g n i h g i e w e h t o t e c r o f g n i h s u p s d r a w p u d n a y ti v a r g f o e c n a l a b a s e v e i h c a e c r o f c it e n g a m o r t c e l e l i o c e h t d n a , t c e j b o d e h g i e w e n g a m o r t c e l

e itc force again ,and then the curren tcan measure the matter weight . s d e e n r o s n e s , y g o l o n h c e t e r u t a m y l e v it a l e r a s i r o s n e s e c n a l a b e c r o f c it e n g a m o r t c e l E s i h t r e t s a m s r e r u t c a f u n a m w e f y l n o , t n e s e r p t a , s n o it i d n o c n o it c u d o r p r e h g i h . y g o l o n h c e t o r t c e l e e c n i

S nicbalancebasedonSingleChipMicro-computerhasadvantageof p i h C e l g n i S a s e s u n g i s e d e h t , k r o w t n e s e r p e h t t a , e c n e g il l e t n i d n a n o i s i c e r p r e h g i h o r c i

M -computer to achieve the qualtiy measuremen tof electronic balance .The y n a m s t p o d a m e t s y s g n i r u s a e

m componentst oconstructt heelectricbalancesystem , o r c i M p i h C e l g n i S g n i d u l c n

i -computer ,strainsensorcombinedwtihresistance ,A/D s e s u n g i s e d e h T . ti u c r i c y a l p s i d d n a t i u c r i c g n i h g i e w , s ti n u y a l p s i d , s r e t r e v n o c o r c i M p i h C e l g n i S e l b a n o s a e

r -controllerasthemaincontro lchipandtheresistance e h t n o d e s a b . s e r u d e c o r p l o r t n o c e ti r w d n a , t n e m e l e l e e f s a d e s u r o s n e s n i a r t s o t d e il p p a s a w e r a w t f o s e h t n o d e s a b n o it a l u m i s e h t , e c n a l a b c i r t c e l e e h t f o e r u t c u r t s r t c e l e e h t f o s e r u t a e f g n it a r e p o e h t e z y l a n

(3)

A W D R A H E H T F O N G I S E

D RECIRCUITS

o r c i M p i h C e l g n i S f o m e t s y S m u m i n i M e h

T -computer

o r c i M p i h C e l g n i S f o m e t s y s t s e ll a m s e h

T -computer system refers to the k c o l c e h t o t n i d e d i v i d e b y l n i a m n a c h c i h w , y l r e p o r p k r o w o t s t n e n o p m o c l a n r e t x e

d n a t i u c r i

c rese tcircuti .When the SingleChip Micro-computer works , inorder to n o it c n u f l a n r e t n i s u o i r a v e h t f o n o it a t u p m o c d n a r e f s n a r t a t a d e t a n i d r o o c

o r c i M p i h C e l g n i S f o s t n e n o p m o

c -computer ,i tfirsltyemtisCPU itming sequences i

c s o n i a m e h t o t e c n e r e f e r a s

a llaitonfrequency ,decodingi nstruciton ,andt heni ssue .

s n o it a r e p o f o s e i r e s a h s i n i f o t s l a n g i s l o r t n o c s u o i r a v

p i h C e l g n i S n o m e t s y s m u m i n i m e h t f o m a r g a i d t i u c r i c e h t s w o h s 1 e r u g i F

o r c i

M -computerAT89C51.

 

1 e r u g i

F . Circui tdiagramoft heminimumsystemonSCMAT89C51.

ti u c r i C r e if il p m A f o n g is e D

, y c n e u q e r f s e s i r p m o c d n a k a e w s i r o s n e s e r u s s e r p e h t f o l a n g i s t u p t u o e h t e c n i S

n o m m o c e h t d n a g n il p u o c c it e n g a m o r t c e l e d n a c it a t s o r t c e l

e -mode interference ,i t y

b t i u c r i c l a n g i s a h c u s y f il p m a o t s d e e

n meansoftheampilfiercircuti .Ampilfying t i u c r i c r e i f il p m a e h t d n a o it a r n o it c e j e r e d o m n o m m o c h g i h e h t d e e n s l a n g i s s i h t

h g i h e h t h ti

w -gain ,low noise and high inpu timpedance .Figure 2 shows the o

s n e s e r a s t r o p 3 d n a 1 h t o b , c it a m e h c s t i u c r i c r e i f il p m

a r port ,INT0 is the INT0 .

(4)

2 e r u g i

F . Theampilfiercircui tdiagram.

t u p t u o e h t f o e g a tl o v e h t , 2 U d n a 1 U s i s t r o p 3 d n a 1 h t o b f o e g a tl o v e h t n e v i G

s ti u c r i c r e i f il p m a e h t f o s e m it n o it a c i f i n g a m , 0 U s i s t r o

p AV i s

V

A = 0

2 1

U U U − =

0 1

8 R

R (1+

7 6

5 R R

R

+

) 1 ( 0 1 0 1 = )

N O I T A L U M I S L A C I R E M U

N BASEDONSINGLECHIPMICRO

-C I R T C E L E F O R E T U P M O

C BALANCE

s u e t o r P s e s u n g i s e d s i h

T software developed by the Briitsh Labcenter , r e k n il , r e l b m e s s a o r c a m , r e li p m o c C , r e p a p s i h t n I . e t a l u m i s o t y n a p m o c s c i n o r t c e l e

, s e n it u o r b u s r e h t o d n a n i a m e li p m o c o t d e s u e r a li e K e h t s t h g il n i a m e h t f o n a i r a r b il

it h g i e w s e v e i h c a n a c e c n a l a b c i n o r t c e l

e ng and calculate the tota lprice .Its main d n a n o it c n u f n o it a l u g e r t i m il t n e m e r u s a e m , n o it c n u f t n e m t s u j d a e c i r p e r a s e r u t a e f

. n o it c n u f e r a t

e l g g o t ( n o tt u b e l g g o t n w o d s s e r p y lt s r i f : n o it a r e p o n o it c n u f t n e m t s u j d a e c i r P

t n w o h s s a m o tt o b o t p o t m o r f s i s y e

k heabovediagram ,plusonekeyandminusone n

e h w ) y e k



� �

� displaysafterthe"P" on the LCDscreen ,presstheplusonekey .t

i x e o t y e k g n i h c ti w s s s e r p d n a , e c i r p e h t t s u j d a o t y e k e n o s u n i m e h t d n a

p u t n e m e r u s a e

M -ilmi tadjustmen tfunciton Operaiton :firstly press swtich key "

n e h w , e c i w t



�" is displayed on the LCD screen .Up-ilmi tis adjustedin the plus .t

i x e o t n o tt u b h c ti w s s s e r p n e h t d n a , s y e k e n o s u n i m d n a

e u l a v " M " e h t l it n u s e m it e e r h t n o tt u b h c ti w s e h t s s e r p : n o it a r e p o n o it c n u f e r a T

n o d e y a l p s i d s

i thescreenas"0g",t henpresst het ogglebuttont odisplayt heweigh t .

d e l e e p e u l a v

e h t s r a e l c m e t s y s e h t s w o h s 3 e r u g i F . s tl u s e r n o it a l u m i s e h t f o e m o s e r a e r e H

o r c i

(5)

i s l a c i r e m u

n mulaiton resutls a tP = 1 when press the button S0 onceand press S1 .

e c i r p e l g n i s e h t o t e n o s u l p , n i a g a n o tt u b



P: Singleprice, M: priceoft heweighedobject, $: tota lprice, m : pax u -ilmi tvalue 3

e r u g i

F . Simulaitondiagrama tpressing Figure4. Simulaitononsingle

downt herese tbutton. priceplusone.

. e n o s u l p e u l a v d l o h s e r h t r e p p u e h t f o m a r g a i d n o it a l u m i s e h t s w o h s 5 e r u g i F

, e c i w t n o tt u b 0 S s s e r p n e h

w andt henpressS1buttononce .Theupper ilmi tvaluei s o t m a r g a i d n o it a l u m i s e h t s w o h s 6 e r u g i F . 1 : x a m s e t a c i d n i h c i h w , e n o d e s u l p

, 2 S d n a 1 S , 0 S s y e k e e r h t e h t g n i h c ti w s n o d e s a B . y ti l a u q d n a e c i r p e l g n i s e n i m r e t e d

p e l g n i s d n a s d l o h s e r h t r e p p u e h t h t o

b rice were adjusted. The tota lprice for 20g .

6 e r u g i F s a n w o h s s i t c e j b o d e h g i e w

 

5 e r u g i

F . Simulaitondiagramoft heup-ilmti Figure6. simulaitonondetermining

Valueplusone. singlepriceandqualtiy.

o

T changesingleprice andtheobjects ,simulaiton diagram ofcircutisis shown .

7 e r u g i F n i

(6)



s t c e j b o d n a e c i r p e l g n i s g n i g n a h c f o m a r g a i d n o it a l u m i S 7 e r u g i

F .

N O I S U L C N O

C S

a g n i d u l c n i , e c n a l a b c i r t c e l e e h t n g i s e d o t s t n e n o p m o c y n a m s e s u n g i s e d e h T

o r c i M p i h C e l g n i

S -computerAT89C51 ,A/D converterADC0809 ,resistance strain B

/ K A L r o s n e

s ,etc .Inordert oachievet hepriceadjustmen tfunciton ,measuremen t o

t d e s u s i e r a w t f o s l e t o r P e h t , n o it c n u f e r a t d n a n o it a l u g e r t i m

il comply the

m e t s y s m u m i n i

m circui toft heSingleChipMicro-computer ,ampilfiercircuti ,A /D .t

i u c r i c y a l p s i d D C L d n a t i u c r i c r e t r e v n o c

S E C N E R E F E R

.

1 LuoQ.H. ,LuoY .2003 ,BalanceDevelopment .[ J] ChinaMetrology, :9 73 - .4 0 .

2 ZhangP. .Y 2008, ResearchandRealizationfort hecommunicationMethodBetweenPLCand e

c n a l a B c i n o r t c e l

References

Related documents