2005 09
2005 09
WARNING!
The materials and works contained within EPE Online — which are made
available by Wimborne Publishing Ltd and TechBites Interactive Inc —
are copyrighted. You are permitted to make a backup copy of the downloaded file
and one (1) hard copy of such materials and works for your personal use.
International copyright laws, however, prohibit any further copying or
reproduction of such materials and works, or any republication of any kind.
PHOTIC PHONE
The Photic Phone slices up the human voice into forty-
thousand binary segments a second, transmits it over a
light-beam, then re-integrates it at the other side. That is,
it applies pulse width modulation (p.w.m.) to the voice, to
create a binary transmission. This has the advantage of
always transmitting at full intensity, meaning that even the
weakest nuances of a voice will reach the receiver as
strongly as the rest.
HALLOWEEN HOWLER
The circuit typically has a range five times greater than Halloween’s coming – why not give your “trick or treat”
similar analogue circuits. Without the use of lenses, the visitors a scare?! Picture a pumpkin head, eyes lighting
prototype achieved a range of four metres. With a single up red and emitting an eerie howl when someone walks
lens at the transmitter, it achieved a range of fifteen past it!
metres. With the use of two lenses, it should achieve a Although intended to help generate a bit of fun over
range of fifty metres using a single cheap, ultrabright Halloween this project also serves to demonstrate just
l.e.d. It is all but impossible for anyone to eavesdrop on a how easy (and cheap) it can be to output audio in an
transmission. electronics project. The sound comes from a pre
recorded computer “WAV” file stored in a small EEP-
ROM memory. WAV files can be downloaded from the
internet, extracted from music CDs and even recorded
PLUS BACK TO BASICS – 7 by yourself on a PC using software supplied with most
ɀ Parking Radar operating systems.
The circuit described can be configured into one of two
modes of operation: Halloween Howler, which includes
Avoid expensive mishaps to that car behind you.
a light sensor to detect moving objects, and a generic
ɀ Telephone Switch 3-input design that allows one of three stored sound
samples to be played when an input is asserted. This
Phone home and remotely control an electric appliance second setup provides a more general purpose sound
while you’re away. generator that can have a number of uses.
ABC Maxi AVR Development Board NEW! DTMF Telephone Relay Switcher
PIC & ATMEL Programmers The ABC Maxi board Call your phone number
has an open architec- using a DTMF phone from
We have a wide range of low cost PIC and ture design based on anywhere in the world
ATMEL Programmers. Complete range and Atmel’s AVR and remotely turn on/off
documentation available from our web site. AT90S8535 RISC any of the 4 relays as
Programmer Accessories: microcontroller and is desired. User settable
40-pin Wide ZIF socket (ZIF40W) £15.00 ideal for developing new designs. Security Password, Anti-Tamper, Rings to
Features: Answer, Auto Hang-up and Lockout.
18VDC Power supply (PSU010) £19.95
8Kb of In-System Programmable Flash Includes plastic case. 130 x 110 x 30mm.
Leads: Parallel (LDC136) £4.95 / Serial
(1000 write/erase cycles) • 512 bytes Power: 12VDC.
(LDC441) £4.95 / USB (LDC644) £2.95
internal SRAM • 512 bytes EEPROM Kit Order Code: 3140KT – £39.95
• 8 analogue inputs (range 0-5V) Assembled Order Code: AS3140 – £59.95
• 4 Opto-isolated Inputs (I/Os are
NEW! USB ‘Flash’ PIC Programmer bi-directional with internal pull-up resistors) Serial Port Isolated I/O Module
USB PIC programmer for most • Output buffers can sink 20mA current Computer controlled
‘Flash’ devices. No external (direct l.e.d. drive) • 4 x 12A open drain 8-channel relay
power supply making it truly MOSFET outputs • RS485 network board. 5A mains
portable. Supplied with box connector • 2-16 LCD Connector rated relay outputs
and Windows Software. ZIF • 3·5mm Speaker Phone Jack and 4 opto-isolated
Socket and USB Plug A-B lead • Supply: 9-12VDC. digital inputs (for
not incl. The ABC Maxi STARTER PACK includes monitoring switch
Kit Order Code: 3128KT – £34.95 one assembled Maxi Board, parallel and states, etc). Useful in a variety of control
Assembled Order Code: AS3128 – £39.95 serial cables, and Windows software and sensing applications. Programmed via
CD-ROM featuring an Assembler, serial port (use our new Windows interface,
BASIC compiler and in-system terminal emulator or batch files). Serial
“PICALL” ISP PIC Programmer programmer. cable can be up to 35m long. Includes
“PICALL” will program Order Code ABCMAXISP – £89.95 plastic case 130 x 100 x 30mm. Power:
virtually all 8 to 40 The ABC Maxi boards only can also be 12VDC/500mA.
pin serial-mode* AND purchased separately at £69.95 each. Kit Order Code: 3108KT – £49.95
parallel-mode Assembled Order Code: AS3108 – £59.95
(PIC16C5x family)*
Programmed PIC Controllers & Loggers Infra-red RC 12-Channel Relay Board
micro controllers. Control 12 on-board relays
Free fully functional Here are just a few of the controller and data with included infra-red
software. Blank chip auto detect for super acquisition and control units we have. remote control unit. Toggle
fast bulk programming. Parallel port connec- See website for full details. Suitable PSU for or momentary. 15m+ range.
tion. Supply: 16-18V dc. all units: Order Code PSU445 – £8.95 112 x 122mm.
Assembled Order Code: AS3117 – £39.95 Supply: 12VDC/0·5A.
Kit Order Code: 3142KT – £39.95
Rolling Code 4-Channel UHF Remote Assembled Order Code: AS3142 – £49.95
ATMEL 89xxx Programmer
Uses serial port and any State-of-the-Art. High security.
4 channels. Momentary or PC Data Acquisition & Control Unit
standard terminal comms
latching relay output. Range Monitor and log a
program. 4 LEDs display
up to 40m. Up to 15 TXs can mixture of analogue
the status. ZIF sockets
be learned by one Rx (kit and digital inputs
not included. Supply:
includes one Tx but more and control external
16VDC.
available separately). devices via the ana-
Kit Order Code: 3123KT – £29.95
4 indicator LEDs. logue and digital
Rx: PCB 77x85mm, 12VDC/6mA (standby). outputs. Monitor
NEW! USB & Serial Port PIC Programmer Two & Ten Channel versions also available. pressure, tempera-
USB/Serial connection. Kit Order Code: 3180KIT – £39.95 ture, light intensity, weight, switch state,
Header cable for ICSP. Free Assembled Order Code: AS3180 – £47.95 movement, relays, etc. with the apropriate
Windows software. See web- sensors (not supplied). Data can be
site for PICs supported. ZIF Computer Temperature Data Logger processed, stored and the results used to
Socket and USB Plug A-B Serial port 4-channel tem- control devices such as motors, sirens,
lead extra. 18VDC. perature logger. °C or °F. relays, servo motors (up to 11) and two
Kit Order Code: 3149KT – £34.95 Continuously logs up to 4 stepper motors.
Assembled Order Code: AS3149 – £49.95 separate sensors located
200m+ from board. Wide Features
range of free software appli- 11 Analogue Inputs – 0·5V, 10 bit (5mV/step)
USB Flash ICSP PIC Programmer 16 Digital Inputs – 20V max. Protection 1K in
Fully assembled version of cations for storing/using data.
PCB just 38x38mm. Powered series, 5·1V Zener
our 3128 USB Flasher
by PC. Includes one DS1820 sensor and 1 Analogue Output – 0-2·5V or 0-10V. 8 bit
PIC Programmer but (20mV/step)
four header cables.
WITHOUT the pre-
Kit Order Code: 3145KT – £16.95 8 Digital Outputs – Open collector, 500mA, 33V
gramming socket. It max
just has 5-pin ICSP Assembled Order Code: AS3145 – £23.95 Custom box (140 x 110 x 35mm) with printed
header (GND, VCC, Additional DS1820 Sensors – £3.95 each front & rear panels
CLK, DAT, VPP) and Windows software utilities (3·1 to XP) and
cable. No external programming examples
PSU required. Free Supply: 12V DC (Order Code PSU203)
Windows software. Most items are available in kit form (KT suffix)
or pre-assembled and ready for use (AS prefix). Kit Order Code: 3093KT – £64.95
Order Code: AS3182 – £37.95 Assembled Order Code: AS3093 – £94.95
Hot New Kits This Summer! FM Bugs & Transmitters
Here are a few of the most recent kits Our extensive range goes from discreet
CREDIT
added to our range. See website or join our surveillance bugs to powerful FM broadcast CARD
email Newsletter for all the latest news. transmitters. Here are a few examples. All
can be received on a standard FM radio SALES
and have adjustable transmitting frequency.
NEW! EPE Ultrasonic Wind Speed Meter 0871
Solid-state design
wind speed meter MMTX’ Micro-Miniature 9V FM Room Bug 717
(anemometer) that Our best selling bug! Good
uses ultrasonic performance. Just 25 x 15mm.
7168
techniques and has Sold to detective agencies
no moving parts worldwide. Small enough to Helping you make the right connections!
and does not need hide just about anywhere.
calibrating. It is intended for sports-type Operates at the ‘less busy’ top
activities, such as track events, sailing,
end of the commercial FM waveband and Electronic Project Labs
hang-gliding, kites and model aircraft flying, Great introduction to the world of electron-
to name but a few. It can even be used to also up into the more private Air band.
Range: 500m. Supply: PP3 battery. ics. Ideal gift for budding electronics expert!
monitor conditions in your garden. The probe
is pointed in the direction from which the Kit Order Code: 3051KT – £8.95
wind is blowing and the speed is displayed Assembled Order Code: AS3051 – £14.95 500-in-1 Electronic Project Lab
on an LCD display. This is the top of the range
HPTX’ High Power FM Room Bug and is a complete electronics
Specifications Our most power- course taking you from
Units of display: metres per second, feet per beginner to ‘A’ level standard
ful room bug.
second, kilometres per hour and miles per hour and beyond! It contains all
Very Impressive
• Resolution: Nearest tenth of a metre the parts and instruc-
• Range: Zero to 50mph approx. performance. Clear and stable output signal
thanks to the extra circuitry employed. tions to assemble 500
Based on the project published in Everyday Range: 1000m @ 9V. Supply: 6-12V DC (9V projects. You get three
Practical Electronics, Jan 2003. We have comprehensive course books
PP3 battery clip suppied). 70 x 15mm.
made a few minor design changes (see web (total 368 pages) – Hardware Entry Course,
Kit Order Code: 3032KT – £9.95 Hardware Advanced Course and a micro-
site for full details). Power: 9VDC (PP3 bat- Assembled Order Code: AS3032 – £17.95
tery or Order Code PSU345). computer based Software Programming
Main PCB: 50 x 83mm. Course. Each book has individual circuit
MTTX’ Miniature Telephone Transmitter explanations, schematic and assembly dia-
Kit Order Code: 3168KT – £34.95 Attach anywhere grams. Suitable for age 12 and above.
along phone line. Order Code EPL500 – £149.95
NEW! Audio DTMF Decoder and Display
Tune a radio into the 30, 130, 200 and 300-in-1 project labs also
Detects DTMF
tones via an signal and hear available – see website for details.
on-board electret exactly what both parties are saying.
microphone or Transmits only when phone is used. Clear,
direct from the stable signal. Powered from phone line so Number 1 for Kits!
phone lines through completely maintenance free once installed.
Requires no aerial wire – uses phone line as With over 300 projects in our range we are
the onboard audio
transformer. The antenna. Suitable for any phone system the UK’s number 1 electronic kit specialist.
numbers are displayed on a 16-character, worldwide. Range: 300m. 20 x 45mm. Here are a few other kits from our range.
single line display as they are received. Up Kit Order Code: 3016KT – £7.95
to 32 numbers can be displayed by scrolling Assembled Order Code: AS3016 – £13.95
the display left and right. There is also a 1046KT – 25W Stereo Car Booster £29.95
serial output for sending the detected tones 3087KT – 1W Stereo Amplifier £6.95
3 Watt FM Transmitter
to a PC via the serial port. The unit will not 3105KT – 18W BTL mono Amplifier £9.95
Small, powerful FM
detect numbers dialled using pulse dialling. transmitter. Audio 3106KT – 50W Mono Hi-fi Amplifier £23.95
Circuit is microcontroller based. preamp stage and 3143KT – 10W Stereo Amplifier £10.95
Supply: 9-12V DC (Order Code PSU345). three RF stages 1011-12KT – Motorbike Alarm £12.95
Main PCB: 55 x 95mm. 1019KT – Car Alarm System £12.95
deliver 3 watts of RF
Kit Order Code: 3153KT – £17.95 1048KT – Electronic Thermostat £9.95
Assembled Order Code: AS3153 – £29.95 power. Can be used
with the electret 1080KT – Liquid Level Sensor £6.95
microphone supplied or any line level audio 3003KT – LED Dice £7.95
NEW! EPE PIC Controlled LED Flasher source (e.g. CD or tape OUT, mixer, sound 3006KT – LED Roulette Wheel £9.95
This versatile card, etc). Aerial can be an open dipole or 3074KT – 8-Ch PC Relay Board £24.95
PIC-based LED Ground Plane. Ideal project for the novice 3082KT – 2-Ch UHF Relay £30.95
or filament bulb wishing to get started in the fascinating 3126KT – Sound-Activated Relay £8.95
flasher can be world of FM broadcasting. 45 x 145mm. 3063KT – One Chip AM Radio £11.95
used to flash Kit Order Code: 1028KT – £23.95 3102KT – 4-Ch Servo Motor Driver £15.95
from 1 to 160 Assembled Order Code: AS1028 – £31.95 3155KT – Stereo Tone Controls £11.95
LEDs. The user arranges the LEDs in any
pattern they wish. The kit comes with 8 1096KT – 3-30V, 5A Stabilised PSU £32.95
25 Watt FM Transmitter 3029KT – Combination Lock £7.95
superbright red LEDs and 8 green LEDs. Four transistor based stages with a Philips
Based on the Versatile PIC Flasher by Steve 3049KT – Ultrasonic Detector £14.95
BLY89 (or equivalent) in the final stage.
Challinor, EPE Magazine Dec ’02. See web- 3130KT – Infra-red Security Beam £13.95
Delivers a mighty 25 Watts of RF power.
site for full details. Board Supply: 9-12V DC. Accepts any line level audio source (input SG01MKT – Train Sounds £6.95
LED supply: 9-45V DC (depending on SG10 MKT – Animal Sounds £5.95
sensitivity is adjustable). Antenna can be an
number of LED used). PCB: 43 x 54mm. 1131KT – Robot Voice Effect £9.95
Kit Order Code: 3169KT – £11.95 open dipole, ground plane, 5/8, J, or YAGI
configuration. Supply 12-14V DC, 5A. 3007KT – 3V FM Room Bug £6.95
Supplied fully assembled and aligned – just 3028KT – Voice-Activated FM Bug £11.95
connect the aerial, power and audio input. 3033KT – Telephone Recording Adpt £8.95
Most items are available in kit form (KT suffix) 70 x 220mm. 3112KT – PC Data Logger/Sampler £18.95
or assembled and ready for use (AS prefix) Order Code: AS1031 – £134.95 3118KT – 12-bit Data Acquisition Unit £49.95
3101KT – 20MHz Function Generator £69.95
www.quasarelectronics.com
No.1
FOR
KITS Secure Online Ordering Facilities Full Product Listing, Descriptions & Photos Kit Documentation & Software Downloads
UK readers you can
SAVE 71p
on every issue of EPE
How would you like to pay £2.58 instead of £3.30 for your copy of EPE?
Well you can – just take out a one year subscription and save over 71p an issue,
or £8.60 over the year
You can even save over 92p an issue if you subscribe for two years
– a total saving of £22.20 STA
RTIN
Overseas rates also represent exceptional value SOO G
You also: TEA N
ɀ Avoid any cover price increase for the duration of
CH
200 -IN
your subscription 6
ENR
ɀ O
NOW L
Get your magazine delivered to your door each month
ɀ Ensure your copy, even if the newsagents sell out !
Order by phone or fax with a credit card or by post with a cheque or postal order, or
buy on-line from www.epemag.co.uk (click on “Subscribe Now”)
SUBSCRIPTION ORDER
EPE SUBSCRIPTION PRICES FORM
Subscriptions for delivery direct to any address in the UK:
6 months £16.50, 12 months £31, two years £57; Overseas: 6 Months: UK £16.50, Overseas £19.50
6 months £19.50 standard air service or £28.50 express airmail, (standard air service), £28.50 (express airmail)
12 months £37 standard air service or £55 express airmail, 1 Year: UK £31.00, Overseas £37.00 (standard air service)
24 months £69 standard air service or £105 express airmail. £55 (express airmail)
Cheques or bank drafts (in £ sterling only) payable to Everyday 2 Years: UK £57.00, Overseas £69.00 (standard air service)
Practical Electronics and sent to EPE Subs. Dept., Wimborne £105 (express airmail)
Publishing Ltd., 408 Wimborne Road East, Ferndown, Dorset To: Everyday Practical Electronics,
BH22 9ND. Tel: 01202 873872. Fax: 01202 874562. Email: Wimborne Publishing Ltd., 408 Wimborne Road East,
[email protected]. Also via the Web at
Ferndown, Dorset BH22 9ND
http://www.epemag.co.uk. Subscriptions start with the next
available issue. We accept MasterCard, Amex, Diners Club, Tel: 01202 873872 Fax: 01202 874562
Maestro or Visa. (For past issues see the Back Issues page.) E-mail: [email protected]
USA/CANADA SUBSCRIPTIONS
Signature .........................................................................................
To subscribe to EPE from the USA or Canada please telephone
Express Mag toll free on 1877 363-1310 and have your credit
card details ready. Or fax (514) 355 3332 or write to Express Mag, Card Security Code .................. (The last 3 digits on or just under the
PO Box 2769, Plattsburgh, NY 12901-0239 or Express Mag, signature strip)
8155 Larrey Street, Anjou, Quebec, H1J 2L5.
Email address: [email protected]. Card Ex. Date ..................................... Maestro Issue No. ..............
Web site: www.expressmag.com.
USA price $60(US) per annum, Canada price $97(Can) per
annum – 12 issues per year. Name ...............................................................................................
Everyday Practical Electronics, periodicals pending, ISSN 0262 3617 is
published twelve times a year by Wimborne Publishing Ltd., USA agent
USACAN at 1320 Route 9, Champlain, NY 12919. Subscription price in US Address ...........................................................................................
$60(US) per annum. Periodicals postage paid at Champlain NY and at
additional mailing offices. POSTMASTER: Send USA and Canada address
changes to Everyday Practical Electronics, c/o Express Mag., PO Box Post code ................................. Tel. ..............................................
2769, Plattsburgh, NY, USA 12901-0239.
Subscriptions can only start with the next available issue.
EE
RANDOM PULSES SPACEWRITER
PP
Detects gold,
RO
NOM C
HIGH POWER An innovative and exciting project.
W HIP
silver, ferrous & Wave the wand through the air and
W &
DUAL OPTION Plug-in power supply £4.99
IT S
non-ferrous
H O
your message appears. Programmable
PI FT
metals to hold any message up to 16 digits long.
C1 W
KIT 867. . . . . . . . . . . . . . . . . . . . . . . . . . . . .£19.99
6C AR
Comes pre-loaded with “MERRY XMAS”. Kit
84 E
Efficient quartz controlled includes PCB, all components & tube plus
microcontroller pulse generation. KIT + SLAVE UNIT. . . . . . . . . . . . . . . . . . . .£32.50
DI
instructions for message loading.
SK
Full kit with headphones & all
hardware WINDICATOR KIT 849 . . . . . . . . . . . .£16.99
KIT 847 . . . . . . . . .£63.95 A novel wind speed indicator with LED readout. Kit comes
complete with sensor cups, and weatherproof sensing head.
Mains power unit £5.99 extra. 12V EPROM ERASER
A safe low cost eraser for up to 4 EPROMS at a
DEVELOPMENT KIT 856. . . . . . . . . . . . . . . . . . . . . . . . . . . . .£28.00
68000 time in less than 20 minutes. Operates from a
12V supply (400mA). Used extensively for mobile
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
2 SERIAL 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.
excellent new project. All components, PCB,
£6.50 SUPER BAT
hardware and electrodes are included. DETECTOR
KIT 621 Designed for simple assembly and testing and
providing high level dual output drive. 1 WATT O/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
Stepping Motors meter, compact case. Reads up to transducer, and ‘double
200 Megohms. balanced mixer’ give a
MD100..Std 100 step..£9.99 Kit includes wound coil, cut-out stable, high perfor-
case, meter scale, PCB & ALL mance superheterodyne design.
MD200...200 step...£12.99
MD24...Large 200 step...£22.95
components. KIT 861 . . . . . . . . . . .£34.99
KIT 848. . . . . . . . . . . . £32.95 ALSO AVAILABLE Built & Tested. . . £48.99
KIT 900...£34.99 With serial lead & software disk, PCB, Breadboard,
PIC16F877, LCD, all components and patch leads.
POWER SUPPLY - £3.99 STEPPING MOTOR 100 Step £9.99 All prices include VAT. Add £3.00 p&p. Next day £6.99
Tel: 01283 565435 Fax: 01283 546932 email: [email protected]
072005
ELECTRONIC COMPONENTS
We carry a large range of the photographic & chemical Copper clad - paper
processing equipment for PCB production, a full list with Single sided low cost paper composite board
full technical specifications is available in our catalogue 100 × 160mm Board £0.44
or vist our web site. 100 × 220mm Board £0.62
UV Exposure units 160 x 233mm Board £1.02
2 x 8W Tubes, 6 min timer 220 x 233mm Board £1.40
229 x 159mm working area 8“ x 12” Board £1.70
Model 332-002 £88.78 Copper clad - glass fibre
4 x 15W Tubes, 7½ min timer Single & Double 1.6mm 305g/m²
330 x 260mm working area 100 × 160mm Single £0.85
Model 332-004 £194.51 100 × 220mm Single £1.25
Station Road, Cullercoats, Chemical Processing 160 x 233mm Single £2.29
Low cost plastic tray £1.80 220 x 233mm Single £2.88
Tyne & Wear, NE30 4PQ Process tanks feature electrically 8“ x 12” Single £3.44
operated pumps and/or heaters 100 × 160mm Double £0.88
Prices Exclude Vat @17½%. with thermostat control, suitable 100 × 220mm Double £1.25
UK Carriage £2.50 (less than 1kg) for boards upto 320 x 260mm. 160 x 233mm Double £2.30
£5.50 greater than 1kg Universal Tank with heater 220 x 233mm Double £2.90
Model 333-007 £161.60 8“ x 12” Double £3.50
Cheques / Postal orders payable to Bubble etch Tank with heater Photoresist Coated
ESR Electronic Components. & bubble pump. 1.6mm 35 micron Pre-coated with a high quality photo-
PLEASE ADD CARRIAGE & VAT TO ALL ORDERS Model 333-004 £198.50 Any of these items, carriage £5.50 resist layer. Available in low cost paper composite or
Glass fibre, Single & Double sided. Other sizes also
PCB Production - Development PCB Production - Tools available.
0.1” Copper Stripboard Drill Bits Paper Glass Fibre
Size Tracks/Holes HSS parallel shank bits available in sizes from 0.3mm to Size Single Double Single Double
25 x 64mm 9T / 25H £0.24 2.0mm 4 × 6” £1.47 £1.82 £1.89 £2.17
64 x 95mm 24T / 37H £0.87 0.3-0.95mm in 0.05mm steps £0.60ea £4.00/10 6 x 12” £4.20 £5.04 £5.60 £6.23
95 × 127mm 36T / 50H £1.41 1.0-2.0mm in 0.1mm steps £0.40ea £3.60/10 9 x 12” £6.30 £7.70 £8.40 £9.38
95 × 432mm 36T / 170H £4.39 HSS Reduced shank (2.35mm) bit available in sizes from 10 x 12” £8.19 £10.01 £10.78 £11.83
100 × 100mm 39T / 38H £1.40 0.6mm to 1.7mm in 0.1mm steps £0.84ea £7.60/10 12 x 12” £8.26 £10.08 £10.99 £12.25
100 × 500mm 39T / 199H £6.20 Reground Tngsten carbide reduced shank (3.2mm) avail- 100 x 160mm £2.38 £2.66
119 × 455mm 46T / 179H £5.40 able in sizes from 0.6 to 1.6mm in 0.1mm steps £1.90 203 x 114mm £3.01 £3.43
Stripboard track cutter £1.99 Drilling Machines 220 x 100mm £3.08 £3.71
Expo reliant 12V drill, 3.8mm capacity, 8400rpm £12.78 233 x 160mm £4.83 £5.32
Solderless Breadboard 233 x 220mm £6.83 £7.70
Tie Points & Size Power Rails Minicraft MX1 230V,
390 81 x 60mm 2 £2.75 8000 - 21000rpm with PCB Production - Chemicals
840 175 x 67mm 2 £4.86 chuck & collet. 100ml Aerosol Photoresist spray, covers 2m² £4.25
740 175 x 55mm 1 £4.03 Model EPE270-390 50g Powder developer, makes 1lt £1.09
640 175 x 42mm 0 £3.08 Normal price £48.51 500g Powder developer, makes 10lt £7.08
Many other sizes available, 250g Ferric Chloride Pellets, makes 500ml £1.68
also jump wires & matrix board. ** SPECIAL OFFER PRICE £31.02 ** 500g Ferric Chloride Pellets, makes 1lt £3.04
2.5kg Ferric Chloride Pellets, makes 5lt £9.84
PCB Production - Drafting Materials Servisol Products 1.1kg Clear Fine etch crystals, makes 5lt £17.58
A4 Artwork Film (per 10 sheets) Aerosols 90g Tin Plating Powder, makes 1lt £11.58
Clear Manual Film £1.25 200ml Switch Cleaner £1.96 200ml Aerosol Flux spray £3.41
Clear Laser Film £1.75 200ml Freezer £3.97 110ml Aerosol PCB Laquer spray £3.63
White HQ Laser Film £4.62 400ml Foam Cleanser £2.13
Etch Resist Pens 400ml Cleaner / lubricant £2.79 Magnifying Desk Lamp
“Dalo” Pen £2.98 75ml Vide Head Cleaner £1.94 A high quality scratch resistant
“Staedtler” Fine Pen £0.88 200ml Aero Klene £2.85 magnifying glass fitted to a bal-
Etch Resist Transfers 200ml Aero Duster £4.66 anced swivel arm and desk
Seno mixed DIL pads £2.24 250ml Cold Clean £3.14 mount. An integral flourescent
Seno mixed Rnd pads £2.24 200ml Label remover £3.52 tube provides illumination.
Alfac mixed pads £1.84 400ml Isopropyl alcohol £3.36 Magnification: 3x Lens: 120mmØ
Transfer Spatular £1.25 Tubes Tube: 22W Daylight simulation.
25g Heatsink Compound £2.60
We carry the full range of Seno & Alfac PCB transfers, 50g Silicone grease £2.50 Model: 028-205 £28.80
see our catalogue for full details.
Soldering Irons Tools - Cutters & Strippers
We carry in stock a wide range of soldering iron and
soldering accessories. Irons from 12 to 100 Watts. NEW CATALOGUE We carry a wide range of specialist tools for the elec-
tronics industry including:
20W 240V Basic
25W 240V Ceramic
30W 240V Basic
£3.74
£7.14
£4.68
OUT NOW Side Cutters
130mm Low cost
115mm Draper
£1.99
£2.38
115mm Box Jointed £4.26
Desolder Pumps available from www.esr.co.uk 145mm Long reach £3.40
Basic 165 x 18mmØ £2.85 Wire Strippers
Antistatic 195mm £3.92 130mm Low cost £2.30
Antex Mini 198mm £6.02 Educational Kits 150mm Draper 5mmØ £5.86
Antex Pro 210mm £10.26 These kits are an ideal way to start you interset in elec-
tronics. They freature re-useable components which are
attached via springs & wires and easy step by step Tools - Ratchet Crimping Pliers
Digital Multimeter
Model: 121-120 guides to make a range of exciting projects. The 300-in-1 High quality ratchet crimping pliers for various terminals
Price: £11.47 featurs a breadboard for more complex circuits. including Automotive, Data, Power and Data connections.
Red / Blue / Yellow £15.80
A highly featured digital BNC /TNC RF series £15.08
multitester for professional RJ11/12 Data Series £22.32
use. Offers 30 ranges and 8 RJ45 Data Series £20.43
functions including temper- RJ11/12 & 45 Series £12.64
ature, capacitance, diode, CK® Tools Crimp Pliers
continuity and hFE measure- Green/Red/Blue £24.38
ment. Large 3.5 digit LCD Red/Blue/Yellow £22.88
display with automatic po- 0.24-2.5mm² crimps £26.01
larity indicator. Supplied 0.5-6.0mm² crimps £26.01
with shrouded test leads, K Non insulated crimps £24.38
type temperature probe and
shock proof rubber holster. Cable - Ribbon
Technical Specifications 7/0.127mm Grey ribbon cable on a 0.05” 1.27mm pitch
DC voltage 200mV - 1000V with a red identifying stripe. Supplied by 305mm (1ft) or
(±0.5%) on full 30.5m (100ft) reels.
AC volts 2V - 700V (±0.8%) Size per 305mm per Reel
DC current 2mA - 20A (±1.2%) 30-in-1 £13.18 10 Way £0.10 £5.36
AC current 200mA - 20A 50-in-1 £16.80 14 Way £0.14 £7.50
(±1.8%) 130-in-1 £32.29 16 Way £0.16 £8.58
Resistance 200 Ohms - 20M 300-in-1 £55.20 20 Way £0.20 £10.72
Ohms (±0.8%) 26 Way £0.26 £13.94
Capacitance 2000pF - 20µF (±2.5%) Panel Meters 34 Way £0.34 £18.22
Temperature 0°C - 1000°C (±1.5%) High quality analogue panel meters, class 2, zero point 40 Way £0.40 £21.44
Frequency 20kHz (±1%) correction, mirror scale and prewired for panel illumina- 50 Way £0.50 £26.80
Max display 1999 tion. Meter size 46 x 60mm, Cutout size: 38mmØ. 60 Way £0.64 £33.92
Power supply 9V (PP3 battery) Range Int IDC Crimp tool £11.80
Dimensions 88 x 173 x 40 mm 0-50uA 6k5 All meters £5.89 each
0-100uA 1k0 6V Lamps £1.23 /pair CAT5e Networking
CCTV - Complete Systems 0-500uA 430 UTP Cable
We carry the full range of 0-1mA 200 305m Box, conforms to
Micromark Black & White and 0-10mA 2 6 CAT5E 100MHz standard,
Colour CCTV systems for the 0-50mA 1 2 ETA verified TIA/EIA 568-B.2
home or office. 0-100mA 0 65
These complete easy install sys- 0-500mA 0 12 Only £23.93 per box
tems are supplied complete with 0-1A 60m exc carriage.
power supply, cables and all fix- 0-3A 20m
ings. Simple plug-in connections, 0-5A 12m RJ45 Outlet Kit
for use with any TV or Video with 0-15A 4m Backing Box
a scart socket. 0-10V 10k 2 Gang Plate
0-15V 15k RJ45 Module
Black & White Systems 0-30V 30k Blank Module
from £22.97 ±50uA 1k9 Colour coded id
inserts.
CCTV - Black & White Module CCTV - Colour Module special price £2.99
A miniature CMOS camera module A miniature colour CMOS camera mod-
with a 3.6mm F2 Lens, video output & ule with a 3.6mm F1.2 Lens, video output Tools
power via connectors provided. & power via connectors provided. Plastic punch down tool
Specs (660-800) Specs (660-842) & cable stripper £1.40
Power: 12Vdc 50mA Power: 12Vdc 150mA Professional punch down
Video System: CCIR Video System: PAL IDC & trim tool £7.38
Pixels: 352 x 288 Pixels: 628 x 582
Min Illumination: 0.5Lux Min Illumination: 3Lux NOW In Stock
Video Output: 1 Vpp, 75 Video Output: 1 Vpp, 75 Patch & Cross-over leads from £0.50, Full range of outlet
Dims: 35 x 35 x 28mm 20g £16.60 Dims: 28 x 28 x 28mm 20g £36.33 modules/keystone outlets, switches & accessories.
Tel: 0191 2514363 Fax: 0191 2522296 Email: [email protected] http: //www.esr.co.uk
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 Subscriptions for delivery direct to any address in the We advise readers to check that all parts
UK: 6 months £16.50, 12 months £31, two years £57; are still available before commencing any
anywhere in the world (see opposite), from all Overseas: 6 months £19.50 standard air service or
UK newsagents (distributed by COMAG) and project in a back-dated issue.
£28.50 express airmail, 12 months £37 standard air ser-
from the following electronic component retail- vice or £55 express airmail, 24 months £69 standard air
ers: Omni Electronics and Yebo Electronics service or £105 express airmail. To subscribe from the ADVERTISEMENTS
(S. Africa). EPE can also be purchased from USA or Canada see the last magazine page. Although the proprietors and staff of
retail magazine outlets around the world. An Online subscriptions, for downloading the magazine via EVERYDAY PRACTICAL ELECTRONICS take
the Internet, $14.99US (approx £8) for one year avail- reasonable precautions to protect the interests
Internet on-line version can be purchased and able from www.epemag.com.
downloaded for just $14.99US (approx £8) per of readers by ensuring as far as practicable
Cheques or bank drafts (in £ sterling only) payable to
year available from www.epemag.com 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: [email protected]. made by advertisers, whether these advertise-
Also via the Web at: http://www.epemag.wimborne.co.uk. ments are printed as part of the magazine, or
Subscriptions start with the next available issue. We accept in inserts.
MasterCard, Amex, Diners Club, Maestro or Visa. (For past
issues see the Back Issues page.) The Publishers regret that under no circum-
stances will the magazine accept liability for
BINDERS
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 £7.95 plus £3.50 p&p (for overseas readers TRANSMITTERS/BUGS/TELEPHONE
the postage is £6.00 to everywhere except Australia EQUIPMENT
and Papua New Guinea which cost £10.50). Normally
sent within seven days but please allow 28 days for We advise readers that certain items of radio
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, Maestro 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 3 digits on or just under the sig- telephone equipment as a fine, confiscation of
nature strip), with your name, address etc. Or order on equipment and/or imprisonment can result
our secure server via our UK web site. Overseas cus-
tomers – your credit card will be charged by the card from illegal use or ownership. The laws vary
provider in your local currency at the existing from country to country; readers should check
exchange rate. local laws.
All-Band Radio
Thomas Scarborough
O Mini Radio
NE might call this a “dog” of a A regenerative radio is interesting to
radio. It doesn't pretend to any work with. It might be compared with a At the heart of this radio circuit is the
finesse. It doesn’t have high fideli- manual car as opposed to an automatic. 4069UB (unbuffered) hex inverter i.c.
ty sound. However, it has good coverage, In addition to the customary Volume which is able to provide a powerful signal
and good sensitivity. Moreover, it is a control and Tuning dial, it has a third into a crystal earpiece. Therefore, the cir-
robust design that, unlike many others, Regeneration dial to control regenera- cuit obviously has the potential for minia-
does not depend on daintily wound coils, tion. Regeneration “regenerates” the turisation. With this in mind, the author
obscure parts, or a carefully constructed received signal, much as a child on a further designed a p.c.b. layout for a minia-
antenna. swing increases the energy of the swing ture radio (see Fig.4), and it remains to the
Built in Cape Town, South Africa, the with modest kicks of its legs. This type ingenuity of the constructor to fit this into
prototype All-Band Radio brought in a of radio was invented by Major a suitably small plastic case.
good many stations from all around the Armstrong in 1912, bringing about a vast
world – loud and clear. This included the improvement in radio receivers at that Circuit Description
BBC, the Voice of America, Radio time. As mentioned above, the heart of the cir-
China, Radio Iran, the Deutsche Welle, At first it was thought that the set’s cuit is represented by inverting buffer IC1a
and many more besides. Well into the maximum frequency would lie around (see Fig.1). Although this is classed as a
night, it even picked up local Australian 5MHz – that is, the shortwave 60 metre digital device, it may in some situations
stations on the medium waves. band. In practice, however, it picked up serve as an analogue amplifier up to sever-
radio stations above 7MHz. Therefore it al megahertz, albeit without the same qual-
Regeneration has the potential to tune in the following ity of reproduction as a dedicated analogue
Despite its simplicity, this regenera- bands: amplifier i.c.
tive set has sharper tuning and greater Long Wave The full circuit diagram for the All-Band
sensitivity than many other tuned radio Radio is shown in Fig.1. When a station is
frequency (t.r.f.) sets. On the medium Medium Wave
tuned in, variable capacitor VC1 and coil
waves, it works well even without an Marine Band 120 metres L1 resonate at the tuned frequency. In
external antenna or earth, although an 90 metres other words, they present a miniscule alter-
aerial may be attached to very good Short Wave 75 metres nating voltage to the input of IC1a through
effect. Also, while its volume is modest, 60 metres d.c. blocking capacitor C1. Therefore any
it is strong enough to serve as a bedside 49 metres activity in the tuned circuit unsettles both
radio, or in a small workshop. 41 metres the input and the output of IC1a, sending
ripples down the chain IC1a to IC1f, which
are amplified and demodulated as they go.
To bring about regeneration, the tuned
circuit is inserted in the feedback path of
IC1a, while resistor R1 and potentiometer
VR1 serve to balance IC1a at roughly half
the supply voltage. The higher the value of
VR1, the greater IC1a’s potential for being
unsettled, and the greater the regeneration
as the amplified signal at input pin 1 is
passed back through the tuned circuit via
output pin 2.
The purpose of regeneration is to rein-
force the r.f. signal through positive feed-
back. Not only does this make the signal
louder, but it also sharpens it a great deal.
As a matter of interest, Fig.2 shows how
this circuit might have looked if a more
standard tuned radio frequency (t.r.f.) con-
figuration had been used, and it would be
instructive to try this out. The result is
much vaguer tuning, and reduced volume.
When using the radio, regeneration
needs to be held as high as possible with-
Front panel controls for the full version of the All-Band Radio out introducing instability to the circuit.
Tuning-In Q-Factor
One of the particular advantages of this In order to experiment intelligently with
design is that virtually any tuned circuit the All-Band Radio, one should best have
may be tried for VC1 and L1, on condition some understanding of the Q-factor. The
that this is tuned to less than about 8MHz. radio as shown (Fig.1) has been designed
So, for instance, various coils and a.m. for a relatively high Q, although it does not
tuners (tuning capacitors) may be pulled depend on this to work reasonably well.
out of junked radio circuits, and the major- A common definition of Q is “the ratio
ity would be likely to work, possibly with of the reactance of an inductor (in this case
interesting results. coil L1) to its effective series resistance at
The most commonly available a.m. tun- a given frequency”. However, a simple
ing capacitors typically have two separate way of putting this is that Q represents the
sections (that is, two variable capacitors “power” with which the tuned circuit res-
with one common terminal – ask your onates at a given frequency. As in many sit-
component shop to identify the terminal uations, it is one thing to get something to
pins). A tuned circuit for the medium work – it is another to get it to work
waves could use such a tuner with its two efficiently.
separate sections wired in parallel, togeth- The formulae for calculating the ideal Q
er with L1 which would be about eighty to are relatively complex, but two factors are
a hundred turns of 30s.w.g. (0·15mm) Fig.2. Standard t.r.f. configuration especially important for obtaining a good Q.
Fig.1. Complete circuit diagram for the “full version” of the All-Band Radio
IC2
buffer i.c.
LM386N-1 audio amplifier i.c.
Guidance Only £16
excl case and batts
The first is that fine wire should be used stages filters out high frequencies (includ- network would afford IC2’s internal tran-
for coil L1, or more exactly that skin effect ing radio frequencies) with the use of a sistors ought not to be missed here,
should be avoided – a complaint that small feedback capacitor (C4 and C6). A although constructors of a more nervous
applies to thicker wire gauges, and raises reduction of the values of these capacitors disposition might wish to wire a 10Ω resis-
the effective (a.c.) resistance of the coil. gives a “sharper” sound, arguably increas- tor and a 100nF capacitor in series from
Often, therefore, a coil is wound with sev- ing the clarity of reception. However, this IC2 output pin 5 to the 0V line.
eral strands of fine wire twisted together also increases hiss. The two spare inverter For the miniature version of the Radio,
but insulated from each other, being equiv- gates IC1d and IC1e (IC1 pins 9 and 11) IC2 is completely omitted, leaving a pow-
alent in their total cross-sectional area to are “tied high” to prevent any instability. erful “crystal” set which feeds a crystal ear-
the wires they replace. Note that because this circuit is based on piece (X1), via jack socket SK1, wired
A second factor is to maximise the influ- a cheap CMOS 4000-series i.c. instead of from IC1f output pin 12 to 0V – or an
ence of coil L1 on the tuned circuit, and to dedicated radio and audio i.c.s, its sound inductive earpiece may be used if it is
minimise capacitance and resistance. This quality suffers somewhat, in particular wired in series with a 1µF capacitor.
is done by minimising the value of variable through the introduction of hiss. However, The All-Band Radio’s quiescent current
capacitor VC1, and by maximising the for everyday listening, the quality is quite consumption is relatively high. The minia-
value of coil L1 – as well as minimising adequate. ture version of the radio draws about 30mA
any resistance in the tuned circuit. The two preamplifier stages are followed at 9V, while the fully built version with
Described from a practical point of view, by a Volume control (VR2) and a low-pass amplifier and speaker will consume
some tuned circuits will cause the All-Band filter (C9). A basic hazard of radio circuits upwards of 50mA, depending on the vol-
Radio to pick up stations at full volume, is that the audio amplifier might be fed ume. This means that an alkaline PP3 type
while others will cause it to pick them up with radio frequencies (r.f.) that have 9V battery might last ten or fifteen hours
more quietly. Therefore if you should slipped through the preceding stages, thus for the miniature version, and five or eight
decide to recycle a tuned circuit from overloading the amplifier. The amplifier hours for the fully built version.
another radio, it might be worth taking it thus works too hard with signals that the For regular use, therefore, a regulated
out of a full-sized radio set to obtain good listener is unable to hear. Therefore ade- mains-to-d.c. power supply (mains adap-
Q, and to choose a case for the All-Band quate filtering is important. Notice also the tor) might be considered. If there should be
Radio that is able to accommodate this. decoupling capacitors C8, C11, and C12, any hum as a result of using a power sup-
This will ensure a reasonably strong sound which are not used merely for “good prac- ply, a 10µF capacitor may be wired from
input to the loudspeaker. tice”, but make a noticeable difference to IC2 pin 7 to 0V, and this is likely to
It is known that the Q-factor suffers sound quality. improve matters significantly.
especially when miniaturising the tuned Using the popular LM386 audio ampli- Alternatively, a better quality supply might
circuit, and for this purpose, it is possible to fier i.c., IC2 is capable of providing up to need to be used.
increase the amplification of the All-Band about ½W r.m.s. at 9V into an 8 ohm loud-
Radio. Resistor R2 may be increased up to speaker. If desired, its gain may be Construction – Full Version
about 4M7, R3 may likewise be increased increased by wiring a capacitor between Since this is a radio circuit, it is of prime
up to about 4M7, and R4 may be increased pins 1 and 8 of IC2, the value of which importance that connections to off-board
a little (say to 220kΩ). may be between about 100nF and 10µF. components should be made with screened
The capacitor’s positive terminal is wired microphone cable. The screen is always
Audio Circuit to pin 1. taken to 0V where this applies. The wires
Two preamplifier stages (IC1c and IC1d) The usual Zobel network at the output is from L1 and the battery may be excepted
follow after the r.f. section. Their gain is set omitted for the sake of simplicity. The on condition that these are kept as short as
through resistors R3 and R4. Each of these small measure of protection which a Zobel reasonable.
The printed circuit board ( p.c.b.) for the holes in the lid (rear) for the small loud- the tag to the p.c.b. This is used later to
fully built version measures 110mm × speaker and then attach it to the rear of the attach an aerial if desired. The author held
33mm, and the component layout, full-size lid (or elsewhere, if a larger case is used). the battery and ferrite coil L1 in place
copper foil master and wiring details are Make sure there is plenty of room between inside the case with cable ties, see photo-
shown in Fig.3. This board is available the rear of the speaker and the circuit graph below.
from the EPE PCB Service, code 523 board. If desired, a number of different coils for
(Full). Prepare a hole in one side wall for the L1 may be switched in and out of use, so as
Begin construction by soldering in posi- on-off switch S1. Drill a hole and bolt a to access the different bands. For this pur-
tion the eight solder pins, five resistors solder tag to the other side wall of the pose, a single-pole multi-way rotary switch
and twelve capacitors, taking note of the case, taking a short length of wire from would be used.
polarity of the electrolytics. Insert and
solder potentiometers VR1 and VR2 on
the p.c.b.
Lastly, solder the germanium diode D1
and the two i.c.s – observing anti-static pre-
cautions for both (ensure that your body
has been discharged to earth). The author
soldered the i.c.s directly to the p.c.b., for
the reason that this is a sensitive radio cir-
cuit, however readers can, if they wish, use
dual-in-line (d.i.l.) sockets.
Attach the loudspeaker LS1 and tuning
capacitor VC1 to the p.c.b. with suitable
lengths of microphone cable. Attach the
battery clip and on-off switch S1 as shown.
Solder the leads of coil L1 to the p.c.b.,
keeping these as short as possible.
Casing-Up
An ABS plastic case of approximately
130mm × 70mm × 40mm was used to
house the prototype p.c.b. Drill three holes
in the front (bottom) of the case for VR1, Internal component layout of the radio showing the battery and ferrite coil held in
VR2 and VC1. Drill a series of “sound” position with cable ties.
Jack Kilby Dies TI officials put the first circuit to the test
on 12 September 1958, with success. In
’Ear ’Ear! Jack Kilby, a retired engineer with 1960, TI announced the first chips for cus-
Well, we really have to agree with the Texas Instruments who invented the inte- tomer evaluation. Two years later, TI won
press release we’ve received from Bim grated circuit, died on 20 June 2005 in its first major i.c. contract to design and
Bam Banana – their Politician’s Ear Piece Dallas. He was 81. build a family of 22 special circuits for the
“alarm is probably one of the most ingen- Jack St. Clair Kilby invented the first Minuteman missile.
ious gadgets for people who nap and fall monolithic i.c., which was to become the Kilby officially retired from TI in 1983,
asleep when they are, for example, driving, foundation for modern microelectronics, but he continued to do consulting work
at a meeting, watching TV/video”! resulting in the world of miniaturization with the company. He held more than 60
The alarm sits on your ear and works as and integration that we know today. He was patents for a variety of electronics inven-
a spirit level. When you start nodding, it awarded the Nobel Prize in Physics in 2000 tions. Among them were the handheld
starts hooting and wakes you up immedi- for his role in the invention of the i.c. electronic calculator and the thermal
ately (and presumably those alongside you TI chairman Tom Engibous said, “If printer, both of which he co-invented. In
too – can’t be bad)! there was ever a seminal invention that addition to the Nobel Prize, he received
For $36 US, you can buy this astonish- transformed not only our industry but our numerous honours and awards for his con-
ing insomnia inducer, and other “latest world, it was Jack’s invention of the first tributions to science, technology and the
gadgets, fantastic innovations, funny giz- integrated circuit.” electronics industry.
mos and cool novelties” at the e-shop Kilby joined TI in 1958, and invented At the time of writing, a report can be read
www.bimbambanana.com, or you can the i.c. that year, apparently while many of at www.reed-electronics.com/electronic
find out more by emailing sales@bimbam- his colleagues were on holiday! Kilby and news/article/CA609808?nid=2019
banana.com (mention EPE).
Design Motive
T
HE number of fairly complex mul- also a “quick check” for crossover wired
ticore cables in the home and the The idea for this Multicore Cable Tester cables.
workshop is steadily increasing. arose from the author’s apparent new
The workshop PC brings with it a printer, responsibility for an Ethernet network at The unit is designed to test cables
keyboard, mouse and monitor, possibly a his place of work. On changing a network having up to eight cores, with cables
network connection and probably a hub, one leg of the network stopped work- having more than eight conductors
modem line. All of these items require a ing. All other cables plugged to the new being split into groups of tests.
dedicated connector and a multicore cable hub worked fine, except for one. However, eight cores is sufficient for
to connect it all together. As to be expected, the cable in question most, including:
Buying commercially-made leads can ran across a false ceiling, down a riser cup- 1 Ethernet cables
be expensive, and even then, you may not board, under a raised access floor and into
be able to get exactly what you require and 1 Audio cables
a presentation lecturn; therefore changing
have to manufacture your own; with the it to see if that solved the problem was not 1 SCART leads
attendant doubt that all is wired, and wired to be lightly considered! The cable was 15 1 Keyboard and mouse extension
correctly! Testing these leads can be con- metres long and checking with a multime- leads
fusing, especially if there are several to ter was simply not an easy option.
make up of the same type. 1 Computer monitor cables
This tester allows easy identification
Commercially manufactured leads are and testing of multicore cables in a variety 1 Modem/serial leads
just as prone to damage, kinking, and con- of situations so long as at least two cores 1 USB cables, etc.
nector failure as those we make ourselves, are connected. It offers quicker testing than
and if you count up the number of leads traditional continuity methods, using l.e.d. The unit will:
that surround us in the home and at work, indication and sound to check continuity
the result can be quite surprising. and correct connections in cables. There is 1 Identify a cable
1 Check continuity of all cores
1 Identify a “crossover” type cable
Cable Types
The tester uses relatively low switching
rates and employs a software delay to allow
settling time from a sharp squarewave test
signal and the consequent capacitive delay.
There is therefore considerable flexibility in
the uses of the device, limited only by the
connectors installed by the user.
As an alternative, it is probably easiest
and quickest to build the tester and pas-
sive/active sockets using 9-pin D-connec-
tors and then make suitable adaptors for
each use. Some suggestions are discussed
later but there is really no limit to the adap-
tors that could be made.
Design Overview
Referring to the main Multicore Cable
Tester circuit diagram in Fig.1, this design
uses a PIC16F84 microcontroller (IC1) for
the testing operations and a 74HC164 shift
register (IC2) to output the l.e.d. display.
The completed Master tester and the small Active/Passive socket that combine to The cable leads to be tested are connect-
make up the Multicore Cable Tester ed to the PIC’s Port B via connector SK1.
Approx. Cost
Guidance Only £30
excl cases &
battery
Fig.1. Master circuit diagram for the Multicore Cable Tester
Active Socket
Fig.2b(below). Active socket circuit An alternative for the “far end” is to use
arrangement – see text an “active socket” technique, as shown in
Fig.2b. Here additional l.e.d.s. (D12 to
D19) indicate the status of each core con-
nection, so checking not just that up to
eight cores are connected, but also that
they are all connected correctly.
Resistor R21 buffers the l.e.d.s., and
diode D20 to D27 matrix the circuit to suit
the software control.
This unit mirrors the lamp test function
so by turning the main tester off and then
on again, the sequence of l.e.d.s on both
the tester and the active socket should
light in order. This clearly identifies incor-
rect or correct connections, and confirms
cross-connected cables.
Construction
Details of the printed circuit board com-
ponent and track layouts for the Master and
Active units are shown in Fig.3 and Fig.4.
These boards are available from the EPE
PCB Service, codes 525 and 526.
Testing
Without connecting a cable, and after a
physical inspection that all is well, switch
on. The unit now goes through a self-test
routine to check that all l.e.d.s and the
internal buzzer are working. The lamp and
buzzer test should operate – a moving
l.e.d. display and eight beeps. The
crossover l.e.d. D10 will light as a power-
on indicator. This self-test is later used for
checking correct connections in the cable
under test.
Prototype
Active/Passive
socket unit
In Use
In use, one end of the cable is plugged
into the master unit, and the other end into
the slave (passive) socket. As soon as the
cable is connected, the buzzer will sound
eight beeps, longer beeps for each connect-
ed core. The 8-wide l.e.d. display will turn
on a corresponding l.e.d. for each core. The
l.e.d. display indicates which cores are con-
nected and which are not in one operation,
however, to eliminate the effects of plug-in
contact bounce, switch the unit off and then Table 2
on to retest the cable.
An audible indication is ideal for identi-
fying “which is which” when wiring
Ethernet cables or other situations where
there are a number of similar cables – plug
the end of the cable you are trying to find
into the master unit, and (we’ve all been
there!), crawl under the desk with the pas-
sive socket trying each in turn. When you
hear the buzzer, you’ve found it; this is cer-
tainly better than the “sharp tug and see if
it moves” method!
If the cable is a “crossover” type, a ninth
l.e.d. on the main unit (D10) will light after
the eight beeps are finished. Table 3
Once a cable is detected, unplugging the
cable at either end resets the tester to detect
another cable so there is no need to switch the
tester on and off between operations (other
than for contact bounce elimination). The
l.e.d. display always shows the last results.
Checking Correct
Connections
If the “active” slave socket (SK3) is
used, the power on self-test can check the
correct connections. The active socket has
eight l.e.d.s which can be numbered exact-
ly as for the master unit. On power on, each
l.e.d. on the master unit lights and a short
beep is heard. Therefore, if a note is made Table 4
of which l.e.d. lights on the active socket in
order, it is simple to establish the connec-
tion sequence. For example, testing a
modem lead was carried out as follows.
Firstly, the passive socket was connected
to one end and the other plugged into the
main unit. Switching the tester on, the
power up sequence completed in a few sec-
onds, followed by seven of the eight l.e.d.s
being lit, with one short beep and seven
long beeps. This indicated, correctly, that
pin 1 was unused and that the subsequent
seven were connected. At the end of the
eight beeps, the crossover l.e.d. lit, indicat-
ing that this lead was a crossover type. Main Active From this, pin pairs 2/3, 4/6 and 7/8 are
Secondly, the passive socket was 1 None swapped but pin 5 remains pin 5 at each end.
swapped for the active socket. Taking a 2 3
piece of paper, and numbering from one to 3 2 Making Up Adaptors
eight from top to bottom, the tester was 4 6 The following information might be use-
switched off and then on again. Writing 5 5 ful for those wishing to use the unit for
down which l.e.d. lit after each beep during 6 4 other common cables.
the startup sequence gave the following 7 8 In order to preserve the crossover func-
results: 8 7 tion it is useful to adopt a procedure for
Ingenuity Unlimited
BASED
WIN A PICO PC Our regular round-up of
WORTH £586 readers’ own circuits.
OSCILLOSCOPE 5GS/s Dual Channel Storage We pay between £10 and
Oscilloscope £50 for all material pub-
z Sp e c tr u m lished, depending on length
5 0 M H
Analyser and technical merit. We’re
Multimeter looking for novel applications and circuit designs, not simply mechani-
ter
Frequency Me cal, electrical or software ideas. Ideas must be the reader’s own work
n te r fa c e .
U SB I and must not have been published or submitted for publication else -
ou h a v e a n o v el where. The circuits shown have NOT been proven by us. Ingenuity
If y
ch
circuit idea whi Unlimited is open to ALL abilities, but items for consideration in this
to
would be of use column should be typed or word-processed, with a brief circuit
er s t h e n a description (between 100 and 500 words maximum) and include a full
other read
ours. circuit diagram showing all component values. Please draw all circuit
cope could be y
Techno log y P C-based oscillos l b e a w a r d ing a schematics as clearly as possible. Send your circuit ideas to:
Pico
, Pi c o Te chnology wil
Every 12 mo n th s the best IU Ingenuity Unlimited, Wimborne Publishing Ltd., 408 Wimborne Road
ta l s to ra g e oscilloscope for e
PicoScope 3205
d ig i ta Logger/Scop East, Ferndown, Dorset BH22 9ND. (We do not accept submissions
sio n. In a d d it ion a DrDAQ Da u n ne r u p. for IU via email). Your ideas could earn you some cash and a prize!
submis the r
be presented to
worth £59 will
EW technologies arouse more pas- countryside is likely to be far less than Fuzzy Fix
F sion among normally docile people
than wind turbines. The arguments
for and against harvesting electricity
the dramatic effect of climate change
with the shrinking coastline caused by
rising sea levels and altered vegetation.
Serious problems call for serious solu-
tions and BAe Systems (the combination
of British Aerospace and Marconi
from the wind are fairly well known but SDC chairman, Jonathon Porritt Defence Systems) has come up with a
the unforeseen problems the turbines argues that climate change will have a solution employing fuzzy logic to min-
cause demand equal attention. devastating impact unless urgent action imise or even eliminate the radar interfer-
Wind farms and their turbines are a is taken to boost the contribution of ence caused by wind turbines. Fuzzy
remarkably emotive subject. The tower renewables, alongside energy efficiency logic’s approach to problems replicates
clusters seen atop the mountains of Mid measures. So the issue is merely a matter the way most people come to firm deci-
Wales for instance are objects of supreme of public education, right? Well, no. sions based more on gut feeling than pure
grace and elegance in my view and the Wind farms pose a serious threat to bird logic by balancing out vague, ambiguous
fact that they generate electricity for migration and to aircraft radar systems, or missing input information to still reach
nothing is a fantastic bonus – the classic or at least they did. It’s a serious a firm conclusion.
“win, win” situation. problem. In this application fuzzy logic is used
But that’s only my opinion. A recent to find and analyse data normally hidden
report by the Sustainable Development Turbulent Times for Turbines in a radar signal to build up a clearer pro-
Commission (SDC) notes that although Urgent research is needed into the file of the object that generated the echo.
there is widespread support for wind locations, numbers and movements of Identified characteristics are then evaluat-
farms from an ecological point of view, birds around our coasts to help us under-
ed to calculate its probability of being a
there is much local resistance. People stand the potential impacts, according to
wind turbine. If the balance of probabili-
argue the noise they make is unbearable, the Royal Society for the Protection of
ties is positive, the on-screen image is fil-
that they spoil the landscape and they Birds. Dr Mark Avery, RSPB Director of
tered to remove the object altogether.
may also kill birds. Conservation, says the government must
Although the current application is for
Simon Clydesdale of Greenpeace is do more to avoid major conflicts over the
quoted as saying, “People do support siting of wind farms. And although the civil airport radars, the technology was
wind energy when a survey is put in front RSPB sees climate change as the greatest first developed for military use, to distin-
of their nose but it’s a question of putting threat to the world’s wildlife, it does guish aircraft from large waves and flocks
that into practice. We don’t give blanket object to any wind farms that seriously of birds. At the time of writing, in-depth
support for all wind farms, they have to threaten important populations of birds tests were scheduled for the end of July,
be sensibly sited.” and their habitats, calling for some form to be held in Wales.
of legal protection. A number of RAF helicopters and
Nimby Alert Bigger birds have even bigger prob- Cessna light aircraft would be monitored
on a Watchman radar operated by the
Not in my back yard then. He does, lems. As The Business newspaper report-
however, agree that wind power is ed recently, significant interference is RAF, noting these signals as well as inter-
“green”, stating: “Wind power is essen- caused to the radar systems that control ference from a number of wind farms in
tial to meet the government’s carbon air traffic by the rotation of the wind tur- the vicinity. If the filtering software is
emission targets and will be one of the bines’ blades. The radar returns or echoes successful only the aircraft should be vis-
cheapest forms of energy out there.” tend to mimic a light aircraft. To confuse ible on the radar screens, with commer-
Renewable energy sources are vital to the radar further, says the report, the tip cial deployment likely some six to 12
meeting the government’s Kyoto target speed (although not that of the whole months later.
of a 12·5 per cent reduction in green- blade) is just below the speed of sound,
house gas emissions from 1990 levels, much the same as an aircraft. Fears Unfounded
averaged over 2008 to 2012, meaning the You might imagine that an object as But what fate lies in store for our feath-
UK must look for cleaner sources of static as a wind farm would not look any- ered friends? According to research pub-
energy. Wind farms could take this figure thing like an aircraft in flight but appar- lished in the scientific journal Biology
to 20 per cent by the year 2020. ently it can do. In the same way, several Letters, birds are not as stupid as we take
The towers occupy very little ground television repeater transmitters built by them to be. Experts at the Danish National
space and when situated away from radio amateurs in the UK have had their Environmental Research Institute have
human occupation, any noise issues are licensing held up by the authorities, used radar to monitor bird migration pat-
irrelevant. The sole issues after that are again because the picture transmissions terns over the Nysted offshore wind farm
the capital cost of erecting the towers and can fool the very sensitive radar on the western side of the Baltic Sea.
dealing with any arguments from the receivers. The verdict is that geese and ducks
NIMBY brigade over visual intrusion. The echoes returned by wind turbines learn to avoid the blades, with less than
There’s no argument that wind farms appear as transient multiple objects that one per cent of the birds found to be at
will indeed alter the British landscape, show up and vanish again. Vast flocks of risk of collision. Even at night the clever
but so did electricity transmission pylons migrating starlings cause the same effect creatures kept their distance from the tur-
and motorways – and the economic ben- from time to time and the unpredictable bines and flew in the corridors between
efit of these is generally seen to outweigh nature of these signals could trigger the structures. Finally this may be the
the visual intrusion. In any case the retaliatory action or the closure of an green light for wind farms. I for one will
change to the appearance of the British airport. be delighted if it is.
Circuit
Surgery
Alan Winstanley and Ian Bell
Low Frequency Amplification inputs) of zero, an op.amp’s output should with temperature and curves on the
also be zero, but in real op.amps there will datasheet to show these changes.
While scanning the EPE Chat Zone typically be a non-zero output. The Input We can also look at the problem from a
forum (www.chatzones.co.uk) recently Offset Voltage VIO is defined as the d.c. noise-versus-frequency perspective. Random
the post “Amplifying <10Hz” from fellow voltage which must be supplied between noise may be classed according to the fre-
contributor Thomas Scarborough caught the inputs to force the quiescent (zero input quency, or range of frequencies present.
our eye: “I’ve done a lot of circuits ampli- signal) open-loop (no feedback resistors) White noise has the same power throughout
fying audio and radio, but am not as famil- output voltage to zero. the frequency spectrum, whereas 1/f noise
iar with amplifying very low frequencies. The input offset voltage is defined with decreases in proportion to frequency; both
I’m wanting to amplify signals in the respect to the input. The error in the output types occur in all amplifiers. It is 1/f noise
region of 0·1Hz to 10Hz. Can you point me voltage due to VIO is equal to the circuit that causes problems when amplifying low
to anything to look at, so that I can famil- gain times VIO (note circuit gain, not frequencies.
iarise myself better?” op.amp gain). So if the datasheet quoted How noise level varies with frequency for
Accurately amplifying low frequency VIO as 500mV max and your circuit had a a typical amplifier is shown in Fig.2. At low
signals can be surprisingly difficult, but gain of 500 you could get a 250mV frequencies the 1/f noise dominates, but as
there are special approaches that can be (0·25V) error on the output. The tempera- frequency is increased we reach a point
very effective. One of these – chopper or ture coefficient of input offset voltage where noise level flattens out. The point at
auto-nulling amplifiers – is this month’s specifies how VIO changes with tempera- which this occurs is called the 1/f corner and
Circuit Surgery topic. We don’t really have ture. The datasheet for an op.amp may also the frequencies beyond this are called the flat
enough information about Thomas’s situa- have a graph showing offset variation with band noise area.
tion to know if this would be the best temperature. For audio and video amplifiers the 1/f
approach for him, but this is an interesting Bipolar op.amps require bias (base) cur- noise is not a problem as long as the 1/f
topic that we hope many readers will find rents for the transistors connected to their corner is sufficiently low (say 20Hz for
useful. inputs, whilst op.amps with f.e.t. inputs audio). This can be achieved with con-
Before we look at the solution, let’s look have leakage currents at the inputs. The ventional amplifiers and the unwanted
at the problem in more detail. A key issue Input Bias Current IIB tells you how large lower frequencies can be blocked by
with low frequency amplifiers is offset, see these currents are, and is defined as the capacitive coupling. From an offset per-
Fig.1. In simple terms offsets are d.c. errors, average current into the two inputs with the spective, offsets are simply blocked by
but the offsets can drift due to changes in output at zero volts. This can vary greatly capacitive coupling.
temperature and other factors that influence for different types of op.amp.
the circuit. The changing offsets are just like Bias currents flow in the external com- Chopper Amplifiers
low frequency signals that are amplified ponents connected to the op.amp and in Chopper amplifiers can achieve lower
along with the signal itself – the offsets act doing so they cause voltage drops. If offsets than conventional amplifiers and –
as low frequency noise. these voltage drops are not equal at the crucially – much lower offset drift (e.g.
Assuming what we want here is some op.amp’s two inputs, they will be ampli- one device is specified at 0·003 microvolts
kind of op.amp with very good low fre- fied by the op.amp and appear as errors at offset per degree temperature drift). From
quency performance, let’s look at offsets in the output. a noise vs. frequency perspective, chop-
the context of op.amps. Ideally with a dif- pers have a flat noise area going right
ferential input (the voltage difference A Different Bias down to d.c., at least in theory, completely
between the inverting and non-inverting In practice, the bias currents are not eliminating the 1/f noise (see Fig.2). On the
equal so we have Input Offset Current other hand, the chopping process does
(IIO) – the difference between the currents introduce some extra wideband noise and
into the two inputs with the output at zero some of the chopping signal may leak
volts. Ideally these currents would be through to the output as indicated by the
equal, but in practice they are not. dashed peak in Fig.2.
The input currents have to flow There are a number of circuit techniques
through the external circuitry and will that fall under the general title of “chopper
cause offsets even if the impedances amplifier” or “auto-nulling amplifier”, but
connected to the two inputs are equal. Fig.3 gives a good idea of the general
Of course, bias current and offset both approach and is the basis of a number of
vary with temperature so we have the i.c.s available today. This circuit contains
temperature coefficient of input offset two amplifiers, the main wideband ampli-
Fig.1. Offset voltage defined current which specifies how IIO changes fier A1 that handles the signal and the
O Circuit Diagram
NE of the interests of being EPE’s Data is entered via the keypad, S1,
Tech Ed is that of hearing directly The circuit diagram for the complete which is monitored by the PIC via Port C.
from readers what they would like Snooker and Darts Scoreboard is shown in Pins RC0 to RC3 are used in input mode,
to see us publish in the way of construc- Fig.1. Basically, score data is entered via a biased normally high by resistors R10 to
tional projects. 4 × 4 matrixed data keypad, S1, processed R13, through which keypad column data
This Snooker and Darts Scoreboard to suit the game type by the PIC, IC2. The is read. Pins RC4 to RC7 are used in out-
resulted from a reader’s phone call in resulting data values are output to a put mode, being set high for the selected
which he asked if we had done a snooker matrixed 8-digit 7-segment l.e.d. array, X1 switch row.
scoreboard recently. The last one was to X8, and an alphanumeric l.c.d. display The keypad software routine is a variant
about 15 years back – too long ago to rec- module, X10. of that described in the author’s Using PICs
ommend for construction now. However, The latter is for the benefit of the scorer With Keypads of Jan ’01. The keypad is read
browsing our “library” revealed that old (adjudicator). It shows, on a 2-line × 16 several thousand times a second to see if a
design and it became apparent that it was character per line screen, all current values key is pressed. When it is, the software
ripe for updating. Discussing it with Editor for the game in progress. Its screen con- jumps to a processing routine appropriate to
Mike, we decided that it was worth doing, trast is set by preset VR1. that key.
and to also add the facilities for darts scor- The l.e.d. array, with its 2-inch Any data resulting from a keypress is
ing as well. (50mm) displays, is ideally suited for stored to the PIC’s memory and sent via
Needless to say, perhaps, it was a job viewing by a small audience. Having Port A for display on the allocated section
ideally suited to a PIC microcontroller, the only eight digits, its displayed data is of the l.c.d. module and, as appropriate to
PIC16F877A in this instance. So, standby shown in blocks selected via the keypad, the l.e.d. block selected, to that as well.
your cues and arrows, here it is! as shown later in Table 1. Ports B and D are jointly responsible for
controlling the l.e.d. digits. The coded
7-segment data (as discussed in the
author’s several PIC Tutorials) is output
from Port B to the voltage level changer
and inverting buffer IC3. The buffer’s
seven output lines are connected via buffer
resistors, R3 to R9, to the respective seg-
ment cathodes of each l.e.d. The cathodes
of each same-lettered segment are com-
moned (connected together).
Which digit is then turned on is deter-
mined by which digit’s common anode is
powered by drivers IC4 and IC5. Port D
controls the digit selection and is synchro-
nised such that the segment code is dis-
played on the correct digit. The cycle
refresh rate is about 100kHz and the eye is
oblivious to this rate of cycling (24Hz or
25Hz are the standard frame-change rates
used for normal film movies).
Note that only the L293DN (observe the
DN suffix) device should be used for IC4
and IC5. There are other L293 devices with
different (or no) suffixes, but they have dif-
ferent characteristics and are not suited to
this design.
The PIC is run at 4MHz, as set by crys-
tal X9 in association with capacitors C3
and C4.
Snooker: Player 1 score 54, Player 2 The PIC can be programmed in situ via
score 35 and cueing, break 35, 142 connector TB2, whose pins are in the
remaining on table in frame 1, No frames author’s standard order. Diode D1 and
yet won by either player resistor R1 protect the 5V power line from
adverse voltages during programming.
COMPONENTS
Resistors
R1 1k
R2, R10 to R13 10k (5 off)
R3 to R9 330Ω (see text) (7 off) See
SHOP
Potentiometer TALK
VR1 10k preset, min. round page
Capacitors
C1 22µ radial elect. 25V
C2 100n ceramic disc, 5mm pitch
C3, C4 10p ceramic disc, 5mm pitch (2 off)
Semiconductors
D1 1N4148 signal diode
IC1 7805 1A +5V voltage regulator
IC2 PIC16F877A microcontroller,
pre-programmed (see text)
IC3 ULN2004A 7-way Darlington line driver
IC4, IC5 L293DN 16-pin Half-H driver (see
text) (2 off)
Miscellaneous
S1 4 x 4 data entry keypad
S2 min s.p.s.t. toggle switch
X1 to X8 7-segment common anode l.e.d.
display, 33mm high, 22mm wide, pins at
side, high brightness suggested (8 off)
X9 4MHz crystal
X10 alphanumeric 2-line x 16-characters
(per line) l.c.d. display module
Fig.3. Alternative l.c.d. pinouts
Printed circuit board, available from the EPE PCB
Service code 530; case as required; 12V d.c. power
source, min 500mA output (see text); 40-pin d.i.l. sock-
et; 16-pin d.i.l. socket (3 off); 7-way s.i.l. socket (see
text) (16 off); 1mm terminal pins or pin-header strips;
p.c.b. supports as preferred; mounting nuts and bolts to
suit application; connecting wire; solder etc.
Approx. Cost
Guidance Only £35
excl case &
Fig.4. Keypad connection details PSU
628 Everyday Practical Electronics, September 2005 Everyday Practical Electronics, September 2005 629
Fit the remaining components in Played score. The next frame can then be Having pressed “D” the l.c.d. screen
ascending order of size. Do not insert the started by pressing the “Blank” key, which shows:
d.i.l. i.c.s, l.e.d. displays, or connect the resets the player frame scores to zero, and
l.c.d. module until a thorough check of the Remaining count back to 147.
the assembly has been made, and the 5V The l.e.d. digits show the current scores,
output from regulator IC1 has been Player 1 on line 1, Player 2 on line 2. The
proved. digits on line 3 show the Frames Played
The type of case(s) chosen to house the count.
units(s) is entirely up to personal preference. Pressing key “B” (Block), the next l.e.d.
digits block displays the current Break
Snooker Program count on line 1. Line 2 shows the frames in which both players score values are
With all components present, connect won by Player 1, a hyphen symbol (“–”), shown as the selected starting value (501,
power and recheck that powerline voltages and then the frames won by Player 2. Line or other) on line 1. At the centre of line 1 is
are correct, that the l.c.d. module shows 3 again shows the current Frames Played shown a question mark (“?”). This is where
two lines of data (adjust preset VR1 to set count. It is assumed that neither player’s each throw count is temporarily displayed.
the best contrast), and that the l.e.d. digits frames won score will exceed nine before At either side of Line 2 are shown the cur-
have some values present. the game is won (a 19 frame game). rent legs won count for each player (0) and
By default, the software runs the Pressing key “B” again reveals the third the number of the current leg (#1) in the
Snooker program (darts selection is cov- l.e.d. digits display block, in which the cur- centre.
ered presently). For snooker, the opening rent Remaining value is shown on line 1. The The l.e.d. digits show 501 (or other) on
l.c.d. display is: other digits have no function for this display lines 1 and 2, and the legs count on line 3.
block and just show hyphen symbols. The throw score is entered in standard
The next press of key “B” reveals the calculator fashion. Enter the required value
first display block again. It is a 3-step using any of the numbered keys (0 to 9) and
repeating cycle. then press “D” (again being used as the
Keys 0, 8, 9 and D have no function for <ENTER> key). The entered value is
snooker. deducted from the current player’s running
total.
Darts Program While the throw score is being entered,
in which all values are in their reset (pre- The Darts program can only be selected the value is progressively shown at the cen-
game) state. Screen line 1 shows, in order, when the unit’s power is being switched on. tre of l.c.d. line 1, clearing back to “?”
the “>” symbol, indicating that Player 1 is With the power off, press key “D” (Darts) when “D” is pressed.
the current active player. Then follow the and hold it pressed. Switch on the power When a player’s total reaches zero, their
values of Player 1’s score, the current while keeping “D” pressed. Once the l.c.d. legs won count is automatically increased
Break count (followed by “B”), and screen has data on it, release “D”. The pro- by one, as is the total legs count.
Player 2’s score, all zero at present. To the gram is now in Darts mode and can only be If an error is made in keying the correct
right of Player 2’s score a blank cell exited by switching off the power. number, continue by keying in “0” until the
should be shown. On entry to the Darts program, the screen value reads 000, then key in the cor-
The bottom line shows the number of l.c.d. will show the score for each player rect number. If after “D” is pressed it is
frames won by player 1 (0), a “#” symbol from which their throws are to be deduct- realised that the wrong value has been
and the current frame count number (1), the ed (the “leg” count starting value). The entered, press key “A” (Add) to add the
current value of the balls remaining on the values are each 501 by default until value back to the current player’s score.
table (147) and followed by “R” changed. The lower line shows the mes- Although experienced darts players can
(Remaining), and then the frames won by sage SET HUNDREDS, as below: calculate double and triple scores in their
Player 2 (0). head, for the sake of those who are less
Pressing any of the keys numbered 1 to able, another option is provided. Key in the
7 (ball values) causes that value to be basic number scored and press “D”, then
added to the current player’s score. press the “·” key to add the same value to
Simultaneously, the Remaining value is the score again (double score). A second
reduced by the same amount. The excep- press of “·” adds the same value again
tion is when a foul has been called, which (triple score).
does not affect the Remaining count. As with snooker, player change is done
Change between players is caused by The l.e.d. digits show the 501 value on by pressing “C” (Change). Similarly l.e.d.
pressing key “C” (Change Player). If the line 1, with lines 2 and 3 showing hyphen display block change is done by pressing
change is from Player 1 to Player 2, the symbols (no function). “B”. There are only two display blocks for
lefthand “>” on line 1 becomes blank At this point, the leg count starting value darts. The second shows the throw score on
and to the right of Player 2’s score is can be changed. In a professional darts game line 1 as it is being keyed in. Line 2 shows
shown “<”. Pressing key “C” repeatedly the value is typically 501. In many amateur the legs won scores, and line 3 shows the
cycles back and forth between players. games, though, 301 might be selected. Other total legs count (both as with snooker).
Each press of “C” also resets the Break values ending in 01 might also be chosen, Pressing the blank key terminates a leg,
count. depending on the expertise of the players. incrementing the legs count and resetting
Errors in pressing keys 1 to 7 can be For simplicity, the program allows any player starting scores back to their chosen
corrected by pressing key “A” (Amend), hundreds value from 101 to 1001 to be value (501, or other).
which causes the last value keyed to be selected by pressing the appropriate num-
deducted from the active player’s score, ber key, e.g. “3” for 301. Note that “0” Software Aspects
and added back to the Remaining count. must be pressed for 1001. The selected There are some aspects of the software
Fouls can be actioned by first pressing value is displayed in the Player counts on code that may be of interest to PIC pro-
the dot key (“·”), then pressing the key l.c.d. line 1, and on the l.e.d. digits line 1 gramming readers. The first is the keypad
value appropriate to that to be awarded to (1001 will only show as 001, though). reading routine. This is set out in full in
the other player, whose score is then Once the required value is shown, press Listing 1. The comments alongside various
updated by that amount. Once that has “D” (now used as the <ENTER> key). The command lines should be self-explanatory.
happened, further presses of 1 to 7 are value is then stored to the PIC’s non- It must be noted that the code is specific
awarded to the current player as usual. volatile EEPROM (electrically erasable to the Port pins hardwired on the p.c.b. In
The Remaining count is unaffected for programmable read-only memory) where it other applications, in which other pin allo-
Foul calls. remains for future recall, even after the cations have been made, the code will need
When the Remaining count has reached power has been switched off. It is the value to be modified. Examples of other codings
zero, the player active at that moment is that will be the default next time the pro- can be found in the author’s Using PICs
awarded the frame and their frame score is gram is run. But it may be changed at that with Keypads referred to earlier, and his
incremented, and so too is the Frames time in the same way as above. PIC Controlled Intruder Alarm (Apr ’02).
'XQ/DRJKDLUH Please
&ROOHJHRI)XUWKHU(GXFDWLRQ
&XPEHUODQG6WUHHW
'XQ/DRJKDLUH
HPDLOLQIR#GOFIHLHZHEZZZGOFIHLH mention EPE
&R'XEOLQ,UHODQG 7HOHSKRQH
when replying to
$'9$1&('&(57,),&$7( 6XEMHFWVLQFOXGHWKHIROORZLQJ advertisements
LQ
0,&52(/(&7521,&6 &20387,1* $QDORJXH(OHFWURQLFV
'LJLWDO(OHFWURQLFV
\HDUIXOOWLPHFRXUVH 0LFURFRQWUROOHU6\VWHPV$WPHO
To advertise your
/LQNVWR'HJUHH&RXUVHV &RPSXWHU0DLQWHQDQFH company
WKURXJK 1HWZRUNLQJ Contact:
+LJKHU/LQNV6FKHPH
&RPSXWHU3URJUDPPLQJ Stewart Kearn
Tel: 01202 873872
ZZZGOFIHLH
Email:
[email protected]
T school we learned about metres or picofarads. A nanofarad is one This is most likely to occur with elec-
A and kilograms, or for those of my
generation and older it was feet, inch-
thousandth of a microfarad, and a
picofarad is one thousandth of a
trolytic components, which often have
all the values given in microfarads in
es, pounds and ounces that we learned nanofarad or one millionth of a micro- component catalogues.
to use. The units of measurement used farad in other words.
in electronics are less widely taught.
Consequently, many people making a Abbreviation
start in the hobby of electronics con- The micro, nano, and pico prefixes “A nanofarad (nF) is one
struction would not have learned about are not specific to capacitance. They
are used generally in metric mea-
thousandth of a microfarad”
Ohms, Farads, and Henries at school.
Matters are complicated by the fact surement to indicate one millionth, a
that some of the basic units of mea- thousand-millionth, and a million-mil-
surement used in electronics are either lionth of something. Letter Imperfect
very small or huge. One minute you The abbreviation for micro is the Capacitors often have other mark-
might be soldering a 5,600,000 ohm Greek letter mu (µ), but a lower case ings, such as the maximum voltage rat-
resistor to a circuit board, and the next letter “u” is often used instead. On a ing and their tolerance. The latter is
you could be fitting a 0·000000001 circuit diagram or in a components simply the maximum amount that the
farad capacitor! list a 47 microfarad capacitor would actual value of the component can dif-
The range of values covered is therefore have its value given in the fer from its marked value.
immense for some components. With form “47µF” or “47uF”. Presumably With capacitors the tolerance is often
resistors, for instance, the highest working on the basis that the farad is indicated by a single letter and a simple
value that is generally available is a always the basic unit of measurement method of coding, so be careful not to
hundred million times larger than the for a capacitor, this value would often interpret a tolerance code letter as part
lowest available value. The equivalent be given as just “47µ” or “47u”. of the value. These are the tolerance
figure for capacitors is over one thou- The respective abbreviations for ratings for the common code letters:
sand million! nanofarads and picofarads are “n”
and “p”, and these letters should Code Letter Tolerance
High Capacity always be in lower case. A value of F +/- 1%
This can all be a bit confusing at first, 680 picofarads would therefore G +/- 2%
but it all becomes very straightforward if appear as “680pF” or just “680p” on a H +/- 3%
things are rationalised. circuit diagram. A value of 22 nano- J +/- 5%
Taking capacitors first, the basic unit farads would be marked as “22nF” or K +/- 10%
of measurement is the farad, but for “22n”. M +/- 20%
normal electronic circuits this is a huge Space on circuit diagrams tends to
amount of capacitance. The highest be strictly limited, so things are often Capacitor value markings are some-
value I have ever used is a mere taken a stage further with the unit of times in the form of a three-digit num-
0·0047 farads. measurement indicating the position ber. The first two digits of the label are
High value capacitors normally have of the decimal point. For example, simply the first two digits of the value.
their values expressed as so many values of 2·7 picofarads and 4·7 The third digit is the number of zeros
microfarads, and one microfarad is nanofarads are often given as “2p7” that have to be added to the basic two-
equal to a millionth of a farad. The and “4n7” respectively. digit value.
0·0047 farad capacitor mentioned pre- For example, a capacitor marked
viously would normally have its value On Your Marks “223” has “22” as the first two digits of
given as 4700 microfarads. The value markings on capacitors the value, and three zeros must be
Even a microfarad is a substantial can be something less than obvious at added to these in order to provide the
amount of capacitance by normal first glance. A 330 picofarad capacitor full value. This gives an answer of
electronic standards. Many capaci- could and in many cases would have 22000, and as the value is in pico-
tors have values given in nanofarads its value shown as “330p”. Particularly farads this is what would normally be
with ceramic regarded as a 22 nanofarad capacitor.
capacitors, it is The example shown in Fig.1 is
quite likely to be marked “471”, indicating that it has a
marked as “n33”. In value of 470 picofarads. It is pictured
other words, the beside the one-millimetre markings of
value is 0·33 nano- a ruler, and the lettering is only a little
farads, which is over one-millimetre high. There are
actually the same plenty of modern capacitors that are
as 330 picofarads. far smaller than this example, so even
Capacitors hav- those with good eyesight might find it
ing values from 100 necessary to use a magnifier of some
nanofarads to 820 kind.
nanofarads have a At one time it was common for
similar problem. A some types of capacitor to have their
“470n” component value, voltage, and tolerance ratings
might be specified marked using a system of colour
in a components coding. This method was based on
list, but this value the system of coding used for resis-
could be given as tors, and had its advantages.
The three digit marking of 471 on this miniture capacitor (pic- 0·47 microfarads in However, it fell from favour some
tured beside the one-millimeter markings of a ruler) indicate some component years ago and does not seem to be
it has a value of 470pF – 47 plus one zero catalogues. in use any more.
I Stepper Motor
N modern railways semaphore signals motor. A plastic piece 30mm by 8mm, and
have mostly given way to coloured-light The 4-phase unipolar stepper motor 2mm thick is cut to fit over the shaft and
signals, or no signals at all, at least those used here is shown in Photo 1. The overall glued into place. The semaphore wire is
at the side of the track. But in the model case is about 30mm in diameter. It is sup- bent at 90º and inserted through a hole in
railway world there is a desire to include plied by 12 volts and each of the four coils the plastic and bent again to keep it in
semaphore signals since part of the attrac- has a resistance of 200Ω. The output shaft place.
tion of the hobby is the ability to show the is offset from the centre of the housing, The hole is 6mm from the shaft centre.
way things were. indicating there is a gearbox inside. The The motor is mounted by means of slots
This article follows on from that by the shaft itself is rectangular, 5mm by 3mm, and is positioned, with the semaphore at
late Andy Flind, PIC Quickstep (June ’04), with rounded corners. This makes it simple caution, to make the plastic piece approxi-
which gave a very good introduction to to attach something to the shaft. mately horizontal. Also shown are two
stepper motors and the means of testing The motor comes with wires already mechanical stops, about which more will be
them. Here a specific application for step- connected to a 5-pin female header, with said presently. Looking at the shaft end, the
per motors is described, using them to con- red as the common lead. motor turns anticlockwise to raise the sem-
trol the movement of semaphore signal aphore arm.
arms. Semaphore Signal
A number of matters are covered which Photo 2 shows the signal before con-
will need to be considered for any stepper nection to the motor. It is made by Tomar
motor application. Even if a reader is not Industries, type H-853 (HO scale). The
interested in model railway signals, the quadrant contains coloured lenses to show
solutions adopted herein may be a useful Photo 2. The H-853 red, yellow, and
guide. semaphore signal, green for the stop,
courtesy of Tomar caution, and safe
Signal Positions Industries (www. positions, respec-
The signal being controlled here is of the tomarindustries.com) tively, by being
upper quadrant type, and is set to one of aligned to a white
three positions to assert train control: lamp. Thus it is
ɀ The semaphore is set horizontally, and important to posi- Photo 3. Connecting the signal to the
shows a red light, to signify danger; trains tion the quadrant motor
must stop in front of the signal to bring the
ɀ The semaphore is set to 45º up, and appropriate lens Motor Controller
shows a yellow light, to signify caution or in front of the The controller closely follows the con-
“approach”; trains may proceed past the lamp assembly. cepts described by Andy Flind. A
signal, but not exceeding a designated The lamp assembly itself PIC16F628 is used with internal 4MHz
speed contains an incandescent clock, and all available pins, 16 in number,
ɀ The semaphore points upright, and bulb supplied by 1·4 volts. configured for digital I/O (input/output),
shows a green light, for safe or “clear”; The mast contains the two noting that RA5 can only be an input. The
train speed is unlimited by the signal alone. wires for the lamp, and a circuit diagram for the Model Railway
There are, of course, always other limita- piano wire. Pulling the wire Signal Controller is shown in Fig.1.
tions on train speed down raises the semaphore The employment of 16 pins allows two
The semaphore signal is thus a good can- (and pushing it up lowers complete motors to be driven, via transis-
didate for stepper motor control. the semaphore). The attrib- tors TR1 to TR8 which are buffered by
ute of an upper-quadrant resistors R3 to R10. There are also two out-
signal in real life is that it puts (RA6, RA7) for the lamps fitted to
will fall to the danger posi- each signal, which allow the lamps to be
tion if the driving mecha- flashed to warn trains that automatic block
nism fails. There is mostly and signal control has failed, and trains
too much friction in a model must proceed slowly as if in an uncon-
to do this. trolled yard.
The values for resistors R13 and R14
Connecting the should be chosen to suit the current drawn
Signal by the signal lamps. A value of 390Ω was
Photo 3 shows details of needed with the prototype.
Photo 1. The stepper motor used in this the mechanical connection The transistors may be any small npn type
controller between the signal and the capable of driving motors and lamps, such as
Approx. Cost
Guidance Only £16
excl signal &
case
Software
The author used John Becker’s simula-
tion facility that has been part of his TK3
PIC programmer since V3.00. It was dis-
cussed in the March ’05 issue, PIC Toolkit
3.30in (84mm) TK3 Simulator and PIC18F Upgrade.
Such a simulation is particularly useful
529 for a PIC16F628 where all I/O (input/out-
put) pins are allocated, with none to spare,
for example to drive an alphanumeric liquid
crystal display module, which can be very
useful for debugging.
The high-level flowchart of the signal
control program is shown in Fig.3. A timing
loop circulates continuously, initiating
2.40in
action every eight milliseconds. At each
(61mm) such interval, the stepper motors are turned
off, whether either are on or not from the
previous interval. If required, a different
pole piece in a motor is then energized. The
operations which take place may be
summarised as follows:
Prototype
p.c.b. mounted
on enclosure
Fig.2. Component and track layout details for the Model Railway Signal holding the
Controller printed circuit board stepper motor
internally, and
clear with the lamps flashing. This message using small angled plates bolted to the back- signal on top.
also goes to the train digital command control ing plate. Software is set to cut out the motor The p.c.b. dif-
(DCC), which removes the control and power at the correct points, but the end stops prevent fers slightly
signal from the train tracks; see the author’s undue force being applied to the signal lever. from the pub-
article Digital Command Control for Model lished version
Trains (Aug ’03). All trains stop (no doubt real Initialising the Signal
railways would relish having this capability!). The host system starts up with RUN
cleared. The signal moves to the clear posi-
Construction tion, and the lamp flashes. The number of
Component and track layout details for motor steps assigned to this operation is suf-
the Model Railway Signal Controller print- ficient that the signal will reach the clear
ed circuit board are shown in Fig.2. This position no matter where it starts from. All or
board is available from the EPE PCB part of this operation will be with the stepper
Service, code 529. motor driving against the stop (see Photo 3).
Assemble the board in the usual order of No damage occurs here, and the condi-
ascending component size, taking care to tion only lasts for about a second. But it
position the diodes, transistors and elec- guarantees putting the signal into a known
trolytic capacitors correctly as shown. Use position regardless of where it has been left
a socket for the PIC, but do not insert the with the power off. It is easy to turn the
PIC until the board has been double- motor by hand, for example.
checked for correct component positioning,
and that the output from regulator IC1 is at Backlash
5V, within a few millivolts. Any mechanical system has some degree
Minimum and maximum motor rotation of backlash, or “lost motion”. Most of the
end stops can be fitted alongside the motor, backlash with the signal is at the ends of the
ɀ With RUN cleared, the semaphores are The test box simulates the commands
driven to the clear position (upright) and the from the host system, as shown in Table 1.
signal lamp is toggled, as already explained, The power for the box comes from the
to indicate the host system is waiting to run, 5V/0V pins allocated on the p.c.b.
or has lost control over automatic opera- In Fig.4, switch S1 controls the
tions. Once the motors have moved the RUN/KILL command, and the other four
number of steps designated for red to green simulate the commands given in Table 2.
motion, no further motor action occurs. If The test box provides all of the functionali-
RUN is set before this occurs, the operation ty pertaining to normal operations; the
will always be completed first. switches and other components are mount-
ɀ With RUN set, the signal lamps are ed in a utility box.
always on and the controller awaits a new Again following Andy Flind, a useful test
order from the host system, always com- device is shown at Fig.5 for monitoring out-
pleting an existing order before starting a puts to a motor. It is inserted in the five-way
new one. cable between the controller and the motor,
using compatible male and female headers.
In practice, even in a model railway envi- The l.e.d.s flash as the motor steps. Fig.5. Motor test display circuit
ronment, the motors spend most of their
time idle. The time interval of eight mil- Calibration calibration software has a timing loop similar
liseconds is adjustable by factors of two, by Because of the mechanical tolerances in to the main timing loop, but which runs much
changing the value of a mask in the soft- the system, especially backlash, the test box more slowly. The procedure is as follows:
ware. The software is contained in the file also provides means of calibrating each ɀ Make sure the semaphore has already
stepmtre.asm (available as stated later). movement of the signal, as a number of been set to the required start position. For
The issue of completing an existing oper- steps stored in the PIC’s EEPROM. The user example, if the steps green to red or yellow
ation before commencing a new one could would start with nominal values as given in are being calibrated, it is best to power on
be contentious, especially if the new opera- the file stpmtr.msg, which is loaded sepa- with RUN cleared, whereby the semaphore
tion is to set a signal to danger. There is no rately into the PIC, using TK3’s facility for is set hard against the stop in the upright
queue of pending operations; the one that is this, or that of other programmers. position, as already explained, then reset the
present when the current operation is com- At each step of the calibration, the user controller with power off, set RUN, then
pleted is the one executed next. The author selects the movement to be tested by setting power on again, to get back to calibrate. In
will review this aspect after gaining experi- the switches as given in Table 3. The switch other instances, the semaphore might
ence with the controller. Interruption of an settings column is the result of treating the already be in the yellow or red position
existing operation would be possible. switch positions as a binary sequence, as from a previous calibration operation.
shown in the first four columns. Switch set-
ɀ Set the test box switches for the desired
Testing tings of 12 or greater are ignored.
movement and signal from Table 3.
The stepper motor controller is tested and To run the calibration the motor controller
calibrated with a test box whose circuit dia- is powered on with the RUN switch (S1) ɀ Close the RUN switch and observe the
gram is shown in Fig.4. Constructional closed, and then opened after the signal lamp movement of the semaphore.
details for this are not offered, and it may be lights. Normal operations with the host sys- ɀ When the semaphore is in the required
readily assembled on stripboard. tem are powered on with RUN cleared. The position, open the RUN switch; this stops
Obtaining EPE
An initiative in the UK is designed to help you obtain your favourite magazines from newsagents.
Called Just Ask! its aim is to raise awareness that newsagents can stock, order and often home
deliver magazines.
To raise awareness we will be including the Just Ask! logo in the pages of this and future issues and
have included a newsagent order form to help you to obtain copies.
So keep a look out for the logo and next time you visit your newsagent remember to Just Ask! about
obtaining copies of your chosen magazines.
Signed .......................................................................................................................................................................................
...................................................................................................................................................................................................
Everyday Practical Electronics is published on the second Thursday of each month and distributed S.O.R. by COMAG
Make sure of your copy of EPE each month – cut out or photostat this form, fill it in and hand it to your newsagent.
ELECTRONICS CD-ROMS
ELECTRONICS PROJECTS ELECTRONICS
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 a set 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
Amplifier; Sound Activated Switch; Reaction Tester. Full parts lists, schematics
and p.c.b. layouts are included on the CD-ROM.
Logic Probe testing
T
HIS little Daily Remider gadget has
been designed to be a reminder for
doing regular events, such as taking
medication. It not only indicates the day
of the week but also sounds an alarm once
each day. When the reset button is
pressed, the alarm is cancelled and will
not sound again until the following day.
The unit may also be useful as a week-
days-only reminder, in which the alarm
can be disabled at weekends. Although it
is possible to set the day of the week, it is
not possible with this simple circuit to set
or show the time of day. The day of the
week therefore changes and the alarm
sounds every 24 hours from the time the
unit is first started. It is an easy matter to
start the unit at, say, 7.30 a.m. on the first
day and it will then continue to sound the
alarm at this time every day.
To save battery power, the display is Fig.6.1. Block diagram for the Daily Reminder
only enabled when a switch is pressed.
The alarm, however, will sound each day the decoded outputs of this drive seven Alternatively, it is possible to rewire
(unless disabled at weekends) and will l.e.d.s to provide the day of the week dis- the monostable to function as a bistable,
sound for one minute unless silenced by play. It also triggers a monostable which in which case the alarm will sound con-
pressing the reset switch. enables an oscillator to sound the alarm tinuously until disabled by pressing the
for a preset time. The alarm continues reset switch. This may be useful in situa-
Basic Operation until it is acknowledged by pressing the tions where an alarm sounding for only a
The basic operation of the unit is shown reset switch or the monostable times out. short period may be missed.
in the block diagram of Fig.6.1. The first
part is a binary counter which provides
the timebase for the circuit, dividing the
input frequency to provide one pulse per
day.
The clock signal to the counter is indi-
rectly derived from the 50Hz (or 60Hz)
a.c. mains frequency. The high input
impedance of CMOS devices is used to
advantage to pick up the frequency signal
without the need for a direct connection to
the mains supply. Of course, a mains elec-
tricty supply must be within the vicinity!
Since we are not concerned here with
seconds or hours, the outputs of the count-
er are decoded for a count of 4,320,000
(or 5,184,000 for a 60Hz input) which is
the number of mains cycles that occur in
one day. The output of the decoder is used
to reset the counter at the end of this
count, following which it begins counting
from zero again.
The daily reset pulse is also used to
advance a divide-by-seven counter and
Table 6.1
Approx. Cost
Guidance Only £15
excl case and
batts
Whistle Switch
M
OST modern remote controls use
either infra-red or radio as the
transmission medium because
there are fewer natural interference
sources of such radiation to upset the
working of the system. They do, however,
all have the major disadvantage in that a
special transmitter is required to operate
the link.
The system to be described here differs
in that it uses sound as the medium so that Fig.6.4 Whistle Switch block schematic diagram
no special transmitter is required. Unlike
most sound-operated switches, which can
be triggered by any sound of sufficient
amplitude, this circuit is sensitive only to For those who have difficulty in the circuit could be designed to determine
sound in a relatively narrow frequency whistling, a simple tin whistle can provide the frequency quite accurately, in this
band. It is specifically designed to respond a handy transmitter. application it would not be desirable as
to a whistle and will therefore ignore A relay, RLA, allows external devices few people are able to whistle consistent-
many naturally occurring sounds of other to be controlled by this unit. Note though ly at a given pitch.
frequencies. that a.c. mains powered devices should The counter’s measurement cycle is
The frequency range to which the unit only be connected by those who are controlled by an oscillator which periodi-
responds can be made quite small, allow- suitably qualified or supervised. cally resets the counter to initiate the next
ing a number of units to be used in the measurement. The counter is coupled to a
same area. The sensitivity is such that Basic Operation decoder which determines if the expected
operation from another room is possible. A block diagram of the Whistle Switch count is received within a given time.
In practice, however, the difficulty in pro- is shown in Fig.6.4. The output of the decoder is sampled at
ducing a whistle of exactly the right fre- The input signal is picked up by a the end of each measurement period by a
quency means that the frequency range to microphone and amplified before being re-triggerable monostable. This ensures
which the receiver responds has to be applied to the clock input of a counter. The that only one output transition is obtained
broadened somewhat, thus limiting the counter circuit assesses whether the fre- during each whistle command, which may
possible number of independent receivers. quency is within a certain range. Although extend over a number of measurement
Circuit Diagram
The Whistle Switch circuit diagram
shown in Fig.6.5 effectively uses the first six
stages of a type 4040 binary counter, IC1, to
determine the frequency of the signal. The
whistle sound is detected by a piezo element,
MIC1, amplified by the high gain amplifier
formed around transistors TR1 and TR2, and
then used to trigger the counter.
The amplifier uses relatively high
value collector load resistors to achieve
high gain and low current consumption
(about 150µA) making it ideal for battery
operation. The prototype easily worked
over ranges in excess of seven metres,
not necessarily within line of sight.
An oscillator built around Schmitt trig-
ger NAND gate IC2a produces short
pulses which regularly reset the counter
via its pin 11. The pulse’s mark-space
width is determined by the imbalance
between the charging and discharging
rates of capacitor C3. The charging is
principally via diode D5 and resistor R7.
Discharging is via R7 and preset VR1,
the latter slowing the rate. The pulse
width is further modified by the action of
resistor R6 and capacitor C2.
The waveforms in Fig.6.6 illustrate
those that appear at various points in the
circuit when an input in the required fre-
quency range is detected. Starting at the
end of each reset pulse, the counter
counts the incoming clock signal (c)
causing the counter’s Q1 to Q6 outputs to
change as shown (d to i).
The number of input cycles since the
reset is shown above waveform (a). Diodes
D2 and D3 on the outputs Q4 and Q5,
together with resistor R5, form an AND
gate whose output is shown in waveform
(j). It will be seen that the output of the
decoder will only go high after 24, but less
than 32, input pulses have been received.
The dashed waveforms in (d) to (j) indicate
what would happen if the next reset pulse
did not occur at the time shown.
If the output of IC2a goes high during
this time window, the output of NAND
gate IC2b will go low as shown (k).
Following a short delay (set by R6 and
C2), the counter is reset via pin 11, caus-
ing all of its outputs and the output of the
decoder to go low. The output of IC2b
will therefore go high again so that only a
short pulse is produced. The pulse dura-
tion is determined by the difference in
time between IC2a going high and the
counter being reset.
If too few input pulses (frequency too
low) occur before IC2a output goes high,
the output of the decoder will remain low
and no output pulse will appear on IC2b
output before the counter is reset.
The width of the decoder window may
be made narrower by adding diode D4 to
the decoder so that its output will go
high only after 28 (but less than 32)
input pulses have been detected, or
wider by leaving out D3, producing an
output after 16 clock pulses. Decoding
counter outputs Q2 and Q1 could make
the window narrower still, but in this
Fig.6.5. Circuit diagram for the Whistle Switch application this would require a very
Approx. Cost
Guidance Only £12
excl case, relay
and batts
Fig.6.6. Whistle Switch circuit waveforms
forcing IC2d input high thus switching the The circuit may
relay off. be tested using a
The relay can therefore be switched on battery supply. A
by means of a short whistle, while a relay need not be
longer one will switch the relay off. fitted at this stage
Indication of the relay’s state is provided as l.e.d. D9 will
by l.e.d. D9, which is buffered by R13. indicate its correct
Diode D8 inhibits back-e.m.f. genera- operation. If an
tion when the relay switches off. oscilloscope is not
available should
Construction fault finding be
Printed circuit board component layout needed, a digital
and track details for the Whistle Switch voltmeter connect-
are shown in Fig.6.7. This board is avail- ed across capacitor
able from the EPE PCB Service, code 528. C4 can indicate
Construction should proceed with normal when a whistle in
precautions being taken to observe the cor- the correct fre-
rect polarity of semiconductors and elec- quency range has
trolytic capacitors. The polarity of the piezo been detected.
sounder is unimportant. Observe the normal The upper volt- Fig.6.7. Whistle Switch printed circuit board component lay-
antistatic precautions when handling the age across C4 out, wiring and full-size copper foil master
i.c.s. Do not insert the i.c.s. until the board varies with the sup-
has been fully checked for errors. ply voltage, but it
The type of relay fitted will depend on will be seen to fall to below 2V when a
the type of load to be controlled and the correct frequency whistle is received.
output contacts should be rated to handle Adjust preset VR1 until the circuit
the current and voltage to be switched. responds, with l.e.d. D9 turning on and off
The relay coil should be connected to the accordingly.
circuit board with flying leads and diode Because of the relatively high values of
D8 fitted on the board. resistance in the circuit, the capacitors in the
The circuit will operate from a range of bistable can take a few moments to charge or
voltages from 5V to 12V and the relay discharge between operations. This means
should be chosen for the voltage used, that the circuit cannot be switched on and off
although in practice most relays will operate in quick succession. This is not a problem in
from a range of voltages. Higher resistance normal use but should be borne in mind
coils are to be preferred as these will draw when testing the unit.
less current. The completed unit should be mounted
The circuit draws less than 1mA from a in a suitable box and the choice of this
9V supply, but this rises substantially will be dictated as much by personal
when a relay is switched on so that in most preference as by the application to which
applications a small d.c. mains adapter the unit is to be put. Remember to leave a
will be a more practical proposition. hole near the microphone to allow the
sound to enter.
Testing
T
HIS month and next we examine Table 1: DS1267 Pin integer multiple) of data must always be
how a digital potentiometer chip can Descriptions transmitted. Transmissions which do not
be interfaced to a PIC. The device send a complete 17-bits (or multiple) will
chosen is the Maxim DS1267 dual digital L0, L1 low end of resistor leave the register incomplete and possi-
potentiometer. This is available in three H0, H1 high end of resistor bly an error in the desired wiper posi-
standard dual-in-line (d.i.l.) pinned ver- W0, W1 wiper terminal of resistor tions.
sions, in which the two pots each have SOUT stacked configuration output After a transmission has been complet-
basic values of 100k (DS1267-100), or RST serial port reset input ed, the RST signal should be taken low
50k (DS1267-50) or 10k (DS1267-10). DQ serial port data input again for the new wiper position to
The one chosen by the author for use CLK serial port clock input become valid. On device power-up, the
in a forthcoming design for EPE is the COUT cascade port output wiper positions are set at 50% of the total
DS1267-100. For the sake of this demo, +5V +5V supply input (range resistance, or binary value 10000000
any of the three devices may be used. 4.5V to 5.5V) (decimal 128).
The DS1267 consists of two digitally GND ground (0V)
controlled solid-state pots. Each pot con- VB substrate bias voltage Demo Program
sists of 256 resistive sections. Between (range -5.5V to 0V) The demo program, whose main code
each section on both ends of the pot are is shown in Listing 1, illustrates how
tap points which are accessible to the data can be written to the pots. It was
wiper. The position of the wiper on the DS1267. The CLK line provides timing written for a PIC16F628, but can equally
resistive array is set by an 8-bit value. synchronisation for data input and output. well be used with other PICs, such as the
Control of the device is via a 3-wire The DQ line is used to transmit data to the PIC16F8x and PIC16F87x families. All
serial interface. This interface allows the 17-bit shift register. that is necessary is to change the PIC
device wiper position to be written or The 3-wire protocol is illustrated in type references at the head of ASM code.
read. Fig.3a. As shown, the 3-wire port is inac- As written, the demo uses PIC pins
Both potentiometers can be connected tive when the RST signal input is low. RB0 to RB2, but other pins may be allo-
in series or stacked for an increased total Communication via the port requires the cated instead. The connections between
resistance with the same resolution. The RST input to be in a high state. Data is the DS1267 and the PIC are shown in
DS1267 can be cascaded or daisy- then entered into the device on the low to Fig.4. The PIC may be run with any
chained. Its pinout diagram is shown in high transition of the CLK line. Basic tim- clock rate, crystal or RC controlled, with
Fig.1 and the pin descriptions are given in ing is shown in Fig.3b. the configuration settings value amended
Table 1. It is worth noting that although timing to suit. The prototype was run at 4MHz,
notations are quoted in Fig.3b, and quan- although the code has also been run on a
tified in the full datasheet, the controlling 16F877 at 10MHz.
PIC code shown in Listing 1 does not Note that if a −5V supply is not avail-
need these values to be actively consid- able, the −5V supply pin(s) may be con-
ered. The demo software has been used nection to the 0V line.
successfully with a DS1267 and a PIC
running at 10MHz.
Shift Register
Data written to the DS1267 is stored in
the 17-bit I/O shift register (Fig.2). Bit 0
Fig.1. Pinouts for the DS1267 of the register contains the stack select
bit, discussed presently. Bits 1 to 8 con-
tain the wiper position for pot 1. Bit 1 is
Operation the MSB and bit 8 is the LSB. Bits 9 to
The two 8-bit wiper values and the 16 contain the wiper position for pot 0,
stack select bit are written to a 17-bit I/O with bit 9 as the MSB and bit 16 as the
(input/output) shift register. The register LSB.
arrangement is shown in Fig.2. Data transmission always begins with
The controlling serial interface consists the stack select bit, followed by the pot 1
of three input signals, RST, CLK and DQ. and then pot 0 wiper positions. When
The RST control line must be high to wiper data is to be written to (or read Fig.4. Demo connections
begin any communication with the from) the DS1267, 17 bits (or some
Net Work
Alan Winstanley
JUN ’05
Order Code
499
500
501
502
503
Cost
£6.66
£5.14
£5.39
£5.87
£6.66
roller tinned. All prices include VAT and postage and packing. Add £1 per board for 刂Radio Control Model Switcher 504 £5.87
airmail outside of Europe. Remittances should be sent to The PCB Service, Back-To-Basics 3 – Scarecrow 505 £5.55
Everyday Practical Electronics, Wimborne Publishing Ltd., 408 Wimborne Road – Digital Lock 506 £6.66
East, Ferndown, Dorset BH22 9ND. Tel: 01202 873872; Fax 01202 874562; CompactFlash Interface Board 507 £6.66
Email: [email protected]. On-line Shop: www.epemag. LF/VLF Converter JUL ’05
wimborne.co.uk/shopdoor.htm. Cheques should be crossed and made payable to
Everyday Practical Electronics (Payment in £ sterling only). – Fixed Capacitor Board 508 £5.71
NOTE: While 95% of our boards are held in stock and are dispatched within – Mixer/Oscillator Board 509 £5.86
seven days of receipt of order, please allow a maximum of 28 days for delivery – Buffer Amplifier 510 £5.23
– overseas readers allow extra if ordered by surface mail. – Q-Multiplier 511 £5.23
Back numbers or photostats of articles are available if required – see the Back – Tuning Capacitor Board 406 £4.28
Issues page for details. We do not supply kits or components for our projects. Back-To-Basics 4 – Doorchime 512 £6.34
Please check price and availability in the latest issue. – Electronic Dice 513 £6.02
A large number of older boards are listed on our website. 刂Cybervox 514 £6.82
Boards can only be supplied on a payment with order basis. Multi-Clap Switch 515 £6.66
Audio System AUG ‘05
– Preamplifier 516 £6.02
PROJECT TITLE Order Code Cost – Mic. Supply Board 517 £5.23
– Power Amp 518 £6.02
Infra-Guard APR ’04 439 £5.07 刂Pain Monitor 519 £7.14
刂Moon Clock 442 £5.71 MotorAmp 520 £7.45
刂Teach-In ’04 Part 6 – Software only – – Back-To-Basics 5
刂EPE Seismograph Logger APR ’04 – Kitchen Timer 521 £5.87
Control Board 440
Sensor Amp. Board 441 }
pair £6.50 – Room Thermometer
All-Band Radio – Full Version SEPT ’05
522
523
£6.02
£5.71
In-Car Lap-Top PSU MAY ’04 443 £4.60 – Mini Version 524 £5.23
Beat Balance Metal Detector 444 £4.60 Multicore Cable Tester – Main 525 £6.19
Teach-In ’04 Part 7 – Transmitter 445 £4.91 – Active 526 £5.55
Receiver 446 £4.75 Back-To-Basics 6 – Daily Reminder 527 £6.19
Moisture 447 £4.44 – Whistle Switch 528 £5.87
刂PIC Quickstep JUNE ’04 448 £5.71 刂Model Railway Signal Control 529 £6.19
Body Detector MkII 449 £4.91 刂Snooker/Darts Scoreboard 530 £8.72
刂Teach-In ’04 Part 8 – Software only – –
刂MIDI Synchronome – Software only – –
Hard Drive Warbler JULY ’04 450 £4.60
刂Bongo Box
Portable Mini Alarm – Sensor
451
452
£6.02
£5.23
EPE SOFTWARE
– Counter 453 £5.07
Software programs for EPE projects marked with a single asterisk 刂 are
刂Teach-In ’04 Part 9
PIC Combination Lock Alarm Monitor 454 £5.07
available on 3·5 inch PC-compatible disks or free from our Internet site. The
刂EPE Magnetometry Logger 455 £5.71
following disks are available: PIC Tutorial V2 (Apr-June ’03); EPE Disk 3
(2000); EPE Disk 4 (2001 – excl. PIC Toolkit TK3); EPE Disk 5 (2002); EPE
Keyring L.E.D. Torch AUG ’04 456 £4.12
Disk 6 (2003 – excl. Earth Resistivity and Met Office); EPE Disk 7 (2004);
刂Teach-In ’04 Part 10 – PIC Curtain or Blind Winder 457 £5.39 EPE Disk 8 (Jan 2005 to current cover date); EPE Earth Resistivity
Simple F.M. Radio – F.M. Tuner 458 £5.07
Logger (Apr-May ’03); EPE PIC Met Office (Aug-Sept ’03); EPE
– Tone Control 459 £4.75
Seismograph (Apr-May ’04); EPE Magnetometry Logger (July-Aug ’04);
– Audio Power Amp (TDA2003) 347 £4.60
EPE Teach-In 2000; EPE Spectrum; EPE Interface Disk 1 (October ’00
– Power Supply 460 £5.39
issue to current cover date). EPE Toolkit TK3 software is available on the
刂EPE Scorer – Control Board 461 £6.66
– Display Board 462 £7.93
EPE PIC Resources CD-ROM, £14.45. Its p.c.b. is order code 319, £8.24.
– Slave Board 463 £5.55 刂刂The software for these projects is on its own CD-ROM. The 3·5 inch
刂PIC to Mouse/Keyboard – Software only – – disks are £3.00 each (UK), the CD-ROMs are £6.95 (UK). Add 50p each for
EPE Wart Zapper SEPT ’04 464 £4.60 overseas surface mail, and £1 each for airmail. All are available from the
刂Radio Control Failsafe 465 £4.76 EPE PCB Service. All files can be downloaded free from our Internet FTP
刂AlphaMouse Game 466 £4.60 site, accessible via our home page at: www.epemag.co.uk.
刂Rainbow Lighting Controller – Software only – –
刂Moon and Tide Clock Calendar OCT ’04 467 £5.55
Volts Checker
刂Smart Karts – Software only
468
–
£4.20 EPE PRINTED CIRCUIT BOARD SERVICE
Logic Probe NOV ‘04 469 £4.76 Order Code Project Quantity Price
Thunderstorm Monitor 470 £5.39
MW Amplitude Modulator .....................................................................................
– V.F.O./Buffer 471 £4.76
– Modulator/PA 472 £5.07 Name ...........................................................................
– Power Supply 473 £4.76
Super Vibration Switch DEC ‘04 474 £4.75 Address .......................................................................
Wind Direction Indicator 475 £6.18 ..............................................................................
刂PIC Flasher Mk2 – Control Board 476 £4.75
– Transmitter 477 £4.44
– Multipurpose Board 478 £4.75 Tel. No. .........................................................................
– Simple Cycler 479 £4.44
– Luxeon V Controller 480 £4.44 I enclose payment of £................ (cheque/PO in £ sterling only) to:
– Power Supply 473 £4.76
Light Detector
刂Camera Watch
JAN ‘05 481
482
£4.44
£6.03
Everyday
Gate Alarm – Oscillator
– Delay/Timer
483
484
£4.92
£4.92
Practical Electronics
刂Sneaky – Transmitter FEB ‘05 485 £4.60 MasterCard, Amex, Diners
– Receiver 486 £4.91
刂PIC Electric Mk2 – Control 487 £5.87 Club, Visa or Switch/Maestro
– Sensor 488 £5.71
Sound Card Mixer 489 £7.29 Card No. ................................................................................
Headphone Monitor MAR ’05 490 £5.71 Valid From ....................... Expiry Date ...............................
EPE Cat Flap 491 £6.02
刂Bingo Box – Main 492 £9.04 Card Security Code ............. Switch/Maestro Issue No .........
– Big Digit Display 493 £10.31
(The last 3 digits on or just under the signature strip)
Spontaflex Radio– Tuner APR ‘05 494 £5.55
– Coil Pack 495 £5.71 Signature ..............................................................................
– Audio Amplifier 496 £5.55
– Tuning Capacitor Board 406 £4.28 NOTE: You can also order p.c.b.s by phone, Fax, Email or via our
刂Safety Interface 497 £6.18 Internet site on a secure server:
Back-To-Basics 1– Fridge/Freezer Door Alarm 498 £5.39
http://www.epemag.wimborne.co.uk/shopdoor.htm
MAR ’05
PROJECTS ɀ Cat Flap ɀ Stereo Headphone Monitor
JULY ’05
ɀ PIC Electric Mk2 Pt2 ɀ Smart Karts - 6 ɀ Bingo Box. PROJECTS ɀ Cybervox ɀ LF and VLF Converter
FEATURES ɀ TK3 Simulator and PIC18F Upgrade ɀ Multi-Clap Switch ɀ Doorchime ɀ Electronic Dice
ɀ Circuit Surgery ɀ Ingenuity Unlimited ɀ Techno FEATURES ɀ Discovering PICs Reviewed ɀ Back
Talk ɀ PIC ‘N’ Mix ɀ Practically Speaking ɀ Net Work To Basics – 4 ɀ Digital TV Switchover ɀ Practically
– The Internet Page Speaking ɀ Circuit Surgery ɀ Interface – The
Internet Page
APR ’05 AUG ’05
AUG ’04 PROJECTS ɀ Spontaflex Radio Receiver ɀ
PROJECTS ɀ EPE Scorer ɀ Keyring L.E.D. Torch ɀ PROJECTS ɀ Motor Amplifier ɀ Pain Monitor ɀ
Safety Interface ɀ Fridge/Freezer Door Alarm ɀ Audio System-Communications ɀ Kitchen Timer ɀ
Simple F.M. Radio ɀ EPE PIC Magnetometry Smart Karts - 7.
Logger – 2. Room Thermometer
FEATURES ɀ Back To Logic Basics - 1 ɀ Circuit
FEATURES ɀ PIC To PS/2 Mouse and Keyboard Surgery ɀ Ingenuity Unlimited ɀ Interface ɀ PIC18F FEATURES ɀ Back To Basics – 5 ɀ Circuit Surgery
Interfacing ɀ Techno Talk ɀ Circuit Surgery ɀ Teach- Microcontroller Family Introduction ɀ Techno Talk ɀ ɀ Interface ɀ Ingenuity Unlimited ɀ Techno Talk ɀ
In 2004 – Part 10 ɀ Interface ɀ Ingenuity Unlimited Net Work – The Internet Page PIC ‘N’ Mix ɀ NetWork – The Internet Page
ɀ PIC-N’-Mix ɀ Net Work – The Internet Page.
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, 408 Wimborne Road East, Ferndown, Dorset BH22 9ND.
Phone: 01202 873872. Fax: 01202 874562. Email: [email protected]
For rates and information on display and classified advertising please contact our Advertisement Manager, Stewart Kearn as above.
TOTALROBOTS
ROBOTICS, CONTROL &
ELECTRONICS TECHNOLOGY
High quality robot kits and components
UK distributor of the OOPic microcontroller
Secure on-line ordering
Rapid delivery
Highly competitive prices
Visit www.totalrobots.com
Tel: 01737 371688
Miscellaneous
MAKE YOUR HOBBY PAY. Assemble units
X-10 ® Home Automation for the partially sighted. Local customers, sole
We put you in control TM area, instruction manual, material supplies and
completed units supplied. Details: 02392 830158
Why tolerate when you can automate?
An extensive range of 230V X-10 products VALVES AND ALLIED COMPONENTS IN
and starter kits available. Uses proven Power STOCK. Phone for free list. Valves, books and
Line Carrier technology, no wires required. magazines wanted. Geoff Davies (Radio), tel.
01788 574774.
Products Catalogue available Online.
Worldwide delivery. FREE! PROTOTYPE PRINTED CIRCUIT
BOARDS! Free prototype p.c.b. with quantity
Laser Business Systems Ltd. orders. Call Patrick on 028 9073 8897 for details.
E-Mail: [email protected] Agar Circuits, Unit 5, East Belfast Enterprise
http://www.laser.com Park, 308 Albertbridge Road, Belfast BT5 4GX.
Tel: (020) 8441 9788
Fax: (020) 8449 0430 PRINTED CIRCUIT BOARDS – QUICK
SERVICE. Prototype and production artwork
raised from magazines or draft designs at low
cost. PCBs designed from schematics.
Production assembly, wiring and software pro-
gramming. For details contact Patrick at Agar
Microcontroller Circuits, Unit 5, East Belfast Enterprise Park,
Microcontroller kits, 8052 core, no
development tools needed, runs
308 Albertbridge Road, Belfast BT5 4GX.
BASIC in firmware, I2C, LCD and Phone 028 9073 8897, Fax 028 9073 1802,
Infrared drivers built in. Program in Email [email protected]
BASIC and then run stand alone.
N.R. BARDWELL LTD
Prices from £14.95 + P & P ELECTRONIC COMPONENT SUPPLIES
Stock of l.e.d.s, Semiconductors, Resistors, WANTED URGENTLY
www.byvac.com
Capacitors and many more items. Old half inch ferrite rods. Must be half inch
Send 44p for lists or visit out secure online diameter and be six inches long or more. Will
ordering of www.bardwells.co.uk pay very good money for the rods.
288, Abbeydale Road, Sheffield. S7 1FL Contact Peter Tankard on Tel 0114 2316321
Email - [email protected]
www.pawbooks.co.uk between 9am and 10pm.
Published on approximately the second Thursday of each month by Wimborne Publishing Ltd., 408 Wimborne Road East, Ferndown, Dorset BH22 9ND. Printed in England by Apple Web Offset Ltd.,
Warrington, WA1 4RW. Distributed by COMAG Magazine Marketing, Tavistock Rd., West Drayton, UB7 7QE. Subscriptions INLAND: £16.50 (6 months); £31 (12 months); £57 (2 years). OVERSEAS: Stan-
dard air service, £19.50 (6 months); £37 (12 months); £69 (2 years). Express airmail, £28.50 (6 months); £55 (12 months); £105 (2 years). Payments payable to “Everyday Practical Electronics’’, Subs Dept,
Wimborne Publishing Ltd. Email: [email protected]. EVERYDAY PRACTICAL ELECTRONICS is sold subject to the following conditions, namely that it shall not, without the written consent
of the Publishers first having been given, be lent, resold, hired out or otherwise disposed of by way of Trade at more than the recommended selling price shown on the cover, and that it shall not be lent, resold,
hired out or otherwise disposed of in a mutilated condition or in any unauthorised cover by way of Trade or affixed to or as part of any publication or advertising, literary or pictorial matter whatsoever.