SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Designing a microcontroller-driven
alternator voltage regulator
David Swanson
9/20/2005 6:25 PM EDT
Remember the days when, if your car’s alternator died, you could hit the regulator with
a hammer and get it working again? Those were the days. Back then the regulator was a
steel box mounted on the fender well. Inside, was a normally closed contact that opened
up when the battery voltage exceeded some predetermined level. It was a simple circuit
containing a few electronic components and a relay. As the relay wore out occasionally
the contacts would not connect. You could whack the thing and jar the contacts just
enough to get it working again. This was an easy fix and an early warning at the same
time. You knew the alternator voltage regulator would stop working again so you would
replace it at your earliest convenience (for me, when I could afford it). This was a simple
system that worked for many years. Why, then, do we need a microcontroller?

Why take an alternator voltage regulator from the simplicity of a relay and a few parts to
something with more computing power than NASA had on the first Apollo moon shot?
The answer lies with the potential for extended battery life, improved gas mileage, lower
emissions, stability at lower engine idles, and most importantly, flexibility.

Many low-volume charging-system applications beg for features but are stuck with what
everyone else is using. For the OEMs that make these devices, microcontrolled regulators
enable them to first prototype a potential customer’s configuration quickly and then
provide low-volume products without enormous tooling charges.

A more universal principle is in play as well. It seems that nothing conceived by mankind
remains simple for long. If man can make it, man can make it more complicated--all
under the guise of “we can make it better.” In this case, alternator voltage regulation is no
exception.

A microprocessor-based alternator voltage regulator seems, at first glance, to be a
simple project to complete. After all, anything done with a relay can’t be all that taxing
on a microcontroller. Well, sometimes ignorance is bliss. The smarter the controller, the
more difficult it becomes to keep the alternator voltage regulator stable.

An alternator, such as the one shown in Figure 1, is a current-mode machine. You put a
current in and, with some help from a mechanical input (a pulley), you get a gained
current out. But, you say, isn’t this an alternator voltage regulator? Yes, and this is
where the problems begin. To control the output of a current-mode machine by looking at
its voltage, knowing that the loads can vary in type (or phase) and amplitude at any time,
is quite a challenge.

Figure 1: Visteon alternator in a Ford Taurus




The advantage of the old relay-driven system was that it was slow. Its poor response time
and built-in hysteresis allowed for some voltage variation with load but kept the system
fairly stable regardless of load.

Quick review
The input to a charging system is both mechanical and electrical. The mechanical part is
the pulley that rotates the field (or the rotor in Figure 2) inside the stator, and the
electrical part is the field current. The rotation generates the current “gain” in the system.
Without rotation, there is no output current.

Figure 2: Cutaway of Delphi alternator
The output of the charging system is a product of rectifying the stator current, as shown
in Figure 3. The rotating magnetic field inside the stator winding generates a sinusoidal
waveform. This waveform is rectified to provide a direct current, which is a function of
the input, or field current, and the field rotation. Since we want to regulate an output
voltage, not a current, the load is involved in the regulation algorithm. As a result,
stability is based on the response time of the alternator as well as the reaction time of the
load it drives. In the end, the charging-system regulation loop now includes all of the
vehicle electronics, not just the alternator and its mechanical inputs.

Figure 3: Electrical diagram of an alternator
With electronic controls automotive engineers can add neat features beyond simple
output-voltage regulation. Remember man’s quest for complexity? Once the engineers
decide to use a microcontroller-based system, these added features can help justify the
added cost. The bonus features include field duty-cycle slew-rate limiting, soft start, auto
start, and serial communications with the engine controller. With serial communications,
engineers can also include higher level diagnostics such as no rotation, faulted rectifier-
diode detection, as well as shorted or open field windings.

Ensuring system stability
Before the design engineer can start adding on all the glitter that makes a microcontrolled
system cost effective, the charging system must be stable at regulating the output
voltage. So, the first algorithm of any importance is the regulation algorithm. Regulation
consists of sensing the battery voltage with adequate filtering to remove unwanted
information and then responding with an appropriate current level for the field.

Sensing and filtering
The output-voltage waveform of an alternator is not so flat. Figure 4 shows that the
rectified sinusoidal waveform has a ripple voltage or ripple current associated with it.
This ripple can be quite large, even when we include the 1F capacitance of the battery.
The peak-to-peak ripple voltage out of an alternator can be as much as 4 to 6V at high
output currents.

Figure 4: Alternator voltages at 100A output and 6,000RPM
This peak-to-peak ripple voltage can be overcome without large filters by synchronously
sampling the output voltage with a phase signal. The ripple is periodic with the phase, so
this technique is quite effective. We can effectively filter out most of the periodic noise
generated by the stator phasing. That noise is over 90% of what needs to be filtered out,
with most of it in the lower frequency range.

Filtering of higher frequencies can be done by placing some simple RC networks in front
of the analog-to-digital (A/D) converter. You have to do some level shifting anyway to
bring the battery setpoint voltage of about 14.5V to below the 5V level of most A/D
converters. We can do further filtering in software by a rolling average of the sensed
voltage. A four- to eight-sample averaging seems to work well.

Those who are familiar with system dynamics can also understand that system poles and
zeros can shift depending on load, load type, engine RPM (gain), and regulation setpoint.
With that little bit of information, we realize that our regulation must have a very low-
frequency dominant pole (less than 50Hz) and produce a fairly low–unity-gain bandwidth
(less than 3kHz) to keep things from getting out of hand. The more time we take to
decide on what to respond to, the lower that pole becomes. Also, the speed at which we
react to a step change in output voltage determines our unity-gain bandwidth. This brings
me to the next topic.

Responding
Response comes in the form of providing an appropriate field current to maintain
regulation. The field current is typically regulated by driving a transistor switch at a duty
cycle to attain a desired current, as shown in Figure 3. This technique is called voltage
control of the field-current input. (Seems appropriate, don’t you think? After all, you’re
regulating a current-mode machine by looking at its voltage.) The two generally accepted
ways of regulating the alternator are through a fixed-frequency duty cycle or a variable-
frequency duty cycle.

The variable-frequency systems are dependent on the load and the response time of the
system (alternator and loads). They tend to be high-gain systems. As a result they tend to
be more accurate in maintaining a fixed setpoint voltage at the output while having
inherent instability problems.

Variable-frequency systems work by the old standard-relay method: turn on the field
current when the output voltage is below a setpoint and turn it off when the setpoint is
exceeded. The hope is that the system is so dynamic that it only stays in one point for a
moment. Thus if the system finds an unstable point, it would only operate there for a
moment, and the battery would help mask those brief, infrequent moments.

The fixed-frequency systems are more stable in both input waveform and output control.
These systems tend to use a lower-gain system allowing the setpoint voltage to vary by
as much as 200 to 300mV over the load range.

