4
MICROCONTROLLERS Simplifying HEV and EV design DRIVER ASSISTANCE SOFTWARE TOOLS INFOTAINMENT SECURITY AUTOSAR www.automotive-electronics.co.uk PRODUCTS + NEWS + AUTOSPORT SHOW REPORT AUGUST/SEPTEMBER 2011

Sensors Used in HEV

Embed Size (px)

Citation preview

Page 1: Sensors Used in HEV

MICROCONTROLLERS Simplifying HEV

and EV design

DRIVER ASSISTANCESofTwARE ToolS INfoTAINMENTSECURITYAUToSAR

www.automotive-electronics.co.uk

PRODUCTS + NEWS + AUTOSPORT SHOW REPORT

AUGUST/SEPTEMBER 2011

For nearly 30 years the world’s leading automotive electronics companies have trusted Green Hills Software’s secure and reliable high performance software for safety-critical applications.

From chassis and safety to powertrain and interior systems, Green Hills Software has been delivering proven and secure underpinning technology.

To find out how the world’s most secure and reliable operating system and software can take the risk out of your automotive electronics project, visit www.ghs.com/s4a

Copyright © 2011 Green Hills Software. Green Hills Software and the Green Hills logo are registered trademarks of Green Hills Software. All other product names are trademarks of their respective holders.

TRUSTED SOFTWARE FOR AUTOMOTIVE ElEcTROnIcS

SAFE RElIAblE

SEcURE

P11829AT_GHS410_AUTOMOTIVE_ADVERT_210x297mm_v6.indd 1 15/07/2011 16:33

Page 2: Sensors Used in HEV

10 Microcontrollers

automotive electronics | august/september 2011 www.automotive-electronics.co.uk

Car manufacturers and their suppliers are working hard to develop economical new vehicle models with the aim

of reducing both fuel consumption and CO2 emissions. Hybrid vehicles of every kind currently serve as a bridge technology until high-capacity electrical energy storage systems are available at reasonable prices, enabling the production of long-range all-electric vehicles. The electrification of motor vehicles is advancing rapidly and the efficient control of electric motors is becoming ever more important.

Hybrid electric vehicles and electric vehicles (HEV and EV) have the great potential for achieving the reduction in greenhouse gas emissions demanded by legislators. The CO2-saving capacity of a hybrid electric vehicle, for example, is approximately 30%. Further measures, such as

Vitor Ribeiro and Maik Strietzel explain how efficient software algorithms and the latest microcontrollers can improve motor control on electric vehicles

electric power steering, provide an additional 5%. A central element of both approaches is an electric motor which, in the case of the powertrain, is used either in combination with a conventional internal combustion engine (in hybrid cars) or as an independent source of power (in all-electric vehicles).

Deciding factors in the selection of the motor include dimensions, weight, reliability, robustness, necessary torque and efficiency. Both synchronous and asynchronous motors can be used, the former as a permanent magnet synchronous motor (PMSM) featuring high torque coupled with compact dimensions and high efficiency (roughly 94%). However, the benefits that this offers are offset by a higher price tag, as expensive materials from rare earth elements are usually required for the permanent magnets.

Efforts are being made to use

asynchronous motors. These are robust and reasonably priced (they do not require magnets made from rare elements) and the dynamic properties can be easily controlled using suitable software algorithms. Disadvantages include the slightly lower efficiency (around 90%), greater weight and lower torque in the start-up phase. Not only do they not require maintenance, but brushless versions of both motor types mean that brush loss is not an issue.

PMSMs have a better dimensions-to-torque ratio and higher efficiency and are currently the first choice for use in the powertrains of electric and hybrid electric vehicles.

Control Brushless motors require more effort for commutation, while safe and efficient control is a fundamental pre-requisite for use in powertrains. The challenge is to find the perfect balance of motor, power electronics, control unit (microcontroller) and control software.

The algorithms used must be adapted to the respective motor and application so that the electronic controller commutates the motor optimally at all times. Failure to adapt these correctly may lead to undesired effects such as irregular running and excessive noise, which together have a negative impact on the degree of efficiency that can be achieved.

