I nte rna t io na l J o urna l o f   E lect rica l a nd   Co m p ute E ng in ee ring   ( I J E CE )   Vo l.   10 ,   No .   6 Decem b er   2 0 2 0 ,   p p .   5 9 3 2 ~ 5 9 3 9   I SS N:  2088 - 8708 DOI : 1 0 . 1 1 5 9 1 / i j ec e . v 10 i 6 . pp 5 9 3 2 - 5 9 3 9           5932       J o ur na l ho m ep a g e h ttp : //ij ec e. ia esco r e. co m/in d ex . p h p /I JE C E   Desig n and  i m ple m en a  s m a rt  sy st e m  t o  de tec int ru ders   a nd f iring  using   I o T       H us s a m   J a w a d   K a dh i m 1 ,   M o ha mm ed  J a bb a r   M o ha m med   A m ee n 2   1 Co ll a g e   o f   S c ien c e   f o W o m e n De p a rtme n o f   Co m p u ter,  Un iv e rsity   o f   Ba b y lo n ,   Ira q   2 Co ll a g e   o f   En g in e e rin g ,   De p a rt m e n o f   El e c tri c a En g in e e rin g ,   U n iv e rsity   o f   Ba b y lo n ,   Ira q       Art icle  I nfo     AB ST RAC T   A r ticle  his to r y:   R ec eiv ed   A p r   6 ,   2 0 2 0   R ev i s ed   Ma y   1 5 ,   2 0 2 0   A cc ep ted   Ma y   2 8 ,   2 0 2 0       T h e   se c u rit y   s y ste m   is   e ss e n ti a f o o c c u p a n ts'   c o n v e n ien c e   a n d   p ro tec ti o n   f ro m   in tru d e rs  a n d   f ire.  T h e f a n d   f ire   a re   th e   m o st  i m p o rtan re q u i re m e n f o r   th e   se c u rit y   s y ste m .   T h e   a d v a n c e m e n o f   w irel e ss   se n so n e tw o rk u sin g   Io T in c re a se d   th e   f e a tu re in   a   se c u rit y   s y ste m   a n d   p lay   a n   im p o rtan ro le  in   d a il y   li f e .   In   th is  p a p e r,   t h e   p r o p o se d   sy ste m   is  d iv id e d   in t o   t w o   u n it s.     T h e   f irst  o n e   a b o u se c u rit y   wh ich   u se   to   tak e   sn a p sh o ts  b y   a   c a m e ra   w h e n e v e th e re   is  f ire   o in tru d e rs  in   th e   se c u rit y   z o n e   a n d   m a il   it   to     th e   o w n e e v e r y   th re e   se c o n d b y   u sin g   A rd u in o   c o n f ig u re d   w it h   M A TL A B   p ro g ra m .   M ATLA p ro g ra m   p la y th e   m a in   ro le  to   c o o r d i n a te  b e tw e e n   se n so rs  a n d   to   t u rn   o n /o f f   th e   c a m e ra s.  T h e   se c o n d   u n it   is  a b o u t   c o n tro ll in g   th e   a p p li a n c e a n d   a lso   th e   m a in   d o o b y   u sin g   A V m icr o c o n tr o ll e r   c o n f ig u re d   b y   CV A V so f tw a re   th a t   c o n n e c ted   w it h   Bl u e to o th   s e n so a n d   c o n tro ll e d   b y   a   s m a rtp h o n e   b y   u s in g   th e   im p le m e n tatio n   so f tw a r e   b u il t - u p   i n   th e   sm a rtp h o n e .   T o   a rriv a o th e   c o n tro u n it ,   t h e   u se sh o u l d   se n d   c o d e   f ro m   th e   so f tw a r e   i m p lem e n tatio n   t o   th e   f ra m e w o rk   th a u se   to   t u rn   o n / o f   th e   d e v ice o o p e n /clo se   th e   d o o r T h is  p ro p o se d   sy ste m   i d e s ig n e d   a n d   im p le m e n ted   in   d e tails i n   t h is p a p e r.     K ey w o r d s :   A p p lian ce   co n tr o l s y s te m   A V R   at m eg 8   C o m m u n ica tio n   s y s te m   I o T   R e m o te  co n tr o   Secu r it y   s y s te m   Co p y rig h ©   2 0 2 0   In stit u te o A d v a n c e d   E n g i n e e rin g   a n d   S c ien c e   Al rig h ts re se rv e d .   C o r r e s p o nd ing   A uth o r :   Hu s s a m   J a w ad   Kad h i m ,     C o llag o f   Scien ce   f o r   W o m e n ,   Dep ar t m en t o f   C o m p u ter ,   Un i v er s it y   o f   B ab y lo n ,     6 0 th   s tr ee t ,   A l h il la,   B ab y lo n ,   I r aq .   E m ail:  h u s s a m j w d @ y a h o o . co m       1.   I NT RO D UCT I O N     No w ad a y s   th r is k   o f   f ir an d   in tr u d er   h as  b ee n   in cr ea s ed .   I n   g e n er al,   th s ec u r it y   s y s te m   is   d ef in ed   as  n et w o r k   o f   d ev ices  th at   co n tain   tr i g g er   a n d   alar m .   T h f ea tu r es  o f   th s ec u r it y   s y s te m   h a v b ee n   in cr ea s ed   w it h   t h ad v a n ce m e n i n   t h in ter n et  f ield .   T h co n ce p o f   t h i n ter n et  o f   t h i n g s   ( I o T )   is   in tr o d u ce d   w h er th ap p lian ce s   ca n   co m m u n icate   w i th   h u m a n s   [ 1 - 3 ] .   No w ad a y s   th I n ter n et  o f   T h i n g s   is   f a s tl y   g r o w in g   tech n o lo g y   [ 4 ,   5 ] .   E x p lain   th at  I o T   i s   co n s is o f   p h y s ical  d ev ice,   s o f t w ar e,   n et w o r k ,   s e n s o r s ,   w ir ed   o r   u n w ir ed   tech n o lo g y ,   etc.   T h is   is   ess e n tiall y   d u to     th i n s til lin g   o f   s en s o r s   o n   t h e m .   T h ese  s e n s o r s   ar co n n ec t ed   b y   w ir ed   an d   w ir eles s   n e t w o r k s   u s i n g   I n ter n et  P r o to c o th at  lin k - u p   th I n ter n et  [ 6 ,   7 ] .   I n ter n et  as  a f o r esai d   h as  b ec o m p ar o f   t h d ai l y   h ab it  th at   m o s o f   th p eo p le  in   d if f er en co u n t r ies  w h o   h a v t h in co m i n g   to   it.  T h ese  p eo p le  h av b ec o m co n ti n g e n o n   h av i n g   a n   I n ter n et   co n n ec tio n   in   th e ir   d ail y   li v es   to   b ab le   to   r ea ll y   ca r r y   o n   w it h   th e ir   l if f o r   s o m ca u s e.   B ec au s o f   th i n cr ea s i n g   r is k   o f   b u r g lar y   an d   r o b b er y   an d   th b u s y   li f e s t y le  th tec h n o lo g y   o f   s a f et y   a n d   s ec u r it y   s y s te m   h as  b ee n   i n cr ea s ed   [ 8 ] .   I n   [ 9 ]   th au th o r   d esig n s   s m ar s y s te m   to   d etec in tr u d er s   u s i n g   s h o r m e s s a g s er v ice,   th i s   s y s te m   co n s is t s   o f   s e n s o r   cir cu it,  co n tr o ller ,   an d   r ec eiv er .   W h en   an   i n tr u d er   p ass es t h r o u g h   t h P I R ,   SMS i s   s en t to   th m o b ile  p h o n n u m b er s   I n   [ 1 0 ]   A r d u in o   co n f ig u r ed   with   th e   g a s   m o d u le,   m o tio n   s e n s o r ,   laser   s e n s o r   to   d etec t   i n t r u d er s   an d   u n w an ted   o cc u r r en ce s   th a c o n tr o lled   b y   B lu e to o th   w h e n   th e   o w n er   i n d o o r   an d   GS w h e n   th e   o w n er   Evaluation Warning : The document was created with Spire.PDF for Python.
I n t J   E lec  &   C o m p   E n g     I SS N:  2088 - 8708       Desig n   a n d   imp leme n a   s ma r t sys tem  to   d etec t in tr u d ers   a n d   fir in g   u s in g   I OT   ( Hu s s a Ja w a d   K a d h im )   5933   o u td o o r .   [ 1 1 ]   T h au th o r   s u g g ests   t w o   m et h o d s   t o   ap p ly   t h e   s ec u r it y   s y s te m   f o r   th h o m e.   T h f ir s o n u s es   W eb ca m .   A   m ail  i s   d eliv er e d   to   th o w n er   w h e n e v er   th er is   m o tio n   in   f r o n o f   t h c a m er a.   T h s ec o n d   o n s e n d s   SM S.  A ls o ,   t h co n tr o o f   h o m ap p lia n ce s   b y   co d ar v er y   i m p o r ta n s o   i n   [ 1 2 ,   1 3 ]   th au t h o r   ex p lain   h o w   to   co n tr o l h o m a p p lian ce s   u s in g   A V R   m icr o co n tr o ller   b y   t h B lu e to o th   o f   s m ar tp h o n e.   I n   th is   p ap er ,   if   an   in tr u d er   o r   th f ir o cc u r r ed   a   s n ap s h o t   is   tak en   b y   th ca m er w h ic h   co n n ec t s   w it h   t h s er v er   an d   co n tr o lled   b y   Ma tlab   p r o g r a m   w h ic h   u s SMT P   p r o to co l   to   s en d   e - m ail  in cl u d p h o to   o f   th f ir f o r   th f ir s ti m o r   to   th in tr u d er s   w h ic h   g i v a n   id ea   to   th o cc u p a n ab o u t h ca s o f   th p lace   at  th a ti m e.   A ls o ,   f o r   m o r e   s a f et y ,   t h d o o r   w ill  b e   co n tr o lled   au to m atica l l y   b y   s e n d in g   a   co d f r o m     th s m ar tp h o n to   th B lu eto o th   s en s o r   w h ich   co n f i g u r ed   b y   A V R   m icr o co n tr o ller   an d   co n n ec ted   to   DC   m o to r   to   o p en   o r   cl o s th d o o r   an d   also   to   tu r n   o n /o f f   t h ap p lian ce s .       2.   RE S E ARCH   M E T H O D     2 . 1 .     Arduin o   A r d u i n o   i s   an   o p en   ex p o r ter   s tan d   t h at  u s ed   to   b u ild   an   el ec tr o n ics  cir c u its   p r o j ec t.  T h is   p latf o r m   co n s is ts   o f   p h y s ical  p r o g r a m m ab le  cir cu it  b o ar d   as  s h o w n   in   Fi g u r 1   an d   s o f t w ar e,   o r   ( I DE )   th at  w o r k s   o n   y o u r   co m p u ter   an d   u s ed   to   w r ite  d o w n   a n d   tr an s f er   co d to   th p h y s ical  b o ar d .   T h is   p o d iu m   h a s   b ec o m e     p o p u lar   w it h   w o r ld   an d   u s ed   w id el y   i n   elec tr o n ics  cir c u it s   b ec au s it  d o es  n o n ee d   an   i n d ep en d en p iece   o f   h ar d w ar ( ca lled   p r o g r a m m er ) ,   li k m o s p r e v io u s   p r o g r a m m ab le   cir cu i b o ar d s .   T o   p r o g r am m in g     th A r d u i n o   b o ar d ,   y o u   c a n   p lain l y   u s USB - U SB   ca b le  to   u p lo ad   th co d e T h p r o g r a m m i n g   la n g u a g th a t   u s ed   w it h   A r d u i n o   s o f t w ar i s   s i m p li f ied   v er s io n   o f   C ++ ,   m ak in g   it e as ier   to   lear n   an d   p r o g r a m m in g   [ 1 4 ] .           Fig u r e   1 .   A r d u i n o   p latf o r m       2 . 2 .     AVR  M icro c o t ro ller    T h A V R   m icr o co n tr o ller   h as   C P an d   R OM ,   R A M,   I /O   p o r ts ,   an d   t i m er   all  e m b ed d ed   to g eth e r   o n   s i n g le   ch ip   as   s h o w n   i n   F ig u r e   2 .   So ,   t h d es ig n er   ca n n o an n ex   an y   ex ter n al  I / p in s ,   m e m o r y ,   o r   t i m e r   to   it.  T h A V R   w ith   t h ese  f a cilities   m ak e s   it  p er f ec f o r   m an y   o f   ap p licatio n s   w h ich   t h e   co s an d   s p ac ar e   cr itical.   A T m e g 8   is   u s ed   in   th is   p r o j ec w h ich   p r o v id es  2 3   I /O  lin es,  5 1 2   b y te s   o f   E E P R OM ,   8   Kb y tes  o f   S y s te m   P r o g r a m m ab le  Fla s h ,   1   KB   o f   SR AM ,   an d   US AR T   [ 1 5 ] .           Fig u r e   2 .   A V R   m icr o co n tr o ller   ( A t m e g a8 )   Evaluation Warning : The document was created with Spire.PDF for Python.
                      I SS N :   2 0 8 8 - 8708   I n t J   E lec  &   C o m p   E n g ,   Vo l.  10 ,   No .   6 Decem b er   2020     5 9 3 2   -   5 9 3 9   5934   2 . 3 .     CVAVR   C o d Vis io n   A V R is   s o f t w ar t h at   is   u s ed   to   w r ite   th e   co d f o r   p r o g r a m m i n g   th e   A V R   m icr o co n tr o ller   o n   W in d o w s .   T o   in j ec th co d t o   th AVR  m icr o co n tr o o ler   Sin a P r o g   p r o g r a m   is   u s ed .     T h C VAVR i s   v er y   g o o d   C o d W izar d   th at  g en er ate s   co d es a u to m atica ll y   [ 1 5 ] .     2 . 4 .     M AT L AB     MA T L A B   is   a   4 th g e n er atio n   p r o g r am m i n g   lan g u ag e   an d   it   u s ed   f o r   n u m er ical  a n al y s i s .   I in cl u d es   m atr i x   ca lcu la tio n s ,   r u n n i n g   alg o r ith m s ,   d ata  v is u aliza t io n ,   an d   cr ea tin g   u s er   in te r f ac es.  M A T L A B   en v ir o n m e n a s   s h o w n   i n   Fi g u r 3   allo w s   d ev elo p er s   to   in ter f ac it  w i th   o th er   p r o g r a m s   i n   d if f er e n t   lan g u a g es.  M A T L A B   is   u s ed   in   m a n y   f ield s   b y   e n g i n ee r s   a n d   s cien ti s ts   s u c h   as  s i g n a an d   im a g p r o ce s s in g ,   co n tr o l s y s te m s   f o r   i n d u s tr y ,   c o m m u n icatio n s ,   r o b o tics ,   s m a r t g r id   d esig n   [ 1 6 ] .           Fig u r e   3 .   Ma tlab   p r o g r am m i n g         2 . 5 .     Sm o k det ec t o r   An alo g y   S m o k Sen s o r   o r   M Q2   m o d u le  is   s e n s iti v to   s m o k an d   it  h as  p r o tectio n   r esis to r   w it h   a n   ad j u s tab le  r esis to r   o n   b o ar d .   I t c o u ld   b u s ed   f o r   f ir o r   s m o k d etec tio n ,   al s o ,   it u s ed   i n   g as lea k a g d etec ti n g   eq u ip m e n i n   f a m il y   an d   in d u s tr y .   T h r esi s ta n ce   o f   t h s en s o r   c h an g es   as   t h co n ce n t r icit y   o f   t h e   tar g et   s m o k ch a n g e s   [ 1 7 ] .       2 . 6 .     P I s ens o r   P I R   is   m o tio n   s e n s o r   an d   it   u s ed   to   d etec w h e th er   h u m an   h as  m o v ed   i n   th s ec u r i t y   zo n o r   th r o u g h   th e   s e n s o r   r an g e.   T h P I R   s en s o r   as  s h o w n   i n   Fig u r e   4   is   s m all,   s i m p le   to   u s e,   lo w - p o w er ,   ch ea p ,   a n d   d o esn 't  w ea r   o u t.  B ec au s o f   t h at  w h y   th P I R   s en s o r   f o u n d   in   t h u s ed   s y s te m s   i n   h o m es  o r   b u s in e s s es  [ 1 8 ] .   P I R   u s ed   f o r   m a n y   p r o j ec ts   th at  n ee d   to   d etec in tr u d er s   o r   w h en   p er s o n   h as  le f th s ec u r it y   zo n e.       P I R   s en s o r s   ar lo w   co s t a n d   l o w   p o w er ,   p r ett y   r u g g ed   an d   h av w id len s   r a n g [ 1 9 ] .           Fig u r 4 .   P I R   s en s o r       2 . 7 .     Webca m   A   w eb ca m   is   v id eo   ca m er u s ed   to   f lo w   it s   i m a g in   r ea l - ti m b y   m ea n s   o f   p er s o n al  co m p u ter   to   th e   in ter n et.   W h en   th er ar i n tr u d er s   o r   f ir t h r o w   t h s ec u r i t y   zo n e   th e   ca m er tak e s   s n a p s h o t a n d   s e n d s   i t   to   th r o w   th n et w o r k   v ia  s y s te m s   s u c h   as  th i n ter n e t,  an d   em ail  as  a n   at tach m e n to   th o w n er .   A   w eb ca m   i s   g en er all y   b u i lt in to   co m p u ter   h ar d w ar o r   co n n ec ted   b y   a   U SB   ca b le  [ 2 0 ] .     2 . 8 .     E - m a il o e m a il   E lectr o n ic  m ail  is   t h ex c h a n g in g   o f   d i g ital  m es s a g es  b y   t elec o m m u n icatio n   b et w ee n   p eo p le  u s in g   d ig ital  d ev ice s   s u c h   as  m o b ile   p h o n es,  co m p u ter s ,   an d   tab le ts .   E lectr o n ic  m ail  f ir s u s e s   i n   th 1 9 6 0 s   an d   b y   th m id - 1 9 7 0 s   h ad   tak en   t h f o r m   n o w   r ec o g n ized   as  e m ail  [ 2 1 ] .   E m ail  s y s te m s   r eq u ir ed   b o th   th s e n d er   an th r ec ip ien t o n lin to   r ec eiv th s n ap s h o t a t th s a m ti m e .   Evaluation Warning : The document was created with Spire.PDF for Python.
