![]() |
|
|
|
|
|
Circuits : Drivers and output devicesDrivers and output devicesIt is impossible to decide on a suitable driver without knowing about the Output device that it is going to drive.
Drivers discussed on this site include:
Some of these drivers can be dealt with very simply.
The Transistor and Darlington driverThe two drivers that are most difficult to understand are the transistor and the darlington driver. They are quite similar (a darlington driver is simply a pair of transistors) so they will be discussed together.
A transistor driver subsystem contains two components:
The key question from a design point of view is:
Let's start with the resistor Rb. The voltage from the digital subsystem will be close to the supply voltage Vs for a 'digital 1'. The voltage at the base of a transistor that is 'on' will be close to 0.7V. So the voltage across Rb is Vs - 0.7. The maximum current (which we will call Ib, the base current) that can be taken from the digital subsystem depends on whether it is a CMOS 4000 IC (which can provide up to 160mA) or a PIC (3mA). So now we can use Ohm's law to work out Rb. For example, suppose that the digital subsystem is a PIC, operating at a supply voltage of 5V, then Ohm's law applied to Rb gives:
If the digital subsystem is a CMOS 4000 device, operating at a supply voltage of 5V, then Ohm's law gives:
If the supply voltage for the CMOS IC is higher than 5V then Ib will be larger, but the IC will be able to provide more current.
So the voltage across Rb is Vs - 1.4. If the digital subsystem is a PIC, operating at a supply voltage of 5V, then:
The same approach for a CMOS IC gives a preferred value for Rb of 22k. So we can reduce all this to a simple 'recipe':
We can make the recipe even simpler if we are happy to accept up to a third less current from the darlington:
How do we select the transistor (or darlington) itself? We first need to find the voltage and the current that the Output device requires (usually from the supplier's catalogue or a data sheet). The voltage between the emitter and the collector of a transistor (or darlington) that is 'on' is very small, less than 0.1V. So the voltage across the Output device is equal to Vs. So we choose the supply voltage Vs to be the voltage needed by the Output device.
This deals with the voltage needed by the Output device. What about the current? The current in the Output device is the same current that flows into the collector of the transistor. The transistor amplifies the current that flows into its base from the digital subsystem by a factor that is called the current gain of the transistor. The amplified current flows into the collector. In catalogues and data sheets the current gain is referred to as hFE. If a range of values is given for hFE, always use the minimum value quoted because this will be the worst case.
There is a second important limitation on the transistor. There is a maximum current - Ic(max) - that a transistor can carry before it is damaged.
There are thousands of transistors available. The cheapest transistor that fulfils both these conditions is 'best'. In practice, it is simplest in schools to stock a small range of transistors and darlingtons that can cover all likely needs. Here are some drivers widely used in schools:
Note that the drawings show the view from below (the pin side). The prices are typical for quantities of 100 or more. Let's look in detail at one example: The BC237B transistor However, Ic(max) is 100mA.
So, for a BC237B transistor connected to a PIC, the maximum current in the output device must be less than 100mA. Using this approach, we can find the maximum current that can flow through the Output device, for each of the above transistors or darlingtons, when the digital subsystems is a PIC or a CMOS 4000 IC:
The reason why the BC108 is included in this list is that it is widely referred to in school textbooks. Unfortunately, this is an example of schools following a recipe without appreciating that technology has moved on in the last 30 years. As is clear from the table, the BC108 is no better than other transistors costing less than half as much. The BC108 is obsolete and can be safely replaced by cheaper alternatives e.g. the BC337 has the same performance, is less than half the cost of a BC108 and has the same pin arrangement. For low current applications the BC184 is cheap and effective. The BC237B is almost identical and is used in Control Studio. For higher currents a darlington driver is needed. The BC517 is inexpensive and will cover almost all requirements. The ZTX600B provides a higher current with CMOS if necessary and is used by Control Studio. The ULN2803 (which contains eight darlingtons in one IC) is convenient and cost effective if more than one darlington is needed. Going beyond the limitsWhat would happen if a circuit is used with, say, a CMOS 4000 IC feeding a transistor driver and the resistor Rb is less than the value given above? Because of manufacturing spread, the chances are that the IC would be able to provide more current than the bare minimum guaranteed by the manufacturer and so the current in the output device could be higher. Even if the CMOS IC was just on the edge, the chances are that the transistor's hFE would not be at the minimum, so again, more current could flow in the output device. Unfortunately, many circuits in magazines and textbooks have been 'designed' in this dangerous way. The only way to be sure that circuits will always work is to design them using 'worst case design', not trial and error. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||