SlideShare una empresa de Scribd logo
1 de 22
Descargar para leer sin conexión
Simulink based Embedded Coding
for
automobile application (start-stop
system)
SWETHA V
113004204
1
OBJECTIVE
 Understanding the embedded
coding achievable through Simulink
 Understanding the state-flow
approach of programming
Implementing this approach for auto-
mobile application
2
EMBEDDED CODER
Embedded coding
 Easier
understandability of
graphical environment
 Time efficient
 Interfacing controller
 AUTO CODE
GENERATION
 Universal code
 Standard coding
format
Conventional ‘C’
coding
 Difficult to understand
the textual format
 Time consuming
 Have to know the
entire register &
instruction set
 Not an universal code
 There is “more than a
way” to do it
3
STATE-FLOW
Analogous to finite state-
machines
Describes the entire behavior of
the system
Different from flow-chart
The flowchart will say that the
engine is fired only by means of
cranking. But, in real life scenario,
it is possible to by-pass this
cranking and reach the vehicle
running condition by means of
push start. With the help of state-
flow, this kind of scenarios can be
well captured and brought to
notice. Thus, state-flow forms a
superior way of describing a
system’s behavior.
4
CURRENT STATE TRANSITION CONDITION
ACTION STATEMENT
DESTINATION STATE
Overall block diagram
• A stop-start system automatically shuts down
the engine when the vehicle comes to a stop
and restarts the engine to reduce the amount
of time a car spends idling.
• The starter-relay is responsible for starting the
vehicle and the fuel relay is responsible for
stopping the vehicle.
5
Input section
Digital inputs:
• Clutch – from the vehicle’s clutch pad
• Crank- the key signal used to turn on the
engine
• Vehicle safety- sensor output from bonnet
• Neutral sensor- sensor output from gear
position
• Auto-stop enable disable switch – user’s
switch present in the vehicle
Analog inputs:
• Coolant temperature- sensor output in
analog form from engine’s coolant
temperature
• Battery voltage – Battery sensor output in
analog form.
Pulsed inputs:
• Engine speed- pulses from alternator in the
form of PWM signal
• Vehicle speed- pulses from sensor in the
form of PWM signal
6
Signal conditioning
Start-stop PCB
Digital inputs-
conditioning
7
Analog input-
conditioning
Pulsed input-
conditioning
8
Controller section- model
9
Digital inputs: de-bouncing logic
10
•suffer from glitches
• no steady ON or OFF state
Output & =m [1] | m [2] | m [3] |
m [4];
Output | =m [1] & m [2] & m [3] &
m [4];
Here, m [1], m [2], m [3] and m
[4] are values of the input
sampled continuously.
Analog inputs – averaging technique
11
•Fluctuations present in the
input voltage.
•Averaging reduces the
fluctuation
•4 samples are taken
continuously and averaged.
Pulsed inputs – frequency measure
12
A
B C
D
A- pulsed inputs used.
B- frequency measurement
C-Period capture
D-zero RPM detection
State flow block
Booting
This is the initial state where the LED blinks once confirming the working of the
controller. This state is reached when the controller is turned on through the ignition key.
Cranking
This is the state in which the user tries to start the engine. The starter safety measures
are taken out in this state. If the engine is fired in this state, the flow transfers to the
normal running condition.
Key release
This is the state where the user releases the key on account on unsuccessful cranking.
Clutch release
This is the state where the clutch releases the key on account on unsuccessful cranking.
This state is effective only when the vehicle is started after auto stop.
Over cranking
This is the state where the starter has been operated for more than four seconds and is
forced to shut down on account of safety measures. This state also indicates the
unsuccessful cranking of the engine.
13REFER PG: 29 & 30 IN
REPORT
controller-logic.docx
Engine off not due to auto-stop
This state indicates that the engine is off initially or engine is off due to reasons other than the auto-
atop feature.
Engine off due to auto-stop
This state indicates that the engine is off due to the auto-atop feature.
Bonnet open – fuel cut
This state is a safety measure feature. When the bonnet is open, the engine is forced to shut down by
turning off the fuel supply. This avoids accidents caused due to open bonnet. Care has to be taken
while implementing this safety feature.
Auto stop – fuel cut
The fuel supply is cut due to the auto stop features. This is indicated by LED on condition. By stopping
the fuel supply, the engine is automatically shut down.
Engine ON, vehicle not reached the initial threshold level
This is the initial running condition of any vehicle before it can reach a certain threshold.
Engine ON, vehicle above threshold level
This is the state where vehicle runs above the threshold speed.
14
Vehicle crawling after reaching initial threshold level
This state shows that the vehicle is moving slowly, but has not stopped. This state typically predicts
that the vehicle is in traffic signal.
Engine idling, vehicle not moving after reaching initial threshold level
This state indicates that vehicle is not moving and since initially it has crossed the speed threshold,
the auto-stop feature can be enabled.
Auto stop mode
This state indicates that vehicle is not moving, the auto-stop switch is enabled and other conditions
are full-filled and the system is ready to auto-stop.
LED blinking
This is an indication to the user that the engine is going to shut down due to auto-stop feature.
During this time, the user can disable auto-stop or he can allow the feature to take place.
Push start initially
When the battery is in dip condition, the vehicle can be started by pushing it.
Push start after auto stop
This state is similar to the previous state occurring after auto-stop condition. This condition is a rare
occurrence
15
16
CHART
Refer pg: 44 & 45 in
transition-brief.doc
Transition-detail.d
ocx
CODE GENERATION
17
Linking Simulink to
code composer
studio to generate
the “C “ code and
finally flashing the
code into target
Relay drivers & relay
•The two relays used to control the
start and stop of the vehicle are
the starter relay and fuel-cut
relay. The starter relay is
responsible for starting the
vehicle and fuel-cut relay for
stopping the relay.
•By convention, the starter relay is
assumed to be normally open.
When the control signal comes, it
closes and starts the starter
motor. The fuel-cut relay is
assumed to be normally close.
When the control signal comes, it
cuts the fuel supply to the
vehicle. An LED indicator is used
to indicate the auto-stop
conditions.
18
The control signal coming from the
controller will have a maximum of
3.3 volts. In order to make the relays
to function, drivers are used. These
drivers amplify this 3.3 volt to 12
volts and drive the relays
Relay drivers used were
•VNS1NV04D
•VND5160AJ-E
Hardware setup
19
G:DSCN6628.JPG
REFER PG: 15 – 17 IN
REPORT
20
LEARNING / KNOWLEDGE GAINED
ON
Simulink tool
Embedded coder
State-flow approach
TMS320F28035 controller & the associated experimental kits
Programming in Code Composer Studio
Hardware designing
Start-stop mechanism
Regenerative braking
Ultra-capacitor
Industrial experience
21
22
VIDEO0003.mp4
THANK YOU !!