I n t J   E lec  &   C o m p   E n g     I SS N:  2088 - 8708       Desig n   a n d   imp leme n a   s ma r t sys tem  to   d etec t in tr u d ers   a n d   fir in g   u s in g   I OT   ( Hu s s a Ja w a d   K a d h im )   5935   2 . 9 .     L CD   L iq u id   C r y s tal  Di s p la y   s cr ee n   is   a n   elec tr o n ic  d is p la y   m o d u le  as  s h o w n   i n   F i g u r 5   a n d   u s ed   i n   v ar io u s   d ev ice s   an d   cir cu it s . 1 6 x 2   L C m ea n s   it  ca n   d is p la y   1 6   ch ar ac ter s   p er   lin an th er ar 2   lin es.   E ac h   c h ar ac ter   is   d i s p la y ed   i n   5 x 7   p i x el  m atr i x .   T h co m m an d   r eg i s ter   s to r es   th e   co m m an d   d ir ec tiv g i v e n   to   th L C w h ic h   p r ed ef in ed   task s   lik p r ef ac it,  s etti n g   th cu r s o r   p o s itio n ,   co n tr o llin g   d is p lay ,   clea r i n g   its   s cr ee n ,   etc.   [ 2 2 ] .           Fig u r 5 .   L C d i s p la y       2 . 1 0 .     Rela y   A   r ela y   is   a n   elec tr ical  s w itc h   u s d in p u f o r   r ec eiv in g   s ig n a an d   th o u tp u i s   AC   to   o p er ate  ap p lian ce s   an d   o th er   d ev ices,  s o ,   in   th is   p r o j ec t,   th r elay   will  r ec eiv th s i g n al  f r o m   m ic r o co n tr o ller   w h ic h   co n n ec t s   to   th C - p o r t a n d   ( NO)   p o r t w il l b co n n ec ted   to   th AC   d ev ice  [ 2 3 ] .       2 . 1 1 .     B luet o o t m o du le   T o   r em o te  co n tr o th AVR  m icr o co n tr o ller   o v er   s h o r d is tan ce ,   t h B lu eto o th   s e n s o r   is   u s ed   to   r ec eiv d ata  f r o m   t h s m ar tp h o n e.   HC - 0 6   m o d u le  i s   u s ed   an d   t h co n n ec tio n   p i n s   ar T to   T XD  to   s en d   d ata  to   th m icr o co n tr o ller   a n d   R to   R XD  to   r ec eiv d a ta  f r o m   t h m icr o co n tr o ller ,   VC C   w i th   VC C   f o r   p o w er ,   an d   GND  to   GND  f o r   g r o u n d .   Fo r   g en er ali t y ,   u s s ta tes  th H C - 0 6   is   s u f f icie n t,  as  t y p icall y   I   w a n to   h av w ir ele s s   U AR T   jo in in g   to   m y   d ev ice s   f r o m   m y   s m ar t p h o n [ 2 4 ,   2 5 ] .     2 . 1 2 .     B T I nte rf a ce   BT   T h s o f t w ar t h at  is   u s ed   to   co n tr o th ap p lian ce s   i s   B T I n ter f ac an d   it  i s   ea s y   to   in s ta ll  o n     th s m ar tp h o n f r o m   th a n d r o id   s to r e,   s o ,   b y   u s in g   t h is   s o f t w ar it  w i ll  b p o s s ib le  to   co n tr o all  d ev ices  th a t   co n n ec ted   w i th   th p r o p o s ed   s y s te m   a n d   u s ed   an   I f o r   ea ch   d ev ice,   s o ,   to   tu r n   o n /o f f   a n y   co n tr o lled   d ev ice   j u s t sen d   t h I n u m b er   f r o m   th is   ap p licatio n   s h o w   i n   F i g u r 6 .           Fig u r 6 .   B lu eto o th   in ter f ac i n   s m ar t p h o n e       3.   RE SU L T A ND  D I SCU SS I O N   I n   th i s   s ec tio n   th p r o p o s ed   s y s te m   p er f o r m a n ce   w il ev alu a te,   in   t h ab ilit y   to   tu r n   o n /o f f   ap p lian ce s ,   o p en   a n d   clo s t h d o o r ,   r ec eiv s n ap s h o o f   f ir o r   i n tr u d er   i n   t h e m ail.   Fig u r 7   s h o w s     th p r o p o s ed   s y s te m .   Evaluation Warning : The document was created with Spire.PDF for Python.
                      I SS N :   2 0 8 8 - 8708   I n t J   E lec  &   C o m p   E n g ,   Vo l.  10 ,   No .   6 Decem b er   2020     5 9 3 2   -   5 9 3 9   5936       Fig u r 7 .   I m a g o f   p r o j ec t       3 . 1 .     Co nfi g ure  t he  AVR  m ic ro co ntr o ller  w it h t he  o utdo o r   T h s ec u r it y   s y s te m   is   d es ig n in g   f o r   t h o u td o o r   b y   u s i n g   A V R   m icr o co n tr o ller   co n f i g u r ed   w it h     B lu eto o th   s e n s o r   as  s h o w n   in   F i g u r 8   an d   co n n ec ted   w it h   D C   m o to r   to   o p en   an d   clo s th d o o r .     B y   s e n d in g   co d f r o m   t h e   s m ar tp h o n e   to   t h s e n s o r   t h m icr o co n tr o ller   w ill   m atc h   th co d e,   if   t h co d is   co r r ec th o u td o o r   w ill  o p en   an d   w elco m m e s s a g w ill  d is p la y   in   t h L C D,   else  t h o u t d o o r   w il n o b e   o p en ed .   Op en   an d   clo s th e   o u td o o r   u s in g   co d s en b y   s m ar tp h o n t h r o u g h   t h B lu eto o th   w i ll  allo w     th o cc u p an t to   ea s il y   co n tr o llin g   t h d o o r   an d   also   it  w il l b s ec u r e.           Fig u r 8 .   C o n f ig u r ed   th A V R   m icr o co n tr o ller       3 . 2 .     Co nfi g ure  t he  AVR  m ic ro co ntr o ller    T h s tep s   to   co n f i g u r t h A V R   m icr o co n tr o ller   C V A V R   s o f t w ar w ill  b u s ed   an d   f o llo w in g     th is   s tep s :   1)   T o   r ec eiv s ig n al  f r o m   th s m ar tp h o n ap p licatio n   US AR T   is   u s ed .     2)   T o   d is p lay   ea c h   ca s L C w i l l b co n f ig u r ed .     3)   C o n f i g u r ea ch   P o r t th at  d ep en d s   o n   t h n u m b er   r ec eiv ed   f r o m   t h s m ar tp h o n e.     T h m icr o co n tr o ller   p in s   co n n ec tin g   as  s h o w n   i n   F i g u r 9   an d   d et ails   b elo w :   1)   C o n n ec B l u eto o th   m o d u le   ( H C - 0 6 )   R x   to   T x   o f   th e   A V R   m icr o co n tr o ller   an d   T x   o f   th e   B lu eto o th   s e n s o r   to   R x   o f   t h A V R   m icr o co n tr o ller ,   also ,   co m p lete  V C C - V C C   an d   GND - GND.     2)   R ela y   to   P o r tB . 4     3)   AC   d ev ice  to   R ela y   4)   P o r tB . 0 , . 1 ,   . 2 ,   . 3   t o   th DC   m o to r   d r iv e.   5)   T u r n   o n   th s o f t w ar ap p licatio n   ( B T I n ter f ac e)   o n   th s m ar t p h o n e.   6)   C o n n ec t to   B lu eto o th   s e n s o r   HC - 06.   7)   T y p th n u m b er   o f   p ass w o r d   ( 1 2 3 4 ) .     8)   P r ess   th e   ter m i n al   k e y   a n d   t y p th n u m b er   w h ic h   a   s i g n   i n   t h co n f ig u r atio n   o f   th e   m i cr o co n tr o ller   f o r   ea ch   d ev ice,   f o r   ex a m p le,   No .   1   to   clo s th d o o r   an d   2   to   o p en   th d o o r   also   3   to   s w it ch   o n   t h li g h t ,     an d   4   s w i tch e s   o f f   th e   li g h t.   T h co n tr o llin g   o f   D C   m o to r   is   d o n b y   g i v i n g   p er io d   to   d r iv th D C   m o to r   f o r   ex a m p le  1 0 0 0   m s ec   to   d r iv th DC   m o to r   an d   o p en   th d o o r ,   also   th s a m ti m is   g iv e n   to   d r iv th DC   m o to r   in     th o p p o s ite  d ir ec tio n   to   clo s th e   d o o r .   T h p o r B . 4   co n n ec t s   to   an y   ap p lian ce s   to   co n tr o llin g   it  b y     th B lu eto o th   o f   th s m ar tp h o n e .   Evaluation Warning : The document was created with Spire.PDF for Python.
