Everyday Practical Electronics 2014-12
Everyday Practical Electronics 2014-12
Electronic Bellbird
Mimic the bell-like sound of a real Bellbird
• Aoyue 70W CPU controlled multi- • Aoyue 70W desoldering gun ideal
function PCB work station, with hot for removing lead components from
air gun, desoldering gun, soldering through hole plated PCB’s.
iron and fume extractor. • Supplied with spare nozzles and
• Dual port system allows maintenance kit for the gun.
simultaneous use gun and iron • Easy to use dial controls
Part no 10% Off Sale Price Part no 10% Off Sale Price
SI-2703A £203.95 SI-474 £73.84
Our January 2015 issue will be published on Readers’ Services • Editorial and Advertisement Departments 7
Thursday 04 December 2014, see page 72 for details.
Card
Sales Line
We have some fantastic gift ideas for young (and older) enquiring minds
bomech Kit
£18.95 (Code C21-603) 60 LED Multi-Effect LED
Star Kit
£14.48 (Code MK170)
Secure Online Ordering Facilities ● Full Product Listing, Descriptions & Photos ● Kit Documentation & Software Downloads
Soldering Set
£15.95 (Code 749.939) 0-20V, 2A Regulated
Bench Power Supply
The Electronic Kit Specialists Since 1993
£64.95 (Code PSU673)
Robot Kits
These educational Solar Energy
electronic robot kits Experimenter Kit MP3 Jukebox Module
make a great introduc- Hobby Tool Set £21.42 (Code EDU02) £16.87 (Code VM202)
tion to the exciting £25.76 (Code 749.300) Hobby Test Meter
world of robotics. Some
£12.41 (Code 600.006)
require soldering. See
website for details
Digital Echo
USB Tutor Project
20 Piece Electronics Chamber Kit
£54.24 (Code EDU05)
Tool Set £19.72 (Code MK182)
£38.96 (Code 710.368)
Secure Online Ordering Facilities ● Full Product Listing, Descriptions & Photos ● Kit Documentation & Software Downloads
The Microchip name and logo, and PIC are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. All other trademarks mentioned herein are the property of their respective companies.
©2013 Microchip Technology Inc. All rights reserved. DS60001247A. ME1092Eng11.13
£49.55
Resistance upto 20M FREE
Audible Continuity
Inc Delivery* & VAT One per customer, while stocks last offer valid
Quote: EPEUSBP until: end of Nov 2014. Quote item code below.
£117.00 £178.99
Inc Delivery* & VAT Inc Delivery* & VAT
s rs
de
s r to
o si sto sis
Di Re a n
Tr
£77.62 Over 1100 Components
Inc Delivery* & VAT
TRANSMITTERS/BUGS/TELEPHONE
EQUIPMENT
We advise readers that certain items of radio
transmitting and telephone equipment which may
be advertised in our pages cannot be legally used in
the UK. Readers should check the law before buying
any transmitting or telephone equipment, as a fine,
confiscation of equipment and/or imprisonment can
result from illegal use or ownership. The laws vary from
country to country; readers should check local laws.
Stasi Museum
In early 1990, soon after the infa-
mous Berlin Wall came down, Ber-
liners stormed the headquarters of
the hated Stasi, the Ministry for State
Security’s secret police, and the of-
fice of head man Erich Mielke. The
crowd’s mission was to prevent the
destruction of the 111 kilometres of
paper files, 1.7 million photos and
28,000 recordings, which the Stasi East German radios were biased towards East European stations – Warsaw, Moscow, Prague...
had accumulated over 40 years, and
feared would be used as evidence There are apocryphal stories of East an innocent-looking Thermos flask
against them. Berlin school teachers trying to trick houses a small camera.
The crowd partly succeeded in sav- children into revealing what their Totschka was a miniature camera
ing the contents, and later the utility parents were watching, by asking the based on a Minox; it was worn by
concrete building (on Ruschestrasse) class to draw the TV test card they the KGB to take pictures through a
later became the Stasi Museum with saw on their home TV. Stasi office tie pin. The Tessina camea was made
some fascinating examples of early staff were given domestic valve ra- in Switzerland and hidden in a shop-
spy technology. But explanation of dios, with marks on the dial for ap- ping bag, to take pictures through a
the exhibits was sketchy and most- proved East German radio stations. hollow rivet. A sub-miniature Tessi-
ly in German. The Museum is now Stasi chairs were designed to cap- na was small enough to hide in a wal-
closed for improvement and should ture samples of body smell when an let, with the lens seeing out through
re-open again in 2015 – hopefully unsuspecting suspect was invited to a perforation in the pocket for coins.
with more and better information in sit down. Samples were bottled and Hugely powerful infra-red radiators
English for world visitors. used to set dogs on the trail of the were hidden behind plastic panels of
There are politically correct ‘disco- suspects after they left the building. a car door, to illuminate surveillance
theque regulations’ for ‘music pro- targets. Cal-Zeiss-Jena developed an
pagandist’ disc jockeys playing LPs Cameras autofocus camera for the Stasi. It
made by communist state record The museum has many spy cameras, used a laser rangefinder and with in-
company Amiga. I still have one, with large film roll containers for au- fra-red lighting had a range for night
which I bought in East Berlin while tomated shooting over long surveil- photography of 20 metres. The sys-
the city was divided; it was pressed lance periods, often with early infra- tem cost a huge 215,000 Marks and
from very poor quality vinyl and red illuminators for night vision. even the Stasi could only afford to
sounds like sandpaper. Before the crowd stormed the build- commission 25 of them.
Listening to Western radio or ing the Stasi staff desperately tried to
watching Western TV was forbidden, destroy their large stock of everyday Secret recorders
but hard to control because the Wall objects, which had been modified to Recorders were built into indus-
could not stop radio waves. Colour hold hidden cameras and recorders. trial strength bodies. Microphones
TV was watchable in monochrome. The remains remain – for instance, were hidden in hollow railway track
8 Everyday Practical Electronics, December 2014
Blue is the winner! a challenge for three decades, but Sheffield computing
they succeeded where everyone else
The Royal Swedish Academy of had failed. Their inventions were
tornado
Sciences has decided to award the revolutionary. Incandescent lighting
Computers of the future could be
Nobel Prize in Physics for 2014 to lit the 20th century; the 21st century
built from ‘magnetic tornadoes’, ac-
Isamu Akasaki, Hiroshi Amano and will be lit by LEDs.
cording to new research into nano-
Shuji Nakamura ‘for the invention of White LED lamps are long-lasting
technology at Sheffield University.
efficient blue light-emitting diodes and energy-efficient. They are con-
Magnetic materials form the basis
which has enabled bright and ener- stantly improved, getting more ef-
of most hard disc drives, but now the
gy-saving white light sources’. ficient with higher luminous flux
team from the University’s Faculty of
In the spirit of Alfred Nobel the (measured in lumen) per unit elec-
Engineering has been investigating
Prize rewards an invention of great- trical input power (watts). The most
whether they could also take on the
est benefit to mankind; using blue recent record is just over 300lm/W
role of a CPU.
LEDs, white light can be created in (16lm/W for regular light bulbs and
Using computer simulations, the
a new way. When the inventors pro- 70lm/W for fluorescent lamps). One
team have shown it is possible to
duced bright blue light beams from fourth of electricity consumption
create magnetic ‘logic gates’, the fun-
their semi-conductors in the early is used for lighting purposes, so the
damental building blocks of a CPU,
1990s, they triggered a fundamental LEDs contribute to saving the Earth’s
using magnetic materials.
transformation of lighting technol- resources. Materials consumption
Dr Hayward says: ‘In wires of mag-
ogy. Red and green diodes had been is also diminished because LEDs
netic material, two hundred times
around for a long time but without last up to 100,000 hours, compared
thinner than a human hair, magne-
blue light, white lamps could not be to 1,000 for incandescent bulbs and
tism can form into swirling ‘torna-
created – the blue LED had remained 10,000 hours for fluorescent lights.
does’, known as magnetic vortex do-
main walls. In our simulations, we
use vortices where the magnetism
turns clockwise to represent 0 and
vortices where it turns anticlockwise
to represent 1, allowing us to encode
binary data. The vortices are then
flowed through the wires using, and
interacted with, carefully defined
features in the wires that recreate the
function of logic gates.’
The researchers now plan to build
experimental prototypes of the logic
gates, and to investigate whether they
can be made smaller and to operate
faster – critical steps in developing
Light out vs energy in – image © Johan Jarnestad/The Royal Swedish Academy of Sciences the concept into a usable technology.
Everyday Practical Electronics, December 2014 9
PortaPAL-D – Part 1
Powerful, Portable
Public Address by John Clarke
Loudspeaker System
With battery operation, high efficiency loudspeakers and a class-D
amplifier, the PortaPAL-D PA system has enough power to blow your
socks off! It’s ideal for busking, sports events, meetings or anywhere
you need a powerful, portable PA system.
W
hile we have published other easily set you back more than five or Sealed enclosure
public address loudspeaker six hundred pounds! The cabinet includes an open section
systems, we felt it was time The PortaPAL-D is ruggedly housed to mount the PortaPAL-D electronics,
for something that really used up-to- in a timber cabinet measuring 620 × but the rest of the box is an infinite
date ideas. For example, technology 350 × 330mm and weighing about baffle design. This has advantages
has marched ahead with efficient 20kg. It is covered in speaker car- over an open-back design in that the
class-D amplifiers, along with the pet with corner protectors, to guard sealed cabinet provides damping of
advent of lithium batteries, which are against damage from bumps and the speaker cone at low frequencies,
much more energy dense. roadie use. preventing the cone from being over-
Our new PortaPAL-D uses the The two loudspeakers are mounted driven with high-power bass signals
CLASSiC-D Amplifier published in behind protective steel grilles that (or when accidentally dropping a
November and December 2013, along are themselves protected by being microphone onto the floor!).
with its matching speaker protector recessed into the box. Another advantage is that the mi-
from the same months and the DC-DC On the rear is the main control crophone just needs to be positioned
Converter published in May 2014. panel, again recessed into the box for behind the front edge of the speaker
With that combination we have a protection against damage. cabinet to minimise acoustic feedback.
high-power amplifier that can be run A top hat socket, for use with a Two XLR sockets are provided for
from a 12V battery. One year later, we speaker stand and a carry handle are balanced microphones, with one
have added the preamplifiers, mixer, included. channel providing phantom power,
tone controls and power supervision The cabinet and chassis for the elec- if required. Both inputs can be used
necessary for the PortaPAL-D to func- tronics can be made using standard with dynamic microphones. Guitar
tion properly. tools. And you need not worry about input is via a standard 6.35mm jack
We are using two 8Ω 200mm loud- small imperfections while building the socket, while RCA stereo sockets mix
speakers (with concentric tweeters) cabinet since these will be covered by left and right line inputs into a mono
in parallel to handle the full 100W the carpet. The result will be a PA box signal. Each input has its own level
available from the amplifier. Buying that sounds great and looks profession- control; bass and treble tone controls
the commercial equivalent could quite ally finished. are also provided.
PortaPAL-D features
• Class-D low-distortion power
amplifier delivering up to 100W
to the loudspeakers
• Portable 12V Li-Po battery-
powered amplifier with charger
• Twin 200mm loudspeakers with
integral tweeters
• Two microphone inputs (4.5mV)
• Guitar input (50mV)
• Line input (1V) and output
• Individual level controls
• Bass and treble controls
• Standby power-down to
conserve battery power
• Low battery shutdown
• Standby indication
• Charger indication
• Thermostat-operated air
circulation fan
• Rugged cabinet with carpet, corner
protectors and speaker grilles
• Top hat included for use with
speaker stands
PROTECT
LK4
CLASSIC-D LOUDSPEAKER 8
SIGNAL SPEAKER COAXIAL
IN AMPLIFIER OUT IN PROTECTOR OUT
MIXER AND (NOV/DEC 2012)
OUT SPEAKERS
(NOV/DEC 2012)
PREAMPLIFIER LK3
+35V,
0V
SHUTDOWN
–35V +35V
over conventional class-AB amplifiers, A small fan is switched by a ther- switches off the DC-DC Converter and
which are nowhere near as efficient mostat when the amplifier heatsink so powers down the system.
and generate significant heat. reaches 50°C, circulating cooling air. The power supervision circuitry also
Another reason is that the amplifier controls the charging of the battery.
has proven reliable and has low levels Battery-saving auto shutdown While power is applied, the charger
of distortion and noise with extra fea- To conserve battery energy when not continually measures the voltage of
tures such as temperature cut out and actually being driven, the PortaPAL-D each cell, ensuring each is not over- or
over-current protection. has a two-stage shutdown. under-charged.
The CLASSiC-D Amplifier is pow- First, after a short period of no Typically, the lithium-polymer cell
ered by a DC-DC converter, delivering signal, the amplifier module is shut balancing leads would connect directly
±35V DC supply from a 12V supply. down. This is controlled in part by to the charger. However, this could
With this, it can supply up to 100W the power supervision section. In the mean the cells would discharge via the
into 4Ω for short periods and 50W on second stage, after a longer period of no charger over time and possibly flatten
a continuous basis. signal, the power supervision circuitry the battery. To avoid this, we connect
(CON8)
& SOCKET
GAIN VR1
IC1a BASS & LINE
TREBLE OUTPUTS
IC3a
CON11
CON3
IC5b
MIC 2 IN
LEVEL + GAIN
GAIN VR2
IC1b
VR6 CON9
IC3b SIGNAL
OUT
GUITAR MIXER
LEVEL + GAIN
INPUT STANDBY1
GAIN IC5a
VR3
IC2 TO CLASS D
SIGNAL DETECTOR
IC4a
RELAY4 AMPLIFIER
IC6a, D1, D2, IC6b (CON12) ‘SHUTDOWN’
CON10
CON8
L LEVEL
DELAY
VR4 Q5
Q3, IC7, Q4 G
R 10-WAY IDC
CONNECTORS
S D DC-DC
CONVERTER
POWER STANDBY2
LED3 LED2 +12V SWITCHER
Here’s a view of
the electronics
module in its
metalwork,
removed from
the PortaPAL-D
speaker box.
A commercial
charger is
incorporated
because it is
perfectly suited
to the Li-Po
battery pack we
used and will
result in longest
battery life.
+12V 4 4 +12V
+12V
10k*
10F* 10k* 10k* 100nF 10F 2 POWER 10k
150pF GND 5 8
* THESE COMPONENTS 7
FOR PHANTOM POWER 22k IC4b
6
MIC1 10k 100F
INPUT 4
1 2 47F FB°
3 1k TP1
2 8
150 1
1 MIC1 3 +Vref
470pF FB° 1k IC1a +Vref
3 OUT
10F
CON1 1 MIC1
47F 6 SIGNAL MIC1
GND LEVEL
10k 10k 1F
IC1: LM833 #
150pF 22k 2
POWER
+Vref 3 GND VR1
°FERRITE BEADS Vref 10k
6 LOG
150pF SIGNAL
22k GND # POT BODIES
MIC2 WIRED TOGETHER
INPUT WITH 330nF TO
47F FB° 1k TP2 EARTH
1 2 5
3
150
7 5 MIC2
470pF FB° 1k IC1b 10F
6 OUT 5 MIC2
CON3 MIC2
4 LEVEL
CON2 47F 1F
22k (6-PIN SIL CON11 #
10k 10k HEADER) (6-PIN SIL
HEADER
150pF SOCKET) VR2
10k
CON8 LOG
+12V 6 CON10
+12V 6
+12V +12V
+12V
150 CHASSIS
+Vref
IC5: TL072
10nF
15nF
100pF
BASS 18k
30k
BOOST CUT
10F 47pF OUTPUT TO
3 8 18k VR5 100k LIN
15k NP AMPLIFIER
1 2 1k 8
IC3a 1F 6 CON9
10F
2 1 7
IC5a IC5b
3 NP 5
TP4
100k 10k 4 1.5nF
TP7 10k
30k BOOST CUT 10k
1k 10 LK1
330pF
VR6 100k LIN 10k
x11 AMPLIFIER TREBLE
+Vref 10F +Vref
47k
IC3: LM833
MIXER TONE CONTROLS TO POINT A
+Vref
5 IN POWER
15k 150 SUPERVISION
7
IC3b SECTION
6
100k (SIGNAL
4
TP5
Fig.4: from the audio input boards, signal is fed to level DETECTION)
control pots, more amplification and thence to the mixer and tone
10k
control stages. The ouput from this goes to the CLASSiC-D digital Amplifier.
microphone impedance, also roll off Guitar input resistance, you might wonder why we
the high frequencies. The guitar input stage comprises IC2, a have used such a large input coupling
Ferrite beads in the 1kΩ input resis- TL071 FET-input op amp connected as capacitance. After all, to maintain a flat
tors help to reduce RF pickup, while a non-inverting amplifier with a gain of response to below 20Hz, all you need
the use of 1% resistors in the balanced two for mid-band frequencies. is an 8.2nF input capacitor. The reason
microphone circuits ensures good rejec- The guitar signal is coupled via two is to minimise noise, which occurs
tion of common-mode signals such as 47µF capacitors in series. These are when op amp IC2 sees as low a source
mains hum. equivalent to a non-polarised capaci- impedance as possible.
The unbalanced outputs are each fed tor and are included to cater for inputs Output from IC2 is coupled to the
to level potentiometers VR1 and VR2 with a positive or negative bias voltage, ‘guitar’ level control, VR3, via a 150Ω
via a 150Ω stopper resistor and 10µF that goes beyond the voltage bias set resistor and 10µF capacitor. The signal
AC coupling capacitor. The signals by the Vref (at half supply). is then fed to op amp lC4a, which is
are then applied to op amps IC3a and We have specified the high load identical to IC3a and IC3b.
IC3b, both of which have a gain of 11. resistance of 1MΩ to ensure optimum
This means that the maximum value high frequency response with the Line signal
of gain for microphone signals before relatively high inductance of typical Stereo line inputs (eg, from a CD
the mixer is 242. guitar pickups. With such a high load player or MP3 player) are mixed to a
+12V
10 +12V’
FROM IC5b A CLASS-D
PIN 7 IN 100nF 10F STANDBY1 RLY4 AMPLIFIER
TONE LED1 SHUTDOWN
K 100F
CONTROL
SECTION 470k K
D3 CON12
IC6: LM358
4.7k A
TP9 D2 470k 220F
3 8 1N4148
A 1k 1F
1 A K 6 8 4
IC6a 7
2 7
IC6b 3
4 5 1k
6 IC7
7555 5
470k 470k 2
K
10k C
D1 B Q3 1
1N4148 10F 1M BC337
22pF 10k K
A E
1k C D4
B Q2 1N4148
100k
BC337
E A
10F SIGNAL SCHMITT 10k DELAY
DETECTOR TRIGGER
CON13
DC-DC 4
CONV +
MAIN 5 L1 16H
SUPPLY
– F1
(CON13)
6 2 1
+
BATTERY 7
– 10A
8
CHARGER + CHASSIS S1
OUTPUT 9 o
– RLY1 50
270k
10 THERMAL
CHARGER + POWER
SUPPLY 11
CUT-IN
K
OUT – (NO)
12 D6
CHARGER + 1N5404
2
SUPPLY 13 H
IN – RLY2 A +
2.2M
12V
– + FAN
3
T
K –
1 270k
D5
CELL SENSING
1N4004 4
Li-PO
A RLY3
2 3-CELL
BATTERY
3 3
Fig.5: here’s where the PortaPAL-D excels over earlier mixer designs – it uses a Li-Po battery and a commercial charger to
give much more ‘bang for buck’ when it comes to portable use. For a full explanation, see the accompanying text.
mono signal with 2.2kΩ resistors and sociated resistors and capacitors. IC5b’s will sit at about half the battery voltage,
fed to potentiometer VR4 via a 2.2µF output signal is fed to three separate with the audio signal rising and falling
coupling capacitor. places: the line output via RCA and about this DC voltage.
Signals from all four input sources 6.35mm jack sockets; the signal detec-
are mixed via 15kΩ resistors for the tion stages involving IC6a; and the input Shutdown
mic and guitar signals, and a 10kΩ to the CLASSiC-D Power Amplifier. As noted above, we have incorporated
resistor for the line signal in invert- All of the op amps in the circuit used signal detection into the circuit to shut
ing amplifier IC5a. This has a gain of as signal amplifiers are biased via the down the power amplifier in order to
minus two for the first mic and guitar Vref line, which is at half supply (about reduce current consumption when
signals, with slightly higher gain for +6V). This is derived from the +12V no signal is present. Op amp IC6a is a
the line input signals (due to the 10kΩ line by a voltage divider consisting non-inverting amplifier with a gain of
resistor to compensate for a slight gain of two 10kΩ resistors with the centre 471, set by the 470kΩ and 1kΩ feed-
loss in the resistive mixing of the stereo point bypassed by a 100µF capacitor. back resistors. The 22pF capacitor rolls
line inputs). The bypassed supply is then buffered the gain off above 15kHz, while the
IC5a drives the tone control stage by op amp IC4b to provide the Vref 10µF capacitor in series with the 1kΩ
comprising IC5b, VR5 and VR6 and as- line. All these biased op amp outputs resistor rolls off signals below 15Hz.
input of IC6b is set at +2.1V (ignor- This removes power from the rest of
ing the effect of the 470kΩ feedback the circuit, thus preventing the battery
+12V’ resistor) using the 470kΩ and 100kΩ being discharged any further.
A
STANDBY2 +12V
resistors across the 12V supply. Pin 2 provides hysteresis, stopping
LED2 When power is first applied to the the circuit oscillating back and forth
K circuit, the 10µF capacitor between the around the 1.15V threshold. While the
10k Q5 12V supply and the inverting input voltage at pin 3 stays above 1.15V, pin
4.7k IRF9540 to IC6b is initially discharged and 2 is effectively connected to the sup-
S
G
therefore pulls pin 6 low, causing the ply rail, thus shorting out the 270kΩ
10k output (pin 7) to be high. This turns resistor to 12V.
D
on transistor Q2, so relay 4’s contacts However, if the pin 3 voltage drops
close and the CLASSiC-D Amplifier is below 1.15V, then pin 2 is effectively
10k C
Q4
shut down. open circuit. So that extra 270kΩ re-
B
BC337 At the same time, transistor Q3 is sistance is added to the voltage divider,
A E turned off, so IC7’s inputs (pins 2 and which drops the voltage at pin 3 even
POWER
LED3 6) are high due to the 220µF capacitor lower (just over 1V with a 10.5V sup-
(CON13) 3
K connecting to the 12V supply being ply). Therefore, the battery needs to be
TO DC-DC
CONVERTER initially discharged. The output (pin charged to more than 11.6V before the
4.7k SWITCHED 3) is low, so Standby 2 LED (LED2) is output (pin 4) goes low, allowing the
INPUT
lit. The low output holds both Q4 off MOSFET to power the circuit again.
and MOSFET Q5 off. This removes
power from the DC-DC Converter Power
+12V switch and as a result the CLASSiC-D Power from the battery passes through
Amplifier is off. the 10A fuse, F1 and power switch S1.
2200F
25V 1F When an audio signal is detected by Inductor L1 and the 2200µF capacitor
MMC
LOW
ESR S D +12V’ IC6b, the input (pin 6) will go above filter the supply, helping prevent DC-
the 2.1V at pin 5 so the output (pin DC Converter switching noise from
Q1
G IRF9540 7) goes low, switching off Q2 and the entering the supply for the audio op
8
V+ 100k relay. Diode D3 quenches the back- amps. Additional filtering is provided
2 100k
HYST EMF of the collapsing relay coil field. with the 10Ω resistor and the supply
IC8
OUT
4 There is still a low current flow decoupling capacitors on the 12V rail.
MAX8212
3 through the relay coil and Q3 – not Note that the high current supply
THRESH
GND enough to pull the relay in but enough required by the DC-DC Converter is
5 to turn Q3 on. This provides a path to tapped off before the switch. Only
LOW VOLTAGE SHUTDOWN ground (via the 1kΩ resistor) which the low power switching current to
BC337 charges the 220µF capacitor. control the DC-DC Converter is at the
B
The now-low input to the 7555 output to Q5.
LEDS
causes its output (pin 3) to go high, Reverse polarity protection is via
E C switching on the power LED (LED3) diode D6: this will blow the fuse if
K
A IRF9540 and transistor Q4 and switching off the supply polarity is inadvertently
1N5404 the Standby 2 LED. MOSFET Q5 also connected back to front.
D
G switches on and the DC-DC Converter
A K D
S is powered, in turn powering the Charging
CLASSiC-D Amplifier. Three relays are used to switch in
the charger connections. The sup-
Low battery ply to the charger is tapped at pins
The amplified signal from IC6a is Regardless of the battery type, it is im- 10-13 of CON13 so that when power
then fed to a diode pump circuit con- portant that it not be over-discharged is available, relays (Relay1, Relay2
sisting of diodes D1 and D2 and the and permanently damaged. While the and Relay3) will be switched on. The
1µF and 10µF capacitors connected lithium-polymers types used in the charger output is switched to the bat-
to them. The peak level of the signal PortaPAL-D are better in this repect tery positive via relay 1 contacts while
from IC6a will be stored in the 10µF than SLAs, care still needs to be taken the cell balancing outputs from the
capacitor, which is continuously but to avoid damage. battery are connected to the charger
slowly discharged via the 1MΩ resis- Low battery voltage is detected us- via relay 2 and relay 3 contacts.
tor across it. ing IC8, a micropower voltage monitor When there is no power applied to
IC6b, connected as a Schmitt trig- that compares the voltage at pin 3 to the charger input, the relay contacts
ger inverter, monitors this voltage. A an internal 1.15V reference. With a open and completely disconnect the
470kΩ resistor between pin 5 and pin 12V supply, the voltage divider across charger from the battery.
7 applies positive feedback to give IC8’s input will ensure that pin 3 is
hysteresis. This makes the comparator always above 1.15V. However, as the Reproduced by arrangement
output switch cleanly between high battery discharges, this voltage will with SILICON CHIP
and low, and prevents oscillation at drop. Below 10.5V, IC8’s output (pin 4) magazine 2014.
the switching threshold. The inverting will go high, turning off MOSFET Q1. www.siliconchip.com.au
Did Neanderthals really create the hashtag? Why do people call this symbol ‘hash’, ‘hatch’,
‘pound’ or ‘square’? And where does the ‘octothorpe’ fit in? As we approach the winter season
of misrule, Mark Nelson indulges in a spot of mischievous (but genuine) history.
In A reCENT ISSUE oF THE In Britain, computer people tend developed the first stored program-
excellent New Scientist magazine, to call this ‘hash’, ‘hatch’ or ‘gate’. controlled switching system (it was a
there was a fascinating article ‘Hash’ is almost certainly a corruption PBX). One of the first installations was
entitled ‘Neanderthals drew first of ‘hatch’, a word meaning a gate, at the Mayo Clinic. This PBX had lots
#hashtags’. Following the discovery grating or fence. All three of these are of modern features (call forwarding,
of some scratches on the floor of a made from a combination of vertical speed calling, directed call pickup),
cave in Gibraltar, experts reached the and horizontal bars, so it’s easy to some of which were activated by using
conclusion that they were the work of a see how the meaning was extended the ‘#’ sign.
Neanderthal, made purposefully more to a figurative representation as well.
than 39,000 years ago. The markings When the symbol was introduced The originator revealed
look like the grid for a game of noughts onto telephone keypads, the comms A Bell Labs supervisor, Don
#
and crosses (without any noughts or industry realised that that the word MacPherson, went to the Mayo Clinic
crosses), prompting Catherine Brahic, ‘hash’ was not widely known outside to train the doctors and staff on how to
the article’s author, to muse whether computing circles, so here it was use the new features on this state-of-
this intentionally made artifact was termed ‘square’. On some keypads it the-art switching system. During one of
an idle doodle, a game of Stone Age is actually shown as a square, with no his lectures he felt the need to come up
tic-tac-toe or the first evidence of external projections. with a word to describe the ‘#’ symbol.
Neanderthal art. Don also liked to add humour to his
work. His thought process, which took
From the Stone Age to the place while at the Mayo Clinic while
present day giving lectures, was as follows:
The age and authenticity of the l There are eight points on the symbol,
scratch marks are not in dispute, as so ‘octo’ should be part of the name
the cave in which they were found l We need a few more letters or
is littered with Neanderthal tools. another syllable to make a noun, so
Of course, Twitter didn’t exist then what should that be?
(well it did, but only birds used it) so l Don MacPherson at this point in his
it’s unclear why our friend Ug made life was active in a group that was
this mark. According to Catherine trying to get Jim Thorpe’s Olympic
Brahic, ‘some say they are abstract medals returned from Sweden.
symbols, bolstering the notion that He figured that the phrase ‘thorpe’
Neanderthals were capable of subtle would be unique, and people would
symbolic thought. Others remain to not suspect he was making the word
be convinced.’ True, but the symbol up if he called it an ‘octothorpe’.
is visually rather satisfying, which Enter the octothorpe
is no doubt why we still use it today The technical term for this symbol is When Don returned to Bell Labs in
on telephone keypads, computer ‘octothorpe’. In my innocence, I knew Holmdel, he began using the term
keyboards and elsewhere. that ‘octo’ was classical Greek for ‘octothorpe’ in memos and letters.
eight and assumed that ‘thorpe’ must The term was picked up by other Bell
Pound or hash? be the Greek word for something Labs people and used mostly for the
Ask Americans for the name of this sharp and spikey – wrong! A Usenet fun of it. Some of the documents that
symbol and most of them will call it contribution written by Ralph Carlsen used the term ‘octothorpe’ found their
the ‘pound sign’ or ‘number sign’. Over explains where the name really came way to Bell Operating Companies and
there, ‘#’ is used where we would put from. Over to Ralph... other public places. The rest is history.
‘No.’, short for number. But it is also Around 1961, two Bell Labs guys
used for pounds weight. If you study in data communications engineering …and back to hashtags
pressure gauges on Victorian steam (Link Rice and Jack Soderberg) toured Despite this long and noble history,
boilers (say, at the Kirkaldy Testing the USA talking to people who were I suspect many people now know ‘#’
Museum in Southwark) you will often thinking about telephone access to simply in terms of hashtags. To quote
see the symbol used as shorthand computers. They asked about possible the Oxford Dictionaries website,
for ‘lb’. At rural street markets in applications, and what symbols should ‘On social networking sites such as
Germany, where they still sell fruit by be used on two keys that would be used Twitter, it’s attached to keywords or
the pound (half a kilo), you will see exclusively for data applications. The phrases so as to identify messages
‘#’ written on the price tags adorning primary result was that the symbols on a particular topic (eg, #volcano or
apples and plums. Imagine the letters should be something available on all #Iceland). These keywords or phrases
‘lb’ written in sloping copperplate (US) standard typewriter keyboards. are known as hashtags.’ And according
handwriting with no gap between the The ‘*’ and ‘#’ were selected as a result to Wikipedia, ‘The first use of the term
‘l’ and the ‘b’, then you have a quick of this study, and people did not expect ‘hash tag’ was in a blog post by Stowe
way of writing ‘lb’, of which ‘#’ is to use those keys for voice services. Boyd, ‘Hash Tags = Twitter Groupings’,
merely a simplified version. Then, in the early 1960s, Bell Labs on 26 August 2007.’
S1
+3V
POWER
3V
10k 1 µF 1 µF BUTTON
MMC MMC CELL
4 14
10k
MCLR/RA5 Vdd IC2c 14 IC2: 74HC14
9 5 6 1 2
RB3/PWM
λ LDR1 470Ω IC2a
18
RA1 IC2e
240Ω 3 4 11 10 PIEZO
10 17 56nF
RB4 RA0 TRANSDUCER
FREQUENCY IC2b
SET 1
120Ω IC2d
RA2 1k
S2 13 12 9 8
62Ω
11 IC2f 7
RB5
6 3
RB0 RA4/AN4
LED1 A LED2 A LED3 A LED4 A LED5 A LED6 A LED7 A
IC1 λ A λ A λ A λ A λ A λ A λ A
PIC16LF88–I/P K K K K K K K
λ λ λ λ λ λ λ
12 K LED8 K LED9 K LED10 K LED11 K LED12 K LED13 K LED14
RB6
13
RB7
470k 16
RA7
15
RA6
2
RA3
7
RB1
8
RB2
Vss
5
LEDS
K
SC BELLBIRD
BELLBIRD
2013
A
Fig.1: the circuit uses microcontroller IC1 to generate a PWM waveform at its pin 9 and this feeds Schmitt trigger inverters
IC2a-IC2f which in turn provide complementary (push-pull) drive to a piezo transducer. IC1 also drives LEDs1-14 which
are arranged in seven paralleled pairs to provide a chaser effect around the outside of the bell.
prevents the bell tones from sound- few sundry bits. A piezo transducer output at pin 9. Twelve other outputs
ing as though they are electronically reproduces the Bellbird sounds. of IC1 are used to drive the LEDs.
generated. A power switch at the top of Inevitably, one of the ICs is a micro- The PWM output is set to run at
the PCB allows the unit to be switched controller (IC1). This is programmed around 2.8kHz with some variation,
off any time you want. to produce the Bellbird sounds via and its duty cycle is varied to alter
As well as producing realistic bell its pulse-width modulation (PWM) the volume. With a 50% duty cycle,
sounds, the unit drives 14 LEDs which
are arranged around the periphery of
the PCB. Whenever a bell sound is pro- Features and specifications
duced, these LEDs chase downwards
on either side of the bell and then along Features
the base to the centre. The six LEDs
along the base then chase from the
• Unit produces lifelike Bellbird sounds
centre to either side and then back to • Bell-shaped PCB – LED chaser around outside; LEDs chase on bell sounds
the centre again, to simulate the final • Constant LED brightness as cell voltage varies
‘ringing’ of the bell. • Bellbird sounds cease in darkness and low ambient light levels
So, unlike a real Bellbird which is
difficult to spot in the forest canopy,
• Low current drain plus power on/off switch
our unit is highly visible. It makes a Specifications
great novelty project and is ideal as a Power supply: 3V lithium cell
Christmas decoration. Current drain: zero when switched off, <1µA in darkness (100nA measured), typi-
cally 1.3mA average in light.
Circuit details
Refer now to Fig.1 for the circuit of Cell life: 180 days expected with one hour per day usage
the Bellbird. There’s not much to it – Bellbird tone: adjustable over a ±12% range in 0.375% steps
just two ICs, 14 LEDs, an LDR and a
DRIBLL E B
A A
S1
08112131
BELLBIRD
LED1 LED8
1k
+
LED2
LED9
To Piezo
To Piezo
A A
1 µF 56 nF
IC 2 74HC 14
HOLDER
LED1 0
LED3
CE LL
10k
47 0
A
BUTTON
A
NO TE: BUTTON
CE LL HOLDER IS
240 PIEZO1 62 UN DER PC B
LDR1 1 µF
LED1 1
LED4
10k
IC 1 PIC1 6LF88-I/ P A
120
S2
Fig.2: follow this parts layout diagram to assemble the parts onto the bell-shaped PCB. The piezo transducer is mounted
on M3 × 9mm nylon spacers, while the button cell holder is mounted on the back of the PCB (see photo). Note that it’s
a good idea to mount the LEDs 5mm proud of the board so that they aren’t obscured by other parts.
the volume is at its maximum, and as are at 0V and vice versa. Because the ‘cleaner’ sinewave signal is fed to the
the duty cycle is reduced, the volume two sets of outputs alternately swing piezo transducer.
falls. The duty cycle ranges from 50% to 3V, this gives a 6V peak-to-peak
down to zero, with the minimum vol- drive (actually >5V peak-to-peak) for LED chaser
ume set at 0.2%. the piezo transducer. LEDs 1-14 are driven by IC1 as seven
The piezo transducer is driven via In effect, this doubles the output sets of paralleled pairs. In practice,
IC2, a CMOS hex Schmitt trigger. IC2c voltage drive compared to just using they are arranged on the bell-shaped
buffers and inverts the PWM output the PWM signal from IC1 as a single PCB to give symmetrical lighting either
from IC1, while paralleled stages IC2a output, with the second terminal of side of centre. For example, LED1 is
and IC2b re-invert the resulting signal the transducer connected to ground. positioned at the top left of the PCB,
to drive the top of the piezo transducer. That arrangement would provide a while its paralleled twin LED8 is po-
IC2f also inverts the signal from peak signal of less than 3V to the piezo sitioned at top right.
IC2c. Its pin 12 output in turn drives transducer. As shown on Fig.1, the LED anodes
IC2d and IC2e so that their outputs Note that IC2d and IC2e drive the are commoned and driven by IC1’s
are inverted compared to those from lower piezo transducer connection
IC2a and IC2b. This allows the piezo
transducer to be driven in comple-
via a filter consisting of a 1kΩ resis-
tor and 56nF capacitor. This rolls Table 2: Capacitor Codes
mentary fashion with a nominal 6V off the response above 2.8kHz and
Value µF Value IEC Code EIA Code
peak-to-peak. thus removes the harmonics from the
Basically, when IC2a and IC2b’s out- square-wave outputs of the Schmitt 1µF 1µF 1u0 105
puts are at 3V, IC2d and IC2e’s outputs triggers. In effect, it ensures that a 56nF 0.056µF 56n 563
Inevitably, some people will want to lost some of the subtle echo effects, Assembly
make this project louder and want to which make the Bellbird sound much Building this project is easy and
know what modifications are needed more realistic. should take you no more than 45
to achieve this. Hence, after the circuit Another way of making the sound minutes. There are no surface-mount
had been fine-tuned to give the most louder would be to increase the supply parts (SMDs) and all parts are installed
realistic Bellbird sounds, we looked voltage to 4.5V by substituting a 3 × AAA on a PCB, which is available from the
at whether the low-pass filter in series cell (alkaline) battery instead of the 3V EPE PCB Service, coded 08112131 and
with the piezoelectric transducer could button cell. Note that this will increase measuring 91 × 73mm overall. This is
be further tweaked to make it louder. the peak signal voltage to about 7.5V. bell-shaped and will already be cut to
To that end, we reduced the 1kΩ Last, can the signal be fed to an shape if you ordered the PCB from the
current-limiting resistor to 220Ω and external amplifier? The answer is ‘yes’ – EPE Online Shop.
increased the associated filter capacitor but be aware that the signal has quite a Fig.2 shows the parts layout dia-
from 56nF to 220nF (the piezo trans- wide dynamic range and the peak signal gram. As you can see, all parts mount
ducer has a self-capacitance of 38nF). amplitude with a fresh 3V cell will be be on the top of the PCB except for the
The result was that it was slightly in excess of 5V (or 7.5V peak with a 4.5V cell holder, which mounts on the back.
louder, but we judged that the sound supply), so if the volume control is too Begin the assembly by installing
was a little more ‘clicky’ (because of advanced, the amplifier and perhaps the resistors. Table 1 shows the colour
the stepped modulation) and had also the loudspeaker will be overloaded. codes, but we also recommend using
a digital multimeter to measure each
resistor, just to make sure that each
As a result, the oscillator frequency is placed in its correct position. The
may need adjusting slightly to give resistors must be pushed all the way
the correct Bellbird sound. down onto the PCB, with the leads sol-
When S2 is pressed, the resulting dered and trimmed short on the back.
low on RB4 is detected by IC1 and The IC sockets are next on the
the program then produces a series of list – make sure they are oriented as
bell tones, with each tone varying by a shown on Fig.2 (ie, notched ends to
small amount (0.375%) for each step. the left). Don’t install the ICs at this
The switch is simply released when stage though; that step comes later,
the required tone is found. IC1 then after some initial testing.
stores this tone setting in its EEPROM Follow with the capacitors and the
so that the correct tone is used from two switches, again pushing these
then on, even if the power is switched parts right down onto the PCB before
off and on again. soldering. Note that S2 will only
If necessary, you can return to the mount with one orientation, as its pin
initial default tone by pressing and spacings differ between adjacent sides.
holding down S2 as the Bellbird is The LDR can now be installed (it
powered up with S1. Alternatively, can go in either way around), after
you can cycle through the available which you can install the LEDs. The
tones by holding S2 down until the latter must all be oriented with their
centre frequency is reached. Since longer anode leads (A) towards the top
64 separate tones are produced, the of the PCB. You can push the LEDs
centre tone frequency occurs 32 tones all the way down onto the PCB if you
after the transition from maximum to like, but we suggest mounting them
minimum, a tone step that’s readily about 5mm proud of the PCB so that
noticed. This view shows how the cell holder they aren’t obscured by adjacent parts.
S1 is the power on/off switch. The is mounted on the rear of the PCB. It The best way to go about this is to
3V supply is decoupled using a 1µF must be installed before mounting the push each LED down onto a 5mm-high
capacitor for IC1 and another 1µF ca- piezo transducer, so that you can solder cardboard spacer (slid between its
pacitor for IC2. The MCLR pin of IC1 its leads. leads) before soldering it into position.
is a power-on reset input, and pulling To make this process easier, the leads
it high via a 10kΩ resistor ensures that cell if the latter is inserted incorrectly. can be soldered on the top of the PCB.
the microcontroller starts correctly (ie, Provided the cell holder is installed on Next on the list are two M3 × 9mm
at the beginning of its program) when the PCB properly, and IC1 and IC2 are stand-offs that are used to mount the
power is applied. both oriented correctly, then the circuit piezo transducer. Secure these to the
Note that no reverse polarity pro- cannot be damaged by an incorrectly PCB using M3 × 6mm screws, but don’t
tection is included to protect the ICs installed cell. mount the piezo transducer at this
against incorrect supply polarity. That said, we recommend that the stage. Once these are in place, install
That’s because the cell holder itself supply polarity delivered by the cell in the cell holder on the rear of the PCB
does not make a connection to the its holder is checked before installing (ie, under IC2).
Testing
Now for some initial tests before installing the ICs and
the piezo transducer.
First, insert the cell into its holder, then switch the unit
on using toggle switch S1. That done, check the voltage
between pins 14 and 5 of IC1’s socket. You should get a
reading of +3V (ie, the cell voltage) on pin 14. Similarly,
pin 14 of IC2 should also be at +3V with respect to pin 7
of this socket.
If this is correct, switch off and install the ICs. Make Fig.6: the Bellbird signal is a heavily filtered sawtooth wave-
sure that both ICs are oriented correctly; ie, with the notch form which is modulated in steps. The low-pass filtering has
or pin 1 indentation at one end of each IC towards the a –3dB point at about 2kHz.
notched end of its socket.
The piezo transducer can now be installed. It mounts
onto the stand-offs after first drilling out its mounting holes
to 3mm and is secured using M3 × 6mm machine screws.
Once it’s in position, trim its leads to about 35mm long,
strip 3mm of insulation from the wire ends and solder the
leads to the pads on the PCB marked ‘To Piezo’. It doesn’t
matter which way around you connect these leads; they
can go to either PCB pad.
And that’s it! You should now be greeted by musical
Bellbird sounds when the unit is switched on and the
LEDs should chase down the outside of the bell and along
the bottom. If necessary, you can now change the Bellbird
tone by pressing and holding S2 to set the Bellbird cycling
through its output frequency steps. Release the switch
when the required tone is heard.
If you want to return to the default frequency, switch the
Bellbird off and wait a few seconds, then press and hold
pushbutton switch S2 while you re-apply power. Finally, Fig.5: this scope grab shows just one Bellbird call, taken at a
after a second or so, release S2 and the unit will again be sweep speed of 20ms/div to show more detail of the complicated
at the default frequency. modulation, which is applied to each note.
Get an SDR covering a frequency range from around 50MHz (or lower)
up to 2200MHz for just the price of a USB DVB-T dongle – peanuts!
Fig.2: the Zadig startup window. This application is Fig.3: clicking the ‘Options’ menu brings up this dialog,
used to install the RTL-SDR driver to allow the PC to after which you have to select the ‘List All Devices’ option
communicate with the Realtek RTL2832U demodulator. from the drop-down list.
Fig.4: clicking the down arrow brings up the list of USB Fig.5: the RTL2838UHIDIR entry has been selected here (for
devices that Zadig has discovered. You then have to select an EzTV668 dongle). You then have to click the ‘Reinstall
the USB dongle entry from this list. Driver’ button to install the correct driver.
application software, it’s a good idea Downloading and installing SDR# is ‘rtlsdr.dll’, the application extension
to go into Control Panel -> System and a little tricky though, because it’s not which SDR# needs to communicate
Security -> Device Manager to make packaged as a ‘single exe’ or ‘zipped with the RTL-based dongle via the
sure that the driver has been installed exe’ file. Due to licensing and packag- USB driver. This file can’t easily be
correctly. ing considerations, it has been split downloaded by itself, but it is in a
In Device Manager, scroll down to into two main zip files, which can be collection of other files which can
‘Universal Serial Bus Devices’ (see downloaded from the SDR# website be downloaded from the Osmocom
Fig.8) and click on the arrow to the – plus another zip file which must be website at http://sdr.osmocom.org/
left. You should now see a device downloaded from a different website. trac/wiki/rtl-sdr/
entry with the same name as that pre- Here’s the downloading procedures, To do this, scroll down to a section
viously shown in Zadig (it’s shown as step by step: at the end called ‘Attachments’. In the
‘RTL2838UHIDIR’ in Fig.8). This will links beneath this heading, you’ll find
be your dongle and if you then right- STEP 1 one with the rather odd name ‘Rel-
click on this device name and select Fire up your web browser and go to the WithDebInfo.zip’. Click on this link
‘Properties’, you should see another SDR# homepage at www.SDRSharp. and you’ll end up on a page headed
small window like that shown on the com Then click on the ‘Downloads’ ‘rtl-sdr: RelWithDebInfo.zip’. This file
right in Fig.8. heading to go to the downloads page. can now be retrieved by clicking on the
Click on the Driver tab in this window Here you’ll find two main files. One ‘downloading’ link over on the right.
and you should be presented with the will have a name like SDR# Dev or
details of the driver that Zadig installed. sdr-nightly, followed by a description Installing the software
As shown in Fig.8, the Driver Provider in brackets like (Continuous Integra- Having downloaded the three zip
should be shown as ‘libusbx.org’ and the tion, Last Changes Rev: 1114). This is files, you can now proceed with the
Driver Version as ‘6.1.7600.16385’ (or the main SDR# zip file, so download it software installation for SDR#. Here’s
another number if it has been updated first. That done, move down to the file how it’s done:
from the current version). named SDR# RTLSDR Plugin, which
If that all checks out, then Zadig has will have a similar description in STEP 1
correctly installed the SDR driver for brackets. This will be the latest version Unzip the SDR# Dev.zip (or sdr-
your dongle and you’re now ready to of the RTLSDR ‘plugin’ for SDR# and nightly.zip) file. This will have about
install the application software. this is the second zip file to download. 14 files inside, all of which should be
extracted to the folder into which you
Our first choice: SDR# STEP 2 will be installing SDR#. For example,
If you search the web, you’ll find a Before leaving the SDR# website, scroll you could extract the files to C:\Pro-
number of different SDR software ap- further down the downloads page until gram Files\SDR#, so it’s a good idea
plications that run under Windows you get to a section titled ‘Important to create this folder before you start.
or Linux and are compatible with note for RTL-SDR users’. This section
RTLSDR dongles. The most popular provides links to various worthwhile Step 2
of these seems to be an application items on SDR#, including a PDF file of Unzip the second zip file, ie, with a
called SDR# or ‘SDRSharp’, written the well-written SDR# User Manual by name like sdr-nightly-rtlsdr.zip. This
by a programmer in Paris by the name Henry Forte. You can download this will probably have five files inside,
of Youssef Touil in collaboration with PDF file by clicking on the link www. plus a folder called ‘config’. Extract
various other people around the world. atouk.com/wordpress/?p=153 everything to the same folder used to
SDR# is a particularly powerful and store the extracted files from the first
easy-to-use SDR application and it’s STEP 3 zip file. That done, check the contents
available for free. It provides an excel- The next step is to download the third of the ‘config’ folder; there should only
lent way to ‘dip your toe’ into SDR. main software ingredient. This is be one file with a name like sdrsharp.
exe.config. Copy this file into the main
SDR# folder, where it will over-write
an existing file with the same name.
Step 3
Now for the third zip file you down-
loaded, ie, RelWithDebInfo.zip. Inside
this file, you’ll find two folders, one
labelled ‘/x32’ and the other ‘/x64’. If
you look inside the /x32 folder, you’ll
see a file called rtlsdr.dll. This is the only
file you need from this third zip file, so
just extract this file and place it into the
main SDR# folder with the others.
And that’s it. Your copy of SDR#
Fig.7: DVB-T tuner dongles can be purchased online quite cheaply. These
should now be fully installed and
three units all feature a 75-ohm Belling-Lee antenna socket but many other
dongles come with a much smaller MCX connector. ready to run. All you need to do is go
to the C:\Program Files\SDR# folder
SDR# in action
After a couple of seconds SDR# should
spring into life and you’ll see a fairly
large window like that shown in Fig.9.
This is the opening window for the
current version of SDR#, V.1.0.0.114;
later versions may look a little different.
At the top left of this window are
two rectangular buttons, one labelled
‘Play’ and the other with the default
label ‘Other (Sound card)’. Clicking the
down arrow to the right of this label
will now bring up a drop-down device
list similar to that shown in Fig.10.
Click the ‘RTL-SDR/USB’ option then
click the ‘Configure’ button.
SDR# will now open a very interest-
ing supplementary window, as shown
in Fig.11. This shows you the actual
name of the dongle (in this case ‘ezcap Fig.8: you can verify that Zadig has correctly installed the driver by checking the
USB 2.0 DVB-T/DAB/FM dongle’), the entry in the Windows Device Manager.
tuner chip it contains (here an E4000),
its maximum and default sample rate
(2.048MS/s) and the default sampling
mode (quadrature sampling). It also
gives you options for setting the AGC
functions available inside the dongle
(RTL AGC and/or Tuner AGC) and for
adjusting the RF gain.
In addition, there are options for
setting a tuning offset (for when you’re
using an up-converter with the dongle)
and for correcting any frequency er-
ror in the dongle’s crystal-based local
oscillator. We’ll discuss these options
later on.
For the present, just click on the
‘Close’ button at the bottom of this
window, then take a close look at the
main SDR# window. Down the left-
hand side, you’ll see the SDR# control
panel. This is divided into a number
of functional areas, each with its own
heading – ie, Radio, Audio, AGC, FFT
Display and finally two area headings
at the bottom for SDR# plugins.
Within each area you’ll find various
control buttons allowing you to select
a variety of functions and modes. For
example, the eight small buttons at
the top of the Radio section allow you
to select the demodulation mode you
want to use (NFM, AM, LSB, USB,
WFM, DSB, CW-L or CW-U). Most of
the other controls are fairly intuitive,
like the AF Gain slider at the top of the Fig.9: this is the opening window that appears when you start the SDR# program
Audio section. You simply drag this for the first time.
Fig.13: the result when SDR# was tuned to 865.017MHz in the UHF fixed/mobile
communications band. The signal peak is a narrow-band FM (NFM) signal coming
from a tourist guide on the Sydney Harbour Bridge.
Receiving a signal
OK, let’s use it to receive a signal. There
are really only three steps involved:
1) Enter the frequency of the signal you
want to receive by clicking on the
appropriate digits in the top display Fig.14: this screen grab shows the result when we set SDR# to receive the GPS ‘L1’
2) Select the modulation mode (eg, signal frequency at 1.575427GHz. There was indeed a small signal peak at that
AM, WFM, LSB etc) by clicking the frequency, but we were unable to demodulate the signal because SDR# doesn’t
corresponding radio button in the have an option to demodulate CDMA spread spectrum signals.
Radio section at top left
3) Click on the ‘Play’ button just above
the Radio heading, at top left.
Within a fraction of a second, you
should see a spectrum display like the
one shown in Fig.12. In this case, the
unit has been tuned to an AM signal
on 118.550500MHz in the aeronautical
band (it’s actually the Sydney Airport
Terminal Information signal). The dis-
play has been zoomed in a little and is
showing the spectrum between about
118MHz and 118.66MHz, with the
peak for the signal being received in
the centre (bisected by the red tuning Fig.15: the frequency error in an EzTV668 dongle has been corrected here, in this
cursor line). case using the signal from ABC Classic FM in Sydney, on 92.900MHz. The frequency
Looking closely at Fig.12, you’ll also correction applied was –63ppm (parts per million).
see a light grey band straddling the
signal peak and the tuning cursor. This As mentioned before, you can change band FM (NFM) signal coming from a
shows another of SDR#’s handy features the tuning frequency by clicking and tourist guide up on the Sydney Harbour
– it can graphically display the software dragging the red tuning cursor line in Bridge (he was explaining the history
filter bandwidth currently in use. the spectrum display window. When of the bridge and its surroundings)!
If you change the filter bandwidth you do this, you’ll see the main fre- Fig.14 shows the result when we
using the text box over in the Radio quency display at the top changing as set the SDR# to receive the GPS ‘L1’
controls area, you’ll see the grey band you drag the cursor. In addition, the signal frequency at 1.575427GHz.
change width. But that’s not all; you frequency ‘dial markings’ along the There was indeed a small signal peak
can also change the filter bandwidth bottom of the spectrum display will at that frequency, but its small size
by hovering the mouse over one side also slide along. is not surprising since we were only
of the grey band until the cursor If you want to shift the tuning fre- using the wideband discone antenna
changes into a double-ended horizon- quency a long way from your current shown in Fig.1. In any case, we were
tal arrow. When it does, you can then setting, it’s much easier to click on the unable to demodulate this signal be-
click and drag the edge of the band digits in the main frequency display cause SDR# doesn’t have an option to
one way or the other, to change the at the top. If you like, you can think of demodulate CDMA spread-spectrum
filter bandwidth. this display as the SDR’s ‘band switch- signals. Instead, all we could hear was
What if you do find a signal peak but ing’ control, while dragging the cursor a faint hum when the ‘AM’ demodula-
the audio output is badly garbled (even in the spectrum display window is its tion mode was selected.
when you tune accurately to the centre ‘fine tuning’ control. SDR# is also unable to demodulate
of the peak)? This indicates that it’s not Two more screen grabs which should DAB+ digital (COFDM) signals (per-
using the type of modulation you’ve make the impressive capabilities of haps this will be added in a future
set SDR# to receive. That’s fixed by SDR# a little clearer are shown in update). However, if you do want to
clicking on the other mode buttons in Figs.13 and 14. Fig.13 shows the SDR# listen to DAB+ radio, it’s just a matter
the Radio area until the signal becomes tuned to 865.017MHz in the UHF fixed/ of plugging the dongle into a different
clear. When that happens, you have the mobile communications band. The USB port and firing up a DVB-T/DAB+
correct receiving mode. signal peak turned out to be a narrow- application.
Give it a go
So that’s a quick run through the
main features of SDR# and how eas-
ily it can be used to convert your
PC into an SDR and wideband VHF/
UHF spectrum scanner. It’s a bit of
a rigmarole to download and install
the special RTL-SDR driver and then
SDR# itself but once you’ve done
that, the set-up is remarkably flexible
and easy to use.
The only small ‘glitch’ we’ve en-
countered so far is that sometimes
when exploring the VHF or UHF
bands, there’s a spurious signal peak
in the centre of the spectrum display.
This is probably due to signals radiated
from the PC getting into the dongle. If
you come across this, try enclosing the
dongle in a metal shield and/or fitting
the USB cable with a clip-on ferrite
suppressor sleeve.
Reproduced by arrangement
with SILICON CHIP
Fig.18: the waterfall display for several narrow-band FM (NFM) signals from magazine 2014.
Sydney airport (centre) plus various other digital signals. www.siliconchip.com.au
Silicon Chips
Humour occasionally crept into our pages. The April 1980
Practical Electronics issue announced some discoveries by
a Welsh high-tech company (Llyis Electronics) that mined
its own pure silicon from sand found on Prestatyn beach.
Their powerful new ZMOS transistors featured a ‘HEX-
NUT’ package and had micro-bore pipework that needed
water cooling from a 30-gallon header tank. BBC Wales was
duly taken in by this Silly Electronics April Fool, causing
much mirth at the time. April 1996 EPE broke the story
of Chromo Floristics – electronic colour control of plants
using ‘chromatic irradiation’ with computerised LEDs. An
impressive prototype with parallel port was shown along
with a purposeful-looking BASIC program. This brilliant
parody was again written by John Becker and the nation’s
media clamoured to learn more about the exciting dis-
covery. The series Ohm Sweet Ohm offered some genteel March 1999’s EPE sported another name change and acquired
humour in the 1990s and was written by Max Fidling – a the ETI logo, now so familiar to many readers
pseudonym of the present writer, the surname picked at
random from the phone book. in quality contributions to the reader’s own column of cir-
cuit ideas, Ingenuity Unlimited. In earlier years, an entire
Download revolution supplement of IU ideas could be printed due to the volume
The Internet was clearly not going to go away and EPE, of contributions, but not now. More than anything, the old-
which had never rested on its laurels, became (we be- school model for using freelance contributors finally ran out
lieve) the first magazine in the world that could also be of steam. With pressure on editorial and technical resources
downloaded from the web. As online payments were rising fast, it became difficult to handle external material
very hard to implement in the UK, our US team designed the traditional way, especially when it needed substantial
a custom system. In the late 1990s a new US operation re-working to make it publishable to the high standards that
run by Clive Maxfield (whom I had bumped into online, readers rightly expected.
on Usenet), Dean Hudson and Alvin Brown created the
website behind EPE Online. At last, anyone with Internet A new publishing model
access anywhere in the world could download their own If EPE was to survive then drastic measures were needed.
issue at the speed of light (nearly anyway). Clive (‘call me With the old way of doing things no longer viable, EPE’s
Max’) still blogs for EPE today. Then, right at the end of the owner Mike Kenward took the brave and radical decision to
decade, in addition to a new EPE Online graphic, March use projects produced by Australia’s Silicon Chip magazine.
1999’s EPE sported another name change and a familiar Their designs were thoroughly tried and tested in-house and
logo, becoming Everyday Practical Electronics with ETI. the material was prepared to a very high, if differently styled,
standard of presentation. EPE would therefore publish its
Testing times constructional projects by joint arrangement with Silicon
Into the new millennium, and EPE’s tried and tested formu- Chip and the January 2006 issue was in full colour for the
la was sorely challenged when several factors conspired in first time, as Mike invested heavily in making the magazine
a perfect storm that created much uncertainty in the early more attractive. EPE’s editorial features continued largely
2000s. If there wasn’t a general downturn in magazine unchanged, with home-grown series such as Teach-In, PIC
circulations then a surge onto the world-wide web was n’ Mix, Circuit Surgery, Net Work, New Technology Update
widely predicted (incorrectly) to spell doom for printed and Actually Doing It all appearing as before.
magazines everywhere. The magazine presentation was With most electronics magazines in the USA shutting
looking tired and there were worries it would not appeal down altogether, the deep financial recession of 2008 could
to the younger readers whom the hobby needed to attract have sounded the death knell for the hobby electronics
and who were critical for its future. Key EPE staff also went magazine. Further streamlining took place at EPE when
into semi-retirement midway through the new decade, in 2012 our US site closed down, but an all-new website
including founder member Dave Barrington who had been quickly sprang up in Britain: it had come home again! A
with Practical Electronics since Issue 1 in 1964, and John new editor was also appointed, and EPE is now safely in
Becker sought a well-earned retirement as well. the hands of Matt Pulzer, who has a very long association
Arguably, mainstream interest in traditional with the publishers and its readers. In 2012, a Pocketmags
discrete electronics and its physics and princi- version for tablet users was released, followed by a new
ples was falling too, as witnessed by the decline PDF version for online subscribers.
Image: NASA/MSFC
smaller, faster, more
accurate but use less
power than before.
The hobbyist will
still be here, joining
in the electronics
revolution in one
form or another.
Whether there will be magazines like EPE still printed on
‘dead trees’ or there will be anything left that the home
The world gets smaller, and after a dizzying voyage the final constructor can properly solder and coax into operation,
iteration – it is hoped – saw a redesign of EPE as high-quality only time will tell.
projects from Australia’s Silicon Chip were incorporated. The Celebrating this 50th Anniversary of Practical Electron-
magazine was printed in full colour for the first time ics – with some Everyday experience included – has been
a very humbling experience, with much awareness on the
Here comes the future writer’s part that we ‘stand on the shoulders of giants’, to
In the Anniversary edition of November 1989, Practical quote an uncharacteristically humble Isaac Newton. Every
Electronics’ Editor John Becker celebrated the past 25 years issue since 1964 has represented much hard work and ded-
and mused about life 25 years hence – today in 2014. He ication by its contributors and staff, not to mention printers
correctly predicted driverless cars (Google), computer and distributors, all committed to enthusing the hobby
speech recognition systems and reckoned that the 50th electronics fraternity, embracing new developments head
Anniversary review could be spoken into a computer. We on and offering readers satisfying new projects to build. It
also have some low-energy products that he felt would has been thanks to Fred Bennett for having the foresight to
be forced onto us by legislation – how very true. The EU drive Practical Electronics onwards to success and also EPE’s
recently banned the production of vacuum cleaners rated publisher, Mike Kenward, his family-owned company and
more than 1600W; lawnmowers, kettles, car air condition- team, that we can still produce a hobby electronics magazine
ing and hairdryers may be next in the firing line. in Britain. Most of all, it is also thanks to you, our readers,
And what might EPE readers – and their families – see in for staying with us for the past 50 years and enjoying the
the next 25 years? Products and devices in 2039 will be more ride along the way. Fingers crossed, here’s to the Diamond
mobile, networkable and always-on, wirelessly charged, Jubilee in 2024 and beyond!
wearable, disposable and recyclable than they are now. To-
day, much of our ADSL and FTTC depends on decades-old
copper wires connected to our home, but tomorrow the
‘cloud’ will host most of our software services, made feasible
A very rare photo of the ‘boss’ Fred Bennett and young assistant
editor Mike Kenward presenting a prize to EE reader David
Riley (right) in the December 1973 issue of Everyday Electronics
Raspberry Pi B+ A/D
R
ecent Interface
articles have been
based on the very
popular Raspberry Pi com-
puter, which was originally
available in two versions. Earlier this
year the existing A and B models were
augmented by a new model, which
is called the B+. Supply for the new
Raspberry Pi was initially outstripped
by demand, but availability is now
much better. Thankfully, the B+ is es-
sentially the same as the model B, and
it runs the same operating systems
and application software. There are
Fig.1. The B+ Rasp-
some changes on the hardware side
berry Pi has two ex-
of things, which are mainly improve-
tra USB ports and a
ments, and it is largely compatible
40-pin GPIO port, but the
with Model A and B hardware.
composite video output is no
longer featured. The new enlarged GPIO
On the B+ side
port has some 26 input/output lines
First and foremost the board layout has
been completely redesigned. Cases for
the original boards are not suitable for an MP3 player to act as a Micro SD The Raspberry Pi is open source,
use with a B+ board, but fortunately card reader. and you can download the appropri-
cases to suit the new layout are read- Some suppliers offer the Raspberry ate file and make your own NOOB
ily available. Fig.1 shows a Raspberry Pi with a boot card already installed. boot disc. Remember that a 4GB card
Pi B+ board, and one obvious change Rather than simply having the Ras- will not be sufficient, even if only
is that the composite video output has pian operating system preinstalled, the Raspian operating system is to
been omitted. I suppose that in this re- this is now usually in the form of be installed – the extra source files
spect it is more of a ‘B minus’ board, a NOOB (new out of the box) card. stored on the card means that an 8GB
but a composite video output is of lit- This contains the installation files card is required. This should be suf-
tle practical use these days. for various operating systems that ficient to accommodate Raspian and
On the plus side, there are now are compatible with the Raspberry at least one other operating system.
four USB ports as opposed to the two Pi, and on running the computer for Of course, a higher capacity card
of the Model B board. With a mouse the first time there is a menu where will provide more space for data
and a keyboard connected to two of the required system or systems are se- storage, and could be advantageous
these ports, there are still a couple lected. It is then just a matter of going when using some types of applica-
left for such things as a card reader through the installation and setting tion software.
and a Wi-Fi adapter. This means that up procedures. If more than one
most users will avoid the need for a operating system is installed, a dual Best until last
USB hub. In other respects, most of or multi-boot system is implemented, The most important change for those
the ports are the same as before, but and the required operating system is using the Raspberry Pi with their
there have been improvements that selected from a menu each time the own add-on devices is that the GPIO
give improved performance from the computer is started. port has been expanded, and uses
stereo audio output. a 40-way connector instead of a 26-
Another change to the hardware is way type. The new scheme of things
that the SD card slot of the Model A is shown in Fig.3, and the important
and B boards has been replaced with point to note here is that pins from
a Micro SD card slot (Fig.2). This is 1 to 26 have the same functions as
a ‘proper’ card slot and not the sim- before. It is possible to fit a 26-way
ple friction type used on the earlier connector onto these pins and use a
boards. One slight problem is that the Model B+ with hardware intended
multi-card readers fitted to many PCs, for the earlier versions. However, it is
and the external USB reader units that safer to use a 26-way cable that has a
can be obtained, do not usually have 40-way connector at one end and a
the ability to accept Micro SD cards. 26-way type at the other, as this avoids
This could make it more difficult to the possibility of connection errors.
produce your own boot card, but it is These can be obtained readymade,
possible to obtain inexpensive adapt- Fig.2. The simple SD card slot of the but should not be difficult to make
ers that enable Micro SD cards to be earlier models has been replaced with a yourself.
used with slots for standard SD cards. micro SD type. This is spring-loaded, an Some extra input/output lines are
I produced a suitable boot disc using improvement on the earlier friction slot provided by the additional pins of the
CRICKLEWOOD
ELECTRONICS Established 1981
On test
Being a coward (and not wanting
to subject my Raspberry Pi B+
Fig.3. RPIADCISOL board layout to ‘death by high-voltage’!)
it was with some trepidation
GPIO protection that I set about connecting the
The RPIADCISOL has digital outputs that are current limited by RPIADCISOL to my high voltage DC power supply. To conduct
means of a fixed series resistance of 2.2kΩ. This helps to avoid the tests I used some simple code to read the output of a sensor
the situation that might occur when an input optical isolator connected to the differential input of one of the isolated ADC
has been initially turned ‘on’ or ‘off’ and then the same line is channels with the high-voltage supply connected between sensor
inadvertently set to ‘on’ as an output. The series resistance has ground and board ground (ie, the 0V rail of my Raspberry Pi).
the effect of limiting the current from an individual GPIO line Throughout the tests, I kept my code running on the Pi with
to around 1.5mA. Note also that if your application simply the sensor providing a continuous analogue input signal to the
needs optical isolation between inputs and outputs without ADC channel and the value returned from it displayed on the
the need for any programmed control, it is possible to set the monitor screen courtesy of a simple loop coded in C. The value
appropriate GPIO lines as inputs and then not bother to read displayed remained rock solid while I first applied 50V DC, then
them. The logical state of the optically isolated inputs can then slowly increased this to 350V DC and finally to 400V DC. Next,
be passed directly to the respective outputs. This provides further I tested the board with 30V, 50V and 110V AC, before finally
flexibility and might be useful where, for example, optically applying 400V DC in series with 110V AC, giving a peak voltage
isolated switching is required without the need for Raspberry on the sensor ground of a little under 550V above the true ground
Pi programmed control. potential of the Raspberry Pi. Amazingly, I noticed absolutely
no change in the displayed reading while all this was going on.
Connectors To say I was relieved (and impressed) is an under-statement!
Having tried and tested many interface boards for the Raspberry The digital inputs and outputs were also tested. These behaved
Pi, one factor that makes some boards stand out compared to predictably when used with some simple C code and I was
others is the relative ease of making off-board connections. The able to read digital data and then write it to the outputs with
RPIADCISOL does this rather well, as it uses standard industrial no difficulty whatsoever. During these tests I found the eight
3.5mm PCB-mounted headers with connectors that are fitted on-board LEDs to be particularly useful for telling me what
with screw terminals. This makes prototyping blissfully easy was going on.
because connectors can be quickly and easily removed from
the board and there’s no need for any soldered connections. Other products from Zeal Electronics
In addition to the RPIADCISOL, Zeal Electronics also supplies
Documentation and example code two other high-specification optically isolated interface cards
The RPIADCISOL is supplied with a detailed 86-page manual designed specifically for the Raspberry Pi. These boards can be
that provides full information on installing, connecting, using ‘daisy chained’ onto the Pi’s GPIO bus and can be connected
and programming the range of boards designed and developed to the 26-way GPIO expansion connector on the RPIADCISOL
by Stephen Alsop and available from Zeal Electronics. to provide an extended digital I/O capability with 16 channels
RPI16IN
RPI16OUT
Fig.4. The board has eight additional open-collector digital outputs
RPIADCISOL
up to a maximum of 128 inputs and 128 suppliers (without the PCB, eight-
outputs from eight daisy-chained boards channel ADC, four isolation power
of each type. We will be taking a detailed supply units and additional optically connect the Raspberry Pi and any
look at these products in a future issue isolated digital I/O) and the bill would
of EPE. come to a whopping £246 – without VAT! SPI microcontroller safely to the
real world!
Pricing Conclusion • *1kV isolation certified by UK ISO9001
Priced at a little over £100 (with 10% If you are working in an environment Accredited Company, but only 24V max
discount for EPE readers) you might at where a very high degree of isolation is isolation is specified for safety.
first think that the RPIADCISOL is a little critical then have no fear – this board • 3.5mm standardised industrial plug-in
on the expensive side. However, this will deliver. The RPIADCISOL offers terminal connectors.
board offers features that others don’t an excellent specification and is well • SPI high speed interface connects to the
and the very high degree of isolation supported with liberally commented Raspberry Pi and any SPI microcontroller,
of four of the six ADC inputs doesn’t source code. Under test, the board eg PICs, Atmel, Arduino, etc.
come cheap. Couple this with the eight performed exceptionally well and • 26W IDC to directly connect to the GPIO
additional optically isolated digital readers with only limited C programming port on the Raspberry Pi (all versions: V1
inputs and outputs and you realise this experience should be able to get the or V2, type A, B, B+ and new single card
board represents good value. If you don’t board up and running quickly and version). Auxiliary SPI 0.1" header to
believe me, take a look at the cost of the easily. The interface represents good connect to other microcontrollers.
high specification isolation amplifiers value and is ideal for use in a wide • Daisy-chain to connect multiple boards.
that the board uses. Go and purchase range of applications where sensors • Powered by the Raspberry Pi bus, subject
four isolated AD215AY devices from and transducers are not at true ground to connected devices, or by an external
one of the most popular UK component potential. regulated 5V supply.
• Driver & example software written in C.
• RPI16IN: 16 channel 5V AC/DC opto
isolated inputs with LED channel
indicators, 8 boards allow 128 inputs.
• RPI16OUT: 16 channel 100V at 60mA
opto isolated outputs with LED channel
indicators, 8 boards allow 128 outputs.
• RPIADCISOL: 4 x isolated plus 2 direct
24-bit differential i/p ADC channels, uses
MCP3913 ADC with PGA to give a FSD
input range from ±0.01875 to ±0.600V.
Additional 8 x opto inputs and outputs
connected to GPIO for other applications.
DISTRIBUTORS
Zeal Electronics Ltd MADE IN THE UK
www.zeal-electronics.co.uk/rpi
ORDERS (10% 3 month discount
offer for readers - quote 'EPE1214')
e: [email protected]
t: +44 (0) 1246 252 445
© 2014 Dr Stephen Alsop - S&S Systems, England
Fig.5. Configuration links
a few months ago. As a reminder, the the threshold voltage, VT. Similarly, a
cross section of a generic N-channel P-channel MOSFET will conduct with
MOSFET is shown in Fig.1 (not a power negative gate voltage (with respect to N N
device). Strictly speaking, the device source/bulk) which is greater than its
has four terminals: gate, source, drain threshold. P P
structure, resulting in the familiar three- When a MOSFET is used in a switching CURRENT N
operation is as a switch, with the gate voltage well above the threshold. Use of
voltage controlling conduction from voltages well above threshold ensures Fig.3. Simplified trench-style power
source to drain (on or off). Power saturated operation, in which the ON- MOSFET structure, showing vertical
devices are most commonly operated as resistance (RDS(ON)), the voltage drop current flow
in Fig.5 the supply must not exceed the to switch quickly and efficiently,
maximum drain-source voltage (VDS) sufficient current must be available to L
and the current given by the supply quickly charge or discharge the gate
voltage divided by the load resistance capacitance of the device. The gate
must not exceed the maximum capacitance and the driver circuit’s
continuous current rating. Similarly, the source resistance and the resistance RLoad
output voltage of the drive circuit must of the wiring (inside and outside
not exceed the maximum gate-source the device) result in the gate voltage
voltage. Even very short over-voltage following an RC charging curve. The
Rsource M1
pulses can destroy MOSFETs, so it is significance of this is that the MOSFET
best not to operate them on supplies/ will spend some time between being Drive
driving too close to their limits if fully on and fully off. During this time +
EMF spike.
Ground
Supply
M2
To load
Driver
M1
Ground
Fig.8. Illustrative waveforms for the circuits in Fig.6 and Fig.7 Fig.10. MOSFET push-pull circuit
SPIKES
AT GATE To load
FAST-CHANGING
VOLTAGE AT DRAIN
Rsource Cgd
M1
Drive
+ Cgs
– dV
dt
Ground
Drive
some of the mechanisms whereby
+
D1
Cgs
power MOSFETs are damaged during
– operation, but it has not addressed all
Ground the potential issues. Further details can
be found in technical articles published
by device manufacturers such as Texas
Instruments, NXP, Analogue Devices
Fig.12. Zener clamp to protect MOSFET and International Rectifier and various
gate from dV/dt induced damage other sources.
58 Everyday
Everyday
Practical
Practical
Electronics,
Electronics,
December
August 2014
use *
add
Voltage regulator
The voltage regulator used in the original prototype was
also found to have an EagleCAD symbol available at Farnell,
Fig.3. The device editor dialog so we copied that over as before.
SO08-208, then click OK, Yes. You can now select the LM4880 dual power amplifier
Paste option to drop the copy of the package on the screen. The LM4880 symbol was found on a schematic on the
Position the package so it is centred on the origin, as Internet, with instructions on how to extract the symbol
shown by the cross hairs. Now click on the Device icon, provided by the author on his site. The DC jack was found
and select 25*. The dialog shown in Fig.3 should appear. on the dangerous prototypes web site http://dangerous-
Notice how there are three packages listed in the bottom prototypes.com. It was just good luck that it is the same
right hand of the dialog. Let’s go ahead and add ours. Click part as supplied by Farnell.
the New button, scroll down, select our SO08-208 package
and click OK. We now need to connect the wire on the If this all sounds a little confusing, it isn’t really – these
symbol to the physical pads on the package drawing. Click searches took a few minutes and saved perhaps several
the Connect button, and the dialog shown in Fig.4 appears hours effort creating them manually. In this case, we have
showing the Pin (from the symbol) and the Pad (from the managed to find all our parts without having to create a
package). You click one entry under Pin, one entry under single device symbol. That’s very rare, and has saved a
Pad and then click Connect. A quick examination of the few hours work. Creating symbols in EagleCAD is not
Spansion Flash datasheet shows which Pin designation exactly difficult, but if you do not plan to use the symbol
goes where, and we quickly end up with the table shown more than once the effort can be a little un-rewarding. In
in Fig.5. Click OK when you reach this point. our case, we will evaluate how well the parts work, and
Close the library, and then go back into the schematic and if we like them and expect to re-use them we will invest
add the part from the Microchip library. It will be called a little more effort in the documentation and perhaps
‘25’ as a device, but we can change this using the Value improve the silk screen drawing.
command later, once it has been placed on the schematic.
Making sure it all fits
MCP6022 op amp Purchasing the new components before sending a board
Next up is the MCP6022 IC. This part is available for pur- design off to a manufacturer is an essential step before
chase from Farnell in a standard SO08 package. However, completing a design. On this board we discovered not
the part does not exist in the EagleCAD library. Another only that the buttons should be placed closer to the board
op amp does, the MCP602. The package is the same size edge, but that the headphone socket pin-out was not as I
and the pin-out is the same, so we will use that symbol had guessed. It’s not uncommon for a datasheet to be very
instead, and simply change the name once it is placed on weak on the specifics of ‘which contact means what’, and
the schematic. there is simply no substitute for obtaining the real parts
and placing them on a printout of the board design, which
Crystal we did. It’s not a fool-proof solution if your board has to
For the microprocessor crystal we chose a cheap sur- fit in a case (I made a small error in the board design, as
face-mount version, in a HC49 base – essentially a you will see later).
60 Everyday
Everyday
Practical
Practical
Electronics,
Electronics,
December
August 2014
Board manufacture
It’s generally a good idea to select a PCB manufacturer
before laying out the board, because different manu-
facturers have different manufacturing process limits.
For example, the gap between a copper track and the
edge of the board, or the thinnest track they can sup-
port. Some manufacturers can supply a design rules
file that can be imported by EagleCAD, and the design
limits are checked automatically. Some will just go and
merrily modify your design to suit their needs without
telling you. The moral of the story is: know your board
manufacturer. Don’t be afraid to email them, asking Fig.10. Checking special components fit. They do!
questions. They want your designs to work, because it
will mean future business. The choice of the drum kit PCB was no accident; I do
I chose Beta Layout in Ireland to manufacture the intend to use these boards as the second prototype for my
board because they were local, but also because they open-source drum kit design. Check out my Pic ‘n Mix
column over the coming months where I will report
on progress with the build.
I hope you have enjoyed this introduction to PCB
design and manufacture, and that it will inspire
you to try a more ambitious design yourself. And
remember, PCB manufacturers are happy to answer
your questions; the hobbyist market is an important
and growing part of their business. Now, where did
I put my drumsticks?!
Our thanks go to CadSoft for loaning
us a licence for EagleCAD and
to Beta Layout for
supplying the
boards and
stencil for
this month’s
design. Robert
Keating in par-
ticular has been
very patient an-
swering my many
questions. This ar-
ticle series would
not have been pos-
sible without their
Fig.9. The board and stencil
support.
!
W
looking for
Compiler
NE
Can Low-Cost IDE for Microchip
? anyone help
PICs me? PIC MCU Hobbyists & Enthusiasts!
®
Special P
rice
Problem
sourcing
software? $99
Generaic l
le c tr o n s Popular CCS IDE for a select
E
chat collection of devices!
I Can
help! Add on a Programmer &
Prototype Board for $50!
Visit the web for more information:
Vist the EPE Chat Zone www.ccsinfo.com/EPE99
www.epemag.com
Page 45.in
Fig.3. Accessing the compiler help system Fig.4. ADC library functions
ELECTRONICS PROJECT
TEACH-IN 5 CONSTRUCTION
IC 555 PROJECTS
Electronics Teach-In 5 E. A. Parr
Jump Start – 15 design and build
FREE 167 pages Order code BP44 £5.49
circuit projects dedicated to new- CD-ROM
comers or those following courses ELECTRONIC PROJECT BUILDING
The books listed have been selected by in school and colleges. The projects
are: Moisture Detector, Quiz Machine, Battery Voltage Check-
FOR BEGINNERS R. A. Penfold
Everyday Practical Electronics editorial er, Solar-Powered Charger, Versatile Theft Alarm, Spooky
135 pages Order code BP392 £5.99
Circuits, Frost Alarm, Mini Christmas Lights, iPod Speaker, PRACTICAL FIBRE-OPTIC PROJECTS
staff as being of special interest to Logic Probe, DC Motor Controller, Egg Timer, Signal Injector R. A. Penfold
everyone involved in electronics and Probe, Simple Radio Receiver, Temperature Alarm. 132 pages Order code BP374 £5.45
PLUS:
computing. They are supplied by mail PIC’ N MIX – starting out with PIC Microcontrollers and Prac-
order direct to your door. Full ordering tically Speaking – the techniques of project construction.
THEORY AND
details are given on the next page. FREE CD-ROM – The free CD-ROM is the complete
Teach-In 2 book providing a practical introduction to PIC
Microprocessors plus MikroElektronika, Microchip and REFERENCE
FOR A FULL DESCRIPTION L-Tek PoScope software.
HOW ELECTRONIC THINGS WORK – AND WHAT 120 pages Order code BP709 £8.49 120 pages Order code BP704 £8.49
TO DO WHEN THEY DON’T
Robert Goodman
Valid From Date ................ Card Security Code ................ (The last three digits on or just below the signature strip)
..........................................................................................................................................................
Please continue on separate sheet of paper if necessary
OCTOBER ’13
High-Temperature Thermometer/Thermostat 21105121 £22.00
LED Musicolour 16110121 £22.00
EPE SOFTWARE
November ’13 All software programs for EPE Projects marked with a star, and others
Mains Timer For Fans Or Lights 10108121 £9.10 previously published can be downloaded free from the Library on our website,
CLASSiC-D Amplifier (inc. 3 Rockby Capacitors) 01108121 £26.50
accessible via our home page at: www.epemag.com
– Speaker Protector 01108122 £9.10
december ’13
CLASSiC-D Amplifier – Power Supply 01109111 £16.66
USB Instrument Interface 24109121 £26.38
– Front Panel 24109122 £28.54
JANUARY ’14 PCB MASTERS
Champion 1109121/2 £8.88 PCB masters for boards published from the March ’06 issue onwards can
Simple 1.5A Switching Regulator 18102121 £5.53 also be downloaded from our website (www.epemag.com); go to the
‘Library’ section.
FEBRUARY ’14
2.5GHz 12-Digit Frequency Counter – Display PCB 04111122 £12.88
– Main PCB 04111121 £27.13
– Front Panel 04111123 £22.38
High-Energy Electronic Ignition System
Mobile Phone LOUD Ringer!
05110121
12110121
£9.10
£9.10
EPE PRINTED CIRCUIT BOARD SERVICE
MARCH ’14 Order Code Project Quantity Price
Extremely accurate GPS 1pps Timebase For A 04103131 £8.88
Frequency Counter 01107941 £5.54
..............................................
Infrasound Detector – Pre CHAMP PCB 01102941 £5.54 Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
– CHAMP PCB 09103132 £13.42
Automatic Points Controller (inc. 2 sensor PCBs) 09103133 £5.54 Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Automatic Points Controller – Frog Relay
APRIL ’14 ..............................................
A Capacitor Discharge Unit For Twin-Coil
Points Motors 09203131 £9.10
Tel. No. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Deluxe GPS 1pp Timebase For Frequency I enclose payment of £ . . . . . . . . . . . . . . (cheque/PO in £ sterling only) to:
Counters 04104131 £16.66
Jacob’s Ladder 05110121 £9.10
Everyday Practical
MAY ’14
The CLASSiC-D ±35V DC-DC Converter 11104131 £16.66 Electronics
JUNE ’14
Mini Audio Mixer 01106131 £22.06
Cranial Electrical Stimulation Unit 99101111 £16.66
Teach-In 2014 – Part 9 Pi Camera Light 905 £13.44 Card No. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
JUly ’14 Valid From . . . . . . . . . . . . . . Expiry Date . . . . . . . . . . . .
Verstile 10-Channel Remote Control Receiver 15106131 £16.66
IR to 433MHz UHF Transceiver 15106132 £9.10 Card Security No. . . . . . . . . Maestro Issue No. . . . . . . .
Li’l Pulser Model Train Controller Main PCB 09107134 £16.66
– Front & Rear Panel Set 09107132 £17.20 Signature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
09107133
AUG ’14 Note: You can also order PCBs by phone, Fax or Email or via the
Active RF Detector Probe For DMMs 04107131 £8.02 Shop on our website on a secure server:
Infrared To UHF Converter 15107131 £5.86 http://www.epemag.com
UHF To Infrared Converter 15107132 £9.64
If you want your advertisements to be seen by the largest readership at the most
economical price our classified page offers excellent value. The rate for semi-display
space is £10 (+VAT) per centimetre high, with a minimum height of 2·5cm. All semi-
display adverts have a width of 5.5cm. The prepaid rate for classified adverts is 40p
(+VAT) per word (minimum 12 words).
All cheques, postal orders, etc., to be made payable to Everyday Practical Electronics.
VAT must be added. Advertisements, together with remittance, should be sent
to Everyday Practical Electronics Advertisements, 113 Lynwood Drive, Merley,
Wimborne, Dorset, BH21 1UU. Phone: 01202 880299. Fax: 01202 843233. Email:
[email protected]. For rates and information on display and classified
advertising please contact our Advertisement Manager, Stewart Kearn as above.
MISCELLANEOUS
BOWOOD ELECTRONICS LTD Teach them to solder! Fun, low-cost
AUDIO VALVES Suppliers of Electronic Components kits for youngsters and soldering workshops:
Place a secure order on our website or call our sales line www.pocketmoneytronics.co.uk
Visit Section 22 All major credit cards accepted
Web: www.bowood-electronics.co.uk
www.partridgeelectronics.co.uk Unit 10, Boythorpe Business Park, Dock Walk, Chesterfield, PIC DEVELOPMENT KITS, DTMF kits and
Derbyshire S40 2QR. Sales: 01246 200222
Send 60p stamp for catalogue
modules, CTCSS Encoder and Decoder/Display
kits. Visit www.cstech.co.uk
PEAK ELECTRONIC DESIGN . . . . . . . . . . . . . . . . . . . . Cover (iii) For editorial address and phone numbers see page 7
PortaPAL-D – Part 2
In the second part of our new go-anywhere Portable PA system, we put together all the
electronics. There’s a lot to it, but we’ve separated out each section to simplify matters. Lots
to look forward to next month!
SiDRADIO – Part 4
Have you wondered if there’s anything else you can do with your SiDRADIO set-up using a
DVB-T dongle – besides receiving AM, NFM, WFM, CW, SSB and DRM? Other applications
are becoming available all the time. Already there’s one that lets you receive DAB+ digital
radio and another to receive some of the many different types of narrow-band digital
mobile radio (DMR).
JPG Electronics
Britannia Maison Mes Amis
Inn
Old Road
Email: [email protected]
ad
oa d
th R
Old H
or
tsw
Cha
Morrisons
Sparks www.beta-eSTORE.com
Retail & Trade Welcome • Free Parking • Google St View Tour: S40 2RB
Published on approximately the first Thursday of each month by Wimborne Publishing Ltd., 113 Lynwood Drive, Merley, Wimborne, Dorset BH21 1UU. Printed in England by Acorn Web Offset Ltd., Normanton,
WF6 1TW. Distributed by Seymour, 86 Newman St., London W1T 3EX. Subscriptions INLAND: £23.50 (6 months); £43.00 (12 months); £79.50 (2 years). EUROPE: airmail service, £27.00 (6 months); £50.00
(12 months); £95.00 (2 years). REST OF THE WORLD: airmail service, £37.00 (6 months); £70.00 (12 months); £135.00 (2 years). Payments payable to “Everyday Practical Electronics’’, Subs Dept, Wimborne
Publishing Ltd. Email: [email protected]. EVERYDAY PRACTICAL ELECTRONICS is sold subject to the following conditions, namely that it shall not, without the written consent of the Publishers first
having been given, be lent, resold, hired out or otherwise disposed of by way of Trade at more than the recommended selling price shown on the cover, and that it shall not be lent, resold, hired out or otherwise
disposed of in a mutilated condition or in any unauthorised cover by way of Trade or affixed to or as part of any publication or advertising, literary or pictorial matter whatsoever.
www.electronicsworld.co.uk