Back EMF

DCCWiki, a community DCC encyclopedia.
Jump to: navigation, search

Short Definition

Back Electro-motive Force is voltage generated in a motor while in operation. Decoders can monitor this voltage for control purposes.

A decoder can use Back Electro-Motive Force (BEMF) as a governor. This feature prevents trains from slowing down or speeding up on grades. Sometimes model trains stop when trying to travel slowly across a turnout or other rough trackage. BEMF control provides a solution.

Back Electro-motive Force is the voltage generated during the operation of a rotating machine (a generator or a motor). BEMF is proportional to speed and independent of load. It produces a counterforce that limits the speed of the motor.

Back Electro-motive Force

When a voltage (an electro-motive force) is applied to a motor's armature, it begins to rotate, and an amount of electrical resistance is generated by the rotating magnetic field. This kick-back is called Back Electro-motive Force or Back-EMF (BEMF). The faster the armature turns, the more BEMF is produced. The net effect is the BEMF limits just how fast the motor or generator can turn.

BEMF may also be called:

  • Generator Coefficient
  • Generator Constant
  • Voltage Constant
  • Counter ElectroMotive Force

BEMF is specified in more than one way, although the end result is the same. One definition is "volts per thousand RPM," or "Volts/KRPM." A second definition is "Volts/(rad/sec)" where (rad/sec) is Radians per Second.

Using the above, the decoder can measure the motor's speed and apply power accordingly to keep the speed constant. The result can be a train that will maintain the same speed regardless of the grade, number of cars being pulled, or condition of the track.

One of the things this can be used for is to simulate the action of a governor. That is, trains go up and down grades while maintaining the same speed. Some people like this idea while others think it's a bad idea - it is NOT prototypical. Some people just want to see trains run and don't want to be bothered by continuously throttling up and down on grades. For layouts that are primarily used for display, this could be good - set the train's speed and let it run unattended. But for people who enjoy running their trains, prototypically or otherwise, this feature can take away from that enjoyment - for those, BEMF can be disabled while programming the decoder.

BEMF is a side effect of Pulse Width Modulation. The decoder can read the voltage generated when the power is disconnected from the motor. The decoder can then monitor the BEMF and compensate for variations in speed.

Consisting

If you want to use BEMF for this purpose, there is something you need to be aware of. It is all but impossible to make two locos run at the exact same speed. If you couple two locos together, both having 100% BEMF control, they will fight each other. The one that is fastest will want to pull the slower one, and the slower one will want to hold back on the faster one. The more they pull against each other, the harder they will try - until you hear wheels scrubbing. This is called the push-me-pull-you syndrome. Even if they are off by only 1/4 inch in 10 feet, it can be enough to get the syndrome started. And once started, it only intensifies.

To counter this effect, many manufacturers have made various provisions to allow coupling BEMF controlled locos together. Some disable BEMF at speeds above switching (more about that later), and others provide for disabling BEMF when locos are MUed. Other decoders may allow the operator to disable the BEMF with the press of a button.

Slow Speed Operations

Another BEMF use is to smooth running over turnouts and other rough trackage at slow speeds. This is especially important for switchers running at very slow speeds over points and frogs. Some manufacturers specialize their BEMF only for this purpose - cutting out when the loco reaches a certain speed. Digitrax decoders can be set up to run at 100% BEMF for switching purposes, but does not automatically cut out at higher speeds.

Sound Decoders

BEMF is used by sound decoders as well. For an internal combustion engine, it will simulate the load on the prime mover. Just like your car as you start from a stop, the engine will make noise proportional to the load, speed and throttle setting.

For external combustion, the BEMF is used to control the chuffs (or beats) of the engine under load, and the sounds like the rod clank that is heard during drifting. It simulates the effects of the throttle and cut-off, which are adjusted by the engineer as he brings the train from a stop to speed. The engineer would open the thottle and adjust the cut-off for maximum steam admission. As the engine begins to move and pick up speed, he will adjust the cut-off to reduce the amount of steam being admitted, like using a choke to richen or lean a mixture. The beats coming from the stack will change in intensity and duration in the process.

Digitrax Variation

Digitrax provides several options for this. First, it can be turned on and off at will. Second, a certain amount of tolerance can be programmed in - in two different ways (making it scalable); how much Back-EMF to use and how fast to use it. And lastly, they provide for two different amounts of Back-EMF to be used based upon whether the loco is consisted to another loco or not. This last feature allows you to program full Back-EMF control when not consisted, and have some tolerance for the other loco when consisted via Decoder-Assisted Consisting.