Motor control combines various control algorithms depending on the application. Fig. 1 shows field-

Microchip D

irect...2nd line

With many years of experience in delivering embedded solutions to automotive customers globally, the broad portfolio of products, development tools and design support from Microchip Technology enable automotive system suppliers to develop creative solutions. These solutions are helping automotive OEMs deliver vehicles with reduced fuel consumption, lower emissions and a safer, more comfortable experience for the driver.

Microchip’s commitment to the automotive electronics market is demonstrated by providing timely, quality solutions that lower total system cost. It does not stop with just innovative products. Microchip’s leadership in manufacturing enables dependable delivery so that our customers have product when they need it.

Flash Microcontrollers and Digital Signal Controllers• Broad portfolio of 8-, 16- and 32-bit Microcontrollers, 16-bit Digital Signal Controllers• eXtreme Low Power, High Performance

Analog & Interface ICs• Ultra-low power analog• LIN Solutions

Serial EEPROMs• Fast bus rates and high endurance

Automotive Qualification• AEC-Q100 Grade 1 and Grade 0 (150oC)• Meeting OEMs’ robustness and emissions standards

Reference Designs to Accelerate Time to Market• HID Lighting• LED Lighting for exterior and interior, e.g. DRL, dome light, ambient light• BLDC Motor Control e.g. pumps, fans, actuators• mTouchTM Human Interface e.g. HVAC, Radio/Infotainment • DC/DC Power Supply, e.g. start-stop systems• CAN/LIN Solutions, e.g. smart actuators and switches

Accelerating Distributed Intelligence in Tomorrow’s Vehicle

www.microchip.com

The Microchip name and logo, the Microchip logo are registered trademarks and mTouch is a trademark of Microchip Technology Incorporated in the USA and in other countries. All other trademarks are property of their respective companies. © 2010-2011 Microchip Technology Incorporated. All rights reserved. ME247CEng/05.11

RF & Wireless

Mem

oryAnalog

Digital Signal

ControllersM

icrocontrollersMcUs simplify HeV and eV motor control designs

Fig. 1: Motor control according to the Clarke/Park principle

Page 3: Sensors Used in HEV

12 Microcontrollers

automotive electronics | august/september 2011 www.automotive-electronics.co.uk

orientated control (FOC) combined with PID regulation systems for controlling rotor speed, torque and flux.

In FOC, the Clarke/Park transformation is used to transform the phase currents measured (at least two must be continuously recorded) from a stator-based three-dimensional system to a rotor-based two-dimensional system. These transformed variables, the current rotor position and a target position specified by the application, or a target rotational speed, are taken as starting points for the control algorithms. Due to their fast, precise and overshoot-free control characteristics, PID regulators are ideal for bringing complex systems into a stable state.

By means of inverse Park/Clarke transformation, the system is again

transformed into a rotor-based vector system and the voltages to be set are transmitted to the motor via the power electronics by means of pulse-width modulation.

The current rotor position can be either directly determined with a sensor or estimated using a complex calculation system. The latter method – also known as sensorless angle detection – is based on the logging and evaluation of two actively controlled phases. This method can be subject to deviation of several angular degrees and is not currently used for motor vehicle applications.

Sensor-based rotor position detection can be conducted with various sensor systems. The following section gives a brief overview of the most common sensor types. However, it can generally be said that

the detection of the rotor position is essential for precise motor control. As a key component, the rotor position sensor has significant influence on the performance and efficiency of the motor system.

Hall sensorHall sensors are based on the Hall Effect, whereby a voltage is induced by changing the magnetic field around a current-carrying conductor. With the help of a magnetic ring attached to the rotor and a sensor unit affixed to the stator, the Hall Effect sensor is a cheap and easy means of detecting angles. The higher the number of magnetic poles and Hall elements, the higher the resolution and accuracy. However, this sensor is susceptible to magnetic interference.

