Professional Documents
Culture Documents
com
Contents
Electric Drive Technology
Use Cases
Success Stories
11
dSPACE Products
MicroAutoBox II
17
19
RapidPro Hardware
22
23
29
30
Use Cases
32
dSPACE Products
EMH (Electric Motor HIL) Solution
40
45
47
48
52
54
56
57
58
2013
Controller
2013
Tests for:
Electric motors
Hybrid controllers
EPS (electronic power steering)
...
Easy Workflow
New functions are typically developed in MATLAB/Simulink/Stateflow. dSPACE Real-Time Interface (RTI) is the link
between this development software and the dSPACE hardware. It automatically implements the MATLAB/Simulink/
Stateflow model on the dSPACE MicroAutoBox, the modular
hardware installed in the AutoBox, or the stationary dSPACE
Expansion Box. If function modifications are necessary during the tests, you can simply correct a function in Simulink
and flash it to the hardware again. The dSPACE prototyping
system substitutes for any controller and its connections to
the vehicle or the controlled system during the development process.
For further product information, please see:
n MicroAutoBox II, page 17
n RapidPro, page 22
n DS1103 PPC Controller Board, page 23
n AC Motor Control Solution, page 19
n DS5203 FPGA Board, page 26
Monitoring, tuning
Implementation
on real-time hardware
2013
Use Cases
Developing Control Functions in Electric or Hybrid Electric Vehicles
Task
The main task in electric or hybrid electric powertrain development is to design the overall control strategy. The control
functions are spread over a distributed network of electronic
control units. An additional task is to integrate the control
strategy into these distributed ECU networks.
Challenge
To develop the optimal ECU algorithms for electric motors,
you need to test various different control strategies. You
therefore need a development system that acts as a substitute for the future central hybrid controller. The prototyping
system has to offer various interfaces and should be usable
in-vehicle.
Solution
During function prototyping, a dSPACE MicroAutoBox II
takes the place of the central hybrid controller. It offers
comprehensive bus interfaces and, with its compact and
robust design, it can be used in-vehicle.
The new functions developed with Simulink are implemented on the MicroAutoBox II with dSPACE Real-Time
Interface (RTI).
Hybrid
Powertrain
ECU
Powertrain CAN
RTI
Hybrid CAN
Engine
ECU
Battery
Management
System
E-Motor
ECU
Inverter
High Voltage
Battery
Combustion
Engine
2013
Transmission
ECU
Electric
Motor
Transmission
to Drive Shaft
(Vehicle
Dynamics)
Solution
To benefit fully from the high energy density of Li-ion batteries, the state of charge of the individual cells must be
monitored precisely. dSPACE has developed a RCP battery management system (p. 29) that performs this task
throughout the development process, from the first model
to in-vehicle testing. Its main focus is on measuring and
dSPACE
PGI1
Sensor
Board
Board with
balancing
resistances
Cut-off
device
Battery
Ethernet
dSPACE
system platform
RF
Isolation
watchdog
Ground
Electrical
isolation
Enclosure
Isolation fault
2013
Robotics
Task
Rapid prototyping for robotic applications requires flexible
and fast interfaces, especially fast encoder interfaces that
are easy to access from the real-time Simulink model.
Solution
The real-time system picks up the robots six incremental
encoder signals to determine the current robot position.
Then this data is compared with the reference values.
Challenge
The functions of the robotic position controller have to
be performed. In the example below, the controller board
replaces the position controller. The prototyping hardware
should also allow easy parameter modification for convenient
design optimization.
2013
In-Vehicle Prototyping
Task
The task is to develop and verify control strategies and
distributed ECU functions in an electric vehicle (EV) or hybrid
electric vehicle (HEV) "on the road".
Solution
dSPACE offers a flexible development environment for
in-vehicle prototyping of EVs and HEVs. The MicroAutoBox
provides convenient support of common bus interfaces
(CAN, LIN, FlexRay) for high connectivity. You can also use
the PGI1 (p. 47) with the MicroAutoBox to interface (via
Challenge
To develop and verify algorithms for an EV/HEV ECU network, you need a flexible and in-vehicle capable development system. Universal I/O interfaces, support for common
bus systems, and the ability to flexibly hook up the electric
motor power stages are also necessary.
LTi ServoOne
MicroAutoBox
PGI1
CAN
LVDS Link
HV Battery
2013
Solution
AC Motor Control Solution
The ACMC Solution, based on the MicroAutoBox or
the DS5202 FPGA Base Board mounted in an AutoBox,
is ideal for fast current/voltage measurement, connecting
diverse position encoders, and controlling AC motors.
The MicroAutoBox and the AutoBox can be installed
in-vehicle and connected to the electric motor. If installed
in a dSPACE Expansion Box, the ACMC Solution can also
control an industrial electric drive application.
Challenge
Fast current and voltage measurements are required and
diverse position encoders have to be connected.
PHS Bus
DS1005/
DS1006
Control signals
or
Current signals
Piggyback module
used inside
MicroAutoBox II
DS5202
Hall / Encoder
Resolver, SSI,
EnDat
EV1048
Motor
The ACMC solution offers the I/O interfaces required for developing control strategies for various AC motors such as BLDC motors.
10
2013
Success Stories
E-Motion: Motion Control Algorithms for Electric Vehicles
Research Focus at Fujimoto Research Laboratory
The Fujimoto Research Laboratory at Yokohama National
University in Japan investigates electric vehicles, focusing particularly on methods of electric drive technology.
The laboratory is working on a type of drive known as an
in-wheel motor, and is also studying the safety aspects of
Motor
for
SBW
Yaw-rate
sensor
Steering angle
sensor
Controller
AutoBox
DS1103
*f
Li-ion
battery
15Vx10
R
Motor
,Treal
Acceleration ax,ay
sensor
R
Inverter
Motor
for
SBW
) 150V
300V
Chopper
T*
L
Inverter
L
Motor
*r
Configuration of the vehicle control system.
2013
11
12
2013
dSPACE RapidPro
dSPACE MicroAutoBox
Function
System
manager
Diagnostics
CAN I/O
Actuator
driver
Sensor I/O
Hardware
LVDS
diagnostics
Measurement CAN
Engine CAN
Hybrid CAN
Drivetrain CAN
Gateway
Converters 1/2
Electrical
machines 1/2
Hardware connections
Bus connections
ECU
Combustion
engine
Battery
management
system
High-voltage
battery
system
High-voltage component
12-V component
Air
conditioning
Gateway
Air
conditioning
compressor
ESP
Cooling
circuits 1-3
AMT
E4WD
HMI
System architecture:
The dSPACE prototyping system networked in the
vehicle.
2013
13
Belted starter
alternator
Driver
Engine &
transmission
High-voltage
battery pack
CAN A
Auxiliary
controller
Exhaust
system
CAN B
Rear electric
motor
GM LAN
The MicroAutoBox interfaces with the powertrain control modules via dual CAN buses and several I/Os.
14
2013
Data
acquisition
2013
15
Additional Information
You can download success stories, articles and product
information on drive applications at www.dspace.com under
"Downloads".
16
Title
Author
Published at
All Inclusive/Off-the-Shelf
2013
dSPACE Products
MicroAutoBox II
Compact prototyping unit for electric motor controls
n Comprehensive I/O including CAN, LIN, K/L line,
FlexRay, Ethernet, and LVDS/bypass interfaces
n Robust and compact design ideal for in-vehicle use
n IBM PowerPC running at 900 MHz
n Variant with Simulink-programmable FPGA
n AC Motor Control Solution (p. 19)
n NEW: Multistage watchdog mechanism
IBM PPC
750 GL
16 MB
local RAM
Clock/
calendar
Watchdog
USB
Connector
(LEMO)
ECU
interface
Connector
(LEMO)
ECU
interface
Connector
(LEMO)
Ethernet
I/O
interface
Connector
(LEMO)
Signal Generation/
Measurement
Signal
Conditioning
CAN/LIN/serial
module
Physical
CAN/serial
CAN/LIN/serial
module
Physical
CAN/serial
Digital I/O
(FPGA-based)
Signal
conditioning
& protection
16-channel
16-bit ADC
Signal
conditioning
& protection
4-channel
12-bit DAC
Signal driver
& protection
Signal Generation/
Measurement
Signal
Conditioning
I/O Connector
Performance
timer
Connector
(LEMO)
6 MB
communic.
memory
16 MB
flash
(non-volatile)
Key Benefits
The special strength of the MicroAutoBox hardware is its
unique combination of high performance, comprehensive automotive I/O, and an extremely compact and robust
design all for a favorable price. This lets you equip several vehicles or a whole test fleet to check the reliability of your control functions. In addition to the standard
I/O, MicroAutoBox offers variants with FPGA functionality
for application-specific I/O extensions and for user-programmable FPGA applications. Moreover, there are MicroAutoBox
variants with interfaces for all major automotive bus systems:
CAN, LIN, K/L line, FlexRay, and Ethernet.
Ethernet
host
interface
Application Areas
MicroAutoBox is a real-time system for performing fast
function prototyping in fullpass and bypass scenarios.
It operates without user intervention, just like an ECU.
IP module slot
(e.g., for FlexRay)
Programmable
FPGA
MicroAutoBox II
1401/1511/1512
FPGA
extension slot
Optional signal
conditioning on DS1552
or ACMC Solution
Add-On Modules1)
I/O Connector
IP module slot
(e.g., for FlexRay)
2013
17
Technical Details
Parameter
Specification
MicroAutoBox II
1401/1511
Processor
Memory
n 16 MB main memory
1401/1511/1512
Boot time
Inter
faces
Host interface
n 100/1000 Mbit/s Ethernet connection (TCP/IP). Fully compatible with standard network infrastructure. LEMO connector.
n Optional XCP on Ethernet interface to support third-party calibration and measurement tools
Real-time I/O
interface
n 100/1000 Mbit/s Ethernet connection (UDP/IP). RTI Ethernet (UDP) Blockset (optional) for read/write access.
USB Interface
n USB 2.0 interface for long-term data acquisition with USB mass storage devices. LEMO connector.
CAN interface
LEMO connector.
FlexRay interface
Programmable FPGA
Analog Resolution
input
Sampling
Input voltage range
Analog Resolution
output Output voltage range
Digital
I/O
n 16 16-bit channels
n 0 ... 4.5 V
n 0 ... 4.5 V
Output current
General
Bit I/O
n 40 inputs
n
40 inputs (additional channels with DS1552)
n
40 outputs, 5 mA output current (additional channels with
DS1552)
n Input / output logic levels: 5 V or levels up to 40 V (depending on VDrive), selectable
PWM generation/
measurement
Signal conditioning
Physical connections
n ZIF connector for I/O signals, mechanically secured, Sub-D connector for power supply
n LEMO connectors for 2 ECU interfaces, Ethernet I/O interface, USB interface, and Ethernet host interface
n Ethernet I/O interface for notebook/PC for program load, experiment configuration, signal monitoring and flight recorder
read-out
n Integrated Ethernet switch
Physical
Enclosure
characteristics material
18
Power supply
n 6 ... 40 V input power supply, protected against overvoltage, and reverse polarity
Power
consumption
n Max. 25 W
IP module slot. Can also be used for other IP modules such as an ARINC interface module (via dSPACE Engineering Services).
User-programmable via RTI FPGA Programming Blockset. Using the RTI FPGA Programming Blockset requires additional software.
1)
2013
n Max. 50 W
2)
Purpose
The AC Motor Control Solution is based on the DS5202
FPGA Base Board and on the MicroAutoBox with DS1512
I/O Board.
These are specially designed for fast current / voltage measurements, connecting diverse position encoders and control
ling AC motors such as ASMs, BLDCs and PMSMs. Rapid
Use Cases
Typical use cases for the AC Motor Control Solution are
highly dynamic control systems for different types of AC
motors.
Some scenarios are:
n Field-oriented control of PMSMs or ASMs
n Controlling BLDCs
n Prototyping new methods for sensorless control
n Using RapidPro Power Unit with suitable modules or
customer-specific power converters
To use the AC Motor Control Solution in a vehicle, you can
install it in the dSPACE AutoBox or use the MicroAutoBox
variant. For stationary use, it can be installed in an Expansion Box.
Applications
n Measurements (of phase currents and/or voltages,
and DC link currents or voltages) and ADC starts can
be synchronized to PWM signals
n Position and speed measurements using typical
sensors such as Hall sensors or incremental encoders,
resolvers, or typical single/multiturn encoders with
serial interfaces (EnDat or SSI)
n Generation of gate driver signals (center-aligned
3/6 PWMs for sinusoidal commutation or PWM signals
for block commutation or advanced customer-specific
PWM patterns)
n Synchronization of ADC measurement with centeraligned PWM signals (regular sampling)
n Model synchronization by interrupt generation at the
center position of the PWM or at user-defined motor
angles
n Trigger signal to external devices at the center position
of the PWM
2013
19
PHS Bus
DS1005/
DS1006
Control signals
or
Current signals
Piggyback module
used inside
MicroAutoBox II
DS5202
Hall / Encoder
Resolver, SSI,
EnDat
EV1048
20
2013
Motor
This includes:
n Control of AC motors, e.g., asynchronous motors (ASMs),
brushless DC motors (BLDCs) and permanent magnet
synchronous motors (PMSMs)
n Flexible I/O interfaces for diverse position sensors such
as hall sensors, encoders and resolvers
n Suitable PWM generation for electric drives
n Dedicated RTI Blockset for MATLAB/Simulink
n Available with MicroAutoBox variant 1401/1511/1512
Specification
Digital input
Example: 3 x single-ended for Hall sensor, 3 x differential for incremental encoder, 2 x single-ended for bit in,
frequency and duty cycle measurement
Digital output
n 24 channels, 0 ... 5 V, single-ended to generate gate driver signals, PWM synchronization signals, bit out
n Gate driver frequency 10 Hz ... 1 MHz
ADC
DAC
Resolver interface
n Max. position resolution 16 bit (depending on motor velocity). Generation of excitation signal (3,7,10 Vrms;
RS422/RS485
n 12 V: max. 50 mA
n 5 V: max. 50 mA (use the MicroAutoBox II VSENS-PIN for currents up to 250 mA)
2013
21
RapidPro Hardware
Electric drive power stages
n Scalable, modular, and configurable system architecture
n Compact and robust enclosure
n For in-vehicle, laboratory, and test bench use
n Comprehensive software support
n Application-specific configurations for common
application areas
n
n
n
n
n
n
n
n
n
n
PS-HCFBD 1/2
n
n
n
n
n
n
n
n
n
PS-HCHBD 2/2
n
n
n
n
n
n
n
22
n
n
2013
n
1)
Application Areas
The DS1103 controller board is designed to meet the requirements of modern rapid control prototyping and is highly
suitable for applications such as:
n Automotive controllers
n Electric motor control
n Robotics
n Positioning systems and stepper motors
n Active vibration control
Key Benefits
The DS1103 is an all-rounder in rapid control prototyping. You can mount the board in a dSPACE Expansion Box
or dSPACE AutoBox to test your control functions in a
laboratory or directly in the vehicle. Its processing power
and fast I/O are vital for applications that involve numerous actuators and sensors. Used with Real-Time Interface
(RTI), the controller board is fully programmable from the
Simulink block diagram environment. You can configure
all I/O graphically by using RTI. This is a quick and easy way
to implement your control functions on the board.
Comprehensive Interfaces
The unparalleled number of I/O interfaces makes the DS1103
a versatile controller board for numerous applications. It
provides a great selection of interfaces, including 50 bitI/O channels, 36 A/D channels, and 8 D/A channels. For
additional I/O tasks, a DSP controller unit built around Texas
Instruments TM320F240 DSP is used as a subsystem.
2013
23
Technical Details
Parameter
Specification
Processor
Memory
A/D converter
PowerPC Type
n PPC 750GX
CPU clock
n 1 GHz
Local memory
Global memory
n 96 MB communication SDRAM for data storage and data exchange with host
Channels
(4 channels belong to one A/D converter. 4 consecutive samplings are necessary to sample
all channels belonging to one A/D converter.)
n 4 parallel channels each equipped with one sample & hold A/D converter
n Note: 8 A/D converter channels (4 multiplexed and 4 parallel) can be sampled simultaneously.
Resolution
n 16-bit
n 10 V
Overvoltage protection
n 15 V
Conversion time
D/A converter
Digital I/O
Channels
n 8 channels
Resolution
n 16-bit
Output range
n 10 V
Channels
Digital incremental
encoder interface
Channels
n 6 independent channels
n Single-ended (TTL) or differential (RS422) input (software programmable for each channel)
Position counters
n 24-bit resolution
n Max. 1.65 MHz input frequency, i.e., fourfold pulse count up to 6.6 MHz
n Counter reset or reload via software
n 5 V/1.5 A
n Shared with analog incremental encoder interface
Analog incremental
encoder interface
Channels
n 1 channel
n Sinusoidal signals: 1 Vpp differential or 11App differential (software programmable)
Position counters
n < 5 resolution
n 32-bit loadable position counter
n Max. 0.6 MHz input frequency, i.e., fourfold pulse count up to 2.4 MHz
CAN interface
Configuration
Serial interface
Configuration
Baud rate
Slave DSP
Type
I/O channels2)
Host interface
Physical
characteristics
2013
Ambient temperature
n 0 50 C (32 122 F)
Cooling
n Passive cooling
Speed and timing specifications describe the capabilities of the hardware components and circuits of our products. Depending
on the software complexity, the attainable overall performance figures can deviate significantly from the hardware specifications.
2)
The exact number of I/O channels depends on your configuration and is described in the user documentation.
1)
24
Physical size
Specification
Digital input
n 8 channels, 0 ... 5 V, differential or single-ended. Default: 3 x single-ended for Hall sensor, 3 x differential for
Digital output
n 10 channels, 0 ... 5 V, single-ended; 6 gate driver signals, 4 generic digital outputs (e.g. PWM synchronization
incremental encoder, 2 x single-ended for bit in, frequency and duty cycle measurement
signals or bit out), optional: 12 additional gate driver signals with ACMC PWM Extension Board
n Gate driver frequency 10 Hz ... 1 MHz
ADC
DAC
Resolver interface
n Max. position resolution 16 bit (depending on motor velocity). Generation of excitation signal (3,7,10 Vrms);
RS422/RS485
n 5 V and 12 V, 140 mA
2013
25
26
Purpose
The DS5203 FPGA Board can be adapted to various tasks,
so you can react flexibly to tougher requirements like signal
conditioning, using new interfaces, or speeding up model
parts. FPGAs are especially useful for relieving the processor board of tasks such as signal preprocessing during ECU
development.
Application Areas
Running at 100 MHz, the DS5203 board is ideal for application fields like engine knock, cylinder pressure analyses and
electric drive projects. The DS5203 works together closely
with application-specific XSG model libraries.
Two Variants
The DS5203 is available with two different FPGAs:
n DS5203 LX 50 includes a Xilinx Virtex-5 LX50T-1C FPGA
consisting of 46,080 logic cells and 48 special DSP blocks.
This board offers a cost-effective solution for smaller
applications and starter systems.
n DS5203 SX95 includes a Xilinx Virtex -5 SX95T-2C
FPGA consisting of 94,298 logic cells and 640 special
DSP blocks. The large amount of DSP blocks help by
performing tasks such as fast, resource-saving multiplication.
2013
Technical Details
Specification
Parameter
DS5203 LX50
DS5203 SX95
General
n User-programmable FPGA
FPGA
n 100 MHz
Device timing
Digital I/O
Input
Analog I/O
Output
n Digital output: Push-pull drivers; one output voltage can be selected for all channels: 3.3 V or 5 V
Input
n 6 channels
n Resolution 14-bit pipelined
n Sampling rate 10 MSPS
n Input voltage range selectable for each channel: 5 V or 30 V
Output
n 6 channels
n Resolution 14-bit
n Update rate 10 MSPS
n Output voltage range: 10 V
n Slot for one I/O module for extending the analog and digital I/O
Further interfaces
Physical characteristics
Physical size
Ambient temperature
Power supply
n +5 V 5%, 2.5 A
n +12 V 5%, 0.7 A
n -12 V 5%, 0.1 A
Optional
Hardware
Optional
2013
27
Technical Details
Parameter
Specification
Digital I/O
Input
Output
n Push-pull drivers
n One output voltage can be selected for all channels: 3.3 V or 5 V
Analog I/O
Input
n 6 channels
n Resolution 14-bit pipelined
n Sampling rate 10 MSPS
n Input voltage range selectable for each channel: 5 V or 30 V
Output
n 6 channels
n Resolution 14-bit
n Update rate 10 MSPS
n Output voltage range: 10 V
Sensor supply
n Adjustable
n Output voltage range: 2 V to 20 V
28
2013
Technical Details
n Modular system supporting 6 to approx. 200 cells,
installable in a vehicle
n Intersil ISL78600 BMS IC
n Cell voltage measured with 3 mV accuracy
n User-defined sampling rate (max. 1 kSPS)
n Plug-on modules for quick replacement of balancing
resistances. Resistance values up to 10 Ohm
n S-function-based Simulink blockset (RTI Ethernet
(UDP) blockset additionally required)
n Two balancing modes:
n Manual mode with full user control
n Configurable automatic mode
n Synchronized battery cell measurement
n Comprehensive error detection features
n Isolation monitoring device connectable to each
EV1093
2013
29
HIL Interfaces
An ECU or other system for controlling electric motors can
be accessed by the HIL simulator at different levels. Which
interface to use depends on the testing purpose and project
conditions:
30
environment
n Testing of mechanical parts
2013
Hardware-in-the-Loop Simulation
ECU
3 Phase
Voltages
Electric
Motor
Controller
Transmission
Power
Converter
Vehicle
Application
Current Signal
Application
Controller
Position Signal
Controller
Power Stage
Electric Motor
Mechanics
Signal Level
Mechanical Level
Sensor Signals
Battery Simulation
dSPACE offers special hardware and software for battery
simulation:
n Real-time hardware for HIL tests with high voltage
accuracy and galvanic separation
n Simulation models for lithium-ion batteries and
nickle-metal hydride batteries for realistic battery
management tests
Simulation Models
For real-time simulation of an electrical system, dSPACE
provides the ASM Electric Components Library for processorbased simulation and the XSG Electric Components Library
for FPGA-based Simulation.
Applications can range from electric drives and inverters
for closed-loop simulation with an electric drive controller, to a complete automotive electrical system including a
battery, starter, alternator, and loads. Typical use cases are
the simulation of realistic battery behavior during starter
activation, electric drives that are integrated into a hybrid
electrical vehicle powertrain, etc.
2013
31
Use Cases
Simulating Brushless DC Motors at Electric Power Level
Task
Drives with brushless direct current (BLDC) motors are popular because they are simple and robust. Often they are operated without any position sensors like Hall sensors and are
Stator windings
Stator
Permanent
magnets
zA+
hA
hB
C
Rotor
Hall sensors
hC
Challenge
During the operation of BLDC motors only two of the three
phases are triggered at a time. In the third, untriggered
phase the electromotive voltage is induced, which affects
the ECU terminals. In sensorless control, the ECU measures
this voltage for position detection.
Solution
A dSPACE Simulator equipped with a DS5203 board and
XSG Electric Component Models enables the complete simulation of BLDC motors at electric power level. No real parts
are required. Due to the characteristics of BLDC operation
described above, the simulation comprises a current emulation and also a voltage emulation.
32
2013
iA
iB
iC
hA
hB
hC
zB+
zC+
UD
zA-
zB-
zC-
commutation logic
Challenge
The test system has to cover a wide range of electric motor
power variations. As real parts would necessitate time-consuming modifications to the test system, simulation models
are used. They have to be as precise as possible.
L3
L2
L1
Network
Interface
Hiperface
Encoder
EnDat 2.1
Encoder
SSI
Encoder
Encoder
TTL Encoder
START
RESET
QUICKSTOP
ENABLE
Solution
A DS1005 Processor Board and the DS5202 Electric Motor
HIL Solution are used for the real-time simulation. The
simulation models use components from the ASM Electric
Components Library. The FPGA of the DS5202 handles the
time-critical I/O parts for the simulation model, enabling
moderate sample rates.
The dSPACE EMH Solution (p. 40) is ideal for this application,
as it offers emulation for almost all industrial position sensor
systems such as resolvers, TTL encoders, sine encoders and
Hall sensors, and also protocol-based sensors such as SSI,
EnDat 2.a and Hiperface.
Power Supply
ANALOGIN1
ANALOGIN2
Resolver
Resolver
U
V
W
LL+
D.C. link
Braking
resistor
RB
2013
33
Challenge
The signals of ECUs for EPS often cannot be accessed at
signal level. HIL simulation is therefore performed at power
level. The ECUs have to be connected to the real motor
either at mechanical level or by simulation at electric power
level.
The electric power level requires real currents and a simulation for the motor. This solution is quite flexible and can
be adapted quickly: for example, to simulate different motor types. The simulation can also be combined with HIL
simulation for an ESP.
Solution
In both cases dSPACE Simulator is equipped with a DS5203
FPGA Board running the XSG electric components e-motor
models. Electronic load modules (p. 48) provide the real
current for simulation at electric power level. dSPACE Auto
Node #1:
ESP HIL
Real
Sensor
Cluster
ESP ECU
ASM Driver,
Maneuver
Scheduler
ASM Traffic
CAN
Gateway for
Sensor
Cluster
ASM
(e.g. Gasoline,
Transmission)
ASM Vehicle
Steering
System
DS5380
FEPS
xRod
xRod
iEPS
TEPS
wEPS
iEPS
Electric Motor
Simulation
iEPS
Brake
Hydraulics
EPS
ECU
Position Sensor
Simulation
MDoF
Vehicle
Dynamics
APU
eEPS
VSD
(Valve Current
Detection)
Electronic Loads
T Sensor
DS5203
Torque Sensor
Simulation
Overall integration of EPS electric motor simulation at electric power level, together with an HIL simulation for an ESP.
34
2013
steering system is integrated into the vehicle that developers can actually experience it. As this subjective impression
is very important and the integration process is expensive,
another approach is needed.
Challenge
The test system needs to provide haptic feedback and offer a
close-to-reality environment simulation for a realistic steering
feeling and driving behavior. Its purpose is to give an initial
impression at an early stage of product development. The
simulation model has to take extra features into account,
such as automatic parking and lane-keeping assistants for
enhancing comfort and active safety.
Driving simulator
Steering wheel
angle
Steering torque
Optical
feedback
Visualization
Solution
dSPACE combines a HIL steering test bench and a static driving simulator that enables pre-calibration on a virtual experimental vehicle. The test apparatus consists of the real steering system with its actuators, and the driving simulator with
a load machine for the steering wheel, the accelerator pedal,
and the brake pedal. Both are coupled to the dSPACE Automotive Simulation Models (ASMs) running on a quad-core
DS1006 Processor Board. The ASMs are open Simulink models
for the real-time simulation of passenger cars, trucks and
trailers that simulate the vehicle's vertical, longitudinal and
lateral dynamics as a multibody system with 24 degrees
of freedom.
Visualization is done with dSPACE
MotionDesk using small LCD monitors representing the outside and
EPS test system with HIL
inside rear-view mirrors. The sensation of driving is further intensified
by road and engine noises.
Torque
interface
The system is used not only to investigate and adjust steering systems,
but also to run driver assistance systems such as lane departure warning
Rack
Rack
systems.
force
position
Vehicle simulation
Vehicle
response
2013
35
Challenge
To test the ECU with real motors as well, the test system
allows switching between electric motors as real parts and
simulated electric motors by using simulation models. High
currents up to 60 A are needed to simulate the inrush current of the DC motors.
Solution
A dSPACE hardware-in-the-loop simulator is equipped
with a DS2211 HIL I/O Board, which provides various interfaces for connecting the ECU. New ECU variants can
easily be adapted to the simulation just by changing the
cable harness. Electronic load modules and a DS5203
running XSG Electric Components Library models emulate the electric motors. To test the ECU's behavior during electric failures, high-current failure simulation can be
performed. dSPACE Automotive Simulation Models (ASM)
such as ASM Drivetrain are used for simulating the actual
physical gearbox characteristics.
36
2013
Solution
The typical HIL simulation setup for battery management
system tests comprises a processor board, HIL I/O boards
for I/O interfaces, a board for CAN interfaces, and a failure
insertion unit for testing electric failures. Restbus simulation
is used for simulating unavailable cell stacks. dSPACE offers
specialized hardware and software for testing a BMS, for
example, the EV1077 Battery Cell Voltage Emulation Board
(p. 52) for simulating high-voltage batteries at cell level
and the ASM Multicell Models (p. 55). The test system can
virtually represent the electrical and thermal properties of
a battery down to cell level.
Other components are high-precision voltage sources from
0 to 6 V, which can take the load of the current flowing in cell
Relay control
BMS
Electric I/O
Temperature
sensor
simulation
Challenge
Batteries for electric vehicles have extremely high voltages
and currents, so the BMS is safety-critical. To ensure safety
during HIL simulation, the overall voltage might have to be
scaled down. Electrical failure simulation is also needed to
make sure the BMS reacts correctly in all circumstances.
These are typical failure tests:
n Broken wires
n Short circuits
n Loose contacts
DS1006
Switch (relay)
High voltage
measurement
High voltage
simulation
Isolation monitoring
Isolation fault
simulation
CAN
CE 1 ... n
LVDS
I/0
Failure simulation
CAN
DS4121
DS2211
PHS bus
Task
The battery management system (BMS) monitors the electric
and thermal state of the batteries used in hybrid or electric
vehicles. It takes the drive's requirements and environment
impacts into account, and influences each battery and its
cells to provide the energy needed and to maintain optimal operation conditions for good performance and long
battery life.
DS4302
Failure simulation
BMS: Battery Management System
CE: Cell ECU
LVDS: Low Voltage Differential Signaling
2013
37
Solution
For hardware-in-the-loop simulation, you can connect all
existing powertrain ECUs with the HIL simulator. The simulator is equipped with at least one processor board and
various interface boards. Powertrain components that are
not yet available are emulated via restbus simulation. Testing
usually also covers several CAN networks. The modularity
of the dSPACE hardware means that the simulators can be
configured for various applications. All known hybrid vehicle
versions and ECU or CAN configurations are possible.
For integration testing, a hybrid electric powertrain simulator
Powertrain CAN
Hybrid CAN
Transmission
Engine
Electric Motor
Battery
Transmission
ECU
Engine
ECU
E-Motor
ECU
Valve
Drawer
Hybrid
EPS
Powertrain
ECU
ECU
Battery
Management
System
Load FIU
Node #1
38
Challenge
To set up a typical realistic hybrid powertrain, two parallel
CAN structures have to be built: A powertrain or vehicle CAN
and a private hybrid CAN. The powertrain CAN connects
the standard ECUs such as the engine ECU and transmission
ECU, and others such as the ESP ECU which can also be
simulated by their CAN messages. The hybrid-specific ECUs
are usually connected to the hybrid CAN.
2013
Gigalink
Gigalink
Node #2
Node #3
Extension
by further
racks and
ECUs
to full
Virtual
Vehicle
Node #X
Additional Information
You can download success stories, articles and product
information on drive applications at www.dspace.com under
"Downloads".
Author
Published at
Hardware-in-the-Loop Simulation
of Electrified Powertrains
Leistungselektronikmodelle fr Hardware-in-the-Loop-Simulation
Dr. Claus Abicht (dSPACE GmbH, ), Markus Ploeger HDT, Mnchen, Apr 2012
(dSPACE GmbH), Joerg Bracker (dSPACE GmbH), Dr.
Hagen Haupt(dSPACE GmbH)
SPS/IPC/DRIVES10, Nrnberg,
Nov 2010
Syed Ali (dSPACE Inc), Amanjot Dhaliwal (dSPACE Inc), SAE World Congress, Apr 2009
Shreyas C. Nagaraj (dSPACE Inc)
HIL Simulation for Mechatronic Automotive Electronic Control Units Andreas Filgerdamm (dSPACE GmbH), Markus
Plger (dSPACE GmbH), Dr. Thomas Schulte
(dSPACE GmbH
Jrgen Klahold (dSPACE GmbH), Dr. Thomas Schulte HDT, March 2007
(dSPACE GmbH), Dr. Andreas Wagener
(dSPACE GmbH)
2013
39
dSPACE Products
EMH Solution
Electric motor hardware-in-the-loop simulation
n High-precision digital capturing of
3-phase PWM signals
n Fast signal measurement and analysis
n Simulation of various position sensors
n High timing resolution
n Various additional multipurpose signals
Purpose
The EMH (electric motor HIL) solution is based on the DS5202
FPGA Base Board. It gives you all the I/O channels that are
needed for HIL simulation of electric motors, such as highprecision digital capturing of 3-phase PWM signals and
position sensor simulation, plus several digital and analog
I/O channels. It combines the features of the DS5202 PWM
and PSS Solutions with many additional multipurpose channels, and enables efficient testing of electronic control units
(ECUs) for electric motors on a single I/O board.
Applications
The DS5202 EMH Solution combined with a simulation
model allows you to measure the signals of up to 2 electric
machines with up to 8 power switch control signals each,
such as IGBTs (insulated-gate bipolar transistors). There
is a choice of three operating modes: software polling,
external interrupt source, and internal pulse center interrupt
source, meaning clock generation based on the measured
PWM signals, which is the most suitable way of avoiding
beat effects.
40
2013
Use Case
A typical use case is a hardware-in-the-loop (HIL) simulation
where the electric motor including the electronic power
stage is simulated with the dSPACE modular real-time
processing hardware (DS1005/1006). Simulation models
like the ASM Electric Components models are used for
simulating the electric components. The gate driver signals (typically PWM signals) coming from a controller are
measured by the DS5202 EMH Solution, and calculated
motor current signals are sent back to the controller by
means of analog voltage signals, which can also be provided
by the DS5202 EMH Solution. In addition, the DS5202 EMH
Solution provides the necessary position sensor signals for
the ECU.
PHS bus
DS1005/DS1006
DS5202
Gate control signals
I/O module
Current signals
ECU
Hall/encoder
RTI Blockset
Resolver
PWM Measurement
Features
n Measuring duty cycles and periods of up to 16 PWM
signals
n Separate access by groups of 8 channels via Simulink
interface; capture mode adjustable independently for
each group
n Evaluating dead time between adjacent channels
n Generating interrupts and triggers to external devices at
the center position of the PWM period
2013
41
Analog Sensors
Resolver:
n Number of pole pairs
n Output mode
n Direct (single-ended)
n Direct (differential)
n Transformer (standard)
n Amplitude of excitation signal
n Transformation ratio
Sinus encoder:
n Lines per revolution
n Output mode
n Direct (single-ended)
n Direct (differential)
n Amplitude of output voltage signal
n DC offset of output signal
n Default or user-defined index signal
User-defined waveform:
n Separate waveform definition for each of the three
analog channels
n Waveform repetition per revolution
n DC offset
Digital Sensors
TTL encoder:
n Lines per revolution
n Default or user-defined index signal
Hall encoder:
n Number of pole pairs
n Start and end positions of pulse for all three digital
channels separately
User-defined waveform:
n Waveforms per revolution
n Waveform definition for each of the three digital
channels separately
42
2013
Protocol Sensors
SSI Encoder:
n Data frame length
n Monoflop time
n Bit code
n Type of parity bit
n Number of multiturn bits
n Definition of data frame
Hiperface Encoder:
n Baud rate
n Type of parity bit
n Number of multiturn bits
n Driver active time
n Pause time
n Bus dead time
n Enable parameter channel
n Definition of data frame
EnDat Encoder:
n Data frame length
n Recovery time
n Calculation time
n Bit code
n Number of multiturn bits
n Enable memory access
n Memory access time
n Definition of data frame
Multipurpose Channels
Features
n 7 analog output channels
n 6 analog input channels (2 channels shared with resolver
simulation)
n 10 digital outputs
In addition to the EMH Solution, a PWM Measurement and a Position Sensor Simulation Solution are also available.
Other dSPACE products for hardware-in-the-loop simulation:
DS5203 FPGA Board (p. 26)
n FPGA programmable per application
n Completely user-programmable via RTI FPGA Programming Blockset
n Utilizes the Xilinx System Generator (XSG) Simulink Blockset
n Offline simulation in Simulink
n Basic set of I/O drivers on board, I/O extendable by piggyback modules
2013
43
Specification
Timing resolution
n 12,5 ns
Frequency range
Digital inputs
Specification
Timing resolution
n 32 bits
n 12 bits (10 MSPS), based on the user-specified voltage range (10 MSPS)
Encoder
Specification
Analog outputs
Analog inputs
n 3 channels: inpult voltage range (30 V ), differential, 14-bit (10 MSPS), overvoltage protection 50 V
n 1 channel: inpult voltage range (30 V ), differential, 16-bit (1 MSPS), overvoltage protection 50 V
Digital outputs
n 13 channels: 5 V, TTL, max. 40 mA, overvoltage protection 50 V, (3 channels shared with position sensor
simulation)
Digital inputs
n 1 channel: 0...+20 inpult voltage range, threshold adjustable from 1V to 8.5V, overvoltage protection 50 V
n 16 channels: 0...+20 inpult voltage range, up to 80MHz PWM measurement, threshold adjustable from 1V
LTi ServoOne TWINsync Interface (to control a ServoOne inverter by dSPACE real-time hardware)
n PWM control
n Torque control
n Speed control
n Position control
Scope of Delivery
n FPGA Base Board
n I/O piggyback module for DS5202 EMH applications
n Slot module for DS5202 EMH applications
n FPGA firmware for DS5202 EMH applications
n Simulink interface for DS5202 EMH applications
44
2013
Application Area
The DS2655 FPGA Base Module has been designed for
SCALEXIO HIL applications that require very fast, highresolution signal processing, for example:
n Hybrid vehicle applications
n Electric drive applications
n Wind energy converters
n Processor-based electric motor simulation
n FPGA-based electric motor simulation
Key Benefits
The DS2655 includes a powerful, freely programmable fieldprogrammable gate array (FPGA), the Xilinx Kintex-7 160T.
To include I/O channels, you connect up to five I/O modules
to the board.
Failure simulation can be added for each I/O module by
using an additional FIU module.
2013
45
Specification
General
n User-programmable FPGA
FPGA
n 5
Device timing
n 125 MHz
n IOCNET
Physical characteristics
Physical size
Power supply
n 24 V
Specification
Digital I/O
Input
Output
Analog I/O
Input
n 5 channels
n Resolution 14 bit
n Sampling rate 4 MSPS SAR
n Input voltage range selectable for each channel: 5 V or 30 V
n 5 channels
Output
n Resolution 14 bit
n Update rate 7,8125 MSPS
n Output voltage range: 10 V
n Adjustable
Sensor supply
Physical characteristics
Physical size
Power supply
n 24 V
Relevant Software
Software
Required
Optional
46
2013
2013
47
Key Features
n Current sink and source capability
n High-speed current regulation ideal for loading PWM
power stages
n Simulation of current ripple
n Different types of electric motors
n Remote-controlled by standard 10 V analog signals
Technical Details
The DS5380 Electronic Load Module contains two independent load channels which can control a unipolar current
through its output stage. It provides high-speed current
regulation of less than 5 s. Each module can provide continuous current of 30 A and 300 W, and a maximum voltage
of 30 V can be applied. Several modules can be connected
in parallel to increase the current. Cooling is performed by
a temperature-controlled fan. The modules are protected
against overload and overtemperature. The control options
can be configured via jumper switches. The two channels can
be used as a sink and source device (bidirectional current)
or they can be switched in parallel to double the maximum
current if a current flow in only one direction is required.
This expands the range of applications beyond electric motor simulation.
For further information, please refer to the DS5203 FPGA
Board (p. 26), the DS2655 FPGA Base Module (p.45) and
the XSG Electric Component Library (p. 56).
48
2013
Power Recovery
The DS5381 Electronic Load Module uses the same supply
voltage as the device under test (the ECU). It is equipped
with bidirectional working voltage regulators so that the
current that is sunk on one pin can be sourced to another
pin. This means that the effective power which is simulated
on the load pins can be much higher than the power
consumption of the electronic load.
Operation Modes
The DS5381 Electronic Load Module can be operated in
three different modes:
n Current control mode (typically for motor applications,
not BLDC motors)
n Voltage control mode (general-purpose applications)
n Mixed current and voltage control mode (BLDC motor
applications)
The mode parameter can be set from the host via protocol.
For further information, please refer to the DS2655 FPGA
Base Module (p. 45).
2013
49
DC-link+
Microcontroller +
MOSFET driver
E-load
type-B
Battery
ECU
DC-link-
ECU diagnostics
50
12 V
6 ... 60 V
16-80 V
3300 W
Dimensions
Weight
15.5 kg
2013
Applications
The concept of the electronic load emulator can be used
for simulating all types of motors. The physical properties
of each motor, such as motor inductivity, torque generation
and power consumption, are represented very realistically.
For variable inductivities (such as in an interior permanent
magnet or IPM motor, or with saturation effects), mean values
have to be used in the load emulator due to the constant
substitute inductivities. Nevertheless, correct representation of the torque and
the power is possible.
Any desired hybrid
and electrical vehicle
configuration can be
simulated by using different electric motor
models in conjunction
with variable drivetrain
models (for example,
Automotive Simulation
Models from dSPACE).
The concept
is also suitable for various industrial
HIL applications.
2013
51
Technical Data
EV1077 Battery Cell Voltage Emulation Board1)
Hardware structure
Output voltage
n 0 ... 6 V
Resolution
n 120 V
n 1.5 mV
n 10 ... 50 C
n 1 A, switchable in parallel
Isolation
Connection
n 1 kHz
Fault simulation
1)
52
2013
2013
53
Features at a Glance
n
Ready-to-use components with automotive features
n
Prepared for testing battery management controllers
n
Simulated battery voltage as set point for HIL power supply
n
Simulation of electric drive components and power electronics in a closed loop with ECU
n
Simulation of hybrid powertrain together with ASM
engine simulation models
n
Variable sample times for pulse width modulated (PWM)synchronous calculation
n
Simulation of a complete automotive electrical system
n
Graphical parameterization in ModelDesk
n NEW: PMSM machines with current-dependent inductances
n
NEW: Parallel connectivity of battery modules
Electric
Motor
Transmission
AC/DC
3-Phase
Power
Converter
54
2013
Battery
Terminal current
of battery
Reference cell
model provides
reference terminal
voltage
Terminal voltage
of reference cell
EV1077
ECU
battery
management
Vcell
I bal
C1
C2
Reference resistance
and charge state
C4
Voltage differences
of cells
The ASM cell model consists of a reference cell model, and a delta
model that computes the deviation of each individual cells voltage
from the reference voltage.
CAN
bus
EV1077
C5
C6
Vehicle ECUs
C7
C8
Balancing current
C3
Cell module
Delta model
for calculating
deviations in cell
voltage based on
individual parameters
Terminal
voltages of
cells
Simulator
2013
55
Key Benefits
n High precision and stability
n Very high oversampling rate in relation to the PWM
switching frequency
n No PWM synchronization necessary
n Current ripple (PWM effects) can be simulated
n Better precision in simulating higher fundamental
frequencies
56
2013
frequencies
n Run-time license available
2013
57
58
2013
Features
n Graphical definition of motor characteristics
n ASM-compatible export of motor characteristics
n Easy and precise parameterization of the ASM electric
motor models
n Parameterization and calculation of FPGA-based
spatial harmonic motor models
2013
59
www.dspace.com
Company Headquarters
in Germany
09/2013
United Kingdom
France
dSPACE GmbH
Rathenaustrae 26
33102 Paderborn
Tel.: +49 5251 1638-0
Fax: +49 5251 16198-0
info@dspace.de
dSPACE Ltd.
Unit B7 . Beech House
Melbourn Science Park
Melbourn
Hertfordshire . SG8 6HB
Tel.: +44 1763 269 020
Fax: +44 1763 269 021
info@dspace.co.uk
dSPACE SARL
7 Parc Burospace
Route de Gisy
91573 Bivres Cedex
Tel.: +33 169 355 060
Fax: +33 169 355 061
info@dspace.fr
China
Japan
dSPACE Inc.
50131 Pontiac Trail
Wixom . MI 48393-2020
Tel.: +1 248 295 4700
Fax: +1 248 295 2950
info@dspaceinc.com