electroniczeyd

Upload: name-unknown

Post on 06-Apr-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/3/2019 ElectronicZeyd

    1/6

    1

    LIN SYSTEM DESIGN PROJECT FOR MIRROR AND DOOR

    CONTROL IN CARS

    NAME: ZEYD OKUTAN

    STUDENT ID: 172754

    INSTRUCTOR: PROF. GUIDO ALBERTENGO

    SEMESTER: 2010/11 SUMMER

  • 8/3/2019 ElectronicZeyd

    2/6

    2

    1. INTRODUCTION

    In advance there will be a design of LIN network for an automobile which needs basic

    controls of doors and mirrors functions. In order to control all the sensors and

    actuators, one main master, ECU (Engine Control Unit) will be needed in the center of

    all.

    In the design, 6 modules will be used in order to accomplish the control commands

    given by the users. Also the user manual will be defined. The system architecture will

    be defined as 4 modules for each door and 2 modules for each mirror.

    2. MODULES

    Module 1(D1): This module will work for the front left door functions as windows up-

    down actuators, mirrors, puddle lamp sensor for the open door, a switch for car lock

    (and also the open door sensor) and also the switches for all doors.

    Module 2(D2): Module will control the front right door functions which are related

    with window positioning sensors/actuators and also the door locks operations

    switch/sensors and also the puddle lamp

    Module 3(D3): Module will control the left rear functions which are related with

    window positioning sensors/actuators and also the door locks operations

    switch/sensors and also the puddle lamp

    Module 4(D4): Module will control the rear right door functions which are related

    with window positioning sensors/actuators and also the door locks operations

    switch/sensors and also the puddle lamp

    Module 5 (M1): This module will be functioning for the control of external mirror on

    the left. Module will control the lighting, open-close of mirrors and the lateral-vertical

    positioning of the mirror.

    Module 6(M2): ): This module will be functioning for the control of external mirror

    on the right. Module will control the lighting, open-close of mirrors and the lateral-

    vertical positioning of the mirror.

  • 8/3/2019 ElectronicZeyd

    3/6

    3

    3. USER MANUAL

    This section, the buttons and switches which are used by the occupants will bedefined.

    a. Front Left (Driver):- 4 unit of window control switches- 1 switch to select the mirror (left-right)- 1 switch to turn the light on/off of the mirrors- 1 switch to flap the mirrors- 1 switch to move the mirror vertical direction- 1 switch to move the mirror horizontal direction- 1 switch to lock/unlock the drivers door- 1 switch to lock/unlock all the doors (child lock)

    b. Front Right & Rear Doors:- 1 switch (per each) to window control- 1 switch for lock/unlock the door

  • 8/3/2019 ElectronicZeyd

    4/6

    4

    4. LIN NETWORK

    With the start of the engine, ECU will begin to send messages to the modules in

    order to get the position data from the sensors. These signals calledHeaders,

    this is System Status Check will examine if there is any request from theoccupants.

    After each module gets the signal from the Master, Modules (Slaves) send the

    messages back.

    Header Status

    000100 Front-Left Door Check

    000010 Front-Right Door Check

    000001 Rear-Left Door Check

    000011 Rear-Right Door Check

    The headers are supposed to be 6 bites. There are some forbidden combinations

    which cannot be used. (111111-111110-111101-111100)

    Messages

    Thus, after the slaves check the status they will sendMessages to the Master

    about data taken by sensors. Messages will be different for driver door and forthe others:

    Front Left Door (Drivers Controls)

    1st

    Bit Front-Left Door Window Move Up

    2nd Bit Front-Left Door Window Move Down

    3rd

    Bit Front-Right Door Window Move Up

    4th

    Bit Front-Right Door Window Move Down

    5th

    Bit Rear-Left Door Window Move Up

    6th

    Bit Rear-Left Door Window Move Down

    7th

    Bit Rear-Right Door Window Move Up

    8th

    Bit Rear-Right Door Window Move Down

    9th

    Bit Door Sensor 0-Closed 1-Opened

    10th

    Bit Flap the Mirrors 0-Open 1-Close

    11th

    Bit Select the Mirrors 0-Left 1-Right

    12th

    Bit Mirror Lights 0-Light off 1-Light on

    13th

    Bit Move Mirror Up

    14th

    Bit Move Mirror Down

    15th

    Bit Move Mirror Left

    16th

    Bit Move Mirror Right

    17th

    Bit Unlock/Lock the Front-Left Door 0-Unlock 1-Lock

    18th

    Bit Unlock/Lock All the Doors (Child Lock) 0-Unlock 1-Lock

    This message contains 18 bites of 24 bites which is 3bytes in total

  • 8/3/2019 ElectronicZeyd

    5/6

    5

    Front Right or Rear Doors

    1st

    Bit Door Sensor 0-Closed 1-Opened

    2nd

    Bit Window Move Down

    3rd

    Bit Window Move Up4

    thBit Lock/Unlock the Door 0-Unlock 1-Lock

    This message contains 4 bites of 8 bites total 1 Byte for Each

    Commands

    Messages consists information about the buttons and sensors. After the Master

    (ECU) has all the messages from the modules, it can send signals calledCommands to the modules for actuation.

    For the commands, every slave does not need to read all the commands in orderto response quickly, in fact they only read the headers in the command and then

    they read the related command. So, a list of headers in commands can be made

    for grouping them.

    Group 1The Commands about Window Movements (with Header 000111)Group 2The Commands about Locking and Puddle Lights (with Header 000110)

    Group 3The Commands about Mirrors (with Header 000101)

    Then we can group the commands:

    Group -1 (Windows) (000111)

    1st

    Bit Select Front/Rear Windows 0-Front 1-Rear

    2nd

    Bit Select Left/Right Windows 0-Left 1-Right

    3rd

    Bit Move the Window Upwards

    4th

    Bit Move the Window Downwards

    1 Byte (4 Bites of 8)

    Group2 (Locks & Puddle) (000110)

    1st Bit Front Left Door Lock/Unlock 0Close 1 - Open

    2nd

    Bit Front Right Door Lock/Unlock 0Close 1 - Open

    3rd

    Bit Rear Left Door Lock/Unlock 0Close 1 - Open

    4th

    Bit Rear Right Door Lock/Unlock 0Close 1 - Open

    5th

    Bit Front Left Puddle Light 0Off 1 - On

    6th

    Bit Front Right Puddle Light 0Off 1 - On

    7th

    Bit Rear Left Puddle Light 0Off 1 - On

    8th

    Bit Rear Right Puddle Light 0Off 1 - On

    1 Byte (8 Bites of 8)

  • 8/3/2019 ElectronicZeyd

    6/6

    6

    Group3 (Mirrors) (000101)

    1st

    Bit Flapping the Mirrors 0Close 1- Open

    2nd

    Bit Lighting the Mirrors 0Off 1 - On

    3rd

    Bit Selecting the Mirror 0Left 1 - Right4

    thBit Move Up

    5th

    Bit Move Down

    6th

    Bit Move Left

    7th

    Bit Move Right

    1 Byte (7 Bites of 8 Bites)

    5. PROGRAMMING OF CONTROLLER

    ECU will control the operations in a circulating algorithm. If the response timeof the slave is considered as 10ms at most, the loop can be described in some

    steps:

    #1 : Start of ECU

    #2 : Send Header 1 (000100) for Front-Left Door Check

    #3 : Wait 10 ms

    #4 : Send Header 1 (000010) for Front-Right Door Check

    #5 : Wait 10 ms

    #6 : Send Header 1 (000001) for Rear-Left Door Check

    #7 : Wait 10 ms

    #8 : Send Header 1 (000011) for Rear-Right Door Check

    #9 : Wait 10 ms

    #10 : ECU considers all the data (messages) coming from the Doors

    #11 : Send Header (000111) to all the Door Modules (D1-D2-D3-D4) for Windows

    #12 : Send Header (000110) to all the Door Modules (D1-D2-D3-D4) for Locks & Puddles

    #13 : Send Header (000101) to all the Mirror Modules (M1-M2) for Mirrors

    #14 : Restart the Circulation