0 - 1 © 2007 Texas Instruments Inc, Content developed in partnership with Tel-Aviv University From MATLAB ® and Simulink ® to Real Time with TI DSPs Vehicle.

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

C) between 18 and 27. D) between 27 and 50.
You have been given a mission and a code. Use the code to complete the mission and you will save the world from obliteration…
Chapter 16 Unemployment: Search and Efficiency Wages.
Advanced Piloting Cruise Plot.
Chapter 6 Cost and Choice. Copyright © 2001 Addison Wesley LongmanSlide 6- 2 Figure 6.1 A Simplified Jam-Making Technology.
Copyright © 2002 Pearson Education, Inc. Slide 1.
Copyright © 2002 Pearson Education, Inc. Slide 1.
© 2008 Pearson Addison Wesley. All rights reserved Chapter Seven Costs.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Copyright © 2002 Pearson Education, Inc. Slide 1.
Chapter 1 The Study of Body Function Image PowerPoint
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 1 Embedded Computing.
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 5 Author: Julia Richards and R. Scott Hawley.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
FIGURE 3.1 System for illustrating Boolean applications to control.
Curtis Johnson Process Control Instrumentation Technology, 8e]
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
My Alphabet Book abcdefghijklm nopqrstuvwxyz.
Multiplying binomials You will have 20 seconds to answer each of the following multiplication problems. If you get hung up, go to the next problem when.
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Addition Facts
Year 6 mental test 5 second questions
Around the World AdditionSubtraction MultiplicationDivision AdditionSubtraction MultiplicationDivision.
ZMQS ZMQS
Solve Multi-step Equations
0 - 1 © 2007 Texas Instruments Inc, Content developed in partnership with Tel-Aviv University From MATLAB ® and Simulink ® to Real Time with TI DSPs Dual.
Solve Both Sides Day 1 Teacher Notes
ABC Technology Project
1 1 Mechanical Design and Production Dept, Faculty of Engineering, Zagazig University, Egypt. Mechanical Design and Production Dept, Faculty of Engineering,
VOORBLAD.
“Start-to-End” Simulations Imaging of Single Molecules at the European XFEL Igor Zagorodnov S2E Meeting DESY 10. February 2014.
Squares and Square Root WALK. Solve each problem REVIEW:
Do you have the Maths Factor?. Maths Can you beat this term’s Maths Challenge?
© 2012 National Heart Foundation of Australia. Slide 2.
Lets play bingo!!. Calculate: MEAN Calculate: MEDIAN
DC Machine.
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
Chapter 5 Test Review Sections 5-1 through 5-4.
SIMOCODE-DP Software.
GG Consulting, LLC I-SUITE. Source: TEA SHARS Frequently asked questions 2.
Challenge the future Delft University of Technology Some Observations on Human Control of a Bicycle Jodi Kooijman.
Addition 1’s to 20.
25 seconds left…...
Equal or Not. Equal or Not
Slippery Slope
Test B, 100 Subtraction Facts
Januar MDMDFSSMDMDFSSS
Week 1.
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Intracellular Compartments and Transport
A SMALL TRUTH TO MAKE LIFE 100%
PSSA Preparation.
TASK: Skill Development A proportional relationship is a set of equivalent ratios. Equivalent ratios have equal values using different numbers. Creating.
Essential Cell Biology
Chapter 13: Digital Control Systems 1 ©2000, John Wiley & Sons, Inc. Nise/Control Systems Engineering, 3/e Chapter 13 Digital Control Systems.
CpSc 3220 Designing a Database
Lecture 6: Time Response 1.Time response determination Review of differential equation approach Introduce transfer function approach 2.MATLAB commands.
Modeling First Order Systems in Simulink And Analyzing Step, Pulse and Ramp Responses SOEN385 Control Systems and Applications.
Presentation transcript:

0 - 1 © 2007 Texas Instruments Inc, Content developed in partnership with Tel-Aviv University From MATLAB ® and Simulink ® to Real Time with TI DSPs Vehicle Dynamics

Slide 2 © 2007 Texas Instruments Inc, Objectives To implement a simplified differential equation for the motion of a car. To build and test a Simulink Model. To run the model in real-time using the ezDSP F2812 hardware.

