Skip to content

Embedded system design for two ECUs communicating together to control car lights according to door state, light switch state, and car speed state

Notifications You must be signed in to change notification settings

MotazKaoud/MotazKaoud-fwdAdvancedEmbedded-Project3_EmbeddedSoftwareDesign

Repository files navigation

MotazKaoud-fwdAdvancedEmbedded-Project3_EmbeddedSoftwareDesign

Embedded system design for two ECUs communicating together to control car lights according to door state, light switch state, and car speed state

Automotive Door Control System Design



Disclaimer : This project is part of "Advanced Embedded Systems" Nanodegree attended at Udacity and FWD program.

Project Mission:

⇒ In the automotive industry, ECUs are communicating together to provide safety and driver's comfort, ECUs are microcontrollers connected with input and output devices, input devices to sense the surrounding environments, and output devices to perform actions according to readings that came from input devices.
⇒ The project aims to build two ECUs communicating together to control car lights according to door state, light switch state, and car speed state.


Project Components:

1) System Schematic for Mentioned System Requirements:

⇒ Hardware System Requirements
• Two microcontrollers connected via CAN bus
• One Door sensor (D)
• One Light switch (L)
• One Speed sensor (S)
• ECU 1 connected to D, S, and L, all input devices
• Two lights, right (RL) and left (LL)
• One buzzer (B)
• ECU 2 connected to RL, LL, and B, all output devices

⇒ Software Requirements:
• ECU 1 will send status messages periodically to ECU 2 through the CAN protocol
• Status messages will be sent using Basic Communication Module (BCM)
• Door state message will be sent every 10ms to ECU 2
• Light switch state message will be sent every 20ms to ECU 2
• Speed state message will be sent every 5ms to ECU 2
• Each ECU will have an OS and application SW components
• If the door is opened while the car is moving → Buzzer ON, Lights OFF
• If the door is opened while the car is stopped → Buzzer OFF, Lights ON
• If the door is closed while the lights were ON → Lights are OFF after 3 seconds
• If the car is moving and the light switch is pressed → Buzzer OFF, Lights ON
• If the car is stopped and the light switch is pressed → Buzzer ON, Lights ON

2) Static Design Analysis:

⇒ For ECU1 & ECU2 provided the:
• System layered architecture design
• ECU components and modules
• Full detailed APIs for each module
• System project folder structure according to the previous points

3) Dynamic design analysis:

⇒ For ECU1 & ECU2 provided the:
• State machine diagram for the ECU component
• State machine diagram for the ECU operation
• Sequence diagram for the ECU
• CPU load for the ECU calculated

⇒ For the system provide the:
• Bus load in the system calculated : With what percentage of system bus was busy per 1 second?


_____________________________________________________________
(Repo contains an illustrating videos for the system design in Arabic)

About

Embedded system design for two ECUs communicating together to control car lights according to door state, light switch state, and car speed state

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published