Fixed-frequency systems are easier to manipulate if you want to do other things like soft-
start or load-response control. They are less dependent on the load dynamics and quite a
bit more stable than the variable-frequency method.

A few hundred millivolts compared with a 6V ripple is not very much. So the difference
between the variable-frequency and fixed-frequency system is not critical, at least to my
way of thinking. However, some engineers feel that a few hundred millivolts can make a
significant difference in battery longevity. I’m not so convinced.

To summarize, with the variable-frequency method, the decision to turn on or off the
field driver is made with each sample. With the fixed-frequency method, the duty cycle is
determined by where in the setpoint window the sample is, as shown in Figure 5.

Figure 5: Setpoint band for determining field duty cycle. (The setpoint is typically
around 14.5V at 25C.)
I have worked with both systems and find that fixed-frequency systems are much more
stable and predictable—especially when considering the extended feature set made
possible with a microcontroller.

Regulation band
Let’s go into a design of a simple microcontrolled system in detail. Figure 6 shows a
basic block diagram for a microcontroller-based alternator voltage regulator. Since the
fixed-frequency system is much more stable and easier to work with, we’ll focus on this
approach.

Figure 6: Basic block diagram of an alternator voltage regulator




The fixed-frequency method has a regulation band as shown in Figure 5. Within the
regulation band, a specific duty cycle is associated with a specific voltage. At the low
end of the band, the duty cycle is the highest. This point corresponds to the highest
loading on the system. At the high end of the band, the duty cycle is the lowest, which
corresponds to the lightest load the system can tolerate.
We want to make this band as narrow as possible without making the system unstable.
As you can imagine, when the window is narrowed, the gain increases. With higher gain,
we have trouble keeping the low-frequency dominant pole or the low-frequency–gain
bandwidth product. Typical systems on the market today that use this method have
around a 200 to 300mV range from full field to no field current.

We can’t possibly look directly at 14.5V with a micro A/D converter, and simply
dividing this voltage down loses a lot of information as well. A 200mV window divided
by four ends up with a 50mV spread to convert with the A/D converter. A 5V, 10-bit A/D
converter gives 4.88mV per bit. This means I have a resolution of only 10 to 11 steps for
regulation if I divide by four.

This leaves us with building an offset amplifier with an accompanying gain stage as
shown in Figure 7. The offset amplifier centers the setpoint to the middle of the A/D
converter’s sensing voltage range. The gain amplifier then gains that up to get as much
out of the A/D conversion as possible and still stay within the boundaries of the range of
voltages we need to regulate.

Figure 7: Possible gain and offset amplifier circuit




With the proper biasing, the input is 14.5V +/-100mV and the output is something
reasonable for the A/D converter to read. Biasing is a hardware issue, so we’ll let the
hardware guys worry about that.

The second issue with the regulation setpoint is temperature compensation. The battery’s
ability to accept a charge is dependent on ambient temperature. At -40C a typical car
battery can be charged to as much as 16V whereas at 125C, the charging voltage has to
be much lower to keep the battery from boiling over. The temperature-compensation
curve is totally dependent on what is best for battery life. Figure 8 shows a typical
temperature compensation curve for some cars on the road today.

Figure 8: Typical temperature compensation curve




Oddly enough, temperature-compensation curves vary from car manufacturer to car
manufacturer even though the battery technology does not change from car to car.
Flexibility is one of the advantages of making a complex alternator voltage regulator,
right?

With the proper input offset and a total gain of two, the input to the A/D converter is
0.5V to 4.5V. With a gain of two, the 200mV band is now 400mV to the A/D converter.
Using the aforementioned 4.88mV per bit at the A/D converter translates to an actual
2.4mV per step measured, or 81 steps over the 200mV window. With some averaging,
this can easily be bumped up to 128 steps or 7 bits of resolution. This level of resolution
is plenty for what we need.

Now we’re ready to convert data. We sample synchronously with one of the phases to
minimize noise issues. We may be sampling every time the phase is switched, but we
only use the last sample that happened just prior to the field driver turning off. From that,
an average is taken over a continuously running sample of four to six samples. The
frequency of the alternator phase can be in the kilohertz range, while the field duty-cycle
frequency is typically between 100 and 400Hz. Again, slow is good. The lower the field
duty-cycle frequency, the lower the electromagnetic interference and the lower the power
loss due to switching. Some regulators today work at less than 100Hz.

The running average value is then compared with the values in a table that corresponds to
the temperature compensation your customer wants.

Field duty-cycle slew rate
Quite often, the load variation drops outside of the regulation window. When this
happens, the field duty cycle is commanded to go to 100% from wherever it was. Instant
100% duty-cycle moments can cause stability issues in the engine at idle.
One feature that makes the microcontroller desirable is the ability to “feather in” electric
loads into the mechanical system. Essentially, this technique limits the slew rate on the
field-current duty cycle. This limiting allows for lower engine idling, which affects gas
mileage and emissions. The flowcharts in Figure 9 show this as RATE(up/dn).

Figure 9: Phase interrupt and regulation loop routines




The duty cycle is increased at a fixed slow rate at step increases in load. This rate is so
slow, that some systems today can take as much as 10 seconds to go from 0% duty cycle
to full field. Others can take around 2s to get to full field. The longer it takes, the longer
the battery must hold things up until the alternator catches up. One way in which you can
see this delay is by the momentary dimming of headlights every time the AC kicks in.

A duty-cycle slew-rate generator is based on a simple timed counter that looks at the
measured setpoint results and counts up or down. Instead of the setpoint band directly
setting the duty cycle, a duty-cycle register that’s influenced by the setpoint results is
used. The final value of the register should be the measured setpoint band value.
Whatever is in this register is what is used to generate the duty cycle seen at the field
driver.
For example, say the loading was such that the duty cycle was 50%. This would be right
in the center of the setpoint band as shown in Figure 8. A step increase in load occurs
requiring an increase of the duty cycle to 75%. Without slew-rate control, the duty cycle
would change to 75% on the next period causing a step increase in mechanical load as
well. With slew-rate control, the duty cycle would increase at a fixed rate until the
system was satisfied, e.g. the measured value matched the duty cycle register value. At a
2 sec overall slew rate, a 25% increase in duty cycle would take a half a second to realize.

There are some issues with over-voltage such that we cannot count down as slowly as we
would want to count up. The battery is more willing to go higher in voltage than it is to
dip under load. Also, over-voltage conditions are frowned upon. As a result, the
algorithm in Figure 9 bypasses the field duty-cycle register altogether when the measured
voltage is above the setpoint band (~100mV above setpoint). I do not set the duty cycle
register to zero; instead, I turn off the field and let the duty-cycle register count down
until the over-voltage condition has passed.

