arduino_simulink_course class 4 2-9

Upload: adarleen-arevalo-valle

Post on 04-Jun-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/14/2019 Arduino_Simulink_course Class 4 2-9

    1/6

    Arduino-SimulinkCourse

    26/8to 6/9

    9-12am, daily

    University of Jordan

    Course coordinator:Mohammad AlShawabkeh/ B.Sc student

    Mechatonics en!ineein! "9

    #n!91moh$hotmail.com%962&9&1'"681

    Prerequisites:#lectonics 1

    (i!ital lo!ic desi!n

    1. Dealing with switching:1.1 The Relay:

    Createdby: MohammadAlShawabkeh

    MechatronicsEngineering/B.Sc.Student

    Facultyof Engineering& Technology

    The Universityof JordanMadaba,Jordan

    www.eng91moh.blogspot.com

    Mobile/Cell hone: +962797150681

    mailto:[email protected]:[email protected]
  • 8/14/2019 Arduino_Simulink_course Class 4 2-9

    2/6

    A elay is an electically o)eated switch. Many elays use an electoma!net to

    o)eate a switchin! mechanism mechanically, but othe o)eatin! )inci)les ae also

    used. *elays ae used whee it is necessay to contol a cicuit by a low-)owe si!nal

    +with com)lete electical isolation between contol and contolled cicuits, o whee

    seeal cicuits must be contolled by one si!nal.

    +flybac diode deinition, connection +as a discrete, with inductive loads.

    1.! !"!!!! "P" transistor:

    0he !"!!!!is a common "P"bi)ola unction tansisto used o !eneal )u)ose

    low-)owe a#$lifyingo switchinga))lications.

    +biasin!, connection.

    !. %oltage regulation:A voltage regulatoris desi!ned to automatically maintain a constant olta!e leel.

  • 8/14/2019 Arduino_Simulink_course Class 4 2-9

    3/6

    +connection, numbe +&8,&9, ma 3in.

    &. 'i#ulin and Physical signals:Simulink si!nal deals with the main blocks in Simulink with constant, dis)lay,switchin! blocks, ..etc, )hysical si!nal deals with the electical, mechanical,

    themal, ..ect si!nals, but we can4t deal with these si!nals to!ethe diectly, so we need

    to conesion )ocess between them, this can be done usin! )hysical to Simulink 5

    P'('i#ulin Converter5, and Simulink to )hysical 5'i#ulin(P' Converter5.

    0hese blocks must use the 5'olver Configuration5 block, it used to e)esent

    )hysical netwok enionment.

    ). Dealing with a Threshold:0he best method to deal with a theshold is ia usin! the 5P' 'witch5 ees to

    $hysical signal- block, it e)esents a switch to com)aes the alue o the $hysical

    signal. 7 the second in)ut is !eate than o eual to the theshold, then the out)ut is

    connected to the ist in)ut. thewise, the out)ut is connected to the thid in)ut.*how to use with thresholds+,

    ). -ini $roects:

  • 8/14/2019 Arduino_Simulink_course Class 4 2-9

    4/6

    :.1 ;se manual switch to contol two

  • 8/14/2019 Arduino_Simulink_course Class 4 2-9

    5/6

    c. 0he contol system die the )um) accodin! to an adustment )otentiomete.

    0he system chan!es the ranges+/ ranges o the )otentiomete accodin! to

    the liuid4s leel directly, as below

    d. 0he alam tuned on when liuid eaches less than leel 1 in the tank, +use

    elay, bu@@e, and a ed

  • 8/14/2019 Arduino_Simulink_course Class 4 2-9

    6/6

    /.! 'che#atic diagra#:

    1. 23Ds:

    !. 4u55er:

    &. 6(seg:

    ). Relay *at transistor 1,:

    /. DC #otor *at transistor !,:

    7. Potentio#eter:

    6. 2DR:

    8References:

    1. Books

    A. actical #lectonics o 7nentos, aul Sche@, =o)yi!ht 2""" by 0he McCaw-Dill =om)anies. All

    i!hts eseed.

    B. 7ntoduction to Simulink E with #n!ineein! A))lications, Steen 0. Fais, =o)yi!ht E 2""6 chad

    ublications. All i!hts eseed.

    =. (esi!nin! #mbedded Systems with 7= Micocontolles, Second #dition,=o)yi!ht 2"1" , 0im

    Gilmshust. ublished by #lseie