Like all things with versatility, Digitrax's Back-EMF is a little more complicated to program than some others. Think about it. If all you can do is turn it on and off, that's all you need to learn how to do. Actually, you can operate Digitrax's Back-EMF decoders this way if you choose. But, if you want to run two locos together under Back-EMF control, you will need to learn how to program that feature into the decoders as well.

To do all of this, Digitrax uses three CVs (55, 56, & 57). To explain how each of these work, you have to understand that the "target" speed is the speed with which the loco is supposed to be going according to the throttle setting you have given it. CV#55 is used to tell the decoder how fast to compensate for speed differences. CV#56 uses historical information to act as a shock absorber - to keep from over reacting. CV#57 tells how much tolerance from the target speed is allowed. CV#57 is divided in half. The first hex digit is for how much Back-EMF when not consisted, the second digit is for how much when consisted via Decoder-Assisted Consisting.


BEMF Issues

BEMF can also cause problems with some brands of locomotives, such as Bachmann. Locomotives manufactured by Bachmann may have an RFI suppression circuit in the motor circuit. It will confuse the BEMF algorithm in the decoder and make it run poorly. The circuit is there to absorb any high frequency electrical noise created by arcing between the commutator and brushes. While this works well in a direct current environment, the RFI suppression will cause problems with BEMF and the high frequency PWM used by high frequency drive equipped decoders.

Dynamic Brake

In the real world the BEMF is both a nuisance and a blessing. While it increases the power needed to propel the locomotive, it also provides a force which can be used to slow the locomotive. This is called Dynamic Braking.

To implement this, the generator power is routed to the field coils, and the rotor coils are connected to a bank of resistors. The traction motor is now configured as a generator, and it's output is dissipated by the resistor bank. Since there is resistance to the current flow, a back-emf is created in the rotor, which now wants to slow down due to the counter torque being created. This allows control of the train without using the air brake system excessively.

PID

PID is another term that will appear in the BEMF discussion

What is PID

PID-controller.png

PID means Proportional Integral Derivative, a form of controller. The controller keeps making small adjustments based on the error it calculates based on the real value measured and the desired value.

One of the inspirations for this was the actions of a helmsman steering a ship, knowing how the ship will react and making corrections based on previous inputs.

How Does it Work?

Think of PID like a spring in your car's suspension. You can control the stiffness of the spring. When you hit a bump the spring begins to oscillate, and if it is very stiff you will know about the bump. Make it really soft and you won't really feel the bump. But the car will start to oscillate as the spring stores and releases energy. To manage that, you have a shock absorber which tries to damp the oscillation so you don't lose control of the car.

Applied to your locomotive, when a voltage is applied to the motor it begins to turn, with the speed proportional to the voltage. Due to the mass of the armature, it will overshoot the desired speed and then settle down. The proportional segment comes into play here, with a range or band of speed around the desired set point. The range can be large or small, depending on how the decoder handles it, and may be adjustable. If it is very wide in range, then a large swing in speed can occur. Set to a very narrow range, the variation in speed is much less.

The integral part of the equation is magnitude and duration of the error between the set point and the actual speed, and the control circuit will begin applying a correction as it tries to move the speed to the desired point.

The derivative is complicated to explain, but, the simple explanation is that it tries to predict how the system will behave and it will improve control and system stability in the process.

Decoders and PID

Not all decoders have PID, where others implement it, but not all the features.

Most have the Proportional and Integral parts, others put more emphasis on the Derivative component and less on the Integral.

Read the decoder manual to determine how to tune the BEMF and PID, and what features are available. If a speed change cases surging, there is excessive compensation and the CVs responsible need to be adjusted.

Speed Matching and BEMF

With everything tuned, the ability to consist and have realistic operations is ensured.

With proper tuning, both locomotives should behave as one unit when consisted. If the BEMF is not tuned correctly, they will buck as one reacts to the other and the reactions will only get worse. By tuning them so their reactions are similar, this effect is minimized.

Some decoders, such as those by Digitrax, use a different method of motor control when consisted to minimize any issues between locomotives.

Further Reading

BEMF PDF from Train Control Systems

Intro to BEMF at Tony's Train Exchange PDF Version