Last week in How to Electronically Modify Your Car, Part 9 we looked at how DIY electronic kits can be used to broaden the range of available modification options. This week, we look at the sort of analog and digital signals that you will often need to deal with when modifying car electronics. Analog SignalsAn analog signal is one that changes without steps. For example, the voltage signal output of an airflow meter is usually of this type. The output may be 1.2V at idle and 4.1 volts at full power - and at in between loads, it can be any value between these extremes. Analog signals lend themselves to being monitored by devices like the Voltage Switch covered in How to Electronically Modify Your Car, Part 8. The device ‘watches' the varying signal, and when it reaches the pre-set trip-point, the switch activates. This diagram shows an analog signal over time. The signal is indicating temperature, eg of the engine coolant. The signal is being monitored by a Voltage Switch, and when the temp rises above 95 degrees, the switch triggers - eg to run a radiator fan. When the temp falls below 85 degrees, the fan switches off. (Therefore, there is a hysteresis of 10 degrees - again see How to Electronically Modify Your Car, Part 8). Other examples of analog voltage signals include the output signals from most MAP sensors, yaw sensors, throttle position sensors and temperature sensors. Most people have no problem in understanding analog signals, so I've kept the description brief. But digital signals often cause consternation! Digital SignalsDigital signals are usually either on or off. (The only exceptions are digital signals that work in discrete steps, but they're rare in car applications.) This diagram shows a digital signal over time. You can see that the signal is either on or off. If the signal was powering a light bulb, the light would be flashing. With a varying analog signal voltage, the light would instead be changing in brightness. To continue with the light bulb example - turning it on and off with a switch is to operate it digitally. Changing its brightness with a variable resistor is operate it in an analog manner. (See later in this artricle for more on controlling the brightness of a light bulb!) An electronic fuel injector is operated with a digital signal - it is either open or closed, there's no attempt made to keep it open part-way. Let's have a closer look at the way that electronic fuel injectors work, because their operation shows a lot of the characteristics of digital signals that we need to understand. In the fuel injection system, the fuel is supplied to injectors at high pressure. Injectors are just solenoid valves with a built-in fine nozzle. When power is applied, the injector pintle rises, letting fuel flow through the nozzle in a spray. When power is removed, a spring shuts the nozzle, stopping the flow of fuel. When the engine is spinning at 2000 rpm, there are about 16 intake strokes every second. Since we add fuel every intake stroke, at 2000 rpm we need to fire the injector (and so squirt in a bit of fuel) 16 times a second. Rather than write "times a second", we say the injector is being pulsed at 16 Hertz (abbreviated to Hz). This is the injector's firing frequency. So if someone says that a signal varies from 50Hz to 500Hz, we know that they're referring to how many times per second the signal switches on and off - from 50 times a second to 500 times a second. You can directly measure the frequency of a signal using a decent quality multimeter (the very cheapest don't have this feature). Normally, you set the meter to read volts DC and then press the frequency button. Another example of a variable frequency signal is that used by the car speed sensor. It works just like a bicycle speedo that has a magnet on the wheel and a reed switch on the frame. Each time the wheel rotates, it closes a contact and so sends a pulse to the ECU. If there are lots of pulses per second, the ECU knows the vehicle is travelling faster than if there are only a few pulses per second.
Let's return to the topic of injectors. Because we want to inject fuel each intake stroke, if the engine is spinning at 2000 rpm, we must open the injector 16 times a second (16Hz). Therefore, we have a maximum of 1/16th of a second to get the injector open, squirt out some fuel, and then close it again, ready for the next event. It sounds a short time, but for an injector, 1/16th of a second is long enough to take a holiday in the sun. So at these revs, it's likely it will be open for only a small proportion of the available time - say 10 per cent of the 1/16th of a second. This percentage is called its duty cycle. Again, you can directly measure the duty cycle of a signal by using a decent quality multimeter. Normally, you set the meter to read volts DC and then press the duty cycle button.
If the injector duty cycle is at 50 per cent, the injector is open for half the time. If the injector is at 75 per cent duty cycle, it is open for three-quarters of the available time. At 100 per cent duty cycle, it is open continuously, while at 0 per cent duty cycle it is continuously shut. You need to remember that the lift of the pintle is the same irrespective of the duty cycle; it's the duration of its opening that's important. It's also vital to remember that except at 0 and 100 per cent duty cycles, the injector is opening and closing at its pulsing frequency, which varies with engine speed.
Variable Frequency and Variable Duty CycleSo a digital signal can vary in two ways - its frequency and its duty cycle. In the case of an injector, its frequency varies with engine rpm and its duty cycle varies with load. But there are lots of other flow control valves in a car where the pulsing frequency stays fixed, with just the duty cycle varying. This takes us to the next idea - a digital signal can actually be used in another way, a way that makes it act a bit like an analog signal. Let's have a look. Most flow control solenoid valves in a car (eg wastegate control valve, electronic Exhaust Gas Recirculation valve and idle speed control solenoid) used a fixed frequency but vary in duty cycle. If the frequency is slow (eg 5Hz), you'll be able to hear the valve actually opening and closing five times second - it will be clicking like mad. But if you speed up the valve operation a lot (and run it at say 100Hz), you can make an interesting thing happen. Because of the inertia of its moving parts, at high operating frequencies the valve will hover in mid positions, with the amount of duty cycle determining how far the valve is open. In other words, the valve no longer completely opens and shuts at the operating frequency, but instead stays at in-between positions! The frequency that will allow this to occur is specific to the solenoid - it depends on aspects like the weight of the moving parts, the stiffness of the return spring and so on. Of course, this variable flow approach won't work at very low duty cycles (like 0 per cent) because the valve will just be shut, and very high duty cycles (like 100 per cent) also won't work (the valve will just be fully open). So in solenoids of this sort, the actual duty cycle variation is typically in the range of 20 - 80 per cent. The same approach can also be taken with other systems. Remember back at the beginning of this story I talked about a light bulb? I said that turning it on and off with a switch was to operate it digitally - the light would flash on and off. Operating it with a variable resistor was to use analog control, and its brightness would change gradually. But, just like with the way the above solenoid was held in mid-positions, we can actually change the brightness of the light bulb by using digital control. What we do is set a frequency that's so fast the filament ‘averages out' the pulses of supplied current. If we trigger the light bulb at (say) 100Hz, we'll find that by varying the duty cycle from 0 to 100 per cent, we can smoothly change the brightness of the lamp being fully off to being fully on. If it's being fed by a 12V supply, at 50 per cent duty cycle the light will see an average voltage of 6 volts. At 75 per cent duty cycle it will see an average of 9 volts - and so on. Exactly the same approach can be taken with DC motor speed control, eg a radiator fan motor, water/air intercooler pump motor, or fuel pump. This approach is sometimes called PWM (pulse width modulation) or ‘variable duty cycle control'.
ConclusionIf the concepts in this article are all new to you, you'll need to study them carefully - perhaps more than a few times. However, when they're broken down into their simplest ideas, all that we're talking about are: Nearly every system in a car - engine management, turbo boost control, exhaust gas recirculation control, ABS, stability control, climate control, active torque split control and so on - uses these concepts. They're very good ones to know! Next week we will look at how you can actually see these signals.
Did you enjoy this article? Please consider supporting AutoSpeed with a small contribution. More Info...
|
||||||||||||||||||
|