Incremental encoderOne frequently used sensor is the incremental encoder. This is available in a wide range of designs, featuring both mechanical and optical scanning to determine the current angular position. To measure an angle, an incremental encoder must be based on a zero or reference position. For the microcontroller (MCU), actual angle determination only involves detecting the direction of rotation and counting the pulses emitted. The angular rate can be calculated by simply measuring the intervals between two pulses. The insensitivity to magnetic interference is beneficial here. By contrast, any mechanical friction losses and susceptibility to dirt in the case of optical systems are disadvantageous.

ResolverOne very robust sensor, often used in the automotive industry, is the resolver, which is neither at risk from magnetic interference and dirt, nor subject to friction losses during angle detection. The resolver consists of the rotor, which is permanently attached to the motor shaft (motor rotor), and the ring-shaped stator, which is permanently attached to the motor housing. The stator consists of at least one excitation coil and two sensor coils. Higher resolutions can be achieved by increasing the number of pole pairs.

Fig. 2 shows a resolver. The excitation coil is fed with an analogue sinusoidal signal. The analogue signal

is transmitted to the two sensor coils, set at 90˚ to each other, via the magnetic coupling (induction). Evaluation of the analogue sinusoidal and cosinusoidal signals returned by the resolver requires a resolver-to-digital converter (RDC), which is used to determine the angular position and rate from the analogue data.

Optical systems, such as the incremental encoder mentioned above, offer advantages in terms of performance and precision, but their decreased robustness and vulnerability to dirt and temperature conditions makes their use in motor vehicles rather difficult. In direct comparison with the other sensors, a resolver may be more expensive, but it is also more robust and reliable in return. It is also able to detect the absolute position of the rotor at any time – even when it is at a standstill. This is not possible with either Hall sensors or incremental encoders.

Inverters in vehiclesIn the simplest case, the motor controller consists of a microcontroller, a power output stage, the motor in conjunction with a rotor position sensor (resolver) and the RDC (Fig. 3a), which is usually implemented as a discrete circuit. This generates the resolver signal and determines the rotor position and rate as quickly and precisely as possible based on the sinusoidal and cosinusoidal information returned.

This information must be forwarded to the microcontroller so that it can be taken into account in the motor control algorithms as described. External RDCs are usually linked to the MCU via a serial peripheral interface (SPI). Depending on the system’s design and the manufacturer of the RDC, this can also take place via other serial or parallel ports. These suffer from a serious disadvantage in that the MCU does not have constant access to the rotor data, and must instead always request it from the external RDC. Not only is this relatively slow, but it is also a potential source of errors that can have a negative impact on the functional safety of the entire system.

Motor control MCUsSome of the latest MCUs take an entirely different approach. They can generate all the motor control signals

and ample communications interfaces such as Can, Lin and Flexray (Fig. 4).

A particular highlight is the integrated RDC with the functionality described above. Integration of the RDC results in a significantly simplified system architecture (Fig. 3b). Rotor position, sinusoidal and cosinusoidal values as well as the angular rate are available to the MCU at all times and can be read out from dedicated registers every 100ns. The block diagram in Fig. 4 gives an overview of on-chip resources that can be available.

Motor controllers are very often developed by a model-based method, and there are now very powerful software tools that generally have one thing in common – they work with floating-point numbers. To transfer the algorithms developed in this way to a conventional microcontroller, the floating-point numbers must be converted to integers. Since this is not always a completely smooth process, an integrated floating-point unit (FPU) is standard in some MCUs and is of great benefit. In terms of results, this means an increase in computing power and less work for porting from models to the real world.

Resolver diagnosisAn MCU can identify a failure or malfunction of the motor relatively

easily. For example, the phase currents may not correspond to the expected values, or the expected speed may not have been reached. In these cases, the MCU can set the system to a defined state – without compromising vehicle safety. But how is the resolver monitored and how are malfunctions diagnosed? All signals from and to the resolver can be monitored via integrated diagnostics and fault profiles such as short-circuits to ground, cable breakages and interruptions or even short-circuits within the resolver windings can be identified quickly and reliably. If such faults occur, the MCU immediately receives an internal interrupt signal so it can react quickly and in a targeted manner to the situation. All this takes place internally and with minimal latency, in stark contrast to systems with external RDCs, in the case of which the failure must be signalled by means of a slow interface to the MCU.

