Professional Documents
Culture Documents
Electronics Project Sheet 2
Electronics Project Sheet 2
Counting one, two, three, four, five in binary: 1, 10, 11, 100, There are 10 kinds of
101. people - those who
understand binary,
Binary numbers rapidly become very long as the count and those who don't.
increases and this makes them difficult for us to read at a
glance. Fortunately it is rarely necessary to read more than 4 binary digits at a time in
counting circuits.
In a binary number each digit represents a multiple of two (1, 2, 4, 8, 16 etc), in the
same way that each digit in decimal represents a multiple of ten (1, 10, 100, 1000 etc).
For example 10110110 in binary equals 182 in decimal:
Digit value: 128 64
32 16 8 4 2 1
Binary number: 1 0 1 1 0 1 1 0
Decimal value: 128 + 0 + 32 + 16 + 0 + 4 + 2 + 0 = 182
A block of 8 bits is called a byte and it can hold a maximum number of 11111111 = 255
in decimal. Computers and PIC microcontrollers work with blocks of 8 bits. Two (or
more) bytes make a word, for example PICs work with a 16-bit word (two bytes) which
can hold a maximum number of 65535.
A block of 4 bits is called a nibble (half a byte!) and it can hold a maximum number of
1111 = 15 in decimal. Many counting circuits work with blocks of 4 bits because this
number of bits is required to count up to 9 in decimal. (The maximum number with 3 bits
is only 7).
Hexadecimal (often just called 'hex') is base 16 counting with 16 digits. It starts with the
decimal digits 0-9, then continues with letters A (10), B (11), C (12), D (13), E (14) and F
(15). Each hexadecimal digit is equivalent to 4 binary digits, making conversion between
the two systems relatively easy. You may find hexadecimal used with PICs and
computer systems but it is not generally used in simple counting circuits.
4-bit numbers
The table on the right shows the 4-bit numbers and their decimal values.
The labels A,B,C,D are widely used in electronics to represent the four bits:
Binary Coded Decimal, BCD, is a special version of 4-bit binary where the count resets
to zero (0000) after the ninth count (1001). It is used by decade counters and is easily
converted to display the decimal digits 0-9 on a 7-segment display.
Several decade counters using BCD can be linked together to separately count the
decimal ones, tens, hundreds, and so on. This is much easier than attempting to
convert large binary numbers (such as 10110110) to display their decimal value.
Do not confuse BCD which stands for Binary Coded Decimal with the labels A,B,C,D used to represent
the four binary digits; it is an unfortunate coincidence that the letters BCD occur in both!
Counters
All counters require a 'square wave' clock signal to make them count. This is a digital
waveform with sharp transitions between low (0V) and high (+Vs), such as the output
from a 555 astable circuit.
Most switches bounce when the contacts close giving a rapid series of pulses.
Connecting a switch directly to a clock input will usually give several counts when the
switch is operated once! One way to 'debounce' the switch is to make it trigger a
555 monostable circuit with a short time period (such as 0.1s) and use the monostable
output to drive the clock input.
The animated block diagram shows a clock signal driving a 4-bit (0-15) counter with
LEDs connected to show the state of the clock and counter outputs QA-QD (Q indicates
an output).
The LED on the first output QA flashes at half the frequency of the clock LED. In fact the
frequency of each stage of the counter is half the frequency of the previous stage. You
can see this pattern too in the table above showing the 4-bit numbers.
Notice how output QA changes state every time the clock input changes from high to
low (that is when the clock LED turns off), this is called the falling-edge. If you watch
the counting closely you can see that QB changes on the falling-edge of QA, QC on the
falling-edge of QB and so on.
You may be surprised to see the diagram drawn with the input on the right and signals flowing from right
to left, the opposite way to the usual convention in electronics! Drawing counter circuits like this means
that the outputs are in the correct binary order for us to read easily and I think this is more helpful than
rigidly sticking to the usual 'left to right' convention.
In most circuits the ripple delay is not a problem because it is far too short to be seen
on a display. However, a logic system connected to ripple counter outputs will briefly
see false counts which may produce 'glitches' in the logic system and may disrupt its
operation. For example a ripple counter changing from 0111 (7) to 1000 (8) will very
briefly show 0110, 0100 and 0000 before 1000!
A synchronous counter has a more complex internal structure to ensure that all its
outputs change precisely together on each clock pulse, avoiding the brief false counts
which occur with ripple counters.
It may seem odd that ripple counters use the falling-edge, but in fact this makes it easy to link counters
because the most significant bit (MSB) of one counter can drive the clock input of the next. This works
because the next bit must change state when the previous bit changes from high to low - the point at
which a carry must occur to the next bit. Synchronous counters usually have carry out and carry in pins
for linking counters without introducing any ripple delays.
Resetting a counter
Presetting
Some counters can be preset by presenting a number to their inputs A-D and activating
a preset input to load the number into the counter. By making inputs A-D all low you can
also use this to reset the counter to zero.
Frequency division
Counters can be used to reduce the frequency of an input (clock) signal. Each stage of
a counter halves the frequency, so for a 4-bit (0-15) counter QA is 1/2, QB is 1/4, QC is 1/8
and QD is 1/16 of the clock frequency. Division by numbers that are not powers of 2 is
possible by resetting counters.
Frequency division is one of the main purposes of counters with more than 4 bits and
their outputs are usually labelled Q1, Q2 and so on. Qn is the nth stage of the counter,
representing 2n. For example Q4 is 24 = 16 (1/16 of clock frequency) and Q12 is
212 = 4096 (1/4096 of clock frequency).
Decoders
The common anode/cathode is often available on 2 pins. Displays also have a decimal
point (DP) but this is not controlled by the display driver. The segments of larger
displays have two LEDs in series. For display connections please see your supplier's
catalogue or manufacturer's datasheet.
Multiplexing
If there are many 7-segment display digits multiplexing is usually used. This is a
system of switching so that of all the decade counters share a single display driver
which is connected to all of the displays. The output of each counter is connected in turn
to the inputs of the display driver and at the same time the common anode/cathode of
the corresponding 7-segment display is connected so that only one display lights at a
time.The switching is done very rapidly (typically 400 - 1000Hz) and the segment
current is larger than normal so the display appears continuous and of normal
brightness. Multiplexing requires ICs to do the switching, but the complete circuit has
fewer ICs than having one display driver for each display.
Linking Counters
Counters may be linked together in a chain to count larger numbers. It may seem
tempting to use a 12-bit or 14-bit counter, but it is not practical to convert their large
binary numbers to decimal. You should use a chain of decade (0-9) counters which use
BCD (binary coded decimal) to make the conversion to decimal very easy: the first
counts the units, the second counts the tens, the third the hundreds and so on.
Some dual counter ICs are available with two separate counters on the same IC, the
two counters must be linked externally if required (there is no internal link).
The way that counters are linked depends on the nature of the counter. The diagrams
below show the general arrangements for standard ripple and synchronous counters but
it is important to read the detailed information for particular counters, consulting a
datasheet if necessary.
The diagram below shows how to link standard ripple counters. Notice how the highest
output QD of each counter drives the clock (CK) input of the next counter. This works
because ripple counters have clock inputs that are 'active-low' which means that the
count advances as the clock input becomes low, on the falling-edge.
Remember that with all ripple counters there will be a slight delay before the later
outputs respond to the clock signal, especially with a long counter chain. This is not a
problem in simple circuits driving displays, but it may cause glitches in logic systems
connected to the counter outputs.
The diagram below shows how to link standard synchronous counters. Notice how all
the clock (CK) inputs are linked, and carry out (CO) is used to feed the carry in (CI) of
the next counter. This ensures that the entire counter chain is synchronous, with every
output changing at the same time. Carry in (CI) of the first counter should be made low
or high to suit the particular counter IC being used.
Usual Unit
Quantity Symbol Unit Symbol
Voltage V volt V
Current I amp* A
Charge Q coulomb C
Resistance R ohm
Capacitance C farad F
Inductance L henry H
Reactance X ohm
Impedance Z ohm
Power P watt W
Energy E joule J
Time t second s
Frequency f hertz Hz
* strictly the unit is ampere, but this is
almost always shortened to amp.
Quantities
The relationship between quantities can be written using words or symbols (letters), but
symbols are normally used because they are much shorter; for example V is used for
voltage, I for current and R for resistance:
As a word equation:
voltage = current × resistance
To prevent confusion we normally use the same symbol (letter) for each quantity and
these symbols are shown in the second column of the table.
Some of the units have a convenient size for electronics, but most are either too large or
too small to be used directly so they are used with the prefixes shown in the second
table. The prefixes make the unit larger or smaller by the value shown.
Some examples:
25 mA = 25 × 10-3 A = 25 × 0.001 A = 0.025 A
47µF = 47 × 10-6 F = 47 × 0.000 001 F = 0.000 047 F
270k = 270 × 103 = 270 × 1000 = 270 000
It might seem a good idea to make the farad (F) much smaller to avoid having to use
µF, nF and pF, but if we did this most of the equations in electronics would have to have
factors of 1000000 or more included as well as the quantities. Overall it is much better
to have the units with their present sizes which are defined logically from the equations.
In fact if you use an equation frequently you can use special sets of prefixed units which
are more convenient...
For example: Ohm's Law, V = I × R
the standard units are volt (V), amp (A) and ohm ( ),
but you could use volt (V), milliamp (mA) and kilo-ohm (k ) if you prefer.
Take care though, you must never mix sets of units: using V, A and k in Ohm's Law would give you
wrong values.
The table below shows a selection of books about electronics which may be of interest if
you are studying electronics as part of a course at school, or if you have been building
projects and wish to learn how the circuits work. Some of the project books explain the
operation of their circuits and this can be a good way to learn how they work.
Please note that some books are now out of print but you may still be able to obtain
them from secondhand bookshops and suppliers such as Amazon.
Textbooks
Books for beginners, GCSE courses and AS/A level courses.
Book Title and
ISBN and Publisher Comments
Author
Basic Skills: ISBN: 0 7195 4449 1
Electronics Publisher: This is a suitable textbook for a beginner.
by Tom Duncan John Murray
Starting
ISBN: 0 7506 4435 4 The practical approach of this book makes it
Electronics
Publisher: Newnes suitable for beginners.
by Keith Brindley
Teach Yourself
ISBN: 0 3404 2230 0
Electronics A self-study book covering the essentials of
Publisher:
by Malcolm electronics.
Hodder & Stoughton
Plant
Electronics - A A suitable textbook for GCSE, Intermediate
ISBN: 0 7506 5545 3
First Course GNVQ and City & Guilds courses. Practical
Publisher: Newnes
by Owen Bishop work is introduced almost immediately.
Electronics for
ISBN: 0 7195 7413 7
Today and A suitable textbook for GCSE and AS/A level.
Publisher:
Tomorrow No projects or practical exercises.
John Murray
by Tom Duncan
Success in ISBN: 0 7195 7205 3
A self-study textbook for GCSE and AS/A
Electronics Publisher:
level. No projects or practical exercises.
by Tom Duncan John Murray
Electronics
ISBN: 0 17 448303 1
Explained An AS/A level textbook with many practical
Publisher:
by M W exercises.
Nelson Thornes
Brimicombe
An AS/A level textbook with many practical
Analogue
ISBN: 0 3407 1925 7 investigations to support its discovery-based
Electronics
Publisher: Newnes approach. Transistors, operational amplifiers,
by John C Morris
thyristors and triacs are covered.
An AS/A level textbook with many practical
Digital investigations to support its discovery-based
ISBN: 0 3405 5638 2
Electronics approach. The 555 timer, logic gates,
Publisher: Newnes
by John C Morris counters, shift registers and displays are
covered.
Reference Books
Learn how to use the integrated circuits covered by these books.
The 555 timer IC is used in many projects and
ISBN: 0 85934 047 3
IC 555 Projects this book thoroughly explains its operation and
Publisher:
by E Parr use. There are many circuit diagrams of
Bernard Babani
projects.
This book explains how to use the 4000 series
A Beginners
ISBN: 0 85934 333 2 CMOS logic gates, counters, display drivers
Guide to CMOS
Publisher: and so on. They are ideal for battery powered
Digital ICs
Bernard Babani projects because they use little power and can
by R Penfold
tolerate a wide range of supply voltages.
A Beginners
ISBN: 0 85934 332 4 This book explains how to use the 74 series
Guide to TTL
Publisher: TTL logic gates, counters, display drivers and
Digital ICs
Bernard Babani so on.
by R Penfold
Operational amplifiers are very versatile
How to Use Op- ISBN: 0 85934 063 5
devices and this book thoroughly explains
Amps Publisher:
their operation and use, with many circuit
by E Parr Bernard Babani
designs for the more experienced constructor.
Master IC ISBN: 0 8306 6550 1 Technical information on many popular
Cookbook out of print integrated circuits (ICs), including the 74
by Clayton try Amazon series and 4000 series logic ICs. The book
Hallmark & concentrates on the ICs themselves rather
Delton Horn than the circuits in which they can be used.
Practical Books
Learn by building projects on breadboard, no soldering is required.
Book Title and
ISBN and Publisher Comments
Author
Adventures
ISBN: 0 7195 3554 9 An introduction to electronics by building
with
Publisher: transistor circuits on S-Dec, a breadboard
Electronics
John Murray system which does not require soldering.
by Tom Duncan
Learn about electronics by building integrated
Adventures
ISBN: 0 7195 3671 5 circuit ('chip') projects on standard breadboard
with Micro-
Publisher: (no soldering required). This is more
Electronics
John Murray advanced than Adventures with Electronics
by Tom Duncan
(above).
Learn about digital electronics by building
Adventures projects such as traffic lights and a binary 4-bit
ISBN: 0 7195 3875 0
with Digital adder using 4000 series ICs on standard
out of print
Electronics breadboard (no soldering required). This is the
try Amazon
by Tom Duncan most advanced of the three 'Adventures
with...' books.
Rapid Electronics stock a wide range of electronics books including some shown in the
table above.
All these books are a good source of circuit diagrams for projects but in most cases you
will need to design your own stripboard or PCB layout to build the project. If you plan to
build projects from books or magazines that are more than about 10 years old you
should check that all the components required are still available.
If you want to try designing your own circuits you will need to have a good
understanding of electronics. It is best to start by adapting a circuit given in a book. The
books for studying electronics include many useful circuit diagrams.
Project Books
Many of these books just give circuit diagrams. Please be aware that you will need to
design your own stripboard or PCB layout to build the project.
Book Title and
ISBN and Publisher Comments
Author
IC 555 Projects ISBN: 0 85934 047 3 The 555 timer IC is used in many projects
and this book thoroughly explains its
Publisher:
by E Parr operation and use. There are many circuit
Bernard Babani
diagrams of projects.
Operational amplifiers are very versatile
How to Use Op- ISBN: 0 85934 063 5 devices and this book thoroughly explains
Amps Publisher: their operation and use, with many circuit
by E Parr Bernard Babani designs for the more experienced
constructor.
Circuit Source ISBN: 0 85934 321 9
Circuit diagrams to help the experienced
Book 1 Publisher:
constructor design their own projects.
by R Penfold Bernard Babani
Circuit Source ISBN: 0 85934 322 7
Circuit diagrams to help the experienced
Book 2 Publisher:
constructor design their own projects.
by R Penfold Bernard Babani
Practical
ISBN: 0 85934 384 7
Electronic Model
Publisher: The
Railway Projects
Bernard Babani
by R Penfold
Electronic Components
These pages are intended to help you to identify components, find out their values and learn about their
function in circuits.
Capacitors
Connectors and Cables
Diodes including zener diodes
Integrated Circuits (Chips)
o 4000 series logic ICs (pin connections etc)
o 74 series logic ICs (pin connections etc)
Lamps
LEDs (Light Emitting Diodes)
Relays
Resistors
o Resistor Colour Code Calculator
Switches
Transistors
o Heat sinks for transistors
Variable Resistors
Other components including LDRs and thermistors
Lamps
Function | Symbols | Selecting | Types of lamp | Connecting
Lamps emit light when an electric current passes through them. All of the
lamps shown on this page have a thin wire filament which becomes very hot
and glows brightly when a current passes through it. The filament is made from
a metal with a high melting point such as tungsten and it is usually wound into
a small coil. Filament lamps have a shorter lifetime than most electronic
components because eventually the filament 'blows' (melts) at a weak point.
Circuit symbols
There are two circuit symbols for a lamp, one for a lamp used to provide illumination
and another for a lamp used as an indicator. Small lamps such as torch bulbs can be
used for both purposes so either circuit symbol may used in simple educational circuits.
Selecting a Lamp
The voltage and power (or current) ratings are usually printed or embossed on the body
of a lamp.
Voltage rating
This is the supply voltage required for normal brightness. If a slightly higher
voltage is used the lamp will be brighter but its lifetime will be shorter. With a
lower supply voltage the lamp will be dimmer and its lifetime will be longer.
The light from dim lamps has a yellow-orange colour.
Torch lamps pass a relatively large current and this significantly reduces the
output voltage of the battery. Some voltage is used up inside the battery
driving the large current through the small resistance of the battery itself (its
'internal resistance'). As a result the correct voltage rating for a torch lamp is lower than
the normal voltage of the battery which lights it!
For example: a lamp rated 3.5V 0.3A is correct for a 4.5V battery (three 1.5V cells)
because when the lamp is connected the voltage across the battery falls to about 3.5V.
This is the power or current for the lamp when connected to its rated voltage. Low
power lamps are usually rated by their current and high power lamps by their power. It
is easy to convert between the two ratings:
P = I × V where: P = power in watts (W)
or I = current in amps (A)
I=P/V V = voltage in volts (V)
Examples:
A lamp rated 3.5V 0.3A has a power rating P = I × V = 0.3 × 3.5 = 1.05W
A lamp rated 6V 0.06A has a power rating P = I × V = 0.06 × 6 = 0.36W
A lamp rated 12W 2.4W has a current rating I = P / V = 2.4 / 12 = 0.2A
Lamp Type
Pre-focus
This type of lamp is used in torches and lanterns.
The flange at the top of the metal body is used to
hold the lamp in place. Lampholders are not
readily available so this type is unsuitable for
most projects.
Wire ended
These are very small lamps with a bulb about
3mm diameter and 6mm long. Take care to
avoid snapping the wires where they enter the
glass bulb.
Lampholders usually have screw terminals or solder tags to attach wires. Some small
holders have contacts which may be soldered directly to a circuit board.
Lamps in Series
A disadvantage of connecting lamps in series is that if one lamp blows all of them will go
out because the circuit is broken. Christmas tree lamps have a special feature to
overcome this problem; they are designed to short circuit (conduct like a wire link) when
they blow, so the circuit is not broken and the other lamps remain lit, making it easier to
locate the faulty lamp. Sets also include one 'fuse' lamp which blows normally.
LEDs must be connected the correct way round, the diagram may be
labelled a or + for anode and k or - for cathode (yes, it really is k, not c,
for cathode!). The cathode is the short lead and there may be a slight
flat on the body of round LEDs. If you can see inside the LED the
cathode is the larger electrode (but this is not an official identification
method).
LEDs can be damaged by heat when soldering, but the risk is small unless you are very
slow. No special precautions are needed for soldering most LEDs.
Testing an LED
For an accurate value please see Calculating an LED resistor value below.
Colours of LEDs
Tri-colour LEDs
The most popular type of tri-colour LED has a red and a green LED
combined in one package with three leads. They are called tri-colour
because mixed red and green light appears to be yellow and this is
produced when both the red and green LEDs are on.
The diagram shows the construction of a tri-colour LED. Note the different
lengths of the three leads. The centre lead (k) is the common cathode for
both LEDs, the outer leads (a1 and a2) are the anodes to the LEDs
allowing each one to be lit separately, or both together to give the third
colour.
Bi-colour LEDs
A bi-colour LED has two LEDs wired in 'inverse parallel' (one forwards, one backwards)
combined in one package with two leads. Only one of the LEDs can be lit at one time
and they are less useful than the tri-colour LEDs described above.
As well as a variety of colours, sizes and shapes, LEDs also vary in their viewing angle.
This tells you how much the beam of light spreads out. Standard LEDs have a viewing
angle of 60° but others have a narrow beam of 30° or less.
Rapid Electronics stock a wide selection of LEDs and their catalogue is a good guide to
the range available.
Calculating an LED resistor value
R = (VS - VL) / I
VS = supply voltage
VL = LED voltage (usually 2V, but 4V for blue and white
LEDs)
I = LED current (e.g. 10mA = 0.01A, or 20mA = 0.02A)
Make sure the LED current you choose is less than the maximum permitted and
convert the current to amps (A) so the calculation will give the resistor value in ohms (
).
To convert mA to A divide the current in mA by 1000 because 1mA = 0.001A.
If the calculated value is not available choose the nearest standard resistor value which
is greater, so that the current will be a little less than you chose. In fact you may wish to
choose a greater resistor value to reduce the current (to increase battery life for
example) but this will make the LED less bright.
For example
If the supply voltage VS = 9V, and you have a red LED (VL = 2V), requiring a current I =
20mA = 0.020A,
R = (9V - 2V) / 0.02A = 350 , so choose 390 (the nearest standard value which is
greater).
Ohm's law says that the resistance of the resistor, R = V/I, where:
V = voltage across the resistor (= VS - VL in this case)
I = the current through the resistor
So R = (VS - VL) / I
For more information on the calculations please see the Ohm's Law page.
Example calculations:
A red, a yellow and a green LED in series need a supply voltage of at least
3 × 2V + 2V = 8V, so a 9V battery would be ideal.
VL = 2V + 2V + 2V = 6V (the three LED voltages added up).
If the supply voltage VS is 9V and the current I must be 15mA = 0.015A,
Resistor R = (VS - VL) / I = (9 - 6) / 0.015 = 3 / 0.015 = 200 ,
so choose R = 220 (the nearest standard value which is greater).
If the LEDs require slightly different voltages only the lowest voltage
LED will light and it may be destroyed by the larger current flowing
through it. Although identical LEDs can be successfully connected
in parallel with one resistor this rarely offers any useful benefit
because resistors are very cheap and the current used is the same
as connecting the LEDs individually. If LEDs are in parallel each
one should have its own resistor.
Suppliers' catalogues usually include tables of technical data for components such as
LEDs. These tables contain a good deal of useful information in a compact form but
they can be difficult to understand if you are not familiar with the abbreviations used.
The table below shows typical technical data for some 5mm diameter round LEDs with
diffused packages (plastic bodies). Only three columns are important and these are
shown in bold. Please see below for explanations of the quantities.
IF VF VF VR Luminous Viewing
Type Colour Wavelength
max. typ. max. max. intensity angle
Standard Red 30mA 1.7V 2.1V 5V 5mcd @ 10mA 60° 660nm
Bright 80mcd @
Standard 30mA 2.0V 2.5V 5V 60° 625nm
red 10mA
32mcd @
Standard Yellow 30mA 2.1V 2.5V 5V 60° 590nm
10mA
32mcd @
Standard Green 25mA 2.2V 2.5V 5V 60° 565nm
10mA
High 60mcd @
Blue 30mA 4.5V 5.5V 5V 50° 430nm
intensity 20mA
500mcd @
Super bright Red 30mA 1.85V 2.5V 5V 60° 660nm
20mA
Low current Red 30mA 1.7V 2.0V 5V 5mcd @ 2mA 60° 625nm
IF max. Maximum forward current, forward just means with the LED
connected correctly.
VF typ. Typical forward voltage, VL in the LED resistor calculation.
This is about 2V, except for blue and white LEDs for which it is about
4V.
VF max. Maximum forward voltage.
VR max. Maximum reverse voltage
You can ignore this for LEDs connected the correct way round.
Luminous Brightness of the LED at the given current, mcd = millicandela.
intensity
Viewing angle Standard LEDs have a viewing angle of 60°, others emit a narrower
beam of about 30°.
Wavelength The peak wavelength of the light emitted, this determines the colour
of the LED.
nm = nanometre.
Flashing LEDs
Flashing LEDs look like ordinary LEDs but they contain an integrated circuit (IC) as well
as the LED itself. The IC flashes the LED at a low frequency, typically 3Hz (3 flashes
per second). They are designed to be connected directly to a supply, usually 9 - 12V,
and no series resistor is required. Their flash frequency is fixed so their use is limited
and you may prefer to build your own circuit to flash an ordinary LED, for example our
Flashing LED project which uses a 555 astable circuit.
LED Displays
LED displays are packages of many LEDs arranged in a pattern, the most familiar
pattern being the 7-segment displays for showing numbers (digits 0-9). The pictures
below illustrate some of the popular designs:
There are many types of LED display and a supplier's catalogue should be consulted for
the pin connections. The diagram on the right shows an example from the Rapid
Electronics catalogue. Like many 7-segment
Pin connections diagram
displays, this example is available in two versions: © Rapid Electronics
Common Anode (SA) with all the LED anodes
connected together and Common Cathode (SC) with
all the cathodes connected together. Letters a-g refer to the 7 segments, A/C is the
common anode or cathode as appropriate (on 2 pins). Note that some pins are not
present (NP) but their position is still numbered
Relays
Choosing a relay | Protection diodes | Reed relays | Advantages & disadvantages
The supplier's catalogue should show you the relay's connections. The coil will be
obvious and it may be connected either way round. Relay coils produce brief high
voltage 'spikes' when they are switched off and this can destroy transistors and ICs in
the circuit. To prevent damage you must connect a protection diode across the relay
coil.
The animated picture shows a working relay with its coil and switch contacts. You can
see a lever on the left being attracted by magnetism when the coil is switched on. This
lever moves the switch contacts. There is one set of contacts (SPDT) in the foreground
and another behind them, making the relay DPDT.
The relay's switch connections are usually labelled COM, NC and NO:
COM = Common, always connect to this, it is the moving part of the switch.
NC = Normally Closed, COM is connected to this when the relay coil is off.
NO = Normally Open, COM is connected to this when the relay coil is on.
Connect to COM and NO if you want the switched circuit to be on when the relay coil is on.
Connect to COM and NC if you want the switched circuit to be on when the relay coil is off.
Choosing a relay
supply voltage
Relay coil current =
coil resistance
4. For example: A 12V supply relay with a coil resistance of 400 passes a current
of 30mA. This is OK for a 555 timer IC (maximum output current 200mA), but it is
too much for most ICs and they will require a transistor to amplify the current.
5. Switch ratings (voltage and current)
The relay's switch contacts must be suitable for the circuit they are to control.
You will need to check the voltage and current ratings. Note that the voltage
rating is usually higher for AC, for example: "5A at 24V DC or 125V AC".
6. Switch contact arrangement (SPDT, DPDT etc)
Most relays are SPDT or DPDT which are often described as "single pole
changeover" (SPCO) or "double pole changeover" (DPCO). For further
information please see the page on switches.
Reed Relay
Reed relays
Reed relays consist of a coil surrounding a reed switch. Reed switches are normally
operated with a magnet, but in a reed relay current flows through the coil to create a
magnetic field and close the reed switch.
Reed relays generally have higher coil resistances than standard relays (1000 for
example) and a wide range of supply voltages (9-20V for example). They are capable of
switching much more rapidly than standard relays, up to several hundred times per
second; but they can only switch low currents (500mA maximum for example).
The reed relay shown in the photograph will plug into a standard 14-pin DIL socket ('IC
holder').
For further information about reed switches please see the page on switches.
Relays and transistors compared
Like relays, transistors can be used as an electrically operated switch. For switching
small DC currents (< 1A) at low voltage they are usually a better choice than a relay.
However, transistors cannot switch AC (such as mains electricity) and in simple circuits
they are not usually a good choice for switching large currents (> 5A). In these cases a
relay will be needed, but note that a low power transistor may still be needed to switch
the current for the relay's coil! The main advantages and disadvantages of relays are
listed below:
Advantages of relays:
Relays can switch AC and DC, transistors can only switch DC.
Relays can switch higher voltages than standard transistors.
Relays are often a better choice for switching large currents (> 5A).
Relays can switch many contacts at once.
Disadvantages of relays:
Audio & communication: Jack | Phono | Coax | BNC | DIN | D | IDC & RJ45
Terminal blocks are usually supplied in 12-way lengths but they can be cut into smaller
blocks with a sharp knife, large wire cutters or a junior hacksaw. They are sometimes
called 'chocolate blocks' because of the way they can be easily cut to size.
Crocodile clips
Plugs
Plugs may have a screw or solder terminal to hold
the cable. Check if you need to thread the cable
through the cover before connecting it. Some
plugs, such as those illustrated, are 'stackable'
4mm terminal
which means that they include a socket to accept
and solder tag
another plug, allowing several plugs to be
connected to the same point - a very useful
feature for test leads.
Photographs © Rapid Electronics
Sockets
These are usually described as 'panel mounting'
because they are designed to be fitted to a case. Most sockets have a solder contact
but the picture shows other options. Fit the socket in the case before attaching the wire
otherwise you will be unable to add the mounting nut.
Terminals
In addition to a socket these have provision for attaching a wire by threading it through a
hole (or wrapping it around the post) and tightening the top nut by hand. They usually
have a threaded stud to fit a solder tag inside the case.
These are smaller versions of the 4mm plugs and sockets described above, but
terminals are not readily available. The plugs illustrated are stackable. Despite their
small size these connectors can pass large currents and some are rated at 10A.
These are intended for audio signals so mono and stereo versions are available. The
sizes are determined by the plug diameter: ¼" (6.3mm), 3.5mm and 2.5mm. The 2.5mm
size is only available for mono.
Screened plugs have metal bodies connected to the COM contact. Most connections
are soldered, remember to thread cables through plug covers before soldering! Sockets
are designed for PCB or chassis mounting.
¼" plug connections are similar to those for 3.5mm plugs shown below. ¼" socket
connections are COM, R and L in that order from the mounting nut, ignore R for mono
use. Most ¼" sockets have switches on all contacts which open as the plug is inserted
so they can be used to isolate internal speakers for example.
The connections for 3.5mm plugs and sockets are shown below. Plugs have a lug which
should be folded down to grip the cable's insulation and increase the strength of the
joint. 3.5mm mono sockets have a switch contact which can be used to switch off an
internal speaker as the plug is inserted. Ignore this contact if you do not require the
switching action.
L = left channel
signal
R = right channel
signal 3.5mm jack plug and socket connections
COM = common (the R connection is not present on mono plugs)
(0V, screen)
These are used for screened cables carrying audio and video signals. Stereo
connections are made using a pair of phono plugs and sockets. The centre contact is
for the signal and the outer contact for the screen (0V, common). Screened plugs have
metal bodies connected to the outer contact to give the signal additional protection from
electrical noise. Sockets are available for PCB or chassis mounting, singly for mono, or
in pairs for stereo. Line sockets are available for making extension leads.
These are designed for screened cables carrying high frequency signals where an
undistorted and noise free signal is essential, for example oscilloscope leads. BNC
plugs are connected with a push and twist action, to disconnect you need to twist and
pull.
Plastic covers of DIN plugs (and line sockets) are removed by depressing the retaining
lug with a small screwdriver. You may also need small pliers to extract the body from
the cover but do not pull on the pins themselves to avoid damage. Remember to thread
the cable through the cover before starting to solder the connections!
Soldering DIN plugs is easier if you clamp the insert with the pins. Wires should be
pushed into the hollow pins - first 'tin' the wires (coat them with a thin layer of solder)
then melt a little solder into the hollow pin and insert the wire while keeping the solder
molten. Take care to avoid melting the plastic base, stop
and allow the pin to cool if necessary.
D connectors
These are multi-pole connectors with provision for screw fittings to make semi-
permanent connections, for example on computer equipment. The D shape prevents
incorrect connection. Standard D-connectors have 2 rows of contacts (top picture); 9, 15
and 25-way versions are the most popular. High Density D-connectors have 3 rows of
contacts (bottom picture); a 15-way version is used to connect computer monitors for
example.
Note that covers (middle picture) are usually sold separately because both plugs and
sockets can be fitted to cables by fitting a cover to a chassis mounted connector. PCB
mounting versions of plugs and sockets are also available. The contacts are usually
numbered on the body of the connector, although you may need a magnifying glass to
see the very small markings. Soldering D-
connectors requires a steady hand due to the
closeness of the contacts, it is easy to accidently
unsolder a contact you have just completed while
attempting to solder the next one!
These multi-pole insulation displacement connectors are used for computer and
telecommunications equipment. They automatically cut through the insulation on wires
when installed and special tools are required to fit them. They are available as 4, 6 and
8-way versions.
The 8-way RJ45 is the standard connector for modern computer networks. If you
regularly use these you may be interested in our network lead tester project.
Standard UK telephone connectors are similar in style but a slightly different shape.
They are called BT (British Telecom) connectors.
Cables
Cable... flex... lead... wire... what do all these terms mean?
Stranded wire
Typical specifications:
10/0.1mm (10 strands of 0.1mm diameter), maximum current 0.5A.
7/0.2mm (7 strands of 0.2mm diameter), maximum current 1.4A.
16/0.2mm (16 strands of 0.2mm diameter), maximum current 3A.
24/0.2mm (24 strands of 0.2mm diameter), maximum current 4.5A.
55/0.1mm (55 strands of 0.1mm diameter), maximum current 6A, used for test leads.
'Figure 8' cable consists of two stranded wires arranged in a figure of 8 shape. One wire
is usually marked with a line. It is suitable for low voltage, low current (maximum 1A)
signals where screening from electrical Photograph © Rapid Electronics
interference is not required. It is a popular choice
for connecting loudspeakers and is often called 'speaker cable'.
Signal cable consists of several colour-coded cores of stranded wire housed within an
outer plastic sheath. With a typical maximum current of 1A per core it is suitable for low
voltage, low current signals where screening from electrical interference is not required.
The picture shows 6-core cable, but 4-core Screened cable (mono)
and 8-core are also readily available.
Screened cable
The diagram shows the construction of screened cable. The central wire carries the
signal and the screen is connected to 0V (common) to shield the signal from electrical
interference. Screened cable is used for audio signals and dual versions are available
for stereo.
Co-axial cable
This type of screened cable (see above) is designed to carry high frequency signals
such as those found in TV aerials and oscilloscope leads.
Mains flex
Mains flex is sometimes used for low voltage circuits which pass a high current, but please think carefully
before using it in this way. The distinctive colours of mains flex should act as a warning of the mains high
voltage which can be lethal; using mains flex for low voltage circuits can undermine this warning.
Diodes
Signal diodes | Rectifier diodes | Bridge rectifiers | Zener diodes
Function
Reverse Voltage
When a reverse voltage is applied a perfect diode does not conduct, but all real diodes
leak a very tiny current of a few µA or less. This can be ignored in most circuits because
it will be very much smaller than the current flowing in the forward direction. However,
all diodes have a maximum reverse voltage (usually 50V or more) and if this is
exceeded the diode will fail and pass a large current in the reverse direction, this is
called breakdown.
Ordinary diodes can be split into two types: Signal diodes which pass small currents of
100mA or less and Rectifier diodes which can pass large currents. In addition there are
LEDs (which have their own page) and Zener diodes (at the bottom of this page).
Rectifier diodes are quite robust and no special precautions are needed for soldering
them.
Testing diodes
You can use a multimeter or a simple tester (battery, resistor and LED) to check that a
diode conducts in one direction but not the other. A lamp may be used to test a
rectifier diode, but do NOT use a lamp to test a signal diode because the large current
passed by the lamp will destroy the diode!
Signal diodes are used to process information (electrical signals) in circuits, so they are
only required to pass small currents of up to 100mA.
General purpose signal diodes such as the 1N4148 are made from silicon and have a
forward voltage drop of 0.7V.
Germanium diodes such as the OA90 have a lower forward voltage drop of 0.2V and
this makes them suitable to use in radio circuits as detectors which extract the audio
signal from the weak radio signal.
For general use, where the size of the forward voltage drop is less important, silicon
diodes are better because they are less easily damaged by heat when soldering, they
have a lower resistance when conducting, and they have very low leakage currents
when a reverse voltage is applied.
Rectifier diodes are used in power supplies to convert alternating current (AC) to direct
current (DC), a process called rectification. They are also used elsewhere in circuits
where a large current must pass through the diode.
All rectifier diodes are made from silicon and therefore have a forward voltage drop of
0.7V. The table shows maximum current and maximum reverse voltage for some
popular rectifier diodes. The 1N4001 is suitable for most low voltage circuits with a
current of less than 1A.
Bridge rectifiers
The diagram shows the operation of a bridge rectifier as it converts AC to DC. Notice
how alternate pairs of diodes conduct.
Zener diodes
Example: Circuit symbol:
a = anode, k = cathode
Zener diodes are rated by their breakdown voltage and maximum power:
Also see: 4000 Series ICs | 74 Series ICs | 555 and 556 Timer Circuits
Integrated Circuits are usually called ICs or chips. They are complex circuits which have
been etched onto tiny chips of semiconductor (silicon). The chip is packaged in a plastic
holder with pins spaced on a 0.1" (2.54mm) grid which will fit the holes on stripboard
and breadboards. Very fine wires inside the package link the chip to the pins.
Pin numbers
IC holders are only needed when soldering so they are not used on breadboards.
Commercially produced circuit boards often have ICs soldered directly to the board without an IC holder,
usually this is done by a machine which is able to work very quickly. Please don't attempt to do this
yourself because you are likely to destroy the IC and it will be difficult to remove without damage by de-
soldering.
If you need to remove an IC it can be gently prised out of the holder with a small flat-
blade screwdriver. Carefully lever up each end by inserting the screwdriver blade
between the IC and its holder and gently twisting the screwdriver. Take care to start
lifting at both ends before you attempt to remove the IC, otherwise you will bend and
possibly break the pins.
Static precautions
DatasheetArchive.com
Datasheets.org.uk
DatasheetCatalog.com
The maximum sinking and sourcing currents for an IC output are usually the same but
there are some exceptions, for example 74LS TTL logic ICs can sink up to 16mA but
only source 2mA.
The diagram shows two ways of combining outputs using diodes. The diodes must be
capable of passing the output current. 1N4148 signal diodes are suitable for low current
devices such as LEDs.
For example the outputs Q0 - Q9 of a 4017 1-of-10 counter go high in turn. Using
diodes to combine the 2nd (Q1) and 4th (Q3) outputs as shown in the bottom diagram
will make the LED flash twice followed by a longer gap. The diodes are performing the
function of an OR gate.
For most new projects the 74HC family is the best choice. The older 4000 series is
the only family which works with a supply voltage of more than 6V. The 74LS and
74HCT families require a 5V supply so they are not convenient for battery operation.
The table below summarises the important properties of the most popular logic families:
A 74LS output cannot reliably drive a 4000 or 74HC input unless a 'pull- Quick links to
up' resistor of 2.2k is connected between the +5V supply and the individual ICs
input to correct the slightly different logic voltage ranges used.
4000 4060
4001 4068
Note that a 4000 series output can drive only one 74LS input. 4002 4069
4011 4070
4012 4071
4017 4072
4020 4073
4023 4075
4024 4077
4025 4081
4026 4082
4028 4093
4029 4510
4030 4511
4040 4516
4049 4518
4050 4520
This family of logic ICs is numbered from 4000 onwards, and from 4500 onwards. They
have a B at the end of the number (e.g. 4001B) which refers to an improved design
introduced some years ago. Most of them are in 14-pin or 16-pin packages. They use
CMOS circuitry which means they use very little power and can tolerate a wide range
of power supply voltages (3 to 15V) making them ideal for battery powered projects.
CMOS is pronounced 'see-moss' and stands for Complementary Metal Oxide
Semiconductor.
However the CMOS circuitry also means that they are static sensitive. Touching a pin
while charged with static electricity (from your clothes for example) may damage the IC.
In fact most ICs in regular use are quite tolerant and earthing your hands by touching a
metal water pipe or window frame before handling them will be adequate. ICs should be
left in their protective packaging until you are ready to use them. For the more sensitive
(and expensive!) ICs special equipment is available, including earthed wrist straps and
earthed work surfaces.
For further information, including pin connections, please use the quick links on the right
or go to 4000 Series ICs.
Quick links to
individual ICs
7400 7432
7402 7442
7403 7447
7404 7486
7405 7490
7408 7493
7409 74132
7410 74160
7411 74161
7412 74162
7414 74163
7420 74192
7421 74193
7427 74390
7430 74393
74HC4017
74HC4020
74HC4040
74HC4060
74HC4511
There are several families of logic ICs numbered from 74xx00 onwards with letters (xx)
in the middle of the number to indicate the type of circuitry, eg 74LS00 and 74HC00.
The original family (now obsolete) had no letters, eg 7400.
The 74LS (Low-power Schottky) family (like the original) uses TTL (Transistor-
Transistor Logic) circuitry which is fast but requires more power than later families.
The 74HC family has High-speed CMOS circuitry, combining the speed of TTL with the
very low power consumption of the 4000 series. They are CMOS ICs with the same pin
arrangements as the older 74LS family. Note that 74HC inputs cannot be reliably driven
by 74LS outputs because the voltage ranges used for logic 0 are not quite compatible,
use 74HCT instead.
The 74HCT family is a special version of 74HC with 74LS TTL-compatible inputs so
74HCT can be safely mixed with 74LS in the same system. In fact 74HCT can be used
as low-power direct replacements for the older 74LS ICs in most circuits. The minor
disadvantage of 74HCT is a lower immunity to noise, but this is unlikely to be a problem
in most situations.
Beware that the 74 series is often still called the 'TTL series' even though the latest ICs
do not use TTL!
For further information, including pin connections, please use the quick links on the right
or go to 74 series ICs.
The CMOS circuitry used in the 74HC and 74HCT series ICs means that they are static
sensitive. Touching a pin while charged with static electricity (from your clothes for
example) may damage the IC. In fact most ICs in regular use are quite tolerant and
earthing your hands by touching a metal water pipe or window frame before handling
them will be adequate. ICs should be left in their protective packaging until you are
ready to use them.
PIC microcontrollers
There are many ICs in the 4000 series and this page only covers a selection, concentrating on the most
useful gates, counters, decoders and display drivers. For each IC there is a diagram showing the pin
arrangement and brief notes explain the function of the pins where necessary. The notes also explain if
the IC's properties differ substantially from the standard characteristics listed above.
If you are using another reference please be aware that there is some variation in the terms used to
describe input pins. I have tried to be logically consistent so the term I have used describes the pin's
function when high (true). For example 'disable clock' on the 4026 is often labelled 'clock enable' but this
can be confusing because it enables the clock when low (false). An input described as 'active low' is like
this, it performs its function when low. If you see a line drawn above a label it means it is active low, for
example: (say 'reset-bar').
DatasheetArchive.com
Datasheets.org.uk
DatasheetCatalog.com
Static precautions
The CMOS circuitry means that 4000 series ICs are static sensitive. Touching a pin while charged with
static electricity (from your clothes for example) may damage the IC. In fact most ICs in regular use are
quite tolerant and earthing your hands by touching a metal water pipe or window frame before handling
them will be adequate. ICs should be left in their protective packaging until you are ready to use them.
Gates
The 4093 has Schmitt trigger inputs to provide good noise immunity. They are ideal for slowly changing or
noisy signals. The hysteresis is about 0.5V with a 4.5V supply and almost 2V with a 9V supply.
Note the unusual arrangement of the power supply pins for these ICs!
The ÷10 output is high for counts 0-4 and low for
5-9, so it provides an output at 1/10 of the clock
frequency. It can be used to drive the clock input
of another 4017 (to count the tens).
The reset input should be low (0V) for normal operation (counting 0-9). When high it resets the count to
zero.
The disable clock input should be low (0V) for normal operation. When high it disables counting so that
clock pulses are ignored and the count is kept constant.
The enable display input should be high (+Vs) for normal operation. When low it makes outputs a-g low,
giving a blank display. The enable out follows this input but with a brief delay.
The ÷10 output (h in table) is high for counts 0-4 and low for 5-9, so it provides an output at 1/10 of the
clock frequency. It can be used to drive the clock input of another 4026 to provide multi-digit counting.
The not 2 output is high unless the count is 2 when it goes low.
The counter may be preset by placing the desired binary number on the inputs A-D and briefly making
the preset input high. There is no reset input, but preset can be used to reset the count to zero if
inputs A-D are all low.
The counter may be preset by placing the desired binary number on the inputs A-D and briefly making
the preset input high, the clock input should be low when this happens.
For normal operation the reset input should be low, making it high resets the counter to zero (0000, QA-
QD low).
Counting to less than the maximum (9 or 15) can be achieved by connecting the appropriate output(s)
to the reset input, using an AND gate if necessary. For example to count 0 to 8 connect QA (1) and QD
(8) to reset using an AND gate.
Also see: 4040 (12-bit) and 4060 (14-bit with internal oscillator).
The reset input should be low for normal operation (counting). When high it resets the count to zero (all
outputs low).
The count advances as the clock input becomes low (on the falling-edge), this is indicated by the bar
over the clock label. This is the usual clock behaviour of ripple counters and it means a counter output
can directly drive the clock input of the next counter in a chain. The clock can be driven directly, or
connected to the internal oscillator (see below).
Output Qn is the nth stage of the counter, representing 2 n, for example Q4 is 24 = 16 (1/16 of clock
frequency) and Q14 is 214 = 16384 (1/16384 of clock frequency). Note that Q1-3 and Q11 are not available.
The reset input should be low for normal operation (counting). When high it resets the count to zero (all
outputs low).
The 4060 includes an internal oscillator. The clock signal may be supplied in three ways:
From an external source to the clock input, as for a normal counter. In this case there should be
no connections to external C and external R (pins 9 and 10).
RC oscillator as shown in the diagram. The oscillator drives the clock input with an approximate
frequency f = 1/(2×R1×C) (it partly depends on the supply voltage). R1 should be at least 50k if the
supply voltage is less than 7V. R2 should be between 2 and 10 times R1.
Crystal oscillator as shown in the diagram, note that there is no connection to pin 9. The
32768 Hz crystal will give a 2Hz signal at the last output, Q14.
Also see: 4020 (14-bit) and 4040 (12-bit), neither have internal oscillators.
Decoders
The store input should be low for normal operation. When store is high the displayed number is stored
internally to give a constant display regardless of any changes which may occur to the inputs A-D.
The 4511 is intended for BCD (binary coded decimal). Inputs values from 10 to 15 (1010 to 1111 in
binary) will give a blank display (all segments off).
Switches
Switch Contacts - pole, throw etc.
Standard Switches - SPST, SPDT, DPST, DPDT.
Special Switches - multiway, key, tilt, reed etc.
Switch Contacts
For example: the simplest on-off switch has one set of contacts (single pole) and one
switching position which conducts (single throw). The switch mechanism has two
positions: open (off) and closed (on), but it is called 'single throw' because only one
position conducts.
Switch Contact Ratings
Switch contacts are rated with a maximum voltage and current, and there may be
different ratings for AC and DC. The AC values are higher because the current falls to
zero many times each second and an arc is less likely to form across the switch
contacts.
For low voltage electronics projects the voltage rating will not matter, but you may need
to check the current rating. The maximum current is less for inductive loads (coils and
motors) because they cause more sparking at the contacts when switched off.
Standard Switches
(ON)-OFF
Push-to-make = SPST Momentary
ON-(OFF)
Push-to-break = SPST Momentary
ON-ON
Single Pole, Double Throw = SPDT
Dual ON-OFF
Double Pole, Single Throw = DPST
Special Switches
Keyswitch
Multi-way Switch
Contrast this multi-way switch (many switch positions) with the multi-
pole switch (many contact sets) described above.
Transistors
This page covers practical matters such as precautions when soldering and identifying leads. The
operation and use of transistors is covered by the Transistor Circuits page.
Function
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 them as
labels!
Connecting
Transistors have three leads which must be connected the correct way round. Please
take care with this because a wrongly connected transistor may be damaged instantly
when you switch on.
If you are lucky the orientation of the transistor will be clear from the PCB or stripboard
layout diagram, otherwise you will need to refer to a supplier's catalogue to identify the
leads.
The drawings on the right show the leads for some of the most common case styles.
Please note that transistor lead diagrams show the view from below with the leads
towards you. This is the opposite of IC (chip) pin diagrams which show the view from
above.
Please see below for a table showing the case styles of some common transistors.
Crocodile clip
Photograph © Rapid Electronics.
Soldering
Transistors can be damaged by heat when soldering so if you are not an expert it is
wise to use a heat sink clipped to the lead between the joint and the transistor body. A
standard crocodile clip can be used as a heat sink.
Do not confuse this temporary heat sink with the permanent heat sink (described below) which may be
required for a power transistor to prevent it overheating during
operation.
Heat sink
Heat sinks
Waste heat is produced in transistors due to the current flowing through them. Heat
sinks are needed for power transistors because they pass large currents. If you find that
a transistor is becoming too hot to touch it certainly needs a heat sink! The heat sink
helps to dissipate (remove) the heat by transferring it to the surrounding air.
For further information please see the Heat sinks page.
Testing a transistor
Use a multimeter or a simple tester (battery, resistor and LED) to check each pair of
leads for conduction. Set a digital multimeter to diode test and an analogue multimeter
to a low resistance range.
The base-emitter (BE) junction should behave like a diode and conduct one way
only.
The base-collector (BC) junction should
behave like a diode and conduct one way only.
The collector-emitter (CE) should not conduct
either way.
If the transistor is OK the LED should light when the switch is pressed and not light
when the switch is released.
To test a PNP transistor use the same circuit but reverse the LED and the supply
voltage.
Some multimeters have a 'transistor test' function which provides a known base current
and measures the collector current so as to display the transistor's DC current gain h FE.
Transistor codes
There are three main series of transistor codes used in the UK:
Choosing a transistor
Most projects will specify a particular transistor, but if necessary you can usually
substitute an equivalent transistor from the wide range available. The most important
properties to look for are the maximum collector current I C and the current gain hFE. To
make selection easier most suppliers group their transistors in categories determined
either by their typical use or maximum power rating.
To make a final choice you will need to consult the tables of technical data which are
normally provided in catalogues. They contain a great deal of useful information but
they can be difficult to understand if you are not familiar with the abbreviations used.
The table below shows the most important technical data for some popular transistors,
tables in catalogues and reference books will usually show additional information but
this is unlikely to be useful unless you are experienced. The quantities shown in the
table are explained below.
NPN transistors
Case IC VCE hFE Ptot Category Possible
Code Structure
style max. max. min. max. (typical use) substitutes
Audio, low
BC107 NPN TO18 100mA 45V 110 300mW power
BC182 BC547
General
BC108C BC183
BC108 NPN TO18 100mA 20V 110 300mW purpose, low
BC548
power
General
BC108C NPN TO18 100mA 20V 420 600mW purpose, low
power
Audio (low
BC109 NPN TO18 200mA 20V 200 300mW noise), low BC184 BC549
power
General
BC182 NPN TO92C 100mA 50V 100 350mW purpose, low BC107 BC182L
power
General
BC182L NPN TO92A 100mA 50V 100 350mW purpose, low BC107 BC182
power
Audio, low
BC547B NPN TO92C 100mA 45V 200 500mW power
BC107B
General
BC548B NPN TO92C 100mA 30V 220 500mW purpose, low BC108B
power
Audio (low
BC549B NPN TO92C 100mA 30V 240 625mW noise), low BC109
power
General
2N3053 NPN TO39 700mA 40V 50 500mW purpose, low BFY51
power
General
BFY51 NPN TO39 1A 30V 40 800mW purpose, BC639
medium power
General
BC639 NPN TO92A 1A 80V 40 800mW purpose, BFY51
medium power
General
TIP29A NPN TO220 1A 60V 40 30W purpose, high
power
General
TIP31A NPN TO220 3A 60V 10 40W purpose, high TIP31C TIP41A
power
General
TIP31C NPN TO220 3A 100V 10 40W purpose, high TIP31A TIP41A
power
General
TIP41A NPN TO220 6A 60V 15 65W purpose, high
power
General
2N3055 NPN TO3 15A 60V 20 117W purpose, high
power
Please note: the data in this table was compiled from several sources which are not entirely consistent!
Most of the discrepancies are minor, but please consult information from your supplier if you require
precise data.
PNP transistors
Case IC VCE hFE Ptot Category Possible
Code Structure
style max. max. min. max. (typical use) substitutes
Audio, low
BC177 PNP TO18 100mA 45V 125 300mW power
BC477
General
BC178 PNP TO18 200mA 25V 120 600mW purpose, low BC478
power
Audio (low
BC179 PNP TO18 200mA 20V 180 600mW noise), low
power
Audio, low
BC477 PNP TO18 150mA 80V 125 360mW power
BC177
General
BC478 PNP TO18 150mA 40V 125 360mW purpose, low BC178
power
General
TIP32A PNP TO220 3A 60V 25 40W purpose, high TIP32C
power
General
TIP32C PNP TO220 3A 100V 10 40W purpose, high TIP32A
power
Please note: the data in this table was compiled from several sources which are not entirely consistent!
Most of the discrepancies are minor, but please consult information from your supplier if you require
precise data.
Structure This shows the type of transistor, NPN or PNP. The polarities of
the two types are different, so if you are looking for a substitute it
must be the same type.
Case style There is a diagram showing the leads for some of the most
common case styles in the Connecting section above. This
information is also available in suppliers' catalogues.
IC max. Maximum collector current.
VCE max. Maximum voltage across the collector-emitter junction.
You can ignore this rating in low voltage circuits.
hFE This is the current gain (strictly the DC current gain). The
guaranteed minimum value is given because the actual value
varies from transistor to transistor - even for those of the same
type! Note that current gain is just a number so it has no units.
The gain is often quoted at a particular collector current I C which is usually in
the middle of the transistor's range, for example '100@20mA' means the gain
is at least 100 at 20mA. Sometimes minimum and maximum values are given.
Since the gain is roughly constant for various currents but it varies from
transistor to transistor this detail is only really of interest to experts.
Why hFE? It is one of a whole series of parameters for transistors, each with
their own symbol. There are too many to explain here.
Ptot max. Maximum total power which can be developed in the transistor,
note that a heat sink will be required to achieve the maximum
rating. This rating is important for transistors operating as
amplifiers, the power is roughly IC × VCE. For transistors
operating as switches the maximum collector current (IC max.) is
more important.
Category This shows the typical use for the transistor, it is a good starting
point when looking for a substitute. Catalogues may have
separate tables for different categories.
Possible substitutes These are transistors with similar electrical properties which will
be suitable substitutes in most circuits. However, they may have
a different case style so you will need to take care when placing
them on the circuit board.
Darlington pair
Other Components
LDR | Thermistor | Piezo transducer | Loudspeaker | Buzzer &
Bleeper | Inductor (coil)
circuit symbol
A multimeter can be used to find the resistance in darkness and bright light, these are
the typical results for a standard LDR:
For many years the standard LDR has been the ORP12, now the NORPS12, which is about
13mm diameter. Miniature LDRs are also available and their diameter is about 5mm.
An LDR may be connected either way round and no special precautions are required
when soldering.
Thermistor
A thermistor may be connected either way round and no special precautions are
required when soldering. If it is going to be immersed in water the thermistor and its
connections should be insulated because water is a weak conductor; for example they
could be coated with polyurethane varnish.
Piezo transducer
Piezo transducers are output transducers which convert an
electrical signal to sound. They require a driver circuit (such as a
Photograph © Rapid Electronics
555 astable) to provide a signal and if this is near their natural
(resonant) frequency of about 3kHz they will produce a
particularly loud sound.
Piezo transducers
require a small current, circuit symbol
usually less than 10mA,
so they can be
connected directly to
the outputs of most ICs. They are ideal for buzzes
and beeps, but are not suitable for speech or music
because they distort the sound. They are sometimes
supplied with red and black leads, but they may
be connected either Photograph © Rapid Electronics way round. PCB-mounting
versions are also available.
circuit symbol
Loudspeaker
Loudspeakers are output transducers which convert an electrical signal to sound. Usually they
are called 'speakers'. They require a driver circuit, such as a 555 astable or an audio amplifier,
to provide a signal. There is a wide range available, but for many electronics projects a 300mW
miniature loudspeaker is ideal. This type is about 70mm diameter and it is usually available with
resistances of 8 and 64 . If a project specifies a 64 speaker you must use this higher
resistance to prevent damage to the driving circuit.
Most circuits used to drive loudspeakers produce an audio (AC) signal which is
combined with a constant DC signal. The DC will make a large current flow through the
speaker due to its low resistance, possibly damaging both the speaker and the driving
circuit. To prevent this happening a large value electrolytic capacitor is connected in
series with the speaker, this blocks DC but passes audio (AC) signals. See
capacitor coupling.
Loudspeakers may be connected either way round except in stereo circuits when the +
and - markings on their terminals must be observed to ensure the two speakers are in
phase.
Correct polarity must always be observed for large speakers in cabinets because the
cabinet may contain a small circuit (a 'crossover network') which diverts the high
frequency signals to a small
speaker (a 'tweeter') because
the large main speaker is poor
at reproducing them.
circuit symbol
These devices are output transducers converting electrical energy to sound. They contain an
internal oscillator to produce the sound which is set at about 400Hz for buzzers and about 3kHz
for bleepers.
Buzzers have a voltage rating but it is only approximate, for example 6V and 12V
buzzers can be used with a 9V supply. Their typical current is about 25mA.
Bleepers have wide voltage ranges, such as 3-30V, and
they pass a low current of about 10mA.
Inductor (miniature)
Buzzers and bleepers must be connected the right way
round, their red lead is positive (+).
Ferrite rod
Photographs © Rapid Electronics
circuit symbol
Inductor (coil)
An inductor is a coil of wire which may have a core of air, iron or ferrite (a brittle material made
from iron). Its electrical property is called inductance and the unit for this is the henry, symbol H.
1H is very large so mH and µH are used, 1000µH = 1mH and 1000mH = 1H. Iron and ferrite
cores increase the inductance. Inductors are mainly used in tuned circuits and to block high
frequency AC signals (they are sometimes called chokes). They pass DC easily, but block AC
signals, this is the opposite of capacitors.
Inductors are rarely found in simple projects, but one exception is the tuning coil of a
radio receiver. This is an inductor which you may have to make yourself by neatly
winding enamelled copper wire around a ferrite rod. Enamelled copper wire has very
thin insulation, allowing the turns of the coil to be close together, but this makes it
impossible to strip in the usual way - the best method is to gently pull the ends of the
wire through folded emery paper.
Warning: a ferrite rod is brittle so treat it like glass, not iron!
An inductor may be connected either way round and no special precautions are
required when soldering.