Más contenido relacionado

La actualidad más candente

Speed checkers for highways
Speed checkers for highwaysSpeed checkers for highways
Speed checkers for highwaysRahul Kshirsagar
 
Speed checker on highway using 8051
Speed checker on highway using 8051Speed checker on highway using 8051
Speed checker on highway using 8051Rkrishna Mishra
 
[Project report]digital speedometer with password enabled speed controlling(1...
[Project report]digital speedometer with password enabled speed controlling(1...[Project report]digital speedometer with password enabled speed controlling(1...
[Project report]digital speedometer with password enabled speed controlling(1...Shivam Patel
 
Introduction to Vehicle Electronic Systems and Fault Diagnosis
Introduction to Vehicle Electronic Systems and Fault DiagnosisIntroduction to Vehicle Electronic Systems and Fault Diagnosis
Introduction to Vehicle Electronic Systems and Fault DiagnosisPraneel Chand
 
Automatic car parking
Automatic car parkingAutomatic car parking
Automatic car parkingAran Glenn
 
PLC BASED ELEVATOR PPT(GROUP-1)
PLC BASED ELEVATOR PPT(GROUP-1)PLC BASED ELEVATOR PPT(GROUP-1)
PLC BASED ELEVATOR PPT(GROUP-1)Krupal Bhoi
 
Induction Loop Vehicle Detector and Counter
Induction Loop Vehicle Detector and CounterInduction Loop Vehicle Detector and Counter
Induction Loop Vehicle Detector and Counter Towfiqur Rahman
 
Arduino Based Vehicle Abnormal Behavior Detection System using Camera with SD...
Arduino Based Vehicle Abnormal Behavior Detection System using Camera with SD...Arduino Based Vehicle Abnormal Behavior Detection System using Camera with SD...
Arduino Based Vehicle Abnormal Behavior Detection System using Camera with SD...ijtsrd
 
speed control of induction motor using plc and vfd
speed control of induction motor using plc and vfdspeed control of induction motor using plc and vfd
speed control of induction motor using plc and vfdmanishrair
 
Speed checker for highways
Speed checker for highwaysSpeed checker for highways
Speed checker for highwaysIUIUGU
 
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...Ionela
 
Microcontroller Based Speedo Meter cum Odometer
Microcontroller Based Speedo Meter cum OdometerMicrocontroller Based Speedo Meter cum Odometer
Microcontroller Based Speedo Meter cum OdometerNexus
 

La actualidad más candente (20)

Speed checkers for highways
Speed checkers for highwaysSpeed checkers for highways
Speed checkers for highways
 
Alternat
AlternatAlternat
Alternat
 
car wash system
car wash systemcar wash system
car wash system
 
Speed checker on highway using 8051
Speed checker on highway using 8051Speed checker on highway using 8051
Speed checker on highway using 8051
 
Plc tutorial
Plc tutorialPlc tutorial
Plc tutorial
 
[Project report]digital speedometer with password enabled speed controlling(1...
[Project report]digital speedometer with password enabled speed controlling(1...[Project report]digital speedometer with password enabled speed controlling(1...
[Project report]digital speedometer with password enabled speed controlling(1...
 
Introduction to Vehicle Electronic Systems and Fault Diagnosis
Introduction to Vehicle Electronic Systems and Fault DiagnosisIntroduction to Vehicle Electronic Systems and Fault Diagnosis
Introduction to Vehicle Electronic Systems and Fault Diagnosis
 
Automatic car parking
Automatic car parkingAutomatic car parking
Automatic car parking
 
PLC BASED ELEVATOR PPT(GROUP-1)
PLC BASED ELEVATOR PPT(GROUP-1)PLC BASED ELEVATOR PPT(GROUP-1)
PLC BASED ELEVATOR PPT(GROUP-1)
 
Lec 12 (cont plc)
Lec 12 (cont plc)Lec 12 (cont plc)
Lec 12 (cont plc)
 
Induction Loop Vehicle Detector and Counter
Induction Loop Vehicle Detector and CounterInduction Loop Vehicle Detector and Counter
Induction Loop Vehicle Detector and Counter
 
Arduino Based Vehicle Abnormal Behavior Detection System using Camera with SD...
Arduino Based Vehicle Abnormal Behavior Detection System using Camera with SD...Arduino Based Vehicle Abnormal Behavior Detection System using Camera with SD...
Arduino Based Vehicle Abnormal Behavior Detection System using Camera with SD...
 
speed control of induction motor using plc and vfd
speed control of induction motor using plc and vfdspeed control of induction motor using plc and vfd
speed control of induction motor using plc and vfd
 
Chapter 4 plc
Chapter 4 plcChapter 4 plc
Chapter 4 plc
 
Speed checker for highways
Speed checker for highwaysSpeed checker for highways
Speed checker for highways
 
Exj 8 p
Exj 8 pExj 8 p
Exj 8 p
 
Omkar Electronics, Thane, Elevator Components
Omkar Electronics, Thane, Elevator ComponentsOmkar Electronics, Thane, Elevator Components
Omkar Electronics, Thane, Elevator Components
 
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...
 
Basics of railway principles
Basics of railway principlesBasics of railway principles
Basics of railway principles
 
Microcontroller Based Speedo Meter cum Odometer
Microcontroller Based Speedo Meter cum OdometerMicrocontroller Based Speedo Meter cum Odometer
Microcontroller Based Speedo Meter cum Odometer
 

Destacado

final report_51_33_17
final report_51_33_17final report_51_33_17
final report_51_33_17Darshil Shah
 
Touch Screen Technology
Touch Screen TechnologyTouch Screen Technology
Touch Screen TechnologyGvs Bharadwaj
 
Introduction To Embedded Systems
Introduction To Embedded SystemsIntroduction To Embedded Systems
Introduction To Embedded Systemsanishgoel
 
Architecture & data acquisition by embedded systems in automobiles seminar re...
Architecture & data acquisition by embedded systems in automobiles seminar re...Architecture & data acquisition by embedded systems in automobiles seminar re...
Architecture & data acquisition by embedded systems in automobiles seminar re...Ankit Kaul
 
Embedded system in_automobiles_seminar_report_1234
Embedded system in_automobiles_seminar_report_1234Embedded system in_automobiles_seminar_report_1234
Embedded system in_automobiles_seminar_report_1234Ganesh Bv
 
52497104 seminar-report
52497104 seminar-report52497104 seminar-report
52497104 seminar-reportdhiru8342
 
Report underwater-wireless
Report underwater-wirelessReport underwater-wireless
Report underwater-wirelesspatna
 
Safety of automobile Report
Safety of automobile ReportSafety of automobile Report
Safety of automobile ReportJIET, Jodhpur
 
Project Report On Micro-controller Embedded System
Project Report On Micro-controller Embedded SystemProject Report On Micro-controller Embedded System
Project Report On Micro-controller Embedded SystemRkrishna Mishra
 
Embedded system in automobile
Embedded system in automobileEmbedded system in automobile
Embedded system in automobileAali Aalim
 
Unit 1 embedded systems and applications
Unit 1 embedded systems and applicationsUnit 1 embedded systems and applications
Unit 1 embedded systems and applicationsDr.YNM
 

Destacado (14)

final report_51_33_17
final report_51_33_17final report_51_33_17
final report_51_33_17
 
Embedded system Basic
Embedded system BasicEmbedded system Basic
Embedded system Basic
 
Touch Screen Technology
Touch Screen TechnologyTouch Screen Technology
Touch Screen Technology
 
Introduction To Embedded Systems
Introduction To Embedded SystemsIntroduction To Embedded Systems
Introduction To Embedded Systems
 
Architecture & data acquisition by embedded systems in automobiles seminar re...
Architecture & data acquisition by embedded systems in automobiles seminar re...Architecture & data acquisition by embedded systems in automobiles seminar re...
Architecture & data acquisition by embedded systems in automobiles seminar re...
 
Embedded system in_automobiles_seminar_report_1234
Embedded system in_automobiles_seminar_report_1234Embedded system in_automobiles_seminar_report_1234
Embedded system in_automobiles_seminar_report_1234
 
52497104 seminar-report
52497104 seminar-report52497104 seminar-report
52497104 seminar-report
 
Report underwater-wireless
Report underwater-wirelessReport underwater-wireless
Report underwater-wireless
 
Merged document 2
Merged document 2Merged document 2
Merged document 2
 
Touch screen report
Touch screen reportTouch screen report
Touch screen report
 
Safety of automobile Report
Safety of automobile ReportSafety of automobile Report
Safety of automobile Report
 
Project Report On Micro-controller Embedded System
Project Report On Micro-controller Embedded SystemProject Report On Micro-controller Embedded System
Project Report On Micro-controller Embedded System
 
Embedded system in automobile
Embedded system in automobileEmbedded system in automobile
Embedded system in automobile
 
Unit 1 embedded systems and applications
Unit 1 embedded systems and applicationsUnit 1 embedded systems and applications
Unit 1 embedded systems and applications
 

Similar a review-1

Similar a review-1 (20)

95ZJ_8H.PDF
95ZJ_8H.PDF95ZJ_8H.PDF
95ZJ_8H.PDF
 
Chapter 45
Chapter 45Chapter 45
Chapter 45
 
02 th!nk neighbor
02 th!nk neighbor02 th!nk neighbor
02 th!nk neighbor
 
Alcohol detection & driver safety
Alcohol detection & driver safetyAlcohol detection & driver safety
Alcohol detection & driver safety
 
Pids
PidsPids
Pids
 
00 mystique
00 mystique00 mystique
00 mystique
 
98 grand marquis
98 grand marquis98 grand marquis
98 grand marquis
 
00 countur
00 countur00 countur
00 countur
 
RemyTechnicalBulletin_Sept_web
RemyTechnicalBulletin_Sept_webRemyTechnicalBulletin_Sept_web
RemyTechnicalBulletin_Sept_web
 
BLD-AC1000S.pdf
BLD-AC1000S.pdfBLD-AC1000S.pdf
BLD-AC1000S.pdf
 
98 e150 250-350-450
98 e150 250-350-45098 e150 250-350-450
98 e150 250-350-450
 
98 mark viii
98 mark viii98 mark viii
98 mark viii
 
IRJET- Design of Diagnosis Device for Electronic Throttle Body
IRJET-  	  Design of Diagnosis Device for Electronic Throttle BodyIRJET-  	  Design of Diagnosis Device for Electronic Throttle Body
IRJET- Design of Diagnosis Device for Electronic Throttle Body
 
Industrial Automation Using B&R PLC.
Industrial Automation Using B&R PLC.Industrial Automation Using B&R PLC.
Industrial Automation Using B&R PLC.
 
00 mustang
00 mustang00 mustang
00 mustang
 
phev
phevphev
phev
 
00 motorhome
00 motorhome00 motorhome
00 motorhome
 
On board diagnostic ii obd ii (compilado)
On board diagnostic ii obd ii (compilado)On board diagnostic ii obd ii (compilado)
On board diagnostic ii obd ii (compilado)
 
00 continental
00 continental00 continental
00 continental
 
98 continental
98 continental98 continental
98 continental
 

review-1

  • 1. Simulink based Embedded Coding for automobile application (start-stop system) SWETHA V 113004204 1
  • 2. OBJECTIVE  Understanding the embedded coding achievable through Simulink  Understanding the state-flow approach of programming Implementing this approach for auto- mobile application 2
  • 3. EMBEDDED CODER Embedded coding  Easier understandability of graphical environment  Time efficient  Interfacing controller  AUTO CODE GENERATION  Universal code  Standard coding format Conventional ‘C’ coding  Difficult to understand the textual format  Time consuming  Have to know the entire register & instruction set  Not an universal code  There is “more than a way” to do it 3
  • 4. STATE-FLOW Analogous to finite state- machines Describes the entire behavior of the system Different from flow-chart The flowchart will say that the engine is fired only by means of cranking. But, in real life scenario, it is possible to by-pass this cranking and reach the vehicle running condition by means of push start. With the help of state- flow, this kind of scenarios can be well captured and brought to notice. Thus, state-flow forms a superior way of describing a system’s behavior. 4 CURRENT STATE TRANSITION CONDITION ACTION STATEMENT DESTINATION STATE
  • 5. Overall block diagram • A stop-start system automatically shuts down the engine when the vehicle comes to a stop and restarts the engine to reduce the amount of time a car spends idling. • The starter-relay is responsible for starting the vehicle and the fuel relay is responsible for stopping the vehicle. 5
  • 6. Input section Digital inputs: • Clutch – from the vehicle’s clutch pad • Crank- the key signal used to turn on the engine • Vehicle safety- sensor output from bonnet • Neutral sensor- sensor output from gear position • Auto-stop enable disable switch – user’s switch present in the vehicle Analog inputs: • Coolant temperature- sensor output in analog form from engine’s coolant temperature • Battery voltage – Battery sensor output in analog form. Pulsed inputs: • Engine speed- pulses from alternator in the form of PWM signal • Vehicle speed- pulses from sensor in the form of PWM signal 6
  • 10. Digital inputs: de-bouncing logic 10 •suffer from glitches • no steady ON or OFF state Output & =m [1] | m [2] | m [3] | m [4]; Output | =m [1] & m [2] & m [3] & m [4]; Here, m [1], m [2], m [3] and m [4] are values of the input sampled continuously.
  • 11. Analog inputs – averaging technique 11 •Fluctuations present in the input voltage. •Averaging reduces the fluctuation •4 samples are taken continuously and averaged.
  • 12. Pulsed inputs – frequency measure 12 A B C D A- pulsed inputs used. B- frequency measurement C-Period capture D-zero RPM detection
  • 13. State flow block Booting This is the initial state where the LED blinks once confirming the working of the controller. This state is reached when the controller is turned on through the ignition key. Cranking This is the state in which the user tries to start the engine. The starter safety measures are taken out in this state. If the engine is fired in this state, the flow transfers to the normal running condition. Key release This is the state where the user releases the key on account on unsuccessful cranking. Clutch release This is the state where the clutch releases the key on account on unsuccessful cranking. This state is effective only when the vehicle is started after auto stop. Over cranking This is the state where the starter has been operated for more than four seconds and is forced to shut down on account of safety measures. This state also indicates the unsuccessful cranking of the engine. 13REFER PG: 29 & 30 IN REPORT controller-logic.docx
  • 14. Engine off not due to auto-stop This state indicates that the engine is off initially or engine is off due to reasons other than the auto- atop feature. Engine off due to auto-stop This state indicates that the engine is off due to the auto-atop feature. Bonnet open – fuel cut This state is a safety measure feature. When the bonnet is open, the engine is forced to shut down by turning off the fuel supply. This avoids accidents caused due to open bonnet. Care has to be taken while implementing this safety feature. Auto stop – fuel cut The fuel supply is cut due to the auto stop features. This is indicated by LED on condition. By stopping the fuel supply, the engine is automatically shut down. Engine ON, vehicle not reached the initial threshold level This is the initial running condition of any vehicle before it can reach a certain threshold. Engine ON, vehicle above threshold level This is the state where vehicle runs above the threshold speed. 14
  • 15. Vehicle crawling after reaching initial threshold level This state shows that the vehicle is moving slowly, but has not stopped. This state typically predicts that the vehicle is in traffic signal. Engine idling, vehicle not moving after reaching initial threshold level This state indicates that vehicle is not moving and since initially it has crossed the speed threshold, the auto-stop feature can be enabled. Auto stop mode This state indicates that vehicle is not moving, the auto-stop switch is enabled and other conditions are full-filled and the system is ready to auto-stop. LED blinking This is an indication to the user that the engine is going to shut down due to auto-stop feature. During this time, the user can disable auto-stop or he can allow the feature to take place. Push start initially When the battery is in dip condition, the vehicle can be started by pushing it. Push start after auto stop This state is similar to the previous state occurring after auto-stop condition. This condition is a rare occurrence 15
  • 16. 16 CHART Refer pg: 44 & 45 in transition-brief.doc Transition-detail.d ocx
  • 17. CODE GENERATION 17 Linking Simulink to code composer studio to generate the “C “ code and finally flashing the code into target
  • 18. Relay drivers & relay •The two relays used to control the start and stop of the vehicle are the starter relay and fuel-cut relay. The starter relay is responsible for starting the vehicle and fuel-cut relay for stopping the relay. •By convention, the starter relay is assumed to be normally open. When the control signal comes, it closes and starts the starter motor. The fuel-cut relay is assumed to be normally close. When the control signal comes, it cuts the fuel supply to the vehicle. An LED indicator is used to indicate the auto-stop conditions. 18 The control signal coming from the controller will have a maximum of 3.3 volts. In order to make the relays to function, drivers are used. These drivers amplify this 3.3 volt to 12 volts and drive the relays Relay drivers used were •VNS1NV04D •VND5160AJ-E
  • 20. 20
  • 21. LEARNING / KNOWLEDGE GAINED ON Simulink tool Embedded coder State-flow approach TMS320F28035 controller & the associated experimental kits Programming in Code Composer Studio Hardware designing Start-stop mechanism Regenerative braking Ultra-capacitor Industrial experience 21