With a duty-cycle slew-rate limiter, we are now slowing down the response of the
alternator to step increases in load, thereby stabilizing the system. Effectively, we are
over-damping the system to keep it more stable, while not allowing over-voltage
conditions to occur.

The main loop
For me, the main loop as shown in Figure 10 is basically a housekeeper and a watchdog
of sorts. Everything of interest to me is run by interrupts, so the main loop is what the
micro does when it has nothing else to do.

Figure 10: Main routine
The main loop checks for loose ends, such as what the ambient temperature is, if the
phase input is really working, and if the alternator has lost all ability to charge the battery.
Since we use the phase input to look at the output voltage, if we lose phase, we have to
generate an artificial interrupt. That sort of thing.

Dilbert cartoonist Scott Adams labeled the first week of a project the Wally Period.
Wally explains that “most tasks become unnecessary within seven days.” In the case of
our alternator, most faults go away within one second. So, I put a delay of 1s in reporting
a fault. Anything less than a second is not of concern, so we can ignore faults for the
alternator’s Wally Period.

Once we add serial communications, we can remove the lamp driver in place of high-
level diagnostics. We can also add the ability to change the setpoint by commands from
the engine controller. This capability is added today in many vehicles. Instead of looking
at the positive temperature-controlled resistor for temperature information, the engine
controller sends a signal requesting a specific setpoint band. Some engine controllers
include temperature compensation, while others do not.
Most systems today require more communication to the regulator than from it. There are
opportunities for PWM (pulse width modulation) communications (where the PWM duty
cycle commands the setpoint value), LIN (local interconnect network) bus
communications, “bit serial interface” communications as well as CAN (controller area
network) communications protocols.

Waking up the alternator
When the ignition is turned on, the conditions of the regulator are fairly specific. At start
up, ignition occurs with no phase voltage, and the setpoint has not been reached. The
battery-rest voltage is always below the setpoint. With this condition present, the
regulator knows that the system is waiting to start up.

At this point, the regulator provides a lower duty cycle, between 10% and 25%, to
determine if the rotor is spinning without drawing too much current. Small amounts of
current in a spinning rotor can generate enough voltage on the stator to be easily read by
a microcontroller. The rotor is only spinning if the engine is running. Once a proper
phase voltage/frequency is sensed, the regulator can begin normal regulation.

Soft start at wakeup essentially consists of slew-rate limiting the field duty cycle once the
regulator has recognized that the system is starting up. We do this to prevent the engine
from stalling due to an alternator loading before the engine-idle control system has had a
chance to stabilize. Some engineers just delay initiating the regulator for several seconds
as the engine stabilizes. Either way it works.

Auto start is another way of waking up the regulator assembly without using the ignition
input. If the ignition-input connection is broken or disconnected, you can use a phase
input to look for activity. Typically there is some residual magnetism in the rotor, such
that if the engine is running, the stator will exhibit some low-level voltage. This voltage
is typically a few hundred millivolts at a few thousand RPM in the alternator. This
voltage can be detected by using additional circuitry (such as op-amps) between the
stator and the microcontroller. Without the auto-start feature, the phase input can be a
simple resistor divider coupled with a zener clamp and capacitor. These low voltages
typically found on the sensed phase when the field is not excited require some
amplification to be detected by a microcontroller.

Let me say a little about a hardware watchdog. In an embedded microcontroller system,
the ambient temperatures can sometimes get out of hand. With that said, we may not
know how the microcontroller will operate at such temperatures. A software watchdog
or internal watchdog cannot be counted on under these adverse conditions. It’s kind of
like putting the fox in charge of the hen house. Instead, I use a voltage regulator that has
a built-in watchdog as shown in Figure 10. In the main routine, I toggle a bit that goes to
the watchdog. The watchdog looks for transitions. If it stops seeing transitions, it resets
the micro and we start all over.

The beauty of electronics
Today, electronics eliminates the option to make a regulator work just by hitting it. Of
course, electronics also eliminates the need to do so. Even the aftermarket versions of
those old regulators are fully electronic today. One of the not-so-hidden benefits of
electronics is that, even with all their complexity, they’re immensely more reliable than
the mechanical systems they replaced.

David Swanson is a principal engineer in STMicroelectronics’ Automotive Business
Unit. David has worked with ST since 1987 in various roles. Prior to ST, David worked
for Delco Products Division of GM. He has a BSEE from North Carolina State
University and holds many patents in several areas of automotive electronics. You can
reach him at david.swanson@st.com.

Weitere ähnliche Inhalte

Was ist angesagt?

ELECTRICAL POWER SYSTEM - II. symmetrical three phase faults. PREPARED BY : J...
ELECTRICAL POWER SYSTEM - II. symmetrical three phase faults. PREPARED BY : J...ELECTRICAL POWER SYSTEM - II. symmetrical three phase faults. PREPARED BY : J...
ELECTRICAL POWER SYSTEM - II. symmetrical three phase faults. PREPARED BY : J...Jobin Abraham
 
Motor & generator protection example settings
Motor & generator protection example settingsMotor & generator protection example settings
Motor & generator protection example settingsH. Kheir
 
Blackout Avoidance & Undervoltage Load Shedding
Blackout Avoidance & Undervoltage Load SheddingBlackout Avoidance & Undervoltage Load Shedding
Blackout Avoidance & Undervoltage Load Sheddingmichaeljmack
 
Power systems symmetrical components
Power systems symmetrical componentsPower systems symmetrical components
Power systems symmetrical componentsanoopeluvathingal
 
Symmetrical Fault Analysis
Symmetrical Fault AnalysisSymmetrical Fault Analysis
Symmetrical Fault AnalysisSANTOSH GADEKAR
 
Transformer Seminar - Buck-Boost
Transformer Seminar - Buck-BoostTransformer Seminar - Buck-Boost
Transformer Seminar - Buck-BoostAcme Electric
 
Transformer overcurrent
Transformer overcurrentTransformer overcurrent
Transformer overcurrentmichaeljmack
 
Two-Phase Interleaved CCM PFC Controller
Two-Phase Interleaved CCM PFC ControllerTwo-Phase Interleaved CCM PFC Controller
Two-Phase Interleaved CCM PFC ControllerPremier Farnell
 
ECNG 3015 - Overcurrent Protection
ECNG 3015 - Overcurrent ProtectionECNG 3015 - Overcurrent Protection
ECNG 3015 - Overcurrent ProtectionChandrabhan Sharma
 
Control And Programingof Synchronous Generator
Control And Programingof Synchronous GeneratorControl And Programingof Synchronous Generator
Control And Programingof Synchronous Generatorfreelay
 
