Everyday Practical Electronics 2004 01
Everyday Practical Electronics 2004 01
CAR
COMPUTER
Electronic
log book
GPS TO PIC
AND PC
Interfacing GPS
handsets
PIC WATERING
TIMER
Versatile
automatic time
PLUS
TEACH- IN 2004
Part 3 - Clonik1VIPS 1770262 61126
http://vvvvvv.epemag.wimborne.co.uk
Colour CCTV camera. 8mm Small transmitter designed to transmit THE TIDE CLOCK. These clocks
lens. 12V d.c. 200mA audio and video signals on 2.4GHz. Unit indicate the state of the tide. Most
582x628 Resolution 380 measures 45 x 35 x 10mm. Ideal for areas in the world have two high
lines Automatic aperture assembly into covert CCTV systems tides and two low tides a day. so
lens Mirror function PAL Easy connect leads Audio and video the tide clock has been specially
Back Light Compensation input 12V d.c. Complete with aerial designed to rotate twice each
MLR. 100x40x4Ornm. Selectable channel switch £ 30. Ref EE19 lunar day ( every 12 hours and 25
Ref EE2 £69 minutes) giving you a quick and
2.4GHz wireless receiver Fully cased easy indication of high and low
audio and video 2.4GHz wireless water. The Quartz tide clock will
Built-in Audio . 15Iux CCD camera 12V receiver 190x140x3Omm, metal case. 4 always stay calibrated to the
d.c. 200mA 480 lines sin ratio >48db channel. 12V d.c. Adjustable time moon. £21 REF TIDEC
1V P- P output 110mm x60mm x50mm. delay. 4s. 8s. 12s. 16s. £ 45. Ref EE20
Ref EEI £99
www.epemag.wimborne.co.uk
EPE Online: www.epemag.com
1»atecis
- an? CheatIts
CAR COMPUTER by Mike Hibbett 12
An aid for motorists who don't live with a mechanic!
BEDSIDE NIGHTLIGHT by Owen Bishop 18
A two-in-one design that will bring comfort and joy to your youngster's room.
Another in our occasional Top Tenners series
PIC WATERING TIMER by Les Clarke 38
Keep your plants in pristine condition before you PIC them!
PRACTICAL RADIO CIRCUITS - Part 8. The Superhet: 47
Prescaier, Mixers and Oscillators by Raymond Haigh
A double-conversion superhet receiver for SW bands
INGENUITY UNLIMITED - Sharing your ideas with others 69
Super Static Snooper
Xoialan an Se.nilea
PIC RESOURCES CD-ROM Invaluable to all PICkers! 6
EDITORIAL 11
NEWS - Barry Fox highlights technology's leading edge 22
Plus everyday news from the world of electronics
READOUT John Becker addresses general points arising 34
BACK ISSUES Did you miss these? Many now on CD-ROM! 43
FREE ENTRY COMPETITION 46
CD-ROMS FOR ELECTRONICS 59
A wide range of CD-ROMs for hobbyists, students and engineers
SHOPTALK with David Barrington 68
The essential guide to component buying for EPE projects
DIRECT BOOK SERVICE 72
A wide range of technical books available by mail order, plus more CD-ROMs
PRINTED CIRCUIT BOARD AND SOFTWARE SERVICE 75
Wimborne Publishing Ltd 2003 Copyright in al PCBs for EPE projects. Plus EPE project software
drawings, photographs and articles published in ELECTRONIC MANUALS 76
EVERYDAY PRACTICAL ELECTRONICS is fully
Essential reference works for hobbyists, students and service engineers
protected, and reproduction or imitations in whole or
in part are expressly forbidden. ADVERTISERS INDEX 80
Our February 2004 issue will be published on Readers Services • Editorial and Advertisement Departments 11
Thursday, 8January 2004. See page 3 for details
faceplate, text switching and LOW RADIATION MPR The front door is constructed of double walled
TV SOUND & ..... L. specification. Fully guaranteed, in EXCELLENT little
used condition, Tilt & Swivel Base £4.75
steel with a ' designer style' smoked acrylic front
panel to enable status indicators to be seen
VIDEO TUNER VGA cable for IBM PC included. Order as through the panel, yet remain unobtrusive.
CABLE COMPATIBLE • OnlY £ 129 ( E) con Internally the rack features fully slotted reinforced rj
.
External cables for other types of computers available- CALL vertical fixing members to take the heaviest of I
Converts your colour monitor into aQUALITY COLOUR TV!! 19" rack equipment. The two movable vertical '
The TELEBOX is an attractive fully cased mains powered unn, containing all Generic LOW COST SVGA Monitors fixing struts (extras available) are pre punched for
standard 'cage nuts'. A mains distribution
electronics ready to plug into ahost of video monitors or AV equipment which We choose the make, which includes Compaq,
are fitted with acomposite video or SCART input. The composite video output panel internally mounted to the bottom rear, pro-
Mitsubishi, IBM, etc. Supplied ready to run with all vides 8xIEC 3pin Euro sockets and 1x 13 amp 3
will also plug directly into most video recorders, allowing reception of TV chan- cables, Standard RTB 90 day guarantee.
nels not normally receivable on most television receivers' ( TELEBOX pin switched utility socket. Overall ventilation is pro-
MB). Push button controls on the front panel allow reception of 8fully tuneable vided by fully louvered back door and double skinned top section with
'off an' UHF colour television channels. TELEBOX MB covers virtually ai tele-
14" 15" 17" top and side louvres. The top panel may be removed for fitting of
integral fans to the sub plate etc. Other features include: fitted cas-
vision frequencies VHF and UHF including the HYPERBAND as used by £59.00 £69.00 £79.00 tors and floor levelers, prepunched utility panel at lower rear for mole
most cable TV operators. Ideal for desktop computer video systems &
PIP (picture in picture) setups. For complete compatibility - even for mentors /connector access etc. Supplied in excellent, slightly used condi-
Supplied in good used condition Shopping code (D tion with keys. Colour Royal blue, some grey available - CALL - Can
without sound - an integral 4watt aedo amplifier and low level Hi Fi audio out-
be supplied in many other configurations.
put are provided as standard. Brand new - fully guaranteed.
TELEBOX ST for composite video input type monitors £36.95
VIDEO MONITORS
TELEBOX STL as ST but fitted with integral speaker £39.50 PHILIPS HCS35 ( same style as CM8833) attractively styled 14" 33U 42U 47U
TELEBOX MB Multiband VHF/UHF/Cable/Hyperband tuner £69.95 colour monitor with both RGB and standard composite 15.625 Order as BC44 Order as DT20 Order as Rt/36
For overseas PAL versions state 5.5 or 6 mHz sound specification. Khz video Inputs via SCART socket and separate phono jacks. External dimensions External dimensions External dimensions
'For cable / hyperband signal reception Telebox MB should be con- Integral audio power amp and speaker for all audio visual uses. mm=1625H x635D x mm=2019H x635D x mm=2019H x635D x
nected to a cable type service. Shipping on all Telebox's, code ( B) Will connect direct to Amiga and Atari BBC computers. Ideal for all 603 W. (64" H x25" D 603 W. ( 79.5" H x25" 603 W (88" H x25- D
video monitoring / security applications with direct connection to x23%." W ) D x23 3
/"W )
4 x23 3
/"W )
4
State of the art PAL (UK spec) UHF TV tuner module most colour cameras. High quality with many features such as Only Only Only
with composite 1V pp video & NICAM hi fi stereo sound front concealed flap controls, VCR correction button etc. Good used
outputs. Micro electronics all on one small PCB only 73 x160
x52 mm enable full tuning control via asimple 3wire link to an IBM
condition - fully tested - guaranteed
Dimensions: W14" xH12 3 /"x15Y," D.
4
Only £99.00 , , E £245 £345 £410
pc type computer. Supplied complete with simple working program
and documentation. Requires + 12V & + 5V DC to operate.
PHILIPS HCS31 Ultra compact 9" colour video monitor with stan-
dard composite 15.625 Khz video input via SCART socket. Ideal
Call for shipping quotation
BRAND NEW - Order as WOO. Only £ 9.95 code (B) for all monitoring / security applications. High quality, ex-equipment
See www.distel.co.uk/data my00.htm for picture + full details fully tested & guaranteed (possible minor screen burns). In attractive
square black plastic case measuring W10* xH10* x 13 1 2 "D. 240 V
/
HARD DISK DRIVES 21
/2" - 14" AC mains powered. Only £79.00 (D) Undoubtedly amiracle of modern technology & our
special buying power ! A quality product featuring
2'," TOSHIBA MK1002MAV 1.1Gb laptop(12.5 mm H) New £59.95 afully cased COLOUR CCD camera at agive away
21/"TOSHIBA MK4313MAT 4.3Gb laptop (8.2 mm H) New£105.00
2 INDUSTRIAL COMPUTERS price ! Unit features full autolight sensing for use in low
2V," TOSHIBAMK6409MAV 6.1Gb laptop ( 12.7 mm H) New £98.00 light & high light applications.
Tiny shoebox sized industrial 40 Mhz 386 PC system measuring A 10 mm fixed focus wide angle lens
21/"TOSHIBA MK1614GAV 18 Gb laptop ( 12 mm H) New£149.95
2
21/"to 3V," conversion kit for Pc's, complete with connectors £15.95
2
only ( mm) 266 w X 88 hX 272 d. Ideal for dedicated control gives excellent focus and resolJtion
31/'COMPAQ 3137064321 ( IBM) 9gb ULT/SCSI3
2 New £199.00 applications running DOS, Linux or even Windows ! Steel case from close up to long range. The earn-
31/"FUJI FK-309-26 20mb MFM I/F RFE
2 £59.95 contains 85 to 265 V AC 50 / 60 hz 70 Watt PSU, a 3slot ISA 7
4„posite video output will connect Ici ary
3,," CONNER CP3024 20 mb IDE I/F (or equiv.) RFE £59.95 passive backplane and a Rocky 318 ( PC104) standard, single .4e, composite monitor or TV (via SCART
board computer with 8 MByte NON VOLATILE solid state ' Disk socket) and most video recorders. brit
31/"CONNER CP3044 40 mb IDE liF (or equiv.) RFE
2 £69.00
31/"QUANTUM 40S Prodri ve 42mb SCSI I/F, New RFE
2 £49.00 On Chip' RAMDISK. System comprises: Rocky 318 ( PC104) SBC <,•49" runs from 12V DC so ideal for security &
51/ MINISCRIBE 3425 20mb MFM I/F (or equiv.) RFE
4 £49.95 ISA card with 40MHz ALi 386SX CPU, 72 pin SIMM slot with 16 portable applications where marts
Mbyte SIMM, AMI BIOS, battery backed up real time clock. 2 x9 power not available. Overall dimensions
51/"SEAGATE ST-238R 30 mb ALL I/F Refurb
4 £69.95
51/"CDC 94205-51 40mb HH MFM I/F RFE tested £69.95
4
pin D 16550 serial ports. EPP/ECP printer port, mini DIN key- 66 mm wide x 117 deep x 43 high. Supplied BRAND NEW & fully
51/"HP 97548 850 Mb SCSI RFE tested
4 £99.00 board connector, floppy port, IDE port for hard drives up to 528 guaranteed with user data, 100's of applications including Security.
51/"HP C3010 2 Gbyte SCSI differential RFE tested
4 £195.00 MByte capacity, watchdog timer and PC/104 bus socket. The 8 Home Video, Web TV, Web Cams etc, etc.
8' NEC D2246 85 Mb SMD interface. New £99.00 MByte solid state 'disk on achip' has its own BIOS, and can be
8' FUJITSU M2322K 160Mb SMD I/F RFE tested £195.00 fdisked, formatted & booted. Supplied BRAND NEW fully tested Order as LK33 ONLY £79.00 or 2for £ 149.00 ( 3)
8" FUJITSU M2392K 2 Gb SMD I/F RFE tested £345.00 and guaranteed. For full data see featured item on website. Order
Many other floppy & H drives, IDE, SCSI. ESDI etc from stock, as 0 9IM'S of applications inc: Only £99.00 (
D) SOFTWARE SPECIALS
see website for full stock list. Shipping on all drives is code firewall, routers. robotics etc
NT4 WorkStation, complete with service pack 3
TEST EQUIPMENT & SPECIAL INTEREST ITEMS Utnhliesss
sem
ea rknea
io dre
NEpW
re,
oitenm
w el in and licence - OEM packaged. ONLY £89.00 ()
ENCARTA 95 - CDROM, Not the latest - but at this price t £7.95
MITSUBISHI FA3445ETKL 14" Ind. spec SVGA monitors £245 HP6030A 0-200V DC to 17 Amps bench power supply £ 1950 DOS 5.0 on 31
/'disks with concise books c/w ()Basic.
2 £14.95
FARNELL 0-60V DC to 50 Amps, bench Power Supplies £995 Intel SBC 486/125C08 Enhanced Multibus ( MSA) New £ 1150 Windows for Workgroups 3.11+ Dos 6.22 on 3.5" disks £55.00
FARNELL AP3080 0-30V DC 0) 80 Amps, bench Suppy £1850 Nikon HFX-11 ( Ephiphot) exposure control unit £1450 Windows 95 CDROM Only - No Licence - £ 19.95
KINGSHILL CZ403/1 0-50V @ DC 200 Amps - NEW f3950 PHILIPS PM5518 pro. TV signal generator £1250
1kW to 400 kW - 400 Ftz 3phase power sources - ex stock EPOA Motorola VME Bus Boards & Components List. SAE / CALL Wordperfect 6 for DOS supplied on 3V," disks with manual £24.95
IBM 8230 Type 1, Token ring base unit driver £760 £P0A
Wayne Kerr RA200 Audio frequency response analyser £2500
INFODEC 1U, 24 port, RJ45 network patchpanels. MTH93 £49
Trio 0-18 vdc linear, metered 30 amp bench PSU. New £550
Fujitsu M3041R 600 LPM high speed band phnter £1950 SOLID STATE LASERS
3COM 16670 12 Port Ethernet hub - RJ45 connectors mL097 £69 Fujitsu M3041D 600 LPM printer with network interlace £1250 Visible red, 670nm laser diode assembly. Unit runs from 5V DC al
3COM 16671 24 Port Ethernet hub - RJ45 connectors £89 Siemens K4400 64Kb to 140Mb demux analyser £2950 approx 50 mA. Orginally made for continuous use in industrial bar-
3COM 16700 8 Port Ethernet hub - RJ45 connectors NEW £39 Perkin Elmer 299B Infrared spectrophotometer £500 code scanners, the laser is mounted in a removable solid alumini-
IBM 53F5501 Token Ring ICS 20 port lobe modules £P0A Perkin Elmer 597 Infrared spectrophotometer £3500 um block, which functions as a heatsink and rigid optical mount.
IBM MAU Token ring distribution panel 8228-23-5050N £45 VG Electronics 1035 TELETEXT Decoding Margin Meter £3250 Dims of block are 50 w x50 dx 15 hmm. Integral features include
AIM 501 Low distortion Oscillator 9Hz to 330Khz, IEEE I/O £550 LightBand 60 output high spec 2u rack mount Video VDA's £495 over temperature shutdown, current control, laser OK ouput, and
ALLGON 8360.11805-1880 MHz hybrid power combiners £250 Sekonic SD 150H 18 channel digital Hybrid chart recorder £1995 gated TTL ON / OFF. Many uses for experimental optics, comms &
Trend DSA 274 Data Analyser with G703(2M) 64 i/o £P0A El&K 2633 Microphone pre amp £300 lightshows etc. Supplied complete with data sheet.
Marconi 6310 Programmable 2 to 22 GHz sweep generator £4500
Marconi 2022C 10KHz-IGHz RF signal generator £1550
Taylor Hobson Tallysurf amplifier / recorder
ADC SS200 Carbon dioxide gas detector / monitor
£750
£1450
Order as TD91 ONLY £24.95 pl.:
HP16508 Logic Analyser £3750 BBC AM20/3 PPM Meter ( Ernest Turner) + drive electronics £75
HP3781A Pattern generator & HP3782A Error Detector £P0A ANRITSU 9654A Optical DC-2.5G/b waveform monitor £5650 DC POWER SUPPLIES
HP6621A Dual Programmable GPIB PSU 0-7 V 160 watts £1800 ANRITSU ML93A optical power meter £990
HP6264 Rack mount variable 0-20V rit 20A metered PSU £475 ANRITSU Fibre optic characteristic test set £P0A Virtually every type of power supply you
HP54121A DC to 22 GHz four channel test set £P0A R&S FTDZ Dual sound unit £650 can imagine.Over 10,000 Power Supplies
HP8130A opt 020 300 MHz pulse generator, GPIB etc £7900 R&S SBUF-E1 Vision modulator £775 Ex Stock - Call or see our web site.
HP Al, AO 8pen HPGL high speed drum plotters - from £550 WILTRON 6630B 12.4 / 20GHz RF sweep generator £5750
HP DRAFTMASTER 18 pen high speed plotter
EG+G Brookdeal 95035C Precision lock in amp
£750
£1800
TEK 2445 150 MHz 4 trace oscilloscope £ 1250
TEK 2465 300 Mhz 300 MHz oscilloscope rack mount £ 1955 RELAYS - 200,000 FROM STOCK
Keithley 590 CV capacitor / voltage analyser £P0A TEK TDS380 400Mhz digital realtime + disk drive, FFT etc £2900 Save ££££'sby choosing your next relay from our Massive Stocks
Racal ICR40 dual 40 channel voice recorder system £3750 TEK TDS524A 500Mhz digital realtime + colour display etc £5100 covering types such as Military, Octal, Cradle, Hermetically Sealed.
Fiskers 45KVA 3 ph On Line UPS - New batteries £4500 HP3585A Opt 907 20Hz to 40 Mhz spectrum analyser £3950 Continental, Contactors, Time Delay Reed, Mercury Wetted, Solid
Emerson AP130 2.5KVA industrial spec.UPS £1499 PHILIPS PW1730/10 60KV XRAY generator & accessories £P0A State, Printed Circuit Mounting etc.. CALL or see our web site
Mann Tally MT645 High speed line printer £2200 VARIACS - Large range from stock - call or see our website www.distel.co.uk for more information. Many obsolete types firm
Intel SBC 486/133SE Multibus 486 system. 8Mb Ram £ 945 CLAUDE LYONS 12A 240V single phase auto, volt. regs £325 stock. Save ££££'s
&It •
•
•
¿ al
•
4 •• 4 •• 411
• • • • •
a
•
4 ••• •
ai
œ
a
•
4
•
ALL MAIL TO 18 Million Items On Line Now! ALL ejrif ENQUIRIES
• • 4 •• 4 •••• • •• ••• •••
Dept PE, 29 / 35 Osborne Rd Secure ordering, Pictures, Information
Thornton Heath 4riSign
0208 653 3333
• • 4 •
•
••
• 4 •
• ••• •
Surrey CR7 8PD www.distel.co.uk
EL EL" Teolivics
Open Mon - Fri 9.00 - 5:30
FAX 0208 653 8888
-
email = admin@distel.co.uk
All prices for UK Mainland. JK customers add 17.5% VAT to TOTAL order amount Minimum order £ 10. Bona Ado account orders accepted from Government, Lichouts, Universes
and Local Authorities - minimum account order £50. Cheques over £ 100 are subject to 7working days clearance. Carriage charges (A)=£3.50, (BS£6.50, (C£10, (D)=£15.00,
(E)=£18.00, (F)=CALL. Allow apuros 3days for shipping faster CALL All goods supplied to our Standard Conditions of Sale which can be viewed at our website and unless stat-
ed guaranteed for 90 days. AM guarantees on areturn to base basis. All nghts reserved to change prices / speaficatioris without odor notice. Orders subtract to stock. Discounts far
volume. Top CASH prices paid for surplus goods. All trademarks. tradenames etc acknowledged. ID Display Electronics 2002. E & 0 E..
NEXT MONTH
PIC LCF METER
This simple PIG-based unit was designed to measure
and display the values of inductors and capacitors. As
a by-product of the technique used, it can also display
the frequency of an external OV/+5V signal source.
The ranges are approximately:
Capacitance: 1pF to 6500/IF
Inductance: 1uH to 10H
Frequency: 0.05Hz to 5MHz
The design is based upon the concept that oscillators
can be constructed from CMOS NAND gates or
inverters, and that their oscillation frequency depends
on the values of inductance, capacitance and
resistance in their feedback paths. A PIC16F628
microcontroller monitors the frequencies, performs
quite complex mathematical calculations on them and
JAZZY NECKLACE
displays the results on an alphanumeric I.c.d. screen. A chic appearance and astriking piece of jewellery can
The unit is inexpensive, and straightforward to build. emphasise the beauty of the wearer, as well as adding a
sense of lightness to life.
An item of jewellery that lends itself particularly well to
electronic enhancement is a traditional African style
necklace which comprises an array of vertical rods,
TUG-OF-WAR artistically arranged, suspended from astring around
the neck.
Many electronic handheld games are intended for This project unveils a21st- Century version of the necklace
only one player who pits his wits against the which, instead of using rods of wood or other customary
computer, thus giving the player little opportunity for materials, employs sixteen sparkling clear acrylic rods.
social interaction and producing what many These are accompanied by a compact circuit which darts
psychologists fear could become ageneration of various colours of light down the length of the rods, at
social misfits. This simple Tug-Of- War game, although random. The result is a truly amazing piece of 'jewellery".
it is built around a PIC microcontroller, must be
played by two people (in their anoraks if they wish)
and is based on the familiar game of tug-of-war,
providing, as they say, "fun for all the family".
Unlike the real game, however, it does not require a
rope or brute strength. Instead, speed of reaction is
important and the two players are equipped with
pushbuttons which they must press as quickly as
possible after an led. is lit to "pull" their opponent
over the line. The program is written to ensure that
the delay before this I.e.d. lights is random so the
players cannot accurately predict when it will light.
PO Box 6935. Bishops Stortford. Next day ( insured £ 250) - £ 7. Europe - £ 5. Rest of World - £ 10. vise
We accept all major credit/debit cards. Make cheques/POs
CM23 4WP
payable to Quasar Electronics Limited.
Tel: 0870 246 1826
Prices include 17.5. VAT. MAIL ORDER ONLY.
Fax: 0870 460 1045 Call now for our FREE CATALOGUE with details of over 300
E-mail: sales@quasarelectronics.com high quality kits, projects, modules and publications.
QUASAR
electronics
0 7 1 CREDIT CARD
SALES
71 7 7 1 68
Helping you make the right connections'
www.quasarelectronics.com
Secure ° wine Ordering Facilities • Full Product Listing. Descriptions 8, Photos • Kit Documentation 8 Software Downloais
EPE PIC
RESOURCES
CD-ROM
This CD-ROM The software
requires should auto- run.
Adobe Acrobat , .1 not, double-click
Reader. on: My Computer.
Acrobat Reader v5 05 your CD drive and
is included then on the file
on the CD-ROM index.pdf
Use
• Start to use c for the PIC — standard portable code with a standard syntax designed to be " close" to the
processor for efficiency in size and speed
• Suitable for beginners or BASIC programmers
• Covers Comments and Statements,Variables and Constants,Expressions.Functions,Program
the Forest Electronic Control,Pointers,Structures & Unions, and the Pre-processor.
Developments • The final example is a comprehensive real time programming application showing the simultaneous use of
PIC C Compile LCD, keypads, timers, clocks and ports
• Examples will run on our development board
• Soft copy of examples provided - ready to run on the PIC C Compiler
• Examples will run on other C Compilers
Download Free of Charge — www.fored.co.uk/ccomp.htm (follow the link " Learn C with FED")
01590-681511 (Voice/Fax)
http://www.magenta2000.co.uk
E-mail: sales@magenta2000.co.uk
ELECTRONICS L T D All Pri
ces i
nc l
udeVA.T.ADD £3.00 PER ORDER P&P.£6.99
. nextday
* TENS UNIT *
TRAINING KIT
work - updating equipment in the field etc. Also in
educational situations where mains supplies are
•NEW PCB DESIGN
not allowed. Safety interlock prevents contact
•8MHz 68000 16- BIT BUS with UV.
•MANUAL AND SOFTWARE
•2SERIAL PORTS DUAL OUTPUT TENS UNIT Set of KIT 790 £29.90
•PIT AND I/O PORT OPTIONS
As featured in March ' 97 issue. 4 spare
• 12C PORT OPTIONS electrodes
Magenta have prepared a FULL KIT for this. £6.50 SUPER BAT
excellent new project. All components, PCB,
hardware and electrodes are included. DETECTOR
KIT 621 Designed for simple assembly and testing and
providing high level dual output drive. 1 WATT 0/P, BUILT IN
, £99.95 KIT 866.. Full kit including four electrodes £32.90 SPEAKER, COMPACT CASE
•ON BOARD 20kHz-140kHz
5V REGULATOR NEW DESIGN WITH 40kHz MIC.
•PSU £6.99 1000V & 500V INSULATION A new circuit using a
•SERIAL LEAD £3.99
TESTER 'full-bridge' audio
amplifier i.c., internal
Superb new design. Regulated speaker, and
headphone/tape socket.
output, efficient circuit. Dual-scale
The latest sensitive
meter, compact case. Reads up to transducer, and 'double
200 Megohms. balanced mixer' give a
Kit includes wound coil, cut-out stable, high perfor-
case, meter scale, PCB & ALL mance superheterodyne design
components. KIT 861 £27.99
KIT 848 £32.95 ALSO AVAILABLE Built & Tested... £42.99
Another super PIC project from Magenta. Supplied with PCB, industry standard 2- LINE x PIC TUTOR BOARD KIT
16-character display, data, al components, and sohware to include in your own programs. Includes: PIC16F84 Chip, TOP Quality PCB printed with
Ideal development base for meters. terminals, cialculWois, counters. time -s - Just waiting
Component Layout and all components* (* not ZIF Socket or
for your application!
Displays). Included with the Magenta Kit is a disk with Test
and Demonstration routines.
8-CHANNEL DATA LOGGER KIT 870 .... £ 27.95, Built & Tested .... £42.95
As featured in Aug./Sept. '99 EPE. Full kit wrth Magenta Optional: Power Supply - £ 3.99, ZIF Socket - £ 9.99
redesigned PCB - LCD fits directly on board. Use as Data LCD Display £ 7.99 LED Display £ 6.99
Logger or as atest bed for many other 16F877 projects. Kit
Reprints Mar/Apr/May 98 - £ 3.00 set 3
includes programmed Clip. 8 EEPROMs, PCB, case and all components.
COMPONENT SUPPLIES
We do not supply electronic components or
kits for building the projects featured, these
AVAILABILITY SUBSCRIPTIONS can be supplied by advertisers (see Shoptalk).
Copies of EPE are available on subscription anywhere Subscriptions for delivery direct to any address in the
We advise readers to check that all parts
in the world (see opposite), from all UK newsagents UK: 6months £ 16.50, 12 months £31, two years £57;
Overseas: 6 months £ 19.50 standard air service or are still available before commencing any
(distributed by COMAG) and from the following
£28.50 express airmail, 12 months £37 standard air ser- project in a back-dated issue.
electronic component retailers: Omni Electronics and
Yebo Electronics (S. Africa). EPE can also be pur- vice or £55 express airmail, 24 months £69 standard air
chased from retail magazine outlets around the world. service or £ 105 express airmail. To subscribe from the ADVERTISEMENTS
USA or Canada see the last magazine page. Although the proprietors and staff of
An Internet on-line version can be purchased and
Online subscriptions, for downloading the magazine via EVERYDAY PRACTICAL ELECTRONICS take
downloaded for just $ 10.99US (approx £7) per year the Internet, $ 10.99US (approx £7) for one year avail-
available from www.epemag.com reasonable precautions to protect the interests
able from www.epemag.com.
Cheques or bank drafts ( in £ sterling only) payable to of readers by ensuring as far as practicable
Everyday Practical Electronics and sent to EPE Subs. that advertisements are bona fide, the maga-
Dept., Wimborne Publishing Ltd. 408 Wimborne Road zine and its Publishers cannot give any under-
East, Ferndown, Dorset BH22 9ND. Tel: 01202 873872. takings in respect of statements or claims
Fax: 01202 874562. Email: subs@epemag.wimbome.co.uk.
made by advertisers, whether these advertise-
Also via the Web at: httehmwepemag.wlmborne.co.uk.
Subscriptions start with the next available issue. We accept ments are printed as part of the magazine, or
MasterCard, Amex, Diners Club, Switch or Visa. (For past in inserts.
issues see the Back Issues page.) The Publishers regret that under no circum-
BINDERS stances will the magazine accept liability for
Binders to hold one volume ( 12 issues) are available non- receipt of goods ordered, or for late
from the above address. These are finished in blue delivery, or for faults in manufacture.
p.v.c., printed with the magazine logo in gold on the
spine. Price £6.95 plus £3.50 p&p (for overseas readers
CHRISTMAS TRANSMITTERS/BUGS/TELEPHONE
CHEEKS the postage is £6.00 to everywhere except Australia
Party tome body
and Papua New Guinea which cost £ 10.50). Normally EQUIPMENT
adornment
PIC VIRUS sent within seven days but please allow 28 days for We advise readers that certain items of radio
ZAPPER Pelkll
delivery - more for overseas. transmitting and telephone equipment which
Payment in £ sterling only please. Visa, Amex, Diners may be advertised in our pages cannot be
Club, Switch and MasterCard accepted. Send, fax or legally used in the UK. Readers should check
phone your card number, card expiry date and card the law before buying any transmitting or
security code (the last 3digits on or lust under the sig-
telephone equipment as a fine, confiscation of
RIMIAIACNINE nature strip), with your name, address etc. Or order on
our secure server via our UK web site. Overseas cus- equipment and/or imprisonment can result
1 .11 IN 2000 P
Ifelusisron corral. ilial
2 '
tomers - your credit card will be charged by the card from illegal use or ownership. The laws vary
10010 CMCL1111 »OE SLIERIIETI
provider in your local currency at the existing from country to country; readers should check
exchange rate. local laws.
CAR
COMPUTER
MIKE HIBBETT
An aid for motorists who don't live A small EEPROM serial memory
device, IC2, holds the " service point"
with a mechanic! information and the historical fuel con-
sumption data from which the fuel con-
sumption trends are calculated. An RS232
C
ARS are really useful, but owning The owner may also enter "service level converter, IC3, provides the signal
one can be apain! Maintaining one, points", which are reminders to take some level changes required to connect the
keeping the engine in optimum con- kind of action such as changing atiming microcontroller to the COM port on aPC.
dition and remembering all those impor- belt or to have an in-warranty checkup.
tant services dates is anightmare — unless These events are typically time and/or dis-
you live with acar mechanic. tance based, and the Car Computer can be
Years ago afriend of the author taught configured to track elapsed time and dis-
him a great technique for monitoring a tance and prompt the owner at the appro-
car's performance. Using a small log priate moment. These service points may
book/k recorded each time the fuel tank be entered directly or conveniently down-
was filled and by recording the mileage loaded from aPC.
and amount of fuel added, she was able to
track the m.p.g. ( miles-per-gallon). A CIRCUIT DESCRIPTION LOW POWER
gradual reduction in the m.p.g. or a sud- The complete circuit diagram for the FEATURES
den change indicated the onset of aprob- Car Computer is shown in Fig. 1. The heart A number of hardware design features
lem that could be rectified before it of the design is a PIC16F877 microcon- have been implemented to enable the Car
became serious. troller, ICI. A standard liquid crystal Computer to run for several months from a
display (1.c.d.) module provides the infor- single set of batteries. You may have
COMPUTER LOG mation display in a two line by sixteen noticed that there is no Off switch!
This Car Computer replaces and characters per line format. Preset VR1 is To conserve power, the microcontroller
improves on the log book method by auto- used to set the screen contrast. User input is normally held in the Sleep operational
matically calculating the m.p.g. ( or miles is via a 12-key numeric keypad. mode where it consumes negligible power,
per litre or kilometres per litre) and allow- normally only waking up when the user
ing the user to review its trend on adisplay. presses abutton. While in Sleep mode the
Of course, the lovely thing about software microcontroller removes the power from
is that there is plenty of scope for "extra the 1.c.d. and RS232 device IC3 to sig-
features" — which have been added! nificantly reduce the circuit
It is ahandheld unit powered from four power consumption, down to
AA cells. Through the use of low power / less than 300µA. In this state
design techniques, in both hardware and / the circuit can operate for many
software, the batteries should last for sev- months before the batteries
eral months before needing to be need to be replaced.
changed. A PC link allows infor- The use of a 9V battery and
mation to be conveniently down- / regulator has been avoided because
loaded to it. However, this is not ' in this type of application this
a requirement and the device wastes a huge amount of battery
can be operated without the use energy. All the components can oper-
of aPC. ate from a6V supply, so four AA cells,
providing 1.5V each, fit the bill nicely.
WHAT IT DOES As the battery voltage drops the I.c.d.
Each time the car is ref uelled, will become dimmer, giving asimple low
the owner enters the amount of battery warning!
fuel added and the current
mileage/kilometrage(!). With DETAILED
the aid of an in-built real-time DESCRIPTION
clock, the Car Computer calcu- A low power, low speed oscillator based
lates fuel consumption and can display the around crystal X2 wakes the PIC periodi-
change in fuel consumption over amonth- cally to allow it to update the real-time
ly period. A drop in average fuel consump- clock.
tion can signal the onset of aproblem, such The keypad is connected to the PIC's
as poor engine efficiency, signalling the interrupt-on-change port, which wakes the
need for aservice or tune-up. PIC into high-speed mode when a key is
POWER Ri
210 100n
10'2:1
+VE + VE
C5
Fig. 1. Complete circuit diagram for the PIC-
10µ 8
16
SK2 VDD 17
9 CCP1/RC2
O 1
P.2 OUT RX/DT/RC7
SCKJSCL/RC3
O T2 OUT
T2 IN TX/CKJPC6 5
24LC64 Al
3
SDliSDATIC4 SDA A2 •,••
o R2 IN
TI IN -
11
NC
24
SDO/RC5 v„
o RI OUT
12
KC, 4
13
R1 IN - NC.
14
o T1OUT - N.0 KEYPAD X4
o
L0 LL
cl+ IC1
o PIC1215.
IC3 CONTRAST
10µ
".'71 MAX232 SK5 INT/RBO VR1
12.
C1 467
e
2
C2+ 7 SK3
PGM/RB3 RA5/AN4/SS - NC
4 8 OV 1
RB
B45 RA4/TOCK1 NC
38 5
RA3/AN3A/RE
C2- 2 30 CX
PGCLK/RB6
40 4 RS
PC040437 RA3JANEWREF
3
RalIANI
2
15 A0/ANO
X3
driven Car Computer.
19 DO
P8 8 019 Dn LC D
20 DISPLAY
rspi 1101
21
PSP2/RD2
22 03
°SCUM K IN PSP3/RD3
AI 27 04
P$P4/RD4
2/144H7
26 05
O
USC2/CLK OUTpsPs/Rb5
29 De
0.1111.
PSP6/RD6
3U 117 14
CI 66011 PSP7/RD7 o
22 P IN»
TIOSOTT1CKI/RCO
Lx A 8
22p REOJANE/RD - N r.
32168KHz
-9 NC
TIOSI/CCP2/RC I RE I /AN6/WR
10
RE2/AN7/CS •••• KC
C4
22P MIM
C3 R5 ONO ONO
22p Mu 18051
2 31
SKI o o
£24
Approx. Cost
COMPONENTS
the 1.c.d. and displays options to the user.
Guidance Only
After 60 seconds of inactivity the PIC auto-
matically turns off the 1.c.d. and returns to excl. batts & case
the low power Sleep mode.
See
emer)
Resistors 102 24LC64 64K- bit serial
CRYSTAL CONTROL R1, R3, R4 2k2 ( 3 off) EEPROM
R2 680Q IC3 MAX232, RS232 interface
The real-time clock is maintained using
an external oscillator connected to the
R5
All 025W 5%
180Q
carbon film
TALK
PIC's Timer 1pins. Most of the oscillator Page Miscellaneous
SK 1 5- way BERG header
components are within the PIC itself, and Potentiometer SK2 DB9 9- way D-type
only four external passive components are
VR1 4k7 preset, vertical female connector,
required, crystal X2, which is astandard mounting p.c.b. mounting
32.768kHz "watch" type, plus resistor R2
SK3 14- way sit header
and capacitors C3 and C4. Capacitors X1 20MHz crystal
The crystal is an AT cut part which C1 to C4 22p ceramic disc, 5mm X2 32.768kHz AT cut watch
requires current limiting, and this is pro- pitch ( 4 off) crystal
vided by R2. AT cut crystals resemble tiny C5 to C8, 10y tantalum, 16V X3 alphanumeric liquid
piano tuning forks and can vibrate to C10 ( 5 off) crystal display, 2 lines
destruction if overdriven. The benefit of 09, C12 100n ceramic disc, 5mm x 16 characters per
this type of crystal is that they operate in pitch ( 2 off) line
a different mode to normal microcon- C11 100n tantalum 16V X4 12- key data entry
troller crystals, which allows them to matrixed keypad
maintain a small size when operating at Semiconductors
low frequencies. D1, D2 1N4001 rectifier diode Printed circuit board, available from the
(2 off) EPE PCB Service, code 431 ( double-
Crystal X1 provides the main opera-
IC1 PIC16F877-20 sided); plastic case, size 102mm x
tional clock to the PIC, operating at
microcontroller, 142mm x 48mm approx. AA- size cells
20MHz. This clock is switched off during
preprogrammed (4 off) and battery clip; connecting wire;
Sleep mode to further conserve power.
(see text) solder, etc.
Resistor R1 and diode D2 provide apull-
up to the PIC's Reset input (MCLR) and
provide protection to the rest of the circuit
This might damage plastic sockets but the
when programming voltages are applied to
damage is usually only cosmetic.
ENCLOSURE
the circuit.
The programming connector, SKI, If use of the PIC programming inter- A home-constructed plywood case mea-
allows in-circuit programming, very useful face is intended, connect the program- suring 102nun x 142mm x48rnm approx.
during development and debugging. ming interface to the board and check was used for the prototype. A plastic case
Resistor R5 improves noise immunity dur- that 5V appears on the supply pins of the of similar size may be used instead.
ing programming, which might otherwise PIC socket, and the programming voltage Suitable cut-outs should be made to accept
lockup the microcontroller. (12V to 14V, depending on your pro- the keypad and the 1.c.d. Their positions
Battery power is fed in via socket SK4, grammer) is applied to the WU pin. If need to be quite accurate. A template for
with diode D1 providing reverse polarity you find the programming voltage is on the holes can be made by measuring the
protection to the circuit. It also limits the the PIC supply pins, check the polarity of dimensions from the p.c.b. artwork. Use a
battery voltage, which can be as high as diode D2. needle file to mark all the corner points on
6.5V with four new AA cells. If all is well insert the i.c.s into their the case and drill small pilot holes, then use
Power for the RS232 interface (IC3) and sockets and plug in the I.c.d. and keypad. around bladed file to cut out the plastic.
the 1.c.d. are provided by PIC pins RC5 and Apply power and adjust VR1 for Do not use asoldering iron to melt the
RA3. The maximum current consumption acceptable 1.c.d. screen contrast. As the plastic away, as the fumes can be highly
of the two devices (3mA for the 1.c.d. and display will become dimmer as the battery toxic and the profile uneven. The mounting
15mA for IC3) is well within the 25mA level decreases, it is better to have the holes should be countersunk so a
driving capability of the PIC. display set quite dark with fresh label can be placed flush over
batteries. the case, giving an
CONSTRUCTION attractive finish.
Details of the component and track lay-
outs for the double-sided printed circuit
board (p.c.b.) for the Car Computer are
shown in Fig.2. This board is available
from the EPE PCB Service, code 431.
Although the p.c.b. is not particularly
complex or densely populated, it is advised
that you should fit the components in the
following order: i.c. sockets; resistors,
diodes, crystals, unpolarised capacitors,
polarised capacitors, connectors.
Links between the copper tracks on both
sides of the double-sided board can be
made using resistor off-cut wires, these
should be inserted and soldered first.
Once assembly is completed, but before
fitting the 1.c.d. or the i.c.s, temporarily
connect the batteries and check that power
is reaching the correct pins on the Lc. and
1.c.d. sockets. If not, check the polarity of
diode D1 and look for shorts on the
tracks.
If you find ashort between i.c. socket
pins apply asoldering iron to the pins on The author's home-made
the component side of the board and try to wooden case. It is
"wipe" the solder clear. If this does not suggested that readers
solve the problem, try using solder wick. use aplastic case.
,fiqlkolteeteelet.
kseetlat.
SK2
The completed Car Computer circuit board with the
•6 keypad removed to show the topside components.
•
•
Fig.2 (top left). Car Computer printed circuit board com-
•9
ponent layout. Only a "see-through" underside copper
tracking is shown for clarity. The links between the cop-
e per tracks on both sides of the p.c.b. should be inserted
and soldered first. The full-size copper track masters for
the topside (below left) and underside (below right) are
3.5in. ( 90mm) x 5in. ( 128mm) also shown.
0000000000000 .on
00 00000C 00000000000
o
o
SOFTWARE "2" keys to navigate through the list, and Use the "4" and "6" keys to move along
1he PIC and PC software for the Car press the "#" key to select. The options are: the line, and "2" and "8" keys to scroll
Computer is available free via the EPE Enter Fuel: This option is used each through the ASCII character set. This can
Downloads page, accessible through the time you add petrol. Always fill up to the be quite slow to enter, so if you have aPC
home page at www.epemag.wimbome. same point, such as when the pump clicks available, use the "Connect to PC" option
co.uk. It is also available on 3.5 inch disk off, so the fuel you have added equals the and the vc.exe PC program instead.
(foc which a nominal handling charge fuel used since last refuelling. Delete Reminder: Allows the user to
applies) from the Editorial Office. When this option is selected, the previ- remove areminder. Use the "*" key to find
Preprogrammed PICs are also available. ous distance is displayed. Enter the new the reminder to remove, then press the "0"
For further details of these, and advice on distance and press "#" when done. Then key to delete it.
component buying, read this month's enter the amount of fuel added. The device Set Units: This option should be used to
ShopTalk page. will calculate and then briefly display the select the units you wish to enter;
The PIC source code was written and fuel consumption for this refuelling. Gallons/Litres and Miles/Kilometres. This
assembled using the GPUTILS assembler, Report by Month: This option can be option should be used before entering any
whose toolset is freely available on used to display the monthly fuel consump- fuel data. If you intend to change the units,
the internet at http://sourceforge.net/ tion trend. It first displays the current you must use the "Erase memory" option
projects/gputils. month, and as the "*" key is pressed it will first to remove all previously stored data.
In-circuit reprogramming of the PIC is display previous months. Press "#" to finish. Erase Memory: This option removes all
possible through connector SKI. The author View Reminders: Displays upcoming historic fuel data, setting the device back to
used David Tait's excellent FPP Programmer reminders. It first displays the settings - defaults. This would normally only be used
for Windows, also freely available on the distance and/or date - then the text that will when the device is being used for the first
internet at http://www.people.man.ac.uk/ be displayed. Press "*" to see more time, or you want to start recording infor-
-mbhstdj/piclinks.html. Just make sure reminders, or "r to finish. mation on anew car.
your programming hardware matches up Add Reminder: Allows the user to add Connect to PC: This option can be used
with SK Icorrectly. anew reminder. First choose between the to link the device to aPC to manage the
type of reminder - Distance, Date or both. "Reminders". It's alot quicker to setup the
PROGRAM OPERATION If you select both, the reminder will be reminders on aPC than type them in by
The Car Computer provides anumber of displayed when the first event occurs. hand. See "PC Interface" below for more
options that are displayed on the 1.c.d. Once you have entered the distance or information.
through amenu. When the 1.c.d. screen is date, a flashing cursor is displayed and Blank Display: Turns the display off,
blank, any keypress will wake the device you may enter the text to be displayed as a putting the device into low power mode.
up and display the menu. Use the "8" and reminder. The device will do this automatically if no
key is pressed for 60 seconds.
Vehicle Computer
PC INTERFACE
Index [ Rem's& text [Type 1Date Distance L. The PC interface uses astandard 9-pin D-
1 6Month Service Time 12/09/03 type connector to link to aPC. The vc.exe
2 Check Oil Dist/Time 01/12/03 102000 program, provides an easy method of setting
3 Change Cam Belt Distanee 01/01/01 1500D -1 the reminders in the device.
El Empty Empty 01/01/01
5 Empty EMPty 01/01101 0
To use the interface, simply link the Car
6 E»'-'- rent.. ni /mini n Computer with the PC using a standard
7 E Enter Reminder Details modem serial cable. Select the "Connect to
8 E PC" option on the Car Computer, then run
9 E
10 E Reminder te> t Type vc.exe and click on the PC's display "Read
Data" button. To change an entry, click on
11
12
E
E
IE rev Empty zi corni
its index number. Click on "Write Data" to
Corn2
13 E update the memory in the Car Computer.
14 E Date DD MM `I'Y Figure 3shows an example program in use.
15
16
E
E F Read Data Don't forget to shut down the link on the
17 E Car Computer when you have finished
18 E Distance Write Data I as the RS232 interface draws several
19 E milliamps.
F7F—
20 E
E
Cancel
PCB
Layout
Auto
Placement
Schematic &
PCB Layout New Features
• Powerful & flexible schematic capture. in Version 6
• Auto-component placement and rip-up/retry PCB routing.
• Drag and drop toolbars.
• Polygonal gridless ground planes.
• Libraries of over 8000 schematic and 1000 PCB parts. • Visual PCB packaging tool.
• Bill of materials, DRC reports and much more. • Improved route editing.
• Point and click DRC report.
Mixed Mode SPICE Circuit Simulation
• Multiple design rules ( per net).
• Berkeley SPICE3F5 simulator with custom extensions for • Multiple undo/redo.
true mixed mode and interactive simulation.
• 6virtual instruments and 14 graph based analysis types. Call Now for Upgrade Pricing
• 6000 models including TTL, CMOS and PLD digital parts.
• Fully compatible with manufacturers' SPICE models.
abcerYce I
Tel: 01756 753440
Fax: 01756 752857
Electronics
Contact us for www.labcenter.co.uk
53-55 Main Street. Grassington. 8D23 5AA Free Demo CD infoelabcenter.co.uk
Top Tenners
BEDSIDE
NIGHTLIGHT ..
OWEN BISHOP
This short collection of projects, some useful, some
instructive and some amusing, can be made for around
the ten pounds mark The estimated cost does not
include an enclosure or batteries.
A two- in-one circuit that will bring If you lack modelling skills, there are
comfort and joy to your youngster's room plenty of ways in which a cheap toy or
ornament can be effectively fitted with a
pair of lamps.
T
HIS design is intended as a battery- VISUAL APPEAL
powered nightlight suitable for a
The circuit can be used with a pair of SOUND-ACTIVATED
child's bedside. Its power require-
torch-bulbs, suitably enclosed for the safety TRIGGER
ments are low and it should run nightly for
of the glass, projecting from the top of its Referring to the circuit diagram in Fig.!,
several months from alantern-type 6V bat-
enclosure, but there is fun in making the the microphone (MIC1) in the sound-acti-
tery, such as the 908S. It will run for asim- nightlight more attractive to the child. For vated trigger circuit is an electret type with
ilar length of time on four D-type cells in a
the prototype asnowman theme was used, abuilt-in Lea. preamplifier. It is provided
battery holder.
but there are many other possibilities. Much with power via resistor Rl. Variations in its
The key to this economical circuit is that depends on the current interests of the child. output voltage pass across capacitor CI to
it does not stay on all night. It relies on the
An ambitious suggestion is a model the inverting input (pin 2) of comparator
fact that atypical child drops off to sleep
steam locomotive, with ablue lamp on the op.amp IC1. The potential divider formed
within 10 minutes or so of being " settled
front of the boiler, and ared lamp on the by resistors R2 and R3 set the bias voltage
down". The nightlight has two filament
footplate. A biplane is another favourite for this pin.
lamps, such as 6V torch lamps running at
topic. Or model a mermaid sitting on a The voltage at the op.amp's non-invert-
100mA each. These both come on when a
rock, or apixie on atoadstool. ing input (pin 3) is adjusted by preset
pushbutton switch is pressed.
potentiometer VR1. It is set close
From then on, the lamps are
to the voltage at the inverting
under the control of timer circuits. Mr Snowman "keeping watch" on a bedside ta ble.
input when there is no sound, that
One of the lamps (LP2) stays on
is, to approximately 3V.
for about six minutes, which is
In the absence of asignal input
usually long enough for the child
from the microphone, the output
to fall asleep. However, the other
of the op.amp at pin 6is at astable
lamp (LP1) stays on for about 13
level, either high or low, depend-
minutes. At that time it dims down
ing on whether the voltage set on
gradually, to avoid plunging the
VR1 is above or below that on
child into total darkness.
R2/R3. When the microphone
detects sound and the alternating
SOUND TRIGGER signal amplitude at ICI pin 2 is
The lamp-switching circuit is on
sufficiently high to repeatedly
aseparate circuit board and can be
cross the bias level set by VR1, the
controlled with apushbutton switch
output of ICI swings between the
as described above. However, the
two power line levels, 6V and OV.
project also includes asecond cir-
The output waveform from ICI
cuit board, which is optional. This
is a.c. coupled via C2 to the diode
is asound-sensitive trigger.
pump formed by components DI,
When its microphone detects a
D2 and C3, turning on transistor
sound such as ahand-clap, acry or
TRI. The low-going transition at
a shout, or someone hits the bed-
the collector (c) of TR 1 is a.c.
side table, the circuit generates a
coupled by C4 and triggers timers
low-going output pulse. This trig-
IC2a and IC2b at their inputs pin 6
gers the switching circuits to put on
and pin 8. These pins are biased
the lamps for another 6/13 minutes
normally high by resistor RS.
sequence. Alternatively, the lamps
Sounds such as clicks, claps and
can be switched on by pressing the
whistles, with predominantly high-
pushbutton switch, which is locat-
frequency content are the most
ed close to an always-on pilot 1.e.d.
effective at triggering the circuit.
£8
Approx. Cost
pressing pushbutton switch SI.
TIMING CIRCUITS
COMPONENTS Guidance Only (each)
excl. case & batts.
When switch SI is pressed, or the input
from the trigger circuit goes briefly low, SOUND TRIGGER TIMING CIRCUIT
both timers ( IC2a. IC2b) are triggered into Resistors Resistors
action. Their outputs ( pins 5 and 9) go R1 2k2 See R6, R8 3M3 (2off)
R2, R3, R5 1M ( 3off) R7, R9 2k2 (2off)
high, supplying base current to transistors
R4 22k R10 220S2
TR2 and TR3, so turning them on. Current
then passes through :he lamps, LP1 and
All 0.25W 5% carbon film
or better.
TALK Rx ( see text)
All 0.25W 5% carbon film or better.
LP2. The high output from IC2a also page
charges capacitor C6. Potentiometer Capacitors
The length of the high output pulses of VR1 100k min. preset, C5 220µ axial elect. 10V
the monostables is determined by the val- horizontal C6 2200p axial elect. 10V
ues of the timing resistors ( R6. R8) and (see text)
capacitors ( C5, C7). The formula is t = Capacitors C7 100a axial elect. 10V
I. IRC, where tis in seconds, R is in ohms, C1 1tt tantalum bead, 10V
and C is in farads. With the values given in C2 220n metallised Semiconductors
Fig. I, the times are approximately 13 min- polyester film TR2, TR3 BC337 npn low- power
utes for TR2/LP1 and six minutes for C3 470n metallised transistor ( 2off)
TR3/LP2. You could obtain longer times polyester film D3 red led., or colour as
by substituting capacitors of higher values, C4 22n, metallised preferred
but remember that this reduces the life of polyester film IC2 7556 CMOS dual timer
the battery.
Semiconductors Miscellaneous
Lamp LP2 is switched off after six min-
D1, D2 1N4148 signal diode (2off) LP1, LP2 MES filament lamps, 6V
utes, when the output at pin 9of IC2 falls
TR1 BC548 npn small signal 100mA plus holders (2
to OV. After 13 minutes the output at pin 5
transistor off) ( see text)
falls too, but the fall is slightly delayed
IC1 CA3140 op.amp Si push-to- make switch
while the charge leaks away from capaci-
comparator B1 6V lantern-type ( 908S)
tor C6. This capacitor is optional and can battery or D-type cells
be omitted. With the value shown, the Miscellaneous (4 off)
lamp goes out fairly quickly. For alonger MIC1 electret microphone insert
delay, increase C6 to 4700µF or possibly Printed circuit board available from the
more. Printed circuit board available from the EPE PCB Service, code 418; ABS plastic
The circuit also has a constantly- on EPE PCB Service, code 417; 8- pin d.i.l. case; 14- pin d.i.l. socket; 1mm terminal
light, provided by led. D3, which is socket; 1mm terminal pins ( 5 off); stranded pins (7off); connecting wire; solder, etc.
buffered by resistor Rio. connecting wire; solder, etc.
As an alternative to the 6V battery sup-
ply mentioned earlier, the project can be
powered from acheap mains adaptor that CONSTRUCTION and Fig.3 ( Timing). These boards are
provides an unregulated 6V d.c. supply at available from the EPE PCB Service,
up to 300mA. But remember, if the mains The component positioning and track codes 417 and 418 respectively.
is used, amains power blackout will leave layout details for both printed circuit Assemble the circuit boards in order of
the child in the dark. boards are shown in Fig.2 ( Sound Trigger) component size, correctly observing the
+6V
o
R2 R4 C4 ,
22k 22r, 1
TR1
D2 BC548
044148
a >i k
D1 ?
1 C3
R3 VR1 1N4148 II\ 470n MOM
1M 1001, a
OV
o
+6V
o
1
,
Rx * e_S-
s LP1 * LP2 *
D3
6V 6V
10 L.ED.
100n1A 100mA
* SEE
TEXT PST +VE PST
TR2 TR3
67 R9
DIS BC337 IS BC33 7
252
5 54 9
THR IC2a o THR IC2b OUT
7556 7556 220(1
6 8
TRIG TRIG
GND
C6 1=1 C7
7 220011 10.2q,
OV
o
Fig. 1. Circuit diagram of the two sections that make up the Bedside Nightlight The top half is the optional sound-sensitive
trigger with the lamp-switching circuit making up the bottom half. These two circuits are built on separate circuit boards.
1
, TR1
[4
XI •
Mel
•-n-ITE•
OV
201,-, ( 51mm)
2.7In (88mm)
Fig.2. Component layout and full-size copper foil master for Fig.3. Timing and Lamp-Switching printed circuit board com-
the Sound- Trigger printed circuit board. The completed p.c.b. ponent layout and full-size copper foil master. The finished cir-
is shown above. cuit board is shown above.
orientation of the electrolytic capacitors trigger circuit without an oscilloscope. carrot. The broomstick was along ( 10cm)
and semiconductors. Do not insert the i.c.s However, the practical test is to see if it barbecue match. A "fringe" cut from thin
into their sockets until you have thorough- triggers the switching circuit. Connect brown paper was wrapped and then glued
ly checked your assembly and soldering. both boards to the same supply lines. around one end of the broomstick to make
Initially check out the timing board on Link the "A" pins on both boards. Turn on the bristles.
its own. Run paired leads from the allocat- the power and wait for the lamps to go The snowman is supported in a small
ed points on the p.c.b. to the lamp sockets out. The lamps should come on when you metal clip (originally intended for vertical
and insert the filament lamps. You can use clap your hands a metre or so from the support of circuit boards). This is mount-
lamps of lower power ( such as 6V 60mA) microphone. Adjustment to VR1 varies ed in the centre of the plinth (enclosure)
1
if preferred. You could also use high- sensitivity. with the pushbutton switch SI and I.e.d.
brightness I.e.d.s in place of the lamps. In D3 in front of it. Lamps LP! and LP2 are
this case wire aresistor in series with each ENCLOSURE mounted on the plinth side-by-side, close
1.e.d. to limit the current. A 160Q or 180Q Once the tests have been successfully behind the snowman's feet. The light from
resistor limits current to about 25mA. carried out, the style of the enclosure can the lamps is diffused by the translucent
When power is switched on, the timers be decided. In the prototype the circuit plastic so that the snowman glows gently
are automatically triggered and the lamps boards were mounted in aplastic case that in the dark — a soothing sight, inducing
come on for the stated six and 12 minute also held the battery. The case formed the sleep!
periods. plinth on which a model snowman was
It makes it more convenient to test the constructed, see photograph. OTHER APPLICATIONS
operation of the circuit if these periods are The technique used for the snowman The switching circuit could also be used
shortened by temporarily connecting addi- may be adapted to many other simple mod- as acorridor light and porch light. It can be
tional resistors in parallel with R6 and R8. els. The basic material used is sheet poly- triggered by other devices that produce a
Using values of 100k each, the delay peri- styrene, obtainable from model stores. It is brief low pulse, including pressure mats,
ods become 11 and 24 seconds. white and translucent and easily cut with a tilt switches and microswitches.
To check the sound-activated trigger cir- craft knife. Use polystyrene adhesive to The timing circuit could be used on its
cuit, first measure the voltage at ¡Cl pin 2, assemble the parts. own without the sound-activated trigger.
which should be 3V ±0-5V. Then adjust The snowman was cut from asheet 1mm However, input pin 6 of IC2a must be
preset VR1 until the voltage at ¡Cl pin 3is thick, and thin coloured cardboard was biased high by aresistor (Rx) of between
fractionally less than that at pin 2. stuck on to make the hat and hatband, eyes, about 101Q and 1MQ, soldering it on the
The pulses are so transitory that it is mouth and buttons. The nose was ascrap of track side of the board between this pin and
difficult to check the operation of the matchstick coloured orange to represent a the 6V power rail.
Parallax BASIC Stamps - still the easy way to get your project up and running!
www.milinst.com
e
-
Animated Head I 3-Axis Machine Six- Legged Walkers Robotic Arms Bipeds
Robotic models for both the beginner and the advanced hobbyist
Servo Drivers 1 Motor Drivers On- Screen Displays DMX Protocol U/Sound Ranging
Development Tools
Milford Instruments Limited Tel 01977 683665, Fax 01977 681465, sales@milinst.com
News
Aroundup of the latest Everyday
News from the world of
electronics
SPAM WARS
Publicising ways to get round spam filters may, perversely, help prevent
spam filters being circumnavigated. Barry Fox reports.
ariE Internet has been buzzing with gar- Legal Protection ploy. The latest junk email buries asales
bled reports of anew patent granted to What the garbled reports have missed is pitch in apuzzling welter of gibberish text.
AT&T in the USA. On the face of things that US company Macrovision has for Some offer drugs like Viagra for sale by
AT&T is helping spammers make our lives many years successfully used the same mail order. Another promises a "Bachelor,
amisery. But perhaps AT&T is playing a legal tool to fight companies that sell Master or Ph.D." in 30 days and the price
more clever game. Some of the reports devices intended to defeat video copy pro- of a few dinners out, and then signs off
stumble close to the true story. But none tection on VHS and DVD movie releases. with some paragraphs unashamedly
get it straight. Macrovision was founded in 1983 and labelled "random data".
Spanuners flood the Internet with junk now has over athousand US and interna- The random gibberish is there to defeat
adverts by bulk-emailing the message to tional patents. Many cover the company's the filters which work by looking for a
many different addresses, often trawled core system of distorting the train of puls- high percentage of telltale phrases like
from newsgroups or guessed or predicted es that TV sets and VCRs use to keep the "free", "make money", or "Viagra".
from known addresses. Over one third of pictures steady on screen. A TV set can It is hard not to have asneaking admira-
the email addressed to office systems is cope with the distorted "pseudo-pulses" tion for the spammers who keep thinking
now spam. and display steady pictures, but aVCR is one step ahead of the filter designers. It
Anti-spam filters look for duplicate thrown into confusion and makes arecord- seems apity they could not do something
emails that hit an office system in bulk, or ing which is too bad to watch. more useful with their talent.
reach a private email several times over. Founder and inventor John Ryan first Do not fall into the trap of "clicking
Detected duplicates are automatically tried a different tactic in 1986 when he here" to reply with congratulations, sar-
deleted and added to ablacklist or quaran- filed US patent 4695 901, for amethod of casm or abuse. The one thing the spam-
tined for humans to check manually. removing pseudo-sync pulses and so mers want more than anything in the world
defeating his own technology. The patent is a reply which proves that a guessed
Anti-filtering Patent gave pirates clear instructions on how to address is "active" and owned by areal live
The US Patent Office recently granted filter out the distorted pulses and so let human.
AT&T in New York apatent for a "system another video recorder make aperfect copy
and method for counteracting message fil- of a Macrovision-protected tape. But it
tering" (US 6 643 686). The patent
describes spam as a "nuisance", describes
also lets Macrovision sue them.
Usually athreat of action is enough to
NANOMOTORS
in detail how anti-spam filter systems work
and then reveals aclever way to "foil . . .
curtail sale. Recently Macrovision went to
court in Germany and won an injunction
REALISED
spam countermeasures based upon dupli- against Media Markt TV-Hifi-Elektro BROWSING the BBC's website recently,
cate detection schemes". GmbH prohibiting the sale of the Macro the news was found that one of the ambi-
The defeat trick, reveals AT&T's patent, 2000 copy protection circumvention tions of nanotechnology, building motors
is to partition the spam address list into device. on amolecular scale, had been realised by
sub-lists, change the header and message Says Macrovision's CEO William scientists at Berkeley, at the University of
text slightly for the message sent from each Krepick: "We recognized early on that we California.
list and randomly juggle the lists in a would be the target of hackers and circum- The researchers created the world's
mathematical pattern so that addresses vention devices (and) developed a dual smallest electrical device earlier this year,
which are similar (fredl@xyc.com and track patenting approach — offensive and ahundred million of which could fit on the
fredl@xyc.com) get different content. defensive. The defensive track was uncon- end of apin. Nanotechnology promises to
Internet Patent News Service, the ventional, since it involved patenting as revolutionise medicine, chemistry and
respected patent industry newsletter, many ways as we could conceive to defeat electronics. It is said that it could allow the
branded the patent "ashining example of our own technology. So we can sue the creation of computers the size of agrain of
corporate R&D irresponsibility", "acom- illicit black boxes and circumvention tech- sand, smart fabrics that sense toxic chemi-
plete waste of corporate monies (and) a nologies such as "Macrobusters" and cals, and even nanoscale filters to clean the
waste of PTO examiner time". Internet "Macroterminators" or the most recent environment.
news groups are echoing the criticism. German Media Markt "Macro 2000" Alex Zetti and Adam Fennimore of
"Don't tell me that AT&T is going to use device. There are cases where a1-2 punch Berkeley built the motors using an atom-
the patent to fight spammers by suing using both patent infringement and copy- fine point of a nano-probe, inserting the
them", challenges the newsletter. right infringement will bring circumven- circuits onto asilicon chip four millimetres
Initially AT&T wanted to play the move tion scofflaws to their knees." square. The motor's shaft is amere half a
close to its chest. But spokesman Michael So AT&T, like Macrovision, is taking the tenth of athousandth of amillimetre thick.
Dickman now confirms the object of the calculated risk of telling the world how to Dr Fennimore comments that the motor
exercise. do something bad, in return for a legal is so small that it is not yet known exactly
"We don't want to say too much and patent monopoly on the bad deed. So the how it behaves.
compromise law suits", he says. "But con- goodies can sue the baddies for patent For more information browse
trary to what's being said, this is a legal infringement. http://news.bbc.co.uk/11/hi/technolo-
tool intended as an anti-spam measure. The gy/322,4329.htm. There is also an animat-
spammers come at you in every imaginable Gibberish Rules OK? ed series of electron microscope images of
way. We filed the patent to try and stop Unfortunately the spammers may the motor at www.berkeley.edu/news/
them coming this way". already be one jump ahead of AT&T's media/releases/2003/07/23_motorshtne
HOW FAT?
IN Greenweld's October newsletter, our
eye was caught by a clever little device
LASCAR ELECTRONICS tell us that they have introduced a data logger which automati- which monitors the percentage of fat in
cally uploads its measurements to an Internet database. The data can then be accessed your body. You simply place your thumbs
and analysed with astandard web browser. on the top and you have the results in sec-
Getting started with the SWI 300 "couldn't be easier", say Lascar. Simply connect the unit onds. It includes a 10-person memory with
to atelephone socket, plug in the power supply and switch on. Once installed, the unit can aweight range from 20 to 300 pounds ( 9kg
be controlled entirely through your browser — simply log on to www.3wdata.com where to 136kg) and is suitable for the age- range
you can set the parameters that the logger will measure, the sampling frequency and the 10 to 80 years.
intervals between uploading data. The device comes complete with an
The website allows a user to set alarm levels and have an automated email or SMS text alarm clock and countdown features. A
message to alert them if these levels are exceeded. You can even operate remote devices battery is included. The price is £ 14.99,
through the unit's control relay output. order code HLL1129.
The data can be accessed securely through the website and can be either viewed online For more information on this and other
in graph form or exported to most popular spreadsheet programs for further analysis. Greenweld stock items, call 01277 811042
For more information browse www.lascarelectronlcs.com or www.3wdata.com.
or browse www.bargains@greenweld.
co.uk.
SPECIAL OFFERS JUST IN DTV12-14 OSCILLOSCOPE Q H.P. 606313 DC EecrocK - Dad 32401110 10A 250W POA
Q
Dual trace. 12MHz TV. coupling ONLY H.P. 66112A FSU 0-20V/0.2A £400
H.R 8460A Signal Generator AM/FM. 500kHz.5121Alizt2.50 H.P.6631111 PSU. ckisve3A . £400
TEKTRONIX 2445A
4-ch 150MHz delay_ KLNWOOD CS4025 Oscilloscope dual Irace 20MHz £125 H.P. 463000 PSU Dual, 0.15, 0-3140-12. 0-1 5A £750
u. cursors etc Supplied LEADER LB0523 Oscilloscope, deal trace. 35MHz £140 FARNELL LF1 SINE/SO OSCILLATOR. H.P. 66328 PSU. 0-20V/0-54 £500
t
with 2Tektronix probes GOULD 05300 Oscilloscope, dual trace. 20MHz £95 10Hz-1MHz ONLY H.P. 56238 PSU Ingle output rangng horn 0-7V 0-5A to
0-20V 0-4A £1190
=rd. ••• 1, ONLY C)
NATIONAL PANASONIC VPT705A Distortion Analyser
£125 OSCILLOSCOPES
H.PJAGILEHT 314018 DIN 64 Owl
H.P. 3478A OMM 54 digit
£4055440
1275
KEN WOOD YT176 Millivoltrneler 2-channel £50 TEKTRONIX 105350 dual trace. 2031411z. 1G/S Unused £ 1500 FLUKE 45 DIM goal bsplay £100
TEKTRONIX 2232 Digital Storage Scope KENWOOD FL140 Wow 8Flutter Meter £50 TEKTRONIX TDS.320 Mal trace. 10314Hz. 500M/S £ 1200 KEITHLEY 2010 DMM 74, digit £950
Dual Trace, 100MHz. 100M/S with probes £525 KENWOOD FL180A Wow 8 Flutter Meter Used £75 TEKTRONIX TDS310 Mal hace. 5CMHz. 20014/5 £950 KEFTHLEY 617 ProgrammabW Electrometer £1250
CIRRUS CRL254 Sound Level Meter Unused £125 LECROY 9400A dee trace. 175MHz. 5015 HP41388 MOohroneter, £1500
with Calibrator 80-120418. LEO £95 BIRD 43 Wan Meter £75 HITACHI VC6522 Craze. 201.4Hz. 201A/S lela, ACAL Counter typo 1999 240H: MOO
BECKMAN MD110 Handheld 31 / digit [WM. 28 Elements for the above £25 Counter type 531318 3Gliz
2 PHIUPS PI13092 2,0-ch . 200MHz, delay eL:
ranges. kWh battery, leads and carrying case £30 PHIUPS PU3082 2.2e 100MHz 800 PJAGILENT 331200 Func GenARB 100uHz.15MH
WAYNE KERR 8424 Component Bridge £50 MARCONI 193C AF Power Meter, Smug Measurement £1064[1000
TEKTRONIX 165466
RACAL 9300 True RMS Voltmeter, 5Hz.20MHz Unused £100. Used £60 SONT/TEKTRONIX APG320 /Weary Func Gen £1250
TEKTRONIX 2465B 4 -
usable to 60MHz, 10V- 316V £50 MARCONI 89313, No Sinad P9901A Syn Function Gen, DC-600kHz £1006E1250
TEKTRONIX 2
RACAL 93008, as above £75 MARCONI 2610 True OMS Voltmeter, Auloranging. KSTAR JUPITOil 2010 File Gen. 02M-2MHz with
TEKT -r '
100446v 3e3,
4Hz-25MHz £195 PK) COUref £110
GOULD J3B Sine/Sq Osc., 10Hz-100kHz. dual trace 100M-1 116A Pulse Generator, ImH-501.41.1z £1950
H.P. 3312A Fund= Gen.. 0.1Hz-13MHz,
AM/FM Sweep/Tn/Gate/Brst etc. £300 lokrr distortion 075-0125 14 .350MHz. OeLay .86578 Oye 51 Gen. 01.2080MHz £500
AVO 6Mk. 6in Every Ready case with lead, etc 5 al:race. 200M CO- AXIAL SWRCH, 15GHz 040
FARNELL AtAM255 Automate Mo
Other AVOs from . 4655 r...W oac 5 IEEE CABLES [10
Meter. 1i5MHz-2GHz. unused £300
FARNELL DSG1 Low Frequency Syn Sig Gen GOODWILL GYT427 Dual Ch AC M.I oft TE OHM 2215 tu t250
0001Hz-9B991tHz, low distortion, TTLJ 10mV-300V in 12 ranges. Fre PHIUPS P C3
Square/Pulse Outputs etc SOLARTFtON 7150 DMM PHIUPS P •n SPECTRUM ANALYSERS
FLUKE 6060A Handhe1d True RMS, OMM, Tru RMS-IEEE £95- El 50 Men
41/ digit
2 As new £150, used £95 SOLARTRON 7 £2 0051100
11.P.85616 Sül-Q-6 5Gliz . £5000
H.P. 3310A Function Gen.. 0,005Hz-5MHz. HA HM303.6 3 a,
H.P. 8560A 5014,2 9GRz synthesised £5000
Sine/Seri/Ramp/Pulse £125 TV RACAL COUNT Alt
M.P. 0594E 9kHz.2 9G1.12 £4500
FARNELL LFM4 Sine/Sq Ow:Radix 10Hz- 1MH Lint ounter 50 AMES HM303 Jui C200 H.P. 8591E 1MM-1-86Hz, 75 Ohm £2750
low distortion. TTL output. Amplitude Meter 520M/1, Many other H.P. 653A rani 8S59A 100kliz-21Gliz £ 1758
M.P. 545A Logic Probe with 546A Lo ter. 10Hr-560 II.P. 85588 with Man Frame. 100k147.15001.411z £750
Pulser and 547A Current Tracer YN KERR 8424 Co I e £ 125 A Ger H.P. 3585A 201.4z-40MHz £2500
FLUKE 77 Multmeter. 31 /-
2 di ACAUAIM 9 LCR
ddisplay etc [5254750 H.P. 3580A 51.1z-504Hz cexi
FLUKE 77 Series 11 . . DIgtal ° moo. ment D ADVANTEST 641318 10kHz.3.5GH2 £2750
sag gen 10014)11.1040M114
HEME 1000 L.0 D Clamp M 44 IRA I1000 EATOWAILTECN 757 0.001.22GHz 0750
BSynth eg gen. 100kHz.990MHz 01150
in carrying case A 4o 2A True R MARCONI 2382 100H7-4001.641. Mgt resokeon ricao
. . 8656A Synth mg gen, 100kHz-990MHz £395
D,git 1OA MARCONI 2370 30Hz.110MHz !torn £500
960 APN62 Synth, 1117-260kHz srg gen
BLACK STAR ORION PAL/TV Colo 35Dig , H.P. 112 inth 8557 10kHz.3501.1147 . £500
balancedunbalance outpun lc ddisplay £425
Generator fro H.P. 1411 SYSTEMS
111URLBY/THANDER TG210 Function rtable ste PHIUPS P1153211eg gen. 100kHz.18961Hz srS 8553 1 kHz-110MHz [500
0.002Hz-2MHz. TTL etc f95 Megger Pat ONLY 200MHz. fret counter. IEEE £550 8554 500kliz.1250MHz £750
TMURLBY TMANDAR PS.U. PL3200MD -32V RACAL 9081 Synth AM/FM ag gen, 514F12.5217MHz 0250 8555 10MH2.18GEtz .. £ 1000
0A- 2A Twice ( late colours) £200 H.P. S OV 0-50A, 1000W £1000 H.P. 3325A Synth funcoon gen. 2114Hz [BOO H.P. 8443 Treeing GraNC:culrrter. Item: rm.°
FAR IKW Autoranging £1000 MARCONI 6500 Armiedde Analyser £ 1500 H.P. 1411 OPT 059 £750
FAR 50 0.60V 0-50A £750 UK 20139 Seel Anahmer
Datron 1061A £225 FAR L4450/25 0-60V. 025A £400 H.P. 4142A
nP 427 5A im'eleee
LCnMeter kna
lOk liz
lyseitrOMHz ri H.P. 6754A Nebo& Analyser. IMHz-13001-4147 £ 1250
High Quality 61
2 digit Bench
/ H.P. 8903A [Intone, Analyser •££0
7750
coo H.P. 1557A Network Analyser, 5H2-2001114: £3010
Power Supply HPS3010, 0-30V 0-10A £ 140
Multeneter H.P. 53310A Mod Donan Analyser Opt 001/003 £5076
FARNELL Dual PSU 0A35-21, 0-35V. 0.2A. Twice WAYNE KERR 3245 Inductance Analyser
True RMS/4 wire/Current Converter ONO SOKKI CF303 Portable FFT Analyser .
OM° Icd Display £ 180 H.P. 8112A Pulse Gerera .
er. 504.1R,£ 1250
H.P. 8720C Merowave Network Analyser. 50MHz-20Gliz £ 12.500
FARNELL L30-2 0.30V. 0-2A £80
Racal Receiver RA1772 £250 FARNELL L30-1 0.30V. 0-1A £60
MARCONI 2440 Frequency Counter 260H, £ 1000
H.P. 53508 Frequency Counter 20GHz [2:100 RADIO COMMUNICATIONS TEST SETS
5OkHz 30MHz
Many other Power Supplies available H.P. 53428 1011,143GH: Frequency Counter MOO MARCONI 2955/2955R From OM
H.P. 16508 Logic Anabser. 80- channe RONDE SCHWARZ Orr 1.1000MItz £1500
STEWART of READING MARCONI 2035 Mod Meter, 5CCkHz-2GHz £750 SCHLUMBERGER 4040 £750
re-N-
110 WYKEHAM ROAD, READING, BERKS. RO8 1PL Used Equipment — GUARANTEED. Manuals supplied
Telephone: (0118) 9288041. Fax (0118) 9351898 VISA This is a VERY SMALL SAMPLE OF STOCK. SAE or Telephone for lists.
www.stetvert-of-reedIngeo.uk Please check availability before ordering.
Callers welcome 9am-5 30pm Monday to Friday ( Other times by arrangement) CARRIAGE all units £ 6. VAT to be added to Total of Goods and Carriage
TEACH-IN 2004
Part Three - Experimenting with Op.amps
MAX HORSEY
How to apply electronics meaningfully - the aim of this 10- part series is to show, experimentally,
how electronic components function as part of circuits and systems, demonstrating how each part
of a circuit can be understood and tested, and offering advice about choosing componen -s
E)
ESIGNING a quality transistor fear of electrostatic damage. It operates on It is worth noting, though, that other
amplifier is a skilled business! awide range of voltages, and is "frequency single op.amp types may have different
Each section is dependent on the compensated". This ensures that it cannot functions for pins I. 5and 8.
conditions in previous sections, and the oscillate unpredictably and uncontrollably
gain of transistors can vary widely from — a problem often associated with high- DUAL-RAIL POWER SUPPLY
one to another. Clever circuit design can gain amplifiers. Before continuing, we need to examine
overcome many problems, but when tem- This op.amp is housed in an 8-pin the type of power supply (PSU) often used
perature changes occur unequally package. The package and its pinout sym- with op.amps — a dual-rail power supply.
throughout the system, the circuit can bol are shown in Photo 3.1 and Fig.3.1 This can be understood if you see how it is
behave unpredictably. respectively. So how does it work? created from batteries. We will assume two
A modern op.amp (operational amplifi- A clearer view of the op.amp symbol 9V batteries are employed as shown in
er) houses the entire circuit on asmall chip associated with the 741 (and many other Fig.3.3.
of silicon and so any change of temperature types of op.amp) is shown in Fig.3.2. Note
will occur equally throughout the circuit, that the power supply connections are via
hence reducing the problem. Like all inte- pin 7 (positive) and pin 4 (negative). The
1-9V
grated circuits (i.c.$) the size and cost are output is from pin 6. There are two input
much reduced and reliability increased. pins, labelled — and +.
The best of all worlds!
RULE OF TEN
eg.741
47k
been added to monitor the voltage applied 9V
+9V
* e.g.741
9V I
VR1
47k
4
VOLTS
VOLTS
INPUT OUTPUT
VOLTMETER VOLTMETER
9V I
Fig.3.5. Monitoring the effect of varying the voltage level Fig.3.7. As for Fig.3.6, but now using a single-rail supply.
applied to the non-inverting input of an op.amp.
DOING SOMETHING USEFUL er's data sheets) the current that will flow
via an op.amp input when used in your cir-
Try assembling the circuit shown in cuit . You must set your resistor values so
Fig.3.6. Here we are using potentiometer that ten times this current flows through the
VRI as avariable resistor, and employing a resistors. In many instances, though, you
light dependent resistor (1.d.r.), RI, as a can just stick to values of 101(52 or so!
light sensor. Be careful not to set VR1 to Returning to Fig.3.7, resistors R2 and R3
zero resistance, or excessive current may create amid-way voltage of 9V / 2 = 4.5V,
flow through the 1.d.r., particularly in bright which is applied to the inverting input. The
light. In a practical circuit a resistor ( say variable resistor VR1 and the I.d.r. also act
Ild2) would be connected in series with the as apotential divider and you should adjust
1.d.r. to prevent this problem. VR1 so that the voltage at the op.amp's
Set VR1 carefully so that the op.amp's non- inverting input (pin 3) is just below
output is low. Shade the I.d.r. The output 4.5V. The output will now swing to fully
should change to a positive reading. low (somewhere near to 1.5V with asingle-
Shading the I.d.r. makes its resistance rise, rail 9V supply when using a741).
Photo 3.2. Author's breadboard and so the voltage at the input rises. As this Now shade the 1.d.r. The voltage at the
assembly for the circuit in Fig.3.4. voltage crosses the OV threshold, the non-inverting input will rise, and as it
crosses the 4.5V threshold, the output will Fig.3.9. Improving the circuit of Fig.3.8 to power a higher-
swing to fully high (somewhere near to current output device.
7.5V with a741 and a9V supply).
You can extend the circuit to make an the comparator, making the circuit shown
automatic light controller as shown in in Fig.3.9 and Photo 3.3.
SCHMITT TRIGGER
Fig.3.8. An 1.e.d., DI, is connected to the The protective (back-e.m.f.) diode D1 is You may sometimes want a system to
op.amp output in series with resistor R4. only required if the output device is induc- only respond to larger signal changes. For
The 1.e.d. should light whenever the 1.d.r. is tive, e.g. buzzer, relay coil, solenoid, motor, example, consider a circuit that causes a
shaded. etc. If the output drives a lamp or solid- lamp to light up automatically at dusk. A
In this single-rail circuit you will prob- state buzzer, then D1 may be omitted. If in sensitive circuit would respond to the
ably find that the I.e.d. glows dimly doubt, leave it in. falling level of light at dusk, but on a
rather than turning off properly. This is Note the inclusion of resistor R5. This is cloudy night, if the clouds suddenly
because the 741 op.amp is likely to out- only needed if the output from an op.amp, cleared, the lamp may switch off again.
put a minimum " low" voltage of around such as a741, cannot fall to near zero, as This might not be a problem, but if, for
IV to 1.5V when powered by a 9V discussed earlier. In this case, the op.amp example, your circuit triggered an auto-
single-rail supply. matic pet feeder at dusk, the pet might
will never be able to turn off the transistor
The solution is to either use an op.amp receive several days' food in one evening!
since a transistor's turn-on voltage is
which can output OV on asingle-rail sup- around 0.7V. You could use a Darlington A small amount of positive feedback can
ply, or place adiode such as atype 1N4001 pair (turn-on at about 1.4V) instead of the be employed to eliminate the problem. The
in series with the i.e.& The voltage drop single transistor, or you could use an circuit shown in Fig.3.10 uses two addi-
across the diode will be about 0.7V, allow- op.amp capable of providing a near OV tional resistors, R6 and R7, to apply apro-
ing the I.e.d. to switch off properly. output (known as a "rail-to-rail" op.amp, portion of the output voltage back to the
WARNING: Do not use an I.e.d. con- e.g. MAX473). non- inverting input. The ratio of the resis-
nected between the output and the OV rail But the simplest solution is to add a tors sets the amount of feedback.
in adual-rail circuit, since the 1.e.d. may be resistor as shown. This reduces the mini- Try the values shown. You will find that
damaged when the output goes negative, mum voltage output from the 741 to alevel the I.d.r. has to be shaded fully before the
due to the reverse-voltage limitations of the below TR1's turn-on threshold. circuit responds. Once it has responded, the
I.e.d. (as discussed in Part 2). 1.d.r. must be fully unshaded for the output
ALTERNATIVES to become low again.
COMBINING CIRCUITS You can swap the I.d.r. with athermis- In practice you may need to adjust one or
Most op.amps can only supply a few tor (or any other environment- sensitive other resistor value to achieve the desired
milliamps from their outputs, and so to effect; for instance, increasing the value of
resistance device) to make the system
switch on an output device, such as alamp R7 will reduce the effect. This type of
react to temperature changes (or other
or a relay, a transistor interface may be changes). For VR1, use avariable resistor arrangement is known as aSchmitt trigger
employed. The simplest transistor circuit whose maximum resistance is roughly circuit.
shown in Part 2 (Fig.2.2) may be added to twice the resistance of the thermistor at
room temperature. NEGATIVE FEEDBACK
You can reverse the action of the system Whereas positive feedback makes the
by swapping VR1 and the I.d.r., or by con- Schmitt trigger system less sensitive to
necting the non- inverting input to the junc- small changes, negative feedback can be
tion of resistors R2 and R3, and connecting used to make it more controllable by small
the inverting input to the junction of VR1 changes at the input. Try changing the cir-
and the I.d.r. cuit of Fig.3.10 into the one shown in
e e
ty e1 el
e , Jrt te
t•
e s • .•
'
Fig.3.13. Test circuit for use with a.c. signals. plus example
waveforms.
SIGNAL
small a.c. signal ( say 1V peak-to-peak) to
the input as shown in Fig.3.13a. INPUT
to explain. We will start with impedance — resistor (R1 in this SIGNAL 3 +9V
will oppose a.c. and d.c. equally. the feedback resistor EARTH
VOLTS
But acoil of wire has both resistance and must be higher still in 9-
ALL NPUTS 9V
an inductive (magnetic) effect, plus a value. GROUND/SCREEN
o
capacitance effect. Its resistance will affect If, for example, you -9V 7-
a.c. and d.c. equally, but its inductance and require a gain of ten,
capacitance will affect a.c. more than d.c. then the feedback
Hence if you measure the resistance of a resistor must be ten Fig.3.15. Using an op.amp as a signal mixer.
+9V
R2
AX
47k
47k
SIGNAL 20
W-
1 9V
VI2
10k
SIGNAL 10 OV
ALL NPUTS
GROUND/SCREEN
o
T-
Fig.3.16. A practical dual-rail op.amp mixer with input level controls.
B)
101d2 altogether, but still acceptable in since the negative-going aspect of the sig-
most applications. nal cannot be processed. This would result
Note that a logarithmic type of poten- in severe distortion. Fig.3.18. An a.c. signal loses its nega-
tiometer should be used ( not a linear The trick is to raise the average value of tive-going waveform if incorrectly
type), since alog type will appear to pro- the a.c. signal, so that instead of swinging processed by asingle-rail power supply.
duce amore even change of sound level as positive and negative (i.e. above and below
the slider ( wiper) is adjusted ( this is due OV) the signal swings above and below a
to the way in which the human ear mean point, such as 4.5V for a9V supply. You saw in Part 1how capacitors appear
responds). The signal can then be amplified, before to conduct changes in voltages, even
The circuit shown in Fig.3.16 is asimple being lowered back down to amean of OV though the two sides are insulated from
mono audio mixer with three inputs. You for outputting. each other. So the capacitor in Fig.3.19a
can add more inputs as needed. If you An example circuit is shown in neatly allows the d.c. bias level to shift
require astereo mixer, then you will need Fig.3.19a. Notice that the op.amp is con- from OV to 4.5V, as shown by the wave-
another identical circuit for the other half nected to +9V and OV. We use two 10k0 forms in Fig.3.19b, representing the sig-
of the system. resistors (R3 and R4) as apotential divider nals at points A and B in Fig.3.19a.
Whilst the 741 is an ideal op.amp for to create a4.5V supply which is connected If you examined the amplified signals at
experimentation, better i.c.s are available to the non-inverting input at pin 3. points C and D, you would see that wave-
which offer lower noise (background hiss) Earlier we showed how an op.amp with form C is an amplified copy of B, and D is
and consume less power. You can also negative feedback will copy the voltage at the same signal as C but shifted back down
obtain i.c.s with two or more op.amps in pin 3 to pin 2, so in Fig.3.19a pin 2 to an average of OV. So the second capaci-
one package. Such an i.c. is the NE5532N, assumes 4.5V. So now the op.amp sees tor, C2, holds back the 4.5V d.c. level, but
as shown in Fig 3.17. This offers low noise 4.5V as its mid-point. However, the 50Hz allows the a.c. signal to pass.
and low current consumption. a.c. input signal swings equally above and The signal at point D ny be viewed on
below OV, with an average d.c. bias of OV, an oscilloscope, or sent to another circuit —
and so acapacitor, Cl, is used to block the apower amplifier for example, but note the
d.c. bias, but allow the a.c. signal to pass. 1001(52 resistor, R5. This is necessary to
SINGLE-RAIL SUPPLY
The circuits so far have required arather
cumbersome dual-rail power supply. While
this is fine if the power is being derived
from a specially made power unit, if you
wish to use a battery, or a simple PSU
which plugs into the mains and provides a
standard 9V or 12V d.c. output supply,
then it is very inconvenient.
We will now show how an inverting
amplifier can be made to function on asin-
gle rail supply, where OV is the lowest
voltage in the circuit. First, though, let's
explain aproblem, referring to Fig.3.18.
In Fig.3.18a an incoming sinusoidal a.c.
signal is amplified by an op.amp running
on adual-rail supply. The result is a uni-
formly shaped waveform, as you would
expect. In Fig.3.18b the signal is amplified
by an op.amp running on asingle-rail sup-
ply. The lower half of the output is missing Fig.3.19. Usina capacitors to shift the d.c. level of a.c. signals.
INPUT 2 82
47k
4p7
VR10 I I FOSIGNAL
GROUND 0-•-• OUTPUT
9V
r
I I— MC
SIGNAL
INPUT 1
GROUND 0 VR1
10k
GROUND C6 +
470p T
provide aload for the output. If you con- noise types, including the dual op.amp (for NON-INVERTING
nect the output to another circuit, then that stereo use) type NE5532N. The power sup-
circuit will provide aload and R5 can be ply is shown as 9V d.c., but if using amains O.C. AMPLIFIER
omitted power supply adaptor, 12V d.c. would be As you might expect, it is possible to
better to avoid clipping as mentioned apply asignal to the non-inverting input of
CAPACITOR VALUES previously. an op.amp and tie the inverting input as
Calculating the values of the capacitors The input capacitors (Cl to C3) are shown in Fig.3.21. Note that we still have
(Cl and C2) required in Fig.3.19a can take shown as non-electrolytic 1µF types, negative feedback in the form of RI. The
us into some fairly heavy mathematics, and though 0.47/ÁF (470nF) will normally be ratio of resistors RI and R2 provide the
so a "rule of thumb" is offered. just as good. The output capacitor C5 is gain according to the equation:
If the capacitor value is too small, then shown as electrolytic, and it is essential to
Gain = (R1 / R2) + 1
lower frequencies will be attenuated connect its positive side as shown.
(reduced). So we need acapacitor which is No load resistor has been included at the Hence in Fig.3.21, the gain is given by:
large enough to cope with all required fre- output, as it is assumed that the output will
Gain = (47k / 10k) + 1 = 5.7
quencies, but not so large as to be bulky be connected to another circuit. But
and expensive. A value of 1µF at the input remember that you will get strange results Notice that the positive answer shows
side (Cl) will normally be more than suffi- on an oscilloscope if you test the circuit that the output is in phase with the input, in
cient; in fact you could probably use a without a load (although you may get other words, it is not inverted.
100nF (0.1µF) and not hear any difference. round this by directly monitoring the out- The input impedance of the circuit is
Use anon-electrolytic if possible — poly- put of the op.amp, at pin 6). equal to the input impedance of the op.amp
ester film and polyester layer capacitors Resistors R4 and R5 split the supply input itself, and this is likely to be very
(which are non-polarised) of at least 1/2F voltage in half to bias the non-inverting high. In fact some op.amps with f.e.t. or
are readily available, and these should be input. Note the additional capacitors C4 CMOS inputs have input impedances well
fine. The output capacitor may need to be a and C6. Both are used to help smooth the in excess of 1Me2. This very high input
little larger, particularly if you have ampli- supply and remove any ripples present. The impedance is agreat advantage in circuit
fied the signal, but use at least 1µF. value of feedback resistor R6 has been cho- design, and it is easy to reduce if not
If employing electrolytic capacitors, sen to provide again of two (actually —2, required.
ensure their positive side is towards the i.c. since the output is inverted).
i.e. connected to B on the input side, and to EXTREMES
point C on the output side. Non-electroly- LIMITATIONS 1f resistor R2 is reduced to zero (e.g.
tic capacitors may be connected either way A mixer circuit of the type shown in replaced with awire link) then the gain of
round. Fig.3.20 is designed for "line-level" sig- the system will rise towards infinity since
Be aware that electrolytic capacitors tend nals. This term is explained fully later in the inverting input will be fixed at OV and
to be noisier than non-electrolytic types the series, but in this context it means the the circuit will behave like acomparator.
and, as ageneral rule, this is another reason signals used between aCD player, video The formula shows this:
why non-electrolytic types are preferable in recorder, cassette recorder etc., and apower
Gain = (47k / 0) + 1 = infinity (since any
this type of application, especially if you amplifier. These signals peak at around 1V.
number divided by zero is infinity)
are dealing with small signals. The mixer is not designed to mix high-level
signals, such as signals fed directly to In fact, the gain will be equal to the
CLIPPING speakers, or to mix low-level signals e.g. open-loop gain of the op.amp.
We mentioned clipping earlier when dis- from microphones, or record decks with If resistor R2 is increased to infinity, i.e.
cussing the need for adual-rail supply. We magnetic cartridges. removed altogether, then the formula
have avoided clipping the negative half of Whilst it may be tempting to connect shows:
our signal by shifting its average value up several microphones to the mixer, the sig-
Gain = (47k / infinity) + 1 = 1
by 4.5V. However, with many op.amp types nals are so low that considerable amplifica-
there is still a danger of clipping if we tion is necessary. If you amplify the signal Hence we see that the output will copy
allow the peak-to-peak signal amplitude to after the mixer, noise induced by the poten- the input — we have avoltage follower.
be greater than about 2V when using a9V tiometers and elec-
supply. trolytic capacitors will +9V
oiw
In other words we should avoid allowing swamp your signal. It
e9.741
it to rise above 6.5V or fall below 2.5V, is essential, therefore, fi
otherwise the peaks of the waveform may to amplify the micro- SIGNAL 0 9V I
II-. SIGNAL
(SEE TEXT)
RO 6 OUTPUT
irrelevant. It may as well be apiece of wire. microphone, i.e. the Cl
(Mathematicians may be worried about the type which generates a 100n
OUTPUT
consequence of 0/0 in our formula, but for- signal without the 100
GROUND
tunately even a piece of wire has some need for a separate
resistance, so the problem doesn't arise!) power supply, or you MICROPHONE
ovT—
input voltage. This may not sound very it is the type which has C3
useful, but remember that the input imped- a battery fitted inside 4u7
ance is very high, and the output imped- the housing. Cheap
GROUND SCREEN
ance is much lower — in other words, a electret microphones
minute amount of current at the input can often employ this
cause asignificant current from the output. method, expensive Fig.3.23. Microphone preamplifier circuit, single-rail.
The circuit is thus useful as asignal buffer. ones generally require
"phantom power", i.e. The operation of capacitor C3 is more
a48V d.c. supply which must be fed down subtle. It is large enough to offer no resis-
the microphone cable from the amplifier. tance to the audio (a.c.) signals, and so as far
The signal is a.c. coupled by capacitor as a.c. is concerned it is like joining R4
Cl. Resistors RI and R2 hold the non- directly to OV, and the gain equation is intact.
inverting input to amid-voltage, 4.5V in But d.c. is blocked, and so as far as the d.c.
this case. When an audio signal is deliv- conditions are concerned, we are effectively
ered by the microphone it is amplified joining the output directly to the inverting
according to the non-inverting formula: input. The gain equation is therefore:
Gain = ( 100k / 10k) + 1 = 11 Gain = ( 100k / infinity) + 1 = 1
So if the microphone produces asignal So applying the op.amp "law" where-
of around 50mV we should obtain an out- by, if negative feedback is applied, the
Fig.3.22. Unity gain voltage follower
put of around 50 x 11 = 550mV. voltage at the inverting input copies the
(buffer).
Capacitors C1and C2 perform asimilar voltage at the non-inverting input, the
For example, you may have an elderly operation to the input and output capaci- magic figure of 4.5V (or half the supply
analogue voltmeter at the back of acup- tors in the inverting circuit (Fig.3.19). voltage) is copied to the non-inverting
board. It is a fairly cheap meter, and its input, pin 3, and hence to output pin 6. So
internal resistance is quite low. Hence the whole system sits at 4.5V, and the a.c.
when you try to take avoltage reading in a signal is amplified as shown in Fig.3.24.
sensitive circuit, the meter sucks so much The small waveform represents the input
current out of your circuit, that the reading signal from the microphone, and the larg-
is much lower than expected. er one shows the "in-phase" signal from
This is a common problem — meters the output.
which affect the circuit you are trying to Note that resistor R5 is only required if
measure. The solution is to construct a an electret microphone insert is used (these
voltage follower. The input of your voltage were discussed in Part 2). These micro-
follower requires almost no current (it has phones are inexpensive and provide agood
a very high input impedance) but it can signal, and so are ideal in "low quality"
supply more than enough current to oper- applications, e.g. if you are trying to detect
ate your cheap meter. It copies the voltage sound, rather than record it. If you use a
you are measuring with great accuracy, and dynamic microphone (any type) or an elec-
outputs this voltage to your meter. tret microphone with a built-in battery,
then omit R5.
MICROPHONE AMPLIFIER
The high input impedance of the non- NEXT MONTH
inverting amplifier makes it ideal as a Fig.3.24. Example waveforms for the In Part 4next month we start to examine
microphone amplifier. The arrangement for circuit in Fig.3.23. logic gates and digital electronics.
* JAZZY NECKLACE *
TUG-OF-WAR GAME
PIC LCF METER
TEACH- IN 2004 Pt 4
I
N many people's living memory the Picture quality is apparently not brilliant film archivists at the Imperial War
only choice with television was whether but will doubtless improve as technology Museum who try to preserve footage as
you watched BBC or ITV. Cable TV advances. originally seen."
was an option in few areas only and in any This is not to deny the fact that televi-
case, the most it offered by way of "extras" MISSING THE POINT sion sets are now mostly made with a 16:9
was an out-of-area regional ITV pro- Broadband was just made for applica- ratio picture tube, he continues. It's under-
gramme plus a selection of radio tions of this kind and people who see standable that having bought one of these
programmes you could listen to on the TV broadband as merely souped-up Internet sets, many viewers will be keen to get as
set's loudspeaker. access are missing the point. That's cer- much widescreen as possible (regardless of
Colour pictures and video recorders tainly the viewpoint of Brian Levy, Group the corruption of the image). And to be
were dreams for the future, whilst the only Technology Officer for Services and fair, this is apersonal preference (much in
television satellite was Early Bird, used for Solutions at British Telecom. "Fast the same way that some people like deeply
transatlantic programme exchanges on Internet is only one narrow facet of broad- saturated colour whilst others prefer sub-
special occasions only. Not much choice band," he declares. "Broadband opens up a tle, more natural hues).
but no worries either. vast repertoire of video on demand offer- But remembering the great deal of care
ings, online gaming, two-way multimedia the BBC invested in getting PAL colour
PICK-AND-MIX hookups and provides the network gateway television "right", you might be forgiven
These days broadcasters are seriously for all manner of tetherless voice and data for thinking that widescreen broadcasts
concerned. The cosy world of broadcasting devices such as high-speed wireless data would be handled with the same degree of
that they controlled exclusively is disinte- networks in the home." attention. Far from it! Programme sched-
grating into an unrestrained array of nar- For many people this explosion in ules regularly feature an often confusing
rowcasting options. With broadband an choice will not have come amoment too mixture of 4:3 and specially shot 16:9
affordable reality for the majority of the soon, but what worries them is the trade- material, leaving viewers to decide how to
British population, the future of television off in picture quality. When video technol- watch the individual programmes.
may well be apick-and-mix affair where ogists have spent the last forty years
you choose what you watch and when you adding colour to television, improving the OBNOXIOUS
view. definition from 405 to 625 lines, then CROPPING
Forget Sky Channel's feeble offer of bringing us 100Hz refresh rate screens and Another example was a classic
"your own private television station"; it's DVD discs with undreamed-of clarity, why Wednesday Play, On the Eve of
far too expensive and your actual choice is do we now look like jettisoning this state Publication by David Mercer. It was made
quite limited. The reality is that very soon of near perfection in favour of jerky, in 1968 using the standard 4:3 ratio but
you will be able to take your pick of the smeary images? was cropped to 16:9 ratio when re-
world's television programming at little or Bandwidth is the problem according to screened in 2003, creating acomplete loss
no cost, along with avast selection of pay- some, although the latency or unpre- of artistic composition. Says Andrew,
per- view offerings of specialist interest dictable delivery speed of packet-based "This is the same sort of butchery which
(not just XXX material!). networks like the Internet is another. But was inflicted on many early cinema clas-
For a realistic price you'll be able to what really infuriates "serious" viewers is sics that were re- issued in the 1950s and
catch up on programmes you missed (as the "digital vandalism" that the program- 60s in "widescreen" versions.
you already can on the BBC radio website) mers themselves are inflicting on viewers. The film cropping practice has mostly
or raid the BBC archives for classic pro- stopped, but its use in television is amen-
grammes of the past. Once this takes off, CARE AND ATTENTION ace to be discouraged. To add insult to
you can expect many other providers offer- Television historian Andrew Henderson injury, there is afunction on some digital
ing films, music videos and other material takes issue with the BBC over the way that receivers that crops 16:9 to 4:3 by chop-
for download. widescreen vandalism is slowly creeping ping off the sides. A viewer watching the
An example of this "niche program- over all broadcasts of older programmes. Mercer play in this manner would proba-
ming" is TVBrick, an Internet-based sys- He cites the Corporation's long overdue bly have lost 50% of the original image,
tem designed to help Japanese nationals repeat of the 1964 series The Great War as effectively watching a small area in the
overseas keep up with the favourite TV an example. centre of the original image."
shows from home. It was launched in July He states: "The complete series has Why the BBC feels it essential to re-
by French open- source software company had the original picture pointlessly work these old programmes into 16:9 for-
Nexedi and although some critics claim it cropped to a new bogus "widescreen" mat is beyond Andrew, since only asmall
represents copyright infringement on a version. Effectively the top and bottom of minority will want to watch something as
massive scale, the scheme sounds perfect- the image have been selectively trimmed obscure as an old 1960s play. These of all
ly defensible. off, to suit the new "improved" 16:9 pic- people are the ones for whom authenticity
It works like this. At home, in Japan, ture ratio. By doing this, roughly a third is most crucial, making the BBC's action
subscribers (yes, it's a paid-for service) of the original picture is removed and the both wasteful and obnoxious.
connect their TVBrick to the Internet via definition and picture quality deteriorates He concludes, "If you are equally
abroadband link ( the box is also connect- to a point far worse than the original angry about the current conditions, please
ed to atelevision aerial or cable TV out- broadcasts. complain to the BBC. The complaints
let). At their overseas location users Why was this thought necessary? This might be in a minority, but the issues
watch the digitised programmes either on revisionism berates the memory and involved will eventually affect the major-
a standard PC, connected by broadband, achievements of the cameramen who ity. The situation may possibly even
or on television using astandalone play- risked their lives to provide priceless change for the better, but let's pray it
back adapter called the TVBrick Player. footage. It also insults the hard work of the doesn't get worse."
£6
• Automatic component identification HP') t
_
,1
-
Pinout identification
Transistor gain measurement Diode F--otect
Semiconductor Analyser MOSFET gate threshold measurement
between C-E
(Model DCA55) 1:K prit e Resistor shunt
PN junction characteristics measurement betueen
'` \
e3
•
Cheek and • Shorted Junction identification
Current sain
Transistor leakage measurement Hf e=12E
identify •Just cennect the part anyway round and 4E 11 man tf.
• cemen
your semis press the button! hi—Ur MOSFET
• Auto power onioff
hold
Bipolar transistors, "It's the kind of
Darlington transistors,
Diode protected transistors.
instrument that LLI
PEAK ENJOYMENT
* LETTER OF THE MONTH * Dear EPE,
Ido like your magazine. Would you believe
SERVOS AND PICS running in response to the switch inputs, i.e. to just over ayear ago, if someone asked me what
Dear EPE, switch to adifferent servo sequence. is the difference between aresistor and atran-
There have been several queries recently in On a wiring-up note, servos have three sistor, Iwould not have known what they were
Readout regarding PICs and R/C servos. Last wires, positive, ground and a control signal talking about. Only because Iwas confined to
year Ibuilt my first PIC project. It used a feed. Iused aseparate supply (four recharge- bed for atime and your mag was just something
20MHz PIC16F877 to simultaneously control to read, Inow find Ican build little things from
able batteries) for the power feed to the servo
eight R/C servos as well as sensing four push- for the positive and ground connections, and your pages that work. OK, Ionly copy and do as
button switches. It is probably worth sharing the another for the PIC supply (aPP9 battery with it says in the article and send off for the parts
knowledge that Iobtained in doing this project, a5V regulator), so that the heavy load and any and circuit board and put them together, but oth-
and the assembler code routines that drive the electrical spikes from the servos did not affect ers think Iam clever.
servos. the PIC. The control signal only needs asmall Ido like your Teach-1n 2004 as well. Now I
The key points to understand when driving current and can be driven directly from the am beginning to understand what all those little
servos are as follows: PIC output ports, the eight Port B outputs in things Iput together do. Thanks to Max Horsey,
Each servo needs to be refreshed with apulse my case. who puts it in nice clear English. Capacitors got
about 50 times asecond, so the main loop in the Finally, if you are sensing pushswitches you me for a while as Ikept sending them back
program must not take longer than 20 millisec- need to debounce them. A good way is to because they had the wrong letters on them,
onds. The pulse has to be of aprecise length check on two consecutive times round the until Isaw in your mag how to read them.
between Ims and 2ms that defines the servo main loop that the value is still the same as it I've also bought aPeak Atlas Transistor Tester
position ttypically 1ms gives one end of the was last time. from an advert in EPE, and its a lovely little
servo movement range and 2ms the other end). In my case the servos controlled the hip and thing, so simple and now Idon't have to search
A simple delay loop can be used to time the knee joints on a4- legged walking robot that around to find out what sort of transistor or
pulse duration between switching the pulse on made it to the heats of Techno Games, but diode Ihave. Iwill get the Atlas LCR Meter
and switching it off (by setting the relevant Port there will be lots of other applications where next.
bit on and then off after the delay). sequencing or animatronics need asimilar bit Meanwhile Ihave been searching the web and
If you send at worst case a2ms pulse to each of functionality. came across The Educational Encyclopaedia
of eight servos one after each other this takes The code was developed using the FED PIC at http://pandora.beteducypediatelectronics/
16ms, so you have 4ms ( or 20,000 machine assembler and was run initially on a FED motorstep.htm, which might be of help to your
instructions) left to do anything else you want, development board, but should be easily made readers as asource for more information.
such as, in my case, sensing the switches. If you to work with other development tools. Idon't Peter Mars, via email
send ashorter pulse than 2ms, you should wait claim the code to be optimised or perfect, after
for the remainder of the time so that the overall all it was my first PIC project, but it works just Great to read such words of enthusiasm from
loop speed stays constant. fine, and might just save readers afew months you, Peter! Yes, electronics is fascinating.
If you want to move the servos in adefined working out how to drive those servos. Thanks too for the address. All the very best for
sequence you need alist of positions for each Iam happy for you to put the code on your your continued enjoyment!
servo, so Ihad eight tables with up to 20 items web site. It is supplied as assembler file
in each. In my code there is aroutine that con- robodegl_MPL.asm. UV SENSING
verts the one byte servo position field into the David Hannaford, Henley-in-Arden, Dear EPE,
relevant length pulse. With aone byte field we via email Referring to the Cloud Cover letter in
get 256 possible servo positions, or better than Readout Nov ' 03, some years ago. there was an
one degree of positioning accuracy. That looks very usefid, David. I'll put your article in the "amateur scientist" column of
To adjust the speed of movement of the ser- code in the PIC Tricks folder on our Scientific American regarding atmospheric haze.
vos you need to control how many times you Downloads page. Many thanks for sharing it The sensor used was agreen le.d, instead of a
use avalue before you move onto the next one with us. photo-cell plus filter combination (an idea attrib-
from the relevant table (with each time taking And congratulations on attempting some- uted to Forrest Mims).
one fiftieth of asecond). In my case this is vari- thing so sophisticated for your first PIC pro- Since it is now possible to get violet plus
able using the speed-up and slow-down switch- ject. Ihave long maintained that one of the near- UV I.e.d.s (I got mine from Oatley
es. This, however, can give asomewhat jerky best ways to learn something is to get stuck Electronics, who're alittle bit like Proops Bros
movement on the servos as it jumps from one into an idea that you want to achieve, and —http://oatleyelectronics.com/) perhaps asen-
position in the tables to the next. If you want sor for UV would not be too far-fetched (it
solve each step along that route as aseparate
smooth movement you need to interpolate item, experimenting with various options until might need two 1.e.d.s with one hiding behind a
between the values in the table, which is what you find aworkable solution. photographer's "UV-0" filter — easier than cut-
the interpolate routine in the program does. At the end of the day, it doesn't matter ting a piece of Wood's Glass as found on the
The servo lists were set up dynamically, whether your code is "optimised" or not. If a "blacklight" fluoro tubes at the local disco).
rather than as initial constants, and this allows does the job you want, then it's asatisfactory Iliked your Met Office ( Aug/Sep ' 03), but I
them to be changed at will while the program is method! didn't see away of dealing with real rain (I've
seen 0-5metre/hour rate when visiting the "out-
laws" in Queensland. Forget the raincoat!
WONDERFUL WEATHER! consider craft the right word, as opposed to, say, Where's the soap?). It didn't look like the ultra-
Dear EPE, work or science, as most electronic projects are sonics were protected from golf- ball hail
A wonderful project! Again. The multipurpose designed to meet a specific human need and either. .. much fiddling for retirement methinks,
weather station. PIC Met Office Aug/Sep '03. is a therefore require abit of human design strategy but agreat concept nonetheless.
challenge any craftsman would be glad to tackle. to be widely accepted. A project created by a Brian Conner, Australia, via email
The use of transducers as opposed to mechanical craftsman is the combination of art and science
vanes is agreat addition to aweather station, and with amix of love thrown in for spice. Ah, Brian, Iremember Proops in London — a
should make current condition reporting on the EPE is amagazine for craftsmen by craftsmen. real Alladin's cave in my youth! Your rain and
ham radio network less cumbersome. Dave Mynatt, Manchaca, Texas USA hail situations amuse me (am Icruel?!). No 1
Imust say, after being a reader for such a didn't allow for extremes, though Isuppose the
short time, that your projects and special discus- You are so kind Dave! Idesign because Ilove water barrel level sensor might do for the deluge
sions are quality work adding greatly to the the challenge, and that seems to be the case with (I experienced such in Malaya as achild).
knowledge base and enthusiasm for the craft. I most of our contributors these days. Thanks for the kind comments.
Duly passed on. Brian, thanks! Carry on PIC CAR ALARM? EDDYFYING!
PICing. . Dear EPE, Dear EPE,
My latest EPE, as ever, is ajoy to read, and In response to the Wanted! posting in Readout
PUNCHED TAPE more often far better than television too! Could I Dec ' 03 — any electrical engineer could tell you
Dear EPE, put asuggestion forward for some later projects that Eddy Current is adissipated fellow.
Do you remember punched paper tape? Seems which may have other uses outside the regular Guy Selby-Lowndes,
useless now. It took one-tenth of asquare inch ideas in EPE. via email
just to hold asingle byte. Think how much mem- Iwas wondering if using PICs it may be pos-
ory is crammed into the same surface area on a sible to make atwo-part car alarm that trans- Nice one, Guy! I've no idea who originated
silicon chip! mits to a receiver several metres away (e.g. the posting, but we do have afew 'jokers" on
But there is apossible use. The holes fall on inside ahouse) to let you know if someone is our Chat Zone . . .
the 0-1 inch grid of common components and stealing your car, triggered from the ignition (Which is accessible via the click-link on our
stripboard. Would any reader like asmall sample switch perhaps? home page at www.epemag.wimborne.co.uk).
G
ENERATING power for electronic cir- situations that may be encountered. In addi- The cell consists of two electrodes sand-
cuits and protecting them from surges tion to this it incorporates temperature wiched around an electrolyte. Oxygen
and failures that may cause greater prob- sensing elements as well as human body passes over one electrode and hydrogen
lems are two challenges facing designers model ESD (Electro- Static Discharge) over the other to generate electricity, heat
of electronics circuits today. Whilst they clamps, see Fig. 1. As static is amajor cause and water. Catalysts such as platinum are
may not appear to hit the headlines in the of failure this is particularly important. used to increase the rate of the reaction,
same way as other semiconductor develop- All the elements of the protection and therefore the output that can be
ments, they are equally important. circuitry auto-restart once the failure obtained from each cell.
condition has been removed. However, the The problem with fuel cells is that they
Sources of failure other feature that needs to be considered in are generally quite large for the level of
One of the major causes of failures in any protection device is the in-rush current power they are able to generate when com-
electronic circuits is high voltages reach- that is present on any circuitry that con- pared to most batteries. A typical mobile
ing them. Even what might be thought of tains capacitors as these need to charge up. phone for example requires about 3.6 volts
as relatively low over-voltages can cause Motors also have a high start-up current at around 300mA when a call is being
damage. and this can also be accommodated. made and the space available in a phone
One possible cause of failure may be a With small over-voltage or over-current for the power source is much less than 12
spike passing through the supply regulator. situations potentially leading to damage, cubic centimetres. Even this figure is
In the worst instance this might be afailure circuits like this one are part of the drive to falling as phones become even smaller
of the regulator and, although rare, the improve reliability, especially in the higher However, the output of afuel cell is pro-
consequences of afailure of this nature are voltage applications between 30 and 100 portional to the surface area that is avail-
catastrophic, resulting in most of the chips volts. Accordingly, this area of the market able for the reactions to take place within
being supplied by that voltage line being is likely to see alarge increase in demand. it. To produce acurrent of 300mA would
destroyed. require a surface area in excess of 60
It is also possible for smaller spikes to square centimetres, and this would mean
appear on the supply rails. They may that the cell would be much larger than the
result from spikes on the a.c. power line space available in the phone.
input that bypass the regulator, or they OVER Vt.
PRO7
, To overcome this problem a team of
may arise from static being discharged researchers at ST Microelectronics has
onto some part of the circuitry and getting developed a new structure than enables a
through onto the rails or other parts of the much higher surface area to be contained
circuit. within amuch smaller volume.
OVER COVENT.p
Short circuits may occur. If left without FOAM IICOY KOTECTDON This has been achieved by implement-
any protection ashort circuit will not only ing athree dimensional structure contain-
I
pnarucno“
damage as the short could cause an over- area for the gases, the catalysts, and the
load elsewhere in the circuit. electrodes.
The research team also succeeded in fab-
IntellIFETs Fig. 1. Internal circuit blocks for the ricating a special "nanoporous" layer of
Naturally there are many integrated cir- Zetex IntelliFET protection device silicon that contained millions of pores
cuits on the market these days that very each measuring afew nanometres in diam-
effectively perform the basic protection eter. The combination of the very small
functions. One of the problems with "off New fuel cell developments pore size with the vast number of pores
the shelf' solutions is that it is very diffi- Battery technology has come along way enables very much greater surface areas to
cult to gain abalance between over-current in recent years, but amore efficient way of be achieved, and this is the key to increas-
and over-voltage situations. Although they generating electric power can be by using ing the output from the cells. Additionally
considerably improve the survivability in what is called a fuel cell. As the name the research team is working with the
most transient situations, they cannot pro- implies these cells convert their fuel into University of Naples to develop innovative
tect against all the situations that may electrical energy. As the fuel may be very low cost membranes that exhibit very high
arise. In addition to this, most of the cheap, and the cells can be re-fuelled this levels of conductivity.
devices that are available are aimed at the can be avery attractive way of powering Although it was stated that there is still
automotive market and they are not opti- electric circuits. In fact these cells can be further work to be undertaken to bring
mised for other situations. re-filled just like refillable cigarette these ideas to a state where they can be
To overcome this problem, Zetex have lighters. used in acommercial product, the team are
introduced a range of devices they call In recent years fuel cells have created a very excited about their potential. It is like-
their IntelliFET range. The chips in the large amount of interest because they ly that in years to come, products could use
product range are semi-custom devices, promise to provide aconvenient source of this technology to provide cheap and con-
programmed in the final mask stage of the cheap clean portable energy. venient sources of electricity without any
production process, and in this way they The fuel cell uses oxygen that can be undue impact on the environment.
can be set to suit the application for which obtained from the air around us and afuel Further information about new technolo-
they are intended. containing hydrogen, often in the form of a gy, and radio and electronics technology in
The chip is able to protect against the hydrocarbon and this may be anything from general can be found at www.radio-
standard over-voltage and over-current methanol to natural gas, or even petrol. electronics.com.
OU
• • ;,• .1 • •
3• 8r
Experiments Idees for CMDAC1
... mi... ...lb • a. 01.•••••110110.011•••• ..1•••••Mal..)
Output
• broo.r.01110.41.0 Ce./•• mum» M. feel«
.per r. ware ...rim monde. Ylmtalim
• ule @Item. corfow. Is Ma elr plolleSeetre Malmo
Resistance
téneforre•.«10., buylier erbe Ile byway mown«, rd.
•• r MM. dIrere
** Dear/ VI* • emorel *Me «lb ...Mu lerlarlme.....“9,0.11140.
N MI ~man Ube •1.1.111•M•••• anlilverwro . 1ern...Mr« wedmr.
'norm
graurl «Wilma «Im1111011.01ffleilln yreramarairorn
..eretn•e•••••••••••••••••••••••••••teeemeemermssi•••••••••••••
L.00&1*DW0**(a*4I0C0S C.1.10411.
r %se le«.11.11.1
voltage
▪ Sue Tanimeomer.Oregraho.e...
soimosta••••••••rtac•fflootenime eteemeteneermum
Moult limerole,•••••• Inemlue..01. • • e 61,10.0•1“181•
Temperature
NI••••••••••••••••• Ce.10••••••••
teetrermrsmiss.••••••••••imr ''••• ••• •
Microphone
External sensors: Humidity
• Low coshr, un
„ der £ 60
Temperature
• Built in sensors for light, temperature and sound 02 In Air
(level and waveforms) Reed Switch
• Use DrDAQ to captiire fast signals
• Outputs for control exp'eriments
• Supplied with both PicoScope ( csciloscope) and
PicoLog ( data logging) software
www.picotech.com/drdaq781
PC Oscilloscop s
• Scope and spectrum ealyser functions
• A fraction of the cost of benchtop scope
• Save multiple setups, for ease of use
• Save, print and e-mail your traces
• FREE techrLcal support for life
•
irLSZS
n
• cc, • FREE software and upgrades
piCC,
eimmeree•Ken
• Automated measurements
•
•
00000 térë-2/ 2
Virtual Instrument
• 11 «,.....• .1:: .: ..
• .... Me .71 .
,..../Ief_.,.e.
0. .,...••••".
O
For more information on our scopes, please visit:
PIC WATERING
TIMER
LES CLARKE
Keep your plants in pristine condition summer gets warmer (and the "perfect"
tomatoes get bigger!) and, of course, make
before you PIC them! sure that the water is on tap. Good
drainage too is essential to allow for any
over-watering. The compost's moisture
T
,,,, timer module is designed around GARDENERS' WORLD should be checked occasionally.
aP1C16F84A to control amotorised
water valve providing an automatic It is stressed that this timer and its control CIRCUIT DESCRIPTION
low pressure watering system for agreen- valve are not intended for use on household The complete diagram for the PIC
house or garden. With little modification it mains water. It is designed to control the Watering Tuner is shown in Fig. 1 . The
can be used to control other devices. water feed from alow pressure rainwater PIC16F84A microcontroller, ICI, is
One of the author's first ever electronic butt and should only be battery powered. clocked by a standard 32768Hz watch
projects was an 1.e.d. clock (which he Having dabbled with ad.i.y. "automat- crystal, X1 , which is used in conjunction
admits was badly soldered onto strip- ic" watering system for a small green- with capacitors CIand C2.
board!). It used amains frequency counter house, the author found that he regularly The module operates as a24-hour clock,
type i.c. driving four seven-segment dis- had to override the moisture sensor circuit. set with programmable timer options
plays, and probably consuming acouple of For some reason it was very difficult to entered by acombination of the four push-
amps. adjust, then just as he thought he had got it to-make switches, SI to S4. These are
Consequently, one of the design con- right he discovered that the copper soil monitored via PIC pins RAO to RA3.
straints for this PIC Watering Timer probes had decomposed! Water valve (X3) open and shut testing is
module was for it to run on batteries with This timer module now waters his provided by temporarily connecting pin RA4
low power consumption. The prototype greenhouse tomatoes at regular intervals to the OV line via test points TP1 and TP2.
consumes only 1.7mA, mostly drawn by regardless of the gardener's presence. The PIC pin WL-1( and the five Port A pins
the 1.c.d. It has also proved to keep time only adjustment needed to the circuit is to are normally biassed high via the
well. lengthen the "wet" time bit by bit as the resistor module R2 to R7.
DI
186061
R2 TO R7 *
566 7
DO
8
DI
* SEE TEXT 9 X3
D2
10
03
4 6
MCLR PBS 04 X2 15nvn WATER
SI LC D ISOLATION
7 7 12
1X16 VALVE
RAS RBI D5
18 8 3 MODULE
B " r RA1 R82 06
12V S2 I
14
RA2 RB3 07
2 4
RA3 RB4 WHEN VALVE
RS
IS CLOSED S5
3
BS E SHOULD BE OPEN
4 P?Cl16F84
I
R
R E16 S5 : 0 NC
S4 —
T-
3
4-0 0 RB7
130
N C NORMALLY CLOSED
C1 P POLE iCOM)
12p N 0= NORMALLY OPEN
TEST
STRAP
OSC
r--
OSC2
is
ONO
32768i1i
OV
X3
TO GEARED
MOTOR
2 4 6 8 10 2 4 16 19 20 22 2•
1 3 5 7 9 11 13 15 17 5921 23 2>
P2 TO R7 +6V B2
LCD D6 +4/—
D7
RS 6. ?Al -VE
N
+4—••••-•
0 k
CX +444.—• **-01.- -01 -132
(CV)
RA7V •111
I 2 3 4 5 6 7 8 13 vi 12 13 14 15 16 17 18 15 2021 22 23 24 29
O IMM• • 0 0 • 0 • • 0 0 0 • 0 0 0 0 0 • • 0 • o
N • 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 • 0 0 0 • 0 o • 14
• 0 0 0 0 0 0 0 0 0 0 0 0 0 • 0 • 0 0 • 0 0
• 0 0 0 0 0 0 0
MOTOR V
0 0 0
+12V 81
• 0 0 0 0 0 0 0 0 0 • 0 • 0 0 0 0 0 0 0 0 0 0 •
• 0 0 0 0 0 • 0 0 0 • 0 • • 0 0 0 • 0 0 0 0 0
H EKE • • 0 0 0 0 0 • • 0 • 0 0 • 0 0 0 0 0 0 0 H
G 1:1:X:EICI
I. 0 • 0 0 • 0 • • 0 0 0 0 •
•
ICICKX• • 0 0 • 0 0 • 0 • • 0 0 0 0 •
E • 0 0 0 0 0 • 0 0 0 E
D • 0 0 0 • 0 0 0 0 0
•11 - .1:11M
• 0 0 0 0 0 0 • 0 0 0 0 0 0 0 0 0 0 0 • 0 0 0 0 • B II
SE O
A 0 • 0 0 0 0 0 • 0 0 c 0 o 0 0 0 • • 0 0 •IMECCI A
Fig.2. Sthpboard component layout, underside copper track breaks and wiring details to off-board components.
Resistors
R1 10k 0-25W
See
5% carbon rD n e
film
R2 to R7 7x5k6 sil. TALK
resistor page
module (see text)
Potentiometer
VR1 10k 15-turn trimpot or
min. round preset
(see text) Fig.3. Motor and valve linkage and switch-
ing arrangement. A close-up view of the
Capacitors microswitch actuator lever and plastic
Cl, C2 12p ceramic disc, 5mm MOTOR AND WATER VALVE operating cam is shown above.
pitch (2off)
motor drive shaft engaged in the slot and The tuner allows the water valve to open
Semiconductors
secured. only during the active Window, its mini-
D1, D2 1N4001 rectifier diode
You may find a plastic isolation valve mum setting is one hour. The duration of
(2 off)
requires less force to move but sometimes the valve's open period is variable between
TR1 TIP120 npn Darlington
transistor they have adifferent tap arrangement and one and 30 minutes. The valve opening fre-
IC1 PIC16F84A-04 may be difficult to mount. A second manu- quency can be once every hour to amaxi-
microcontroller, al valve or tap used prior to the motorised mum of once every eight hours.
pre-programmed valve is also useful. These options give amaximum range for
(see text) The isolation valve has two Off (verti- the valve's open time of 30 minutes every
cal) and two On (horizontal) positions for hour (possibly alittle wet) and aminimum
Miscellaneous each rotation. To simplify construction, of one minute once aday. Default settings
S1 to S4 min. push-to-make switch only one closed and one open position are are stored in the PIC's non-volatile data
(4 off) ( 1red, 3black used and the others are ignored. The motor memory.
buttons) should only stop at either of the two On power-up, the settings are recalled,
S5 min. microswitch required positions. the valve is shut off. the Window made
X1 32768Hz watch crystal Note that diode D2 must be connected inactive and the current time set to 12:00.
X2 1-line 16-character I.c.d. across the motor's power terminals, cath- Simultaneously, the 1.c.d. is configured and
module (see text) ode ( k) on the positive side. the other registers are initialised. The
X3 Water isolation valve
screen display then cycles for eight sec-
(see text)
PROGRAM OPERATION onds, showing the various settings.
M1 small 12V geared motor
The P1C's timing operation is under con- The sequence is as shown in Table 1, in
(see text)
trol of Timer 0 (TMRO). In conjunction which "X" indicates that time setting is
with its prescaler, an interrupt is generated required, and "S- indicates that the valve is
Stripboard, 15 strips by 25 holes; plas-
tic case, transparent lid, 112mm x62mm at arate of 1Hz. At each interrupt, counters shut.
x31mm; 4-way terminal block; 6V battery are incremented as appropriate for the sec- On each interrupt, the time is updated
(see text); 12V battery (see text); materi- onds, minutes and hours, on a 24-hour and displayed, the colon blinking syn-
als for cam, valve and motor mounting clock basis. chronously. Checks are made of the
(see text); connecting wires; solder, etc. At each hourly increment, the software switches and the Window settings, and
checks whether watering should be turned action taken accordingly. Note, though,
Approx. Cost on at that time. The watering period ( from that when power is being applied to the
Guidance Only £16 hereon referred to as the "Window") is pre-
viously set by the user via switches Si to
motor, under control of PIC pin RB7, the
excl. motor. valve & batt. display is only updated after the motor
S4, as described presently. has stopped.
The valve position is also shown, as "0" 3rd OPEN VALVE MISSED
(open) and "S" ( shut). Pressing switch Si SET UP 1st OPEN VALVE 2nd OPEN VALVE FOR THE FIRST CYCLE
W - - 09>18 IS 08:45
Fig.4. Typical setting up sequence.
The second screen shows atypical dis-
play following set-up, but after the
Window start time. It shows the current power applied, the valve can be opened and a 4-hour Frequency will give three
Duration and Frequency, with "A" for and shut via switches Si and S2, openings, with one hour remaining when
active Window, "S" for shut valve. The "*" respectively. the Window becomes inactive. The next
symbol indicates that the valve will acti- At this time, the position switch S5 can Window will start the Frequency over
vate at the next hour change. be adjusted so the valve is left in the cor- again.
rect position when the motor stops. Also note that if a valve opening coin-
C - - 05@lh AS*11.45 Powering down is the only exit from cides at the end of an active Window, the
Test mode. Window is made inactive first so the
During normal active Window opera- expected valve opening will not occur.
tion, the Duration and Frequency count- IN USE Setting the active Window to end at 24:00
downs are prefixed by "C" (current status). After testing and adjusting valve and hours allows continuous operation as the
At the beginning of each hour the switch operation, the unit can be put to hour's register never reaches this number.
Frequency is decremented. At zero, a work. Judge what active Window, Duration Interestingly, setting the active Window to
Duration timer is started, the motor is start- and Frequency will suit your needs/envi- start and end at the same hour makes the
ed, the valve opened and the screen updat- ronment. Start with short wet times and timer Window activate every other day!
ed to show an active Window status. build up.
When microswitch S5 is activated by the Setting up is best done outside the active RESOURCES
motor's rotation. the software turns off Window, then the first day's Frequency The PIC software for the PIC Watering
transistor TR1, and so stops the motor will be correct. If setting up is done after Timer is available from the EPE Editorial
drive at the correct open spot. The motor is the active starting hour, the Frequency will office on 3.5in disk, for which anominal
re-energised to shut the valve after the pro- start with the valve opening on the next handling charge applies — see the PCB
grammed period. hour, see Fig.4. Service page. It is also available for free
Bear in mind that when an active download via the EPE homepage at
TESTING Window is started the Frequency count is www.epemag.wimbome.co.uk; select the
\\ith a link connected temporarily also started, over-riding any unused set- Downloads path, and then enter the PICs
between test points TP1 and TP2, and ting, i.e. setting a 9-hour active Window folder.
We can supply back issues of EPE by post, most issues from the past three years are avaieable. An EPE index for the last five years is also available at
www.epemag.wimborne.co.uk or see order form below. Alternatively, indexes are publishec in the December issue for that year. Where we are unable to
provide a back issue a photocopy of any one article (or one part of a series) can be purchased for the same price. Issues from Nov. 98 are aveable on CD-
ROM - see next page - and issues from the last six months are also available to cownload from vomw.epemag.com. Please make sure all components are
still available before commencing any project from a back-dated issue.
£14.45 each
including VAT
and p&p
A great way to buy EPE Back Issues — our mini CD-ROMs contain
back issues from our EPE Online website plus bonus articles, all the
relevant PIC software and web links. Note: no free gifts are included.
All this for just £ 14.45 each including postage and packing.
VOL 8: BACK ISSUES — July 2002 to December 2002 Please send me ( quantity) BACK ISSUES CD-ROM VOL 5
II Please send me ( quantity) BACK ISSUES CD-ROM VOL 6
VOL 9: BACK ISSUES — January 2003 to June 2003 IPlease send me ( quantity) BACK ISSUES CD-ROM VOL 7
Please send me ( quantity) BACK ISSUES CD-ROM VOL 8
fPlease send me ( quantity) BACK ISSUES CD-ROM VOL 9
NOTE: These mini CD-ROMs are suitatAe for use on any PC with a 1 I
CD-ROM drive. They require Adobe Acrobat Reader ( available free i £14.45 each - includes postage to anywhere in the world f
APrce
from the Internet - www.adobe.com/acrobat) f f
1 Name I
WHAT IS INCLUDED I I
I i
All volumes include the editorial content of every listed issue, plus iAddress 1
all the available PIC Project Codes for the PIC projects published I I
in those issues. I I
I I
Note: Some supp.ements etc. can be downloaded free from the I I
Library on the EPE Online website at www.epemag.com. i Post Code 1
No advertisements are included in Volumes 1and 2; from Volume 5 f f
f f
onwards the available refevant software for Interlace articles is i fj7J Ienclose cheque/P.O./bank draft to the value of £ I
also included. f 1
iE Please charge my Visa/Mastercard/Amex/Diners Club/Switch f
EXTRA ARTICLES - ON ALL VOLUMES f f
f £ 1
BASIC SOLDERING GUIDE - Alan Winstan'ey's internationally
f i
acclaimed fully illustrated guide. UNDERSTANDING PASSIVE COMPO-
f f
NENTS - Introduction to the basic principles of oassive components. fCard
Caro. f
HOW TO USE INTELLIGENT L.C.Ds, by Julyan Ilett - An utterly practi-
cal guide to interfacing and programming intelligent liquid crystal display Card Security Code (The last 3 digits on or just under
modules. PhyzzyB COMPUTERS BONUS ARTICLE 1 - Signed and f the signature strip)
Unsigned Binary Numbers. By Cive " Max" Maxfield and Alvin Brown.
PhyzzyB COMPUTERS BONUS ARTICLE 2 - Creating an Event Expiry Date Switch Issue No.
Counter. By Clive " Max' Maxfield and Alvin Brown. INTERGRAPH
COMPUTER SYSTEMS 3D GRAPHICS - A chapter from Intergraph's SEND TO: Everyday Practical Electronics,
book that explains computer graphics technology. FROM RUSSIA WITH Wimborne Publishing Ltd.,
LOVE, by Barry Fox - Russian rockets launching American Satellites. 408 Wimborne Road East, Ferndown, Dorset BH22 9ND.
PC ENGINES, by Ernest Flint - The evolution of Intel's microprocessors. Tel: 01202 873872. Fax: 01202 874562.
THE END TO ALL DISEASE, by Aubrey Scoon - The original work of E-mall: orders@epemag.wimborne.co.uk
Rife. COLLECTING AND RESTORING VINTAGE RADIOS, by Paul
Payments must be by card or in £ Sterling - cheque or bank
Stenning. THE LIFE & WORKS OF KONRAD ZUSE - abrilliant pioneer
in the evolution of computers. A bonus article on his lite and work written draft drawn on a UK bank.
by his eldest son, including many previously unpublished photographs. Normally supplied within seven days of receipt of order.
I Send acopy of this form, or order by letter if you do not wish to cut your issue.
Note: Some of the EXTRA ARTICLES require W:nZip to unzip them. I. J
We can help you learn PlCmicro program -fling and also This low cos - develooment board is suitable for both Flowlog electionics workbench is the perfect platform to
hep you teach PICrnicra programming to others. We learning how to progam CPLDs as well as for allow you to oevelop electronic projects and learn
provide a number of training days each kern in: developing C:PLD based projects electronics. When connected to your PC it will provide
you with:
Introduction te PlCmicro and flowchart Suitable for programming and
prograrrming developing CFLD projects 5V power supply ( 500mA)
Programming PeCnicros in Assembly Free development software from Altera* 2 channel analogue scope
Programming PlCmicros in C Includes an Altera 7000 series device 4 channel digital ' scope
Each day includes 7hands-on hours of training, and full Includes sample projects Software fer datalogging and control
support materials to allow you to continue lez.ming at
home. 'requires broadband internet connection Prototype board and metal backplane
please see our web site for full details of all products and training days and for free resources
next time you are online take aquick look at: Matrix Multimedia Limited
sales@matrixmultinnedia.co.uk
www.matrixmultimedia.co.uk t. C870 700 1831 f. 0870 700 1832
These inverters generate amodified sine wave, which are co -isiderably superior to the square waves which are produced by most
other inverters. DLe to this superior feature they are capable of powering electrical equipment such as TV,s, videos, desktop
& notepad compulers microwave ovens, electrical lamps, pumps, battery chargers, etc.
Low Battery Alarm
The inverters give an audible warning signal when the battery voltage is lower than 10.5V (21V for the 24V version). The inverter
automatically shuts oft when the battery voltage drops below 10V (20V for the 24V version). Fuse protected input circuitry.
Competition
DIGITAL CAMERA
DSCP72 (worth £279)
2nd
Think of an application for the Lascar
Electronics FPSI 1010 module and you could Prize
e
win one of these great prizes. LOW
ALARM!:
01,.
1118111111181118811181111111481111
3rd
switch between bright red and green
at two separate user programmed
levels. Once defined by the user, the
setup information is stored in Wash
memory, which can be programmed +OV OV VIM STORE
as often as you like. -- Prize
The FPS1 Series can be used in countless applications, especially where a
simple, universal "GO/NO GO" indication is required.
In association with Lascar Electronics Ltd, Everyday Practical Electronics is
running acompetition to find the best application idea for the new FloPSI
SONY PORTABLE CD
module. We want to hear about all your ideas, from novel uses for the FPSI
1010, to advanced application ideas utilising all of FPSI 1010's features.
PLAYER DEJ885 (worth £ 79)
To find out more about this exciting product download adatasheet from:
LASCAR www.lascarelectronics.com
10
FPSI 1010
To enter the competition all you need to do is fill out the form below and send it to the EVALUATION
address below before February 13th 2004. The 1st prize will be awarded to the reader whose KITS
application suggestion is, in the opinion of the judges, the most innovative and novel idea.
The judges' — drawn from the directors of Lascar Electronics Ltd and Wimborne Publishing
Ltd — decision is final and no correspondence will be entered into. Illegible entries will be
excluded. No responsibility will be accepted for the non- receipt of entries. The names of the All competition entries will be
prize winners will be published in the April 2004 edition of Everyday Practical Electronics. put into aprize draw.The first 10
Send to Everyday Practical Electronics, FLOPSI Competition,
to be drawn will receive an FPSI 1010
408 Wimborne Road East, Ferndown, Dorset BH22 9ND Evaluation Kit (worth £40)
Company ( if applicable):
Address .
Tel:
Email:
PRACTICAL
RADIO CIRCUITS
RAYMOND HAIGH
Part 8: A double-conversion superhet receiver for the SW bands
Circuits for the set budder and experimenter 455kHz i.f. transformers. When greater
selectivity is required, acrystal, ceramic or
mechanical filter is built into the U. ampli-
L
AST month's article covered the the screened-grid valve, measures that per- fier. Low frequency final i.f.s have fallen
advantages and drawbacks of the mitted amplification at high frequencies, out of use.
superheterodyne (or superhet for i.f.s of around 100kHz persisted for
short) receiver. A design for amixer/oscil- another decade. FILTERS
lator unit with a 1.6MHz intermediate fre- Second channel interference problems Crystal
quency (i.f.) output was described. Raising (see Part 7) intensify as the i.f. is lowered The first filters relied upon the piezo-
the if. to 1.6MHz, instead of the more and/or reception frequency is raised, and electric nature of quartz, and the way
usual 455kHz, reduces susceptibility to manufacturers began to adopt the now slices of this crystalline material can be
second channel interference, the major standard i.f. of between 450kHz and made to resonate, very sharply, at radio
defect of the superhet. 470kHz. The growing demand for domes- frequencies.
This final part deals with the intermedi- tic sets with shortwave coverage no doubt Professor W. G. Cady exploited this
ate frequency amplifier, which provides contributed to this development. phenomenon, for the first time. in 1921,
most of the selectivity and gain. Teamed Despite the higher i.f., valve superhets when he used a slice of quartz to control
with last month's 3-Band SW Superhet with two, double-tuned i.f, transformers the frequency of an oscillator.
Tuner/Mixer, it forms ahigh performance were selective enough for domestic listen- During the 1930s, circuits incorporat-
receiver for the shortwave listener. ing. High performance communications ing one or two crystals ( Robinson's
receivers either incorporated acrystal filter crystal gate and the Simmonds-
SELECTIVITY (see below) or had asecond mixer/oscilla- Robinson two crystal filter) were form-
Selectivity increases as the intermediate tor stage that produced afinal i.f. between ing part of high performance receivers.
frequency is lowered. 50kHz and 100kHz. Passbands as narrow as 300Hz (for
Let us assume a receiver with the low Current practice with simple transistor Morse reception) can easily be achieved
i.f. of 100kHz tuned to a station on receivers is to provide three, single-tuned, with this technique.
900IcHz with an adjacent transmitter oper-
ating on 910kHz. Signal spacing is 10kHz
(910kHz minus 900kHz), and the adjacent
station is, therefore, off tune from the
wanted one by amere 1-1 percent. Normal
preselector, or signal frequency, tuned cir-
cuits will be unable to prevent the unwant-
ed station reaching the mixer.
After mixing, the wanted signal will
emerge at the if. frequency ( 1000kHz
local oscillation minus 900kHz signal,
equals 100kHz i.f.). The adjacent station
will, therefore, emerge at a frequency of
90kHz ( 1000kHz minus 910kHz).
Heterodyning has increased the difference
between the signals to 10 percent, and the
tuned circuits in the i.f. amplifier are better
able to remove the unwanted station.
Performing this calculation with an i.f.
of 455kHz reveals adifference, after het-
erodyning, of around two percent. The
improvement with the higher i.f. is, there-
fore, very much less.
EARLY
DEVELOPMENTS
The first superhets had i.f.s below
100kHz in order to ensure stable operation
with triode valves. Despite the introduc- Group photograph of this month's printed circuit boards: Second Mixer/Oscillator
tion, during the 1920s, of neutralizing and I.F Amplifier (top); Signal- Strength Meter (left) and B.F.O./Product Detector (right).
DUAL-CONVERSION
SW RECEIVER
Tuned transformer IFT2 selects the i.f. amplifier across the broad passband of
SECOND 455kHz heterodyne and acts as TR1's the first, in effect shifting the first i.f. This
MIXER/OSCILLATOR drain (d) load. The stage is decoupled by results in abandspread or fine tuning sys-
To secure acceptable selectivity, the RI and Cl. tem that has aconstant rate, irrespective of
1.6MHz output from our first mixer The second oscillator must operate at reception frequency.
(Part 7) must be lowered to 455kHz. 2055kHz ( 1600kHz plus 455kHz). Tuned The fine-tuning rate is preset by VR2.
Constructors seeking higher selectivity circuit L2/C6 determines the frequency of Potentiometer "noise" is eliminated by
will then be able to use one of the 455kHz oscillation and the maintaining device is capacitor CI 1and resistor R6 isolates the
filters already described. The i.f. amplifier TR2, an n-channel field effect transistor. signal circuits from the bias network.
must, therefore, be preceded by asecond Low impedance mixer coupling winding Blocking capacitor C7 prevents the short-
mixer/oscillator. LI minimizes damping on the tuned ing of the bias through coil L2.
The full circuit diagram for the circuit.
Second Mixer/Oscillator is given in Feedback for this Hartley oscillator is FILTER
Fig.8.1. Here IFT1 is tuned to the taken from the source of TR2 and applied Intermediate frequency transformers,
1.6MHz incoming frequency, by capaci- to atapping on L2 via bias resistor R5 and IFT2 and IFT3, ensure an acceptable
tor C2, its low impedance coupling bypass capacitor C9. Supply line decou- match to any of the Toko or Murata filters
winding ensuring acorrect match to the pling is by R4 and C10. listed in Table 8.1. A filter, XI, with atotal
first mixer (See Part 7). bandwidth of 41cHz is recommended for
Signals developed across IFT1 are HANOSPREAD general listening on the shortwave bands.
applied to TRI gate (g), the second mixer, The second oscillator frequency can be Wider filters can be used to avoid side-
the local oscillation being injected at its altered, over narrow limits, by potentiome- band cutting, but selectivity will be exces-
source (s). Biasing of this stage is by resis- ter VR1 which varies the reverse bias on sively compromised if the passband is
tor R2, which is bypassed by capacitor C4. varicap diode Dl. This tunes the second greater than 61cHz.
X1
455KHz FILTER
(SEE TEXT)
TR1 TR2
214381 , 2N38 lO
FINE TUNE
(OUTPUT FROM
SHORT WAVE
VP 1
MIXER/OSCILLATOR
100 ,
UNIT DESCRIBED
IN PART 7)
220p VR2
( i 0 220k
1.6MHz DI
IF INPUT 80105
R6 • C11
100k 4 VIT +
1.1 2N38I 9
il BF244A
o 0 •
*CAPACÍTORS C3. C5, C13 AND C17
o LOCATED IN BASE OF COIL
ALTERNATIVE
sgel
FIELD-EFFECT
TRANSISTORS
gs o 05
ON / OFF
R7
100E:
C1
100n T C23 +
eT0m UM
R15
262
dig
IFT5 229
IFT4 YFICS11100ACLA TO
YHCS1A590R PRODUCT
DETECTOR D4 a
3
2mA
02 R1z; c.21 L.E.D.
OA90 47011 1T6
o
5 it • IF.
R9 2
82k
TH3 TR4
ME SH10 el 91'
.
2,v
7-
A.M. SS.B.
CIF mew
omm
L, 11.1.1. VOLUME
R14
4k7
o
1
TO SIGNAL
1N4148
bec ceb
ALTERNATIVE R.F. TRANSISTORS
Fig.8.1. Full circuit diagram for the Second Mixer/Oscillator LE Amplifier for the Dual- Conversion SW Superhet Receiver.
(See Part 7for the first Mixer/Oscillator stages.)
A.M. OUTPUT TO
SPEAKER AMPLIFIER
VIA S2a AND VR4
OVr
OV FROM BATTERY - VE
CONNECT TO
METAL CHASSIS •--( 1—• 0)/ TO 1ST MIXER/0SC.
iFT2
AT TUNING
OV TO SIGNAL-STRENGTH
CAPACITOR XI METER
EARTH POINT
OV TO B.F.°. UNIT
A.G.C. VOLTAGE TO
VR2 SET BANDSPREAD TUNING RATE SIGNAL- STRENGTH METER TO +9V
VR3 . SET LF. AMPIJFIER GAIN (SEE FIG.8.4) (VIA S1
•76in ( 121.0mm)
Fig. 8.2. Printed circuit board topside component layout. interwiring to off-board components and full-size copper foil master for
the Second/Mixer/Oscillator I.F. Amplifier.
The a.g.c. ( automatic gain control) provide compensation for the silicon conditions, sufficient output is available to
circuit is a little obscure. A chain of com- transistors). drive the detector. The a.g.c. line is
ponents, R9, RIO, D3, RI2 and D2 form a The a.g.c and bias network is connected bypassed by C12.
shared bias network. Including detector to TR3 and TR4 via the IFT's coupling Details of the printed circuit board
diode D2 introduces the signai - related windings. The full a.g.c. voltage is applied (p.c.b.) topside component layout. full-size
voltage variation. Stabilization against to the base of TR3. Final stage TR4 is con- copper foil master and the off- board wiring
temperature changes is provided by diode nected via resistor RIO to limit the a.g.c. details are shown in Fig.8.2. General guid-
D3 ( which must be asilicon component to action so that, even under strong signal ance on construction is given later.
CFG455I 2k 4kHz
CFG455H 1k5 6kHz
UNDERSIDE VIEW GROUND
(Case size: L11mm xW7mm xH9.5mm)
CFM455J1 2k 2.6kHz
Mechanical Filter: Toko Type HCFM
CFM455I 2k 4kHz
CFM455H 2k 6kHz Type Input/output 6dB
GROUND
UNDERSIDE VIEW
GROUND No. impedance bandwidth
(Case size: L2Omm xW7-3mm xH10.3mm)
HCFM2455A 1k/1k5 4kHz
HCFM2455B 1k5/2k 6kHz
Insertion loss for all of the filters, except the CFM455I and the CFG455J, is 6dB. I-ICFM2455C 2k 8kHz
Insertion loss for the CFM455I is 7dB; for the CFG455J, 8dB.
(Case size: L8.2mm xW3-5mm xH9.5mm)
A Signal-Strength Meter is useful for potentiometer VR2 provides the other two.
monitoring reception conditions and Setting the slider (moving contact) of VR2 Panel meter full-scale deflection (f.s.d.)
assessing different aerial systems. It can to the same potential as the collector of is set by preset VR1, and the bridge is sta-
also be of assistance during the setting up TRI, in the absence of asignal, brings the bilized against thermal drift by diode DI,
process. meter pointer to zero. which mirrors the base/emitter junction in
The Signal-Strength Meter bridge circuit The base of TRI is connected to the TR 1 .
given in Fig.8.3 enables the standing volt- a.g.c line via current limiting resistor RI. Meters of lower sensitivity can be used
age on the a.g.c. line to be nulled out so The a.g.c voltage becomes more negative if the value of RI is reduced. It ought not,
that the meter pointer can rest at zero under as signal level increases, current through however, to be taken below 100 kilohms.
no- signal conditions. TR 1decreases, and the voltage at its col- With this value it should be just possible to
Transistor TRI and collector load resis- lector becomes more positive, driving over use a lmA meter. Meters of higher sensi-
tor R2 form two arms of the bridge: preset the meter pointer. tivity should be shunted to around 100µA.
Details of the printed circuit board top-
side component layout, full-size copper
lal
TO +9V VIA SIa
foil master and interwiring are given in
TÍ
cbe
R2
4k7
Fig.8.4. General guidance on construction
is given later.
1N4148 BC 549C
62
our
TR1 467
RI BC549C VR1
220k 100k ..•I !
t•61-Ei
TO A.G.C. UNE
e VRI: SET FULL.SCALE
D1
a 1/..Pilt • ez•ruz
DEFLECTION
ON I.F. AMPUFIER
VR2: SET ZERO 11,14148 30t'ii c irs.1
(SEE AG. 2)
OV CC 0000 ' I'Zi?is6£
Panel Meter
preset
D TO OV PIN ON IF.
AMPLIFIER P.C.e.
iç
Semiconductors
DI 1N4148 signal diode s...:AE1
TR 1
e
100pA
TR I BC549C npn small
signal transistor
Miscellaneous
MEI 100yA moving coil
VR1: SET METER FULL-SCALE
panel meter DEFLECTION
1.22in (31.0mm)
Approx. Cost
Guidance Only £.50
excl. meter Fig.8.4. Signal- Strength Meter printed circuit board component layout, wiring and
full-size copper foil master.
Readers interested in Morse and single diode Dl in order to change the beat note
side-band ( s.s.b.) speech transmissions will or to accommodate the upper and lower
require abeat frequency (b.f.o.) and carrier side-band transmission modes. This oscil- gate, and the audio output is developed
replacement oscillator. lator circuit is almost identical to the sec- across drain load resistor R3. Residual
Morse is transmitted by interrupting the ond mixer/oscillator, and the function of radio frequencies are filtered out by C2, R5
carrier, and the receiver must contain an the various components has already been and C4. C5 is the d.c. blocking capacitor.
oscillator to beat with these signals and described. Choke RFC1 prevents the leakage of oscil-
make them audible. Single side-band trans- The oscillator's output is coupled, via lations into the supply rail.
missions have their carrier suppressed at coil LI, to the source pin of product
the transmitter and it must be restored, by detector TRI. Signals are applied to TRI
an oscillator in the receiver, so that they
can be demodulated ( see Part 6).
The simplest arrangement, widely
adopted during the valve era, is to inject The B.F.O. board
the oscillation directly into the i.f. strip, housed in an
just ahead of the detector. Unfortunately, aluminium screening
this activates the a.g.c system and box.
depresses receiver sensitivity. Accord-
ingly, asimple product detector has been
included to ensure the complete isolation
of the oscillator.
CIRCUIT DETAILS
The full circuit diagram for aB.F.O. and
Product Detector is shown in Fig.8.5.
Transistor TR2, coil L2 and capacitor C6
form a455kHz Hartley oscillator. Its fre-
quency can be altered slightly by varicap
O S2b
0 04
o
R2
o o5 475
AUDIO FROM DIODE
COIL BASE
DETECTOR
(UNDERSIDE VIEW)
(C24 FIG8 1)
83 87
41%
1111
10k R5
2N3819 4700 4'17 S2a
F _cre0-0
sgd
AUDIO TO VR4
ak (FIG.8.1)
BB105
TR 1 TR2
2b/ 1, o :
1N 3819
C8
l'p
1,112
RWO6A II
7752EK
C3
11),
TO SECONDARY
OF IFT5 VIA C19
ON LP AMPLIFIER
PC B.)
C12 I
4p7 4
1-1
Fig.8.5. Complete circuit diagram for the B.F.O. and Product Detector. For clarity, switch S2a is also shown on the I.F Amp
circuit. This circuit is required for the reception of s.s.b. transmissions.
COMPONENTS Guidance Only £12 Part 6. They function in the same way as
mixers but combine close radio frequencies
excl. case
to deliver an audio signal at the output port.
Details of the printed circuit board top-
B.F.O. and PROD. DETECT C6 220p polystyrene or side component layout, full-size copper
Resistors See ceramic "low k" foil master and interwiring are shown in
meriLL
R1, R6 220k C7 27p ceramic " low k" Fig.8.6. General guidance on construction
(2 off) C8 47p ceramic " low k" is given later.
R2. R5 470 2 C10 100n ceramic
.
(2 off) TALK C11 4y7 tantalum bead, 16V COMPONENTS
page
R3 10k Transistor types for the three circuits are
R4 4k7 Semiconductors not critical and alternatives, with base con-
R7 47.2 D1 B13105 vancap diode nections, are included in Fig.8.1. Other
R8 100!.2 TR1, TR2 2N3819 n-channel field Eels, including the BF245B, J304 and
RO 100k effect transistor ( 2off)
J310, have been in-circuit tested and found
All 0,25 carbon film
to be satisfactory.
Miscellaneous
Detector diode D2 must be apoint con-
Potentiometers L1/L2 RVVO6A7752EK Toko
tact germanium type. The specified 0A90
VR1 100k rotary carbon. lin. screened ( metal can) coil
RFC1 1mH rf. choke is often used in this circuit, but the 0A47
VF- 2 220k enclosed carbon
preset S2 see 1.F Amp listing and others should perform equally well.
The Murata CFU455IT filter is recom-
Capacitors Printed circuit board available from the mended, but the i.f. printed circuit board
cl 100,a radial elect. 16V EPE PCB Service, code 430 ( B.F.0./Prod. will accept any of the units scheduled in
C2, C3, Detect.); screening box for B.F.O., size Table 8.1. Readers whose requirements are
C9 10n ceramic ( 3off) 76mm x51mm x25mm (3m. x2in. x1in.) — less demanding can dispense with the filter
C4 47n ceramic see text; audio type screened cable; multi- and link the coupling windings of 1F1'2 and
C5, C12 4,u7 radial elect. 16V strand connecting wire; p.c.b. nylon stand- 1FT3 with a 100pF low-k ceramic capaci-
(2 off) off pillars; solder pins; solder etc. tor. The performance implications of this
are discussed later.
Full details of the preselector and first
mixer/oscillator stages, and the switched
coil pack, were given in Part 7. Details of a
simple Speaker Amplifier were given in
Part 2.
GENERAL
CONNECT VR4 TO SW:. BY
THESE LEADS
MUST BE SHORT,
ASCREENED CABLE IF LEAD CONSTRUCTION
IS MORE THAN 75mm (319)
NOT LONGER LONG. The three circuits are assembled on sep-
THAN 75mm ( 341).
arate printed circuit boards (p.c.b.$). This
SIGNAL
g permits the complete screening of the b.f.o.
•
•••--I R5 1—.•
v52
unit and makes it easier for constructors to
GROUND
TRli tiD omit items they do not require. These
boards are available from the EPE PCB
TO OV PIN ON IF. Service, codes 428 (I.F. Amp), 429 (Sig.
AMPIJFIER P.C.B.
Meter) and 430 (B.F.O./Prod. Det.).
Lsc The component side of the I.F. Amplifi-
er printed circuit board, together with a
TO +9V ( VIA Slat
• full-size copper foil master, is given in
Fig.8.2. Component and foil sides of the
POTENTIOMETERS
TO SECONDARY OF FT5, VIA C19 VIEWED FROM REAR Signal-Strength Meter p.c.b. are shown in
ON I.F. AMPLIFIER P.C.B. S2b
A.M. OUTPUT VIA C24
Fig.8.4 and the two sides of the B.F.O. and
ON IF. AMPLIFIER P.C.B. Product Detector board are depicted in
Fig.8.6.
VOLUME Off-board wiring is made easier by the
use of solder pins at the p.c.b. lead-out
points. They should be inserted first. Follow
these with the resistors, then the coils, and
then the capacitors, smallest first.
CONNECT SCREENING LEADS TO
CHASSIS VIA POTENTIOMETER CASE The semiconductors should be soldered
TO SPEAKER AMPLIFIER in place last, their lead lengths just long
(SEE PART 2) enough to attach aminiature crocodile clip
2.72M ( 69.0mm)
to act as aheatshunt. (Heat shunting is good
practice with Eels and germanium diodes).
Filter matching transformers IFT2 and
1F1'3 are only 7mm square (the 10trun ver-
sions are no longer retailed), and particular
care should be taken to avoid bridging
tracks when they are soldered onto the
p.c.b. Avoid stressing the pins of the coils:
this can result in open-circuit windings.
On completion, double-check each
board for bridged tracks and poor soldered
joints. Check the orientation of the semi-
conductors and polarized capacitors, and
check coil and i.f.t. placements.
Connect a fresh 9V battery and check
current drain. The I.F. Amplifier should
Fig.8.6. Printed circuit board topside component layout, interwiring to off-board consume around 4mA, the B.F.O. and
components together with the underside copper foil master. Product Detector around 6mA.
INTERWIRING
Details of the interwiring connections
between the printed circuit boards are also
shown in Fig.8.2, Fig.8.4 and Fig.8.6.
Screened cable must be used where indi-
cated, but it can be of the ordinary audio
variety.
Note the use of the OV pin on the i.f.
amplifier board as the common negative
connection for all of the receiver p.c.b.s.
Do not rely on the outer braiding of
screened leads to act as negative returns for
the power supply.
The negative supply lead for the Speaker
Amplifier is connected directly to the
appropriate pin on its p.c.b. ( see Part 2).
Connections to the battery positive termi-
nals are, of course, via switch Sla for the
receiver boards, and S1 b for the Speaker
Amplifier.
Provision is not made on any p.c.b. for
the 1.e.d dropper resistor R15. This compo- General layout of p.c.b.s within the topside chassis. Note the screening bracket
nent is included in the wiring to the Power around the tuning capacitor. The small p.c.b., to the side of the main board, is the
On 1.e.d. D4. Speaker Amp from Part 2.
1
2 C and Serial
BEAM Robots
LCD Modules
Programmable
Serial - Ethernet Mobile Robots
Connectiv:ty
Rapid
Development
Micro- Controllers
NET WORK
ALAN WINSTANLEY
Archive News extracts from the Internet to help you home in on aparticular glos-
sary definition. There is also auseful pop-up blocker that prevents
E
VER since its beta days, Google has grown to become the largest
"pure" search engine available. Users like Google's minimalist distracting pop-ups from appearing. This action can be overridden
appearance and its speed of searching, while the sophisticated using the CTRL key when clicking, and you can "enable" preferred
indexing and constant "learning" algorithms ensures that Google sites to show pop-ups.
generally delivers accurate and relevant results very quickly. One feature that is probably less popular with web site owners
A very useful toolbar is available from www.google.com that than Google users themselves is Google Images: you can search for
integrates directly with Microsoft Internet Explorer browser. an image by asking Google to scour the web and produce agallery
Google is, however, more than aweb search engine, and the toolbar of thumbnails. This feature is also available from the Search Web
allows you to access many of Google's other features. Experienced toolbar button, or go to http://images.google.com/.
Internet users will know that the Usenet archive of Deja News was
acquired by Google and integrated into "Google Groups". Web
Images
Web owners are often less keen to see their image contents
users often overlook this archive but it preserves awealth of useful
indexed and displayed in this way, as it merely consumes their
information that can be gleaned from the messages posted over
bandwidth and has no commercial benefit. On the other hand, own-
many years by other users.
ers of web site shopping carts probably won't object to their prod-
Usenet, or "newsgroups" is afundamental means of communi-
ucts being listed in Froogle http://froogle.google.com/ which is
cating with like-minded users. Newsgroups are formed around a
fully searchable, even for Onstream tape drives! Froogle is heavily
particular topic, and if you have aspecific query then it is quite pos-
US$ orientated, and is currently only in beta release, but in the
sible that someone else has asked the same thing, so you can use the
future could form auseful hub for shopping cart searches.
Google toolbar and search Google Groups to see if anyone else has
supplied the answer.
Practical Newsgroups
1,2 I«. !I.
ELECTRONICS CD-
RODAS
ELECTRONICS PROJECTS ELECTRONICS
2.2 Electronic Projects is split into two main sections: Building Electronic Projects CAD PACK
contains comprehensive information about the components, tools and techniques
used in developing projects from initial concept through to final circuit board
production. Extensive use is made of video presentations showing soldering and
construction techniques. The second section contains aset of ten projects for
students to build, ranging from simple sensor circuits through to power amplifiers, A
shareware version of Matrix's CADPACK schematic capture, circuit simulation and
p.c.b. design software is included.
The projects on the CD-ROM are: Logic Probe; Light, Heat and Moisture Sensor;
NE555 Timer; Egg Timer; Dice Machine; Bike Alarm; Stereo Mixer; Power
• ran Amplifier; Sound Activated Switch; Reaction Tester. Full parts lists, schematics
and p.c.o. layouts are included on the CD-ROM.
Logic Probe testing
branch of electronics. The CD-ROM includes a host of virtual laboratories, professional quality PCBs to be designed
animations, diagrams, photographs and text as well as a SPICE electronic circuit and includes advanced features such as
simulator with over 50 pre-designed circuits. 16- layer boards, SMT components, and
Sections on the CD-ROM include: Fundamentals — Analogue Signals ( 5 an autoroute - operating on user generated
sections),Transistors ( 4 sections), Waveshaping Circuits ( 6 sections). Op.Amps Net Lists.
— 17 sections covering everything from Symbols and Signal Connections to
•
Deferentiators. Amplifiers — Single Stage Amplifiers (8 sections), Multi-stage
Amplif,ers ( 3sections). Filters — Passive Filters ( 10 sections), Phase Shifting
Networks (4 sections), Active Filters ( 6 sections). Oscillators — 6 sections from ROBOTICS &
Positive Feedback to Crystal Oscillators. Systems — 12 sections from Audio
'l—PI
Pre-Amplifiers to 8-Bit ADC plus a gallery showing representative p.c.b. photos. MECHATRONICS
Complimentary output stage
•••••••••era,
••••••••• ••••••••••••••••
I
'
&am «on. Imm...ilimi-a-g1= . . aicus • egii—re
ELECTRONICS IN CONTROL
Two colourful animated courses for students on one CD-ROM. These cove' Key Stage 3 and GCSE syllabuses. Key ELECTRONIC
Stage 3: A pictorial look at the Electronics section featuring animations and video clips. Provides an ideal introduction
or revision guide, including multi-choice questions witn feedback. GCSE: Aimed at the Electronics in many Design &
COMPONENTS PHOTOS
Technology courses, it covers many sections of GCSE Electronics. Provides an ideal revision guide with Homework A high quality selection of over 200 JPG
images of electronic
Questions on each chapter. Worked answers with an access code are provided on a special website.
components. This
Single User £29 Inc. VAT. Multiple User £39 plus VAT selection of high
Student copies ( available only with a muliple user copy) £6 plus VAT resolution photos can be
(UK and EU customers add VAT at 17.5% to "plus VAT" prices) used to enhance
projects and
presentations or to help
MODULAR CIRCUIT DESIGN with training and
educational material.
Contains a range of tried and tested analogue and digital circuit modules, together with the They are royalty free for
knowledge to use and interface them. Thus alowing anyone with a basic understanding of circuit symbols tc use in commercial or
design and build their own projects. Version 3 includes data and circuit modules for a range of popular PICs: includes personal printed projects, and can also be
PICAXE circuits, the system which enables a PIC to be programmed without a programmer, and without removing it used royalty free in books, catalogues,
from the circuit. Shows where te obtain free software downloads to enable BASIC programming. magazine articles as well as worldwide web
Essential information for anyone undertaking GCSE or "A" level electronics or technology and for hobbyists who want pages ( subject to restrictions - see licence for
to get to grips with project design. Over seventy different Input, Processor and Output modules are illustrated and fully full details).
described, together with detailed information on construction, fault finding and components, including circuit symbols, Also contains a FREE 30-day evaluation of
pinouts, power supplies, decoupling etc. Paint Shop Pro 6 - Paint Shop Pro image
Single User £ 19.95 inc. VAT. Multiple User £34 plus VAT editing tips and on-line help included!
(UK and EU customers add VAT at 17.5% to "plus VAT" prices)
Price £19.95 inc. VAT
Minimum system requirements for these CD-ROMs: Pentium PC, CD-ROM drive, 32MB RAM, 10MB hard disk space. Windows 95/98/NT/2000/ME/XP, mouse, sound card, web browser.
a
Student/Single User/Standard Version
ID Electronics CAD Pack E Institutional 10 user
D Robotics & Mechatronics E Site licence price includes postage to most
D Assembler for PlCmicro countries in the world
Doer. ( IT.
Signature:
01202 873872. Fax: 01202 874562
Goods are normally sent within seven days
D Ienclose cheque/PO in £ sterling payable to WIMBORNE PUBLISHING LTD for £
E-mail: orders@wimborne.co.uk
D Please charge my Visa/Masterca -d/Amex/Diners Club/Switch: £ Card expiry date:
Online shop:
Card No: Switch Issue No
www.epemag.wimbome.co.uk/shopdoor.htm
Card Security Code (The last 3 digits on or just under the signature strip)
Er is certainly true to say that modern amps), it is still suitable for most pro- to something like 32s.w.g. wire, or even
construction techniques have greatly jects. With many projects the total cur- 32a.w.g. (American wire gauge).
reduced the amount of hard wiring in rent consumption is only about 20mA Under the metric system the diame-
electronic projects. Irecently did some or less, with only a tiny fraction of that ter of the wire is specified in millime-
repairs to two shortwave radios from going through many of the connecting tres. 14s.w.g. wire is very thick at
the 1960s and both were entirely hard wires. around 2mm in diameter, and 40s.w.g.
wired! The modern way is the opposite Even so, a medium duty wire, such wire is very fine at just 0.125mm.
of this, with everything on a circuit as a 7/0.2 type, is probably a better 24s.w.g. wire is 0.156mm in diameter
board and, ideally, no hard wiring at all. choice for general project wiring. With and is a good choice for link-wires on
However, probably every project its maximum current rating of about circuit boards. Components lists usual-
includes at least a few wires and 1.5A, this type of wire is suitable for the ly specify the gauge and the diameter,
cables, and many projects are still fair- vast majority of projects but it is still and component catalogues mostly give
ly bristling with them. It is an aspect of easy to use. both types of measure, so there should
construction where due care has to be Only a few projects such as some be no problems here.
exercised. The chances of making mis- power supplies and power amplifiers
takes are generally higher with the require heavy duty equipment wire. Ribbon Cable
wiring than with the circuit board, and Projects such as these often involve Ribbon cable is one of those "best
hard wiring can live up to its name. maximum currents of several amps. For thing since sliced bread" inventions. It is
example, 24/0.2 wire can handle cur- a multi-way cable that has a number of
Stranded rents of up to 6A and is adequate for insulated wires laid side- by-side and
On looking through a large compo- most high-power projects. As heavy joined together. This gives aflat ribbon-
nents catalogue you will probably find a duty equipment wire is unwieldy in use like cable that typically has from 10 to
few dozen types of wire and cable it should only be used where high cur- about 60 wires.
spread over several pages. Many of rents are involved.
these cables are specialist in nature, Never use medi-
and are not the type of thing you would um or light duty
be likely to use in atypical project. wires where aheavy
For most projects the only type of duty type has been
wire required is some form of p.v.c. specified. Using wire
insulated connecting wire. There are at an excessive cur-
two basic types on offer in most cata- rent will result in it
logues, which are the single and multi- getting hot, which
core varieties. An advantage of the sin- has obvious safety
gle-core type is that it can be formed implications. The
into complex shapes and it will accu- voltages dropped
rately retain those shapes. This makes through the wire will
it useful for producing complex cables almost certainly
that run neatly around the project. stop the project from
Single-core wire is little used in pro- working properly Fig. 1. With ribbon cable it is easy to peel off apiece having
jects despite this potential advantage. anyway. the required number of wires.
One reason for this is simply that few Presumably due
projects have complex cabling that can to its lack of popularity, most suppliers There are two main types of ribbon
utilise this capability. There is also a only seem to have single-core equip- cable, and one is specifically designed
major flaw with this type of wire. ment wire available in one size. This is for use with certain types of computer
Even when using proper wire strip- likely to be 1/0.6, which is suitable for connector. The 0.05 inch pitch of the
pers it is easily damaged as the plastic light and medium duty applications. wires matches the terminals on the
insulation is stripped away. This leaves Other types of single-core wire are connectors and together with the thin
the wire weak and prone to breaking if available, and most catalogues list insulation permits a system of solder-
it undergoes any flexing. While multi- enamelled copper wire in awide range less connection to be used. This type of
core wire is not totally immune from this of diameters. The insulation on this type ribbon cable is grey in colour apart from
problem, it is much less vulnerable to it. of wire is more or less a coat of tough a red lead at one edge. It is usable as
Use proper wire strippers and there varnish. There is no need for wire strip- equipment wire where several connec-
should be no problems. Use knives, pers with enamelled wire, and the insu- tions running side-by-side are needed,
scissors, etc., and not only will the lation can be carefully scraped away but it is less than ideal.
wires will be weakened but you will using a miniature file or a penknife. The second type of ribbon cable is
probably injure yourself as well. Enamelled wire is not suitable for far better in the current context. One
most applications because its insula- small but crucial difference is that the
On The Right Gauge tion is easily damaged. It is mainly used wires have insulation of different
General-purpose connecting wire in home-made inductors and trans- colours. This may seem to be of no
may well be referred to by other names formers. Tinned copper wire is another importance, but it aids the easy identifi-
in component catalogues, such as form of single-core wire. It has no insu- cation of each wire. When using ribbon
"hook-up" or "equipment" wire. lation and in projects it is mainly used cable instead of a conventional cable-
Whatever name is used, it is available in for link-wires on circuit boards. form this is very important, particularly
light, medium, and heavy duty varieties. In the past single-core wires were where a large number of wires are
Light duty equipment wire is usually available in a range of standard wire involved.
described as something like " 10/0.1", gauges (s.w.g.) from about 14 to 40. This type of ribbon cable is available
which signifies that it has 10 strands of This system was apparently used for all in 10-way and 20-way varieties.
0.1 millimetre diameter wire. Although sorts of things, including knitting nee- However, asection having the required
this type of wire can only be used for dles. Although we have now gone met- number of wires is easily peeled from a
currents of up to around 500mA (0.5 ric, you might still encounter references larger piece (see Fig.1). This type of
GPS TO PIC AN
PC INTERFACIN
JOHN BECKEP
How to extract data from a GPS This article is based upon the author's
use of the Garmin GPS12 handset. It has
handset and use it in your PIC and also been proven by friend and EPE read-
er Andrew Jarvis on aGarmin eTrex hand-
Visual Basic 6 programs. set. In essence, the information provided
should be compatible with all GPS hand-
sets that comply with the NMEA 0183
G
standard.
LOBAL Positioning System (GPS) NMEA 0183
navigation handsets have been
available inexpensively for some
STANDARD SENTENCE TYPES
time and are in widespread use. Readers There are several interface format proto- NMEA 0183 data comprises aseries of
have been asking lately how they can be cols under which different handset types ASCII sentences. The most common sen-
interfaced to PIC inicrocontrollers. can output the serial data. There is, though tences are prefixed by an identity code of
This article demonstrates how such auniversal standard protocol which can be $GPxxx, where "xxx" is aspecific 3-letter
interfacing can be done with GPS handsets selected and output for use by external infix indicating the information type that is
that support the NMEA 0183 standard. It equipment. The standard is that specified held within a sentence. There is a docu-
also illustrates how they can be interfaced by the National Marine Electronics ment available for free download from
to aPC-compatible computer, using Visual Association, NMEA. Although there are http://home.mira.neti—gnb/gps/nmea.
Basic 6 (VB6). The techniques are different versions of this standard, the html which gives all sentence codes which
extremely simple and the software exam- NMEA 0183 Interface Standard is the one are prefixed by $GPxxx, and gives short
ples given can be readily modified to suit a most widely adopted and likely to be avail- descriptions of the sentence formats.
wide variety of applications. able with all commercial GPS handsets. The descriptions are too many to
NMEA 0183 defines the electrical signal include here and readers are referred to
GPS PROTOCOLS requirements, data transmission protocol this document for more information. It
The Global Positioning System is a24- and specific sentence formats for a 4800 should be noted that not all GPS handsets
satellite constellation in orbit around the Baud serial data bus. However, compliance will output all the data sentences.
globe. GPS handsets receive data from a with the standard is not mandatory and However, there is at least one sentence that
selection of satellites and process it to pro- manufacturers are free to decide how they all handsets should output, that which
vide avariety of navigational facts, such as will implement the standard. In essence, includes the recommended minimum spe-
telling you where you are in three dimen- though, the most commonly required data cific GPS/Transit data.
sions, latitude, longitude and altitude. Other is likely to be formatted consistently. This sentence is prefixed by the code
facts, such as current course and speed, are $GPRMC ( RMC = Recommended
calculated by the handset in relation to two Minimum Content) and consists of 13
or more timed transmissions. Increasingly, fields of data. 12 of which are separated by
GPS is also being used not for navigation at commas. The sentence is output in ASCII
all, but for critical timing applications as it text format and, with the exception of the
is basically avery cheap atomic clock! checksum code in the final field, does not
The data transmitted from aGPS satel- require decoding. Table 1shows an exam-
lite consists of two parts, an ephemeris ple of the format ( the numbers below it
(containing data relating to the transmit- indicate the field numbers).
ting satellite) and an almanac ( containing It is this sentence, plus one other, that
data relating to the whole GPS system). the example software has been pro-
The receiver uses the almanac to determine grammed to find and interpret from the
which satellites should be visible in the many sentences that are output from atyp-
sky. Signals from these visible satellites ical handset.
are acquired and the most accurate of the The second sentence that the software
ephemerides are downloaded for position- example accepts is that which contains
ing purposes. altitude data and is prefixed by the identi-
Handsets typically output the data to fier $GPGGA. This sentence is all about
their own 1.c.d. screen as textual state- the positioning fix of the receiver. It too
ments and as images generated by their includes time, latitude and longitude data,
software. The text data is also available for but this is just arepeat of that in $GPRMC.
output in an RS232 serial format via a Of casual interest, though, it also states the
built-in connector, although the type of number of satellites in view at that time
connector and its pin arrangement can vary (there are typically six in view from the
between models. (User handbooks should Typical example of a Garmin GPS 12 author's home, but not visible to the naked
provide the details for individual models.) data screen. eye!)
O\ :
3
. 0 0 0 C 0 0 0 0 0 0y
C' COM1 c000000000 oo
SGPRMC SG PGGA ss\
25 2423 22 212019 1817 16 1614
Cate 090703 COM2 Time 14:50.51 25-P1N FEMALE RX = 3
A)
Time 14:50.51 Latitude 50'48.349 N TX = 2
OV = 7
Latitude 50'48.349 N Loricitude 00 1'54.706 W' 1 2 3 4 5
SGPBOD„T„M„'47
$GPRTE,1 1,c,0'07
SGPRMC,145050A,5048.349,N,00154.706,W,000.0,315.2,090703,003.8,1e76
SGPRMELA ,,,,,,, ,„„V"71
1
SGPGGA,145050,5048 349,N,00154.706,W,1,05,1.9,35.5,M,49.3,M„`63
$GPGSA,A,3„,08,10,13„24„27„„3.0,1.92.1"32 KIER 0193
SGPG SV,3,1 ,11,02,05,025,00,04,05,186,00,08,67,154,44,10,61,295,381F
SG PGSV,3,2,11,13,22,079,42,21,03,334,0024,30215,39,26,07265,00°7D 4800 killud
SGPGSV,3,3,11,27,61,076,48,28,06,150,00,29,31,269,30.,„°49
$PGRIYIE,7.9,M,8.8,M,11.8,14`18 Garmin GPS 12 interface screen.
IGPGLL,5048.349,N,00154.706,W,1 45051A14
SPGRM2,117,f,31C
IPGRIAM,WGS 84'06 Highlighting this option and then press-
ing Enter displays the menu. Selecting
Interface, the first option then is to select
The PC demonstration screen showing the GPS sentence codes received and the the output protocol. For the GPS12 the set-
decoded data for two of them. tings are NONE/NMEA, NMEA 0183 2.0,
4600 Baud. Once selected, this handset
stores the settings and implements them
PHYSICAL PROTOCOLS each time the handset is used.
GARMIN GPS12 PINOUTS
The default physical data output
protocol for GPS handsets is based on the 1) POWER INPUT
HYPERTERMINAL
familiar RS232 standard. The voltage char- 2) GROUND
It is possible to read the GPS data via the
acteristics are said to be compatible with 3) DATA OUT Hyperterminal function that most PCs have
most Host devices (e.g. PCs and other dig- 4) DATA IN installed as part of their basic suite of pro-
ital logic hardware). However, the GPS grams. To access Hypertenninal, click the
transmits positive voltages only, whereas Windows Start button, select the path
the RS232 standard requires both positive Fig. 1. Garmin GPS12 pinouts. Programs/Accessories/Hypertenninal then
and negative voltages. double-click on HYPERTRM.EXE.
Also, the voltage swing between mark according to NMEA 0183. Following A "Connection description" sub-screen
and space may not be large enough to meet power-on, the author's Garmin GPS12 path should appear. Enter aname for the con-
the strict requirements of the RS232 stan- selection requires several pressings of the nection, e.g. GPStest, and choose an icon
dard, although the GPS voltages suit most Page button until ascreen offering alink to for it, or accept the default icon. Click OK.
Hosts as long as the interface cable is wired the Setup Menu appears. On the Phone number screen that then
correctly.
The other electrical characteristics are
full duplex, serial data, 4800 Baud Table 1. Example coding for an NMEA 0183 sentence
(although other Baud rates are supported $GPRM0,145050,A,5048.349.N.00154.706,W,000.0.315.2 090703,003.8,W76
by some GPS handsets), eight data bits, no 1 23 45 67 8 9 10 11 12
parity bits, and one stop bit.
The interpretation of this example sentence is:
BASIC GPS TO PC
Field Data Description Meaning
INTERFACING
The data that is output from GPS hand- o $GPRMC sentence identifier information type
sets that support the NMEA 0183 standard 1 145050 time of fix 14:50:50 UTC
is suitable for directly inputting to aPC via 2 A validity OK (A = OK, V = invalid)
one of its serial communication ports, e.g. 3 5048.349 current latitude 50°48.349'
4 N North/South North
COM1 or COM2. It will be necessary to
5 0154.706 current longitude 001°54.706'
study your GPS handset manual to estab-
6 West/East West
lish which pins on the output connector are
7 000.0 speed in knots 0.0 knots
used for signal output and common
8 315.2 true course 315.2°
ground. Those for the Garmin GPS12 are 9 090703 date stamp 09 July 2003
shown in Fig.l. 10 003.8 magnetic variation 3.8e
The signal output and ground (GND) 11 West/East West
should be connected to the RS232 signal 12 '76 checksum 76 (in hex)
input and GND on your PC. Fig.2 shows
In the most common usage, the terms UTC (Universal Time Coordinate) and GMT
the connections for 9-pin and 25-pin
(Greerwich Meridian Time) are identical.
connectors.
Before you get an Ordnance Survey map — it's EPE's tocation that's given — not the author's
Next consult your GPS handbook for home!
details of how to set it for outputting data
from aGPS handset and then processed. ferent quantities of decimal places, RB5 6 É
RNTI
The program is ademonstration for use depending on the handset model. The
GND
by readers who have VB6 installed on their author's Gamin GPS12 uses three decimal
PC and who wish to make use of GPS data places, but it is known that some handsets
in their own programs. It shows the way in have four places.
CONTRAST
which GPS data sentences and various Consequently, when splitting aGPS sen-
fields within them can be extracted selec- tence into its fields it is essential to use the
tively. Armed with this example, the pro- comma as the separating symbol for all OV 0
gram can be modified to entirely suit the fields except the checksum.
user's needs. It cannot be used by those As written, data is input in blocks of Fig.4. Connections between the
who do not have VB6. 1024 bytes in response to aTimer 1event. PIC16F877 and I.c.d.
Page one holds the clock and calendar handset's data output to the inverter's contras facilities and also have an area of
data extracted from sentence $GPRMC. input, in place of the PC connection. memory where sentence data can be stored
Page two holds the latitude and longitude If you wish, the handset data can be fed during reception and processing. The cod-
data, also from $GPRMC. Just one field of simultaneously to both PIC and PC. ing for the full PIC16F87x family will be
sentence $GPGGA is used, the height Note that a timeout count is used to the same as in the example, although the
value, which is placed on line two of 1.c.d. detect non-arrival of GPS data. If the 1.c.d. serial pin numbers will differ.
page one, following the calendar data. Both screen top line frequently alternates
pages hold the Validity letter from between showing data and the message RS232 CHIP
$GPRMC, "A" for valid or "V" for invalid. "WAITING SIGNAL", decrease the value Although direct coupling of the serial
If the checksum is found to be wrong a allocated to TIMEOUT3 (the default is data lines to the PIC and PC is likely to be
message to this effect is placed on both 254) to provide alonger timeout delay. effective, greater sophistication and poten-
pages. tially greater reliability of data transfer can
Examining the PIC source code you will SUITING YOUR NEEDS be provided if an RS232 interface chip is
see that the process has been made very Study the PIC and VB source codes to inserted between the data source and its
linear and very understandable, without see how the $GPRMC and $GPGGA sen- destination. A suitable circuit using the
any "clever programming" tricks, such as tences have been handled. It should be familiar Maxim MAX232 device is given
Macros or multiple-purpose sub-routines. obvious how the software can be changed in Fig.5.
Having processed $GPRMC the soft- to deal with sentences
ware now looks for the $GPGGA identifi- having other identity
er and then inputs and processes that prefixes and data
sentence in amanner similar to that used fields containing other
with $GPRMC. On this occasion. though, navigational data. The
it is only the height (altitude) data that is field contents for
extracted. The software then loops back to other sentences can be
again look for $GPRMC, etc. established by refer-
Note that the PIC software allows you to ring to the down-
change the Baud rate at which the PIC loaded web file
receives data. The value associated with referred to earlier.
this can be changed to suit the crystal and As mentioned, it is
Baud rate that you require. TK3 since ver- a simple matter to
sion V1.42 has aBaud calculation facility change the PIC's
to assist in choosing the correct value. crystal and Baud
rates. It is equally
DIRECT GPS INPUT simple to use PICs
TO PIC other than the
To directly input live data from the GPS PIC16F877, provid-
handset to the PIC simply connect the ing they have serial Fig.5. RS232 interface using a MAX232 device.
Free via the Downloads click- link option on the home page when
you enter our main web site at www.epemag.wimborne.co.uk,
then enter the PIC Microcontroller source codes folder and select
PIC Watering Timer.
+12V
R5 SPOT
22
DI 03 RA
1N4148 1N4148
a
TR1 11 a
2N38I9
METAL
RI
SENSOR 4 8
1M R7
RST V
0/P
7555 B0135
DIS R6
212
TRIG
ONO
R4
IM
OV
o
CIRCUIT
SURGERY ,
ALAN WINSTANLEY
and IAN BELL
Our monthly help-desk column shows how the Google Glossary can help you
with technical definitions, we look at current sourcing and sinking,
and MOSFET operation in linear mode is also outlined.
Source from the Google The basic difference between source and which combines two 1.e.d.s into one pack-
sink current can be illustrated with the 555 age. In general, for clean rail-to-rail
Glossary timer. The bipolar NE555 type has arated switching and lower power consumption,
Can anyone tell me the text book defini- output source or sink current of 200mA, use the CMOS 7555 instead. The data
tions of sourcing and sinking current? according to the useful data sheet supplied sheets contain graphs that illustrate typical
Thanks from Steve (in the EPE Chat Zone by SGS Thompson (download from output characteristics at avariety of supply
message board www.epemag.wimborne. www.st.com). The NE555 data sheet also voltages.
co.uk). has a full internal circuit diagram of the Novices should note that just because a
If ever Ihave needed the definitive "text- timer, which highlights what goes on at the device output is "low", it does not mean that
book" word for anything then for twenty output stage. it can be used to sink much current to OV,
years Ihave usually started with the Art of because it depends on
Electronics by Paul Horowitz and Winfield the internal design
Hill, but actually Icould not pin down a and technology used.
specific reference there. Conversely, the output
Over on the intemet then, my next stop being "high" does not
was the Google Glossary http://labsl. guarantee that you
google.com/glossary which returned just can draw much signif-
one definition for source current, namely icant current from it
the "Conventional current flow out of a either.
DUT with the active load as pull-down". Often overlooked is
Sink current is defined by Google Glossary that fact that some
as "Conventional current flow into aDUT devices are actually
with the active load as pull-up." A "DUT", only intended ever to
the Glossary tells us, is shorthand for sink current, a good
'device under test'. example being tradi-
Note that the glossary is only Google's Fig.2. A 555 alternating-Le.d. flasher uses source and sink tional TUL bipolar
attempt to pull in third-party definitions currents through pin 3. 7400 series logic
from around the web, and usually anumber gates. A TUL logic
of alternatives are offered by the glossary By connecting the 555 as an astable mul- "high" output was not designed to drive,
database. Users must decide for themselves tivibrator, asimple alternating 1.e.d. flasher say, an 1.e.d. pull-down load: the gates
whether there is any common ground can be produced which relies on the fact were better at sinking current because they
amongst Google's various results that will that the 555 will both source and sink cur- had an internal transistor connecting to
let them settle on acommon definition. rent. In Fig.1, 1.e.d. D2 will illuminate ground. Often with these things, it's only
when the output (pin 3) of the 555 is high. experience and checking data sheets that
Current flows out of pin 3and through the reveals to the hobbyist the various charac-
1.e.d. to the OV rail; the diode is considered teristics and correct operating modes.
as a "pull down" load because it "pulls A.R.W.
down" the output to the OV rail. When pin
3goes low, then current will flow through Linear MOSFETS
D1 instead, which acts to pull the output up Some time ago we looked at MOSFETs
to V+. and their driver circuits for switching loads
You can consider the output stage to be on and off. The physics of the MOSFET
like achangeover switch that connects pin including proprietary variants such as the
3 either to the positive supply or to OV. HEXFET were given in the January 2003
This is not a perfect analogy though, column. Following this we were asked
because the bipolar i.c. circuit cannot about the linear operation of MOSFETs.
switch from "rail to rail" — even when the We assume this meant use in linear ampli-
output is "low" there may still be some fiers, although the phrase could be ambigu-
measurable potential which means that D2 ous as they have two main modes (or
may still glow dimly. Similarly when pin 3 regions) of operation — saturated and lin-
is "high" it will not reach the full supply ear. In this month's Surgery we look at the
Fig. 1. How pull-up or pull-down loads rail voltage. An alternative arrangement various regions of operation of MOSFETs
allow sink or source currents to flow. using abi-colour 1.e.d. is shown in Fig.2 before looking at linear circuits.
emt dmi>,
The books listed have been selected by Everyday Practical Electronics
editorial staff as being of special interest to everyone involved in elec-
tronics and computing. They are supplied by mail order to your door.
Full ordering details are given on the last book page.
EPE TEACH-IN For afurther selection of books see the next two issues of EPE.
2000 CD-ROM
Radio
The whole of the 12-part Teach-In 2000 series by John
Becker (published in EPE Nov '99 to Oct 2000) is now
available on CD-ROM. Plus the Teach-In 2000 interac-
tive software covering all aspects of the series and
Alan Winstanley's Basic Soldering Guide ( including
BASIC RADIO PRINCIPLES AND TECHNOLOGY AN INTRODUCTION TO AMATEUR RADIO
illustrations and Desoldering).
Ian Poole I. D. Poole
Teach-In 2000 covers all the basic principles of elec- Radio technology is becoming increasingly important in Amateur radio is a unique and fascinating hobby which
tronics from Ohm's Law to Displays, including Op.Amps. today's high technology society. There are the traditional has attracted thousands of people since it began at the
Logic Gates etc. Each part has its own section on the inter- uses of radio which include broadcasting and point to turn of the century. This book gives the newcomer acom-
active software where you can also change component point radio as well as the new technologies of satellites prehensive and easy to understand guide through the
values in the various on-screen demonstration circuits. and cellular phones. All of these developments mean subject so that the reader can gain the most from the
The series gives a hands-on approach to electronics there is a growing need for radio engineers at all levels. hobby. It then remains an essential reference volume to
with numerous breadboard circuits to try out, plus asim- Assuming a basic knowledge of electronics, this book be used time and again. Topics covered include the basic
ple computer interface which allows a PC to be used as provides an easy to understand grounding in the topic. aspects of the hobby, such as operating procedures, jar-
a basic oscilloscope Chapters in the book: Radio Today, Yesterday, and gon and setting up a station. Technical topics covered
Tomorrow; Radio Waves and Propagation; Capacitors, include propagation, receivers, transmitters and aerials
ONLY £12.45 including VAT and p&p Inductors, and Filters; Modulation; Receivers; etc.
Transmitters; Antenna Systems: Broadcasting; Satellites; 150 pages Order code BP257 £ 5.49
Order code Teach-In CD-ROM Personal Communications; Appendix - Basic
Calculations.
VALVE RADIO AND AUDIO REPAIR HANDBOOK
Robotics
263 pages Order code NE30 £ 17.99 (Second Edition) Chas Miller
This book is not only an essential read for every profes-
sional working with antique radio and gramophone
PROJECTS FOR RADIO AMATEURS AND S.W.LS. equipment, but also dealers, collectors and valve tech-
R. A. Penfold nology enthusiasts the world over. The emphasis is firm-
INTRODUCING ROBOTICS WITH LEGO MINDSTORMS
This book describes anumber of electronic circuits, most ly on the practicalities of repairing and restoring, so
Robert Penfold
of which are quite simple, which can be used to enhance technical content is kept to a minimum, and always
Shows the reader how to build avariety of increasingly sophis-
the performance of most short wave radio systems. explained in a way that can be followed by readers with
ticated computer controlled robots using the brilliant Lego
Mindstorms Robotic Invention System (RIS). Initially covers The circuits covered include: An aerial tuning unit; A no background in electronics. Those who have a good
fundamental building techniques and mechanics needed to simple active aerial; An add-on b.f.o. for portable sets; grounding in electronics, but wish to learn more about
construct strong and efficient robots using the various -dick- A wavetrap to combat signals on spurious responses; An the practical aspects, will benefit from the emphasis
together components supplied in the basic RIS kit. Then audio notch filter; A parametric equaliser; C.W. and S.S.B. given to hands-on repair work, covering mechanical as
explains in simple terms how the 'brain' of the robot may be audio filters; Simple noise limiters; A speech processor; A well as electrical aspects of servicing. Repair techniques
programmed on screen using aPC and "zapped" to the robot volume expander. are also illustrated throughout.
over an infra-red link. Also, shows how a more sophisticated Other useful circuits include a crystal oscillator, and A large reference section provides a range of infor-
Windows programming language such as Visual BASIC may RTTY/C.W. tone decoder, and a RTTY serial to parallel mation compiled from many contemporary sources, and
be used to control the robots. converter. A full range of interesting and useful circuits for includes specialist dealers for valves, components and
Details building and programming instructions provided, short wave enthusiasts. complete receivers
including numerous step-by-step photographs.
92 pages Order code BP304 £4.45 270 pages Order code NE34 £23.99
288 pages- large format Order code BP901 £14.99
Design
Many electronic hobbyists who have been pursuing their P.W.M. motor speed control, RS232C data links, MIDI
hobby for a number of years seem to suffer from the link, Loop alarms, R.P.M. meter.
dreaded "seen it all before" syndrome. This book is fairly All the components used in these designs are readily
and squarely aimed at sufferers of this complaint, plus available, none of them require the constructor to take out
any other electronics enthusiasts who yearn to try some- a second mortgage.
PRACTICAL ELECTRONIC FILTERS thing a bit different. No doubt many of the projects fea-
Owen Bishop tured here have practical applications, but they are all 132 pages Order code BP374 £5.45
This book deals with the subject in a non- mathematical worth a try for their interest value alone.
way. It reviews the main types of filter, explaining in sim- The subjects covered include:- Magnetic field detector,
ple terms how each type works and how it is used. Basic Hall effect compass, Hall effect audio isolator, Voice
The book also presents a dozen filter-based projects
scrambler/descrambler, Bat detector, Bat style echo loca-
with applications in and around the home or in the
constructor's workshop. These include anumber of audio
tion, Noise cancelling, LED stroboscope, Infra- red "torch",
Electronic breeze detector, Class D power amplifier,
RADIO BYGONES
projects such as a rythm sequencer and a multi-voiced We also carry a selection of books
Strain gauge amplifier, Super hearing aid.
electronic organ.
aimed at readers of EPEs sister maga-
Concluding the book is apractical step-by-step guide to 138 pages Order code BP371 £5.45
designing simple filters for awide range of purposes, with zine on vintage radio Radio Bygones.
circuit diagrams and worked examples. These books include the Comprehensive
FAULT-FINDING ELECTRONIC PROJECTS
88 pages Order code BP299 £5.49 R. A. Penfold Radio Valve Guides ( five books with a
Starting with mechanical faults such as dry joints, short-circuits
DIGITAL ELECTRONICS - Free copy of the Master Index) for just
etc, coverage includes linear circuits, using a meter to make
A PRACTICAL APPROACH £15. Also Jonathan Hill's excellent Radio
FREE voltage checks, signal tracing techniques and fault finding on
With FREE Software: Number One SOFTWARE
Systems - EASY-PC
logic circuits. The final chapter covers ways of testing a wide Radio, a comprehensive book with hun-
range of electronic components, such as resistors, capacitors,
Professional XM and Pulsar (Limited Functionality) operational amplifiers, diodes, transistors, SCRs and theca
dreds of photos depicting the develop-
Richard Monk with the aid of only alimited amount of test equipment. ment of the British wireless set up to the
Covers binary arithmetic, Boolean algebra and logic The construction and use of aTestate Continuity Tester, a
gates, combination logic, sequential logic including the
late 1960s.
Signal Tracer, a Logic Probe and a CMOS Tester are also
design and construction of asynchronous and synchro- included. The three volumes of our own Wireless
nous circuits and register circuits. Together with aconsid- For the Warrior by Louis Meulstee are
erable practical content plus the additional attraction of its 136 pages Order code BP391 £5.49
close association with computer aided design including also available. These are a technical his-
the FREE software. PRACTICAL F1BRE-OPTIC PROJECTS tory of radio communication equipment in
R. A. Penfold
There is a 'blow-by-blow' guide to the use of EASY- PC the British Army from pre-war through to
Professional XM (aschematic drawing and printee circuit While fibre-optic cables may have potential advantages
board design computer package). The guide also con- over ordinary electric cables, for the electronics the 1960s.
ducts the reader through logic circuit simulation using enthusiast it is probably their novelty value that makes For details see the shop on our UK web
Pulsar software. Chapters on p.c.b. physics and p.c.b. them worthy of exploration. Fibre-optic cables provide an
site at www.epemag.wlmborne.co.uk or
production techniques make the book unique, and with innovative interesting alternative to electric cables, but in
its host of project ideas make it an ideal companion for most cases they also represent a practical approach to contact us for a list of Radio Bygones
the integrative assignment and common skills compo- the problem. This book provides a number of tried and books.
nents required by BTEC and the key skills demanded by tested circuits for projects that utilize fibre-optic cables.
GNVO. The principal aim of the book is to provide a
straightforward approach to the understanding of digital
electronics.
Those who prefer the 'Teach- In' approach or would
rather experiment with some simple circuits should find
the book's final chapters on printed circuit board produc- BOOK ORDERING DETAILS
tion and project ideas especially useful. All prices include UK postage. For postage to Europe ( air) and the rest of the world ( surface)
250 pages (large format) Order code NE28 21v.99 please add £2 per book. For the rest of the world airmail add £3 per book. CD-ROM prices
include VAT and/or postage to anywhere in the world. Send a PO, cheque, international money
A BEGINNER'S GUIDETOTTL DIGITAL ICs
R. A. Penfold order (£ sterling only) made payable to Direct Book Service or card details, Visa, MasterCard,
This book first covers the basics of simple logic circuits in Amex, Diners Club or Switch to:
general, and then progresses to specific TTL logic DIRECT BOOK SERVICE, WIMBORNE PUBLISHING LTD.,
integrated circuits. The devices covered include gates, 408 WIMBORNE ROAD EAST, FERNDOWN, DORSET BH22 9ND.
oscillators, timers, flip/flops, dividers, and decoder cir-
cuits. Some practical circuits are used to illustrate the use Books are normally sent within seven days of receipt of order, but please allow 28 days for
of TTL devices in the " real world" delivery — more for overseas orders. Please check price and availability (see latest issue of
142 pages Order code BP332 £5.45
Everyday Practical Electronics) before ordering from old lists.
For a further selection of books see the next two issues of EPE.
DOMESTIC SECURITY SYSTEMS Tel 01202 873872 Fax 01202 874562. Email: dbs@epemag.wimborne.co.uk
A. L. Brown Order from our online shop at: www.epemag.wimborne.co.uk/shopdoor.htm
This book shows you how, with common sense and
basic do-it-yourself skills, you can protect your home. It
also gives tips and ideas which will help you to maintain
and improve your home security, even if you already
have an alarm. Every circuit in this book is clearly
described and illustrated, and contains components
that are easy to source. Advice and guidance are based
BOOK ORDER FORM
on the real experience of the author who is an alarm
installer, and the designs themselves have been rigor- Full name:
ously put to use on some of the most crime- ridden
streets in the world.
The designs include all elements, including sensors,
Address:
detectors, alarms, controls, lights, video and door entry
systems. Chapters cover installation, testing, mainte-
nance and upgrading.
MICROCONTROLLER COOKBOOK
Post code . Telephone No:
Mike James
The practical solutions to real problems shown in this cook-
book provide the basis to make PIC and 8051 devices real- Signature:
ly work. Capabilities of the variants are examined, and
ways to enhance these are shown. A survey of common
interface devices, and a description of programming fl Ienclose cheque/PO payable to DIRECT BOOK SERVICE for £
models, lead on to a section on development techniques.
The cookbook offers an introduction that will allow any EJ Please charge my card £ Card expiry date
user, novice or experienced, to make the most of micro-
controllers.
Card Number Switch Issue No
240 pages Order code NE26 £23.99
Card Security Code ( The last 3digits on or just below the signature strip)
tersA Everyday
6-Channel Mains Interface 381 £5.08
EPE Minder - Transmitter 378 £4.75 gib
- Receiver
*Wind Speed Monitor
379
380
£5.39
£5.08
wousasse.
,
Practical Electronics
Tesla Transformer FEB 03 382 £5.07 MasterCard, Amex, Diners
Massif»
*Brainibot Buggy 383 £3.00
*Wind Tunnel 384 £6.02 Club, Visa or Switch
200kHz Function Generator MAR 03 385 £6.34
Wind- Up Torch Mk II 386 £4.75 Card No.
*Driver Alert 387 £6.35
Card Exp. Date Switch Issue No
*Earth Resistivity Logger APR ' 03 388 £6.02
*Intelligent Garden Ligits Controller 389 £3.96 Card Security Code
*PIC Tutorial V2 - Software only (The last 3digits on or just under the signature strip)
Door Chime MAY ' 03 390 £5.07
Super Motion Sensor 391 £5.55 Signature
Radio Circuits- 1MK484 TRF Receiver JUNE ' 03 392 £4.44
NOTE: You can also order p.c.b.s by phone, Fax, Email or via our
Headphone Amp. 393 £4.28
*Fido Pedometer 394 £4.91
Internet site on asecure server:
*PICronos L.E.D. Wall Clock 395 £14.65 http://www.epemag.wimborne.co.uk/shopdoor.htm
• In-depth theory
• Projects to build
format
• Professionally written
• Regular Supplements
CI RCUITS TO BUILD: There's nothing to beat the satisfaction of The Manual also covers Safety and provides web links to
creating your own projects. From basic principles, like soldering component and equipment Manufacturers and Suppliers.
and making printed circuit boards, to the tools needed for The most comprehensive reference work ever produced at a price
circuit- building, the Modern Electronics Manual and its you can afford, the CD-ROM edition of THE MODERN
Supplements describe clearly, with appropriate diagrams, how to ELECTRONICS MANUAL provides you with all the essential
assemble a radio, loudspeaker ci-cuits, amplifiers car projects, information you need.
EVERYTHING YOU NEED TO KNOW TO GET STARTED IN The essential work for
REPAIRING AND SERVICING ELECTRONIC EQUIPMENT
servicing and repairing
SAFETY: Be knowledgeable about Safety Regulations, Electrical Safety and First Aid.
electronic equipment
UNDERPINNING KNOWLEDGE: Specific sections enable you to Understand Electrical
and Electronic Principles, Active and Passive Components, Circuit Diagrams, Circuit • Around 900 pages
Measu'ements, Radio, Computers, Valves and Manufacturers Data, etc. • Fundamental principles
• Troubleshooting techniques
PRACTICAL SKILLS: Learn how to identify Electronic Components, Avoid Static
Hazards, Carry Out Soldering and Wiring, Remove and Replace Components. • Servicing techniques
• Choosing and using test
TEST EQUIPMENT: How to Choose and Use Test Equipment, Assemble aToolkit, Set
equipment
Up aWorkshop, and Get the Most from Your Multimeter and Oscilloscope, etc.
• Reference data
SERVICING TECHNIQUES: The regular Supplements include vital guidelines on how to
• Easy- to- use format
Service Audio Amplifiers, Radio Receivers, TV Receivers, Cassette Recorders, Video
Recorders, Personal Computers, etc. • Clear and simple layout
• Vital safety precautions
TECHNICAL NOTES: Commencing with the IBM PC, this section and the regular
Supplements deal with avery wide range of specific types of equipment — radios, TVs, • Professionally written
cassette recorders, amplifiers, video recorcers etc.. • Regular Supplements
REFERENCE DATA: Detailing vital parameters for Diodes, Small- Signal Transistors, • Sturdy gold blocked ring-binder
Power Transistors, Thyristors, Triacs and Field Effect Transistors. Supplements include
Operational Amplifiers, Logic Circuits, Optoelectronic Devices, etc.
r PLEASE send me
VISA ORDER FORM
Simply complete and return the order form with your
D THE MODERN ELECTRONICS MANUAL (
CD-ROM version only) payment to the following address'
Wimbome Publishing Ltd, Dept. VI, 408 Wimborne
E ELECTRONICS SERVICE MANUAL plus aFREE SUPPLEMENT (
Printed version only) Road East, Femdown, Dorset BH22 9ND
Ienclose payment of £29.95 (for one Manual) or £39.90 for both Manuals (saying £20 by We offer a 30 day MONEY BACK GUARANTEE
ordering both together) plus postage if applicable.
on ESM - see the panel above for details.
Ialso require the appropriate ESM Suppiements four times ayear. These are billed
separately and can be discontinued at any time. (
Please delete if not required.)
POSTAGE CHARGES FOR ESM
FULL NAME MEM CD-ROM POST FREE TO ALL COUNTRIES
(PLEASE PRINT) (Note we use the VAT portion of the MEM CD-ROM payment
ADDRESS to pay for overseas postage)
If you want your advertisements to be seen by the largest readership at the most economical price our classified and semi-display
pages offer the best value. The prepaid rate for semi- display space is £ 10 (+ VAT) per single column centimetre ( minimum 2.5cm).
The prepaid rate for classified adverts is 40p (+ VAT) per word ( minimum 12 words).
All cheques, postal orders, etc., to be made payable to Everyday Practical Electronics. VAT must be added. Advertisements, together
with remittance, should be sent to Everyday Practical Electronics Advertisements, Mill Lodge, Mill Lane, Thorpe-le-Soken, Essex C016
OED. Phone/Fax (01255) 861161.
For rates and information on display and classified advertising please contact our Advertisement Manager, Peter Mew as above.
PRECISION SHEET damage to semiconductors or p.c.b.s. tion business. Would suit entrepreneur or addition to similar
audio/TV servicing business. Phone 07812 747518.
* New Product * Cost Effective
METAL COMPONENTS * Free Details
ANY KIT OR INFORMATION on Marconi AD 37 Tx. AD 38
Rs. AD32 DF Rn or similar equipment and/or accessories. For
* Safer than most solder itself 1930s civil aircraft restoration project. ( 14FAA, QTHR - 0208
CHASSIS, PANELS, BRACKETS ETC
300 1894 iSidcup).
SPECIALIST IN SMALL BATCH PRODUCTION * Trade and Retail Enquiries Welcome TEACH- IN 82 SERIES MINII.AB ( as in Part U. all 12 parts
of series and components. Finad photo available. Maplin
TEL: JOHN - 01268 694662 TEL: 0778 770 3785 Home Alarm x 12, 555 Vinyl-Kit. £ 65 onsi. inc. UK p&p. Tel:
01789 414005 ir richard f) thonia,(retalk 2I . com.
competition-robotics.corn
1
zet,ek, • kacç
-
Low cost USB I/O
011, For Datalogging & Control
THE [MACK U12 - ONLY E95
• 8- Analogue in, 2- Analogue out, 20 digital I/O
counter, watchdog
h
• Visual Basic, C++,
17.1
. '. .
.".
N. R. BARDIIVELL LTD (Est. 1948) Delphi, LabVIEW,
Testpoint drivers tio
'DO Sp.. Oactes 1144148 £ 100 PC 4,4,P 0acac,.., ' ,1, '.. F CI X Ho„
75 Peddler Diodes 1444001 £100 20e AsCrl dsr rerame receptors £100
• Control pumps, ti Iii-
y ititl 1
50 Redder Diodes 1414007 ICO 50 Asstd Skei Presets Isrn stand. rermel) £ 190
10 W01 Bndge Reedier! £100 50 Awed RF chokes Inductors) f100 lights, valves with
10 555 Tenet 1 Cs 100 50 Asuld grommets £ 100
4 741 Op Amps £ 1.03 10 Ac-10 crystals - plug In fI00 Relay and
8 As.td PI syetcnes - £ 100
50
12
Assorted Lefler Drodes 40OrnW
Assorted 7-segmeet Displays
£100
£100 8 AssId push-button watches, writi-t3ank. nib-pole £ 100 opto-input
As.td el sockets up tO 40 way
35
25
Assorted I
5mm I
eds. wr shapes. colours asues .01.00
eds. red or green or ego« £ t.00
Xt
ID TV coax plugs piastc
£ 1.00
fI00 expansion boards
25 3mm I eds. red or green or wItow _0103 40 nonnes only thin connecIng wire, red £100
75 5rnm Ied s, green. 6:5mm legs . £ 1.00 20 141. glass teed stenches t1 00
50 &cal Ie.d s. 2mcd red Dee Package £ 1.00 100 Arse. value )4W 5% cl resntors range IR to 101A . 00.4.5
25 Awed Hcin Bnghtness 1 e0s. we cols £ 100 IC 7812 voltage Regulators fI00
20 BC182L Transstors 01 00 X9 Asstd. resetors % 14/r1,W. mosey on tapes fl .00
25 BC2121.Transstors £ 1.00
30 BC237 Transees . .. 01.00
20 BC 327 Transistors . 11.00
288 Abbeydale Road, Sheffield S7 1FI.
381 8C328 Transetors . 1100
30 BC547 Transistors .. 01.00 Phone focal rate): 0845 166 2329
29 BC54713Transeta .. 01.00 Fax: 0114 255 5039 All prices exclude VAT and delivery Order on line major credit/debit cards accepted.
30 BC548 Transetors .. CI 00
30 BC549 Tramestors ... 01.00 e-mail: sales« bardwells.co.uk
IIIII I
I0II Electronics
25 BC557 Transators . 01.00 web, www.bardweils.couk
30 BC558 Transators ...£1.00 Prices Include VAT. Postage 01.65
30 BC559 Transstors 44p stamp for lists or disk
20 293504 Tranustors . .. 01.00 P0a. Cheques and Credit Cards accepted
100 Int 50V Wrg Aztal Caparrors ...£1.00
www.audon.co.uk +44 8:8115 925 8412 <, Fax loll 15 925 9757
SEE OUR WEB PAGES FOR MORE
100 4117 50V Ow Aysl Caparrtcrs ..£1.00 COMPONENTS ANC SPECIAL OFFERS
80 AsstO receptors electmlybc- ...£1.00
Published on approximately the second Thursday « each month by Wimhome Publishing Ltd., 408 Wimbome Road East, Ferndown, Dorset BH22 9ND. Printed in England by Apple Web Offset Ltd., Ww-ringion.
WA I4RW. Distributed by COM AG Magazine Marketing. Tavistock Rd.. West Drayton, UB7 7()E. Subscriptions INLAND: £ 16.50 ( 6months); £ 31112 months): £ 57 ( 2years). OVERSEAS: Standard air ser-
vice. £ 19.50 ( 6 months); £ 37 112 months): £69 ( 2 years). Express airmail. £ 28.50 ( 6 months): £55 112 months): £ 105 ( 2years). Payments payable to " Everyday Practical Electronics", Subs Dept, Wimborne
Publishing Ltd. Email: subseepemag.wimbome.couk. EVERYDAY PRACTICAL ELECTRONICS is sold subject to the following conditions, namely that it shall not, without the written consent of the
Publishers first having been given, be lent, resold, hired out or otherwise disposed of by way of Trade at more than the recommended selling price shown on the cover, and that it shall not be lent, resold, hired
out or otherwise disposed of in amutilated condition or in any unauthorised cover by way of Trade or affixed to or as part of any publication or advertising, literary or pictorial matter whatsoever.
PIC BASI
The most cost effective solution to PIC programming and development - Ever!!
Associates
smart electronic solutions
• Real- Time Syntax checking • Specific commands for on- chip peripherals
. Integrated PIC Programmer driver • Comprehensive comrrand set
. Program with one keystroke -Tighter code generation than MBASIC
. View BASIC and the resulting Assembly -More functionality than ME LABS PICBASIC Pro
. Supplied with book " LET PIC BASIC -More flexible than all BASIC Stamps
Unleashed" by Les Johnson • Integrates directly into Proteus VSM - allows you to
build a virtual circuit and see your BASIC code run
Free Evaluation copy from: in real-time - , ocenter.co.uk
www.picbasic.org • Easy macro Integration
(includes Floating pointmath example)
PC P7ASIC £65 .: 00 • Aimed at graduates, and professionals, all code In
produced is LICENCE FREE
system
CARDS using PIC BASIC. This versatile development
system provides a platform for the development of
applicatiois using SMART memory cards and SECURE memory
cards. Detailed documentation describes all aspects of mg NET Development
T
•C)
CLe
development using the sample cards supplied. source code
he worlds First PIC BASIC InterNet development
and circuit diagrams are included.
system allowing PIC BASIC projects to
. Includes card Reader Writer hardware and Wean
. Integrated Boot Loader - No programmer requires,
communicate across the WORLD via the InterNet.
. Sample cards. Documewatuon Development board includes RS232, Ethernet Interface E
. Fully co merited LICENS FREE Source cede and dedicated controller, LCD, è
Prototype area, Power supply and full documentation.
95
over
Proton Net £ 160.95
„ ear
_
other PIC BASIC products, including:
2
m
x16 serial LCD display, supplied as a kit or
ready assembled. PCB, PlCmicro, LCD eS VSM DEV DEV -IR
display, Circuit. _ ICENSE FREE commented
Er
source code
Full range of Www. labcenter. co. uk Infra RED TX and Rx ebe-
DEVELOPMENT boards. Proteus VSM development system , •
roton CD £ 16.9 incl Graphics LCD's Full} supported by with experiments and o
l
and Audio PICBASIC Plus source code
0
N
THE RENOWNED MXF SERIES OF POWER AMPLIFIERS I
T
0
FOUR MODELS:- MXF200 ( 1oevi +100W) MXF400 ( 20CW + 200W)
MXF600 (300W + 300W) MXF900 ( 450W + 450W) PLEASE NOTE:- POWER RATINGS
QUOTED ARE IN WATTS R.M.S. FOR
ALL POWER RATINGS ARE R.M.S. INTO 4OHMS, WITH BOTH CHANNELS DRIVEN
EACH INDIVIDUAL CABINET ALL
FEATURES:- Independent power supplies with two toroidal transformers
'Twin L.E.D. Vu Meters • Level controls • Illuminated on/off switch ' Jack / XLR inputs • ENCLOSURES ARE 8 OHMS
Speakon Outputs * Standard 775mv inputs Open and Short circuit proof Latest Mos-Fets 15=15 Inch speaker
for stress free delivery into virtually any load • High slew rate • Very low distortion • Aluminium 12=12 Inch speaker
cases • MXF600 & MXF900 fan cooled with -D.C. Loudspeaker arid thermal protection. ibl FC15-300 WATTS Freq Range 35Hz-20kHz,Sens 101dB. Size H695 W502 D415mm
USED THE WORLD OVER IN CLUBS, PUBS, CINEMAS, DISCOS ETC Price: - £299.00 per pair
ibl FC12-300 WATTS Freq Range 45Hz-20kHz, Sens 96dB, Size H600 W405 D300mm
MXF200 W19' D11" H3 /" 2U
MXF400 W19" D12" I-15 3U Price: - £249.00 per pair
SIZES:- MXF600 W19" D'3" H5 3U ibl FC12-200 WATTS Freq Range 40Hz-20kHz, Sens 97dB, Size H600 W405 D300mm
MXF900 W19' D14" H5Vi" 3U Price: - £ 199.00 per pair
PRICES:- MXF200 £ 175.00 MXF400 £ 233.85 ibl FC12-100 WATTS Freq Range 45Hz-20kHz, Sens 100dB, Size H546 W380 D300mm
MXF600 £ 329.00 MXF900 £ 449.15 Price: - £ 179.00 per pair
SPECIALIST CARRIER DEL £ 12.50 Each ibl WM12-200 WATTS Freq Range 40Hz-20kHz, Sens 97dB, Size H418 W600 D385mm
Price: - £ 125.00 Each
SPECIALIST CARRIER DEL:- £ 12.50 per pair, wedge monitor £7.00 each
Optional Metal Stands PRICE -- £49.00 per pair Delive:- £6.00
• :
ctroni Kit
,FAS\XTA1711\
y <lOT>\\ CT'OTI\ /43-A'S-e MID/TOP \
CONFIGURED 3 WAY 2WAY BASS/MID COMBINED 2 WAY MID/TOP COMBINED
FEATURES: -
Advanced 3-Way Stereo Active Cross-Over (Switchable two way), housed in a19" x1U case. Each
channel has three level controls: Bass, Mid & Top. The removable front facia allows access to the
programmable DIL switches to adjust the cross-over frequency: There are two versions available:-
X03- S Bass- Mid 125/250/500Hz, Mid- Top 1.8/3/5kHz, all at 24 dB per octave.
X03 Bass- Mid 250/500/800Hz. Mid- Top 1 8/3/5kHz, all at 24 dB per Octave.
Please make sure you ask for the correct model when ordering. The 213 way selector switches are
also accessed by removing the front facia. Each stereo channel can be configured separately. Bass
Invert Switches are incorporated on each channel. Nominal 775mV input/output. Fully compatible
with the OMP Rack Amplifier and Modules.
BOTH MODELS PRICED AT :- £ 117.44 + £5.00 P&P
SUPPUED READY
el111211[01:21àagelIA1:1A111011à1g:111[0]Ifiliare11 BUILT AND TESTED
These modules now enjoy aworld-wide reputation for quality, reliability and performance at arealistic price. Four
models are available to suit the needs of the professional and hobby market . le. Industry, Leisure, Instrumental
ad Hi- Fi etc. When comparing prices. NOTE that all models include toroidal power supply, integral heatsink,
I'rus fibre PC B and dnve circuits to power acompatible Vu meter All models are open and short circuit proof
THOUSANDS OF MODULES PURCHASED BY PROFESSIONAL USERS
OMP/MF 100 Mos-Fet Output Power 110 watts
curi R.M.S. into 4 ohms,freq_uency response 1Hz -
100kHz -3d13„ Damping Factor > 300, Slew Rate
ectronics 45V/uS, T.H.D. typical 0.002%, Input Sensitivity
500mV, S.N.R. 110dB. Size 300 x 123 x 60mm.
Unit 1. Comet Way. Se.One...1-':.,
E•444. 2 6"i".4 on Price:- £42.85 + £4.00 P&P
017#12.K-•-iirn Fax,- 01707-420243 OMP/MF 200 Mos-Fet Output Power 200 watts
FRE 0 r L R.M.S. into 4 ohms,freqpency response 1Hz -
over 3000 *.Y. rest 100kHz -3d13, Damping Factor >300, Slew Rate
50V/uS, T.H.D. typical 0.001% Input Sensitivity
500mV, S.N.R. 110dB. Size 300 x 155 x 100mm.
Price:- £66.35 + £4.00 P&P
OMP/MF 300 Mos-Fet Output Power 300 watts
R.M.S. into 4 ohms,freq_uency response 1Hz -
100 WATI" ACTIVE SUB BASS AMPLIFIER PANEL 100kHz - 3dES, Damping Factor > 300, Slew Rate
60V/uS, T.H.D. typical 0.001%, Input Sensitivity
AN ACTIVE SUB BASS AMPLIFIER WITH A TRUE 100W 500mV ,S.N.R. 110dB. Size 330 x 175 x 100mm.
. _ • RMS OUTPUT. SUPERB CONSTRJCTION WITH THE Price:- £83.75 + £5.00 P&P
FACILITIES TO INTEGRATE SEEMLESSLY INTO MOST
HI- Fl OR HOME CINEMA SETUPS USE THIS PANEL OMP/MF 450 Mos-Fet Output Power 450 watts
PLUS ONE OF OUR LOUDSPEAKERS TO MAKE YOUR R.M.S. into 4 ohms,freqpency response 1Hz -
OWN SUB WOOFER THAT WILL MATCH OR BEAT MOST 100kHz -3dB, Damping Factor >300, Slew Rate
COMMERCIALLY AVAILABLE SUB WOOFERS. 75V/uS, T.H.D. typical 0.001%, Input Sensitivit/
500mV, S.N.R. 110dB. Fan Cooled, D.C.
'mar • FEATURES:- • 100W RMS INTO 8 OHMS • HIGH AND
LOW LEVEL INPUTS TOROIDAL TRANSFORMER
Loudspeaker Protection, 2 Second Anti Thump
Delay. Size 385 x210 x 105mm.
• SHORT CIRCUIT PROTECTION ' D.C. SPEAKER Price:- £ 135.85 + £6.00 P&P
PROTECTION • FREQUENCY ROLL OFF, LOWER
10Hz, UPPER 60Hz TO 240Hz ( FULLY ADJUSTABLE) OMP/MF 1000 Mos-Fet Output Power 1000 watts
* AC3 COMPATIBLE FILTER CAN BE BYPASSED R.M.S. into 2 ohms, frequency response 1Hz -
FOR 5-1 FORMATS. • AIRTIGHT CONSTRUCTION 100kHz -3c113, Damping Factor >300, Slew Rate
•TENS Oc THOUSANDS OF OLA PANELS ALREADY 75V/uS, T.H.D. typical 0.001%, Input Sensitivb
IN USE. • COMPLETE WITH LEADS 500mV, S.N.R. 110dB. Fan Cooled, D.C.
Loudspeaker Protection, 2 Second Anti Thump
SPECIFICATIONS:- • POWER 100W RMS @ 8 OHMS • FREO RESP. 10Hz 15KHz Delay. Size 422 x300 x 125mm.
-3dB DAMPING FACTOR >200 DISTORTION 0.05% S/N A WEIGHTED Price:- £261.00 + £ 12.00 P&P
>100dB • SUPPLY 230V A.C. WEIGHT 2.7Kg SIZE H254 X W254 X D94mm NOTE MOS-FET MODULES APE AVAILABLE IN TWO VlERSIONS:
STANDARD - INPUT SENS 500mV,BANDWIDTH 1001diz. OR PEC
THERE ARE 2 VERSIONS OF THE ABOVE PANEL AVAILABLE :- BSB100/8 (PROFESSIONAL EQUIPMENT COVPATIBLE) - INPUT SENS
8 OHM VERSION BSB100/4 4 OHM VERSION BOTH PANELS ARE PRICED AT 77cerV, IIVIDVVIDTH Metz ant:ER srANDARD OR MC
B K ELECTRONICS
£117.44 + £5.00 P&P INCL. V.A.T. CHECK WEBSITE FOR ) iniNL._S
REF D5
DELIVERY CHARGES:- PLEASE INCLUDE AS ABOVE UNIT 1COMET WAY, SOUTHEND-ON-SEA, ESSEX. SS2 6TR.
TO A MAXIMUM AMOUNT £30.00. OFFICIAL ORDERS
VISA FROM SCHOOL, COLLEGES GOVT.,_PLCs ETC. PRICES TEL.: 01702-527572 FAX.: 01702-420243
INCLUSIVE OF V.A.T. SALES COUNTER. CREDIT CARD Web:- http://www.bkelec.com E- Mail sales@bkelec.com
ORDERS ACCEPTED BY POST PHONE OR FAX.