Vehicle Dynamics
Vehicle Dynamics
Vehicle Dynamics
http://cnx.org/content/m22943/latest/
Connexions
You are here: Home Content Vehicle Dynamics
Vehicle Dynamics
Module by: Jacob Fainguelernt. Summary: In this module, a physical model of vehicle engine management will be created. The model will be first simulated, and then used to create an implementation on the eZDSP-F2812. This board will emulate in real-time the behavior of a vehicle, under various stimuli. In this example, the environment is used to build a physical model of vehicle engine management in simulation, which is then used to create an implementation on the eZDSP-F2812. This board will emulate in real-time the behavior of a vehicle, under various stimuli.
Introduction
The Texas Instruments C28x family of processors has been designed to implement control applications, for example digital motor control and un-interruptible power supplies. We shall start here with a simple application. In this Laboratory, you will build a simulation model of a vehicle dynamics using Simulink, and then emulate it using the eZDSP-F2812 board.
Related Files
Powerpoint Presentation - VehicleDynamics.ppt (VehicleDynamics.ppt) Simulink Model for PC Simulation - VehicleDynamics.mdl (VehicleDynamics.mdl) Simulink Model for Simulation with DSKF2812 - VehicleDynamicsF2812Simulation.mdl (VehicleDynamicsF2812Simulation.mdl) Simulink Model for Real-Time - VehicleDynamicsDSKF2812.mdl (VehicleDynamicsDSKF2812.mdl)
Objectives
Design a Simulink model of the motion of a vehicle. Run the model using Simulink on a PC. Modify the model for use with the Texas Instruments C28x Digital Signal Processor. Run the modified model on the Texas Instruments F2812 ezDSP.
Level
Beginner; This is intended as the first complete project using Matlab and Simulink. It is suitable for students who have only limited exposure to Texas Instruments DSPs before.
Requirements
In developing this Laboratory, the following hardware and software were used: Matlab R2006b with Embedded Target for TI C2000. Code Composer Studio (CCS) 3.1. Spectrum Digital ezDSP F2812 Hardware Some external electronic components costing about $2.
Simulation
Running the Vehicle Dynamics Simulation
Open VehicleDynamics.mdl (VehicleDynamics.mdl) .
1 -> 19
14.05.2012 20:35
Vehicle Dynamics
http://cnx.org/content/m22943/latest/
Run the Model. The input to the model is a ramp generator, which simulates smooth acceleration. You will see the graphs of Horsepower and Vehicle Speed.
2 -> 19
14.05.2012 20:35
Vehicle Dynamics
http://cnx.org/content/m22943/latest/
We will now simulate a small compact car. Change the 1/m gain block to 1/1000 and change the b/m block to 2/1000. Run the model again and notice the effect on maximum vehicle speed and how long it takes to reach maximum vehicle speed You might also like to simulate a 35,000 kg lorry. Change the 1/m block to 1/35000 and b/m to 10/35000.
Change the shape of the Power Transfer Function. You may wish to change the gradient or make the plateau wider. Run the model.
3 -> 19
14.05.2012 20:35
Vehicle Dynamics
http://cnx.org/content/m22943/latest/
Run this model. This is the behavior that should be seen when the real-time model is run on the ezDSP for F2812.
4 -> 19
14.05.2012 20:35
Vehicle Dynamics
http://cnx.org/content/m22943/latest/
5 -> 19
14.05.2012 20:35
Vehicle Dynamics
http://cnx.org/content/m22943/latest/
6 -> 19
14.05.2012 20:35
Vehicle Dynamics
http://cnx.org/content/m22943/latest/
Subsystems Added
Rename the Subsystems to Engine Management and Vehicle Dynamics.
7 -> 19
14.05.2012 20:35
Vehicle Dynamics
http://cnx.org/content/m22943/latest/
8 -> 19
14.05.2012 20:35
Vehicle Dynamics
http://cnx.org/content/m22943/latest/
9 -> 19
14.05.2012 20:35
Vehicle Dynamics
http://cnx.org/content/m22943/latest/
10 -> 19
14.05.2012 20:35
Vehicle Dynamics
http://cnx.org/content/m22943/latest/
The values for the table can also be inserted as a table. Click on the Edit box.
11 -> 19
14.05.2012 20:35
Vehicle Dynamics
http://cnx.org/content/m22943/latest/
Select the Main tab. Change the Constant value to 0. Click on OK.
12 -> 19
14.05.2012 20:35
Vehicle Dynamics
http://cnx.org/content/m22943/latest/
13 -> 19
14.05.2012 20:35
Vehicle Dynamics
http://cnx.org/content/m22943/latest/
14 -> 19
14.05.2012 20:35
Vehicle Dynamics
http://cnx.org/content/m22943/latest/
15 -> 19
14.05.2012 20:35
Vehicle Dynamics
http://cnx.org/content/m22943/latest/
Figure 26
16 -> 19
14.05.2012 20:35
Vehicle Dynamics
http://cnx.org/content/m22943/latest/
Figure 28
17 -> 19
14.05.2012 20:35
Vehicle Dynamics
http://cnx.org/content/m22943/latest/
18 -> 19
14.05.2012 20:35
Vehicle Dynamics
http://cnx.org/content/m22943/latest/
Comparing Performance
The real-time model running on the ezDSP F2812 should now be behaving in the same way as the Simulation.
References
1. Spectrum Digital Incorporated, "eZdspTM F2812 Technical Reference" Rev. F, September 2003. (http://c2000.spectrumdigital.com /ezf2812/docs/ezf2812_techref.pdf (http://c2000.spectrumdigital.com/ezf2812/docs/ezf2812_techref.pdf) )
More about this module: Metadata | Downloads | Version History How to reuse and attribute this content How to cite and attribute this content This work is licensed by Cathy Wicks under a Creative Commons Attribution License (CC-BY 2.0), and is an Open Educational Resource. Last edited by Jacob Fainguelernt on May 5, 2009 2:26 am GMT-5.
19 -> 19
14.05.2012 20:35