Generator Protection Relay Setting Calculations
Generator Protection Relay Setting CalculationsGenerator Protection Relay Setting Calculations
Generator Protection Relay Setting CalculationsPower System Operation
 
Electrical Basics-VBR
Electrical Basics-VBRElectrical Basics-VBR
Electrical Basics-VBRVijay Raskar
 
7SD52/53 Line Differential Protection Relay
7SD52/53 Line Differential Protection Relay7SD52/53 Line Differential Protection Relay
7SD52/53 Line Differential Protection Relayashwini reliserv
 
FAULT Analysis presentation Armstrong
FAULT Analysis presentation ArmstrongFAULT Analysis presentation Armstrong
FAULT Analysis presentation ArmstrongArmstrong Okai Ababio
 
Automatic synch of gen
Automatic synch of genAutomatic synch of gen
Automatic synch of genmichaeljmack
 
Short circuit current calculations
Short circuit current calculationsShort circuit current calculations
Short circuit current calculationsRonald Santos
 

Was ist angesagt? (20)

ELECTRICAL POWER SYSTEM - II. symmetrical three phase faults. PREPARED BY : J...
ELECTRICAL POWER SYSTEM - II. symmetrical three phase faults. PREPARED BY : J...ELECTRICAL POWER SYSTEM - II. symmetrical three phase faults. PREPARED BY : J...
ELECTRICAL POWER SYSTEM - II. symmetrical three phase faults. PREPARED BY : J...
 
Motor & generator protection example settings
Motor & generator protection example settingsMotor & generator protection example settings
Motor & generator protection example settings
 
Blackout Avoidance & Undervoltage Load Shedding
Blackout Avoidance & Undervoltage Load SheddingBlackout Avoidance & Undervoltage Load Shedding
Blackout Avoidance & Undervoltage Load Shedding
 
Power systems symmetrical components
Power systems symmetrical componentsPower systems symmetrical components
Power systems symmetrical components
 
Symmetrical Fault Analysis
Symmetrical Fault AnalysisSymmetrical Fault Analysis
Symmetrical Fault Analysis
 
Fy3610821086
Fy3610821086Fy3610821086
Fy3610821086
 
Transformer Seminar - Buck-Boost
Transformer Seminar - Buck-BoostTransformer Seminar - Buck-Boost
Transformer Seminar - Buck-Boost
 
Transformer overcurrent
Transformer overcurrentTransformer overcurrent
Transformer overcurrent
 
EE-524 Project report
EE-524 Project reportEE-524 Project report
EE-524 Project report
 
Two-Phase Interleaved CCM PFC Controller
Two-Phase Interleaved CCM PFC ControllerTwo-Phase Interleaved CCM PFC Controller
Two-Phase Interleaved CCM PFC Controller
 
ECNG 3015 - Overcurrent Protection
ECNG 3015 - Overcurrent ProtectionECNG 3015 - Overcurrent Protection
ECNG 3015 - Overcurrent Protection
 
Control And Programingof Synchronous Generator
Control And Programingof Synchronous GeneratorControl And Programingof Synchronous Generator
Control And Programingof Synchronous Generator
 
Short circuit followup[1]
Short circuit followup[1]Short circuit followup[1]
Short circuit followup[1]
 
Generator Protection Relay Setting Calculations
Generator Protection Relay Setting CalculationsGenerator Protection Relay Setting Calculations
Generator Protection Relay Setting Calculations
 
Electrical Basics-VBR
Electrical Basics-VBRElectrical Basics-VBR
Electrical Basics-VBR
 
7SD52/53 Line Differential Protection Relay
7SD52/53 Line Differential Protection Relay7SD52/53 Line Differential Protection Relay
7SD52/53 Line Differential Protection Relay
 
FAULT Analysis presentation Armstrong
FAULT Analysis presentation ArmstrongFAULT Analysis presentation Armstrong
FAULT Analysis presentation Armstrong
 
Automatic synch of gen
Automatic synch of genAutomatic synch of gen
Automatic synch of gen
 
Short circuit current calculations
Short circuit current calculationsShort circuit current calculations
Short circuit current calculations
 
Balanced faults
Balanced faultsBalanced faults
Balanced faults
 

Andere mochten auch

Regulament concurs 2012 jud partenere
Regulament concurs 2012 jud partenereRegulament concurs 2012 jud partenere
Regulament concurs 2012 jud partenereGheorghitoiumaria
 
Ficha de-trabalho-1-quc3admica
Ficha de-trabalho-1-quc3admicaFicha de-trabalho-1-quc3admica
Ficha de-trabalho-1-quc3admicaAndreia Margarido
 
Distance learning presentation_hite
Distance learning presentation_hiteDistance learning presentation_hite
Distance learning presentation_hiteKaty Hite
 
The Brand Gap
The Brand GapThe Brand Gap
The Brand GapGary Good
 
Social Media Warren Knight Digital Bootcamp April 2012
Social Media Warren Knight Digital Bootcamp April 2012Social Media Warren Knight Digital Bootcamp April 2012
Social Media Warren Knight Digital Bootcamp April 2012CIM East of England
 
Cross-Border E-discovery: Navigating Rules and Regulations Across Multiple J...
Cross-Border E-discovery: Navigating Rules and Regulations  Across Multiple J...Cross-Border E-discovery: Navigating Rules and Regulations  Across Multiple J...
Cross-Border E-discovery: Navigating Rules and Regulations Across Multiple J...rashbaum
 
Okostelefonok és táblagépek menedzsmentje
Okostelefonok és táblagépek menedzsmentjeOkostelefonok és táblagépek menedzsmentje
Okostelefonok és táblagépek menedzsmentjeOpen Academy
 
קרקע חקלאית
קרקע חקלאיתקרקע חקלאית
קרקע חקלאיתtal kerem
 
Purist Presentation 052513
Purist Presentation 052513Purist Presentation 052513
Purist Presentation 052513Norman Ash
 
Performance of democracy ascendant sites of theory and practice in art education
Performance of democracy ascendant sites of theory and practice in art educationPerformance of democracy ascendant sites of theory and practice in art education
Performance of democracy ascendant sites of theory and practice in art educationNurnabihah Mohamad Nizar
 
How mobile marketing can bring you more business
How mobile marketing can bring you more businessHow mobile marketing can bring you more business
How mobile marketing can bring you more businesssuccessenter
 
Crypttech LOG SIEM 2015
Crypttech LOG SIEM 2015Crypttech LOG SIEM 2015
Crypttech LOG SIEM 2015Mustafa Kuğu
 
Netapp Introduction to Flash Technology Infographic
Netapp Introduction to Flash Technology InfographicNetapp Introduction to Flash Technology Infographic
Netapp Introduction to Flash Technology InfographicAruj Thirawat
 