Slide 3 © 2007 Texas Instruments Inc, Motion of a Vehicle Consider the case of a car driving in a straight line along a flat road.

Slide 4 © 2007 Texas Instruments Inc, Engine Power The driving force is supplied by the engine. Engine Power

Slide 5 © 2007 Texas Instruments Inc, Vehicle Weight The weight of the vehicle will need to be overcome to move the vehicle. Vehicle Weight

Slide 6 © 2007 Texas Instruments Inc, Wind Resistance As the car moves, there will be wind resistance. WindResistance

Slide 7 © 2007 Texas Instruments Inc, Vehicle Speed The engine power, vehicle weight and wind resistance determine the vehicle speed. Vehicle Speed

Slide 8 © 2007 Texas Instruments Inc, Combined Factors These factors can be brought together into an equation of motion. b.v m F v

Slide 9 © 2007 Texas Instruments Inc, Differential Equation F = m.dv/dt + b.v where: –F = force provided by the engine –m = mass of vehicle –dv/dt = rate of change of velocity (acceleration) –b = damping factor (wind resistance) –v = velocity (vehicle speed)

Slide 10 © 2007 Texas Instruments Inc, Transformed Equation To implement the equation using Simulink, the equation needs to be first transformed. F/m –v.b/m= dv/dt We will set up a subsystem with: – Force F as the input. – Speed v as the output.

Slide 11 © 2007 Texas Instruments Inc, Continuous Implementation Using Simulink, the equation can be implemented as a continuous system as shown in the diagram. To generate v, we need to integrate the acceleration dv/dt.

Slide 12 © 2007 Texas Instruments Inc, Simulink Model

Slide 13 © 2007 Texas Instruments Inc, The Simulink Model The model of vehicle motion is shown below:

Slide 14 © 2007 Texas Instruments Inc, Description of Model The input to the system is the gas pedal, under control of the driver. The Engine Management sub-system converts gas pedal to engine power. The Vehicle Dynamics sub-system converts engine power to vehicle speed. The output is provided in horsepower.

Slide 15 © 2007 Texas Instruments Inc, Engine Management Subsystem This converts the gas pedal input (0-100%) to engine output power (0 – 200 hp).

Slide 16 © 2007 Texas Instruments Inc, Lookup Tables The conversion from rpm to power can be implemented using a lookup table.

Slide 17 © 2007 Texas Instruments Inc, Lookup Table Curve The table values can be adjusted to fit a smooth curve.

Slide 18 © 2007 Texas Instruments Inc, Vehicle Dynamics Subsystem To implement the equation of motion on the C28x, a Discrete Time Integrator is required.

Slide 19 © 2007 Texas Instruments Inc, Running the Simulation The ramp generator gently changes the Gas Pedal from 0% to 100%. This simulates smooth acceleration.

Slide 20 © 2007 Texas Instruments Inc, Tuning the Model Alter the mass m of the vehicle between 1 ton (for a small compact car) and 35 tons (for a truck). Increase the wind resistance by increasing variable b. Using real data from a car manufacturers website for the Lookup Table. You could also profile a diesel engine. Replace the Ramp input with a Step input to simulate stamping on the gas pedal!

Slide 21 © 2007 Texas Instruments Inc, Introduction to Laboratory

Slide 22 © 2007 Texas Instruments Inc, Overview of Laboratory The Simulink model will be modified to run on the ezDSP F2812 hardware. A potentiometer will be used to simulate the gas pedal. The output speed of the system will be monitored using a multi-meter.

Slide 23 © 2007 Texas Instruments Inc, Modifications for C28x To run on the ezDSP F2812, additional blocks from the Embedded Target for TI C2000 DSP are required.

Slide 24 © 2007 Texas Instruments Inc, ADC Scaling The ADC input needs to be scaled %. Using fixed-point math, this can be implemented as multiply by 800 then divide by

Slide 25 © 2007 Texas Instruments Inc, DAC Scaling The input kph needs to be scaled for the DAC.

Slide 26 © 2007 Texas Instruments Inc, References ezDSP F2812 Technical Reference.