I n te r n ati o n al   Jo u r n al   o I n fo r m ati c s   an d   C o mmu n i c ati o n   Te c h n o l o gy  (I J - I C T)   V o l .   6,   N o .   2 ,   A ugus t   201 7,   pp .   9 5~ 10 4   IS S N :   2252 - 87 76 ,   D O I :   10. 1 1591 / i j i c t . v 6i 2 . pp9 5 - 104             95       Jou r n al   h o m e pa ge ht t p: / / i ae s j o ur nal . c om / on l i n e / i nde x . php/ IJ ICT   D e si g n   a n d   S i m u l a t i o n   o f   A u t o m a t i c   T e m p e r a t u r e   C o n t r o l   a n d   A l e r t   S y st e m   B a s e d   PIC 1 6 F8 8 7       Jab b ar   S h aat i   Jah l o o l   C o m put e r   T e c hn i que s   E ng i ne e r i ng   D e p a r t m e n t ,   D i j l a h   U n i v e r s i t y   C o l l e g e ,   B a g hda d , I r a q       A r ti c l e   I n fo     A B S TR A C T   Ar t i c l e   h i s t or y :   R e c e i v e F e b   12,   2 017   R e v i s e J un   27 ,   2017   A c c e pt e J ul   1 8,   2017       I t hi s   r e s e a r c h,   t he   de s i g a nd  s i m u l a t i o o f   a a u t o m a t i c   s y s t e m   f o r   t e m pe r a t u r e   c o nt r o l   u s i ng   e m be d de d   s y s t e m   i n   o r de r   t o   a ut o m a t i c a l l y   c o nt r o l   o f   m ul t i   a p pl i a nc e s   d e pe nd  o n   t h e   t e m p e r a t u r e   v a l u e .   T h e   a pp l i a nc e s   w i l l   be   c o nt r o l l e a r e   v e nt i l a t i o n,   c o o l i ng ,   he a t i ng   a nd  a l e r t .   t h i s   i s   a n   o r de r   t o   a v o i o r   r e d uc e   t o   hum a n   i nt e r v e n t i o a nd   i nc r e a s e   s y s t e m   r e l i a bi l i t y .   A i m po r t a n f e a t u r e   o f   t hi s   a ut o m a t i o p r o c e s s   i s   t o   r e d uc e   o r   e l i m i na t e   t h e   po s s i b i l i t y   of   r e l y i ng   o t h e   hum a n   f a c t o r   o pe r a t o r   f o r   i n dus t r i e s ,   w a r e ho us e s   a nd   l a bo r a t o r i e s ,   a nd   t o   i m pr o v e   w o r k i ng   a n p e r f o r m a nc e   e nv i r o nm e nt s .   T h e   s y s t e m   i n   t h i s   p a pe r   u s e d   t he   m i c r o c o nt r o l l e r   P I C 16F 887  a s   t he   c e n t r a l   c o nt r o l   un i t ,   L M 35   t e m p e r a t u r e   s e n s o r   a s   a   t e m p e r a t u r e   s o ur c e , 1 6x2   l i qu i d   c r y s t a l   d i s p l a y   ( L C D )   a s   i nd i c a t o r   t o   d i s pl a y   t he   d i f f e r e n t   s y s t e m   w o r ki ng   s t a t u s   a a dd i t i o t o   s o m e   o f   dr i v e r s ,   r e l a y   a nd  l i g ht   e m i t t i ng   di o de s   ( L E D )   a s   i n di c a t o r s   t o   di s pl a y   t he   c o r r e s po ndi ng   w o r k i ng   a pp l i a nc e   dr i v e r .   T he   i m pl e m e n t a t i o a n s i m u l a t i o o f   t he   s y s t e m   w o r ha s   be e a c hi e v e by   us i ng   p r o t e u s   pr o f e s s i o na l   s o f t w a r e   v 8. 0   a nd   m i kr o c   pr o   f o r   pi c   v   . 6. 6 . 1   s o f t w a r e   t o   w r i t e   t h e   e qu i v a l e n t   p r o g r a m   a nd  g e n e r a t e   . he f i l e   f o r   s y s t e m   w o r ki ng .   T he   r e s ul t   s ho w s   i n   f i g ur e s   5,   6,   7 ,   a nd   t h a t   e x pl a i n   t he   s y s t e m   w o r ki ng   c a s e s   Ke y w or d s :   A T C   L M 35   M IK R O C   P IC16F 887   P R O T E U S   C opy r i gh t   ©   201 7   I n s t i t ut e   o f   A dv anc e E ng i ne e r i ng   and   S c i e nc e   A l l   r i gh t s   r e s e r v e d .   Cor r e s pon di n g   Au t h or :   J a b b a r   S h a a t i   J a h l o o l   Co m put e T e c hn i q ue s   E n g i n e e ri n g   D e pa r t m e nt ,   D i j l a h   U n i v e r s i t y   Co l l e ge ,   B a g h da d/ I ra q .   E m a i l :   j a b b a r . s h a t t i @ duc . e du. i q       1.   I N TR O D U C TI O N     N ow a da y s   r e l y   o n   a ut o m a t e s y s t e m s   b e c a m e   c o m m o n l y   us e t h i n gs   i l i f e   a nd,   o f   c o ur s e ,   o n e   o t h e s e   s y s t e m s   h a s   a ut o m a t i c   t e m pe ra t u r e   c o n t r o l .   T h e   us e   o a ut o m a t i c   t e m p e ra t u r e   c o n t r o l   s y s t e m s   b e c o m e   n o w   c o m m o n l y   us e i n   a   w i de   f i e l l i ke   i n dus t ri a l   p l a nt s ,   l a bo r a t o r i e s ,   m e di c a l   a nd  f o o s t o r e s ,   w a r e h o us e s   a n o t h e r .   M o de rn   a ppl i c a t i o n s   us i n t e m pe r a t u r e   c o n t r o l   s y s t e m s   b a s e o n   m i c r o c o n t r o l l e r s   (M CU t c o n t r o l   t h e   v e n t i l a t i o n,   h e a t ,   c o l a nd  a l a rm   de v i c e s   fo r   t h e   o n e   of   a bo ve   f i e l ds .   T h e   us e   o f   m i c r o - c o n t r o l l e r s   a c hi e v e s   gr e a t   r e l i a b i l i t y   a s   w e l l   a s   hi g h   e f f i c i e n c y   [1 ].   D e pe n d i n g   o f   us i n g   o f   M C U   i e m b e dde de s i gn  ha s   n o t   o n l y   be e n   i n c r e a s e b ut   i t   a c h i e v e a   r e v o l ut i o n a r y   c ha n ge .   A i m po rt a nt   e l e m e n t   f o r   a c h i e v i n c o m pe t i t i v e n e s s   i m a nuf a c t ur e r s   i s   t o   p r o v i de   di f f e r e n t i a t i o w h i l e   m a i n t a i ni n g   o r e duc i ng   c o s t   a n d   t o   e xpa n t h e i r   p r o duc t   f un c t i o na l i t y   [2].   S a v e   pow e r   a n r e duc e   t h e   c o s t s   fo r   o pt i m i z a t i o o f   s m a rt   h o m e   s y s t e m   t hi s   i s   s t udy   a b o ut   i nt e rna l   t e m pe ra t u r e   c o n t r o l l i ng  s y s t e m   b a s e o n   m i c r o c o n t r o l l e [3] .   A u t o m a t i c   s m a r t   ki t c h e n   s y s t e m   i s   us e t o   di s c h a rge   h e a t   a n s m o ke   i t h e   ki t c h e n   b y   us i n P W M   (P ul s e   W i dt M o dul a t i o n w a v e s   ge n e r a t e by   a   P IC16F 87 7A   M CU   b a s e o n   t e m pe r a t u r e   s e n s o t o   c o n t r o l l i n t h e   s pe e of   ki t c h e n   a i b l ow e r   [4].   U s i n t e m pe r a t u r e   c o n t r o l   a n pe ri ph e r a l   i n t e r f a c e   c o n t r o l l e r   (P I C)  16F 8 76A   b ut   i t   fo c us   o n   t h e   us e   o f   e xt e rna l   s i g n a l   c o n di t i o ni n g   c i r c ui t   f o r   p ro pe r   p r o c e s s i n g   o f   t h e   s i g na l   b e fo r e   i t   w a s   gi v e t o   M CU ,   b ut   t h i s   m e t h o i n c r e a s e   t h e   s y s t e m   h a r dw a r e   c o m po n e n t s   t h e c o n s e que n t l y   l e a t o   i n c r e a s e   t h e   c os t   a n d   p r o b a b i l i t y   of   f a ul t   by   a ddi ng  o t h e r s   ha r dw a r e   c om po n e n t s ,   w hi l e   t h e   i nt e rn a l   A D C   ( a n a l o gue   t o   di gi t a l   c o n v e r t e r )   c i r c ui t   i n s i de   t h e   M CU s   t a ke   s i g na l   c o n d i t i o n i n o f   a l l   t y pe s   of   i n put s   a n a l o gue   s i gna l s   Evaluation Warning : The document was created with Spire.PDF for Python.
                                IS S N :   2252 - 8776   IJ - ICT    V o l .   6 ,   N o .   2,     A u gus t   2017 :     95     104   96   r e t u rn e d   f r o m   di f f e r e n t   t y pe s   of   s e n s o r   i o t h e r   c o n s i de ra t i o t h e r e f o r e   t h i s   a d di t i o na l   e xt e rn a l   c i r c u i t   h a s   n o t   n e e de [5] .   T e m pe r a t u r e   c o n t r o l   i n   a   v e nt i l a t i o s y s t e m   us i n g   P IC18F 4 620  w a s   de s i g n e d   a n d   de v e l o pe b y   us i n h e a t   r e s i s t o r   a s   t h e   h e a t i n s o ur c e   t o   e m i t s   a   h e a t   qua nt i t y   i n   t h e   e n v i r o nm e n t   a n d i r e c t   c urr e nt   (D C)   m o t o r   a s   t h e   c oo l i n g   s o ur c e   a nd   t h e ge n e ra t e   pul s e   w i dt m o dul a t i o ( P W M )   s i g na l   a s   a   c o n t r o l   s pe e de pe n de nt   s i g n a l   t o   c o n t r o l   o f   t h e   c o o l i n g   de pe n d   o t h e   h e a t i n d i f f e r e n c e   [6].   A a ut o m a t i c   c o nt r o l   s o l ut i o i s   s ugge s t e t o   c o n t r o l   t h e   f a s pe e by   us i ng  t h e   P IC   1 6F 877A   a n d   L M 35D Z   t e m pe ra t u r e   s e n s o t h e   a ut o m a t i c   de s i g c i r c ui t   c o n t r o l   o f   f a s pe e de pe n d   o t h e   c h a nge   o f   t e m pe ra t u r e   i . e .   w h e n   t h e   t e m pe r a t u r e   i s   h i g h,   t h e   f a n   o pe ra t e s   a t   hi g s pe e a n v i c e   v e r s a .   T hi s   p r o c e s s   oc c ur s   a ut o m a t i c a l l y   [7].   M o n i t o r i ng  s e r v e r   r o o m   t e m pe ra t u r e   h a s   b e e n   i m p l e m e n t a t i o o f   a   m i c r o c o n t r o l l e b a s e s y s t e m   by   us i ng  ki n d   o m i c r o c o n t r o l l e r   (A t m e l   A V R   A T m e ga 8535  m i c r o c o n t r o l l e a n L M 35  t e m pe ra t u r e   s e n s o r ),   o t h e r   a t t a c h e de v i c e s   a r e   us e t o   di s pl a y   t h e   r o o m   t e m pe r a t u r e   a s   w e l l   a s   a a l a rm   de v i c e   i s   a l s o   us e d.   T h e   s y s t e m   i s   e qui ppe w i t h   a   G S M   m o de m   t o   s e n d   a   t e xt   m e s s a ge   w h e t h e   r o o m   t e m pe r a t u r e   r i s e s   t o   a   c e rt a i e xt e nt   t e n t e r   t h e   d a n ge r   z o n e   t o   a l e r t   t h e   r o o m   s e r v e r   s upe r v i s o fo r   t h e   pu rpo s e   of   c o n t r o l l i n o t h e r   e l e c t r o n i c   de v i c e s   w i t hi n   t h e   s e r v e r   r o o m   [8].   D e s i g ni n a n i m p l e m e nt i n a   m o de rn   f a n   s pe e c o n t r o l   s y s t e m   b a s e o n   t h e   c ha n ge s   t ha t   o c c ur   i t h e   r o o m   t e m pe r a t u r e .   T hi s   de s i g i s   b a s e o t h e   us e   o f   P W M   t e c hn o l o g y   s o   t ha t   c h a ngi n g   t h e   du t y   c y c l e   de pe n ds   o n   t h e   r o o m   t e m pe r a t u r e   a nd  a s   a   r e s ul t   l e a ds   t o   t h e   c o n t r o l   o f   t h e   f a s pe e m o ve m e n t   a u t o m a t i c a l l y   [9].   I n   t h i s   w o r k,   t h e   de s i g n s   of   A T s y s t e m   b a s e a   P IC  m i c r o c o n t r o l l e (P IC16F 887)  a n t e m pe r a t u r e   s e n s o r   (L M 35)  f o r   a u t o m a t i c a l l y   c o n t r o l   o f   m ul t i   a p pl i a n c e   de pe n o s e l e c t e d   t e m pe ra t u r e   v a l ue s   t h e s e   w i l l   b e   l e a d   t o   a ut o m a t i c a l l y   c h a nge   t o   a pp r o p r i a t e   a pp l i a n c e   (v e n t i l a t i o n ,   c o o l i n g h e a t i n g   a n d   a l e r t ) .   T h e   p r o po s e s y s t e m   i m pl e m e n t e d   a n d   s i m ul a t e d   by   us i n g   p r o t e us   p r o f e s s i o n a l   s o f t w a r e   8. a n m i k r o c   P R O   F O R   P IC  v . 6. 6. 1 .   T h e   o b j e c t   of   t h i s   s y s t e m   t o   a vo i di n g   h um a n   i n t e r v e n t i o n   i n   s uc a ppl i c a t i o n s   w h i c t h e n   l e a ds   t o   e l i m i n a t e   o r e duc e   d e pe n de n c y   o n   hum a n s   w o r ke r s   f o r   i ndus t ri e s ,   w a r e h o us e ,   l a b o r a t o r i e s   a nd  a s   a   r e s ul t   l e a ds   t o   i m p r o v e m e n t   t h e   w o r ki n g   e n v i r o n m e n t s   a nd  pe r f o r m a n c e .       2.   D ES C R I P TI O N   S TR A TEG Y   O F   TH E   P R O P O S ED   S Y S TEM   T h e   p r o po s e de s i gn   s y s t e m   a r e   s h o w n   i t h e   b l o c di a g ra m   o f   F i gur e   1 .   T h e   de s i g us i n g   a   M CU   t y p e   P IC16F 887   a s   a   h e a r t   c o n t r o l   u ni t   o f   t h e   s y s t e m   ha s   b ui l t   i a na l o g   t o   d i gi t a l   (A D C)   c o n v e r t o w h i c h   r e c e i v e   t h e   t e m pe r a t u r e   f r o m   t e m pe r a t u r e   s e n s o r   i n t e g ra t e c i r c ui t   (IC)  L M 35 ,   w h e r e   i t   w i l l   c o nt r o l   t h e   t hr e e   a ppl i a n c e   a n d   o n e   a l e rt   de v i c e   a c c o r di n g   t o   t h e   e n v i r o n m e n t a l   t e m pe ra t u r e   c h a n ge s   w h i c i s   c a l c ul a t e d   a c c o r di n g   t o   t h e   s e t t i n g   v a l ue s   i t h e   p r o gra m m i ng.   T h e   L M 35  s e n s o c o nn e c t   t o   p i R A o f   P O R T A   o f   t h e   (M CU t hi s   p i n   m us t   b e   s e t t i n g   a s   a na l o gue   i n pu t   b y   T R IS A   a n A N S E L   r e g i s t e by   t h e   p r o g r a m   s e t t i n g .   T h e   L CD   di s pl a y   c o n n e c t e a s   4   b i t   m o de ,   t h e   4   b i t   m o de   m e a ns   c o nn e c t s   da t a   p i n s ,   D 4   t o   D 7   o f   L CD   t o   M CU ,   i t hi s   de s i g c o nn e c t   t o   P O R T D   o f   M CU .   R C0  t o   R C2  f ro m   P O R T o f   M CU   s e l e c t e a s   a   c o nt r o l   p i n s   c o n n e c t e t o   d r i v e r   a s   a   c u rr e n t   s o ur c e   a n d   t h e n   t o   r e l a y   i o r de r   t o   w o r t h e   s e l e c t e a p pl i a n c e   r e qui r e a c c o r di n t o   p r o gra m   s t a t e m e n t s .   R C3  c o n n e c t   t o   a l e rt   d ri v e r   t o   ge n e ra t e   a l e rt   s i g na l   w h e n   t h e   t e m pe r a t u r e   de gr e e   e xc e e t o   35  c e n t i g r a de .           F i gu r e   1 .   B l o c di a g r a m   o f   t h e   p r o po s e s y s t e m       F o r   pu r po s e   t o   s uppl y   e l e c t r i c   po w e r   t o   o pe ra t i ng  t h e   ha r dw a r e   e l e c t r o n i c s   de s i g c i r c ui t ,   f i v e   vo l t s   pow e r   s uppl y   i s   n e e de d.   F i gu r e   s c h e m a t i c   di a g ra m   s h o w i n g   t h e   c i r c ui t   t ha t   pe r f o r m s   t ha t   pu r po s e   fo r   t h e   pr o po s e s y s t e m .       Evaluation Warning : The document was created with Spire.PDF for Python.
IJ - ICT     IS S N :   2252 - 8776       D e s i gn   and   Si m u l at i on   of   A ut om a t i c   T e m pe r a t ur e   Con t r ol   a nd  A l e r t   S y s t e m   . . .   ( J ab bar   Sh aat i   J ah l ool )   97       F i gu r e   2 .   P o w e r   s uppl y   s c h e m a t i c       2. 1 .   LM 35   an d   P I C   I n te r fa c i n g   M a n y   of   t h e   c o m m o nl y   us e s e n s o r s   a v a i l a b l e   t h e s e   da y s   i n c l ude   r e m o t e   s e n s i n g ,   i n f ra r e d,   a c c e l e r o m e t e r ,   hum i di t y   s e n s o r s ,   t e m pe ra t u r e   s e n s o r s   a n m a n y   o t h e r s   ( m o t i o n   s e n s o r s ,   a l c o h o l   s e n s o r s ,   g a s   s e n s o r s   a n d   t o uc s c r e e n s ) .   M o s t   o f   t h e s e   s e n s o r s   a r e   a n a l o gue   i t h e i na t u ra l   w o r k.   T hi s   m e a n s   t ha t   i t   g i v e s   di r e c t   a n d   l i n e a c h a n ge s   i t h e   o ut pu t   v o l t a ge   p r o po r t i o na l   t o   a m o u n t   o f   s e n s o a nd   a c c o r di n g   t o   t h e r e   e n v i r o n m e n t   w o r ki n g   c o n d i t i o n s .   I c a s e   o f   L M 35  t e m pe ra t ur e   s e n s o t h e   o ut put   v o l t a ge   v a ri e s   a c c o r di ng  t o   t h e   t e m pe ra t u r e   c h a nge   s o   t ha t   i f   t h e   o ut pu t   v o l t a ge   i s   10 m v   pe r   o n e   de g r e e   c e n t i g r a de ,   t ha t   m e a n s   i f   o ut put   i s   100m v   t h e t h e   t e m pe r a t u r e   i s   10   de g r e e s .   T h e r e fo r e   i t   i s   v e r y   i m po rt a nt   t o   k n o w   h o w   t o   i nt e r f a c e   L M 35  s e n s o r   w i t P IC16F 8 87   M CU   i o r de r   t o   e xi t   w i t a   r i g h t   de c i s i o n .   T h e   i n t e r f a c i n i s   n e e de b e c a us e   m o s t   of  M CU s   a r e   d i gi t a l   de v i c e .   T hi s   m e a n s   i f   t h e   i nput   l e v e l   g r e a t e r   t h a 2 . 5v   t h e r e f o r e   t h e   de v i c e   w o r a s   t h e   i n put   w i t h   h i g s t a t e   l o gi c   o n e   a nd  i f   i t   i s   b e l ow   t hi s   l e v e l   (2. 5v t h e   de v i c e   r e a a s   l o gi c   l o w   (z e r o   vo l t ).   B a s e o n   t h e   c l a ri f i c a t i o n s   a b o ve   i t   i s   i m po s s i b l e   t o   m e a s ur e   vo l t a ge   di r e c t l y   f r o m   M CU s .   T h e r e fo r e ,   t o   f i n d   s o l ut i o n s   t o   t h i s   p r o b l e m ,   t h e   m a nuf a c t u r e r s   a n de s i g n e r s   o M CU s   put   t h e   m e c h a ni s m   o f   c o n v e r s i o n   a n a l o t o   di g i t a l   (A D C)   w i t hi m o s t   c u rr e n t l y   M CU s   a v a i l a b l e   i n   t h e   m a r k e t s .   I t h i s   c a s e   t h e   a n a l o v o l t a ge   i s   c o n v e r t e t o   a   c o rr e s po n di n g   n u m b e r   s o   t ha t   i t   c a n   b e   h a ndl e a n d   p r o c e s s e i n   M CU s   w i t h o ut   a n y   pr o b l e m .   T h e s e   f a c i l i t a t e   e a s y   i n t e r a c t i o n   a pp r o xi m a t e l y   t o   a l l   t y pe s   o f   a n a l o de v i c e s   w i t h   M CU s .   T h e   r e s o l ut i o n   r e p r e s e n t   a   v e r y   a n o t h e i m po rt a nt   e l e m e n t   f o r   A D Cs .   B e c a us e   i t   de t e rm i n e s   t h e   a c c ura c y   of   t h e   " A D C"   m e a s u r e m e nt   o f   i n pu t   a na l o s i g na l s .   Co m m o nl y   A D Cs   us e a r e   e i g ht   b i t ,   t e n   b i t   a nd  t w e l ve   b i t .   If   t h e   r e f e r e n c e   v o l t a ge   of   A D i s   l o gi c   z e r o   (0  v o l t t o   l o gi c   hi g h   (5  v o l t t h e n   a   10  b i t   A D C   w i l l   s t o i t   i 1024   di v i s i o n   s o   t h e   a c c u r a t e l y   t h a t   c a n   m e a s u r e   up   t o   5/ 1 02 4= 4. 8m v   a p p r o x.   A n o t h e i m po rt a nt   f a c t o r   f o r   w o r ki n w i t h   A D C   i s   t h e   r e f e r e n c e   v o l t a ge   (A D CR V ).   D e t e r m i n i ng  t h e   m i ni m u m   a n m a xi m um   l i m i t s   f o r   vo l t a ge s   o f   a n a l o i n pu t s   h a s   s pe c i f i e by   A D C R V .   T h e   P IC16F 887  c o n t a i n s   t w o   r e f e r e n c e   vo l t a ge ,   t h e   f i r s t   c a l l e t h e   po s i t i v e   r e f e r e n c e   vo l t a ge   (+ V r e f ),   w h i c h   r e p r e s e nt s   t h e   up pe r   o r   m a x i m u m   l i m i t   o f   t h e   i n c o m i n g   a n a l o i n pu t   s i g na l   v o l t a ge   a nd  t h e   s e c o n r e p r e s e n t s   t h e   n e ga t i v e   r e f e r e n c e   v o l t a ge   ( V r e f ),   w h i c h   r e p r e s e n t s   t h e   m i n i m u m   i nput   a na l o s i g na l   v o l t a ge s .   T h e re fo r e ,   i n   m o s t   s i m p l e   a pp l i c a t i o n s ,   t hi s   V r e f   i s   l i n ke d   t o   t h e   G N D   a n d   t h e   + V r e f   c o nn e c t e t o   V C C.   T o   a c t i v a t e   P IC16F 88 t o   w o r a s   10   b i t   A D C ,   t h e   A D u n i t   m us t   g i v e s   us   t h e   v a l ue   b e t w e e n   (0  t o   1023)  f o r   i n p ut   v o l t a ge   ra n ge   o f   z e r o   t o   f i ve   vo l t .   S o   i f   t h e   r e a d i n g   i s   z e r o   t h e n   t h e   i nput   i s   z e r o   v o l t ,   i f   t h e   r e a di ng  i s   1 0 23  t h e t h e   i n pu t   i s   5   v o l t .     2. 2 .   S u gge s te d   F l o w   C h ar t   T h e   l o gi c a l   r e p r e s e n t a t i o o f   t h e   p r o po s e s y s t e m   s o f t w a r e   c o de   ha s   b e e p r e s e n t e d   i t h e   f l o w c h a r t   a s   i l l us t r a t e i F i g u r e   3 .       Evaluation Warning : The document was created with Spire.PDF for Python.
                                IS S N :   2252 - 8776   IJ - ICT    V o l .   6 ,   N o .   2,     A u gus t   2017 :     95     104   98       F i gu r e   3 .   F l o w c h a r t   o f   t h e   s y s t e m       In  t h e   s ugge s t e f l o w c h a rt   c l e a rl y   s h o w s   h ow   t h e   t e m pe ra t u r e   c o n t r o l   s y s t e m   w o r ki n g   f o r   c o n t r o l   of  t hr e e   a pp l i a n c e   ( h e a t i n g ,   v e nt i l a t i o a nd  c o o l i n g a n d   o n e   a l e rt   s y s t e m   de pe n d   o t h e   t e m pe r a t u r e   i n pu t   v a l ue .   T h e   w o r o f   t h o s e   f un c t i o n s   c a b e   i l l us t r a t e a s   f o l l ow s :   a.   IF   t h e   t e m pe r a t u r e   de g r e e   l e s s   t ha n   18   c e n t i g r a de ,   t h e   c a s e   o n e   w i l l   w o r t ha t   e n a b l e   t h e   h e a t i n g   s y s t e m .   b.   IF   t h e   t e m pe ra t u r e   de gr e e   ra n ge   b e t w e e n   18  a n d   28  c e n t i g r a de   t h e   s y s t e m   i n   s e c o n c a s e   w i l l   w o r t ha t   e n a b l e   t h e   v e n t i l a t i o s y s t e m .   c.   IF   t h e   t e m pe r a t u r e   de g r e e   be t w e e n   t h e   ra n ge   28  a n d   35  c e nt i g ra de   t h e   t h e r e ' s y s t e m   w i l l   w o r t ha t   e n a b l e   c o o l i n g   s y s t e m .   d.   A a d di t i o t o   t hr e e   c a s e s   a b o ve   a   s e c uri t y   f a c t o r   w i l l   a dd e t o   ge n e ra t e   s i g n a l   t o   e n a b l e   a l e rt   de v i c e   t h i s   i s   do n e   w h e n   t h e   t e m pe ra t u r e   i n c r e a s e   t o   g ra t e r   t h a 35   c e n t i g r a de .       3.   S Y S TE M   I M P LEM EN TA TI O N     T h e   s ugge s t e d   s y s t e m   i s   i m pl e m e n t e d   us i ng  P I C16F 887   t h e   ha r dw a r e   p r o po s e de s i gn  r e qui r e m e nt s   a s   s h o w s   i n   F i gu r e   4 .       Evaluation Warning : The document was created with Spire.PDF for Python.
IJ - ICT     IS S N :   2252 - 8776       D e s i gn   and   Si m u l at i on   of   A ut om a t i c   T e m pe r a t ur e   Con t r ol   a nd  A l e r t   S y s t e m   . . .   ( J ab bar   Sh aat i   J ah l ool )   99       F i gu r e   4 .   H a r dw a r e   c i r c ui t   di a g ra m       4.   C I R C U I I M P LEM EN TA TI O N   S I M U LA TI O N ,   TES TI N G   A N D   R ES U LTS     T h e   s ugge s t e d   s y s t e m   h a s   b e e n   i m p l e m e nt e a n d   s i m ul a t i o by   us i ng  p r o t e us   p r o f e s s i o n a l   s o f t w a r e   v 8. 0   a n d   m i k r o P R O   F O R   P IC   pr o g r a m .   16X 2   L CD   di s p l a y   w h i c i s   us e t o   di s pl a y   t h e   s y s t e m   w o r ki ng  s t a t us .   T h e   c o n di t i o n s   t h a t   a r e   c h e c ke a n d   t h e n   f o r   t h e   pu r p o s e   of   c h oo s i n t h e   t y pe   of   w o r m o de   a r e   do n e   by   r e l y i n o n   t h e   t e m pe r a t u r e   v a l ue s   t ha t   a r e   r e a f r o m   t h e   t e m pe r a t u r e   s e n s o r.   T h e   r e s ul t   w i l l   o ut pu t   a n c l e a n o t e s   by   L CD   r e a di ng  a n c o rr e s po n d i n g   L E D   l i g ht .   T hi s   i s   w i l l   c a r e f ul l y   e xpl a i n   i n   t h e   f o l l ow i n w o r ki n g   m o de s   o f   t h e   s y s t e m :       4. 1 .   S tar M o d e   T h e   c i r c ui t   di a g ra m   i t h e   F i gu r e   4.   A b o ve   s h o w s   t h e   i ni t i a l i z e   s t a t e .   T h i s   i s   r e p r e s e nt   t h e   s t a rt   s y s t e m   w o r t ha t   m us t   f i r s t   i n i t i a l i z e   a l l   t h e   s y s t e m   c a s e s   be fo r e   t h e   w o r ki n g   c a s e s   t a ke   p l e a s e ,   t h i s   do n e   by   t h e   i ni t i a l   s e t t i ng   o f   t h e   p r o g r a m   c o de .   A t   t hi s   m o de   a l l   t h e   r e l a y s   m us t   b e   i na c t i v a t e d ,   a l l   L E D s   t u rn  o f f   a n a l l   c o n t r o l   s i g na l   f r o m   P O R T m us t   b e   a t   l o gi c   z e r o   (d i s a b l e a n a dd i t i o o f   a l l   t h e   a b ov e ,   t h e   L CD   w i l l   di s pl a y   t h e   m e s s a ge   (S y s t e m   R e a d y   a n d   S t a r t   T e m R e a d ).       4. 2 .   C as e   1   T h e   p r o c e s s   of   t h i s   m o de   a r e   s t a rt   wh e t h e   t e m pe ra t u r e   l e s s   t h a 18   c e nt i g ra de   ( h e a t i ng  c a s e   ha s   a c t i v a t e t h e n   t h e   h e a t i n g   s y s t e m   w i l l   e na b l e .   T hi s   i s   c l e a r   by   t h e   F i gu r e   b e l ow   w i t h   e na b l e   R CO   pi n   o P O R T (i n di c a t e by   a   r e c o l o r a n l i g ht i ng   t h e   L E D   t o   i ndi c a t e   t h e   o pe r a t i o n   o f   r e l a y   t o   a l l ow   w o r ki ng  o h e a t i n g   s y s t e m   a n d   L CD   t o   di s p l a y   t h e   c a s e   s t a t us   t ha t   di s pl a y   t h e   w o r d   ( C as e   1   h e at   a n d   T e m p   LT   ( l e s s   t h a n )   18 ).     Evaluation Warning : The document was created with Spire.PDF for Python.
                                IS S N :   2252 - 8776   IJ - ICT    V o l .   6 ,   N o .   2,     A u gus t   2017 :     95     104   100       F i gu r e   5 .   H e a t i n g   s y s t e m   c i r c ui t   di a g ra m       4. 3 .   C as e   2   T h i s   w o r ki n g   m o de   o f   t h e   s y s t e m   s t a rt   w h e t h e   t e m pe ra t u r e   e qua l   t o   1 8   c e n t i g r a de   a nd   l e s s   t h a 2 c e n t i g ra de   (c a s e   2   w i l l   a c t i v a t e i . e .   v e n t i l a t i o s y s t e m   w i l l   w o r k).   T h i s   i s   c l e a s h o w n   b y   t h e   f i gu r e   6   b e l ow   w i t h   e n a b l e   R C1   p i n   o f   P O R T (i ndi c a t e by   a   r e d   c o l o r a n l i g ht i ng  t h e   L E D   t o   i n d i c a t e   t h e   o pe r a t i o n   o f   r e l a y   t o   w or k i n g   v e n t i l a t i o s y s t e m   a nd  L CD   t o   di s p l a y   t h e   c a s e   s t a t us   t ha t   di s p l a y   t h e   w o r ( C as e   V e n t   a n d   T e m p   18  TO   28 ).       Evaluation Warning : The document was created with Spire.PDF for Python.
IJ - ICT     IS S N :   2252 - 8776       D e s i gn   and   Si m u l at i on   of   A ut om a t i c   T e m pe r a t ur e   Con t r ol   a nd  A l e r t   S y s t e m   . . .   ( J ab bar   Sh aat i   J ah l ool )   101       F i gu r e   6 .   V e n t i l a t i o n   s y s t e m   c i r c ui t   di a g r a m       4. 4 .   C as e   3   W h e t h e   t e m pe ra t u r e   ra n ge   f r o m   28   t o   35   c e nt i g ra de   (c a s e   w i l l   a c t i v a t e i . e .   c o o l i n g   s y s t e m   w i l l   w o r k).   T hi s   i s   c l e a s h o w n   by   t h e   f i gur e   7   b e l ow   w i t h   e n a b l e   R C2  pi n   o f   P O R T (i n d i c a t e b y   a   r e c o l o r a n l i g ht i ng  t h e   L E D   t o   i n di c a t e   t h e   o pe ra t i o o f   r e l a y   t o   w o r ki n g   h e a t i n s y s t e m   a n d   L CD   t o   di s p l a y   t h e   c a s e   s t a t us   t ha t   di s p l a y   t h e   w o r (Ca s e   Co o l   a nd  T e m 28  T O   35 ).       Evaluation Warning : The document was created with Spire.PDF for Python.
                                IS S N :   2252 - 8776   IJ - ICT    V o l .   6 ,   N o .   2,     A u gus t   2017 :     95     104   102       F i gu r e   7 .   Co o l i n s y s t e m   c i r c u i t   di a g r a m       4. 5 .   A l e r t   S ys te m   T h i s   i s   a n o t h e w o r ki n m o de   r e p r e s e n t   a   s a f e t y   fe a t u r e   o f   t h e   s y s t e m .   It   i s   a c c o m pl i s h e w h e t h e   t e m pe ra t u r e   w i l l   i n c r e a s e   t o   r e a c t h e   v a l ue   g ra t e t ha 35   c e n t i g ra de ,   a l e r t   s i g n a l   w i l l   ge n e ra t e d   a t   t h e   p i n   R C3  f r o m   P O R T o f   t h e   M CU   t o   e n a b l e   t h e   r e l a y   dri v e a n d   l i g ht i n g   a t t e n d a n t   L E D   a n d   s o   by   us i n a   b uz z e r   t o   p r o duc e   t h e   a l e r t   t o o l s   t o   w o r f i r e   s y s t e m ,   a l s o   di s pl a y   t h e   w o r ( A l e r t   a nd  F i r e   F i r e w i l l   w r i t e   a t   t h e   L CD   d i s pl a y .   A l l   p r o c e s s   of   t hi s   m o de   a r e   s h o w n   i t h e   f i gu r e   8   b e l ow .       Evaluation Warning : The document was created with Spire.PDF for Python.
IJ - ICT     IS S N :   2252 - 8776       D e s i gn   and   Si m u l at i on   of   A ut om a t i c   T e m pe r a t ur e   Con t r ol   a nd  A l e r t   S y s t e m   . . .   ( J ab bar   Sh aat i   J ah l ool )   103       F i gu r e   8 .   F i r e   s y s t e m   c i r c ui t       A l l   s y s t e m   w o r ki n g   c a s e s   r e s ul t i ng  m a y   b e   s um m a ri z e d   a t   t a b l e   b e l ow :       T a b e l   1 .   R e s ul t s   o f   s y s t e m   w o r ki n c a s e s           Evaluation Warning : The document was created with Spire.PDF for Python.
                                IS S N :   2252 - 8776   IJ - ICT    V o l .   6 ,   N o .   2,     A u gus t   2017 :     95     104   104   5.   C O N C LU S I O N   A N D   I D EA   F O R   F U TU R E   In  t hi s   pa pe r   a   p r o po s e A T s i m pl e   a nd  l o w   c o s t   fo r   g e n e ra l   a pp l i c a t i o n s   t e m pe r a t u r e   c o n t r o l   s y s t e m   us i n P I C16F 887   w a s   de s i g a nd  s i m u l a t i o n.   T h e   us e   o f   t hi s   s y s t e m   h e l ps   t o   m a i n t a i t h e   t e m pe ra t u r e   w i t h i c e rt a i l i m i t s ,   de pe n d i n g   o t h e   a ut o m a t i c   c o n t r o l   o f   t h e   o pe r a t i o o f   t h e   a pp r o p r i a t e   s y s t e m   w i t e a c t e m pe r a t u r e   c h a nge   a nd  t h us   po s s i b l e   t o   i n v e s t   i i m po rt a nt   pl a c e s   s uc a s   f oo d   w a r e h o us e s ,   m e di c a l   m a t e ri a l s ,   l a b o r a t o r i e s ,   c e n t ra l   s w i t c h e s ,   e l e c t r o n i c   s e r v e r s   a n d   o t h e r s   t ha t   r e qui r e   m a i n t a i ni n a   c e r t a i t e m pe r a t u r e   l i m i t   w i t h o ut   i nt e r f e r e nc e   o r   p r e s e n c e   of   t h e   hum a n   f a c t o a s   w e l l   a s   gui da n c e   a n d   s e n d   a a l a rm   w h e t h e   t e m pe ra t u r e   r i s e   a n d   r e a c t h e   d a n ge r o us   s t a ge s .   T hi n k   t hi s   s y s t e m   i s   v e r y   a ppr o p r i a t e   b e c a us e   of   i t s   s i m pl i c i t y   a nd  r e l i a b i l i t y   i n   a dd i t i o n   t o   s m a l l   s i z e ,   l o w   c o s t ,   l o w   p ow e r   c o n s um pt i o i a ddi t i o t o   a l l   a b o ve   f a c i l i t i e s   c a b e   us e f o d i f fe r e nt   p l a c e s .   I t h e   f ut u r e ,   t h e r e   a r e   s e v e r a l   po s s i b l e   i m p r o v e m e n t s   c a b e   m a de   i n   o r de r   t o   up g r a de   t h e   f e a t u r e s   s uc a s   us i n g   a   G S M   I / O   de v i c e s   t o   s e n t h e   a l e r t   m e s s a ge   f o r   w i de   w o r i n s t e a d   o f   us i n g   l o c a l   a l e r t   d e v i c e s   a n d   m a y   be   us i n g   a   w i r e l e s s   t e c hn o l o gi e s   t o   i n t e r f a c e   s e n s o r ,   m o n i t o r   r e l a y s   a n d   m i c r o c o n t r o l l e r .       R EF ER EN C ES     [ 1]   A .   G o s w a m i ;   T .   B e z bo r ua h;   T .   a nd  K .   C.   S a r m a ,   D e s i g o f   a E m be dde a nd   I m pl e m e nt a t i o o f   a E m be d de d   S y s t e m   f o r   M o ni t o r i ng   a nd   C o nt r o l l i ng   t h e   I nt e n s i t y   of   L i g ht ,   p r oc e e di ng  o f   t he   2 008   i nt e r na t i ona l   c on f e r e nc e   on  e m be dde s y s t e m s   and   a ppl i c at i on   du r i ng   j ul y   14 - 17 ,   20 08  at   L a s   V e gas   N e v ada ,   U SA ,   V o l . - E S A   2008,   p p. 1 17 - 123 .   [ 2]   A.   G o s w a m i ;   T .   B e z bo r ua h;   K.   C .   S a r m a ,   A E m be dde D e s i g f o r   A ut o m a t i c   T e m pe r a t ur e   C o nt r o l l e r ,   I nt e r n at i on al   J o ur n al   o f   A dv an c e E n gi ne e r i n and   A pp l i c a t i o n J a 20 11 .   [ 3]   J une   T ha r a phe   L w i n;   A ung   Z e   Y a ,   D e v e l o pm e n t   o f   M i c r o c o nt r o l l e r   B a s e d   T e m pe r a t ur e   a nd   L i g ht i ng   C o nt r o l   S y s t e m   i S m a r t   H o m e ”,   I nt e r na t i ona l   J our na l   o f   Sc i e nt i f i c   E n gi ne e r i ng  and  T e c hno l ogy   R e s e ar c h ,   J ul y - 2014   pa g e s : 3322 - 3327.   [ 4]   N .   A .   A .   H a d i ;   M .   H .   C .   H a s a n;   N .   M .   Z .   H a s h i m ;   A .   S a l l e h;   A .   A .   S a l a m ;   Z.   H a s a n ,   A ut o m a t i c   S m a r t   K i t c he n   S y s t e m   us i ng   M i c r o c o nt r o l l e r ”,   I n t e r na t i o na l   J ou r na l   f o r   A dv anc e   R e s e ar c i n   E n gi ne e r i n and   T e c hn ol o gy ,   v o l um e   3,   i s s u e   V I ,   J u ne   201 I S S N   232 0 - 6802   [ 5]   S.   R.   S ha r m a ;   P.   B.   D a hi ka r ,   E m b e dde D e s i g o f   T e m p e r a t u r e   C o nt r o l l e r   us i ng   P I C   16F 876A   f o r   I ndus t r i e s   a nd  L a bo r a t o r i e s ,   I n t e r nat i o nal   J our nal   o f   I n nov at i v e   R e s e ar c i n   C o m put e r   and   C om m u ni c at i on   E n gi ne e r i ng ,   vol .   1,   i s s ue   10 ,   D e c e m be r   20 13 .   [ 6]   B og da L e v ă r ;   C r i s t i n a   B ud a c i u ,   T h e   D e s i g o f   T e m pe r a t u r e   C o nt r o l   S y s t e m   us i ng   P I C 18F 4620” ,   B U L E T I N U L   I N S T I T U T U L U I   P O L I T E H N I C   D I N   I A S I   P u bl i c a t   d e   U ni v e r s i t a t e a   T e hn i c ă ,   G h e o r g he   A s a c hi   d i n   I a s i   T o m ul   L V I   ( L X ) ,   F a s c .   4 ,   2010   S e c Ń i a   A U T O M A T I C Ă   s i   C A L C U L A T O A R E .   [ 7]   M us t a f a   S a a d;   H o s s a m   A bdo a l g a de r ;   a n d   M u a m m e r   M o ha m e d ,   A ut o m a t i c   F a n   S p e e d   C o nt r o l   S y s t e m   U s i ng  M i c r o c o nt r o l l e r ,   6 t h   I nt ' l   C on f e r e nc e   o n   E l e c t r i c a l ,   E l e c t r o ni c s   &   C i v i l   E n gi ne e r i ng   ( I C E E C E ' 2 014) ,   N o v .   27 - 28 ,   2014   C a p e   T o w ( S o ut h   A f r i c a ) .   [ 8]   T he o phi l us   W e l l e m ;   B hu di   S e t i a w a n ,   A   M i c r o c o nt r o l l e r - B a s e d   R o o m   T e m pe r a t ur e   M o ni t o r i ng   S y s t e m I nt e r n at i on al   J o ur n al   o f   C om put e r   A pp l i c a t i ons   ( 0975 888 7) ,   v o l um e   53 ,   no .   1,   S e pt e m be r   2 012     [ 9]   V a i bh a v   B ha t i a G a v i s h   B ha t i a ,   R o o m   T e m pe r a t ur e   b a s e F a n   S pe e C o nt r o l   S y s t e m   u s i ng   P ul s e   W i d t M o dul a t i o T e c hni qu e ”,   I n t e r na t i o na l   J our nal   o f   C om pu t e r   A ppl i c at i on s   ( 09 75 8887 ) ,   v o l um e   8 1,   no .   5 ,   N o v e m be r   201 3.   Evaluation Warning : The document was created with Spire.PDF for Python.