Lentera News edisi #15 Juni 2015
Lentera News edisi #15 Juni 2015Lentera News edisi #15 Juni 2015
Lentera News edisi #15 Juni 2015Ananta Bangun
 
DCM Presentation Multitasking and conncted devices
DCM Presentation Multitasking and conncted devicesDCM Presentation Multitasking and conncted devices
DCM Presentation Multitasking and conncted devicesPietro Lambert
 

Andere mochten auch (20)

Regulament concurs 2012 jud partenere
Regulament concurs 2012 jud partenereRegulament concurs 2012 jud partenere
Regulament concurs 2012 jud partenere
 
Ficha de-trabalho-1-quc3admica
Ficha de-trabalho-1-quc3admicaFicha de-trabalho-1-quc3admica
Ficha de-trabalho-1-quc3admica
 
Distance learning presentation_hite
Distance learning presentation_hiteDistance learning presentation_hite
Distance learning presentation_hite
 
My Resume
My ResumeMy Resume
My Resume
 
The Brand Gap
The Brand GapThe Brand Gap
The Brand Gap
 
Social Media Warren Knight Digital Bootcamp April 2012
Social Media Warren Knight Digital Bootcamp April 2012Social Media Warren Knight Digital Bootcamp April 2012
Social Media Warren Knight Digital Bootcamp April 2012
 
Cross-Border E-discovery: Navigating Rules and Regulations Across Multiple J...
Cross-Border E-discovery: Navigating Rules and Regulations  Across Multiple J...Cross-Border E-discovery: Navigating Rules and Regulations  Across Multiple J...
Cross-Border E-discovery: Navigating Rules and Regulations Across Multiple J...
 
Okostelefonok és táblagépek menedzsmentje
Okostelefonok és táblagépek menedzsmentjeOkostelefonok és táblagépek menedzsmentje
Okostelefonok és táblagépek menedzsmentje
 
The power of measuring tool for project mangement
The power of measuring tool for project mangement The power of measuring tool for project mangement
The power of measuring tool for project mangement
 
Mohammed ppuh
Mohammed ppuhMohammed ppuh
Mohammed ppuh
 
קרקע חקלאית
קרקע חקלאיתקרקע חקלאית
קרקע חקלאית
 
Purist Presentation 052513
Purist Presentation 052513Purist Presentation 052513
Purist Presentation 052513
 
Performance of democracy ascendant sites of theory and practice in art education
Performance of democracy ascendant sites of theory and practice in art educationPerformance of democracy ascendant sites of theory and practice in art education
Performance of democracy ascendant sites of theory and practice in art education
 
How mobile marketing can bring you more business
How mobile marketing can bring you more businessHow mobile marketing can bring you more business
How mobile marketing can bring you more business
 
Crypttech LOG SIEM 2015
Crypttech LOG SIEM 2015Crypttech LOG SIEM 2015
Crypttech LOG SIEM 2015
 
Succesvol content management
Succesvol content managementSuccesvol content management
Succesvol content management
 
Netapp Introduction to Flash Technology Infographic
Netapp Introduction to Flash Technology InfographicNetapp Introduction to Flash Technology Infographic
Netapp Introduction to Flash Technology Infographic
 
Presentasi Bisnis Vnet
Presentasi Bisnis VnetPresentasi Bisnis Vnet
Presentasi Bisnis Vnet
 
Lentera News edisi #15 Juni 2015
Lentera News edisi #15 Juni 2015Lentera News edisi #15 Juni 2015
Lentera News edisi #15 Juni 2015
 
DCM Presentation Multitasking and conncted devices
DCM Presentation Multitasking and conncted devicesDCM Presentation Multitasking and conncted devices
DCM Presentation Multitasking and conncted devices
 

Ähnlich wie New microsoft word document (3)

Motor Speed controllers
Motor Speed controllersMotor Speed controllers
Motor Speed controllersHemant Singh
 
Final Project Paper
Final Project PaperFinal Project Paper
Final Project PaperAhmed Hashem
 
Major faults in an alternator and their protection.
Major faults in an alternator and their protection.Major faults in an alternator and their protection.
Major faults in an alternator and their protection.javid iqbal sodagar
 
Electrical interviwe qustions
Electrical interviwe qustionsElectrical interviwe qustions
Electrical interviwe qustionshari kumar
 
Consumption analysis method for optimizing reactive compensation at MV
Consumption analysis method for optimizing reactive compensation at MVConsumption analysis method for optimizing reactive compensation at MV
Consumption analysis method for optimizing reactive compensation at MVFrancesc Fornieles Castells
 
Electrical Engineering Interview Questions
Electrical Engineering Interview QuestionsElectrical Engineering Interview Questions
Electrical Engineering Interview Questionsashiesh0007
 
06 current -__voltage_transformers
06 current -__voltage_transformers06 current -__voltage_transformers
06 current -__voltage_transformersKrishna Das
 
Real time parameter estimation for power quality control and intelligent prot...
Real time parameter estimation for power quality control and intelligent prot...Real time parameter estimation for power quality control and intelligent prot...
Real time parameter estimation for power quality control and intelligent prot...EG TECHNOLOGIES
 
Power transformer maintenance
Power transformer maintenancePower transformer maintenance
Power transformer maintenanceLucian Lazar
 
H2PToday1201_design_IR
H2PToday1201_design_IRH2PToday1201_design_IR
H2PToday1201_design_IRParviz Parto
 
Motor Current Signature Analysis R K Gupta
Motor Current Signature Analysis R K GuptaMotor Current Signature Analysis R K Gupta
Motor Current Signature Analysis R K GuptaRajuGupta88
 
Electrical interview-questions-answers
Electrical interview-questions-answersElectrical interview-questions-answers
Electrical interview-questions-answersRaghavendra Kiran
 
project report on plc based load sharing
project report on plc based load sharingproject report on plc based load sharing
project report on plc based load sharingVivek Arun
 
APFC project presentation
APFC project presentationAPFC project presentation
APFC project presentationkartickmp613
 

Ähnlich wie New microsoft word document (3) (20)

Motor Speed controllers
Motor Speed controllersMotor Speed controllers
Motor Speed controllers
 
Final Project Paper
Final Project PaperFinal Project Paper
Final Project Paper
 
digital
digitaldigital
digital
 
Major faults in an alternator and their protection.
Major faults in an alternator and their protection.Major faults in an alternator and their protection.
Major faults in an alternator and their protection.
 
Electrical interviwe qustions
Electrical interviwe qustionsElectrical interviwe qustions
Electrical interviwe qustions
 
Consumption analysis method for optimizing reactive compensation at MV
Consumption analysis method for optimizing reactive compensation at MVConsumption analysis method for optimizing reactive compensation at MV
Consumption analysis method for optimizing reactive compensation at MV
 