I n t J   E lec  &   C o m p   E n g     I SS N:  2088 - 8708       Desig n   a n d   imp leme n a   s ma r t sys tem  to   d etec t in tr u d ers   a n d   fir in g   u s in g   I OT   ( Hu s s a Ja w a d   K a d h im )   5937       Fig u r 9 .   T h e   p r o p o s ed   s y et m   f o r   th o u td o o r   co n tr o llin g       3 . 3 .     Co nfi g ure  t he  Arduin o   w it M AT L AB     First,  s tar M A T L A B   a n d   i n s t all  A r d u i n o   p ac k a g es  b y   clic k in g   t h A d d - O n s   d r o p - d o w n   m en u   a n d   click   Get   Har d w ar Su p p o r P ac k ag es.  T h p ac k a g w i ll  s t ar d o w n lo ad .   T o   estab lis h   a   co n n ec tio n   b et w ee n   MA T L A B   a n d   A r d u i n o   b o ar d s ,   th f o llo w i n g   co m m an d   ca n   b u s ed   w it h   M A T L A B   af ter   t h A r d u in o   p ac k ag i n s tal led .     ard=arduino ('port no.')   Th PI (2   &   8)   us ed   as   an   in pu wh ic re ce iv ed   th si gn al   fr om   th PI an MQ - se ns or respectively.   Th pi no (1 3)   us ed   to   se nd   th si gn al   to   th e   ca me ra   an to   tu rn   on   th li gh wh en   th e   sensors detect intruders or fire   readDi gitalPin(ard,2)   readDigitalPin(ard,8)   writeDigitalPin(ard,13,1)   writeDigitalPin(ard,13,0)     I n   th i s   p r o j ec t,  th ca m er w il b co n n ec ted   d ir ec tl y   w i th   t h s er v er   an d   co n f i g u r ed   w it h   t h Ma tlab   p r o g r a m   as  s h o w n   in   F ig u r 1 0 .   S o,   if   th er ar an y   in tr u d er s   t o   th s ec u r it y   zo n t h s e n s o r   s en d s   s ig n al  to   th A r d u in o   w h ic h   co n f ig u r ed   w it h   Ma tlab   p r o g r a m   to   ta k s n ap s h o f o r   t h i n tr o d u ce s   a n d   s e n d   it   b y   e m ai l   to   th o cc u p an t.           Fig u r 1 0.   Desig n   o f   th s m ar t s y s te m   Evaluation Warning : The document was created with Spire.PDF for Python.
                      I SS N :   2 0 8 8 - 8708   I n t J   E lec  &   C o m p   E n g ,   Vo l.  10 ,   No .   6 Decem b er   2020     5 9 3 2   -   5 9 3 9   5938   T h SMT P   p r o to c o co d is   w r itten   in   t h Ma tlab   p r o g r a m   t o   s en d   s n ap s h o o f   t h f ir o r   in tr u d er s   to   th o cc u p an t ' s   e m ail  e v er y   1 0   s ec o n d s .   Fro m   th e   r ec eiv ed   i m a g es   it i s   p o s s ib le   to   b u ild   d atab ase  ab o u t a ll   th s tep s   o f   f ir a n d   to   k n o w   h o w   it   h ap p en s ,   b y   tr i g g er   o f   an   elec tr icit y   o r   b y   i n tr u d e r s ,   an d   al s o   to   ta k e m er g e n c y   s tep s   b y   t h o w n er T o   d is p lay   th ca s es i n   ea ch   t i m e,   th f o llo w i n g   co d is   w r it ten   as     if(a==1)   writeDigitalPin(ard,13,1);   disp('intro');   else   writeDigitalPin(ard,13,0);   disp ('ok');   if(b==1)   writeDigitalPin(ard,13,1);   disp('fair');   else   writeDigitalPin(ard,13,0);   disp('ok');   end     I f   th er ar n o   in tr u d er s   an d   f ir ( OK)   w ill  d is p la y ,   el s i f   th er ar in tr u d er s   o r   f ir es  th en   ( I n tr u d er s )   o r   ( Fire s )   w i ll d is p la y   a n d   an   e m ail  w i ll   s e n d   to   th o cc u p an t.       4.   CO NCLU SI O N     I n   th i s   p ap er ,   th p r o p o s ed   s y s te m   h as  b ee n   d esi g n ed   u s i n g   m icr o co n tr o ller   A VR   A t m e g 8   m icr o co n tr o ller s   to   co n tr o t h ap p lian ce s   an d   t h m ai n   d o o r ,   also ,   s ec u r it y   s y s te m   is   d o n b y   u s in g   A r d u i n o   p r o g r a m m ed   u s in g   Ma t lab   to   d etec f ir in g   a n d   in tr u d er s .   T h p er f o r m a n ce   o f   t h d esi g n ed   s y s te m   h as  b ee n   test ed   a n d   it ' s   w o r k   f o u n d   v er y   co m f o r tab le  f o r   th o cc u p an to   co n tr o lli n g   o f f ice  o r   h o m e   ap p lian ce s   v ia  B lu eto o th   w it h   t h s o f t w ar ap p licatio n   o n   s m ar tp h o n e,   also ,   t h e   s m ar tp h o n u s in g   f o r   ca llin g ,   g a m e s ,   in ter n et,   t h at  is   m ea n   i n   t h f u t u r th s m ar tp h o n u s i n g   f o r   co n tr o lli n g   d ev ice s ,   also ,   t h is   d esig n   is   v er y   s i m p le  w ith   lo w   co s t.  I n   t h o th er   s id e,   th e   s ec u r it y   s y s te m   is   v er y   i m p o r tan to   d etec th in tr u d er s   a n d   s e nd   s n ap s h o th r o u g h   th e m ai to   t h o cc u p an ev er y   3   s ec o n d s   to   s to r d atab ase  ab o u all   th s tep s   o f     th in tr u d er s   an d   also   if   f ir o cc u r s   in   th b u ild in g   it  w ill  b v er y   ea s y   to   k n o w   t h r ea s o n   f o r   th f ir an d   al s o   to   tak e   e m er g en c y   s tep s   to   s to p   th f ir in g .   Fo r   th f u tu r s co p e,   it  is   n e ce s s ar y   to   d esig n   a   w ir ele s s   s e n s o r   n et w o r k   an d   c o n n ec ted   it  w it h   GP m ap   t o   g et  an   id ea   ab o u th s it u ati o n   o f   all  th p lace s   u s i n g   I o T .       RE F E R E NC E S     [1 ]   N.  De e p ik a ,   M .   A n a n d ,   F .   Je ra l d ,   A   n o v e th re e   ti e i n tern e o f   th in g h e a lt h   m o n it o rin g   sy ste m ,   In d o n e sia n   J o u rn a o El e c trica En g in e e rin g   a n d   Co m p u ter   S c ien c e ,   v o l.   15 ,   n o .   2 ,   p p .   6 3 1 - 6 3 7 ,   2 0 1 9 .     [2 ]   B.   M .   Esk o f ier,  e a l. ,   A n   Ov e rv ie w   o f   S m a rt  S h o e in   th e   In tern e o f   He a lt h   T h in g s:  G a it   a n d   M o b il it y   A s s e ss m e n in   He a lt h   P ro m o ti o n   a n d   Dise a se   M o n i to ri n g ,   Ap p li e d   S c ien c e s ,   v o l.   7 ,   n o .   1 0 ,   p p .   1 - 17 ,   2 0 1 7 .     [3 ]   A .   M a y u b ,   e t   a l. I m p le m e n tatio n   sm a rt   h o m e   u sin g   in tern e o f   th in g s ,   T EL KOM NIKA   ( T e lec o mm u n ic a ti o n ,   Co mp u t in g ,   El e c tro n ics   a n d   Co n t ro l) ,   v o l.   17 ,   n o .   6 ,   p p .   3 1 2 6 - 3 1 3 6 ,   2 0 1 9 .   [4 ]   S .   I.   A b d u ll a h i,   M .   H.  Ha b a e b i,   N.  A .   M a li k ,   In telli g e n f lo o d   d i sa ste w a rn in g   o n   th e   f l y d e v e lo p in g   Io T - b a se d   m a n a g e m e n p latf o r m   a n d   u sin g   2 - c las n e u ra n e tw o rk   to   p re d ict  f lo o d   sta tu s ,   Bu ll e ti n g   o El e c trica En g i n e e rin g   a n d   In f o rm a ti c s ,   v o l.   8 ,   n o .   2 ,   p p .   450 - 4 5 9 ,   2 0 1 9 .   [5 ]   D.  G iu sto ,   e a l. T h e   In tern e o f   T h in g s,   S p rin g e r ,   2 0 1 0 .     [6 ]   L .   D .   Xu ,   e a l.   In tern e o f   T h in g in   In d u stries A   S u rv e y , ”  IEE T ra n sa c ti o n o n   In d u stri a In fo rm a ti c s ,   v o l.   1 0 ,   n o .   4 ,   p p .   2 2 3 3 - 2 2 4 3 ,   N o v .   2 0 1 4 .   [7 ]   K.  L u e c h a p h o n th a ra   a n d   A .   V ij a y a lak sh m i,   Io T   b a se d   a p p li c a ti o n   f o m o n it o rin g   e lec tri c it y   p o w e c o n su m p ti o n   i n   h o m e   a p p li a n c e s,”   In ter n a ti o n a l   J o u rn a o El e c trica a n d   Co mp u ter   E n g i n e e rin g   ( IJ ECE ) ,   v o l.   9 ,   n o .   6 ,     p p .   4 9 8 8 - 4 9 9 2 ,   2 0 1 9 .   [8 ]   W .   E.   A u d e tt e ,   e a l. ,   Im p ro v e d   In tr u d e De tec ti o n   Us in g   S e is m ic  S e n so rs  a n d   A d a p ti v e   No ise   Ca n c e ll a ti o n , ”  Hu ma n ,   L ig h Ve h icle ,   a n d   T u n n e De tec ti o n   W o rk sh o p ,   th e   Arm y   Res e a rc h   L a b o ra t o ry   a n d   t h e   Na ti o n a l   Ce n ter   fo r P h y sic a l   Aco u stics ,   p p .   1 - 1 1 ,   2 0 0 9 .   [9 ]   Nw a lo z ie  G .   C . e a l. ,   En h a n c i n g   Ho m e   S e c u rit y   U sin g   S M S - b a se d   In tru d e De tec ti o n   S y ste m ,   In ter n a ti o n a l   J o u rn a o Co m p u ter   S c ien c e   a n d   M o b il e   C o mp u t in g v o l .   4 ,   n o .   6 ,   p p .   1 1 7 7 - 1 1 8 4 ,   Ju n .   2 0 1 5 .   [1 0 ]   M .   S a if u z z a m a n ,   S m a rt  S e c u rit y   f o a n   Or g a n iza ti o n   b a se d   o n   Io T ,   In ter n a t io n a J o u rn a o Co m p u ter   Ap p li c a ti o n s v ol .   1 6 5 ,   n o.   1 0 ,   p p .   3 3 - 3 8 ,   M a y   2 0 1 7 .   [1 1 ]   J .   Ba n g a li   a n d   A S h a li g ra m ,   D e sig n   a n d   Im p le m e n tatio n   o f   S e c u rit y   S y ste m f o S m a rt  Ho m e   b a se d   o n   G S M   tec h n o l o g y ,   In ter n a ti o n a J o u rn a o S m a rt Ho me v o l .   7 ,   n o.   6 ,   p p .   2 0 1 - 2 0 8 ,   2 0 1 3 .   Evaluation Warning : The document was created with Spire.PDF for Python.