Motor control MCUs Applications for motor control MCUs with integrated RDC include the aforementioned inverter for the electric drive motor. The block diagram for an inverter is shown in Fig. 5a. For reasons of functional safety, the motor control MCU (master) is supported by a second, smaller microcontroller (slave). Both microcontrollers maintain

Microcontrollers 13

www.automotive-electronics.co.uk august/september 2011 | automotive electronics

Fig. 4: Microcontroller block diagram

Fig. 2: Schematic and mechanical structure of a resolver Source: Tyco Electronics

Figs 3a (top) and 3b: Motor control with external and integrated RDC

Page 4: Sensors Used in HEV

SoFTWArEDeVeloPMentTooLS 15

www.automotive-electronics.co.uk june/july 2010 | automotive electronics

“The industry is thinking about this but you need a display that doesn’t consume much power and we have an answer to that.”

The memory LCD uses continuous grain silicon (CGS) technology and integrates the display controller and LCD interface.

“There is no data transmission if the image does not change,” said Heske, “so there is low power consumption and it has good visibility.”

He said that Sharp was also looking at putting a solar cell in the key to provide the little power that it would need. In fact, Sharp is even looking at moving into the automotive solar panel market in a big way with panels that can be put in the roof of a car to provide extra energy for the electronic systems, thus reducing the drain on the battery and hence fuel consumption.

“Solar is a main business for us,” said Heske. “We want to extend that into other applications and one is certainly automotive. For a solar roof panel, we will have to make the technology thinner. We can’t simply use our existing technology in cars today.”

Another area being worked on at Sharp’s laboratories in Oxford is the shape of the display. One of the problems with the standard rectangular display shape is that car interiors are not usually based on rectangles and are often not on what would be naturally a flat surface.

“We are looking at ways to make the display fit the car,” said Gregory Gay, a senior researcher at the Oxford laboratories. “This can provide enhanced

aesthetics. There are some aspects in manufacturing to overcome, but we believe the displays will evolve in this direction.”

On touchscreen technology for cars, Scharf said that optical sensors beat the alternative technologies of resistive, surface capacitive and projected capacitive in almost all areas. While all can handle being touched by a finger, only resistive and optical will respond to a gloved hand, nail or pen. Surface capacitive can also not handle dual finger displays.

Resistive though is the worse of the three when it comes to display quality and thickness.

The downside to optical is that it is more expensive but Scharf believes that within the next five years it will take its place in the automotive market.

“It is not there yet,” he said. “There will be a price penalty but there are some cost savings due to it using less materials and fewer layers. But the photomask is more complex. Plus we would like to make money out of it.”

He said it would initially come into high-end cars but in the long run could replace resistive technology in all cars.

But he said overall, the automotive display market in the next few years will not be marked by just one trend but by several parallel trends as some car makers go for the best possible displays and others go for the cheapest. Some will go down the touchscreen route and others will not. But whatever happened, he said, the number of displays in cars would increase and eventually every car would have more than one display. He

said that would mean in Europe alone an annual market of 40 to 50 million new displays within the next five to ten years.

Gregory Gay: “We are looking at ways to make the display fit the car.”

Gerhard Scharf: “TFT will be the leading technology for the next two generations of cars.”

Hartmut Heske: “You need a display that doesn’t consume much power and we have an answer to that.”

14 Microcontrollers

automotive electronics | august/september 2011 www.automotive-electronics.co.uk

a constant dialogue and, as soon as abnormal behaviour is detected, the slave MCU can initiate a system reset or cut off the power supply to the motor. The master MCU generates the commutation signals for the motor, measures and monitors the phase currents, generates the resolver signals and determines the rotor position and angular rate via the sine-cosine feedback. All this information is used by the motor control algorithm for targeted control of the rotor speed and torque.

The inverter communicates with the battery management system (BMS) via the internal network (Can or Flexray) to ensure that the energy required can also be provided.