Electrical Engineering Interview Questions
Electrical Engineering Interview QuestionsElectrical Engineering Interview Questions
Electrical Engineering Interview Questions
 
How to build a Inverters
How to build a InvertersHow to build a Inverters
How to build a Inverters
 
06 current -__voltage_transformers
06 current -__voltage_transformers06 current -__voltage_transformers
06 current -__voltage_transformers
 
Real time parameter estimation for power quality control and intelligent prot...
Real time parameter estimation for power quality control and intelligent prot...Real time parameter estimation for power quality control and intelligent prot...
Real time parameter estimation for power quality control and intelligent prot...
 
Power quality 5
Power quality 5Power quality 5
Power quality 5
 
Relays
RelaysRelays
Relays
 
Power transformer maintenance
Power transformer maintenancePower transformer maintenance
Power transformer maintenance
 
Power transformer maintenance
Power transformer maintenancePower transformer maintenance
Power transformer maintenance
 
H2PToday1201_design_IR
H2PToday1201_design_IRH2PToday1201_design_IR
H2PToday1201_design_IR
 
Motor Current Signature Analysis R K Gupta
Motor Current Signature Analysis R K GuptaMotor Current Signature Analysis R K Gupta
Motor Current Signature Analysis R K Gupta
 
Electrical interview-questions-answers
Electrical interview-questions-answersElectrical interview-questions-answers
Electrical interview-questions-answers
 
BASIC ELECTRICAL EMERSON EDUARDO RODRIGUES
BASIC ELECTRICAL EMERSON EDUARDO RODRIGUESBASIC ELECTRICAL EMERSON EDUARDO RODRIGUES
BASIC ELECTRICAL EMERSON EDUARDO RODRIGUES
 
project report on plc based load sharing
project report on plc based load sharingproject report on plc based load sharing
project report on plc based load sharing
 
APFC project presentation
APFC project presentationAPFC project presentation
APFC project presentation
 

Kürzlich hochgeladen

All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFMichael Gough
 
Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Karmanjay Verma
 
A Glance At The Java Performance Toolbox
A Glance At The Java Performance ToolboxA Glance At The Java Performance Toolbox
A Glance At The Java Performance ToolboxAna-Maria Mihalceanu
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integrationmarketing932765
 
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Jeffrey Haguewood
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesManik S Magar
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Mark Simos
 
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...itnewsafrica
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observabilityitnewsafrica
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructureitnewsafrica
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 

Kürzlich hochgeladen (20)

All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDF
 
Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#
 
A Glance At The Java Performance Toolbox
A Glance At The Java Performance ToolboxA Glance At The Java Performance Toolbox
A Glance At The Java Performance Toolbox
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
 
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
 
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 