I n t J   E lec  &   C o m p   E n g     I SS N:  2088 - 8708       Desig n   a n d   imp leme n a   s ma r t sys tem  to   d etec t in tr u d ers   a n d   fir in g   u s in g   I OT   ( Hu s s a Ja w a d   K a d h im )   5939   [1 2 ]   T .   S .   G u n a w a n e a l. P e rf o rm a n c e   Ev a lu a ti o n   o f   S m a rt  Ho m e   S y st e m   u sin g   In tern e o f   T h in g s ,   In ter n a ti o n a l   J o u rn a o El e c trica a n d   C o mp u t e r E n g i n e e rin g   ( IJ ECE ) v o l.   8 ,   n o .   1 ,   p p .   4 0 0 - 4 1 1 ,   F e b .   2 0 1 8 .   [1 3 ]   C.   Kim ,   Y.  Ki m ,   a n d   H.  Ju n g ,   Io T   tas k   m a n a g e m e n s y ste m   u sin g   c o n tro b o a r d ,   In d o n e sia n   J o u rn a o El e c trica l   En g i n e e rin g   a n d   C o mp u ter   S c ien c e   ( I J EE CS ) ,   v o l.   1 3 ,   n o .   1 ,   p p .   1 5 5 - 1 6 1 ,   Ja n .   2 0 1 9 .   [1 4 ]   T A d io n o e a l. ,   Cu rtain   Co n tro S y ste m De v e lo p m e n o n   M e sh   W irele ss   N e t w o rk   o f   th e   S m a rt   H o m e , ”  Bu ll e ti n   o El e c trica En g in e e rin g   a n d   In f o rm a ti c s v o l.   7 n o .   4 ,   p p .   6 1 5 - 6 2 5 De c .   20 18 .   [1 5 ]   H J .   Ka d h im ,   Co n tr o ll i n g   Ho m e   a n d   Of f ice   A p p li a n c e w it h   th e   Blu e to o th   o f   S m a rtp h o n e ,   In ter n a ti o n a l   J o u r n a l   o Co m p u ter   A p p l ica ti o n s v ol .   1 5 2 ,   n o.   3 ,   p p .   25 - 2 8 ,   Oc t .   2 0 1 6 .   [1 6 ]   M a th w o rk s.  [ On l in e ] ,   A v a il a b le:  h tt p s:/ /www . m a th w o rk s.c o m   [1 7 ]   R.   M it ra   a n d   R.   G a n ig a ,   n o v e a p p ro a c h   to   se n so im p le m e n tatio n   f o h e a lt h c a re   s y ste m u sin g   in tern e o f   th in g s,”   In ter n a ti o n a J o u rn a o El e c trica a n d   C o mp u ter   En g in e e rin g   ( IJ ECE ) ,   v o l.   9 ,   n o .   6 ,   p p .   5 0 3 1 - 5 0 4 5 ,   2 0 1 9 .     [1 8 ]   S .   G .   P riy a d h a rsh in i,   e a l. ,   A n   Io T   b a se d   s m a rt  m e terin g   d e v e lo p m e n f o e n e rg y   m a n a g e m e n s y ste m ,   In ter n a t io n a J o u rn a o E lec trica a n d   C o mp u ter   En g in e e rin g   ( IJ ECE ) ,   v o l.   9 ,   n o .   4 ,   p p .   3 0 4 1 - 3 0 5 0 ,   2 0 1 9 .   [1 9 ]   A .   J.  S a m u e a n d   S .   S e b a stian ,   A n   a lg o rit h m   f o Io T   b a se d   v e h icle   v e rif ic a ti o n   sy ste m   u sin g   RF ID,”  In ter n a ti o n a l   J o u rn a o El e c trica a n d   C o mp u t e r E n g i n e e r in g   ( IJ ECE ) ,   v o l.   9 ,   n o .   5 ,   p p .   3 7 5 1 - 3 7 5 8 ,   2 0 1 9 .   [2 0 ]   D.  Ja v a l e ,   e a l. ,   S m a rt  D e te c ti o n   o f   P a rk in g   Ra tes   a n d   De ter m in in g   th e   Oc c u p a n c y ,   i Pro c e e d in g   o f   In ter n a t io n a C o n fer e n c e   o n   C o mp u t a ti o n a S c ien c e   a n d   A p p li c a ti o n s ,   p p .   3 8 1 - 3 9 0 ,   2 0 2 0 .   [2 1 ]   K.  G a u ta m ,   e a l. ,   In tern e o f   T h in g ( Io T a n d   De e p   Ne u ra Ne tw o rk - Ba se d   In telli g e n a n d   Co n c e p tu a M o d e f o r   S m a rt  Cit y ,   Fro n ti e rs   in   In telli g e n Co mp u ti n g T h e o ry   a n d   A p p li c a ti o n s ,   p p .   2 8 7 - 3 0 0 ,   2 0 2 0 .   [2 2 ]   M .   S w a th a   a n d   K.  P o o ja,  S m a rt   Ca P a rk in g   w it h   M o n it o rin g   S y ste m ,   2 0 1 8   IEE In ter n a ti o n a Co n fer e n c e   o n   S y ste m,  Co mp u ta ti o n ,   A u to m a ti o n   a n d   Ne tw o rk in g   ( ICS CA) ,   p p .   1 - 5 ,   2 0 1 8 .   [2 3 ]   M.   I.   Yo u n is  a n d   T .   F .   Hu ss e in ,   De si g n   a n d   Im p le m e n tatio n   o f   a   Co n tac tl e ss   S m a rt  Ho u se   Ne t w o rk   S y ste m ,   In ter n a t io n a J o u rn a o E lec trica a n d   C o m p u ter   En g in e e rin g   ( IJ ECE ) ,   v o l.   8 ,   n o .   6 ,   p p .   4 6 6 3 - 4 6 7 2 ,   2 0 1 8 .   [2 4 ]   A.   H.  A li ,   e a l. S m a rt  M o n it o rin g   S y ste m   f o P re ss u re   Re g u lato b a se d   o n   I o T ,   In ter n a ti o n a J o u rn a o f   El e c trica a n d   C o mp u ter   En g in e e rin g   ( IJ ECE ) ,   v o l.   9 ,   n o .   5 ,   p p .   3 4 5 0 - 3 4 5 6 ,   2 0 1 9 .   [2 5 ]   Ra jee v   P iy a re ,   In tern e o T h in g s:  Ub iq u it o u Ho m e   Co n tro a n d   M o n i to ri n g   S y ste m   u sin g   A n d ro i d   b a se d   S m a rt  P h o n e ,   I n ter n a ti o n a l   J o u r n a l   o f   In ter n e o f   T h in g s ,   p p .   5 1 1 ,   2 0 1 3 .       B I O G RAP H I E S   O F   AUTH O RS        H u ss a m   J a w a d   K a d h i m   wa b o rn   i n   Hill a h - Ira q .   He   re c e iv e d   a   B.   S e   d e g re e   in   e lec tri c a l   e n g in e e rin g   f ro m   th e   Un iv e rsit y   o f   Ba b y lo n   in   2 0 0 7   a n d   a n   M .   tec h   d e g re e   in   Co m m u n ica ti o n   S y st e m   En g in e e rin g   in   S HIA T S - DU ,   A ll a h a b a d   2 0 1 4 .   He   is  w o rk in g   a a   lec tu re in   t h e   c o ll e g e   o f   sc ie n c e   o f   w o m e n   /co m p u ter  d e p a rtm e n a Ba b y lo n   Un iv e rsit y .   He   is   c u rre n tl y   stu d y in g   f o   a   P h . D.  d e g re e   a th e   e lec tri c a e n g in e e rin g   d e p a rtm e n in   th e   c o ll e g e   o f   e n g in e e rin g   a   th e   Un iv e rsity   o f   Ba b y lo n .   His res e a rc h   in tere sts in c lu d e   Io T ,   p o w e c o n su m p ti o n ,   e tc         M o h a m m e d   J a b b a r   M o h a m m e d   A m e e n   wa s b o rn   in   Hill a h - Ira q .   He   re c e iv e d   a   B. S e   d e g re e   in   e lec tri c a e n g in e e rin g   f ro m   th e   Un iv e rsity   o f   Ba b y lo n   in   2 0 0 7   a n d   a n   M S c   d e g re e   in   c o m m u n ica ti o n e n g in e e rin g   f ro m   A l - A h li y y a   Am m a n   Un iv e r si ty   in   2 0 1 7 ,   Jo r d o n .   He   is   w o rk in g   a a   lec tu re in   th e   c o l leg e   o f   e n g in e e rin g /ele c tri c a d e p a rtm e n a Ba b y lo n   Un iv e rsity .   He   is  c u rre n tl y   w o rk in g   h is  P h . D .   d e g re e   a t   th e   e lec tri c a l   e n g in e e r in g   d e p a rtm e n in   th e   c o ll e g e   o f   e n g in e e rin g   a th e   Un iv e rsit y   o f   Ba b y lo n .   His  re se a rc h   in tere st in c lu d e   Io T ,   M IM O,  OFDM ,   F EC,   a n d   5 G ,   e tc.     Evaluation Warning : The document was created with Spire.PDF for Python.