quick prototyping of real time monitoring system using prote

Upload: taridan

Post on 04-Jun-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/13/2019 Quick Prototyping of Real Time Monitoring System Using Prote

    1/11

    Quick Prototyping of Real Time Monitoring System Using Proteus Development Tool: a Case for Self

    Diagnostic Traffic Light System

    1Mbonu ekene Samuel, 2 Okwu Patrick Ikechukwu, 3Ezekwe Chinwe Genevra, 4!uzie "chechukwu Chiemezuwo

    1, 2, 3, 4 Electronics Development Institute, Awka

    National agency for Science an Engineering Infrastructure !NASENI"mbo#eke#$am%&ahoo'com,okwu(i%)mail'com,norakin)chi%&ahoo'com, a!uzia$o*tbiz%&ahoo'com

    !stract

    "n this paper# a self $iagnostic system for

    maintenance of traffic light system is $evelope$%

    The &uality of light pro$uce$ !y the light emitting

    element of traffic light system at remote site is

    monitore$ via graphical user interface '(U")% The

    remote system*s status report o!taine$ from the

    (U" helps the maintenance operator's) to change

    or repair the traffic light hea$ at appropriate

    time% The remote site consists of a prototype T+

    ,unction traffic light# controlle$ !y an intelligent

    processor 'microcontroller) -hich also monitors

    an$ $iagnoses fault's) in the system an$ alerts the

    central server via (SM mo$em interface$ to it%

    The microcontroller emulates the attention 'T)

    comman$ of the mo$em an$ uses it to sen$ fault

    alert in form of short message service 'SMS) to the

    host server% The server has (SM receiver

    interface to it through a smart level converter'ma. /0/)% The tools use$ in the $evelopment of

    the prototype T+1unction traffic light inclu$e

    proteus 2irtual Simulation Mo$ule Soft-are

    Development 3it '2SMSD3) use$ to $evelop the

    (U" an$ the host server# macro integrate$

    $evelopment environment'M"D4) use$ to e$it an$

    assem!ly the soft-are program% 5ellon

    programmer -as use$ to transfer the assem!le$

    program to the microcontroller chip% The results

    sho-e$ that proteus professional# though

    primarily a virtual $evelopment tool can also !e

    use$ for real time $evelopment of a prototype

    em!e$$e$ system# re$ucing $esign+market time%

    3ey5or$s: 6self $iagnostic# graphical user

    interface# proteus 2SM# real time $evelopment#

    prototype em!e$$e$ system%7

    I# IN$%&D'($I&N

    $)e wor (rotot&(e comes from t)e *atin wors

    (roto, meaning ori)inal, an t&(u$, meaning*orm or

    mo+el# In a non+tec)nical contet, a prototype is an

    especially representative eample of a given

    category# In software evelopment, a prototype is a

    ruimentary working moel of a prouct or

    information system, usually -uilt for emonstration

    purposes or as part of t)e evelopment process# In t)esystems evelopment life cycle !SD*(" prototyping

    moel, a -asic version of t)e system is -uilt, teste,

    an t)en reworke as necessary until an accepta-le

    prototype is finally ac)ieve from w)ic) t)e

    complete system or prouct can now -e evelope# In

    prototype+-ase programming, a prototype is an

    original o-.ect/ new o-.ects are create -y copying

    t)e prototype# In )arware esign, a prototype is a

    0)an+-uilt0 moel t)at represents a manufacture

    !easily replica-le" prouct sufficiently for esigners

    to visualie an test t)e esign 1#

    $)e term 5maintenance6 means to keep t)e e7uipment

    in operational conition or repair it to its operational

    moe# 8aintenance )as ma.orly -een applie in

    prouction system w)ere t)e main o-.ective is to

    )ave increase availa-ility of prouction systems,

    wit) increase safety an optimie cost 1#

    Accoring to 1, t)e maintenance strategies t)at are

    commonly applie in plants inclue -reak own

    maintenance, preventive or sc)eule maintenance,

    preictive or conition -ase maintenance,

    opportunity maintenance an esign out

    maintenance# $)e e7uipment uner -reakown

    maintenance is allowe to run until it -reaks own

    -efore repairing it# $)is strategy is suita-le for

    e7uipments t)at are not critical an )ave spare

    capacity or reunancy availa-le# In preictive

    maintenance, t)e conition of t)e system is

    monitore# (onition monitoring !(8" etects an

    iagnoses faults an it )elps in planne maintenance

    1

    mailto:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]
  • 8/13/2019 Quick Prototyping of Real Time Monitoring System Using Prote

    2/11

    -ase on e7uipment conition# $)is conition -ase

    maintenance strategy or preictive maintenance is

    preferre for critical systems an for suc) systems,

    -reakown maintenance is to -e avoie# A num-er

    of (8 tec)ni7ues suc) as vi-ration, temperature, oil

    analysis, etc#, )ave -een evelope, w)ic) guie t)e

    users in planne maintenance 1# None of t)ese

    tec)ni7ues can -e applie irectly to traffic lig)t

    system w)ose failure can -e as critical as prouction

    plant since it can lea to loss of life, .o-, even

    property# 9ust imagine a fire fig)ter s7ua -eing

    trappe in a traffic )ol up as a result of traffic lig)t

    malfunction or failure# 8aintenance culture )as -een

    very poor wit) respect to traffic lig)t system,

    evience -y lack of or scanty pu-lications an

    conference proceeings on t)e su-.ect matter# $)is

    paper t)erefore seeks to evelop a self iagnostic

    system t)at will monitor t)e state of traffic lig)tsystem an sen situation report to maintenance

    operators# $raffic lig)t )ea is use as a case stuy

    Self+iagnosis, a term traitionally use in meical

    science to mean t)e process of iagnosing or

    ientifying meical conitions in oneself, )as in

    recent years -een applie in science an engineering

    for fault ientification an correction# Aut)ors of 3

    evelope low )arware over)ea self+iagnosis

    tec)ni7ue using ree+solomon coes for self+

    repairing c)ips# $)e circuit uner +ia)no$i$ is

    assume to -e compose of a large num-er of fiel

    repaira-le units !:%'s", w)ic) can -e replace wit)spares w)en t)ey are foun to -e efective# 9en+

    ()ie) ;e) et al in 4 propose a systematic

    approac) in testing flas) memories# incluing t)e

    evelopment of marc)+like test algorit)ms, cost+

    effective fault +ia)no$i$ met)oology, an -uilt+in

    $el*+test !

  • 8/13/2019 Quick Prototyping of Real Time Monitoring System Using Prote

    3/11

    :igure 1G virtual com port figure 2G Interfacing com port to microcontroller

    :igure 3G conceptual arc)itecture moel of t)e $raffic monitoring System

    3

    Intelligent Agent Control

    Program

    Data base Transmitter

    protocol

    Embedded

    API

    Interface

    GSM MODEM

    SMS

    Cloud

    Embedded

    API

    Interface

    Managers

    mobile phone

  • 8/13/2019 Quick Prototyping of Real Time Monitoring System Using Prote

    4/11

    """% Description of the Self $iagnostic

    traffic light System

    :igure 3s)ows t)e conceptual arc)itecture moelof

    t)e traffic lig)t monitoring system wit) low cost

    grap)ical user interface# 'I an )is mo-ile station#

    8 alarm is also activate#

    $)e manager upon receiving t)e alert

    instructs t)e tec)nician to go an rectify t)e

    faults!s" at t)e remote site# After clearing

    t)e fault!s", t)e tec)nician or operator resets

    t)e system ena-ling t)e intelligent controller

    to sen situation report to t)e manager

    -efore continuing its operation#

    :igure 4G prototype traffic lig)t system

    "2% Technical Solution an$ Pro1ect

    Details

    % "mplementation of traffic light system at

    remote site%

    4

  • 8/13/2019 Quick Prototyping of Real Time Monitoring System Using Prote

    5/11

    :igure =G t)e sc)ematic esign of t)e traffic lig)t

    system#

    :igure = s)ows t)e sc)ematic esign for

    implementation of t)e traffic lig)t system at remote

    site an is mae up of t)e following components#

    The "ntelligent Controller: Atmel BCc=1

    microcontroller is use# It )as 4 inputoutput ports, 32

    inputoutput pins, serial communication port, 4F- of

    internal %&8, 12B k- of internal %A8 among ot)er

    features 11# in C is t)e %ESE$ pin# It is an input

    an is active )ig) !normally low"# 'pon applying a

    )ig) pulse to t)is pin, t)e microcontroller will reset

    an terminate all activities# $)is is often referre to

    as a power on reset# In orer for t)e %ESE$ input to

    -e effective, it must )ave a minimum uration of 2

    mac)ines cycles 12# Now t)e voltage c)arge in an

    %( circuit is given -y

    c J !1 K eL+t%(" 1CMMMMMM !1" 13

    H)ere %( J time constant

    t J 2 mac)ines cycles

    now J cc J =v

    c J voltage across (3 w)ic) is usually less t)an

    cc -ecause of isc)arging action of t)e capacitor

    t)roug) resistor %1#

    8ac)ine cycle J 1value of crystal128? 2

    1mac)ine cycle J 11#=C2 1L@ 12 1L@ J

    C21#@ F?

    8ac)ine cycle J 1C21#@ F? J 1#B=sec

    2mac)iunes J 2 1#B= J 2#1s

    :rom !1" c J 1 K eL+t%c

    eL+t%c J !1 K c"

    lneL+t%c J ln !1 K c"

    c J +t%!1 K c"

    *et %1 J 1k, t)en c3 J 1O, t J 2#1s

    $)e crystal oscillator !P1" provies operating

    fre7uency of t)e microcontroller# $)e 11#=C28?

    value was c)osen so t)at S8A%$ interface -etween

  • 8/13/2019 Quick Prototyping of Real Time Monitoring System Using Prote

    6/11

    t)e controller an stanar moems can -e ac)ieve

    12# (apacitors (1 an (2 provie sta-ility to t)e

    crystal uring operation#

    The relay "nterface "C# UL8/990: t)is is use to

    ac)ieve a neat an smoot) interface -etween t)e

    controller an t)e ac relays# 8ore information a-out

    t)e c)ip can -e gotten from 14#

    The traffic ul!s: 22vac, 4H -ul-s are use as

    lamp )eas# $)ey are interface to t)e controllers

    t)roug) t)e relays#

    (SM mo$em: Alt)oug) t)ere are >S8 moems

    customie for em-ee applications, Sagem p)one

    !8y+P= " was use in t)is work -ecause of its low

    cost an ot)er avantages enumerate in 1=#

    The fee$!ack 4lement: :igure @ s)ows t)e

    epane circuit iagram of t)e fee -ack element#

    :igure @G epane circuit iagram of fee-ack element#

    It is mae up of resistors !%2+%, eac) 1 kilo o)ms"

    connecte in series wit) a lig)t epenent resistor

    !*D%"# $)is arrangement forms a voltage ivier an

    t)e output is fe into t)e input of an operational

    amplifier !op+amp"# $)e ot)er input of t)e amplifier

    is reference to 2# $)e value of t)e *D% on total

    arkness is a-out 2 kilo o)ms# So t)e input to t)e op

    amp at total arkness is

    op J !2 !2Q1""R=

    !

  • 8/13/2019 Quick Prototyping of Real Time Monitoring System Using Prote

    7/11

    J 3#33v#

    $)is will force t)e op+amp output to )ig)# Now w)en

    lig)t from t)e traffic lamp )ea falls on t)e *D%, its

    resistance reuces forcing t)e op amp input to rop

    -elow 2v t)ere-y making t)e output low# It is t)ese

    c)anges t)at t)e intelligent agent monitors an makes

    ecision -ase on t)e rule em-ee in t)e

    microcontroller

    % ;ault "$entification

    4ac) time t)ere is a mismatc) of input pattern an

    epecte output fee-ack pattern, t)e controller sens

    sms to t)e )ost computer an also to t)e mo-ile

    p)one of t)e manager# $)e sms contains t)e state

    coe of t)e pattern in 7uestion, t)e input pattern an

    real+time fee-ack pattern# $)e )ost computer also

    )as ata -ase containing t)e vectors of input pattern

    an epecte output fee -ack pattern# :ault

    ientification is one -y complementing t)e real+time

    fee-ack pattern an using t)e result to activate t)e

    virtual traffic lig)t# $)e )ost computer uses t)e input

    pattern to etract t)e epecte output result an

    isplay it on *(D# $)us, -y reaing t)e information

    on t)e *(D an o-serving t)e virtual traffic lig)t, t)e

    manager can easily ientify t)e fault!s"#

    C% Soft-are "mplementation

    $)e flow c)art t)at implements t)e program control,

    monitoring an sms alert is s)own in figure C# Note

    t)at fee -ack is connecte to port1 !1" an output

    -ul-s to port !" of t)e microcontroller as s)own

    in figure 3# N is use to represent states, i#e, NJ K

    =#

    D% "mplementation of (raphical User "nterface

    :igure G >'I for $raffic *ig)t 8onitoring

    :igure s)ows t)e >'I at t)e )ost computer# It

    comprises *(D isplay unit, t)e virtual traffic lig)t)eas, >S8 moem receiver, -uer alarm, all

    interface to intelligent microcontroller# $)e

    controller receives t)e sms fault alert t)roug) t)e

    receiver, etracts an interprets it an t)en, isplays

    t)e result on t)e *(D# $)e present state of t)e traffic

    lig)t )eas at remote site is replicate -y t)e virtual

    )eas# :igure B s)ows t)e flow c)art for fault

    "

  • 8/13/2019 Quick Prototyping of Real Time Monitoring System Using Prote

    8/11

    iagnosis at manager6s )ost computer#

    :igure BG flow c)art for fault iagnosis at )ost

    computer

    #

    $tart

    Initiali%e the s&stem

    An& fa'lt

    alert(

    Displa& defa'ltmessage

    Chec) for sms fa'lt alert

    E*tract the fa'lt

    message

    +E$

    ,-

    ,- +E$

    Displa& fa'lt alert on .CD/ on

    alarm

    Displa& the fa'lt on the 0irt'al traffic light

    abd

    Is

    s&stem

    reset(

  • 8/13/2019 Quick Prototyping of Real Time Monitoring System Using Prote

    9/11

    :igure CG compresse flow c)art for remote site implementation

    E# Test an$ Result#

    $tart

    Initiali%e the s&stem

    An&

    mismatc

    h(

    $et ,

    $end o'tp't pattern for state , to

    P

    ait for appropriate Time/Tn

    P't the s&stem on hold

    $end sms to manager

    5a'lt

    cleare

    d(

    Is

    ,(

    Collect feedb) and chec) for

    mismatch

    $et ,

    Increment ,

    +E$

    ,-

    ,-

    +E$

    ,-

    +E$

  • 8/13/2019 Quick Prototyping of Real Time Monitoring System Using Prote

    10/11

    $)e complete traffic lig)t system was teste an t)e

    result ta-ulate as s)own in ta-le 1#

    $a-le 1G summary of test an result

    $est Epecte %esult %esult o-taine

    &pen an

    run t)e

    >'I at

    )ost

    computer#

    $)e >'I s)oul

    isplay 5$raffic lig)t

    monitoring system6

    wit) %e an >reen

    lig)ts s)owing as

    epicte in figure #

    $)e >'I isplaye

    5$raffic lig)t

    monitoring system6

    after 2 secons# $)e

    %e an >reen

    lig)ts also came on#

    ower on

    t)e traffic

    lig)t

    control

    system at

    t)e remote

    en#

    $)e system s)oul

    initialie an sen

    sms status report to

    )ost computer#

    $)ereafter system

    s)oul start working

    accoring to state

    transition ta-le 1#

    $)e >'I i

    receive t)e status

    report after 1

    secons as s)own in

    figure 1#$)e

    system starte

    working accoring

    to ta-le 1#

    Disena-le

    %ED -ul-

    in t)e

    N&%$?

    irection

    using

    simulator

    switc),

    SH1#

    $)e system at remote

    en s)oul sen error

    report to t)e )ost

    computer an mo-ile

    p)one of t)e

    manager,

    5Q234B@B@33CB6,

    an put t)e traffic

    lig)t on )ol#

    $)e )ost computer

    an t)e p)one wit)

    t)e mo-ile num-er

    6Q234B@B@33CB6

    receive sms error

    report# All t)e

    traffic lig)ts went

    off even t)oug)

    t)ere was still

    power in t)e

    system#

    Deactivate

    t)e switc)

    SH1 an

    reset t)e

    system at

    remote site

    $)e remote system

    s)oul sen status

    report to )ost

    computer an

    manager6s mo-ile

    p)one# $)ereafter, t)e

    system s)oul start

    working normal#

    $)e manager an

    t)e )ost computer

    receive sms status

    report 1= secons

    after resetting t)e

    system at remote

    site# $)e remote site

    also starte working

    normal#

    # (&N(*'SI&N

    uick prototyping )elps to reuce esign+market

    time# roteus S8 )as in-uilt capa-ilities t)at ena-le

    fast em-ee system prototyping# $)ese capa-ilities

    can -e eplore# $)e com port an t)e approac) use

    in t)is work can -e employe in ot)er system

    evelopment#

    %eferencesG

    1 Felly, Ant)ony, T8anaging maintenanceresourcesU,

  • 8/13/2019 Quick Prototyping of Real Time Monitoring System Using Prote

    11/11

    11