New microsoft word document (3)

  • 1. Designing a microcontroller-driven alternator voltage regulator David Swanson 9/20/2005 6:25 PM EDT Remember the days when, if your car’s alternator died, you could hit the regulator with a hammer and get it working again? Those were the days. Back then the regulator was a steel box mounted on the fender well. Inside, was a normally closed contact that opened up when the battery voltage exceeded some predetermined level. It was a simple circuit containing a few electronic components and a relay. As the relay wore out occasionally the contacts would not connect. You could whack the thing and jar the contacts just enough to get it working again. This was an easy fix and an early warning at the same time. You knew the alternator voltage regulator would stop working again so you would replace it at your earliest convenience (for me, when I could afford it). This was a simple system that worked for many years. Why, then, do we need a microcontroller? Why take an alternator voltage regulator from the simplicity of a relay and a few parts to something with more computing power than NASA had on the first Apollo moon shot? The answer lies with the potential for extended battery life, improved gas mileage, lower emissions, stability at lower engine idles, and most importantly, flexibility. Many low-volume charging-system applications beg for features but are stuck with what everyone else is using. For the OEMs that make these devices, microcontrolled regulators enable them to first prototype a potential customer’s configuration quickly and then provide low-volume products without enormous tooling charges. A more universal principle is in play as well. It seems that nothing conceived by mankind remains simple for long. If man can make it, man can make it more complicated--all under the guise of “we can make it better.” In this case, alternator voltage regulation is no exception. A microprocessor-based alternator voltage regulator seems, at first glance, to be a simple project to complete. After all, anything done with a relay can’t be all that taxing on a microcontroller. Well, sometimes ignorance is bliss. The smarter the controller, the more difficult it becomes to keep the alternator voltage regulator stable. An alternator, such as the one shown in Figure 1, is a current-mode machine. You put a current in and, with some help from a mechanical input (a pulley), you get a gained current out. But, you say, isn’t this an alternator voltage regulator? Yes, and this is where the problems begin. To control the output of a current-mode machine by looking at
  • 2. its voltage, knowing that the loads can vary in type (or phase) and amplitude at any time, is quite a challenge. Figure 1: Visteon alternator in a Ford Taurus The advantage of the old relay-driven system was that it was slow. Its poor response time and built-in hysteresis allowed for some voltage variation with load but kept the system fairly stable regardless of load. Quick review The input to a charging system is both mechanical and electrical. The mechanical part is the pulley that rotates the field (or the rotor in Figure 2) inside the stator, and the electrical part is the field current. The rotation generates the current “gain” in the system. Without rotation, there is no output current. Figure 2: Cutaway of Delphi alternator
  • 3. The output of the charging system is a product of rectifying the stator current, as shown in Figure 3. The rotating magnetic field inside the stator winding generates a sinusoidal waveform. This waveform is rectified to provide a direct current, which is a function of the input, or field current, and the field rotation. Since we want to regulate an output voltage, not a current, the load is involved in the regulation algorithm. As a result, stability is based on the response time of the alternator as well as the reaction time of the load it drives. In the end, the charging-system regulation loop now includes all of the vehicle electronics, not just the alternator and its mechanical inputs. Figure 3: Electrical diagram of an alternator
  • 4. With electronic controls automotive engineers can add neat features beyond simple output-voltage regulation. Remember man’s quest for complexity? Once the engineers decide to use a microcontroller-based system, these added features can help justify the added cost. The bonus features include field duty-cycle slew-rate limiting, soft start, auto start, and serial communications with the engine controller. With serial communications, engineers can also include higher level diagnostics such as no rotation, faulted rectifier- diode detection, as well as shorted or open field windings. Ensuring system stability Before the design engineer can start adding on all the glitter that makes a microcontrolled system cost effective, the charging system must be stable at regulating the output voltage. So, the first algorithm of any importance is the regulation algorithm. Regulation consists of sensing the battery voltage with adequate filtering to remove unwanted information and then responding with an appropriate current level for the field. Sensing and filtering The output-voltage waveform of an alternator is not so flat. Figure 4 shows that the rectified sinusoidal waveform has a ripple voltage or ripple current associated with it. This ripple can be quite large, even when we include the 1F capacitance of the battery. The peak-to-peak ripple voltage out of an alternator can be as much as 4 to 6V at high output currents. Figure 4: Alternator voltages at 100A output and 6,000RPM
  • 5. This peak-to-peak ripple voltage can be overcome without large filters by synchronously sampling the output voltage with a phase signal. The ripple is periodic with the phase, so this technique is quite effective. We can effectively filter out most of the periodic noise generated by the stator phasing. That noise is over 90% of what needs to be filtered out, with most of it in the lower frequency range. Filtering of higher frequencies can be done by placing some simple RC networks in front of the analog-to-digital (A/D) converter. You have to do some level shifting anyway to bring the battery setpoint voltage of about 14.5V to below the 5V level of most A/D converters. We can do further filtering in software by a rolling average of the sensed voltage. A four- to eight-sample averaging seems to work well. Those who are familiar with system dynamics can also understand that system poles and zeros can shift depending on load, load type, engine RPM (gain), and regulation setpoint. With that little bit of information, we realize that our regulation must have a very low- frequency dominant pole (less than 50Hz) and produce a fairly low–unity-gain bandwidth (less than 3kHz) to keep things from getting out of hand. The more time we take to decide on what to respond to, the lower that pole becomes. Also, the speed at which we react to a step change in output voltage determines our unity-gain bandwidth. This brings me to the next topic. Responding Response comes in the form of providing an appropriate field current to maintain regulation. The field current is typically regulated by driving a transistor switch at a duty cycle to attain a desired current, as shown in Figure 3. This technique is called voltage control of the field-current input. (Seems appropriate, don’t you think? After all, you’re regulating a current-mode machine by looking at its voltage.) The two generally accepted
  • 6. ways of regulating the alternator are through a fixed-frequency duty cycle or a variable- frequency duty cycle. The variable-frequency systems are dependent on the load and the response time of the system (alternator and loads). They tend to be high-gain systems. As a result they tend to be more accurate in maintaining a fixed setpoint voltage at the output while having inherent instability problems. Variable-frequency systems work by the old standard-relay method: turn on the field current when the output voltage is below a setpoint and turn it off when the setpoint is exceeded. The hope is that the system is so dynamic that it only stays in one point for a moment. Thus if the system finds an unstable point, it would only operate there for a moment, and the battery would help mask those brief, infrequent moments. The fixed-frequency systems are more stable in both input waveform and output control. These systems tend to use a lower-gain system allowing the setpoint voltage to vary by as much as 200 to 300mV over the load range. Fixed-frequency systems are easier to manipulate if you want to do other things like soft- start or load-response control. They are less dependent on the load dynamics and quite a bit more stable than the variable-frequency method. A few hundred millivolts compared with a 6V ripple is not very much. So the difference between the variable-frequency and fixed-frequency system is not critical, at least to my way of thinking. However, some engineers feel that a few hundred millivolts can make a significant difference in battery longevity. I’m not so convinced. To summarize, with the variable-frequency method, the decision to turn on or off the field driver is made with each sample. With the fixed-frequency method, the duty cycle is determined by where in the setpoint window the sample is, as shown in Figure 5. Figure 5: Setpoint band for determining field duty cycle. (The setpoint is typically around 14.5V at 25C.)
  • 7. I have worked with both systems and find that fixed-frequency systems are much more stable and predictable—especially when considering the extended feature set made possible with a microcontroller. Regulation band Let’s go into a design of a simple microcontrolled system in detail. Figure 6 shows a basic block diagram for a microcontroller-based alternator voltage regulator. Since the fixed-frequency system is much more stable and easier to work with, we’ll focus on this approach. Figure 6: Basic block diagram of an alternator voltage regulator The fixed-frequency method has a regulation band as shown in Figure 5. Within the regulation band, a specific duty cycle is associated with a specific voltage. At the low end of the band, the duty cycle is the highest. This point corresponds to the highest loading on the system. At the high end of the band, the duty cycle is the lowest, which corresponds to the lightest load the system can tolerate.
  • 8. We want to make this band as narrow as possible without making the system unstable. As you can imagine, when the window is narrowed, the gain increases. With higher gain, we have trouble keeping the low-frequency dominant pole or the low-frequency–gain bandwidth product. Typical systems on the market today that use this method have around a 200 to 300mV range from full field to no field current. We can’t possibly look directly at 14.5V with a micro A/D converter, and simply dividing this voltage down loses a lot of information as well. A 200mV window divided by four ends up with a 50mV spread to convert with the A/D converter. A 5V, 10-bit A/D converter gives 4.88mV per bit. This means I have a resolution of only 10 to 11 steps for regulation if I divide by four. This leaves us with building an offset amplifier with an accompanying gain stage as shown in Figure 7. The offset amplifier centers the setpoint to the middle of the A/D converter’s sensing voltage range. The gain amplifier then gains that up to get as much out of the A/D conversion as possible and still stay within the boundaries of the range of voltages we need to regulate. Figure 7: Possible gain and offset amplifier circuit With the proper biasing, the input is 14.5V +/-100mV and the output is something reasonable for the A/D converter to read. Biasing is a hardware issue, so we’ll let the hardware guys worry about that. The second issue with the regulation setpoint is temperature compensation. The battery’s ability to accept a charge is dependent on ambient temperature. At -40C a typical car battery can be charged to as much as 16V whereas at 125C, the charging voltage has to be much lower to keep the battery from boiling over. The temperature-compensation
  • 9. curve is totally dependent on what is best for battery life. Figure 8 shows a typical temperature compensation curve for some cars on the road today. Figure 8: Typical temperature compensation curve Oddly enough, temperature-compensation curves vary from car manufacturer to car manufacturer even though the battery technology does not change from car to car. Flexibility is one of the advantages of making a complex alternator voltage regulator, right? With the proper input offset and a total gain of two, the input to the A/D converter is 0.5V to 4.5V. With a gain of two, the 200mV band is now 400mV to the A/D converter. Using the aforementioned 4.88mV per bit at the A/D converter translates to an actual 2.4mV per step measured, or 81 steps over the 200mV window. With some averaging, this can easily be bumped up to 128 steps or 7 bits of resolution. This level of resolution is plenty for what we need. Now we’re ready to convert data. We sample synchronously with one of the phases to minimize noise issues. We may be sampling every time the phase is switched, but we only use the last sample that happened just prior to the field driver turning off. From that, an average is taken over a continuously running sample of four to six samples. The frequency of the alternator phase can be in the kilohertz range, while the field duty-cycle frequency is typically between 100 and 400Hz. Again, slow is good. The lower the field duty-cycle frequency, the lower the electromagnetic interference and the lower the power loss due to switching. Some regulators today work at less than 100Hz. The running average value is then compared with the values in a table that corresponds to the temperature compensation your customer wants. Field duty-cycle slew rate Quite often, the load variation drops outside of the regulation window. When this happens, the field duty cycle is commanded to go to 100% from wherever it was. Instant 100% duty-cycle moments can cause stability issues in the engine at idle.
  • 10. One feature that makes the microcontroller desirable is the ability to “feather in” electric loads into the mechanical system. Essentially, this technique limits the slew rate on the field-current duty cycle. This limiting allows for lower engine idling, which affects gas mileage and emissions. The flowcharts in Figure 9 show this as RATE(up/dn). Figure 9: Phase interrupt and regulation loop routines The duty cycle is increased at a fixed slow rate at step increases in load. This rate is so slow, that some systems today can take as much as 10 seconds to go from 0% duty cycle to full field. Others can take around 2s to get to full field. The longer it takes, the longer the battery must hold things up until the alternator catches up. One way in which you can see this delay is by the momentary dimming of headlights every time the AC kicks in. A duty-cycle slew-rate generator is based on a simple timed counter that looks at the measured setpoint results and counts up or down. Instead of the setpoint band directly setting the duty cycle, a duty-cycle register that’s influenced by the setpoint results is used. The final value of the register should be the measured setpoint band value. Whatever is in this register is what is used to generate the duty cycle seen at the field driver.
  • 11. For example, say the loading was such that the duty cycle was 50%. This would be right in the center of the setpoint band as shown in Figure 8. A step increase in load occurs requiring an increase of the duty cycle to 75%. Without slew-rate control, the duty cycle would change to 75% on the next period causing a step increase in mechanical load as well. With slew-rate control, the duty cycle would increase at a fixed rate until the system was satisfied, e.g. the measured value matched the duty cycle register value. At a 2 sec overall slew rate, a 25% increase in duty cycle would take a half a second to realize. There are some issues with over-voltage such that we cannot count down as slowly as we would want to count up. The battery is more willing to go higher in voltage than it is to dip under load. Also, over-voltage conditions are frowned upon. As a result, the algorithm in Figure 9 bypasses the field duty-cycle register altogether when the measured voltage is above the setpoint band (~100mV above setpoint). I do not set the duty cycle register to zero; instead, I turn off the field and let the duty-cycle register count down until the over-voltage condition has passed. With a duty-cycle slew-rate limiter, we are now slowing down the response of the alternator to step increases in load, thereby stabilizing the system. Effectively, we are over-damping the system to keep it more stable, while not allowing over-voltage conditions to occur. The main loop For me, the main loop as shown in Figure 10 is basically a housekeeper and a watchdog of sorts. Everything of interest to me is run by interrupts, so the main loop is what the micro does when it has nothing else to do. Figure 10: Main routine
  • 12. The main loop checks for loose ends, such as what the ambient temperature is, if the phase input is really working, and if the alternator has lost all ability to charge the battery. Since we use the phase input to look at the output voltage, if we lose phase, we have to generate an artificial interrupt. That sort of thing. Dilbert cartoonist Scott Adams labeled the first week of a project the Wally Period. Wally explains that “most tasks become unnecessary within seven days.” In the case of our alternator, most faults go away within one second. So, I put a delay of 1s in reporting a fault. Anything less than a second is not of concern, so we can ignore faults for the alternator’s Wally Period. Once we add serial communications, we can remove the lamp driver in place of high- level diagnostics. We can also add the ability to change the setpoint by commands from the engine controller. This capability is added today in many vehicles. Instead of looking at the positive temperature-controlled resistor for temperature information, the engine controller sends a signal requesting a specific setpoint band. Some engine controllers include temperature compensation, while others do not.
  • 13. Most systems today require more communication to the regulator than from it. There are opportunities for PWM (pulse width modulation) communications (where the PWM duty cycle commands the setpoint value), LIN (local interconnect network) bus communications, “bit serial interface” communications as well as CAN (controller area network) communications protocols. Waking up the alternator When the ignition is turned on, the conditions of the regulator are fairly specific. At start up, ignition occurs with no phase voltage, and the setpoint has not been reached. The battery-rest voltage is always below the setpoint. With this condition present, the regulator knows that the system is waiting to start up. At this point, the regulator provides a lower duty cycle, between 10% and 25%, to determine if the rotor is spinning without drawing too much current. Small amounts of current in a spinning rotor can generate enough voltage on the stator to be easily read by a microcontroller. The rotor is only spinning if the engine is running. Once a proper phase voltage/frequency is sensed, the regulator can begin normal regulation. Soft start at wakeup essentially consists of slew-rate limiting the field duty cycle once the regulator has recognized that the system is starting up. We do this to prevent the engine from stalling due to an alternator loading before the engine-idle control system has had a chance to stabilize. Some engineers just delay initiating the regulator for several seconds as the engine stabilizes. Either way it works. Auto start is another way of waking up the regulator assembly without using the ignition input. If the ignition-input connection is broken or disconnected, you can use a phase input to look for activity. Typically there is some residual magnetism in the rotor, such that if the engine is running, the stator will exhibit some low-level voltage. This voltage is typically a few hundred millivolts at a few thousand RPM in the alternator. This voltage can be detected by using additional circuitry (such as op-amps) between the stator and the microcontroller. Without the auto-start feature, the phase input can be a simple resistor divider coupled with a zener clamp and capacitor. These low voltages typically found on the sensed phase when the field is not excited require some amplification to be detected by a microcontroller. Let me say a little about a hardware watchdog. In an embedded microcontroller system, the ambient temperatures can sometimes get out of hand. With that said, we may not know how the microcontroller will operate at such temperatures. A software watchdog or internal watchdog cannot be counted on under these adverse conditions. It’s kind of like putting the fox in charge of the hen house. Instead, I use a voltage regulator that has a built-in watchdog as shown in Figure 10. In the main routine, I toggle a bit that goes to the watchdog. The watchdog looks for transitions. If it stops seeing transitions, it resets the micro and we start all over. The beauty of electronics Today, electronics eliminates the option to make a regulator work just by hitting it. Of
  • 14. course, electronics also eliminates the need to do so. Even the aftermarket versions of those old regulators are fully electronic today. One of the not-so-hidden benefits of electronics is that, even with all their complexity, they’re immensely more reliable than the mechanical systems they replaced. David Swanson is a principal engineer in STMicroelectronics’ Automotive Business Unit. David has worked with ST since 1987 in various roles. Prior to ST, David worked for Delco Products Division of GM. He has a BSEE from North Carolina State University and holds many patents in several areas of automotive electronics. You can reach him at david.swanson@st.com.