Economical use of energy is essential in an HEV or EV, and systems that require a constant supply of energy, such as hydraulic power steering, would over the long term put excessive strain on the energy storage systems. Hydraulic systems run continuously to build up the required pressure by means of a servo pump.

By contrast, a purely electric power steering (EPS) system only needs energy when it is being used.

In principle, the design is similar to that of the inverter for the powertrain. Once again, master and slave MCUs are used, while the power element is different mainly in terms of the power to be regulated. A PMSM is used for this application as well, while the resolver functions as described (Fig. 5b).

However, the master MCU must still evaluate a steering input device and a torque sensor. In order that the correct steering assistance can be given at all times, other information, such as speed of travel, is required. These data are provided via the internal network, for example the Can bus. This information is used to calculate the extra steering torque required and transmit it to the electric motor on the steering column. The aim is to minimise the effort expended by the driver and provide dynamic support for steering movement. For example, steering movement requires more support when the vehicle is almost at a standstill, such as during parking manoeuvres, than at high speed on the motorway. EPS is intended to increase both driver comfort and safety. It is entirely possible for the electronic stability

control (ESC) to regulate vehicle stability actively by means of steering intervention. It is also conceivable for EPS to be part of a driver assistance system that could park a vehicle automatically without driver input.

Summary and outlookMore and more hybrid vehicles are coming onto the market, and while they are initially mostly simple start-stop systems, the number of full hybrids (HEVs) and plug-in hybrids (PHEVs) is expected to increase in the years to come. All-electric vehicles that function entirely without an internal combustion engine need safe, cost-effective and high-capacity energy storage systems.

Here, too, technological

development is marching ever onward, albeit not quite as quickly as many would prefer. Until then, maximum use must be made of the energy available in the form of fuel and/or electrical power in hybrid vehicles. Efficient software algorithms, powerful microcontrollers and highly efficient electric motors will make this possible. A higher level of integration leads to leaner and cheaper motor control systems that can be used in applications above and beyond those presented here. l

Vitor Ribeiro is senior product marketing engineer and Maik Strietzel is application engineer for Fujitsu Semiconductor Europe’s automotive business unit

Figs 5a (top) and 5b: Diagram of an HEV

and EV inverter and EPS control

Road ProvenBattery Stack Monitor

Info and Purchase Direct at… Linear Technology Battery Monitoring

The Next Rugged IC for Hybrid/Electric Vehicles & Battery Backup Systems

, LT, LTC, LTM, Linear Technology and the Linear logo areregistered trademarks of Linear Technology Corporation. All other trademarks are the property of their respective owners.

The next generation in Linear Technology’s road proven LTC®680x family has arrived. This follows over two years in production with the industry’s first precision battery monitor for hybrid/electric vehicles and other high voltage battery systems. Our new LTC6803 is a pin-compatible upgrade, engineered for higher performance, ISO 26262 compliance and error-free operation, even in the presence of high noise and transients. We’ll take you there.

450

400

350

300

250

200

150

100

50

0–0.12% –0.08% –0.04% 0%

Total Measurement Error (mV)

VCELL = 3.6V, –40°C to 85°C

Part

Cou

nt

0.04% 0.08% 0.12%

Distribution of CellMeasurement Accuracy

PartNumber

LTC6801

LTC6802-1

LTC6802-2

LTC6803-1

LTC6803-2

LTC6803-3

LTC6803-4

Description

Independent Fault Monitor

Multicell Battery Stack Monitor

Multicell Battery Stack Monitor

2nd Generation Stack Monitor

2nd Generation Stack Monitor

2nd Generation Stack Monitor

2nd Generation Stack Monitor

Production

Since 2009

Since 2008

Since 2008

Now

Now

Now

Now

Linear Technology (UK) Ltd.,3 The Listons, Liston Road,Marlow, Buckinghamshire,SL7 1FD, United Kingdom.

Phone: 01628 477066Fax: 01628 478153Email: [email protected]: www.linear.com

Arrow Electronics UK Ltd 01279 626777Farnell 08447 11 11 11Linear Technology (UK) Ltd. 01628 477066

23845 Linear LTC6803 297x210.indd 1 14/07/2011 15:23