ECE480 App - Note Fields
ECE480 App - Note Fields
A Voltage Regulator (also called a "regulator") has only three legs and appears
to be a comparatively simple device but it is actually a very complex integrated
circuit. A regulator converts varying input voltage and produces a constant
"regulated" output voltage. Voltage regulators are available in a variety of
outputs, typically 5 volts, 9 volts and 12 volts. The last two digits in the name
indicate the output voltage.
Name Voltage
LM7805 + 5 volts
LM7809 + 9 volts
LM7812 + 12 volts
LM7905 - 5 volts
LM7909 - 9 volts
LM7912 - 12 volts
The "LM78XX" series of voltage regulators are designed for positive input. For
applications requiring negative input the "LM79XX" series is used.
How it Works:
The transformer drops the 240 volt 'mains' voltage to 8.5 volts. The diode 'bridge'
rectifies the 8.5 volts AC from the output side of the power transformer into DC.
The 2500uF capacitor helps to maintain a constant input into the regulator.
Voltage regulators are very robust. They can withstand over-current draw due to
short circuits and also over-heating. In both cases the regulator will shut down
before damage occurs. The only way to destroy a regulator is to apply reverse
voltage to its input.
Reverse polarity destroys the regulator almost instantly. To avoid this possibility
you should always use diode protection of the power supply. This is especially
important when using nine volt battery supplies as it is common for people to
'test' the battery by connecting it one way and then the other. Even this short
'test' could destroy the regulator if a protection diode is not used.
All of the interfaces described on this site have protection diodes connected into
the power supply circuit to prevent damage due to incorrect polarity. Generally a
1N4004, 1 amp power diode is connected in series with the power supply. If the
supply is connected the wrong way around, the regulator will be protected from
damage.
Input Voltage:
As a general rule the input voltage should be limited to 2 to 3 volts above the
output voltage. The LM78XX series can handle up to 30 volts input, but the
power difference between the input voltage/current ratio and output
voltage/current ratio appears as heat. If the input voltage is unnecessarily high
the regulator will get very hot. Unless sufficient heat-sinking is provided the
regulator will shut down.
Transistor Circuits
This page explains the operation of transistors in circuits. Practical matters such as testing,
precautions when soldering and identifying leads are covered by the Transistors page.
Types of transistor
The leads are labelled base (B), collector (C) and emitter (E).
These terms refer to the internal operation of a transistor but they are not much help in
understanding how a transistor is used, so just treat
The diagram shows the two current paths through a transistor. You can build this
circuit with two standard 5mm red LEDs and any general purpose low power
NPN transistor (BC108, BC182 or BC548 for example).
When the switch is closed a small current flows into the base (B) of the
transistor. It is just enough to make LED B glow dimly. The transistor amplifies
this small current to allow a larger current to flow through from its collector (C) to
its emitter (E). This collector current is large enough to make LED C light brightly.
When the switch is open no base current flows, so the transistor switches off
the collector current. Both LEDs are off.
This arrangement where the emitter (E) is in the controlling circuit (base current) and in the
controlled circuit (collector current) is called common emitter mode. It is the most widely used
arrangement for transistors so it is the one to learn first.
Additional notes:
• A resistor is often needed in series with the base connection to limit the
base current IB and prevent the transistor being damaged.
• Transistors have a maximum collector current Ic rating.
• The current gain hFE can vary widely, even for transistors of the same
type!
• A transistor that is full on (with RCE = 0) is said to be 'saturated'.
• When a transistor is saturated the collector-emitter voltage VCE is reduced
to almost 0V.
• When a transistor is saturated the collector current Ic is determined by the
supply voltage and the external resistance in the collector circuit, not by
the transistor's current gain. As a result the ratio Ic/IB for a saturated
transistor is less than the current gain hFE.
• The emitter current IE = Ic + IB, but Ic is much larger than IB, so roughly IE =
Ic.
There is a table showing technical data for some popular transistors on the
transistors page.
Darlington pair
Darlington pairs are available as complete packages but you can make up your
own from two transistors; TR1 can be a low power type, but normally TR2 will
need to be high power. The maximum collector current Ic(max) for the pair is the
same as Ic(max) for TR2.
When a transistor is used as a switch it must be either OFF or fully ON. In the
fully ON state the voltage VCE across the transistor is almost zero and the
transistor is said to be saturated because it cannot pass any more collector
current Ic. The output device switched by the transistor is usually called the
'load'.
For information about the operation of a transistor please see the functional
model above.
Protection diode
If the load is a motor, relay or solenoid (or any other device with a coil) a diode
must be connected across the load to protect the transistor (and chip) from
damage when the load is switched off. The diagram shows how this is connected
'backwards' so that it will normally NOT conduct. Conduction only occurs when
the load is switched off, at this moment current tries to continue flowing through
the coil and it is harmlessly diverted through the diode. Without the diode no
current could flow and the coil would produce a damaging high voltage 'spike' in
its attempt to keep the current flowing.
When to use a relay
Advantages of relays:
Relays
• Relays can switch AC and DC, transistors can only
switch DC. Photographs © Rapid Electronics
• Relays can switch high voltages, transistors cannot.
• Relays are a better choice for switching large currents (> 5A).
• Relays can switch many contacts at once.
Disadvantages of relays:
Most chips cannot supply large output currents so it may be necessary to use a
transistor to switch the larger current required for output devices such as lamps,
motors and relays. The 555 timer chip is unusual because it can supply a
relatively large current of up to 200mA which is sufficient for some output devices
such as low current lamps, buzzers and many relay coils without needing to use
a transistor.
A transistor can also be used to enable a chip connected to a low voltage supply
(such as 5V) to switch the current for an output device with a separate higher
voltage supply (such as 12V). The two power supplies must be linked, normally
this is done by linking their 0V connections. In this case you should use an NPN
transistor.
A resistor RB is required to limit the current flowing into the base of the transistor
and prevent it being damaged. However, RB must be sufficiently low to ensure
that the transistor is thoroughly saturated to prevent it overheating, this is
particularly important if the transistor is switching a large current (> 100mA). A
safe rule is to make the base current IB about five times larger than the value
which should just saturate the transistor.
2. The transistor's minimum current gain hFE(min) must be at least five times
the load current Ic divided by the maximum output current from the chip.
load current Ic
hFE(min) > 5 ×
max. chip current
5. For a simple circuit where the chip and the load share the same power supply (Vc = Vs)
you may prefer to use: RB = 0.2 × RL × hFE
6. Then choose the nearest standard value for the base resistor.
7. Finally, remember that if the load is a motor or relay coil a protection diode
is required.
Example
The output from a 4000 series CMOS chip is required to operate a relay with a 100 coil.
The supply voltage is 6V for both the chip and load. The chip can supply a maximum current of
5mA.
1. Load current = Vs/RL = 6/100 = 0.06A = 60mA, so transistor must have Ic(max) > 60mA.
2. The maximum current from the chip is 5mA, so transistor must have hFE(min) > 60
(5 × 60mA/5mA).
3. Choose general purpose low power transistor BC182 with Ic(max) = 100mA and
hFE(min) = 100.
4. RB = 0.2 × RL × hFE = 0.2 × 100 × 100 = 2000 . so choose RB = 1k8 or 2k2.
5. The relay coil requires a protection diode.
Diodes:
Finder
Low profile PCB SPDT 10A relay All products by this manufacturer >
• 1 CO (SPDT), 10A
• 3.2mm pinning
• Very low coil consumption of 250mW
• 10mm, 6kV (1.2/50µs) between coil and contacts