Professional Documents
Culture Documents
Epemag 2000-02
Epemag 2000-02
)HEUXDU\
Copyright © 1999 Wimborne Publishing Ltd and EPE Online, Febuary 1999 - www.epemag.com - XXX
Maxfield & Montrose Interactive Inc
Copyright 2000, Wimborne Publishing Ltd
and Maxfield & Montrose Interactive Inc.,
PO Box 857, Madison, Alabama 35758, USA
All rights reserved.
:$51,1*
The materials and works contained within EPE Online — which are made available
by Wimborne Publishing Ltd and Maxfield & Montrose Interactive Inc — are
copyrighted. You are permitted to download locally these materials and works and to
make one (1) hard copy of such materials and works for your personal use. International
copyright laws, however, prohibit any further copying or reproduction of such materials
and works, or any republication of any kind.
Maxfield & Montrose Interactive Inc and Wimborne Publishing Ltd have used their
best efforts in preparing these materials and works. However, Maxfield & Montrose
Interactive Inc and Wimborne Publishing Ltd make no warranties of any kind, expressed
or implied, with regard to the documentation or data contained herein, and specifically
disclaim, without limitation, any implied warranties of merchantability and fitness for a
particular purpose. Because of possible variances in the quality and condition of
materials and workmanship used by readers, EPE Online, its publishers and agents
disclaim any responsibility for the safe and proper functioning of reader-constructed
projects based on or from information published in these materials and works.
In no event shall Maxfield & Montrose Interactive Inc or Wimborne Publishing Ltd be
responsible or liable for any loss of profit or any other commercial damages, including
but not limited to special, incidental, consequential, or any other damages in connection
with or arising out of furnishing, performance, or use of these materials and works.
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 83
Maxfield & Montrose Interactive Inc
PROJECTS AND CIRCUITS
EASY-TYPIST TAPE CONTROLLER - by Andy Flind 88
Soundly helps copy-typists who can’t type!
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 84
Maxfield & Montrose Interactive Inc
A HIGH PRICE
Is overcharging restricting UK development of electronic trading? Comments in Alan Winstanley’s Net
Work column this month show just how expensive use of the Internet is in the UK in comparison with the
USA. What is also obvious to us (we maintain Web sites both in the UK and in the USA) is that the cost of
UK web space is far higher than that in the USA. The higher call rates, as discussed in Net Work, may not
seem significant, but what really made Internet use and services take off here in the USA was the
introduction of virtually free access for all.
Anyone who has seen any American TV recently cannot fail to realise just how big Internet use is. In
addition to a number of TV programs aimed at web surfers, buying online and so forth, almost every
advert now carries a URL (in fact many adverts are only advertising Web sites). Whilst there are a few
such adverts in the UK, it is obvious that the UK is way behind what is happening on our side of the pond.
Development in the USA has been so rapid and so all encompassing that the FCC are now taking
steps to ensure that a situation of “haves” and “have-nots” does not arise. Their worry is that those with
web access – the vast majority of the US population in one way or another – will have the power of the
knowledge resource behind them, whilst a poorer section of the community may be starved of such
access and find it harder and harder to stay in touch with today’s modern world, thus restricting the job
opportunities open to this group. The FCC are forcing high tech companies to pay for systems that give
access to all by placing computers into schools and communities that cannot afford them themselves.
We can certainly see a (not-so-distant) future where access to the Web, email, and so forth will be
essential for virtually all businesses and, of course, the ability to use the technology is already essential in
many jobs. The problem with technology is that it moves at an ever increasing pace – just look at how far
we have come from nowhere in the last 100 years or so. It is essential for the UK and other countries
around the world to keep up with electronic trading worldwide.
A HIGH PRICE
Speaking of the last 100 years, his month sees the start of our “Technology Timelines” series of
articles, which review how we arrived where we are today (and where we look like ending up tomorrow).
This first installment commences by considering the state of the art as the world was poised to enter the
th
20 Century.
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 86
Maxfield & Montrose Interactive Inc
$ VHOHFWLRQ RI (/(&7521,& %RRNV
IRU +REE\LVW DQG 6WXGHQWV
The Great Logo Adventure
A cartoon-illustrated, family activity book for
0RUH GHWDLOV DUH
exploring animation, graphics, math, geometry,
... Ideal for teaching programming concepts to DYDLODEOH RQ WKH
young people of all ages.
FREE CD-ROM (for PCs and Macs) contains (3( 2QOLQH ZHE VLWH
Logo software plus lots of other stuff.
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 87
Maxfield & Montrose Interactive Inc
($6<7<3,67 7$3( &21752//
E\ $1'< )/,1'
Improve keyboard skills, audio/visual presentations, thing played is intelligible, to
and script prompter remove the need for back-
spacing, and it should be possi-
This little project was devised requires a “transcribing ma- ble to control it from a
to speed the task of typing text chine” as used by audio typists. footswitch.
into a computer, though it will The difference between these This is what the Easy-Typist
probably find plenty of other uses. and ordinary tape players is that does. The text is recorded in
It plays recorded speech a few they can be started and stopped short “bursts” of as many words
words at a time, waiting for a almost instantly and can “back- as the typist can reasonably re-
prompt before continuing. This space” to play the last few member, with brief silences of
allows people who cannot type words again, usually with a about a second between bursts.
without looking at the screen or footswitch control. They are ex-
pensive though, and rarely This is much easier to do
keyboard to type rapidly and con- than it sounds and requires very
tinuously since it removes the found outside the office environ-
ment. little practice, certainly far less
need to refer frequently to the than the “training” required by
text being typed, which in the However, an ordinary cheap most voice-recognition software
case of handwriting can be ex- microcassette recorder can be products. It can then be played
tremely tedious. used provided a couple of extra back with the recorder con-
There are, of course, other features are added. It should be nected to this project which
ways to enter text into a com- prevented from stopping in the stops it automatically at each
puter. Printed matter of suitable middle of a word so that every- brief silence, allowing the pre-
quality can be scanned and read
with optical character recognition,
but this assumes that a reason-
ably powerful computer is avail-
able together with the software
and a scanner, and it cannot be
used with handwriting.
Voice recognition software is
now available but this requires
serious computing power and still
has an error rate which many
people find unacceptable. Also, it
is difficult to see how this kind of
software will ever be able to deal
with words which sound the
same, such as “to”, “too” and
“two” in the foreseeable future.
C"
?ED@ED CD1BD
D? 6??DCG9D38 D9=5B
# h 11
?>?66
51B@8?>5 !% C53
$%F
2!
@<"
^
3!
Q
!
S
DB!
P
R
3)
!
"["
B)
U
!
93#T
(
old computer that will run a wordprocessor, or even
$
)
(
with a typewriter.
$
93$
C9'&&
#
!!
"
P
93#S
3(
)#2
OTHER APPLICATIONS
!
%
$
!"
!#
93#R
$%F
)#2
P
$
#= )
)#2
B(
3%
'
P
3$
$'
:
B%
93"R
<=#)#
&
D?
C!
C;"
!
<9>
"";
B#
&([
3"
B"
HOW IT WORKS
&!
93!
'
performance.
B9>7
D?
C;!
D9@
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 89
Maxfield & Montrose Interactive Inc
&RQVWUXFWLRQDO 3URMHFW
restarts a timer which runs for C3 about half a second to “ground” (0V) to simplify the de-
about half a second to deal with recharge via R4 to the point sign.
the natural gaps found even in where IC2b’s output returns to the Supply decoupling capaci-
continuous speech. high state, giving the “timer” ac- tors are provided, these are C5,
The output from this is com- tion needed to keep running with C6, C9, and C10 . The unusu-
bined with the input from the normal speech. ally large value of C9 is in-
footswitch so that either will op- Combination with the signal tended to absorb the start-up
erate the output, again through from the footswitch is performed surges of the recorder’s motor.
a timer, which in this case oper- by the Schmitt NAND gate IC3a. Output to the recorder is from
ates only when the circuit Taking either of the inputs of this plug PL2, whilst switch S2 is
switches off to ensure a positive gate low causes its output to go provided to switch off the power
turn-off action. The footswitch high. when the unit is not in use.
also has a timer, so that a quick When footswitch S1 is oper-
press always operates the ated it discharges capacitor C4.
recorder for long enough to CONSTRUCTION
The time taken for resistor R7 to
reach the next bit of speech. recharge this capacitor guaran- Construction of this project
Finally, there is an elec- tees around 1 5 seconds running
¬
is straightforward although it
tronic switch to control power to time following switch operation. does call for a fine-tipped sol-
the recorder itself. To avoid the dering iron. All the components
The next two gates, IC3b and are assembled on a piece of
need for modifications to the
IC3c, ensure a positive switch-off 0 1in. matrix stripboard, 14
recorder it is started and ¬
action. When the input from IC3a strips by 33 holes. The topside
stopped by using an external
goes low, the output of IC3b goes component layout and details of
power supply and turning this on
high and the output of IC3c goes breaks required in the underside
and off. Plugging an external
low. This is fed back to the other copper tracks are shown in
supply into these recorders nor-
input of IC3b through capacitor Fig.3.
mally disconnects the internal
C7, ensuring that the “off” state is
batteries, so the Easy-Typist The thirty-eight breaks
maintained for at least the 1 5
¬
supplies power, in this case via should be made first. It’s worth
a transistor. seconds it takes for this capacitor
to charge through resistor R8. checking these carefully with a
strong magnifying glass before
continuing as an almost invisi-
CIRCUIT POWER PLAY ble strip of copper sometimes
DESCRIPTION Finally, IC3d inverts the sig-
remains around the edge of a
The full circuit diagram for break and can be very difficult
nal to give the correct polarity of
the Easy-Typist is shown in to find later.
base drive to transistor TR1,
Fig.2. The input signal from which controls the power to the Following this the 21 links
plug PL1 is returned to the ear- microcassette recorder. Diode D1 should be fitted. These should
phone socket SK1 but is also reduces the voltage slightly as a be followed by the resistors,
connected to the amplifier 4 5V supply with only the drop in-
¬
diode D1, the small capacitors,
opamp, IC1 which has a voltage troduced by TR1 might damage a and transistor TR1. Finally, the
gain of eleven at 650Hz. An recorder intended to operate from sockets for the four ICs should
overall “speech” bandwidth of 3V. In practice a single diode be fitted, followed by the elec-
about 200Hz to 2kHz is set by here gives about the right output trolytic capacitors.
capacitors C1 and C2. voltage. It will be seen that some of
Whenever the amplifier out- The supply for this circuit is the small ceramic capacitors
put exceeds the reference level taken from three “AA” cells giving have their leads bent outwards
set by Sensitivity control VR1, 4 5V. The SI7660 “voltage con-
¬
to accommodate a wider hole
comparator IC2a discharges ca- pitch; where this is necessary
verter” IC4 generates a negative
pacitor C3, causing the output care is needed to avoid break-
supply for the opamp and the
of IC2b to go low. IC2a and ing them. There are seven ex-
comparators, which gives them a
IC2b have open collector out- ternal connection points on the
more suitable working voltage
puts to which load resistors R4 board. The use of solder pins
and also allows the battery nega-
and R6 are connected from the for these is highly recom-
tive to be used as the circuit
positive power supply. It takes mended as they provide more
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 90
Maxfield & Montrose Interactive Inc
&RQVWUXFWLRQDO 3URMHFW
! % ! !% " "% # ##
robust connections, which can 1 F
be made from the component 3
2
3
B ! B$
side. ! B 3
B
B
4 B &
#
" " ' 93#
5
93! 3
B
6
93"
# (
7 3
3$
COMPONENTS 8 '
B
9 B F
: % DB! )
Resistors ; 3
3)
3 S
4!
R1 4k7 < 3(
93$ & ! 3%
R
Q [
R2 68k = U
R3 22k >
R4 1M
R5 100 ohms
! % ! !% " "% # ##
R6 10k
>
R7 39k
=
R8 3M9 <
R9 2k2 ;
All 0.6W 1% metal film :
9
Potentiometer 8
VR1 1k rotary carbon, linear 7
6
Capacitors 5
C1, C6, C10 100n resin-dipped 4
ceramic (3 off) 3
C2 2n2 resin-dipped ceramic 2
C3, C7 470n resin-dipped 1
ceramic (2 off)
C4 47u radial electrolytic, 10V Fig.3. Easy-Typist stripboard component layout and details
C5 100u radial electrolytic, 10V
C8 10u radial electrolytic, 63V of breaks (38) required in the underside copper tracks.
C9 1000u radial electrolytic, 10V
Semiconductors
D1 1N4001 1A 50V rectifier diode
TR1 ZTX550 pnp silicon transistor
IC1 TL061 opamp
IC2 LM393 dual comparator
IC3 4093B CMOS quad 2-input
NAND Schmitt trigger
IC4 SI7660 voltage converter
Miscellaneous
PL1 3.5mm mono jack plug
PL2 DC power plug (see text)
SK1 3.5mm mono chassis socket
SK2 6.35mm mono chassis socket
S1 footswitch, momentary
press-to-make type
B1 4.5V battery pack (3 x AA
cells in holder).
See also the FIRST TESTS Apart from a brief surge as the
SHOP TALK Page! decoupling capacitors charge,
A useful initial test is to there should be virtually no cur-
power the board without any of rent drain. The reason for this
Approx. Cost
Guidance Only $24 the ICs inserted, preferably from
a current-limited bench supply.
test is to check there are no ma-
jor short-circuits present without
(Excl. footswitch & batts)
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 91
Maxfield & Montrose Interactive Inc
&RQVWUXFWLRQDO 3URMHFW C"
F5 F5
If all seems well IC4 can be ?>?66
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 93
Maxfield & Montrose Interactive Inc
$ VHOHFWLRQ RI (/(&7521,& &'5206
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 94
Maxfield & Montrose Interactive Inc
92/7$*( 021,725 E\ 52%(57 3(1)2/'
Keep an eye on your battery’s condition with this tion of the monitor is a critical
low-cost starter project. factor. There is no point in hav-
+V ing a monitor that draws such a
This simple Voltage Monitor high supply current that battery
device has two light-emitting life is greatly reduced.
diode (LED) indicators that This circuit has a typical
switch on if the monitored sup- Da current consumption of around
ply voltage falls below separate Ra 0 6mA under standby condi-
¬
VOLTAGE
threshold levels. The obvious COMPARATOR tions. This should not greatly
application is in battery oper- Rc
reduce the operating life of
ated equipment where erro- + even a low capacity battery
neous results could be obtained such as a PP3 type. The current
VREF
if the battery potential falls be- consumption increases by about
low a critical level. Rb (1.2V) 4mA per LED when the circuit is
Having twin threshold levels activated.
is very useful, as one can be set 0V
slightly above the critical volt-
age, and it will then give a warn- Fig.1. The basic COMPARATOR
ing if the battery will soon need arrangement for each The Voltage Monitor circuit
replacement. The circuit can voltage is based on the two voltage
also be used with mains pow- comparators in an LM393N IC.
ered equipment to monitor the A voltage comparator is very
DC supply voltage, and it will +V
then give a warning if the supply
voltage drops to an inadequate R1 R4 D1 a R6 D2 a
RED RED
level due to a malfunction. 82k 47k L.E.D. k 62k L.E.D. k
ON THE THRESHOLD
R2 R5 R7 R9
With the specified resistor 1M 2k2 820k 2k2
values the circuit provides
threshold potentials of 10V and C1 3 8 5
+ +
12V, but by altering the values 47µ
IC2a 1 IC2b 7
of four resistors these voltages 2 LM393 6 LM393
are easily changed. They can 4
be set at any potentials from
about 3 5V to 30V, but note that
¬ R3
k
R8
the supply voltage to the moni-
120k IC1 120k
ICL8069
tor circuit must never exceed 36 1.2V a
volts. The mathematics required 0V
to work out the modified circuit Fig.2. Full circuit diagram for the Voltage Monitor. It is essen-
values is extremely simple – tial that an in-line fuseholder, with a 100mA fuse, is included in
more later.
the positive supply input lead if the monitor is to be installed in
For battery monitoring ap- a car, boat, caravan etc.
plications the current consump-
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 95
Maxfield & Montrose Interactive Inc
&RQVWUXFWLRQDO 3URMHFW
similar to an operational ampli- tector circuits is shown in Fig.1.
fier (opamp). Like an opera- The inverting input (–) of the COMPONENTS
tional amplifier, each compara- comparator is fed with a highly
tor has inverting (–) and non- stable reference potential of Resistors
R1 82k
inverting (+) inputs. If the non- 1 2V, and the non-inverting in-
¬
R2 1M
inverting input is at a higher put (+) is fed from the supply R3, R8 120k (2 off)
voltage than the inverting input lines via a potential divider (Ra/ R4 47k 5% carbon film
the output goes high, and if the Rb). A certain fraction of the R5, R9 2k2 5% carbon film (2 off)
R6 62k
inverting input is at the greater supply voltage is therefore fed R7 820k
voltage the output goes low. to the non-inverting input, and All 0.6W 1% carbon film unless noted
This is again the same as this fraction is controlled by the
Capacitor
for an opamp, but there is a values of resistors Ra and Rb. C1 47u radial electrolytic, 40V
subtle difference in that the out- Suppose that the potential Semiconductors
put stage of a comparator is an divider provides one tenth of the D1, D2 5mm red LED (2 off)
open collector type. In other supply voltage to the non- IC1 ICL8069 voltage reference
words, there is a switching tran- inverting input. With a supply IC2 LM393N dual comparator
sistor at the output that is used potential of 12V or more there Miscellaneous
to control a load of some kind. will be 1 2 volts or more at the
¬
Stripboard, size 0.1 inch pitch,
The load in this case is a LED having 20 holes by 17 strips; 8-pin
non-inverting input, and the out-
DIL socket; multistrand connecting
indicator. put transistor of the comparator wire, solder pins, solder, etc.
The basic scheme of things will be switched off.
used in each of the voltage de- See also the
If the supply voltage falls
SHOP TALK Page!
2 4 6 8 10 12 14 16 18 20
1 3 5 7 9 11 13 15 17 19
Approx. Cost
A
B
C
A
B
C
Guidance Only $8
IC1 TOP VIEW
k D D
E D1 a D2 a E
F +V below 12V, the potential fed to
R
H R k k H
6
METAL CAN R
I 4 5 R
I low 1 2V, and the inverting input
¬
R 9
J 2 k R
J is then at the higher voltage. The
K K
7 output transistor of the compara-
N.C. k a L + L
PLASTIC M M tor then switches on and activates
a C1
PACKAGE N R
R
N LED Da. Resistor Rc limits the
O 3 O
8 output current to the required
P P
Q 0V level.
2 4 6 8 10 12 14 16 18 20
1 3 5 7 9 11 13 15 17 19
Q
P
Q
P
CIRCUIT DETAILS
O O The full circuit diagram for
N N
M M
the Voltage Monitor appears in
L L Fig.2. The two comparators,
K K within IC2, share a common volt-
J J
age reference, and this is a sim-
I I
H H ple shunt regulator that has resis-
G G tor R4 as the load resistor and
F F IC1 as the voltage stabilizer.
E E
D D The ICL8069 used in the IC1
C C
position is a highly accurate and
B B
A A stable voltage reference chip, and
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 not a simple Zener diode. It will
operate efficiently at currents as
Fig.3. Stripboard topside component layout and details of low as 50uA, which is important in
breaks required in the copper tracks. this application where low current
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 96
Maxfield & Montrose Interactive Inc
&RQVWUXFWLRQDO 3URMHFW
consumption is a definite asset. upper arm of the divider. used to detect low threshold
It operates at a current in the The required value is unlikely voltages of around five volts. To
region of 200uA in this circuit. to conveniently match up with a compensate for this, resistors
THRESHOLD preferred value, and this is cer- R5 and R9 should be reduced
tainly the case here. The nearest from 2k2 to 1k.
VOLTAGES preferred value to 630k is 620k, Similarly, at high threshold
The threshold voltage of the which is actually an error of under potentials of around 20V to 30V,
detector based on IC2a is deter- two-percent. In some applications the LED current will become rel-
mined by the values of resistors this margin of error is acceptable, atively high, although it should
R1, R2, and R3. Two resistors and it would then be in order to still be no more than about
in series are used in the upper use a value of 620k for resistors 13mA per LED. Increasing the
arm of the potential divider be- R1 or R6, and a link wire for R2 value of R5 and R9 to 3k9 will
cause this enables the threshold or R7. If an error of two percent is keep the LED current at about
value to be set accurately using not acceptable, a 10k resistor and 5mA.
ordinary preferred values. a 620k component in series give The operating current of IC1
With resistor R3 at 120 kilo- exactly the required resistance of varies enormously over the op-
hms (120k), the threshold volt- 630k. erating voltage range of the cir-
age is equal to one volt per 100 Things will not always work cuit, but with the specified value
kilohms of resistance through out quite this well, and in some of 47k for resistor R4 the oper-
the potential divider. This resis- cases it might be necessary to ating current remains within the
tance is fractionally more than accept a small error even if two acceptable range for the
1200k (1 2 megohms), giving a
¬ resistors are used. However, the ICL8069.
threshold voltage of 12V. error should only be a fraction of
The switching voltage of the one percent, which is insignifi-
cant. CONSTRUCTION
other comparator is controlled
by the values of resistors R6, Construction of the Voltage
R7, and R8. With fractionally Monitor project is extremely
CURRENT AFFAIRS simple indeed, and it should be
more than 1000k (1M) of resis-
tance through the potential di- The LED current and bright- within the capabilities of com-
vider this gives a threshold po- ness will be quite low if the unit is plete beginners. The circuit is
tential of 10V.
It is easy to work out the
resistance values for other
threshold voltages provided re-
sistors R3 and R8 are left at a
value of 120k. Multiplying the
required voltage by one hun-
dred gives the total resistance
through the potential divider in
kilohms. Deducting 120 from
this then gives the total resis-
tance through the upper section
of the divider. In other words,
this gives the required series
resistance through R1 and R2,
or R6 and R7 in the second
voltage detector.
As an example, suppose
that a threshold potential of 7 5V ¬
is required. Multiplying 7 5 by
¬
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 98
Maxfield & Montrose Interactive Inc
&RQVWUXFWLRQDO 3URMHFW
with a low current fuse (about supply voltage of a mains pow-
100mA) in the positive supply ered project, but this is some-
lead if the unit is used to moni- thing that should not be at-
tor the supply of a car, boat, tempted by those of limited ex-
caravan, etc. Otherwise there is perience.
a risk of a fault causing a very Make sure the monitor is
large current to flow, which connected to the supply with the
could result in a fire. right polarity. The semiconduc-
Experienced constructors tors and C1 could be damaged
should have no difficulty in us- if the supply connections are
ing the unit to monitor the DC reversed.
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 99
Maxfield & Montrose Interactive Inc
$ VHOHFWLRQ RI (/(&7521,& %RRNV
IRU +REE\LVW DQG 6WXGHQWV
Programming Micro- Designus Maximus
controllers in C More Unleashed
Info or Buy Now!
This book opens with a quick (Banned in Alabama)
review of the essentials of C
programming and then exam- This unabridged and unexpur-
ines in depth the issues faced gated tome contains the defini-
when writing C code for micro- tive collection of Clive "Max"
controllers. Maxfield's wildly popular arti-
cles published in leading elec-
tronics magazines. FREE CD-
ROM contains a logic synthe-
3D Graphics Super- sis tool, a digital logic design
computing on Win- system, & ...
dows NT
Explains the concepts behind
2D and 3D computer graphics.
In addition to easy to under- Simple, Low-Cost
stand text, the book is packed
with superb color graphics that Electronics Projects
fully illustrate the points behind More Info or Buy Now!
each topic. ($9.99 Special Of- Whether you're a beginner to
fer! -- While Stocks Last!) electronics or an old hand, don't
miss this new book of do-it-
yourself electronics projects.
Integrated Circuit
Hobbyist Handbook
More Info or Buy Now! 0RUH GHWDLOV DUH
DYDLODEOH RQ WKH
Work with CMOS or TTL digi-
tal ICs? Use op amps and
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 100
Maxfield & Montrose Interactive Inc
3,& 9,'(2 &/($1(5 E\ 0,.( '(/$1(<
BURST
INFORMATION
National’s web
BLACK
LEVEL
site.
'NORMAL' SYNC PULSES
LINES 10-21 AFTER
VERTICAL SYNC PULSE
Breadboar-
SYNC TIPS
ding revealed
some strange
ADDITIONAL PULSES
THESE VARY IN HEIGHT
goings-on
AND REPEAT FREQUENCY
indeed! It was
Fig.1. Sync pulse showing not surprising
interference details. that the portable PIC Video Cleaner showing input SCART
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 101
Maxfield & Montrose Interactive Inc
&RQVWUXFWLRQDO 3URMHFW
COMPONENTS
Resistors
R1 680k
R2, R7, R8 75 ohms (3 off)
R3, R4 750 ohms (2 off)
R5, R6, R9 1k (3 off)
All 0.6W 1% metal film
Potentiometer
VR1 2k cermet preset
Capacitors
C1, C2, C3, C7 to C10
DETAIL OF SYNC PULSE AND BURST 100n polyester (7 off)
are added between the end of C4, C5 22p ceramic disk (2 off)
the frame-sync pulse and the C6 6u8 axial electrolytic, 16V
A D E
first video information. They C11 22u axial electrolytic, 16V
C12, C13 1000u radial electrolytic,
repeat at intervals of about two
16V (2 off)
seconds and are themselves in C14, C15 1u tantalum bead (2 off)
sync with the line-sync pulses.
Semiconductors
In this way they do not stop the D1 5mm red LED
average TV from working REC1 1A 25V bridge rectifier
satisfactorily, but prevent B C
IC1 LM1881N video sync separator
copying (despite the fact that IC2 PIC16F83-10P microcontroller
preprogrammed (10MHz version)
Copyright laws allow you to Fig.3. Sync timing of the PIC IC3, IC4 AD810 low-power
make a back-up copy of any used to clean up the output current-feedback video amp
legally purchased tape for your from the video recorder. (A) with disable (2 off)
own use), and in my friend’s IC5 7805 +5V 1A voltage regulator
Enable gating to check for IC6 7905 -5V 1A voltage regulator
case sometimes interfere with a
sensitive TV. falling edge of line
Miscellaneous
(horizontal) sync pulse. (B) X1 10MHz crystal
Line Sync detected. Turn on T1 3VA mains transformer with
ON THE LINE IC3 to allow video sync 0V-6V,0V-6V@0.25A secondary
SK1, SK2 21-pin right-angle
Clearly it would be through. (C) Turn off IC3, SCART socket (2 off)
necessary to remove the turn on IC4 and allow black SK3 2-way PCB-mounting mains
interference pulses and replace level through. (D) Turn off
connecting block (10A 230V AC)
them with an appropriate DC
level, since the TV or VCR
IC4, turn on IC3 to allow Printed circuit board available
burst through from video. (E) from the EPE Online Store , code
requires a reference voltage to 7000251 (www.epemag.com);
set its brightness. The first Turn off IC3, turn on IC4 to plastic case, size 44mm x 146mm
twenty or so lines following the allow black level voltage x 75mm internal; 8-pin DIL socket;
vertical sync pulse are not seen 18-pin DIL socket; L-shaped support
through. Wait for approxi- metal bracket (4 off); multistrand
on a correctly set up TV, so it mately 60us before looping connecting wire; mains cable; 3mm
does not matter if they are lost. back to (A). nuts, bolts, and washers (6 off
However, it is necessary to each); PCB spacer (6 off); rubber
grommet; P-clip for mains lead; LED
allow the color burst and correct must also be taken into account clip; sleeving, solder, etc.
horizontal sync pulses through when designing any circuit.
during this time, otherwise it BLOCK DIAGRAM See also the
would upset the operation of the SHOP TALK Page!
TV. Therefore, it is not just a A simplified block
case of erasing all information schematic for the PIC Video
Approx. Cost
up to the start of the video Cleaner is shown in Fig.2.
Guidance Only $64
information. The Sync Separator (Excl. SCART skts & mains cable)
There is occasionally more LM1881 splits the video sync
signal into its constituent parts, the PIC micrcontroller. The PIC
interference added for a period
two of which, Composite Sync synchronizes with these two
of about a dozen lines before
and Frame Sync, are used by inputs, and turns on either the
the vertical sync pulse, and this
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 102
Maxfield & Montrose Interactive Inc
&RQVWUXFWLRQDO 3URMHFW
VIDEO
VCR AMPLIFIER
(AD810)
amplifiers (Fig.4), which have a
disable mode built in, thereby
simplifying multiplexing. One is
VIDEO used for the video signal, while
SWITCHING
the other is merely for switching
the black level voltage.
It was found in tests that the
COMP
SYNC TP1 AD810s were very stable, not
prone to bursting into
OUTPUT
TO TV
oscillation, provided the PCB
SYNC
SEPARATOR PIC16F83 was carefully laid out.
(LM1881)
The power supply is
FRAME TP2
SYNC straightforward. The PIC
requires +5V, which will suit the
LM1881, and the AD810s need
a split plus and minus 5V. Both
of these are produced in the
BLACK circuit by a split secondary
VR1 LEVEL
CLAMP transformer and two voltage
regulators.
TP3
VIDEO
AMPLIFIER Note that the supplies to
(AD810)
each IC are individually
Fig.2. Video Cleaner block diagram showing video sig- decoupled with 100nF
nal and control signal paths. capacitors. The regulators
MUST be decoupled with solid
video switching IC (IC3) or the IC2, simply counts in the Line tantalum capacitors placed very
black level clamp IC (IC4). Sync pulses. close to their pins. They have a
FIRMWARE After this period, more far superior (less) leakage factor
Most of the work is done by multiplexer switching is needed to than electrolytic capacitors.
the PIC microcontroller, and the eliminate the interference added Standard right-angled PCB-
sync timing waveform is shown just before Frame Sync goes low. mounting SCART connectors
in Fig.3. The cycle begins with The PIC then checks for Frame are used for signal input and
the rising edge of the Frame Sync and when this is detected output. If your VCR does not
Sync Pulse, following this the the whole cycle repeats for the have SCART connectors,
PIC waits for the next falling even field, and so on, ad simply connect the video output
edge of the Line Sync Pulse infinitum! to pin 20 of the SCART socket
(A). It is this which is used to SK1, and take the output from
start the cycle and subsequently CHOICE OF pin 19 of SK2. It is not
determine which of the two necessary to connect the sound
AD810 multiplexers to turn on COMPONENTS through the circuit in this case.
and which to turn off. Initial tests using a 4MHz PIC
microcontroller proved that it was
Each Line Sync pulse is
too slow; the delay between
CIRCUIT DETAILS
detected and counted as it
arrives. In this way the PIC detecting a sync pulse and The sync separator, PIC
remains in sync with the responding to it was too great. microcontroller, and amplifier
incoming video signal line-by- Changing to a 10MHz device stages for the PIC Video
line. solved this problem. There is still Cleaner are shown in Fig.4. The
some jitter, but this has no regulated power supply circuit
After the first 25 or so lines diagram is shown in Fig.5.
adverse effect on the observed
following Frame Sync, all of the (Note that this circuit is based
image.
video information is allowed on a UK 240V 50Hz mains
through. So for about the next Video switching in the Video
Cleaner is carried out by a pair of power supply, and will have
290 lines, C4 is turned off and
Analog Devices AD810 video to be modified for other
IC3 is turned on and the PIC,
countries’ power supplies. In
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 103
Maxfield & Montrose Interactive Inc
&RQVWUXFWLRQDO 3URMHFW
VIDEO IN
FROM VCR
SK1
1
+5V 2
3
4
5
6
C6 7
6µ8 C8 R5 C10 8
100n 1k 100n 9
8 10
3 7 0V 0V 11
+ 12
6 13
IC3 14
C2 2 AD810 15
100n R2 14 16
75Ω 1 N.C. R4 17
4 18
C3 N.C. 750Ω
100n 19
8 20
21
+V 0V
Fig.4. Main circuit diagram of the PIC Video Cleaner showing the sync separator,
PIC microcontroller and input/output stages.
T1
3VA IC5
SK3/2 1 7805 OUT 2
6V-0V-6V IN +5V
120V 6V COM
REC1 R9
1A C12 3 C14 1k
25V 1000µ 1µ
0V 0V – + D1
RED
120V 6V 0V
0V
SK1
2 20
SCART GND
1
21
120V
k D1
6V 0V
+
C6
C2
a C 0V T1
R1
3 C
R C1 –5V
9
9 6V 120V
R2
R C7
C 6 C 0V 0V
TP2 10 8
C5 R3
R
5
TP3 MAINS
C4 VR1 R4
TP1 INPUT
IC5 +
+5 1 ,1 SK3
R7
C14
2 &20 C12 1 2
R8
GND + 3 287
+
C11 –5V
21 1 IC6 + +V
C15
SCART + 1 &20
20 2
2 ,1 C13 REC1
3 287
–V
SK2
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 105
Maxfield & Montrose Interactive Inc
&RQVWUXFWLRQDO 3URMHFW
divider network of resistor R5 transformer last. order to set up the PIC Video
and preset VR1. Do not use IC sockets for Cleaner. Select the video
Resistors R7 and R8 IC3 or IC4. Instead, these channel on the TV. Play back a
terminate the output of the should be soldered directly to good quality video tape through
AD810s at 75 ohms and the board in order to avoid the video recorder and select
capacitor C11 couples the affecting the video signal due to the “AV” channel on the second
output to the TV. parasitic capacitance – be as recorder. This should give direct
quick as possible when carrying picture feed-through from
out this operation. SCART to SCART. Now vary
CONSTRUCTION The PIC IC2 and IC1 are
VR1 until clean whites and a
stable picture are obtained. This
BE AWARE THAT RAW both mounted in sockets. These completes setting up.
MAINS IS PRESENT ON THE sockets should be turned-pin
BOARD. THIS MAY PROVE types if possible for reliability. Complete mounting the unit
LETHAL IF TOUCHED! in its case, carefully pushing
The unit should be housed LED D1 into position as you
Before undertaking any in a plastic case, with holes cut close up the top and secure the
testing, take the precaution of in it for the SCART sockets and mains cable.
placing insulating tape over LED. If the box suggested is
the underside of the used the SCART sockets will
completed circuit board just protrude, making them FAULT FINDING.
where the soldered easier to access when the box If things do not work and the
connections protrude before is assembled. component placement checks
handling the unit with the The SCART sockets are out, carefully check the board
supply switched on. supported with metal L-shaped for solder-whiskers or dry joints.
Construction of the PIC brackets. This helps to prevent Check that the 5V supplies are
Video Cleaner project is based the soldered connections failing both present and correct to
on a single-sided printed circuit due to stress when inserting or within 100mV.
board (PCB). All the removing their plugs.
If these are both correct
components, with the exception The circuit board is disconnect the power and
of the power-on light-emitting mounted with six 3mm bolts and remove the PIC. This allows the
diode (LED) D1, are mounted spacers onto the bottom of the two disable lines to IC3 and IC4
directly on the PCB. D1 is box. Using the unpopulated to be connected to ground (0V)
mounted on one side of the PCB as a drilling template will or +5V without damaging the
case and short wires are ensure correct alignment of the PIC.
soldered to it and its position on mounting holes.
the PCB. With IC2 removed first
establish that a normal tape will
The printed circuit board TESTING AND play back through your TV by
component layout and connecting test point TP1 to
(approximately) full-size copper SETTING UP +5V and TP2 to ground (0V).
foil master are shown in Fig.6. Having completed placing Doing this turns the video signal
This board is available from the the components, check that the ON, and disables the rest of the
EPE Online Store (code ICs and electrolytic capacitors circuit.
7000251) at www.epemag.com are mounted correctly. Then If this works, reverse the
Component placing should check for short circuits on the leads and use a multimeter to
cause no problems. Check the 5V lines with a meter. If these check that the black level
orientation of the ICs and check out apply mains to the voltage is present at test point
electrolytic capacitors before circuit and confirm you have TP3 and is also enabled via IC4
soldering them in place. There +5V and –5V supplies present, on the junction of R7/R8/C11.
are a few jumper/test points and and nothing is getting hot. This should vary from zero to
these should be left long There is only one preset, so 3 3V, as the preset is turned.
¬
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 106
Maxfield & Montrose Interactive Inc
&RQVWUXFWLRQDO 3URMHFW
to an oscilloscope check that caused by dirty or worn heads. A ready-programmed PIC
the 10MHz clock is running on Try using a head cleaning tape chip is also available and full
pins 15 and 16 of IC2, and that first, and if this does not correct details, including the above
the MCLR line, pin 4, is at +5V. the problem the VCR should be options, can be found in the
The sync pulses to the PIC swapped for another, newer, Shoptalk page in this issue.
should be clean and the ’scope one.
should have no trouble locking SOFTWARE IN THE FUTURE
on to the VSYNC line.
The software for the PIC This circuit should be fairly
Should the sync pulses Video Cleaner may be
appear to be unstable, having a future-proof since all the work is
downloaded Free from the EPE done by the PIC. It should only
variable length and frequency Online Library at
then the playback VCR is be a matter of re-writing the
www.epemag.com firmware to overcome any
suspect. This problem would be
changes, which may come
along.
My friend’s son? Quite
happy!
Acknowledgments
Analog Devices AD810
datasheet. Antii Paarlahti at
www.cs.tut.fi FAQ and details
of line pulses. National
Semiconductor’s LM1881
datasheet. This datasheet is
also a useful source of
information on the composition
of the video signal and sync
pulses.
*Macrovision is a registered
trademark of Macrovision
Corporation, USA
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 107
Maxfield & Montrose Interactive Inc
,QWHUHVWHG LQ SURJUDPPLQJ 3,& PLFURFRQWUROOHUV"
/HDUQ ZLWK 3,&WXWRU E\ -RKQ %HFNHU
This interactive presentation uses the specially
developed Virtual PIC simulator to show exactly
what is happening as you run, or step through,
a program. In this way, the CD brings the EPE
PIC Tutorial series to life and provides the
easiest and best-ever introduction to this
subject.
Two levels of PICtutor hardware are available -- Standard and Deluxe. The Standard
unit comes with a battery holder, a reduced number of switches, and no displays. This
version will allow you to complete 25 of the 39 tutorials -- it can be upgraded to
Deluxe at a later date, by adding components, if required.
The Deluxe development kit also has a battery holder (so it can be used around the world), all
switches for both PIC ports, plus LCD and 4-digit 7-segment LED displays. It allows you to
program and control all functions and both ports of the PIC, and to follow all 39 tutorials
on the CD-ROM.
All hardware is supplied fully built and tested and includes a PIC16F84 electrically erasable
programmable microcontroller.
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 1999 - www.epemag.com - 108
Maxfield & Montrose Interactive Inc
),1' ,7 '21·7 /26( ,7
E\ 7(55< '( 9$8;B%$/%,51,(
Locates almost anything in the dark! fitted to the box so that, say, a
bunch of keys or a torch could
be hung from it (see
A fuse blows and the lights go diode (LED) begins to flash photograph).
out. Everything goes dark. You briefly about once every five It would also be possible to
fumble for the torch – you know seconds. This helps to locate attach the unit to a portable
it’s there somewhere – but the item. item. In some cases, it might
where? If preferred, you could even be possible to build the
Let this little gadget show you increase or reduce the flash circuit panel inside a piece of
where! rate. However, any increase equipment but the reader will
would reduce the life of the need to make certain that he or
battery. she is totally aware of any
FIND IT safety implications and must be
competent at doing the job
With the battery-powered LIGHTING THE WAY correctly.
Find It circuit, you will always be
able to locate a torch (flashlight), There are many ways of If you are going to use the
bunch of keys, door lock – just using this circuit and readers device to locate a door lock, it
about anything – in darkness! will, no doubt, have their own may be convenient to have only
ideas. One method would be to the LED showing next to the
While sufficient light reaches attach the unit to a wall close to
a sensor (light dependent resistor lock and connect it to the unit
the object to be “found”. mounted on the inside of the
– LDR) on the unit, nothing Alternatively, a hook could be
happens. However, when it is door.
dark enough, a light-emitting
VR1 R3 10M
1M 2M2
R5
SEE
TEXT
R1 4M7
1M
7
2 8
B1
,& 6 3V
3 ,&/
+ (2 x AA)
4 4 8
R2 RESET VCC
(5M a 7
DIS.
DARK) D1 R6
R4
k
IC2 220k
2M2 ICM7555IPA
3 6
OUT THRES.
2
TRIG
GND C1
1 470n
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 109
Maxfield & Montrose Interactive Inc
&RQVWUXFWLRQDO 3URMHFW
RED
As well as household VR1
R5
applications, this circuit will be R1 R3
a
found handy in many outdoor
D1
pursuits. Campers and anglers LINK
R6 k (+V)
will certainly find uses for it. Note R2 BLACK (–V)
R4
that, in some cases, it will be C1
necessary to waterproof the box
and this is left up to the
constructor. SOLDER JOINT
Fig.3
number of hours of darkness in a
given 24 hour period. It also Fig.2. Printed circuit board component layout and
depends on what degree of
illumination is set for the unit to (approximately) full size copper foil master
begin operating. pattern. Fig.3 (inset). How to make up R5 by
While sufficient light reaches
wiring two resistors in series.
the sensor (so that the LED is
correspondingly dimmer down a very high resistance, the
off), the current requirement of
to about 2V which is the continuous current flowing
the prototype circuit is only 5uA
practical end point. through them is only a fraction of
which may be regarded as
CIRCUIT a microamp.
negligible. While the LED is
flashing, this rises to an average DESCRIPTION The opamp’s non-inverting
250uA approximately. input, pin 3, is connected to a
The complete circuit further potential divider. The top
This small operating current diagram for the Find It project is arm of this comprises preset
is achieved by using a short duty shown in Fig.1. This may be potentiometer VR1 connected in
cycle – that is, the LED is off for considered to comprise two series with fixed resistor R1. The
much longer than it is on – about sections. The first is the light lower one is simply light-
65 times longer. Thus, in each sensing part based on IC1 and dependent resistor (LDR) R2.
five second cycle the LED is only associated components and the
actually operating for some 0 08s As the intensity of light
¬
second, the LED flasher
(80ms). reaching the LDR’s sensitive
centered on IC2.
surface falls, its resistance rises
Although while glowing the Integrated circuit IC1 is an and so does the voltage across it
LED draws about 10mA, the operational amplifier (opamp). and hence at the non-inverting
average requirement is therefore This has been specially selected input, pin 3. Depending on the
only 150uA approximately. This is for its ability to operate from a adjustment of VR1, this voltage
added to the 100uA low supply voltage combined will exceed that at the inverting
approximately required by the with an exceptionally small input, pin 2, at the operating light
rest of the circuit, giving a total of standby operating current. level.
250uA. If it is assumed that there
Looking at the light sensor A simple rule about opamps
are eight hours of operation in a
stage first, the opamp inverting is this. When the voltage applied
24 hour period, the average
input (pin 2) is maintained at a to the non-inverting input exceeds
overall current requirement is
voltage equal to one-half that of that at the inverting one (as will
therefore only 80uA
approximately. the supply (nominally 1 5V), due
¬ happen here in dim light), the
to the effect of equal value output (pin 6) will be high. When
While the battery voltage resistors R3 and R4 connected it is less (bright light), it will be
exceeds about 2 5V, the LED will
¬
as a potential divider across the low.
flash brightly. It will become power supply. Since these have The ICL7611 has an almost
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 110
Maxfield & Montrose Interactive Inc
&RQVWUXFWLRQDO 3URMHFW
the required value), resistor R6 the criteria are met for the
COMPONENTS and capacitor C1. astable to operate and the LED
Resistors The on times (during which flashes.
R1 1M (or as required - see text) the output, pin 3, is high) are In the original version of the
R2 sub-miniature light-dependent circuit, the LED D1 anode (a)
provided when C1 charges
resistor (5mm diameter,
5 megohms dark - see text) through resistors R5 and R6 to was connected direct to supply
R3, R4 2M2 (2 off) two-thirds of supply voltage (2V positive so relieving IC1 of its
R5 14M7 (10M and 4M7 in series approx.). After that, the capacitor load. However, even with IC1
or as required - see text) discharges via internal circuitry pin 6 low (and so apparently no
R6 220k supply existing for IC2), the
through resistor R6 alone to one-
All 0.25W 5% carbon film except R2
third of supply voltage (1V LED continued to flash dimly!
Potentiometer approx.) and this gives the off
VR1 1M miniature enclosed carbon It seems that current sinking
preset, vertical
period during which pin 3 is low. through the LED provided a
Capacitor This cycle repeats indefinitely weak supply for IC2 which
C1 470n miniature metalized as long as a supply exists to pin 8 allowed it to oscillate. In the
polyester - 5mm pin spacing and the reset input at pin 4 is final version of the circuit the
Semiconductors high. With the values of anode of D1 is connected to IC1
D1 3mm red high-brightness components specified, each cycle output and this solves the
LED (see text)
IC1 ICL7611 micopower opamp takes about five seconds. above problem. When the LDR
IC2 ICM75551PA low-power Since resistor R5 has a much receives sufficient light, there is
CMOS timer higher value than R6, capacitor no power supply for IC2 and
Miscellaneous C1 charging time is much longer nothing happens.
B1 3V battery pack (2 x AA cells than the discharge time. Thus, Using IC1 to switch on the
with holder).
the time during which output pin 3 power supply for IC2 has a
Printed circuit board available is high is much greater than when particular advantage in that IC2
from the EPE Online Store , code it is low. If a LED was connected draws no current at all while the
7000252 (www.epemag.com); between pin 3 and the 0V rail, this LDR receives sufficient light,
plastic case, size 102mm x 76mm would give the opposite effect to and this greatly reduces the
x 38mm external; 8-pin DIL socket
that which was required – it would standby current requirement of
(2 off); PP3-type battery connector
(or as appropriate for the holder); be on for longer than it was off! the circuit as a whole.
connecting wire, solder, etc. To overcome this, the
current-sinking capability of IC2 is CONSTRUCTION
See also the
exploited. That is, current is able
SHOP TALK Page! All components, except the
to flow from supply positive
through the LED and into the cell holder, are mounted on a
Approx. Cost small single-sided printed circuit
Guidance Only $16 output.
With the LED connected like
board (PCB). The topside
(Excluding Batts) component layout and full size
this, current will flow through it underside copper foil track
full output swing between the when pin 3 is low rather than master are shown in Fig.2. This
supply voltage, and its output when it is high. The result is that board is available from the EPE
will therefore go from 0V to 3V the on transitions are much Online Store (code 7000252) at
nominal as the light level falls to shorter than the off ones. Note www.epemag.com
the required operating point. that there is no need to use a
current-limiting resistor connected Begin construction by
in series with the LED, because drilling the fixing holes then
LIGHT FLASHER the operating current is limited to solder the IC sockets and single
Now let us look at the LED a suitable level by the chip itself. link wire in position. Do not
flasher based on IC2. This insert the ICs themselves yet,
Referring back to the however. Follow with all other
consists of an astable (free- operation of IC1, its output (pin 6)
running pulse generator). Its components except the LED D1
is connected to IC2 pin 8 (supply and LDR R2.
frequency is related to the value positive) and pin 4 (reset) so,
of resistor R5 (in the prototype, The suggested value for
:
while IC1 output is high (that is,
this consisted of two resistors when the LDR is sufficiently dark) resistor R5 (14 7M ) may be
¬
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 112
Maxfield & Montrose Interactive Inc
&RQVWUXFWLRQDO 3URMHFW
find that you need to make Carefully measure the the LED begins to flash at the
further small adjustments when positions of the LED and LDR required light level.
the circuit panel is mounted in and drill the holes for these Clockwise rotation of the
position. components. The hole for the sliding contact (as viewed from
LED should be of such a the top edge of the PCB) allows
diameter that its tip will protrude operation with less light. If you
BOX IT through it only slightly. That for would like the LED to start
If a hook or something the LDR should be a little flashing under dimmer
similar is to be attached to the smaller than its window so that conditions and this is not
case, take account of the PCB this will lie just behind the hole possible with VR1 adjusted fully
position so that any fixings will when the PCB is in position. clockwise, increase the value of
not cause a short-circuit. If required, you could drill a resistor R1 – 2 2 megohms
¬
Remove the connector from small hole to allow preset VR1 would be a good starting point.
the cell holder. Position the to be adjusted from outside the
Put the Find It into service.
PCB on the bottom of the box case using a small screwdriver
When the LED begins to flash
and mark through the fixing or trimming tool. However, this
too dimly to be seen effectively,
holes. Remove the PCB again was not done in the prototype.
it is time to replace the
and drill them through. batteries.
Decide where the hole is to FINISHING OFF
be drilled to allow light to reach
Attach the PCB using
the LDR. It must not be
plastic spacers on the bolt
obscured too much during use
shanks so that the LED and
or this would result in the LED
LDR take up their correct
flashing more than necessary
positions. Attach the cell holder
with a consequent increase in
to the bottom of the box using a
the current requirement.
small fixing.
In the prototype, the LDR
Secure the lid of the case
leads were bent through right-
taking care that the LED
angles (see photograph) and the
engages with its hole and test
hole was made in the side of the
the circuit under real conditions.
box. However, the exact
Make further adjustments to
arrangements will depend on
preset VR1 if necessary so that
the application.
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 113
Maxfield & Montrose Interactive Inc
ROLL-UP, ROLL-UP! Win a Pico PC-Based Oscilloscope
Ingenuity is our regular round-up of readers' own • 50MSPS Dual Channel Storage
circuits. We pay between $16 and $80 for all material Oscilloscope
published, depending on length and technical merit. • 25MHz Spectrum Analyzer
We're looking for novel applications and circuit tips, not
simply mechanical or electrical ideas. Ideas must be the • Multimeter
reader's own work and must not have been submitted • Frequency Meter
for publication elsewhere. The circuits shown have • Signal Generator
NOT been proven by us. Ingenuity Unlimited is open to
ALL abilities, but items for consideration in this column If you have a novel circuit idea which
should preferably be typed or word-processed, with a would be of use to other readers, then a Pico
brief circuit description (between 100 and 500 words Technology PC based oscilloscope could be
maximum) and full circuit diagram showing all relevant yours.
component values. Please draw all circuit schematics Every six months, Pico Technology will be
as clearly as possible. awarding an ADC200-50 digital storage oscil-
loscope for the best IU submission. In addi-
Send your circuit ideas to: Alan Winstanley,
tion, two single channel ADC-40s will be pre-
Ingenuity Unlimited, Wimborne Publishing Ltd., Allen
sented to the runners up.
House, East Borough, Wimborne, Dorset BH21 1PF.
They could earn you some real cash and a prize!
I found the answer in the soldered to a small piece of Fig.1. Mini Disk Optical
shape of a fiber optical stripboard and fitted within the Interface.
transmitting module for a PC. I used a spare drive bay
blanking plate to mount the the PC CD ROM drive when
standard optical cable (itself
opto-emitter unit. The Mini Disc required. Hobbyists could
available in the High Street).
player can then be connected to experiment using old spare CD
The Toshiba TOTX176 module
ROM drives as well.
has its own drive circuitry for
the emitter LED and can be P. Mcleod
used as an interface. A
VCO Generator – Sine/
Ross on Wye, UK
datasheet is available from the Square Triangle Output
Toshiba web site at The circuit diagram of Fig.2 switched sign amplifier.
www.toshiba.com was an attempt to produce a When the MOSFET transis-
In the end, the source for waveform generator using sim- tor TR1 is switched off, IC1a
the digital signals was to be ple building blocks instead of acts as a non-inverting amplifier
found on the rear of the CD proprietary generator chips. In with a gain of +1. When TR1 is
ROM in my PC, not in the hi-fi the outline circuit shown, IC1a on, the gain is –1. IC1b forms
and associated parts form a an integrator with resistor R5
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 114
Maxfield & Montrose Interactive Inc
,QJHQXLW\ 8QOLPLWHG
INPUT TRIANGLE
R1 R4
and capacitor Cl. Its output 20k 20k
C1
OUT
1n
ramps up with a negative input R8
200k
and down with a positive input. R5
10k
SQUARE
OUT
R2 R3 R7
100k
The NAND gates IC2a and 10k 10k
+ IC2a IC2b
4011 4011
IC2b, along with resistors R7 IC1a
+
D1 D2
and R8, form a large hysteresis d
TR1
ZVN4306
TL084 OR
TL074 R6
IC1b
TL084 OR
2V2 2V2 SQUARE OUT
(IC1b) goes to IC1c, which is a Fig.2. Circuit diagram for the VCO Waveform Generator.
simple inverting amplifier fitted
with a “dead band limiter” com-
reduced. This rounds off the peaks is about right. Both the fre-
prising D1 and D2, two identical
to give a fair approximation of a quency and the sensitivity are
Zener diodes.
sinewave. controlled by resistor R5 and
When the triangular wave- capacitor C1.
With a power supply of +6V
form from the integrator ex-
and a Zener value of 2 2V, resistor ¬
A. E. Whittaker
ceeds the forward plus the
Zener voltages (in either polar- R11 should be adjusted to give the Stone, Staffs, UK
ity) the gain of the amplifier is best results. A value of 11 kilohms
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 115
Maxfield & Montrose Interactive Inc
IAN POOLE LOOKS AT THE LATEST DEVELOPMENTS TO IMPROVE THE LIGHT
EFFICIENCY OF L.E.D.S
It is now some years since Electrical World, although no more common semiconductors,
light emitting diodes (LEDs) further work was done. silicon and germanium do not
were first available for use. The idea was not taken any emit light.
Since then they have become further for several years, and In a p-n junction it is found
very popular as convenient and did not surface again until it was that the p-type region has an
reliable indicators. observed by O. V. Losov in excess of holes and the n-type
Originally LEDs were only 1922. Unfortunately, he lived in region an excess of electrons
available in red. Now having Leningrad and he was killed in caused by the doping. When a
undergone a considerable the Second World War when forward bias is applied to the
amount of development they Hitler advanced on Russia. junction the electrons are
are available in a wide variety Although he published a total of attracted across the junction
of colors. Orange and yellow four patents up until 1942, the region into the p-type region.
were the first to follow red, but details of his work were never The same potential pulls the
most other colors are available, discovered. However, it was holes in the opposite direction,
although they are slightly more Messrs. Bay and Szigeti who but across the junction. When
expensive. Infrared emitters are actually patented LEDs in 1939. the holes and electrons meet
also available, and these are The LED resurfaced again they start to recombine. As a
widely used in remote controls in 1951 after the discovery of result of this action a current
for televisions, video recorders the bipolar transistor. A team of flows across the junction.
and a wide variety of other researchers led by K. Lehovac When this occurs in an
products that need remote started investigations into the LED, energy is released, some
control. effect. The level of research of which is in the form of
The cost of these indicators grew rapidly and a number of photons. Interestingly it is found
and displays is very low. companies were involved. This that more light is usually
Standard indicator lamps are resulted in the first light emitting produced from the p-type side
available for a few pence, and diodes being marketed in the of the junction, and this is kept
high output devices are a little late 1960s. closest to the surface of the
more. Alphanumeric displays diode to ensure that the
are also very reasonably priced, minimum amount of light is
BASICS absorbed.
making them ideal for use in
home electronic products as Light emitting diodes are a To produce light of the color
well as many commercial ones. specialized form of p-n junction. or correct wavelength, the
They are different from normal correct materials must be used
p-n junctions in that they must and the device tailored for the
BEGINNINGS be fabricated from a compound application. Pure gallium
The phenomenon behind semiconductor like gallium arsenide releases energy in the
light emitting diodes was first arsenide, gallium phosphide or infrared portion of the spectrum.
seen many years ago. A British indium phosphide. In the To enable light in the visible red
development engineer named example of gallium arsenide, end of the spectrum to be
H. J. Round, who was famous gallium has a valency of three produced, aluminum is added to
for many thermionic valve and arsenic a valency of five the semiconductor to give
developments, first noticed it in and as such they are known as aluminum gallium arsenide
1907 when he was making group III-V semiconductors. (AlGaAs). Phosphorus can also
some investigations into point Other compound be added to give red light.
contact crystal detectors. He semiconductors are also formed
from group III-V materials. The For other colors other
reported these discoveries in
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 116
Maxfield & Montrose Interactive Inc
1HZ WHFKQRORJ\ 8SGDWHV
of current being used to give a semiconductor interface at an
simple indication is very high. angle such that a greater
Over the years proportion of the light is
improvements have been made transmitted through the
to improve the technology. As interface and not reflected back,
most of the light is generated at see Fig.1.
the p-type side of the junction, The real elegance of the
this is generally placed closer to new idea lies in its simplicity.
the surface of the This makes it easy to
semiconductor so that any light implement and as a result it is
that is produced has less expected that the idea will be
distance to travel through the taken up quite quickly.
semiconductor and hence less With LEDs being so widely
light is absorbed. used, it is anticipated that the
Other techniques to new LEDs will soon become
Fig.1. Light paths for improve the efficiency are also commonplace, finding uses in
traditional and new reverse employed. Often a coating aircraft, spatial marking lights,
tapered LEDs. applied to the surface of the traffic signals, and even as
diode to match the refractive night lights in homes.
materials are used. For index can triple the light output,
example gallium phosphide but despite this procedure a
gives green light and aluminum complete match cannot be
indium gallium phosphide is obtained and it is found that
used for yellow and orange only half of the internally
light. Most LEDs are based on reflected light is released.
gallium semiconductors.
It is also possible to
encapsulate the LED in plastic
EFFICIENCY that better matches the
One of the problems that is refractive indices to help reduce
common to most forms of light reflections, but this only yields a
emitter is that of efficiency. The small increase in output.
common incandescent light bulb
is notoriously inefficient, and NEW DEVELOPMENT
LEDs also have a relatively low
level of efficiency. Whilst this In a LED it has been found
may not be a major that a large proportion of the
consideration in many light is lost as a result of total
applications it is nevertheless a internal reflection at the
major factor in many designs, interface with the air. In a new
particularly those that are initiative, NASA is licensing
battery powered. some of the fruits of its
development for nominal fees
A typical LED may consume and with the minimum of
as much as 20mA and most of formalities. One of these is a
this is dissipated as heat. If the structure for a LED where the
efficiency was improved then level of light that is lost by
the current consumption could internal reflection is greatly
be correspondingly reduced, reduced.
thereby saving battery power.
As many of the ICs used in The improvement is
pieces equipment like cellular achieved by having a reverse
phones only consume a taper on the semiconductor
milliamp or so, and provide a chip. This changes the direction
large amount of functionality, that some of the light takes so
this means that the proportion that it strikes the air-
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 117
Maxfield & Montrose Interactive Inc
7(&+12/2*< 7,0(/,1(6 3DUW
E\ $OYLQ %URZQ DQG &OLYH ´0D[µ 0D[ILHOG
Boldly going behind the beyond, behind which no one as the world was poised to enter
has boldly gone behind, beyond, before! the 20th Century.
Then, over the coming
Today it is difficult to imagine gone from close to nothing months, we will take a
a world where communication (technology-wise) to where we retrospective view of the
between continents could take are today in the last 100 years, technological developments of
months, an incandescent light and many observers feel that the last millennium as we
bulb could cause a crowd to gasp our current accomplishments investigate the key people and
in awe, and the most complicated represent only the “tip of the events in three arenas:
calculations were performed iceberg”. Thus, as we enter the Fundamental Electronics,
using only pencil and paper. By 21st Century we are poised on Communications, Computers.
comparison, we now find the brink of unimaginable During our discussions we
ourselves in the rather strange possibilities and potentialities. shall discover the way in which
position that a whole generation As Captain James T. Kirk would everything is interrelated, such
has grown up surrounded by the have it: “We are boldly going that inventions in disparate
trappings of modern technological behind the beyond, behind fields can be combined in ways
civilization. which no one has boldly gone their originators never dreamt
behind, beyond, before!” of, catapulting us into a future
This generation can barely
conceive life without the near- none of us can conceive in our
instantaneous communication, WHO, WHAT, WHEN, wildest dreams.
entertainment, and data WHERE? Knowing how rapidly things
processing and presentation have changed over the last few
The purpose of this series is
capabilities provided by such decades, only a fool would dare
to review how we got where we
gadgets as radios, television, to predict the future with any
are today (and where we look
cellphones and computers. level of confidence. Thus, we
like ending up tomorrow). In this
Yet the thought of personal shall leave such pontifications
first installment, we shall cast
computers in the home was to the final installment, where
our gaze into the depths of time
inconceivable to the vast majority we shall consider emerging new
to consider the state of the art
of the population as little as 20 technologies and peer into our
years ago. Similarly, color
television was well beyond the
means of most households when
it was introduced a little over 40
years ago; only a tiny minority of
the population had any access to
a telephone just sixty years ago;
and even a rudimentary radio was
the privilege of the favored few
only 80 years ago.
In fact the 20th Century has
seen phenomenal technological
progress (along with The sketch in Leonardo da Vinci’s notebook, which illustrates
corresponding impacts on our
culture). In many respects we’ve
his ideas for a calculating machine, in the year 1500. Courtesy
of IBM.
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 118
Maxfield & Montrose Interactive Inc
6SHFLDO )HDWXUH
energy in a Leyden jar. based on static electricity called
(A Leyden jar is a device the electrophorous. This
that early experimenters used to consisted of one metal plate
store and investigate electric covered with ebonite and a
energy. Early implementations second metal plate with an
consisted of a cylindrical glass insulated handle. When the
container with layers of metal ebonite-covered plate was
foil on the inside and outside.) rubbed, it gained a negative
electric charge.
Based on these
experiments, Franklin When the other plate with the
concluded that electrical current handle was subsequently placed
had traveled from the storm over it, a positive electric charge
clouds down the kite string. By was attracted to its lower surface
this he proved that lightning was and a negative charge was
By complete contrast with repelled to the upper surface.
the sketch of 1500, detail of actually a natural form of
electricity. (This experiment was This type of charge-accumulating
a modern 64Kb memory extremely dangerous, as was device replaced earlier Leyden
chip. Courtesy of IBM. demonstrated by one Professor jars and formed the basis for the
Richman who received a more- electronic components called
crystal balls to cast some than-bracing stroke of lightning condensers (capacitors) used
predictions for technological from his apparatus.) today.
advancements in the future.
STATIC ELECTRICITY BATTERIES
PHYSICS AND GENERATORS Another of Count Volta’s
inventions was the electric battery
ELECTRONICS The Italian Count
in 1800. These Voltaic
Alessandro Giuseppe Antonio
PRIOR TO 1900 Anastasio Volta invented
accumulators as they were known
Early man knew of the two played an important part in
numerous gadgets in his
major forms of electricity: static ushering in the “era of electricity”.
lifetime, including a device
electricity and naturally
occurring lightning. However,
very little was understood about
either of these phenomena until
the 18th Century (except in
generalities, such as waving a
sword around during a
thunderstorm wasn’t a
particularly good idea).
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 120
Maxfield & Montrose Interactive Inc
6SHFLDO )HDWXUH
stone reproduces sound. William Crookes had the
1822: England. Charles Bab- resources to carry out scientific
bage starts to build a me- investigations in the comfort of
chanical calculating ma- his private laboratory. Following
chine, the Difference En- the development of the cathode
gine. ray tube, Crookes devised a
series of experiments based on
1822: France. Andre Ampere his own version called the
discovers that two wires Crookes’ Tube.
with electric currents at-
tract. By placing an obstacle, a
Maltese Cross, in the path of his
1823: England. Michael Fara- cathode rays and casting a
day liquifies chlorine. shadow in the fluorescent end
of the tube, Crookes
pump. Geissler then proceeded
demonstrated that these rays
to use his pump to evacuate a
usually traveled in straight lines.
glass tube containng electrodes
Crookes also showed that the
to a previously unattainable
beam of cathode rays could be
vacuum. Using these Geissler
The first electric lamp with a deflected by means of a
Tubes, experimenters magnet. These studies led to
discovered a form of radiation, light bulb. It was designed by
the discovery of the electron by
which they called cathode rays. Thomas Alva Edison (1847-
J.J. Thompson in 1887.
These tubes, which 1931) in 1879. Edison had Crookes’ observations of the
subsequently became known as invested $50,000 and a year dark space at the cathode also
cathode ray tubes (CRTs), were of his time to conduct 6,000 led to the discovery of X-rays by
to prove instrumental in the trials whilst researching a Wilhelm Conrad Roentgen in
discovery of all sorts of things, 1896.
including the electron and X-
practical light bulb. Courtesy
rays. Over time, CRT-based of the Science Photo Library.
displays were to include DISCOVERY OF THE
oscilloscopes, radar screens, an engineer working for Edison, ELECTRON
television sets, and computer observed that he could detect
electrons flowing through the The son of a Manchester
monitors. bookseller, Joseph John (J.J.)
vacuum from the lighted
filament to a metal plate Thompson entered college at
INCANDESCENT LIGHT mounted inside the bulb. the age of fourteen (so we can
BULBS Although Hammer discovered assume he wasn’t a complete
this phenomena, it subsequently dingbat) and was later elected a
Who invented the first fellow of the Royal Society and
electric light bulb? Do we hear became known as the Edison
Effect. As Edison later admitted, appointed to the Chair of
you cry “The famous American Physics at the Cavendish
Inventor, Thomas Alva Edison”? he did not even understand
Ohm’s law at that time. Thus, Laboratory in Cambridge
Well it’s certainly true that University.
Edison did invent a light bulb, the Edison Effect remained an
but he wasn’t the first! In 1878, unexplained curiosity for fifteen In 1897, whilst investigating
an English physicist and years until J.J. Thompson cathode rays using Geissler’s
electrician, Sir Joseph Wilson discovered the existence of tubes, J.J. Thompson made his
Swan, successfully electrons. As we shall see in greatest discovery. In addition
demonstrated a true Part 2, the reason the Edison to providing evidence that these
incandescent bulb – a year Effect is significant is that it was rays consisted of charged
earlier than Edison. Like Edison, to lead to the invention of particles (which J.J. called
Swan’s light bulb employed a vacuum tubes. corpuscles, but which later
conducting filament mounted in became known as electrons), he
a glass bulb from which air was CROOKES’ TUBE also measured the ratio of their
evacuated leaving a vacuum. charge to mass and was able to
As the heir to a large show that the mass of these
In 1883, William Hammer, fortune, the experimenter particles was approximately
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 121
Maxfield & Montrose Interactive Inc
6SHFLDO )HDWXUH
Physics in 1901, and his X-rays COMMUNICATIONS
now affect most people’s lives
in one way or another. PRIOR TO 1900
The earliest form of
TIMELINES signaling was a man running
from one place to another with a
1827: England. Sir Charles verbal message. Perhaps the
Wheatstone constructs a most famous example of this
microphone. was exhibited in 490 BC, when
1827: Germany. Georg Ohm Pheidippedes carried the news
investigates electrical re- of victory at the Battle of
sistance and defines Marathon 26 miles to Athens
Ohm’s Law. and then dropped down dead
from exhaustion!
1829: England. Sir Charles
Wheatstone invents the
concertina. SMOKE AND MIRRORS
1831: England. Michael Fara- Drums and smoke signals
day creates the first elec- have also been used since
An early ornamental ancient times, along with
tric dynamo.
Crookes’ tube, with metal trumpets and other audible
flowers that glowed when a 1831: England. Michael Fara-
signaling devices. In one
current flowed. day creates the first elec-
example, chains of Roman
tric transformer.
soldiers were stationed on
1/1800 that of a hydrogen atom. 1831: England. Michael Fara- hilltops to shout messages to
This discovery won Thompson day discovers magnetic each other. Using this method it
the Nobel Prize in 1906. lines of force. was claimed that a signal could
1831: England. Michael Fara- be relayed 450 miles in 48
X-RAYS day discovers that a mov- hours! (And if they were very
ing magnet induces an lucky, the message that was
In the latter part of the 19th received bore more than a
century, the German physicist electric current.
passing resemblance to the one
Wilhelm Conrad Roentgen 1831: England. Michael Fara- that had been transmitted.)
discovered that some unknown day discovers the princi-
radiation coming from a ple of electromagnetic Signalers in England used
Crookes’ Tube caused certain induction. beacons to send long distance
crystals to glow. He also messages (hence the presence
1832: England. Joseph Henry of so many landmarks called
discovered that this radiation
discovers self-inductance. “Beacon Hill” or “Signal Hill”). In
(which became known as X-
rays) could pass through solid 1832: England. Charles Bab- fact, this method was used to
objects and affect photographic bage conceives the first send a message from Plymouth
plates. The first medical use of mechanical computer/the to London to communicate the
this discovery was an X-ray Analytical Engine. approach of the Spanish
image he made of his wife’s Armada in 1588.
1833: England. Michael Fara-
hand. day defines the laws of Unfortunately, these early
Roentgen completed his electrolysis. signaling techniques were
research in just eight weeks and relatively slow and unreliable. In
1837: America. Samuel Finley
announced his discovery to the the early 1820s, scientists like
Breese Morse exhibits an
world in 1896. The implications Faraday and Ampere began
electric telegraph.
of his work were immediately their investigations into
recognized, and some hospitals 1837: England. Sir Charles electromagnetics, little
began to use X-rays within a Wheatstone and Sir suspecting that their work would
few weeks of hearing the news William Fothergill Cooke pave the way for much faster
of his discovery. Roentgen went patent the 5-needle elec- and more reliable
on to win a Nobel Prize in tric telegraph. communications systems in the
future.
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 122
Maxfield & Montrose Interactive Inc
6SHFLDO )HDWXUH
ELECTRIC TELEGRAPH needles. This system made the TIMELINES
news in 1845 when it was used
In 1837, the British physicist to transmit a message about a 1842: England. Joseph Henry dis-
and Inventor Sir Charles murderer who had been seen covers that an electrical
Wheatstone teamed with his leaving Slough, leading to his spark between two conduc-
friend Sir William Fothergill arrest at Paddington. tors is able to induce mag-
Cooke to invent the first British netism in needles – this ef-
electric telegraph (in 1829, These systems (especially fect is detected at a distance
Wheatstone had invented the the two-needle version) became of 30 meters.
concertina, so presumably he very popular in railway signaling
apparatus, and in fact they can 1842: Scotland. Alexander Bain
didn’t have too many friends demonstrates first elec-
left). still be found in use to this day
in remote parts of the globe. tromechanical means to cap-
Their first instrument used ture, transmit, and reproduce
five wires to control five needles In the same year that an image.
at the receiver, each of which Wheatstone and Cooke were
inventing their original five- 1843: England. Augusta Ada
could be set to one of two Lovelace publishes her notes
needle system, the American
inventor Samuel Finley Breese explaining the concept of a
Morse was developing his computer.
version of a telegraph. Morse’s 1843: England. Sir Charles Wheat-
system was based on a pattern stone and Sir William
of “dots” and “dashes” which he Fothergill Cooke patent the
called Morse Code. This system 2-needle electric telegraph.
enabled the transmission of a 1844: America. Morse Telegraph
message over a single wire. connects Washington and
The Morse Telegraph was Baltimore.
eventually adopted as the
worldwide standard, because it 1845: England. Michael Faraday
was easier to construct and discovers the rotation of po-
more reliable than the British larized light by magnetism.
versions. 1845: England. The electronic tele-
The first telegraph cable graph is first used to help
connecting England and France apprehend a criminal.
was laid across the English 1845: England/France. First tele-
Channel in 1845. This was graph cable is laid across the
followed in 1858 by the first English Channel.
transatlantic cable linking
The five-needle telegraph of Valentia, Ireland and Trinity 1846: Germany. Gustav Kirchhoff
defines Kirchoff’s laws of
Cooke and Wheatstone. Bay, Newfoundland. On the
16th of August 1858, Queen electrical networks.
positions. The letters of the Victoria exchanged messages 1847: England. Geoge Boole pub-
alphabet were laid out using a with President Buchanan in lishes his first ideas on sym-
matrix arrangement, and a pair America. Four days later, bolic logic.
of needles could be used to Cunard agents in New York sent 1850: England. Francis Galton in-
point to a specific letter. Thus, the first commercial message to vents teletype printer.
messages were sent by report a collision between two
controlling pairs of needles in steamships: the Arabia and the 1850: The paper bag is invented.
sequence. Europa. 1852: France. Jean Foucault in-
This five-needle system Unfortunately, no one at vents the first gyroscope.
was replaced in 1843 with a that time really understood the 1853: Scotland/Ireland. Sir Charles
two-needle device, which extreme conditions that existed Tilston Bright laid the first
required only three wires. In this at the bottom of the Atlantic deepwater cable between
case, letters of the alphabet Ocean. The cable’s insulation Scotland and Ireland.
were identified by counting the quickly degraded and messages
number of deflections of the 1854: Crimea. Telegraph used in
became unintelligible only one
Crimean War.
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 123
Maxfield & Montrose Interactive Inc
6SHFLDO )HDWXUH
1855: Germany. Heinrich
Geissler invents a power-
ful vacuum pump.
1855: England. James Clerk
Maxwell explains Fara-
day’s lines of force using
mathematics.
1858: Atlantic. First transatlantic
telegraph cable is laid
(and later fails).
1858: England. Queen Victoria
exchanges transatlantic
telegraph messages with
President Buchanan in
America. Morse code receiver. When a message was to be received, the
1858: America. Cunard agents weight (bottom left) was released turning the mechanism and
in New York send first feeding a strip of paper from a reel (Z). Electrical telegraph sig-
commercial telegraph nals coming in from wires (a and b) energized electromagnets
message to report a colli- (H), which pulled down the iron or steel plate above them. By
sion between two steam means of a pivoted lever, this raised the print head (H) which
ships. placed indentations in the paper strip which could then be read.
1859: Germany. Hittorf and Courtesy of the Science Photo Library.
Plucker invent the cath-
ode ray tube (CRT).
called Alexander Bain came up
1865: Ireland – Newfoundland. with a rather ingenious idea.
TIMELINES
Atlantic cable links Valen- 1872: First simultaneous trans-
tia (Ireland) and Trinity Bain cut an image he wished
to transmit out of a thin sheet of mission from both ends of
Bay (Newfoundland). a telegraph wire.
tin, which he then placed on a
1865: England. James Clerk moving base. Above the bae was 1873: England. James Clerk
Maxwell predicts the exis- a swinging pendulum formed Maxwell describes the
tence of electromagnetic from a conducting wire with a electromagnetic nature of
waves that travel in the pointed metal weight on the end. light and publishes his the-
same way as light. As the base moved slowly under ory of radio waves.
1866: Ireland/USA. First perma- the pendulum, the swinging 1874: America. Alexander Gra-
nent transatlantic tele- weight periodically made contact ham Bell conceives the
graph cable is laid. with the metal image, thereby idea of the telephone.
completing an electrical circuit.
month after it was laid. In fact, it Thus, the light and dark areas of 1875: America. Edison invents
was almost a decade until the the image (represented by the the mimeograph.
first permanent transatlantic link presence and absence of the 1875: England. James Clerk
– all 1,852 nautical miles of it – metal sheet) were converted into Maxwell states that atoms
was completed on 27 July 1866. an electrical signal. must have a structure.
This signal was then used to 1876: America. 10th March. Intel-
FAXING CIRCA 1842! control a relay moving in time ligible human speech heard
The first occurrence of with the pendulum. In turn, the over Alexander Graham
electromechanical techniques relay pressed a pencil down onto Bell’s telephone for the first
being used to capture, transmit, a piece of paper, which was time.
and reproduce an image mounted on another base moving
1876: America. Alexander Gra-
occurred in 1842, only five in time with the first one. Thus,
ham Bell patents the tele-
years after Queen Victoria has the original image could be
phone.
ascended to the throne of transmitted and reproduced as a
pencil drawing. 1876: America. Thomas Alva Edi-
England, when a Scotsman
son sets up world’s first in-
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 124
Maxfield & Montrose Interactive Inc
6SHFLDO )HDWXUH
dustrial laboratory at Menlo packed with weird and wonderful image the next hole began its
Park, New Jersey. inventions. For example, Denis trek. Since the holes were
1877: America. Thomas Watson Redmond of Dublin, Ireland sent arranged in a spiral formation
devised a “thumper” to a letter to the English Mechanic each hole traversed a different
alert users to incoming and World Science publication in slice, or line, across the image.
telephone calls. 1878. In his letter, Redmond At the other end of the
described creating an array of process was a brilliant lamp and
1877: America. First commercial selenium photocells, each of
telephone service went into a second spinning Nipkow Disk.
which was used to control a The electrical signal coming out
operation. corresponding platinum wire. As of the phototube was used to
1878: America. First public long- the intensity of light on a modulate the lamp, which was
distance telephone line be- particular photocell increased, it projected onto the second disk.
tween Boston and Provi- caused more current to flow The modulated light passed
dence becomes opera- through its associated platinum through the holes in the second
tional. wire, which therefore glowed disk to construct a line-by-line
more brightly. display on a screen.
1878: England. Sir Joseph Wil-
son Swan demonstrates a Although it only contained Although the resulting
true incandescent light around 10 x 10 elements, this image was constructed as a
bulb. device could apparently represent series of lines, the speed of the
moving silhouettes, which was disk combined with persistence
1878: England. William Crookes
pretty amazing for the time. In of vision meant that an observer
invents his version of a
fact Redmond’s invention is saw a reasonable (albeit low
cathode ray tube –
conceptually very similar to resolution) facsimile of the
Crookes’ Tube.
today’s semiconductor diode original picture. Although his
1878: Ireland. Denis Redmond array cameras and liquid-crystal system could only be used to
demonstrates capturing an computer screens (plus it had the transmit static images, Nipkow’s
image using selenium pho- advantage that you could use it to technique was conceptually
tocells. toast bread). similar to modern-day
1879: America. Thomas Alva Edi- television.
son invents an incandes- VICTORIAN TV?
cent light bulb (a year after
The German inventor Paul THE TELEPHONE
Sir Joseph Wilson Swan in
England). Gottleib Nipkow proposed a novel At the age of 14, the
technique for scanning, Scottish inventor Alexander
1879: England. William Crookes transmitting and reproducing Graham Bell was tremendously
postulates that cathode pictures in 1884. Nipkow’s excited by a demonstration of a
rays may be negatively technique was based on the use “speaking machine” created by
charged particles. of flat circular disks containing Sir Charles Wheatstone. Bell
1880: America. Alexander Gra- holes punched in a spiral and his older brother
ham Bell patents an optical formation. subsequently built their own
telephone system, the Pho- The way this worked was that device that emulated the human
tophone. a light was used to project an mouth, throat, tongue, and
image onto a spinning Nipkow bellow-like lungs, and used it to
Bain had essentially created Disk. As the outermost hole on produce human-like sounds.
the precursor to the modern Fax the disk traversed the image, the Some time later, the
(facsimile) machine, but his light passed through the hole to German physicist Hermann von
device never really caught on, hit a light-sensitive phototube. Helmholtz wrote a thesis stating
because creating the image to The intensity of the light was that vowel sounds could be
be transmitted typically took modified by the light and dark produced by combining the
longer than traveling to the areas in the image, thereby effects of electrical tuning forks
intended recipient and drawing modulating the electrical signal and resonators. Bell heard
it out by hand! coming out of the phototube. about this paper, but due to the
The holes were arranged fact that he couldn’t read
OPTICAL TOASTERS! such that as soon as the German, he mistakenly
The 19th century was jam- outermost hole had exited the believed that Helmholtz was
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 125
Maxfield & Montrose Interactive Inc
6SHFLDO )HDWXUH
1894: Italy. Guglielmo Marconi Bell’s interest in the spoken
TIMELINES invents wireless telegra- word continued, stimulated by the
1880: France. Edouard Eugene phy. fact that his mother was deaf.
Desire Branly invents the 1895: America. Dial telephones The family emigrated to Canada
Branly Coherer. in 1870, and a year later Bell
go into Milwaukee’s city
1880: France. Pierre and Jacques hall. began teaching at a school for the
Curie discover piezoelec- deaf in Boston, USA. Bell first
1895: Germany. Wilhelm Konrad conceived the idea of the
tricity.
Roentgen discovers X-rays. telephone in 1874 – the same
1883: America. William Hammer year that he met Thomas Watson
1895: Russia. Alexander Popov
and Thomas Alva Edison – a young electrician who was to
(also Popoff) constructs a
discover the “Edison Ef- become Bell’s long-time
receiver for natural electri-
fect”. assistant.
cal waves and tries to
1884: Germany. Paul Gottleib detectthunderstorms.
Nipkow uses spinning disks 1897: England. Guglielmo Mar- SAVED BY THE BELL
to scan/transmit and repro-
coni transmits a Morse Bell filed a patent application
duce images.
Code message “let it be so” for the telephone on the 14th
1887: England. J. J. Thomson across the Bristol Channel. February 1876 (just a few hours
discovers the electron. 1897: England. Marconi estab- before another inventor called
1887: England. William Crookes lishes the first Marconi- Elisha Gray attempted to file a
demonstrates that cathode station at The Needles (Isle sort of pre-patent known as a
rays travel in straight lines. of Wight, England), send- caveat for a similar device). On
1887: Germany. Heinrich Hertz ing a signal to the English the 10th of March, 1876,
demonstrates the transmis- coast over 22km. intelligible human speech was
sion/reception and reflec- heard over the telephone for the
tion of radio waves. saying it would be possible to first time when Bell spilt some
transmit sounds as electrical acid and Watson heard him
1888: America. First coin- calling over their experimental
signals through a wire. This was
operated public telephone apparatus saying “Mr Watson –
to lead to what Bell would later
invented. come here – I need you!”
describe as a “very valuable
1889: America. Almon Brown blunder”. It is interesting to note that
Strowger invents the first
automatic telephone ex-
change.
1890: America. Census is per-
formed using Herman Hol-
lerith’s punched cards and
automatic tabulating ma-
chines.
1892: America. First automatic
telephone switchboard
comes into service.
1894: England. Oliver Joseph
Lodge repeats the tests of
Heinrich Hertz with a modi-
fied Branly Coherer.
1894: Germany. Heinrich Hertz Historical artwork of a man using a Bell telephone. In this origi-
discovers that radio waves nal telephone system, the speaker and receiver were identical.
travel at the speed of light This telephone was invented by Alexander graham Bell (1847-
and can be refracted and 1922) who filed the patent on 14 February 1876. Courtesy of the
polarized. Science Photo Library.
Guglielmo Marconi and his radio equipment, 1896.
Courtesy of Marconi PLC.
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 126
Maxfield & Montrose Interactive Inc
6SHFLDO )HDWXUH
Bell’s original telephone had no of age without knowing for sure Coherer by adding a device that
signaling device to let the user that it was possible to transmit shook the fillings loose between
know when there was an and receive radio waves over spark receptions. Lodge’s
incoming call. In June 1877, large distances. device became a standard
Watson devised a “thumper” The idea that the radio apparatus in early wireless
that would strike the diaphragm waves theorized by Maxwell telegraphy. Unfortunately, after
of the receiving telephone box and demonstrated by Hertz making his contribution to the
to make a tapping sound. could be used for long distance world as we know it, Lodge
The first commercial communication intrigued many spent the rest of his life
telephone service went into physicists, scientists and undertaking psychic research
operation in 1877. This was inventors. and attempting to communicate
followed by the first long- with the dead (“Hello Oliver, are
In 1880, a professor of you there?”).
distance line for public use Physics called Edouard Eugene
between Boston and Providence Desire Branly at the Catholic
in 1878. (In 1880 Bell patented University of Paris created the MARCONI
an optical telephone system, Branly Coherer. This was based In reality, no one person
which he called the on his discovery that loose zinc “invented” wireless
Photophone. However, his early and silver filings would cling communications as we know
telephone proved to be much together when exposed to even them today. It is true that for
more practical, and optical a distant spark transmission more than 100 years Guglielmo
communication systems would field. By clinging together, the Marconi has been called the
have to wait for another filings provided a path that “inventor of radio”. Marconi was
hundred years.) exhibited increased certainly a genius, but it’s also
conductivity, and this effect fair to say that he built on the
WIRELESS TELEGRAPH could be used to detect the ideas and inventions of others
presence of a transmission. (as did others).
In 1865, the brilliant British
Based on this work, the French
physicist James Clerk Maxwell, For example, the Russian
now claim that Branly invented
a professor at Cambridge professor called Alexander
the wireless telegraph.
University, predicted the Popov (also spelled “Popoff”)
existence of electromagnetic In 1894, Oliver Joseph conceived the idea of using the
waves that traveled in the same Lodge, who held the chair in Branly Coherer to pick up static
way as light. The first person to Physics at the University or atmospheric electricity,
actually transmit and receive College in Liverpool, increased thereby allowing him to detect
these “radio waves” in a the usefulness of the Branly approaching thunderstorms (the
laboratory environment was
Heinrich Rudolf Hertz, a
professor of physics at
Karlsruhe Polytechnic in
Germany.
Between 1885 and 1889,
Hertz used the energy stored in
large capacitors to create
electric sparks, which in turn
produced electromagnetic
waves. He then received these
waves using an aerial formed
from a loop of wire with a small
gap between the ends. When a
large spark was generated by
the transmitter, a smaller spark
could be observed jumping
across the gap at the receiver.
Unfortunately, Hertz died of Guglielmo Marconi and his radio equipmenty, 1896.
a brain tumor at only 36 years Courtesy Marconi PLC.
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 127
Maxfield & Montrose Interactive Inc
6SHFLDO )HDWXUH
government showed no interest
TIMELINES in Marconi’s work, so his mother
1897: England. Cavandish Labs, (Annie Jameson of the well-
Cambridge, J. J. Thomson known Irish Whisky family)
uses deflection of cathode brought him to London, where
rays to measure electron their influential relatives
charge to mass ratio. financed his experiments and
1897: Germany. Braun improves brought him into contact with
Crookes’ tube with fluores- people who could help further
cence. his ambitions.
1898: 20 July. First newspaper During the early years,
message concerning the Marconi progressively improved
results of a sailing contest on the distances he could
sent from a ship to the achieve with his equipment. In
Daily Express in England. 1897 he managed to send the
Morse Code message “let it be
1898: 3 June. First paid wireless so” 8 7 miles across the Bristol
¬
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 128
Maxfield & Montrose Interactive Inc
ROBERT PENFOLD second, which is fast enough for parent from the circuit that the
A 12-BIT SERIAL A/D CON- most applications. However, in AD7896AN enables a minimal-
order to achieve this rate in ist approach to be taken. In fact,
practice an assembly language the only discrete component re-
A previous Interface article quired is supply decoupling ca-
routine would probably have to
covered interfacing a serial pacitor C1. Potentiometer VR1
be used to control and read the
analog-to-digital converter to a is simply there for test pur-
converter.
PC parallel port, but the original poses, and it enables a variable
design provided only eight-bit 0V to 5V signal to be applied to
resolution. Things move on, and MINIMALIST CIRCUIT the input at pin 1 of IC1.
chips that provide higher resolu- Incidentally, the input volt-
tions are available. The circuit diagram for the
12-bit Serial A/D Converter ap- age range of the chip is from
The chip used in the con- pears in Fig.1, and the pin func- supply rail to supply rail. There
verter featured here is the tions for the 8-pin DIL version are separate analog and digital
AD7896AN successive approxi- are shown in Fig.2. It will be ap- ground terminals at pin 3 and
mation converter, which pro-
vides 12-bit resolution (4096 Fig.1. The com-
levels). It requires four lines plete circuit dia-
plus a ground connection to in- gram for the 12-
terface to the PC, and the hand- bit Serial A/D
shake lines of a PC printer port
Converter.
can provide these.
ONE AT A TIME
It should perhaps be ex-
plained that with a serial con-
verter the data is read one bit at
a time, which gives a saving of
some 11 connecting wires with
a 12-bit converter. Some extra
lines are needed to control the
chip and the flow of data, but
overall there are still far less
inputs and outputs used than
there are bits of data.
The drawback of the serial
approach is that it significantly
complicates the software side of
things. What would take one or
two lines of code with a parallel
converter can take dozens with Fig.2. Pinout details and functions for the 8-pin version of the
a serial type. Reading a serial AD7896 12-bit A/D Converter.
chip is also slower, although the
maximum rate at which conver- Fig.3. Details of the five connec-
sions can be taken is likely to be tions to the Printer Port. Connec-
limited by the converter itself
tions to the port are via a male 25-
rather than the speed at which
the data can be transferred. way D-type connector
The AD7896AN can handle
up to 100,000 conversions per
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 129
Maxfield & Montrose Interactive Inc
,QWHU)$&(
Port[Prn3] := 0;
Listing 1:Converter Program Port[Prn3] := 1;
Port[Prn3] := 0;
Port[Prn3] := 1;
Reading := 0;
unit Adconv; Dta := Port[Prn2] AND 32;
If Dta = 32 Then Reading := 2048;
interface Port[Prn3] := 0;
Port[Prn3] := 1;
uses Dta := Port[Prn2] AND 32;
SysUtils, WinTypes, WinProcs, Messages, If Dta = 32 Then Reading := (Reading + 1024);
Classes, Graphics, Controls, Forms, Dialogs, Port[Prn3] := 0;
ExtCtrls, StdCtrls; Port[Prn3] := 1;
Dta := Port[Prn2] AND 32;
type If Dta = 32 Then Reading := (Reading + 512);
TForm1 = class(TForm) Port[Prn3] := 0;
Panel1: TPanel; Port[Prn3] := 1;
Timer1: TTimer; Dta := Port[Prn2] AND 32;
Button1: TButton; If Dta = 32 Then Reading := (Reading + 256);
Button2: TButton; Port[Prn3] := 0;
procedure Timer1Timer(Sender: TObject); Port[Prn3] := 1;
procedure Button1Click(Sender: TObject); Dta := Port[Prn2] AND 32;
procedure Button2Click(Sender: TObject); If Dta = 32 Then Reading := (Reading + 128);
private Port[Prn3] := 0;
{ Private declarations } Port[Prn3] := 1;
public Dta := Port[Prn2] AND 32;
{ Public declarations } If Dta = 32 Then Reading := (Reading + 64);
end; Port[Prn3] := 0;
Port[Prn3] := 1;
var Dta := Port[Prn2] AND 32;
Form1: TForm1; If Dta = 32 Then Reading := (Reading + 32);
Prn1: Word; Port[Prn3] := 0;
Prn2: Word; Port[Prn3] := 1;
Prn3: Word; Dta := Port[Prn2] AND 32;
Reading: Word; If Dta = 32 Then Reading := (Reading + 16);
Dta: Byte; Port[Prn3] := 0;
Busy: Byte; Port[Prn3] := 1;
S: String; Dta := Port[Prn2] AND 32;
If Dta = 32 Then Reading := (Reading + 8);
implementation Port[Prn3] := 0;
Port[Prn3] := 1;
{ $R *.DFM} Dta := Port[Prn2] AND 32;
If Dta = 32 Then Reading := (Reading + 4);
procedure TForm1.Timer1Timer(Sender: TObject); Port[Prn3] := 0;
begin Port[Prn3] := 1;
Prn1 := 632; Dta := Port[Prn2] AND 32;
Prn2 := 633; If Dta = 32 Then Reading := (Reading + 2);
Prn3 := 634; Port[Prn3] := 0;
Port[Prn3] := 1; Port[Prn3] := 1;
Port[Prn3] := 3; Dta := Port[Prn2] AND 32;
Port[Prn3] := 1; If Dta = 32 Then Reading := (Reading + 1);
Repeat Str(Reading, S);
Busy := Port[Prn2] AND 16; Panel1.Caption := S;
Until Busy = 0; end;
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 130
Maxfield & Montrose Interactive Inc
,QWHU)$&(
procedure TForm1.Button1Click(Sender: TObject); look something like Fig.4 when
begin run.
Timer1.Enabled := False; The main procedure starts by
end; setting variables Prn1, Prn2, and
Prn3 at the addresses of printer
procedure TForm1.Button2Click(Sender: TObject); port two. (Values of 888, 889, and
begin 890 will normally be required here
Timer1.Enabled := True; if the interface is used with printer
end; port one.) The next three lines
generate the start conversion
end. pulse on the ALF output, and a
Repeat...Until loop then monitors
pin 6 respectively, but in normal
the Busy line and loops the pro-
use these are both connected to
gram until it has gone low.
the 0V supply rail. The power
consumption of the AD7896AN After the unwanted leading
is very low at only about 9mW. zeros have been clocked out the
program starts to clock out and
Fig.4. The converter program in read data from the converter. The
MAKING A START action. The maximum value read from the port is stored
In order to take a reading reading is 4095. in variable Dta, and this value is
from the device, a low pulse is augmented by the appropriate
slightly by having four leading amount when a bit is high. For
first applied to the Start Conver-
zeros that must be clocked out example, if the most significant
sion input (pin 7). This activates
before the 12 bits of data are bit is high, Dta is augmented by
the built-in track-and-hold cir-
output. 2048. The value is left unaltered
cuit, and then starts the conver-
sion process. In the circuit diagram of if a bit is at zero. Eventually all 12
Fig.1 the Start Conversion and bits have been read in, and the
Data must not be read until
Serial Clock inputs are respec- final value in Dta is then dis-
the conversion has been com-
tively controlled by the Auto played on the panel. The stop
pleted, and one way of handling
Line Feed (ALF) and Strobe and start buttons disable and en-
this is to use a timing loop to
handshake outputs. The Busy able the conversion process by
provide a suitable hold-off. Al-
output is monitored using the simply switching the timer com-
ternatively, the Busy output at
Select In handshake input, and ponent on and off.
pin 8 goes high during the con-
version process. This output data is read via the Paper Out A 12-bit resolution gives re-
can be monitored, with a read- handshake input. The interface turned values in the range 0 to
ing being taken once the Busy connects to the printer port by 4095, and gives much better res-
output has returned to the low way of a male 25-way D-type olution than an 8-bit converter
state. connector, and connection de- with its range of 0 to 255. In nor-
tails for this are provided in mal digital display terms it pro-
The data appears on pin 5, Fig.3. vides something between three
and it is clocked out by way of
and half and four digit resolution.
pin 4. New bits of data are out-
put on pin 5 on the falling edge SOFTWARE This converter should give
of the clock signal at pin 4. The good results in applications such
The example program pro- as accurate temperature and volt-
reading process is therefore a vided in Listing 1 is for Delphi 1,
matter of generating a clock age measurement, and future In-
and it requires a form equipped terface articles will feature some
pulse on pin 4, reading the state with a panel to display readings,
of pin 5, generating another practical designs based on the
two buttons that are used to AD7896AN chip.
clock pulse, reading pin 5 again, stop and start the converter,
and so on until all 12 bits have and a timer that controls the
been read. A software routine is rate at which readings are
used to recombine the individ- taken. With a large font se-
ual bits of data into a 12-bit lected for the panel’s caption,
value. Matters are complicated the finished program should
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 131
Maxfield & Montrose Interactive Inc
debounce the switch, which is
by ALAN WINSTANLEY and IAN BELL easiest if you have a
changeover switch as it can be
Our team of “surgeons” continue their opamp accomplished using an SR flip-
extravaganza, explaining more of the terminology flop (or the S and R inputs of
used by manufacturers to describe the characteristics another D-type). See Fig.1b or
of operational amplifiers. We look at CMOS refer to Teach-In ’98, Part 7,
May 1998, page 376, for more
transmission gates too. on switch debounce. (This
By “bistable switch” we refers to the printed version of
BISTABLE EPE, Photostats are available,
assume you mean something
SWITCHES that will alternately activate and Ed.)
Before we continue with our deactivate an electronic bypass The output of the T-type
in-depth look at opamps, first a each time you press the pedal flip-flop could certainly be used
question from N. J. How in switch. Whilst you could use a to control a 4016 or 4066-type
Malaysia about a guitar suitable mechanical switch to bilateral switch (also called a
distortion pedal: directly bypass the distortion transmission gate). Each gate is
circuit – this would be an easy effectively a CMOS “switch”
“I need to build a bistable
solution, and is a common which can be closed using an
switch, which can be used as a
approach in effects pedals – it external Enable signal: taking
bypass switch for my home may prove more noisy and less the Enable pin high will close
made guitar distortion pedal. My reliable than an electronic the switch (On condition), see
question is, can I use a T-type solution. Fig.2a. When the control line is
flip-flop to control a 4066 CMOS
You are correct to suggest taken low, the transmission gate
transmission gate and provide adopts its Off condition. Being
clean switching? Does the 4066 that a T-type flip-flop can be
used to obtain bistable (push- bidirectional, transmission gates
“on” resistance depend on the will switch both DC and AC
control voltage or perhaps the on/push-off) control action for a
current? logic signal from a switch. For
this the switch must be a IN/OUT IN/OUT
I also have some noise momentary action rather than a
coming out from my distortion mechanical latching action. The Y Z
effect. I am using a 2N3904 T-type flip-flop could be
transistor to amplify the signal implemented using a D-type
and also to produce the desired with its ~Q (inverted) output
effect. Can I reduce the noise connected to its D input (see
by changing this part? If I can, Fig. 1a), with the pushswitch E
what transistor should I use?” generating the clock pulse. ENABLE
You would need to Fig.2a. A single transmission
+VDD
gate has a typical “On” resis-
D Q tance of 120 ohms.
S
CONTROL R1 R2
100k 100k
DEBOUNCE Q
(S1)
R
TO D-TYPE 14 13 12 11 10 9 8
FLIP-FLOP
hundreds of microamps to
milliamps for normal opamps. !
from a few hundred millivolts to its wiring have non-zero Fig.4. Typical Offset Null
a few volts per microsecond, resistance). This is measured in circuit.
but much faster devices are decibels and defined in a similar
available with slew rates of way to CMRR. The offset voltage is
hundreds or thousands of volts defined as the DC voltage
per microsecond. A fast device Input Resistance/Impedance – which must be supplied
with a slew rate of 1200V/us Common-Mode Input Impedance between the inputs to force the
could change its output from 0V is the effective impedance from quiescent (zero input voltage)
either input terminal to ground open-loop (no feedback
to 5V in 4 2ns.
¬
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 135
Maxfield & Montrose Interactive Inc
B"
&LUFXLW
distinguished from the wanted into the two inputs with output at
signal and is processed by the B! zero volts, i.e. (IB1 – IB2) where
9>@ED
circuit. The offset is typically 92! IB1 and IB2 are the input currents
93!
?ED@ED
small, but will be amplified by for the two inputs (Fig.5).
the circuit and may cause 92" Ideally these currents will be
significant problems. In opamp B#
equal, but in practice they are
applications in which only AC not, so IIO will be non-zero. The
signals are of interest offsets input currents have to flow
are less likely to be a problem through the external circuitry
as they simply cause a shift in Fig.5. Resistor R3 balances
and will cause offsets, even if
operating point. the resistance seen by the the impedances connected to
Some opamps have offset two bias currents in order to the two inputs are equal.
adjustment circuits that allow an reduce the offset caused by
external trimmer potentiometer, voltage drops due to the bias Temperature Coefficient of
connected to the appropriate currents flowing in the exter- Input Offset Current –
pins, to be used to set the nal components. Specifies how IIO changes with
output voltage to zero, see temperature.
Fig.4. The problem with this bias currents are equal).
approach is that offsets can drift
with time and are quite Temperature Coefficient of In next month’s Circuit
temperature sensitive. Low Input Offset Voltage – Specifies Surgery we will be describing
offset opamps must be used in how VIO changes with the internal aspects of opamps,
circuits where DC accuracy is temperature. As we noted above, and offering a selector chart of
required. offset changes with temperature popular types. IMB
Bias currents flow in the and this parameter tells you by
external components connected how much.
to the opamp (e.g. the resistors
used to set the gain) and in Input Bias Current (IIB) – Bipolar
doing so cause voltage drops. If opamps require bias (base)
these voltage drops are not currents for the transistors
equal at the opamp’s two inputs connected to their inputs, and
the difference will be amplified opamps with FET inputs have
by the opamp and appear as a leakage currents at the inputs.
DC error at the output. The input bias current tells
Adding a resistor to one of you how large these currents are,
the inputs to balance the and is defined as the average
resistance through which the current into the two inputs with
bias current flows can minimize the output at zero volts. This can
this effect. This is illustrated in vary greatly for different types of
-15
Fig.5. The bias current to the opamp, from femtoamps (10 A)
inverting input flows through R1 to tens of microamps, with bipolar
or R2, so making R3 equal to opamps having larger input bias
the parallel combination of R1 currents than FET-input opamps.
and R2 will result in the same
voltage at the two inputs due to Input Offset Current (IIO) – The
the bias currents (assuming the difference between the currents
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 136
Maxfield & Montrose Interactive Inc
3$57 ² 'LRGHV DQG /('V
E\ -RKQ %HFNHU
What we are doing during this 10-part Through these simple steps we hope to prove
Teach-In 2000 series is to lead you through the to you that using electronic components need
fascinating maze of what electronics is all not be a complex task and that, providing you
about! We are assuming that you know nothing think about each stage of what you are trying
about the subject, and are taking individual to create, you can actually design and build
components and concepts in simple steps and something that works!
showing you, with lots of examples, what you Last month we introduced color codes and
can achieve, and without it taxing your brain resistors. We now look at capacitors and show
too much! you some of the things they can achieve when
used with resistors.
21DD5BI F5
Q [
Schmitt trigger integrated circuit 4"
:
4#
(IC). Modify the breadboard
6 7 8 9
[ Q
!&
!
%
&
'
(
)
!
semiconducting material is dates back into history when the considerable period at which it
regarded as having two sides, thermionic valve was first remains at 0V.
respectively called the anode, introduced and means “two
denoted by the letter a, and the electrodes”.
cathode, denoted by the letter k.
VOLTAGE DROP
If a voltage is connected
You will have seen these letters across a diode with its positive One important fact to learn
alongside the LEDs. shown in side on the anode and the about any diode is that it always
the circuit diagrams from Part 2 negative side on the cathode, a causes a voltage drop in any
onwards. current will flow through the signal that passes through it
In this simplest of diode. If, on the other hand, the from the anode (a) to the
construction, the semiconductor voltage polarity is reversed, cathode (k). The term given to
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 139
Maxfield & Montrose Interactive Inc
7($&+,1
this characteristic is forward
voltage drop and is explained in
Panel 4.1.
What you see on the screen
in the output voltage graph is
the input voltage level minus
0 7V drop for a silicon diode.
¬
waveform.
It is important to note,
though, that if the output Photo 4.2. The interactive computer display illustrating
reference voltage via the load is
how a simple diode responds to different
other than 0V, then the diode’s
output voltage will never go voltage levels.
below that level. For example, if
the load were to be co be made to do more than just used in either direction,
conduct in a single direction. depending on whether the
nnected to 1 0V rather
¬ tha
Simple diodes, such as the positive-going or negative-going
n 0V, then the output waveform aspect of the waveform is
now on screen would be type illustrated in the computer
program, have just one basic required.
swinging between 1 0V and
¬
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 140
Maxfield & Montrose Interactive Inc
7($&+,1
PANEL 4.2 – DIODE The third letter, where in- one of the commonest general-
cluded, does not generally have purpose small signal silicon
PARAMETERS, any particular significance, diodes.
IDENTITIES, AND other than to the manufacturer.
Zener diodes, (explained in a POLARITY
POLARITY future Teach-In part), have ad-
The important parameters which ditional letters, which follow the The polarity of a diode is indi-
are usually quoted for any diode identity numbers, showing the cated in several different ways.
type include the following: Zener voltage and its tolerance: With small diodes that have an
o) Type – e.g. germanium or sili-
A = 1%
imprinted alphanumeric coding
con
B = 2%
(e.g. 1N4001), a painted band
around the body indicates the
o) Application – e.g. signal, recti-
C = 5% cathode end. With color-coded
fier or general purpose
o) PIV – peak inverse (reverse)
D = 10% diodes, the cathode is the end at
which the color code begins. In
voltage However, it has now become some instances, it is the case
o) IF(max) – forward maximum less easy to identify diode types style which indicates polarity (for
current from their prefix letters and which manufacturer’s data should
many codings exist which do be consulted).
Other diode parameters may not conform to the above stan-
be quoted in data tables and indi- If in doubt, polarities can be
dards, as will become apparent checked using the diode-check
cated by various abbreviations, when studying manufacturer’s
but they are beyond the scope of facility found on many digital mul-
diode data tables. timeters. They can also be
this Teach-In.
The American system for checked using an analog meter,
Some diode types (but not all) identifying semiconductor setting the meter on a low resis-
can be identified from the al- diodes involves a code which tance range and connecting the
phanumeric coding with which commences “1N”. Diodes coded probes across the diode. When in
they are imprinted. In the Euro- according to this system cannot resistance (ohms) mode, a posi-
pean system for classifying semi- have their function directly iden- tive voltage is normally present
conductor diodes, the coding can tified from their number, except on the meter’s negative (common
have either two letters and three by referring to data sheets and or “–“) socket (black lead) and a
figures, or three letters and two tables. It is thus recommended negative voltage on its positive
figures. The first two letters have that when a diode’s function or (“+”) socket (red).
the following significance: characteristics are unknown, its If a low resistance reading is
part number should always be indicated, the black probe is con-
First letter, semiconductor ma- looked up in a data table or a nected to the anode and the red
terial: catalog. probe to the cathode. A high re-
A Germanium Whilst most diodes have sistance reading indicates that
their identities printed on them the polarity is the other way
B Silicon
as type numbers, sometimes round.
C Gallium arsenide identity numbers can also be The polarity of a LED is not
D Photodiodes, etc. color-coded onto the diode always so easy to check using a
body, in the same way that re- meter. In most instances, though,
Second letter, application:
sistors are color-coded. The col- the lead nearest the “flat” side of
A General purpose ored bands are usually towards a LED is normally the cathode,
B Tuning one end of the diode. the other lead being the anode.
E Tunnel As we indicated towards the One way to check is to connect
P Photovoltaic beginning of this part of Teach- the LED in series with a 1kilohm
Q Light emitting In, holding the diode so that the resistor across (say) a 6V DC
T Controllable power recti- bands are to the left, the code is power supply. If the LED does not
fiers read from left to right. For ex- glow in one direction, try turning it
X Varactors, multipliers ample, a diode marked yellow- around. If it fails to glow in this
brown-yellow-gray reads as direction, it’s probably dead (or
Y Power you’ve forgotten to switch on the
4148, i.e. it is a type 1N4148,
Z Zener and reference power!).
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 141
Maxfield & Montrose Interactive Inc
7($&+,1
Others may be OTHER DIODE TYPES substance will emit light if
manufactured in such a way as sufficient current passes
to enhance the speed at which Apart from “ordinary” signal through it so that it heats up
they respond, or to increase or and rectifier diodes, there are above a certain temperature,
decrease the capacitance which several more types available, but even air (think of lightning in a
is inherent in any diode. Yet of a more specialized nature, thunderstorm); and there are
others may be more suited to including: some gases which can be made
video or audio signal processing o) Avalanche diodes to fluoresce when a sufficiently
for a variety of reasons, o) Bridge rectifier diode high voltage is present across
including low noise assemblies them, neon and argon, for
characteristics. o) Constant current diodes example.
Data tables will usually give o) Foldback diodes Some solids, though, have
an indication of what sort of o) Light emitting diodes (l.e.d.s) the strange property that they
application a particular diode will emit light without being
o) Photodiodes (light sensitive) heated when only a small
type is best suited to.
o) P-I-N diodes current at a low voltage level
o) Schottky diodes flows through them. Gallium
OTHER FUNCTIONS o) Tuning diodes (Varicap arsenide (GaAs) is one such
The voltage blocking diodes) material, and it is from this that
characteristic of a diode has o) Tunnel diodes LEDs are typically made,
other functions. For example, o) Ultrafast diodes usually in conjunction with other
one function that can be substances. Depending on the
o) Varactor diodes nature of the substances used,
performed by diodes, in
o) Zener or reference diodes LEDs are available which can
conjunction with capacitors, is to
increase the voltage of an AC We suggest you read through emit infrared, red, orange,
waveform. Panels 4.2 and 4.6 for some yellow, green, blue and white
more specific information about light.
Diodes are also used to
prevent damage to voltage diodes in general.
sensitive components by LED CONDUCTION
preventing a potentially
hazardous excess or opposing-
LIGHT EMITTING As with the simple diode
discussed earlier, LEDs are
polarity voltage from reaching DIODES used in the forward conducting
them, and they have uses in You have, of course, been direction, that is, the voltage on
signal compression and limiting. using light emitting diodes (LEDs) the anode must be higher than
When several diodes are since Part 1. It’s time now to that at the cathode, typically
used to feed voltages into or out discuss them more fully. between about 1 5V to 3V,
¬
of the same part of the circuit, Many materials can emit light according to the type.
they have the ability to be used when a current
as logical OR gates and AND is passed
gates (more on Gates and Logic through them.
is discussed in Teach-In Part 6). An ordinary
As you discovered at the filament bulb,
beginning of this Tutorial, in such as used in
oscillating circuits they can also a torch or a
be used to change the relative room light,
rates at which a generated emits light
frequency rises and falls, because its
converting a triangle waveform filament wire is
into a ramp waveform, for heated.
example. Indeed, any
electrically
conductive
Photo 4.3. A selection of constructions that use
multiple LED arrays.
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 142
Maxfield & Montrose Interactive Inc
7($&+,1
although it is often desirable to
have another LED or “normal”
diode connected in parallel but
with an opposite polarity, i.e.
Q cathode to anode, anode to
cathode.
Q Q Q Q Q [
[ Q In this instance, a single
series resistor is used to limit
[ Q [ [ [ [ [
the current through one or other
Q common connection, see
Fig.4.5b. This action keeps the
[
voltage level across each diode
within acceptable limits during
1 2 3 4 its reverse voltage condition.
Fig.4.5 Methods of using (a) single LED (DC drive); With a DC supply voltage, it
(b) LED with diode in an AC circuit; (c) LEDs in par- is sometimes required for
allel (DC); (d) LEDs in series (DC). several LEDs to be connected
in parallel, all having the same
At much below the typical their case and are intended for polarity and each turning on at
voltage level, the LED will not use with specific supply the same time. In this case it is
emit light. If the voltage is too voltages, but this is an preferable to use a separate
much above that level, too exception and most do not. series resistor for each of them,
much current will flow and the see Fig.4.5c.
Depending on the type,
LED will die. Consequently, a LEDs begin to emit light when The reason is that each
resistor (known in this type of the current flowing is about LED is likely to have slightly
application as a ballast resistor) 0 5mA to 1 5mA, but a current of
¬ ¬
different current requirements
must always be used in series and the use of a single resistor
between about 8mA and 20mA
with a LED, either before the would favor the most current-
is usually required for good
anode or after the cathode, its hungry one, to the detriment of
visibility to occur, although there
value being chosen so as to the light output from the others.
are low-current LEDs that glow
safely limit the maximum Additionally, this method is also
brightly with less current. The
current flow, yet still allow preferable in case one LED
maximum current that a typical
sufficient for the LED to emit should die, forcing an
LED can tolerate is about 30mA
enough light as to be clearly unacceptable amount of current
(but data sheets should be
visible, see Fig.4.5a. through the others, threatening
consulted for specific types and
Note, however, that some their limits). their life as well.
LEDs have a resistor built into Any number of LEDs can be
Compared to filament
lamps, LEDs offer not connected in series as long as
only great
savings in power
consumption, but
also offer
advantages of a
much longer life,
smaller size,
insensitivity to
shocks and
vibrations, and
have a rapid
response time.
They can
Photo 4.4. The interactive computer dis- also be
play illustrating how a LED responds to connected to an Photo 4.5. A selection of diode and
varying voltages and currents. AC supply, bridge rectifier types.
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 143
Maxfield & Montrose Interactive Inc
7($&+,1
PANEL 4.5 – MISCEL- value, which remains substan- Tuning (Varicap) diodes
tially constant over a wide range Tuning diodes are designed to
LANEOUS DIODES of current. They are mainly vary their capacitance in re-
Avalanche diodes found in voltage suppression sponse to changes in the voltage
applications. across them, and are thus equiv-
Avalanche diodes have simi-
lar voltage and current charac- alently known as Varicap
teristics to “ordinary” Zener P-I-N diodes (variable capacitance) diodes.
diodes, but have a much They are especially used in high
A P-I-N diode is a refined frequency tuning applications,
greater surge handling capacity
version of the “basic” p-n junc- very high frequency (VHF) and
combined with extremely fast
tion diode with special charac- ultra high frequency (UHF) radio
switch-on times. They are com-
teristics that make it suitable for tuning for example, in place of
monly found in voltage suppres-
use at radio frequencies. The the rotary type of variable capaci-
sion applications.
letter I indicates that the diode tor whose capacitance range is
has an “Intrinsic” layer sand- too coarse or too large to be prac-
Constant current diodes wiched between the p and the n tical. Their use also has the great
layers – a technicality outside benefit that no mechanical action
Because of their superior the scope of this Tutorial.
stability, constant current diodes is involved.
are ideally suited for use as cur-
rent regulators and limiters, bi- Schottky diodes Tunnel diodes
asing elements, and for use in
A Schottky diode is a sophis- Tunnel diodes are specially
linear ramp generators, stair-
ticated type of diode which has processed diodes whose forward
case generators etc.
a forward voltage drop that is conduction displays a negative
typically about half that of a resistance characteristic. Such
Foldback diodes “normal” silicon diode, and has diodes can be used in low noise
a fast reverse recovery. It finds amplifiers or in oscillator circuits,
A foldback diode is a device particular use in switch mode
that, under voltage surge condi- up to microwave frequencies.
power supplies where such at-
tions, enters the avalanche tributes offer greater power con-
mode as normal, but causes the version efficiency. Ultrafast diodes
voltage to fall from that of a
breakdown value to a clamping Ultrafast recovery rectifier
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 145
Maxfield & Montrose Interactive Inc
7($&+,1
diodes feature high reverse Varactor diodes can be used to generate har-
voltage capability, very short Varactor diodes are another monic multiples of a fundamen-
recovery times, very low switch- type of diode whose capaci- tal frequency.
ing losses, and low-noise turn- tance can be changed accord-
off switching. They are suitable ing to the applied voltage. They
for use in switch-mode power find use in voltage multiplying
supplies and similar fast rectifier circuits (doubling, tripling, etc.),
applications. where their non-linear action
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 146
Maxfield & Montrose Interactive Inc
7($&+,1
D2! C;!
@9> 3?=@ED5B
2<?3; 3?>>53D?B
>2 B5C9CD?B F1<E5C C5<53D54
D? 4B?@ &F 9>@ED @E<C5 D? %F
C55 D5HD ?ED 4
! "
B%
"" : ?ED ! 4!
#
?ED " 4"
9> $ $
?ED # 4#
%
:
B$
?ED $ 4$
"" &
?ED % 4%
9> # '
?ED & 4&
(
B#
"" : ?ED '
29D & 1>4 &$
4'
)
) 9> $ 13;
9> " !
! 9> # 29D ' 1>4 !"( 2ECI
!!
:
B" 29D % 1>4 #"
!! 9> " @1@5B
"" !"
!" 9> ! 29D $ 1>4 !& C5<53D
9> ! !#
!# 9> 29D # 1>4 ( 5BB?B
"#
B!
"" : !$ F <?793 7>4
!&
9>
29D >E=25BC B565B D?
@?BD 9>@ED B579CD5B 29DC
B& B' B( B) B!
![ ![ ![ ![ ![ D85 1>4 F1<E5 9C D81D >55454
D? 9C?<1D5 D85 29D 9> 1 @B?7B1=
21DD5BI F5
F >?D5 D81D B579CD5B 9>F5BDC 29D '
"%# C;!
$!
%!
&!
#%
#&
#'
#(
#)
$"
$#
$$
$%
$&
$'
$(
$)
%"
%#
%$
%%
%&
%'
%(
%)
&"
&#
&$
$
&
41D1 ?ED 41D1 9>
6 7 8 9 :
! " # $ % & ' $ # " ! 7>4
1 2 3 4 5
B% B#
B$ B"
circuit board copper foil track master B!
layout pattern.
$!
%!
#%
#)
$"
$%
$)
B B B B B
&$
#&
#'
#(
$#
$$
%(
%)
&#
$
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 147
Maxfield & Montrose Interactive Inc
7($&+,1
INTERFACE CIRCUIT socket to the board
through the two
The complete circuit for the holes provided,
basic digital interface between enlarging them with
the computer and breadboard is a drill if necessary.
shown in Fig.4.6. A second part Now carefully solder
to the interface will be described the pins to their
next month – the part which tracks. Ignore those
allows analog waveforms to be pins hat do not have
input, the analog-to-digital tracks – they do not
converter (ADC). need to be soldered.
The computer’s parallel Take a strip of
printer port has eight output terminal pins and cut
data lines, D0 to D7, which are off a length of eight
connected to a terminal pin Photo 4.8. Parallel Port Display/Set screen and a length of six.
block, at which point they Turn each strip so
on the interactive computer display.
become re-named as OUT0 to that its shorter pin
OUT7. There are also five lengths are
tracking details in Fig.4.7 and
printer port lines, which can be downwards, and press the strip
Fig.4.8, you should not find
used as data inputs from firmly onto a hard surface that
these few solder joints hard to
terminal pins IN0 to IN4. Strictly will not damage and cause fury
make. Having made them,
speaking, they are normally in your household! Press down
though, it is imperative that you
used by the printer to send until the pins are barely
should check that none of the
status messages back to the protruding on that side (but just
joints undesirably link with
computer, hence their names at enough showing so that a meter
others.
the computer end. probe can contact each one).
With a close-up magnifying
The resistor configurations Insert the terminal strips
glass, double-triple check that
are included in the IN0 to IN4 into the board, with their pins
there are no solder connections
data lines to keep the voltages protruding from the trackside,
between adjacent pads or
input to the computer below 5V. and solder them. Now check
tracks. If there are, just touch
It is assumed that your that all the solder joints are OK,
the hot soldering iron to them
computer’s voltage input limit is as cautioned above.
and they should separate. If this
5V. Your breadboard circuits,
fails, use a sharp knife or When satisfied with the
however, are powered at about
scraper tool to cut through the board, press the assembly
6V. What the resistors do is to
offending connections. firmly into the end of the
reduce (attenuate) the 6V levels
to 5V. As an additional check, use breadboard as shown in Fig.4.8
your multimeter on a low Ohms (also see Photo 4.7). Note the
range to check that adjacent breadboard hole numbers and
PRELIMINARY tracks/joints on the board are position the assembly
isolated from each other. accordingly. Do not insert into
ADVICE the breadboard the other
To assemble your interface The Teach-In Computer
components shown until we tell
connector board, it is necessary Interface printed circuit board is
you to.
to do just a bit of soldering. In available from the EPE Online
the Introduction to Part 1 we Store (code 7000253) at
said that some would be needed www.epemag.com INTERFACE TESTING
and recommended that, if you With one end of the
were unfamiliar with soldering, INTERFACE ASSEMBLY computer’s parallel port printer
you should peruse a copy of our lead plugged into the computer
Basic Soldering Guide from the Carefully push the computer (and with the computer switched
EPE Online Library at connector socket pins through off), plug the other end into the
www.epemag.com the holes on the printed circuit interface board assembly. If any
board, so that they protrude on other equipment is connected to
As you will see from the the “track side”. Do not solder
interface board’s assembly and your printer port via an adapter,
them yet. Securely bolt the disconnect it.
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 148
Maxfield & Montrose Interactive Inc
7($&+,1
Power up the computer in DC, take voltage readings at the If none of the port
the usual way. In the unlikely top of the OUT0-OUT7 terminal addresses allow you to set logic
event that the computer pins. The meter’s COM probe values on the terminal pins,
behaves in any way out of the should contact with the GND again recheck all your
ordinary, immediately switch it terminal pin. For each logic 1 assembly, including proper
off, unplug the connector from shown on screen, that same connection of the printer port
the interface board and recheck OUT terminal pin should read cable at both ends. If there is
that all the solder connections about +5V. For logic 0 it should still no success, consult your
are satisfactory. read as 0V. computer manual or supplier.
From the Teach-In main It is regrettable that the (Please also tell us at EPE
menu select Parallel Port Data order of the connector pins Online about this, stating the
Display/Set. On the resulting dictates that the numerical order computer type and what voltage
screen are three boxes of data, of the terminal pins has to be readings you actually get.)
as shown in Photo 4.8. the reverse of that on screen; Once the correct port
The two upper boxes are be aware of this when taking the address has been found, it will
associated with data input. The voltage readings. automatically be stored for
lower one, Output Byte, is future use by the program when
you next call the main menu.
concerned with data output and PORT ADDRESS Note that it is our software that
is the one we are interested in
first. You may have now found a holds the address – no change
small problem – it doesn’t work! is made to the computer’s own
As we shall explain further A three-in-one chance, perhaps, system data.
in Part 6, a computer byte of that this is so. The problem you
data consists of eight bits (of may encounter is that the
data), where each data bit can computer has internal settings DATA INPUT TEST
be set high or low (logic 1 or that dictate by which “register Having completed the data
logic 0). The bits in this instance address” (route) data is output output test, it seems logical to
are those that can be set onto to its parallel printer port pins. do an input test! Plug resistors
the eight output lines on the R1 to R10 into the breadboard
interface board, 0 to 7 (many The address frequently
used is that at port register as shown in Fig.4.8 and with
identity numbers in computing values as shown in Fig.4.6. (Do
and digital electronics location &H378 (378
hexadecimal – 888 decimal) it with the computer unplugged
commence at 0). from the breadboard.)
and this is the address used as
In the Output Byte box, the the default by the computer With the computer
first line shows the bit numbers program. It is stated as such at reconnected, look at the two top
in reverse order (another the top right of your screen. boxes on the computer screen
computer/digital convention). There are two other addresses and make a note of the binary
Each of the bits can be set high that might be encountered on and decimal values shown. We
or low from your keyboard, your computer system, &H278 shall discuss the difference
using the same numbered keys. and &H3BC (decimal 632 and between the two boxes next
Line two (Byte) shows the status 956). Your program can be set month. The right-hand box (box
of each bit as you set or clear it to use either of these instead. 2) should show binary bits 4 to 0
(1 and 0 respectively). (Incidentally, hexadecimal and as zeroes.
The arrangement of the bit binary numbers are discussed in Clip your battery’s negative
values of the byte is in fact a Part 6.) lead to the 0V pin on the
binary number (although in Press <P>, to change the breadboard. Now clip the
many applications this fact may port address to &H278. Now try battery’s positive lead to the IN0
not be important) and its value the above tests again. If the pin on the breadboard. In box 2,
in decimal is shown in line pins still do not change their bit 0 should have changed from
three, Value. logic state in response to your logic 0 to logic 1. Removing the
Experiment with pressing numerical keying, press <P> positive lead from the IN0 pin
your numeral keys and see the again to select port address should return that bit to logic 0.
effect in the Output Byte box. &H3BC. Try the pin logic test Do the same for the other
Now, with your multimeter on a again. breadboard input pins, IN1 to
suitable scale for reading 5V
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 149
Maxfield & Montrose Interactive Inc
7($&+,1
IN4. All should change status
accordingly.
The success of this test
depends on the Port address
still being set to that found
necessary for the Output test.
PULSE TEST
Remove the battery
connections used for the Input
test. Connect the battery back
onto the power input pins for the
oscillator circuit you were using
in this month’s Tutorial.
Ensure that a link exists Photo 4.9. Typical pulse waveforms input to the
between the 0V connection of computer via the simple interface board.
that circuit and the 0V
connection of the interface enough for the computer to and describe the additional (and
circuit. Make a crocodile-clipped respond to it. very simple) breadboard circuit
connection between IC1a pin 2 Just for interest, observe that will let you display the
(Fout) and interface input IN0. box 2 when the oscillator is shape of the waveform that
Set VR1 of the oscillator to connected to any of the other occurs at the VR1/C1 junction
a midway position and use a interface input pins. of the oscillator, via the Analog
100uF (or greater) capacitor for Input Waveform Display
C1. This allows a square wave program.
at a slow rate to be sent to the UNTIL NEXT MONTH We shall also discuss
IN0 pin. Next month we shall waveform shapes in general.
Observe bit 0 of screen box discuss other aspects of the Until next month, then, 'bye!
2. It should repeatedly change computer interface and its
between 0 and 1 in time with the program. Until then, though, you
changing output of IC1a. You can experiment with the
can try adjusting VR1 to change Frequency Counter and Pulse
the rate, but you will find that at Waveform displays, both of
the more extreme settings the which are selectable from the
computer may fail to respond. main menu.
This is because one or other In both programs you have
side of the waveform is too brief the option to set the “active bit”,
for it to be recognized by the in other words to specify to
computer. This will be which of the interface input pins
especially true with slower the oscillator is connected. In
computers. the case of the Pulse display,
What you can do to also experiment with the Display
alleviate some of this problem Step option.
is to remove both diodes (D2 Do not change the Port
and D3) from the breadboard, address that you found to be
and place a 1kilohm resistor in active in the original Output
the D3 position (as you did at tests.
the beginning of the this
If your computer has
month’s Tutorial). This will
sufficient speed, try speeding up
cause a square wave output to
the breadboard oscillator’s rate.
be generated whatever the
setting of VR1. The oscillation We shall explain both of
rate, though, must be kept slow these programs next month,
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 150
Maxfield & Montrose Interactive Inc
SURFING THE INTERNET
By Alan Winstanley
SWEET Web TV users will gradually Texan pal uses an ordinary 56K
start to gain access to web sites modem and for a flat rate of
DREAMCASTS (especially if they don’t have a $19.99 (12 UK Pounds) a month
Before Christmas I treated PC). he enjoys unlimited 24 x 7 Inter-
myself to a Sega Dreamcast If web sites wish to capital- net access. In fact he gets it for
games console to replace my ize on the emerging medium of $12 (7 UK Pounds) because of
redundant Mega Drive (Genesis Web TV, they will need to offer loyalty discount options. Local
in the USA) for entertainment a Web TV option which has a phone calls are free, as are In-
purposes. This terrific fan- fixed width page, large legible ternet access calls. Using a Net-
cooled 128-bit games console fonts that can be viewed from Zero account
has an internal 33 6 modem and
¬ ten feet away, and few naviga- (www.netzero.net), for the
BT phone lead. Sega provides tion choices. HSBC Bank al- price of a banner advert on his
their own limited Java, Flash ready offers on-line banking by desktop, he enjoys a free ISP.
and MPEG-aware web browser digital TV and there are many The cost of Internet access
disk (the Sega Dreamkey), so more services to come. in the US has become almost
naturally it wasn’t long before The Dreamcast software forgettable. It is not surprising
the inevitable happened and I keyboard uses the gamepad to that the US press boasts of how
attempted surfing the net using “press” the on-screen keys and America is beating the English –
the TV as a monitor and the is a pain to use, so Sega’s sepa- supposedly the nation of shop-
Dreamcast software keyboard to rate AT-style keyboard (price 20 keepers – at their own game.
type an E-mail. UK Pounds) would be essential American E-commerce seems
Sega’s UK Internet service for more enthusiastic use. At to be thriving (which is why I
is managed by BT, and ulti- the moment it would barely be just ordered the SETI@home T-
mately players will be able to worth the cost except for send- shirt from the US today), whilst
challenge adversaries from all ing the very briefest of E-mail UK Internet commerce is being
over Europe (but not, it seems, messages. This is because the strangled at birth in what has
anywhere else in the world). Dreamcast provides an on-line rapidly become a national scan-
The first stage is to create a E-mail client, so legions of dal of prohibitive phone call
user ID via the Dream Arena Sonic the Hedgehog lovers (or costs.
web site, which gives you a free their parents) are faced with Remember that most users
dreamcast.com E-mail ad- making standard local-rate BT are fleeced by the BT minimum
dress. The access speed was calls to compose and fetch E- charge of 5p (8 cents) for each
then adequate enough to visit a mail whilst logged in to the and every call. This aspect is
web site or two, although many Dreamcast web site. It would almost as punitive as the lack of
page layouts were altered dras- make an entertaining introduc- “unmetered” (flat rate) phone
tically by the fact that they are tion to E-mail and the web, calls. I can dial in and collect
viewed at a fixed width using a though. the latest batch of E-mail text
TV browser. messages from all my POP3
Considering that many web boxes in under a minute
CUT THE PHONE (equivalent to about 1p at off-
developers agonize at their
clients’ expense over the most TARIFFS peak prices) during the day, but
trivial of design details, they all in effect I will pay five times that
A friend from the USA re-
overlook one market yet to value because of the minimum
cently visited for a few days so
emerge in the UK – Web TV. charge. Every Internet access
we decided to compare phone
Experience of using Sega’s web call, whether through a Sega
prices. Life for an Internet user
browser on a TV set provides a Dreamcast or your PC, costs 5p
in the Dallas Metroplex is a
taste of things to come for many minimum and some Internet
whole lot rosier than that of a
home Internet users, when more Content Providers (notably
British Telecom customer. My
AOL) now actively dwell on con-
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 151
Maxfield & Montrose Interactive Inc
1HW :RUN
sumers’ fears of racking up launch of BT Surftime, billed as loyalty discount, and it still ex-
large phone bills. AOL wants an “unlimited access price pack- cludes local voice calls. Indeed,
9.99 UK Pounds a month and age”. Naturally, nothing is sim- for only $40 a month Texans
the call is still a penny a minute. ple and the end user is offered a can enjoy cable modem access,
number of pricing options, none offering a 100 to 120-fold in-
of which permits local voice crease in bandwidth over a V.90
CHRISTMAS LITMUS phone calls. It is only after modem. Cable modems are
Over Christmas ’99, many many months of use, if not starting to roll out in the UK too,
radio and TV consumer pro- years, that users can build up with ntl [sic] gearing up to offer
grams chattered excitedly about an accurate picture of their a range of hosting services as
the new-found novelty of pur- likely Internet requirements. well.
chasing goods over the Internet. Newcomers to the Internet must I almost omitted BT’s “pay-
Americans will laugh, but for therefore take a shot in the dark as-you-go” option priced at 1p
many UK consumers, last regarding the best choice of tar- per minute evening, night-time
Christmas will have been a lit- iff for them. BT’s new scheme is and weekend or, naturally, dou-
mus paper test for E-commerce. based on its interpretation of the ble that price during the day. It
Now that the Internet is trendy nation’s browsing habits and for is not yet clear whether the min-
and appealing (and not to men- many it will be as bewildering as imum 5p call has been ditched,
tion a whole lot more usable), selecting a mobile phone tariff. but at the time of writing OFTEL
consumers are taking to order- The proposals are these: has yet to approve the new
ing on-line like wildfire, and they Weekend Internet would cost package anyway, which will be
are proving adept at sniffing out 6.99 UK Pounds per month inc. “subject to availability”.
the best deals. By next Christ- VAT for unlimited weekend ac-
mas the novelty of E-commerce The Campaign for Un-
cess. Or you could try the metered Telecommunications
will be taken for granted, and Evening and night-time Inter-
users will simply be concerned (or CUT for short) has an exten-
net option instead for the same sive web resource devoted to
with finding the cheapest bar- price, which provides unlimited
gains from the most likely- the campaign for unmetered
access in the evening and night- phone calls, at
looking suppliers. time from Monday to Friday. www.unmetered.org.uk. I fear
Unlike the service enjoyed Alternatively there’s always the they still have a lot of work to
within the Dallas Metroplex by proposed Daytime Internet op- do, and I wish them luck.
my acquaintance, thanks to tion which jumps to 26.99 UK
BT’s pricing and their ownership Pounds per month for unlimited
of the local loop, the situation in access Monday to Friday, or 1p
the United Kingdom could al- a minute at all other times.
most have been engineered to For heavier users like my-
inhibit the uptake of the Internet
self, there’s the so-called Any-
by the mass market. Even look-
time Internet option at 34.99
ing at their high-level services,
UK Pounds per month ($58)
BT has subsequently back-
charge for unlimited access at
tracked on the bandwidth avail-
any time of any day. (At this
ability on ADSL – the available
point, my Texan friend started
speeds have been reduced, and
to laugh.) BT’s 24 x 7 Internet
the cost price has been in-
option is thus nearly five times
creased at the same time.
the cost payable in Texas after
BT recently proposed the
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 152
Maxfield & Montrose Interactive Inc
A ROUNDUP OF THE LATEST EVERYDAY NEWS
FROM THE WORLD OF ELECTRONICS
Philips wants to extend E- Geneva and New York on 9 Oc- event through its own Web Site
commerce on the Internet to tober ’99. The UN-backed web- (http://news.bbc.co.uk) and
pay-viewing of special events, site (www.netaid.org) used joined with MTV to broadcast
by exploiting a feature of the 1500 servers at 90 locations the concert live. TV stations in
newly ratified MPEG-4 stan- round the world. 60 countries relayed the event.
dard. MPEG-4 can carry accept- Cisco Systems UNESCO also offered a menu
able pictures and sound at a few (www.cisco.com) and the or- of audio interviews on its Web
tens of Kbps, because it is ganizers designed the system to Site (www.unesco.org).
object-oriented. The stationary handle 125,000 simultaneous
background and moving fore- hits, and one million a minute –
ground are separately coded, ten times the peak rate for Inter- Flash Trap Folly
and re-combined in the PC. net cover of the last Olympics. By Barry Fox
Background ambient sound is Netaid’s target was to break the
separately coded from speech billion hit barrier. After a year’s development
or music. work, a British invention that
Internet news reports after can fool vehicle speed trap
Philips has developed a the event (http://dai- cameras recently went on sale
system that uses MPEG-4 to lynews.yahoo.com) put the for 200 UK Pounds. The Home
provide an overall view of a total number of people who vis- Office says it is “unreliable and
sports pitch or concert stage, ited the site at 2 4 million. Those
¬ ineffective” and anyone who
along with background crowd who did log on had to download tries it risks arrest for
noise. The players and perform- the latest version of the Re- “conspiring to pervert the course
ers only appear on screen, and alPlayer G2 decoding software of justice” and contravening the
the music or commentary are before they could receive live Department of Transport’s Con-
only heard, when the PC-user video and sound struction and Use Regulations.
pays a fee by credit card. Ad- (www.realaudio.com).
vertisements on boards are tai- Photographer Alwyn Morris
lored to the location of the tar- Even with 64Kbps ISDN ac- licensed Backflash of Mansfield
get audience. cess to the Netaid site, with a in Nottingham-shire to manufac-
Pentium 3 processor running at ture and market the device
500MHz and Windows 98, the which he patented a year ago. A
Web Overload postage stamp live pictures fre- slave flash unit by a car’s num-
However, as proved by the quently collapsed into an irregu- ber plate is triggered by any
Netaid live Webcast, the Inter- lar display of frozen and blurred photo flash and reacts so
net has a long way to go before images. Material coded at quickly that it fogs the film or
it can challenge conventional 34Kbps often delivered at an blinds a digital image sensor.
TV, and paying for faster PCs average of 4Kbps, sometimes The slave reacts either to visi-
and ISDN access into the home dropping to zero data rate. Mo- ble flash or infrared as used in
is no answer if the main delivery tion was, at best, very jerky. some new cameras to trap mo-
system is overloaded. This Sound quality remained- torists without their knowledge.
message came over loud and reasonably consistent through- Although Backflash explains
clear from the fuzzy disjointed out. how the slave can be fitted near
video images that arrived from Those who watched on TV a car’s number plates, and
Web cover of the Netaid pop got a much better deal. The proved to work by taking a Po-
concerts held in London, BBC in Britain promoted the laroid photo or pointing an infra-
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 153
Maxfield & Montrose Interactive Inc
1(:6
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 155
Maxfield & Montrose Interactive Inc
1(:6
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 156
Maxfield & Montrose Interactive Inc
John Becker addresses some of the general points readers have raised. Have
you anything interesting to say? Email us at editor@epemag.com!
WIN A DIGITAL resist experimenting! The LED We’ve passed your CS sug-
will light either way round if con- gestion to our Circuit Surgeon,
MULTIMETER
nected across the collector Alan W, who is at the cutting-
A 3 1/2 digit pocket-sized winding, and produces brighter edge, so to speak!
LCD multimeter, which measures light than across the transistor
AC and DC voltage, DC current, collector/emitter as shown.
and resistance. It can also test However, if you really want to
diodes and bipolar transistors. produce some light, put the LED
Every month we will give a Digital across R1 with the cathode to PIC CHANCE
Multimeter to the author of the TR1 base and the anode to the
best Readout letter. top tap of the inductor, although Dear EPE,
a single LED gets rather hot, Referring to your Nov ’99
and isn’t likely to last long. Five Editorial, I would like to share
* LETTER OF THE or six LEDs in parallel seem to my views on the topic of “Give
work well, without noticeable PICS a Chance”.
MONTH * temperature rise. Here in South Africa, there
The value of R1 doesn’t are so many people who would
INGENIOUS! seem to make much difference, like to play with or learn the PIC
Dear EPE, I suspect that the flyback phase microcontroller that I am often
of the oscillation cycle is using inundated with requests for help
On obtaining EPE Nov ’99, I the LED leakage to feed nega- on the subject. As I am among
wasted no time in trying out the tive regeneration to the transis- the top PIC enthusiasts in SA
One Volt LED from Ingenuity Un- tor’s base, which is not a good (or so everyone reckons), I
limited. Instead of winding the in- idea! An ordinary diode con- know how versatile these de-
ductor myself, I salvaged a nected in inverse parallel with vices are, and believe that your
toroidal mains filter common- the LEDs is required to damp magazine fills a need in PIC. I
mode choke. I am a self- the reverse voltage across know there are people who are
employed computer monitor re- them. This makes no difference “PIC Ignorant’’ but they are nor-
pairer, I have plenty lying around. to the light intensity. mally converted the day they try
The one I picked was because it to do some digital controller of
was simply the easiest to get at As you may have gathered,
this topic is of considerable in- any sort, and end up with
on the pile of scrap chassis, and boards of TTL chips. So please,
just happened to have a pair of terest to me. How about a Cir-
cuit Surgery special on calculat- keep up the PIC projects, as
windings of 23 turns each – near many students here use them
enough! ing windings and toroid core di-
as the basis for university and
mensions, with some guidance
As ZTX650s are not common college assignments.
on how to estimated energy
in my line of work, I picked a de- transfer and how to determine About General Instruments
vice certain to out-perform, a the frequency of operation? selling them since 1982, this is
BD433. Resistor R1 was made up indeed true, as in 1995 I re-
from a 2k2 resistor and 50k pre- I. Field
paired a module coming from
set, so that I could have a twiddle Letchworth, Herts, UK
an AEG washing machine, 10
and observe the result – had you years old, with a PIC1654 (TTL
noticed that if you pulse-drive a That’s what we like to hear version). I even believe that
red LED hard enough it produces – readers taking ideas from pub- General Instruments used the
orange light? lished designs and modifying RISC PIC core in other products
The blocking oscillator pro- them for their own purposes or such as the SP0256 Speech
duced excellent results, I couldn’t whims. More power to you all! Synthesizer (remember this
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 157
Maxfield & Montrose Interactive Inc
5HDGRXW
one? – the EE Speech Synthe- with “registry” and other such Wanting to get my hands on
sizer Project for the BBC Micro things that I have tried to steer a PIC, I built a simple parallel
in 1983) and maybe the AY-3- clear of. port programmer. But I didn’t
8910 programmable sound gen- have an assembler, so designed
erator, and also in some GI Ian Gill a set of macros for the PIC in-
chips in the Interface One for via the Net struction set and used the
the Sinclair ZX Spectrum. Very, macros to assemble my PIC
very interesting. programs into PIC code. Sim-
Well, that’s the satisfactory
Please keep up the good ple! Who says you can’t make
conclusion to an E-mail discus-
work, your magazine is great, do with what you’ve got?
sion between Ian and our Online
and the only one that bothers to Editor Alan. Ian had queried The problem with PICs is
provide any PIC source code with Alan what I had meant in that they are so darned useful
and/or flow diagrams. my TEACHIN.TXT software file (and cheap). Designing software
when I referred to “creating a is not really any different to do-
Jason Mitchell ing it in hardware, except soft-
directory”. It never occurred to
Gauteng, South Africa ware comes free after you have
me that anyone who had a com-
via the Net spent the time writing it, and
puter would not know what a
directory is. Alan points out that hardware costs hard earned
“newer Windows 98 users will cash, so software should be a
We know full well that the
use the word folder”. part of electronics and not a
great majority of our readers
separate subject. After all you
have an interested in PIC re- Thanks Ian for the praise, are just designing the logic in
lated designs etc. It is not due to thanks Alan for helping Ian (and software instead of wiring up
some whim of mine that Read- other ’98 fans as well perhaps). ICs.
out pages have a lot of letters
But Ian, why should you be To illustrate the point of us-
concerning PICs and other pro-
afraid of “registry”? Or are you ing PICs, I spent a few hours
gramming matters, it’s because
being humorous and making an one evening re-designing the
they are the subjects that most
indirect reference to Marriage Ginormous Display (Dec ’99)
readers write to us about. We
(as in “Registrar of”)? without using any kind of micro-
get far, far more letters than
ever reach these pages and processor. The result was a cir-
PICMAN cuit considerably more com-
when writing on other subjects
plex, what with a UART, Baud
(not necessarily suitable as Dear EPE, rate generator, 4-bit compara-
Readout matters), readers often
As a PICman of long stand- tor, data latch, 7-segment de-
also offer comments on what
ing I would like to contribute my coder/driver, plus glue logic.
we are publishing.
two cents worth to the PIC or And the expense of it all!
Yes, the SP0256 device we not to PIC debate. I would also like to say a
remember well, and I too have few words concerning the PIC
I first found out about PICs
played around with it, it was Micro-Probe (Dec ’99). I have
way back in ‘89 I think, when
sadly missed when it became no doubt it is a useful tool, but it
CMOS PICs first became avail-
obsolete. isn’t the be all and end all of de-
able in the UK. Of course they
were the 16C5X series, where bugging. In most of my pro-
ENVELOPING TEACH-IN previously only NMOS versions gramming errors, the problem is
had been available, which were not that the program loses its
First the exclamation, and way, but algorithms not handling
mask programmed and there-
then the simple explanation: the data correctly, or protocol
fore not suitable for small scale
Big Al . . . thanks for your use. Having obtained and stud- problems between different sec-
help, I have got the Teach-In ied the data sheet and later the tions of code. All caused, of
2000 now and it is MOST won- data book my thoughts were course, by brain failure when
derful . . . er . . . I never knew “Microchip are onto a winner writing the code.
that a directory was the same as here”. And I was right, they My preferred method of de-
a folder ... I always baulked at must be the most popular mi- bugging is to use the simulator
the word “directory” as I always crocontroller on the market. in MPLAB, not to simulate the
thought this to be synonymous
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 158
Maxfield & Montrose Interactive Inc
5HDGRXW
whole program but to test sec- mode con codepage pre-
tions of it to ensure it is working pare=((437) C:\ WINDOWS\ I’ve tried the above tech-
correctly. MPLAB is very easy to COMMAND\ ega2.cpi) nique and it appears to work on
use once you get the hang of it, mode con codepage select=437 my system and leave it in the
not as easy to learn as Toolkit but same state as when the system
much better for writing and de- ty2kmenu.exe
booted. Of course, this will only
bugging code. I would suggest work when the system in ques-
anyone who wants to write their make sure the file tion has an AUTOEXEC.BAT
own code should give MPLAB a MENU.BAT is now saved to file since I believe this is not ab-
try. disk. solutely required for Windows
95/98.
Peter Hemsley Whenever you want to run
Somercotes, Alfreton, Derbys the Teach-In 2000 software run The only ideal solution for
via the Net the batch file you just created, today’s modern systems would
i.e. MENU.BAT. be to use a programming envi-
ronment more suited to Win-
Alternatively you could cre-
I admire your initiative and dows such as Visual Basic or,
ate a shortcut to this file on your
agree with your comments. better still, Borland/Inprise Del-
desktop if you are using Win-
As a further comment, no-one phi, for the creation of the
dows 95 or Windows 98.
objects to “yet another opamp Teach-In software.
Hope this helps out others
project” or one that uses any The batch file solution is not
who are having the same prob-
manner of other “standard” de- ideal, I’ll be the first to admit
lems with the software.
vices. To my mind, PICs should that, but it works for me.
be equally regarded as Gordon Murgatroyd
“standard”. It’s not as though via the Net
Since Gordon replied I’ve
readers have to program them
done further tests on my ma-
themselves, all our PIC-based
So I thanked Gordon for the chines (and I’ve recently ac-
projects can have their PICs
useful suggestion, but ex- quired two more, including a
bought as pre-programmed de-
pressed my concern that the Win98 Dell and Win NT Dell).
vices which simply plug straight
user’s system would be Gordon’s solution works on
in, as does any other dual-in-line
changed and not be re-instated some, but not all. There is the
IC.
when Teach-In is exited. Gor- nagging suspicion, though, that
don came back with the follow- the problem is more likely to oc-
ing: cur with machines that have
TEACH-IN DISPLAY been upgraded. Those of mine
which are purely Win 3.1, or
Dear EPE, Yes, I do have a solution. Win 95 or Win 98 are perfectly
Further to the Teach-In 2000 The user needs to add two lines happy with QBasic and with the
“hieroglyphics” question raised in similar to the above mode con old EasyPC I referred to last
Readout Jan ’00: When my lines, which are found in the month. It’s the machines that
screen printed garbage, I rang AUTOEXEC.BAT file on the started off as 3.1 but have been
John Becker who helpfully sug- user’s C: drive and could be upgraded to 95 on which the
gested that the problem may be copied from AUTOEXEC.BAT “hieroglyphs” can be caused to
something to do with the code- using the copy and paste com- occur, either in QBasic or in
page in use by the system. After mands. EasyPC, but never in both for
some experimenting I came up The following are those the same country code settings.
with the following solution: copied verbatim from my AU- I have not yet been able to
In the directory where you TOEXEC.BAT file: reproduce the problem in the
installed the Teach-In 2000 soft- purely Win 95 and Win 98 ma-
ware, create a batch file called chines. The Win 98 machine
mode con codepage pre-
MENU.BAT with the following does not recognize codepage
pare=((850) C:\ WINDOWS\
commands in the file: commands, nor does one Win
COMMAND\ ega.cpi)
95 machine at EPE HQ. (The
mode con codepage select=850
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 159
Maxfield & Montrose Interactive Inc
5HDGRXW
Win NT I’ve not been able to ac- all the copies he needs to sell. copier and at the same time
cess yet – it came from my wife’s For a single instrument, it transferring to acetate. This
employers when they upgraded to sounds like four John Williams worked well providing the copy
later machines and requires an and just as professional. quality was good. It was re-
entry password, which has still to quired at times to double the
The piracy of “pop” music is
be advised!) design back to back to block the
probably extensive, and the
UV light during exposure, al-
I’m hoping for more reader urge to stem it is understand-
though with some adjustment to
feedback on this curious hiero- able. But I believe that technol-
the copier settings, one copy
glyphs situation. ogy is its own worst enemy,
could be used. This may save
much like a knife blade, which
the cost of special ink or a new
is all cutting edge and no han-
PIRATE-PROOF CDs printer.
dle. There will always be some-
Dear EPE, one who finds a way to misuse Also, I would like to congrat-
it. ulate you on the merger with
I’ve just decided to drop my ETI. I had concerns that the
fortnightly computer magazine in In the meantime, I do not
competition to produce designs
favor of EPE. Yours has a lot accept clumsy attempts to pro-
for all standards of enthusiast
more interesting stuff in it. I’ve tect “intellectual property” which
would be reduced with less
been following the series on Os- prevent me from being enrap-
competition, and that you might
cillators (Jul-Dec ’99) and, as get- tured by Clannad while reading
go completely into PIC design,
ting a copy off the counter was through some of the banal E-
which I feared you were near-
not always possible, a subscrip- mail I get.
ing. I had hoped that you would
tion was the only choice. An interesting thought here. introduce more stripboard de-
The news item on page 874 If they don’t bother to warn the signs and projects using more
of the Nov ’99 issue, where the purchaser that the CD won’t components rather than a pro-
company C-Dilla are planning to work on the PC’s hi-fi system grammed IC. The starter pro-
launch a copy protection system, and he/she takes it home and jects are excellent examples,
is in itself no problem for me. plugs it in, hoping to hear their and long may they continue.
However, if the report is correct favorite blasting from the speak-
and I will not be able to play mu- ers, and all he/she gets is a Martin Smith
sic CDs on my PC, I shall be “disc faulty” message and the Banff, Scotland
more than a little upset. CD rejected, will they be able to
get their money back? Can they
I purchased a high- Points well noted, Martin.
complain to the trading stan-
performance multi-media PC al- Thank you.
dards that the CD was not fit for
most a year ago, and took great
the purpose it was purchased? In my published reply to N.
pains to ensure that one of its
many capabilities was to play Dyson, I said that my new ink-
Arthur Lawrance jet printer produced excellent
stereo CDs to delight my ears Poole, Dorset
while I used it to perform other acetate images for use with UV
tasks. Some CDs even have a exposure onto photosensitive
computer track included, such as Anyone care to add to this PCB material. I now have to add
some Classic FM cover disks. potentially interesting debate? a caution to that comment. Hav-
ing run out of the original Epson
My system is perfectly capa- ink supplied with the printer, I
ble of copying CDs I believe, but PCB PRODUCTION made the mistake of replacing it
as I don’t play any of the fancy
Dear EPE, with a much cheaper brand, to
games, and my son believes that
my regret!
his Amega is a better computer I hope this may help N.
anyway, there isn’t even the Dyson (Sep ’99 Readout) re- This ink slowly spread out
temptation. The copy facility does garding PCB production: Whilst across the acetate, refusing to
have its uses though. A friend is a at college, the design package I dry adequately (although im-
musician who plays his own com- preferred printed from a dot- ages on paper were perfect).
positions on a “Chapman Stick”, matrix in either 1:1 scale for The results were terrible and
and gets them professionally preview purposes or 2:1 for pro- required a great deal of touch-
recorded on a CD master. My duction quality. The latter meant up work on the final exposed
machine then provides him with reducing by 50% using a photo- and etched board to make them
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 160
Maxfield & Montrose Interactive Inc
5HDGRXW
usable. I have now reverted to been able to purchase any of the Zimbabwean Government.
Epson’s own ink! the above units ready-made at It’s now four years since I
a reasonable cost. started reading your magazine. I
Yes, many people find that
live 290km away from the capi-
stripboard provides a good con- Roy Hancock tal city Harare but am getting
structional medium for one-offs. Witheridge, Tiverton, Devon my copy of EPE on time from a
However, I prefer to use PCBs, general dealer shop, which is
not only because I have the facili- supplied by a distribution com-
ties, but also because I feel that Yes, Roy, there is much pany based in Harare. It is also
the chances of making a con- that can be achieved by hobby- sold by street newspaper ven-
structional error are much re- ist electronics enthusiasts with- dors and in bookshops. There
duced, all the connections being out becoming involved in high- are no Government restrictions
pre-ordained! tech designs and control sys- on EPE.
tems. We applaud your resis-
tance to those who said other- Innocent Mutasa
MORE INGENUITY wise, and commend you on Masvingo, Zimbabwe
Dear EPE, your ingenuity.
I have enjoyed reading EPE We must, though, caution Thank you for the reassur-
for a considerable time, though readers about attempting to ance and your lengthy letter, of
my knowledge of electronics is connect non-approved elec- which the above is a brief edited
very limited. Many people told me tronic equipment to the public extract. We hope you will under-
that modern electronics with its service telephone network. Do- stand that we cannot publish
complexity was becoming beyond ing so is against the law. We
the amateur. However, I became your political comments in EPE,
assume that Roy used his auto- even though you obviously feel
interested in the possibility of us- dialler with a private telephone
ing various simple devices. The passionately about your country.
system that was not subject to
first unit I built was an auto- legal requirements.
dialler, and a last number redial
on the handset.
This worked well so I linked it
EPE IN ZIMBABWE
to a PIR sensor as a burglar Dear EPE,
alarm. This has one advantage In his letter (Readout Sep
over most auto-diallers in that ’99), Mr Cornish, who for an un-
when activated you can listen in. I known time was a resident here
also designed a simple unit for in Zimbabwe, said he had prob-
my camera, with PIR for taking lems in getting copies of EPE
wild-life photographs. I had not due to restrictions imposed by
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 161
Maxfield & Montrose Interactive Inc
with DAVID BARRINGTON the bridge rectifier is sold in
packs of five.
Some Component Suppliers for EPE Online Con- The PIC used in this project
must be the 10MHz version. For
structional Articles those who would like a ready-
programmed PIC, one is
Antex Greenweld (UK) available from Magenta
Web: www.antex.co.uk Fax: +44 (0) 1992-613020 Electronics for the inclusive
CPC Preston (UK) Email: greenweld@aol.com price of 5.90 UK Pounds
Tel: +44 (0) 1772-654455 Web: (overseas readers add 1 UK
www.greenweld.co.uk Pound for postage). Our
EPE Online Store and Library understanding is that they will
Web: www.epemag.com Maplin (UK)
Web: www.maplin.co.uk be using the F84 which is pin
Electromail (UK) compatible with the F83. For
Tel: +44 (0) 1536-204555 Magenta Electronics (UK) those who wish to program their
Tel: +44 (0) 1283-565435 own PICs, the software is
ESR (UK) Web: available for Free download
Tel: +44 (0) 191-2514363 www.magenta2000.co.uk from the EPE Online Library at
Fax: +44 (0) 191-2522296
Microchip www.epemag.com
Email: sales@esr.co.uk
Web: www.esr.co.uk Web: www.microchip.com The printed circuit board is
Rapid Electronics (UK) available from the EPE Online
Farnell (UK)
Tel: +44 (0) 1206-751166 Store (code 7000251) at
Tel: +44 (0) 113-263-6311
www.epemag.com
Web: www.farnell.com RF Solutions (UK)
Gothic Crellon (UK) Tel: +44 (0) 1273-488880
Tel: +44 (0) 1743-788878 Web: www.rfsolution.co.uk Find It
RS (Radio Spares) (UK) Most of the components
Web: www.rswww.com needed to construct the Find It
project should be readily
available parts. The specified
LED used in the model is a
PICVideo Cleaner with a UK 240V 50Hz power “high brightness” type, which
supply – see the article for more was found to give better results
As the design for the Video
details.) than the standard variety. The
Cleaner project is based around
a printed circuit board (PCB), Like most of the “specials” high brightness types are now
the choice of components will for this project, the plastic box common shelf lines, however,
need to be selected to fit on the (code 223-440) and metal watch out, some LEDs may
PCB. Also, a couple of the socket support brackets (146- have a narrow viewing angle
semiconductors are a bit special 318) also came from the above which could cause “off-center”
and not readily available. company. The right-angle viewing problems.
SCART sockets should be You may have to search
Dealing with the 3VA mains
available from most component through the various resistor
transformer first. This was
suppliers. ranges to track down the high
purchased from Farnell (code
141-471). You could use a Turning to the value ones that are needed to
different transformer provided semiconductors, Farnell make up the two series resistors
you can “hardwire” it to the supplied the LM1881 video sync that form the “frequency”
PCB. (Also, as was noted in the separator (code 410-536), the resistor R5. It looks as though
article, please remember that AD810 low-power video amp the author found his amongst
this transformer was selected (code 295-127) and the the 0 6W and 1W (high voltage)
¬
Copyright © 2000 Wimborne Publishing Ltd and EPE Online, February 2000 - www.epemag.com - 163
Maxfield & Montrose Interactive Inc