You are on page 1of 100

Page 1

1:12 PM
1/10/2008
Cover.qxd

Vol. 29 No. 2 NUTS & VOLTS FLASHLIGHT EVOLUTION • A2D SIGNAL PROCESSING • METAL DETECTOR F
Full Page.qxd 12/4/2007 4:26 PM Page 2
Full Page.qxd 12/4/2007 2:26 PM Page 3
TOC Feb08.qxd 1/10/2008 1:39 PM Page 4

F E B R UA RY 2 0 0 8

PROJECTS and FEATURES COLUMNS


10 TECHKNOWLEDGEY
32 FOLLOW THE FLASHLIGHT 60 HDTV AUDIO 2008
EVOLUTION Discover the best choices to Events, advances, and
news from the electronics
Using just a few components, make when passing audio from world.
you can transform a traditional one device to another.
bulb flashlight into a super ■ By Jeff Mazur 14 PERSONAL ROBOTICS
bright, energy-saving LED Ping pong printer.
flashlight. 67 22 Q&A
■ By G.Y. Xu Digital compass, motion
detectors, improved TV
reception, more.
38 A LOW COST RF
IMPEDANCE ANALYZER 74 PICAXE PRIMER
A voltmeter, signal generator, Playing music and
and a few parts combine to watching lights.
make a powerful impedance 67 LOW-COST CURVE TRACER 80 OPEN COMMUNICATION
measuring tool. This unit works with a PC-based A femto in your future?
■ By George R. Steber scope to determine the voltage-
current characteristics of 82 THE DESIGN CYCLE
Introducing the 32-bit PIC!
50 BUILD A FOUR TRANSISTOR semiconductor devices.
METAL DETECTOR ■ By Peter D. Hiscocks and 96 IN THE SPOTLIGHT
Search for buried treasure with James Gaston Jameco Electronics.
this easy to construct device.
■ By Paul Florian 72 A2D SIGNAL PROCESSING DEPARTMENTS
A-to-D conversion is a common 06 DEVELOPING
55 method used to acquire real world PERSPECTIVES
signals with digital electronics, but
you have to pay close attention to 08 READER FEEDBACK
operating parameters.
28 NEW PRODUCTS
■ By Larry Cicchinelli
30 SHOWCASE

66 ELECTRO-NET

87 NV WEBSTORE

90 CLASSIFIEDS

92 TECH FORUM
55 THE SECRET LIFE OF A WIRE 97 AD INDEX
Learn how wires used in
resistors, capacitors, inductors, Nuts & Volts (ISSN 1528-9885/CDN Pub Agree
#40702530) is published monthly for $24.95 per year by
antennas, and ground T & L Publications, Inc., 430 Princeland Court, Corona, CA
92879. PERIODICALS POSTAGE PAID AT CORONA,
connections affect AC and CA AND AT ADDITIONAL MAILING OFFICES.
POSTMASTER: Send address changes to Nuts & Volts,
DC signals differently.
■ By W. Lindenbach
14 P.O. Box 15277, North Hollywood, CA 91615 or
Station A, P.O. Box 54, Windsor ON N9A 6J5;
cpcreturns@nutsvolts.com.

4 February 2008
Full Page.qxd 1/9/2008 10:38 AM Page 5
DevPerspective.qxd 1/10/2008 9:34 AM Page 6

DEVELOPING
also the issue of cost. Although taking
the route of using individual compo-
nents may seem cheaper at the outset,
by the time you consider the PC board,
connectors, associated hardware, and
PERSPECTIVES the associated shipping charges, the
FIGURE 1
apparent cost advantage of discrete
by Bryan Bergeron, Editor components over function-specific modules often vanishes.
Furthermore, if you have limited time to devote to electronics, using

T hanks to several pervasive trends in electronics, including


increased miniaturization of components, standardization of
signal formats and levels, and economic pressure to minimize design
modules may be the only practical way to accomplish your goals.
My favorite source for miniature, feather-weight modules is
SparkFun Electronics (www.sparkfun.com). The company offers
and construction time, there is a movement away from prototyping an amazing assortment of modules — switching power supplies,
with components in favor of modules. Instead of working with GPS receivers, Bluetooth modems, cellular transceivers, battery
individual ICs and passive components, cost- and time-conscious chargers, and a variety of sensors — typically pictured atop a
engineers design and construct prototypes by working at the system dime or quarter. Modules from SparkFun and similar vendors
level using function-specific modules. These modules are typically allow you to focus on functionality and exercise creativity at a
composed of ASICs with a handful of SMT discrete components higher level. For example, if your goal is to develop a new navi-
mounted on a fingernail-sized PC board to facilitate ease of assembly. gation algorithm for your mobile robot, you probably don’t want
This shift toward prototyping with modules means that, for to waste time debugging the RF front end of a GPS receiver.
example, instead of considering Ohms law and calculating the value Instead, for about $70, you can purchase a 12-channel receiver
of transistor bias resistors and the like, engineers and electronics with built-in antenna and interface cable, shown in Figure 1.
enthusiasts are free to focus on function. If you embrace this Parallax (www.parallax.com), maker of the modular BASIC
approach, you’ll probably find that you can design, construct, and Stamp series, recently increased its footprint in the modular market-
debug a complete electronic system in a fraction of the time it would place by offering a BASIC Stamp 2pe motherboard. I’ve used the self-
have taken you to build a subsystem from discrete components. contained, $80 microcontroller module, which includes two Atmel
Consider, for example, the challenge of designing and construct- AVR microcontrollers and a BS2pe BASIC Stamp SX microcontroller,
ing a prototype GPS-based navigation system for a mobile robot from to prototype an RFID reader in less than an hour. Power is supplied
discrete components. Even if you’re facile with surface mount com- by the host computer through the
ponents, it’s likely that the switching power supply will be heavier, USB port, and interfacing the module FIGURE 2
require more space, and certainly require more time to construct than to an RFID reader is simply a matter
the complete navigation system constructed with modules. There is of connecting a reader to an inexpen-
sive plug-in I/O daughterboard on
the module, as shown in Figure 2.
The move toward modular pro-
totyping and construction predates the development of microcon-
trollers and many other digital components. To illustrate the point, I
popped the cover of my Magnavox Odyssey video game system
console, shown in Figure 3. The unit, produced in 1972, is
composed of several 2” x 2” analog modules plugged into a
motherboard. Although the modules were specific to the Odyssey
and used proprietary signals and levels, they were ostensibly easier
to replace and repair than a motherboard populated with discrete
components. This advantage was never tested, however, as
the short-lived Odyssey quickly faded into obscurity with the
introduction of the Intel-based digital video games.
The modular approach to construction pioneered by
Magnavox and others has applied successfully to products ranging
from home TVs and computers to commercial navigation systems.
I can remember the distraught look on the faces of fellow techni-
cians when the first module-based Radar systems appeared on the
market. As they predicted, Radar repair was quickly transformed
from a lucrative, all-day, on-site affair to a 10-minute card swapping
exercise that could be performed by anyone with a modicum of
diagnostic skill. Defective modules were either discarded or
shipped to a central plant where automated jigs were used to
quickly diagnose and repair defective components on the modules.
It’s important to note that working with modules doesn’t obvi-
ate the need to understand basic electronics. As Walter Lindenbach
points out in his article ‘Life of a Wire,’
the physics of individual components,
including the cables and wires used to
connect modules, can profoundly
affect circuit operation. Happy proto-
typing! NV FIGURE 3
6 February 2008
Full Page.qxd 10/10/2007 10:14 AM Page 7
ReadFeed Feb08.qxd 1/10/2008 9:28 AM Page 8

READER FEEDBACK line, they shout “Bingo!” and halt the


EVERYTHING FOR ELECTRONICS

Published Monthly By
game. So we have a third sub-set of T & L Publications, Inc.
four or five ‘win’ numbers (four if the 430 Princeland Ct.
AD(594) DO! free cell, if used). The win is declared Corona, CA 92879-1300
(951) 371-8497
In the November Q&A column, when these five numbers are verified. FAX (951) 371-3052
Russell Kincaid designed an eight The greatest number of the members Webstore orders only 1-800-783-4624
channel thermocouple interface in the universe that can be called before www.nutsvolts.com
circuit around the AD594 IC. a Bingo! is 19 (plus that free space). So Subscriptions
By coincidence, I helped another the project firmware doesn’t need to store Toll Free 1-877-525-2539
hobbyist with a similar problem and all 75 possible universe members — just Outside US 1-818-487-4545
also chose the AD594 device. an array of the sub-set called so far in the P.O. Box 15277
According to the manufacturer, current game. Most high-level languages North Hollywood, CA 91615
this device can be used after an also include a pseudo-random number FOUNDER/ASSOCIATE PUBLISHER
analog MUX switch to select multiple generator that can be used to select the Jack Lemieux
thermocouples, yet only use one next picker number. PUBLISHER
AD594. Quite a cost savings as the This is an interesting mental Larry Lemieux
AD594 retails for $10 to $20 each in exercise in logic and well suited to a publisher@nutsvolts.com
hobby quantities! The only require- uC project! It seems to me that the ASSOCIATE PUBLISHER/
ment is that the MUX and related firmware should vend random VP OF SALES/MARKETING
interconnections are held at the same numbers (from the universe set of 75) Robin Lemieux
display@nutsvolts.com
temperature (isothermic) to get good on each PICKER button request until
accuracy. The application note AN369 a player shouts Bingo! Next, the EDITOR
Bryan Bergeron
is very helpful (link: http://tinyurl.com/ VERIFY button is pressed by the caller, techedit-nutsvolts@yahoo.com
256lzt). Keep up the good work! stopping the selection of new num-
— Peter J. Stonard bers, and then automatically scrolling CONTRIBUTING EDITORS
Lou Frenzel Marvin Mallon
Campbell, CA through the members of the called Jeff Eckert Russ Kincaid
sub-set (plus the free cell) slowly for Fred Eady Vern Graner
Jeff Mazur Walter Lindenbach
Response: Thanks for the feedback! verification. The caller presses a third Peter Hiscocks James Gaston
I wish I had found that application note button (CONFIRM) as each called Larry Cicchinelli G.Y. Xu
earlier. Anyone planning to measure number is displayed and verified on George Steber Ron Hackett
Paul Florian
eight temperatures should read AN369 the win line of the player’s card.
and install the isothermal block and If all five members of the called CIRCULATION DIRECTOR
Tracy Kerley
reference junction per Figure 11 of the sub-set are verified, we declare the subscribe@nutsvolts.com
AN369. — Russ player the winner (perhaps we have a
SHOW COORDINATOR
flashing light and sounder?), and a new Audrey Lemieux
VERIFYING BINGO game can begin. If the five numbers do
MARKETING COORDINATOR
Admittedly, I’ve never played not match the called sub-set, we have WEBSTORE
Bingo — it looks like fun! I’m having a denied win. The firmware continues Brian Kirkpatrick
trouble getting my head around the to scroll through the called numbers sales@nutsvolts.com
user interface presented in Charles again (in case one was missed during WEB CONTENT
Irwin’s project in the Oct. ‘07 issue. initial verification) until the picker press- Michael Kaudze
website@nutsvolts.com
What is the function of the “verify es CONTINUE (the fourth button).
plus one” and “verify plus 10” buttons? After a false win has been PRODUCTION/GRAPHICS
Shannon Lemieux
I’m confused why we would add one disqualified, the same game progresses Joe Keungmanivong
or 10 to any existing numbers? and new numbers are picked at
As I understand it, the Bingo game random from the unused universe set ADMINISTRATIVE ASSISTANT
Debbie Stauffacher
has a ‘universe’ set of integers (1 (and copied to the called sub-set)
Copyright © 2008 by T & L Publications, Inc.
through 75 inclusive) and as the game until someone shouts the next Bingo! All Rights Reserved
progresses, an unused number in the A new game starts by cycling the All advertising is subject to publisher’s approval. We are not
responsible for mistakes, misprints, or typographical errors.
universe set is selected at random and power switch, but care must be taken Nuts & Volts Magazine assumes no responsibility for the
given to the bingo caller. This forms a to scramble the pseudo-random availability or condition of advertised items or for the honesty
of the advertiser. The publisher makes no claims for the
sub-set of called numbers that can’t number generator (typically by using legality of any item advertised in Nuts & Volts. This is the sole
be called again in this game and are a new seed number for each game). responsibility of the advertiser. Advertisers and their agencies
agree to indemnify and protect the publisher from any and all
saved for verifying a winner. If a play- — Peter J. Stonard claims, action, or expense arising from advertising placed in
er matches five numbers on their win Campbell, CA Nuts & Volts. Please send all editorial correspondence, UPS,
overnight mail, and artwork to: 430 Princeland Court, Corona,
8 February 2008 Continued on page 91 CA 92879.
Full Page.qxd 1/7/2008 1:02 PM Page 9

Great Kits for


Electronics Enthusiasts •ORDER ON-LINE

Top Selling Kits •ALL PRICING IN


US DOLLARS
•MINIMUM ORDER
10A 12VDC Motor Speed Controller Smart Fuel Mixture Display for ONLY $25
KC-5225 $17.95 + post & packing Fuel Injected Cars
Ideal for controlling 12V DC motors in cars such as fuel
injection pumps, water/air intercoolers and water KC-5374 $17.95 + post and packing
injection systems. You can also use it for headlight This kit features auto dimming for night driving,
dimming and for running 12V DC motors in 24V vehicles. emergency lean-out alarm, and better circuit protection.
The circuit incorporates a soft start feature to Another great feature is the 'dancing' display which
reduce inrush currents, operates when the ECU is operating in closed
especially on 12V loop. Kit supplied with PCB and all
incandescent lamps. electronic components with clear
Includes PCB and all English instructions.
electronic * Car must be fitted with
components. air flow and EGO sensors
(standard on all EFI
systems) for full functionality.

Clock Watcher’s Clock 45 Second Voice Recorder Module Handy Helpers


KC-5404 $82.95 + post & packing KC-5454 $23.25+ post & packing
KC-5416 $110.25 + post & packing This kit can be set up to record two, four or eight
Fujiya 175mm Screw Removing Pliers
This amazing clock uses an AVR driven circuit, and different messages for random-access playback, or a TH-2330 $12.50 + post and
produces a dazzling display with 60 LEDs around the single message for ‘tape mode’ playback. It provides packing
perimeter. It looks amazing, but can't be properly clean, glitch-free line-level audio output suitable for Remove screws even with
explained here. We have filmed it in action so you can see feeding to an amplifier or PA system. It can be powered completely stripped heads. Simply
for yourself on our website www.jaycarelectronics.com. from any source of 9-14V DC. Supplied with silk screened grab the screw head with these
Kit supplied with double sided and solder masked PCB and all Japanese made pliers and turn.
silkscreened plated through electronic Beautiful.
hole PCB and all board components. • 175mm long
components as well as the • Soft grip handle
special clock housing!
Available in Red or Blue Waterproof (IP67) LED
Red KC-5404
Blue KC-5416 Lighting Modules
Each $5.75 + post and packing
Endless possibilities - backlighting signs, strip
lighting in stairwells & passageways, boats, garages
Audio Playback Adaptor for CD-ROM Drives etc. Supplied as 10 x 3 LEDs module, 10 modules,
with 500mm flying leads for termination. Each
KC-5459 $37.75 + post & packing module is spaced at approximately 110mm between
Put those old CD-ROM drives to good use as CD players centres. Simply connect up a 12VDC 600mA supply
using this nifty adaptor kit. The adaptor accepts signals and away you go.
from common TV remote controls and operates the audio Two types available
functions of the drive as easily as you would control a ZD-0490 White
normal CD player. Kit features a double sided PCB, pre- ZD-0492 Blue
programmed micro controller, and IDC connectors for the
display panel. Supplied with solder masked and screen
printed PCB and all required electronic components.

Low Voltage Battery Warning


Build-Yourself KG-9000 $6.00 + post and packing
This circuit monitors any battery
Electronic Project Kits voltage between 3-15 volts. Whenever
the voltage falls below a
Looking for a particular KIT? Post and Packing Charges predetermined value a Red LED
Order Value Cost Order Value Cost lamp lights up to alert you. Uses
Checkout Jaycar’s extensive range. $25 - $49.99 $7.50 $200 - $499.99 $60 a tiny amount of power from the
We have kits and electronic projects for use in: $50 - $99.99 $20 $500+ $75 battery being monitored. Use it
$100 - $199.99 $40 for monitoring all sorts of battery
• Audio & Video
Max weight 12lb (5kg). Heavier parcels POA. systems and avoiding battery damage.
• Car & Automotive Minimum order $25.
• Computer Note: Products are despatched from Australia, so local
Light-Sensitive Switch 240VAC 10A
• Learning & Educational customs duty and taxes may apply. AA-0326 $5.00 + post and packing
Turn a mains powered device on or off
• Lighting How to order: according to the ambient light level. Ideal
• Power Phone: Call Australian Eastern Standard Time Mon-Fri for garden lighting or security applications.
on 0800 032 7241
• Test & Meters Email: techstore@jaycar.com
The controller is weather resistant
and includes a mounting bracket.
• General Electronics Projects 430+ pages Post: PO BOX 6424, Silverwater NSW 1811. Australia Approx 80mm high.
- just for fun! ALL prices in USD Expect 10-14 days for air parcel delivery

Check out the Jaycar range in your FREE Catalog - logon to


www.jaycar.com/catalog 1-800-784-0263
(Monday - Friday 09.00 to 17.30 GMT + 10 hours only)
or check out the range at
For those who want to write: 100 Silverwater Rd
www.jaycar.com Silverwater NSW 2128 Sydney AUSTRALIA
Tech2008.qxd 1/9/2008 4:21 PM Page 10

TECH

2008
KNOWLEDGEY
EVENTS, ADVANCES, AND NEWS
■ BY JEFF ECKERT
ADVANCED TECHNOLOGY
NEW CAMERA DETECTS liquid scintillators in two planes. Neu- IBM (www.ibm.com) have taken a
RADIATION THROUGH trons traveling through the scintillators major step toward achieving it. The
WALLS bounce off the protons, energizing breakthrough is a device, called a
them and creating the silicon Mach-Zehnder electro-optic
PHOTO BY RANDY WONG.
“scatter.” When a proton modulator, that converts electrical
subsequently loses its signals into light pulses. This, in itself,
energy, it gives off light. is not particularly amazing. However,
Using interactions in the the IBM version is said to be 100 to
two planes, the camera 1,000 times smaller than any such
can ascertain the direction devices previously demonstrated, so
and energy level of the it could eventually allow complete
incoming neutrons. optical routing networks to be placed
The biggest drawbacks on a single chip, eliminating miles of
to this approach are copper wiring.
size (hand-held detectors In operation, the device first
are considerably more converts an electrical signal into a
convenient) and the fact laser beam and applies it to the
that the scintillator material modulator. It uses tiny “silicon
is flammable and otherwise nanophotonic waveguides” to control
■ Physicist Nick Mascarenhas prepares hazardous to your health. the light flow on the chip, thus acting
the neutron scatter camera for a test. But solid scintillators could eventually like an extremely high-speed shutter.
eliminate the latter problem. Electrical charges injected into

S ince 9/11, gamma-ray and


neutron detectors have been
deployed in many airports and border
After further development, the
Domestic Nuclear Detection Office
plans to ship the camera to Hawaii,
the waveguide change the optical
properties of the silicon, thus
modulating the beam and creating
crossings to help prevent nuclear where the agency will study its optical ones and zeros.
weapons or radioactive materials from viability for shipboard operation. According to Dr. T. C. Chen, VP of
being smuggled into the country. Science and Technology at IBM
These instruments, however, have IBM CLOSER TO Research, “Work is underway within
some significant limitations in terms of COMPUTING WITH LIGHT IBM and in the industry to pack many
range and shield-penetration capabili- more computing cores on a single chip,
ty. A recent development at Sandia PHOTO COURTESY OF IBM. but today’s on-chip communications
National Labs (www.sandia.gov), technology would overheat and be
however, promises to detect radia- far too slow to handle that increase
tion over much greater distances in workload.What we have done is a
and through more shielding than is significant step toward building a vast-
possible with current apparatus. ly smaller and more power-efficient
The “neutron scatter camera” is way to connect those cores, in a way
an improvement over traditional that nobody has done before.”
neutron detection in that it “sees” To put this into perspective, the
only high-energy neutrons and chip that powers the Sony Playstation
ignores the uninteresting, low- 3 has nine cores on one chip. The
energy ones that are all around us. new technology could allow hundreds
In a test, it also easily detected and ■ Diagram of IBM’s optical modulator. or even thousands of cores to be
imaged a radiation source from across connected in the same space and
a hallway and through several walls
and cabinets.
Basically, the camera consists
F or years, designers have talked
about the possibility of computing
with light pulses rather than electrical
transfer data among the cores 100
times faster. Using this technology, a
supercomputer could someday fit into
of elements that contain proton-rich signals. It now looks like scientists at a standard laptop case.
10 February 2008
Tech2008.qxd 1/9/2008 4:21 PM Page 11

TECHKNOWLEDGEY 20 08

COMPUTERS AND and dangerous stuff. Among the


nastiest is the Storm botnet, which is a
NETWORKING huge network of Windows PCs that
are linked by the Storm worm Trojan
COMPUTER FOR THE
horse. It gets into your machine when
BOONDOCKS
you are tricked into downloading an
PHOTO COURTESY OF ALEUTIA LTD. email attachment that turns the PC
into a “zombie” computer. The
machine can then be controlled from
afar and used to attack websites,
spread infected email, and so on, all
without your knowledge. Worse still,
the botnet is capable of defending
itself against attempts to track down
the perpetrators.
Estimates of the Storm botnet’s
■ The Aleutia E1 can be charged from
size run as high as 50 million comput-
a solar panel, allowing off-the-grid ers worldwide, with up to 6,000 of
computing. ■ The devolution of Michael Bolton.
Created using the U. of St. Andrews them dedicated to propagating the
Face Transformer. worm further. The network, which

D esigned for rural Africa and other


electrically inhospitable places,
the Aleutia E1 draws just 8W of power
accessed at http://morph.cs.st-
andrews.ac.uk/Transformer/. All you
cumulatively has computing power
equal to several supercomputers, is
thought to be sending billions of
and runs off a car battery or cheap have to do is upload a .jpg photo of infected messages every day.
solar panel. You would expect someone you want to mess with, The worse news is that the trend
something less than a computing pow- follow a few setup steps, and create a is likely to continue as criminals
erhouse to fit in a box that measures masterpiece of metamorphosis. develop increasingly aggressive and
only about 4.5 x 4.5 x 1.4 inches (11.5 You can convert the victim to refined technologies and focus more
x 11.5 x 3.5 cm), and you would be ages from baby through older adult; attacks on mobile phone and other
right. The processor is a 200 MHz x86 choose between several ethnic devices. You can read the full IT
chip, the machine comes with only groups; make him drunk; make a man Securit y Threat Summary at www.
128 MB of SDRAM, and you won’t look feminine or vice-versa; change f-secure.com/2007/2/.
store many videos in the 1 GB the image to a painting by Modigliani,
compact Flash card. But the E1 and its
eight-inch display will run for 3.5 hours
Botticelli, Mucha, or El Greco; or see
what the person would look like as
CIRCUITS
on a charge of its internal battery, or a Manga cartoon. But best of all, AND DEVICES
you can buy a kit that uses a roof you can also choose the apeman SERIAL-TO-ETHERNET
mounted solar panel and external bat- conversion and devolve him back to GATEWAY
tery to get up to 13 hours of operation. 50 percent chimp. While you’re there,
Other features include three USB
ports, one 10/100 Ethernet port, and
preloaded Puppy Linux OS 2.14 with
you might also try out the Face
Averager and Face Morpher. I f you need to connect some old RS-
232 equipment via TCP/IP protocol,
check out the WIZ110SR from Saelig
a spreadsheet and word processor. MALWARE GROWS (www.saelig.com). It’s a plug ‘n play
The basic package will run you £179 BY 100% gateway module that enables remote
(about $365 unless the dollar checking, management, and control
keeps falling), £389 ($792) for the
“semi-portable” office in a box, or
£499 ($1,016) for the complete
T he bad news is that the
number of new incarna-
tions of malware detected
“ultra-portable” office. Details are in 2007 by F-Secure
available at www.aleutia.com. Corp. doubled over
the previous year, to
TRANSFORM YOUR 500,000. Ominously,
FRIENDS (OR ENEMIES) this equals the previous
20 years’ total manifesta-

T he University of St. Andrews,


Scotland, Perception Laboratory
has provided the world with an
tions of the malodorous

■The WIZ110SR Ethernet gateway.


PHOTO COURTESY OF SAELIG CO.
amusing digital toy that can be
February 2008 11
Tech2008.qxd 1/9/2008 4:22 PM Page 12

of devices via Ethernet and TCP/IP by


INDUSTRY AND that even a stripped-down, Flash-based
Windows XP will likely need 2 GB of
automatically converting the serial
protocol into TCP/IP and vice versa. It
THE PROFESSION memory, and the XO has only 1 GB.
Accordingly, Microsoft is now putting
comes fitted with both DB-9 and RJ45
MICROSOFT LEANS ON the squeeze on OLPC, asking that they
connectors, so all you need to do is
OLPC redesign the computer with another
perform a software setup to create a
10/100 Ethernet interface with a top
memory slot. This, of course, would
T wo years ago, we reported the serial rate of 230 kbps.
increase the cost of the hardware The WIZ110SR offers TCP, UDP,
plans of the One Laptop Per Child
and dodge the open-source part of IP, ARP, ICMP, IGMP, Ethernet MAC,
organization (www.laptop.org) to
the concept. and PPPoE protocols. Three different
help out the world’s two billion poorly
So far, there is no word as to modes of operation are supported:
educated children by putting
the charity’s reaction, but Microsoft TCP server, TCP client, and UDP. (The
computers into their hands. The
has announced that it will conduct UDP mode, which doesn’t require
cornerstone of the program is the XO
“limited field trials” of XP on the XO transmitted data to be acknowledged,
computer, which was designed to be
this year. can speed up communications.)
as inexpensive as functionally possible.
Operation requires 3.3 V at 150 mA.
Apparently, the program has begun to ARE YOU PAID ENOUGH? Best of all, the WIZ will run you
catch on, with Uruguay recently order-

I
ing 100,000 of them and the “Give f you presently work as an engineer, only $29.99.
One, Get One” program attracting you can find out how your salary
donations from all over the USA and measures up by visiting www.engi POWER DETECTOR
Canada. At present, you can send one neersalary.com. According to the RESPONDS IN 500 NS
to a developing country for $200. The site, as of 2006, there were 292,800 ■The LT5570
machines run the free, open-source electrical engineers working in the power detector.
PHOTO COURTESY OF LINEAR
OS Linux, which seems to be a major USA, which is second only to software TECHNOLOGY CORP.

irritation to the folks at Microsoft; they engineers (329,000). The top 10


want a piece of the pie.
In a December press release, the
percent earned nearly $120,000,
whereas the bottom 10 percent pulled W ith the
advent
of more com-
company announced that it will in less than $45,000. Job growth
publish “formal design guidelines early into 2009 is projected to be relatively plex modulation
next year that will assist Flash-based favorable, particularly in defense- schemes to allow
device manufacturers in designing related areas, as many engineers will increased data rates
machines that enable a high-quality change occupations, be promoted to in next-generation
Windows experience.” The problem is management, or retire. wireless standards, it is
becoming more difficult to measure
the resulting high-crest-factor signals.
But a solution from Linear Technology
(www.linear.com) is the LT5570
power detector.
The device provides accurate
(±0.5 dB over a range of -40 to +85°C)
RMS power measurement of a 40
MHz to 2.7 GHz AC signal over a
60 dB dynamic range, even with a crest
factor of up to 12 dB. It also offers a
fast response with a full-scale rise time
of 500 ns. The LT5570 provides a DC
output that is proportional to the RMS
value of the input signal power.
Minimum sensitivity is -53 dBm at
880 MHz and -43 dBm at 2.14 GHz.
It operates from a single 5V supply,
drawing a quiescent current of 26.5
mA. A shutdown feature reduces
supply current to 0.1 A. It comes in a
10-lead 3 x 3 mm DFN (dual flat
no-lead) package and will run you
$5.75 in production quantities. NV
12 February 2008
Full Page.qxd 1/7/2008 1:10 PM Page 13
PersonalRobotics.qxd 1/10/2008 9:05 AM Page 14

■ BY VERN GRANER
PERSONAL ROBOTICS
UNDERSTANDING, DESIGNING & CONSTRUCTING ROBOTS & ROBOTIC SYSTEMS

PING PONG PRINTER


IN THE DECEMBER ISSUE, I told you the story of The Ponginator — a 20-foot
tall ping pong ball shooting, video screen sporting, light blinking, sound-
blasting robot that the Robot Group built for Maker Faire in Austin, TX (Figure
1).The Ponginator was quite a hit, firing eight ping pong balls hundreds of feet
out over the crowd every 30 minutes or so. Each ball was custom printed with
the logo from The Robot Group and Maker Faire (Figure 2). Though a big
success, one thing that sorta snuck up on us was the accumulated cost. Even
when ordered in the 500 piece range, the commercially printed ping pong balls
cost approximately 60 cents each. At the Maker Faire event, we were loading
each of the four pneumatic guns with two balls per barrel on most shots
(sometimes more); this resulted in each firing sequence costing almost $5! At
this rate (about $10/hour), Ponginator was a bit pricey to operate. Since we had
planned to use the Ponginator in other shows in the future, I wanted to find a
way to bring the price of operation down.That meant finding cheaper “ammo.”

T he simplest solution would be to


fire plain white ping pong balls. A
bit of web searching found a number
of suppliers that would ship a gross
(144) of these for around $15. This
would bring the cost from 60 cents
venirs of the event. With nothing spe-
cial about a boring white ping pong
ball, this would be highly unlikely. So
down to just under 10 cents per ball. the question was, could we somehow
■ FIGURE 1. The Ponginator at Maker Although much more economical, the print something on the ball ourselves?
Faire in Austin. lack of any text or graphic really
reduces the “neato factor” that the
logo-bearing balls had. I really hoped
“PONGINATOR NEEDS
folks would want to keep these as sou- AMMO BADLY!”
As those of you who read the article
on the RoboSpinArt machine know (see
Nuts & Volts, January ‘08), I use a serial
inkjet printer kit from Parallax (Figure 3)
mounted on a retractable servo con-
trolled arm (Figure 4) to inscribe event
info on each of the spin art cards just
before painting (Figure 5). As I had expe-
rience using this kit, I performed a simple
test to see if ping pong balls could be
used as print media for an inkjet.
First, I hooked up the serial inkjet
board and a continuous rotation servo
■ FIGURE 2. Commercially printed
ping pong ball.
14 February 2008
PersonalRobotics.qxd 1/10/2008 9:05 AM Page 15

PERSONAL ROBOTICS

■ FIGURE 3. ■ FIGURE 4. Inkjet arm


Parallax serial on RoboSpinArt Machine.
inkjet printing
kit.

to an EFX-TEK Prop-2 board (a very could bring something over. He


convenient BASIC Stamp II based showed up on my doorstep with the
controller). I wrote some code that PingPongPrinter Prototype.
would dump a single line of text to the Wow! The device was a beautifully
serial print interface and then start the rendered Rube Golbergian master-
servo motor spinning. I placed a blank piece crafted from clear Lucite and alu-
white ping pong ball on the servo and minum. It was festooned with servos,
then held the inkjet cartridge at the linkages, push rods, and even an ammo
“equator” of the ball. “hopper” made from a five gallon water
Even with the inkjet cartridge bottle with a gear motor driven agitator
hand-held, the printing came out (Figure 6). The agitator had dual vertical
looking pretty good. And, after drying rods held together with a dome shaped
for just a few seconds, it was brace so it could stir up the ping pong
both clearly visible and fairly indelible. ball ammo and make sure there was
I could rub the text, and it didn’t always a ball ready to drop (Figure 7). ■ FIGURE 5. Inkjet printed text
smear or come off on my fingers. Below the hopper was a loading on spinart card.
Now that I had a proof of concept, tube managed by a servo motor
it was time for some brainstorming on controlled “indexer”(Figure 8). The servo lower rod. In release position, the upper
a mechanism with my favorite machin- was attached to a rotating disk to extend rod is extended to block the load tube
ist and fellow roboteer, Rick Abbot. and retract two rods in the path of the from the rest of the balls in the hopper
ping pong balls. It had two simple, mutu- while the lower rod retracts releasing
SODA AND SKETCHES ally exclusive positions: load and release.
In the load position, the upper rod
one ball to fall down to the next stage.
Once a ball falls down the tube, it
I lured Rick to a meeting at my is retracted, allowing a single ball to fall comes to rest on a small aluminum
house and stuffed him with soda pop down into the loading tube that is pedestal that was topped with a
and tortilla chips while I sketched out a stopped from falling through by the rubber o-ring for both traction and
design for a ping pong ball
printer on the white board. He ■ FIGURE 7.
nodded sagely, made some Hopper
agitator.
notes and said he might be able
to come up with “something” in
a bit. He left with a few ping
pong balls, a couple of servos,
and the serial inkjet kit.
About a week went by,
and I got a call from Rick asking
if I might be available so he

■ FIGURE 6. PingPongPrinter
prototype (shown here with
agitator removed and placed
in the foreground for clarity).
February 2008 15
PersonalRobotics.qxd 1/10/2008 9:06 AM Page 16

■ FIGURE 9. Pedestal, print


head, and eject servos.
c) Wait for one revolution of
the pedestal.
d) Stop the pedestal rotation.
e) Move the print head to
the next line.

8) Retract the print head to


read position.
■ FIGURE 8.
The indexer. 9) Move the eject servo to
eject position.
shock absorption (to keep the ball each step in the printing process, it
from bouncing off; see Figure 9). The became clear that it was going to be 10) Move the eject servo to ready
aluminum pedestal was perched on a an intricate task to get the printer to position.
continuous motion servo that could perform. I identified each specific
rotate the ball under the print head to function by following the progress of a I next took the above functions
allow lines of text to be printed. There ball from beginning to end: and started to create subroutines that
was also a print head servo that would I could call in sequence. However, at
position the print head around an 1) Move all servos to initial/ready one point it appeared that I would
arc-shaped path. This way, lines of text positions. need to do two things at once (rotate
could be written anywhere between the pedestal and send text to the print
the two “poles” of the ball. 2) Agitate the ammo in the hopper. control board). Since the Prop-2 board
Lastly, a servo motor controlled an is based around the Parallax BASIC
eject mechanism that would gently 3) Move the indexer from release to Stamp, it’s a bit tricky to make things
push the printed ball from the pedestal load position. appear to operate in parallel.
when it was complete. As usual, Rick’s For example, in order for a contin-
amazing mechanical skills had placed 4) Wait for a ball to fall into the load- uous motion servo to turn, you must
a very nice mechanism in my hands ing tube. feed it a constant “diet” of pulses from
(Figure 10). Now, I needed only to the microcontroller. To make sure the
write some software to bring it to life. 5) Move the indexer from load to pedestal would spin, I created a loop
release position. that would send a set of pulses every 20
READY, SET, CODE! 6) Wait for the ball to fall and settle on
ms to the servo. But, since the BASIC
Stamp was busy sending pulses, it could
I attached the servos to the Prop- the pedestal. not also send text strings to the inkjet.
2 board, sat myself down, and stared I entertained the idea of some
at the device for a while. Though what 7) Repeat next steps one time per text fancy-footwork programming (e.g.,
it needed to do was relatively straight- message inscribed: making the code jump out of the servo
forward, as I started to make notes on a) Send text string to the serial loop on every <x> iterations, fetch a
inkjet interface card. character from the sentence to be
■ FIGURE 10. Close-up of b) Start the pedestal rotation servo. printed, send that character to the
PingPongPrinter mechanism. inkjet, then jump back into the
servo loop). However, I always
prefer simple solutions during
the dev cycle. This is especially
important at the beginning of a
project where you can waste a
lot of time designing tricky code
routines that you may later have
to abandon if the project moves
in another direction.
So, in an attempt at a quick
fix, I decided to dump the
entire sentence of text to
the inkjet interface and then
■ FIGURE 11. Finished ball immediately start the loop that
printed by PingPongPrinter. rotates the pedestal servo. The
16 February 2008
PersonalRobotics.qxd 1/10/2008 9:07 AM Page 17

PERSONAL ROBOTICS

initial test of this method worked pretty printing is complete. This would also ly while it is printing, creating a serpen-
well with one small issue. The first two help to make sure the ink was dry by tine or candy-stripe text inscription as an
to three letters of text in the sentence the time the ball was delivered. additional effect (this effect might be the
were printed on top of each other, mak- I’ve also considering adding a coin tipping point that forces me to add that
ing a vertical black line on the ball. The slot type mechanism to allow the serial servo controller, or maybe even
problem was that the inkjet unit would machine to be used for fund raising at move to a Propeller Chip!).
start to print text before the pedestal events. Some improvements on the Anyway you look at it, this should
rotation could begin. There was a sim- inscriptions have also been discussed, be a fun project to advance. I’ve includ-
ple solution to this problem. I prefaced such as in addition to the event informa- ed a link in the resources area to a video
each text string with three “spaces” so tion, a different fortune printed on each of the printer in operation so point
the print head would print nothing ball. I’ve also done some experimenting your browser there if you want to see
before the pedestal could come up to with moving the print head continuous- the PingPongPrinter in action. Once the
speed. The resulting printed output
looked surprisingly good (Figure 11).
Though I’m reasonably sure I could
solve the parallel function issues by
using a serial servo controller to run the
pedestal servo (thereby freeing up the
BASIC Stamp to send text), I prefer
fewer parts and lower cost if I can
manage it. After all, this whole project
was motivated by the high cost of the
pre-printed ping pong balls. Bottom line
for Engineers
is that through trial and error, I’ve man-
aged to get a working ping pong ball
printer using just the servos and a sin-
gle Prop-2 board. If any more features
are added, I may have to switch to a
serial servo controller. But, for now, it’s
nice to know I can print ping pong balls
with a single microcontroller solution.

WRAP IT UP, I’LL TAKE IT!


Though the basics of the Ping
PongPrinter have been accomplished
(Figure 12), I plan to continue to
improve it for use at other events. One
of the first planned improvements is to
place the device in some sort of case to
make it more stable and to protect the
mechanism from inquisitive fingers. I
also envision adding more “bells and
whistles” to the device to make its
operation even more interesting to
www.mouser.com
watch. The addition of LED lights to the Over 900,000 Products Online
various stages of the device would help
observers to follow the progress of the
• The ONLY New Catalog Every 90 Days
ball as it makes its way from a blank to
a fully printed final piece. • NEWEST Products & Technologies
Once the entire printer is • More Than 335 Manufacturers
mounted inside a case, one possible • No Minimum Order
delivery method we’ve been consider- • Fast Delivery, Same-day Shipping
ing is using the Bernoulli Principle to
The Newest Products
“float” the finished ball up out of the
machine on a cushion of air, leaving
(800) 346-6873 For Your Newest Designs
the ball suspended on a column of Mouser and Mouser Electronics are registered trademarks of Mouser Electronics, Inc. Other products, logos, and
air above a delivery tube when the company names mentioned herein, may be trademarks of their respective owners.

February 2008 17
PersonalRobotics.qxd 1/10/2008 9:08 AM Page 18

project has moved further along, I’ll try came up among some of The Robot
RESOURCES and post some updated videos/pictures Group members. We started discussing
■ The Robot Group to TheRobotGroup.org website. the ideal workbench for crafting and
www.TheRobotGroup.org repairing electronics and robotics. I’ve

■ First Night Austin SHOW US YOUR BENCH! always been curious about how people
get things done in their own
www.FirstNightAustin.org To wrap up my column this month, workspaces, so, I’d like to ask Nuts &
■ EFX-TEK
I’d like to ask a favor of you folks, the Volts readers to take a picture of their
www.efx-tek.com readers. Recently, the topic of what I’ve workbench and send it to me. Include a
dubbed the “Habitat For Hobbies” description of the tools you think are
■ Parallax Serial Inkjet Kit essential, what you do like and don’t
http://tinyurl.com/yt8g6h like about your current layout, and
what you would consider a perfect
■ PingPongPrinter Demo Video workspace for projects. Please feel free
www.youtube.com/watch?v=8Ep5OC
3E02I to offer any advice that would benefit
someone just starting out, or that some-
Rick Abbot is a master machinist and one ready to remodel their workspace
serves on the Board of Directors for would benefit from knowing.
The Robot Group, Inc. I plan to combine the advice and
photos for a future article. I’ll be taking a
Vern Graner is President of The Robot
picture of my workbench (a.k.a., Disaster
Group, Inc., in Austin, TX and may be
reached via email at vern@txis.com. Central), so don’t be embarrassed to
send in a picture of your workbench —
I’d like to thank the Austin Word warts and all! Please email your submis-
Woman herself, Kate Howard, for sions to vern@txis.com. Thanks! NV
her help in crafting this (and other)
articles. Thanks Kate! ■ FIGURE 12. PingPongPrinter loaded
and ready to print.

18 February 2008
Page19.qxd 1/10/2008 8:02 AM Page 19

Extreme Robot Speed Control!


6 14V - 50V - Dual 80A H-bridges - 150 A+ Peak!
6 Adjustable current limiting
6 Temperature limiting
6 Three R/C inputs - serial option
6 Many mixing options - Flipped Bot Input
6 Rugged extruded Aluminum case
6 4.25" x 3.23" x 1.1”
$399

$79.99 $119.99
$29.99 Scorpion XL
Scorpion HX
Scorpion Mini 6 Dual 2.5A (6A pk) H-bridges 6 Dual 13A H-bridge 45A Peak!
6 2.5A (6A pk) H-bridge 6 Plus 12A fwd-only channel 6 5V - 24V
6 5V - 18V 6 5V - 18V 6 2.7“ x 1.6” x 0.5”
6 1.25“ x 0.5” x 0.25” 6 1.6“ x 1.6” x 0.5”

Introducing Dalf
6 Closed-loop control of two motors
6 Full PID position/velocity loop
6 Trapezoidal path generator
6 Giant Servo Mode!
6 PIC18F6722 CPU $250
6 C source for routines provided
6 See www.embeddedelectronics.net
H-bridges: Use with Dalf or with your Micro/Stamp

OSMC Simple-H
6 Monster power! 6 6-28V 25A!
6 14-50V 160A! 6 2.25”x2.5 ”x0.5”
6 3.15”x4.5”x1.5” 6 3 wire interface
6 3 wire interface 6 current & temp
$79 protection

MADE IN

THE USA
www.robotpower.com
Phone: 253-843-2504  sales@robotpower.com

You know it wants one. Go ahead, spoil your robot. Give it the brain and the brawn to take on other robots.
Give your robot the power to do anything it can imagine.
All modules shown actual size

TReX Jr TReX dual motor


$59.95 TReX Jr: all the great features of controller $99.95
the full TReX in a lower-power,
lower-cost package.

full-
ta n L V-168: er
Orangu obot controll
d r t age
feature r lo w-vol TReX
f o uC,
perfect m ega168 s , innovat
dual m
otor co
A T
robots. l H-b
ridge
switchin
ive desi
gn allo
ntroller
:
a n n e and w s
2-ch b uzzer, (RC) o
g betwe
en radio
instant
D ,
8x2 L
C more. r co
asynchr a n a l o g v o l t a g ntrol
onous s e and
TTL) wi eri
th a mul al (RS-323 or
features titude of
Orangutan LV-168 $59.95 . addition
al
6000 S. Eastern Ave. 12D, Las Vegas, NV 89119 Find out more at www.pololu.com or by calling 1-877-7-POLOLU.
February 2008 19
NutNVolt200802.qxd 1/7/2008 11:48 AM Page 20

The Latest...
And the Greatest!
Subminiature
40W Stereo
Amplifier
✔ 2 independent 20W
amplifiers in one
SMT package!
Electrocardiogram ✔ Super efficient
ECG Heart Monitor Class D spread
spectrum design!
✔ Visible and audible display of your heart rhythm! ✔ Built-in click and
✔ Bright LED “Beat” indicator for easy viewing! pop suppression!
✔ Re-usable hospital grade sensors included! ✔ Selectable gain
✔ Monitor output for professional scope display from +22dB to +36dB!
✔ Simple and safe 9V battery operation ✔ Logic level mute and shutdown!
✔ Runs cool, no heat sink required!
February is the month for For
Valentine’s Day, and what a great time ✔ Built-in thermal protection!
✔ Runs on 10 to 18 VDC
New008
to think of your heart! Not how many times 2
it’s been broken, not how many times it’s fall- The UAM4 is the big brother to the extremely pop-
en head over heels in love, but how it actually ular UAM2. It uses the latest spread spectrum
works...and how it’s doing these days! amplifier technology to bring you clear, crisp, high-
power audio without any of the heat which is nor-
Use the ECG1C to astound your physician with your knowledge of ECG/EKG systems. mally associated with such an amplifier. It’s
Enjoy learning about the inner workings of the heart while, at the same time, cover- extremely clean Class D design produces two
ing the stage-by-stage electronic circuit theory used in the kit to monitor it. The three independent 20 watt outputs! This can also be
probe wire pick-ups allow for easy application and experimentation without the cumbersome harness normal- bridged to an extremely efficient (87%!) single
ly associated with ECG monitors. The documentation with ECG1C covers everything from the circuit descrip- channel (mono) 40 watt amplifier.
tion of the kit to the circuit description of the heart! Multiple “beat” indicators include a bright front panel LED
that flashes with the actions of the heart along with an adjustable level audio speaker output that supports And at 40 watts, you’re probably already wonder-
both mono and stereo hook-ups. In addition a monitor output is provided to connect to any standard oscillo- ing about the heatsink requirements to dissapate
scope to view the traditional style ECG/EKG waveforms just like you see on ER... or in the ER! See the display the heat, right? Stop wondering, there’s no heat,
above? That’s one of our engineers, hooked up to the ECG1C after an engineering meeting! so there is no heatsink required! And all that
power is generated in a single SMT device the size
The fully adjustable gain control on the front panel allows the user to custom tune the differential signal of your thumbnail on a small 2½” square board!
picked up by the probes giving you a perfect reading and display every time! 10 hospital grade re-usable
probe patches are included together with the matching custom case set shown. Additional patches are avail- The high impedance input is designed to use your
able in 10-packs. Operates on a standard 9VDC battery (not included) for safe and simple operation. Note, choice of either a balanced line input or an unbal-
while the ECG1C professionally monitors and displays your heart rhythms and functions, it is intended for hob- anced signal source using easy to connect Euro
byist usage only. If you experience any cardiac symptoms, seek proper medical help immediately! terminal blocks. Logic connections to ground are
also provided to mute and/or shut down the
ECG1C Electrocardiogram Heart Monitor Kit With Case & Patches $44.95 amplifier. You can also enable the built-in over
ECG1WT Electrocardiogram Heart Monitor, Factory Assembled & Tested $89.95 temperature signal to activate one of these con-
ECGP10 Electrocardiogram Re-Usable Probe Patches, 10-Pack $7.95 trols automatically! Easy to use board jumpers
offer selectable gain of +22dB, +25dB, +29.5dB or
+36dB to match your input levels. Board jumpers
Electronic SMT LED also enable protection and shutdown options as
“Love Tester” Flashing Heart Pin well as stereo/mono/bridge mode. The amplifier
also features built-in click and pop suppression to
✔ 10 LED love scale display! ✔ Use it as a pin or pennant! protect not only your ears and sanity, but your
✔ Audible love level sound! ✔ 2 brilliant blue LEDs speakers and equipment!
✔ Great party fun! ✔ 3 brilliant red LEDs
✔ Heart shaped PC board! ✔ Magnetic pin attachment Power input for maximum rated output is 18VDC
This .9” heart-shaped pin is sure to be at 2.64A. Input voltage can be reduced to a mini-
This uniquely shaped “Love Tester” is the ultimate an attention getter. 5 bright LEDs (2 mum of 10VDC while maintaining the same high
gag for any couple! Designed to check your love blue, 3 red) flash brightly, guaranteed to elicit inter- efficiency operation with reduced output power. If
life, each partner holds one end of the tester PCB at est from anyone (or anything) attracted to shiny you’re looking for an incredible stand-alone stereo
the appropriate male and female touch pads. Then objects! Factory assembled and tested and ready to (or mono) amplifier to build into your equipment,
they romantically join hands and watch the results use. vehicle, speakers, or application, the UAM4 is the
on the love meter! 10 green, yellow, and red LEDs latest and the greatest!
act like a scale, and just like the carnival when it hits The unique design can be hung as a pennant using UAM4 Subminiature 40W Amp Kit $69.95
the top they flash, indicating you're a red hot cou- the small hole at the top. But it gets even better,
ple! There is also an audible alarm that changes this little heart comes complete with a small but
with the “love level”. Next time the party isn’t going powerful magnet to “pin” it to your clothing...with- Retro Nixie Tube Clocks
anywhere, bring this out, it’s a riot! out any holes! Holds it in place and it can even be
moved! Runs on two standard CR927 button cells
Wide sensitivity range is compatible with all couples. (included) and turns on and off from the back.
Includes a built-in power on/off switch. Runs on a Show everyone how you feel about that special per-
standard 9V battery. Measures 4.1” x 3.1” x .98”. son in your life with this lively pin!
MK149 Electronic Love Tester Kit $16.95 LFB3 SMT LED Flashing Heart Pin $2.95

LED Magic SMT LED Flashing For


Message Wand Heart Display New008
2
✔ Message floats in air! ✔ Alternating flashing! ✔ .7” bright orange Nixie display!
✔ Fun at concerts & events! ✔ 6 super bright SMT LEDs! ✔ 12/24 hour soft-fade display!
✔ High visibility red LEDs ✔ Learn all about SMT! ✔ Today’s technology with yesterday’s display!
✔ Pre-programmed or cus- ✔ Definitely gets her attention! ✔ Custom hand-made wooden base!
tom messages ✔ The ultimate conversation piece!
Use the “Magic Wand” to display your true feelings! This cute little kit gives you a distinctive red display The Nixie tube made it’s debut in 1954 and
Simply shake it back and forth and brilliant mes- using 6 Surface Mount (SMT) LEDs. The PC board is became the standard in high-end test and military
sages seem to appear in mid-air! Six high intensity in the shape of a red heart. The small size makes it equipment. We brought it back in 2008 in one of
LEDs are microprocessor controlled to display mes- perfect to be used as a badge or hanging pendant the neatest digital clocks available today!
sages and graphics that are pre-programmed into around your neck. Even better as an illuminated
the wand. attention-getting heart to accompany a Valentines It features six IN14 Nixie tubes mounted in a
Day card! beautiful hand crafted and hand rubbed Teak and
You can also custom program a message of your Maple base. Advanced features include 12/24
choice! From amazing your friends, making a state- Makes a great SMT learning kit to bring you into the hour format, brightness control, soft fade out, and
ment at a concert, or simply telling your loved one world of SMT technology, design, and hands-on sol- auto-dim for selected windows of time. Runs on
how you feel, the message wand can’t be beat! dering and troubleshooting. Don’t worry, extra SMT 12VDC with included AC power supply and utilizes
parts are included just in case you lose or damage a crystal time base accurate to 20ppm. You will
Runs on two AAA batteries (not included), and the any! Runs on a small CR2025 or CR2032 button cell be mesmerized watching the bright orange glow!
auto power off circuit gives you long battery life. (not included). Measures 1.9” x 1.7” x .3”. Available in kit form or factory assembled
IN14TM Retro Nixie Clock Kit $329.95
MK155 LED Magic Wand Kit $13.95 MK144 SMT LED Flashing Heart Kit $11.95 IN14TMWT Retro Nixie Clock Asmb $369.95
NutNVolt200802.qxd 1/7/2008 11:53 AM Page 21

Tickle-Stick Shocker Super Snoop Amplifier Passive Aircraft Monitor


The kit has a pulsing 80 volt tickle Super sensitive amplifier that will The hit of the decade! Our patented receiver
output and a mischievous blink- pick up a pin drop at 15 feet! Full 2 hears the entire aircraft band without any tun-
ing LED. And who can resist a watt output drives any speaker for a ing! Passive design has no LO, therefore can
blinking light and an unlabeled great sound. Makes a great “big ear” be used on board aircraft! Perfect for air-
switch! Great fun for your desk, “Hey, microphone to listen to the “wildlife” both shows, hears the active traffic as it happens!
I told you not to touch!” Runs on 3-6 VDC. in the field and in the city! Runs on 6-15 VDC. Available kit or factory assembled.
TS4 Tickle Stick Kit $12.95 BN9 Super Snoop Amp Kit $9.95 ABM1 Passive Aircraft Rcvr Kit $89.95

LED Blinky Laser Light Show Electronic Siren


Our #1 Mini-Kit for 35 years! Just like the big concerts, you Exactly duplicates the upward and down-
Alternately flashes two jumbo red can impress your friends with ward wail of a police siren. Switch clo-
LED’s. Great for signs, name badges, your own laser light show! sure produces upward wail, releasing it
model railroading, and more. Used throughout Audio input modulates the laser makes it return downward. Produces a loud
the world as the first learning kit for students young and display to your favorite music! 5W output, and will drive any speaker! Horn speakers
old! Great solder practice kit. Runs on 3-15 VDC. Adjustable pattern & speed. Runs on 6-12VDC. sound the best! Runs on 6-12 VDC.
BL1 LED Blinky Kit $7.95 LLS1 Laser Light Show Kit $44.95 SM3 Electronic Siren Kit $7.95

Universal Timer Voice Activated Switch Tone Encoder/Decoder


Build a time delay, keep something on Voice activated (VOX) provides a Encodes OR decodes any tone 40 Hz to
for a preset time, provide clock pulses switched output when it hears a 5KHz! Add a small cap and it will go as
or provide an audio tone, all using the sound. Great for a hands free PTT low as 10 Hz! Tunable with a precision 20
versatile 555 timer chip! Comes with circuit switch or to turn on a recorder or light! turn pot. Great for sub-audible “CTS” tone squelch
theory and a lots of application ideas and schematics to Directly switches relays or low voltage loads up to encoders or decoders. Drives any low voltage load up
help you learn the 555 timer. Runs on 5-15 VDC. 100mA. Runs on 6-12 VDC. to 100mA. Runs on 5-12 VDC.
UT5 Universal Timer Kit $9.95 VS1 Voice Switch Kit $9.95 TD1 Encoder/Decoder Kit $9.95

RF Preamplifier Touch Switch Walking Electronic Bug


The famous RF preamp that’s been Touch on, touch off, or momentary Built around a pair of subminiature
written up in the radio & electronics mag- touch hold, it’s your choice with this cell phone motors, this bug wanders
azines! This super broadband preamp cov- little kit! Uses CMOS technology. around looking for things to bump
ers 100 KHz to 1000 MHz! Unconditionally stable gain Actually includes TWO totally separate touch circuits on into! Sensors below his LED eyes sense
is greater than 16dB while noise is less than 4dB! 50- the board! Dries any low voltage load up to 100mA. proximity and make him turn away! Steer him with
75 ohm input. Runs on 12-15 VDC. Runs on 6-12 VDC. flashlights too! Runs on two “N” batteries.
SA7 RF Preamp Kit $19.95 TS1 Touch Switch Kit $9.95 WEB1 Walking Bug Kit $29.95

Mad Blaster Warble Alarm DTMF Encoder Decoder Practice Guitar Amp & DI
If you need to simply get atten- Decodes standard Touch Tones from Practice your guitar without driving your family
tion, the “Mad Blaster” is the telephones, radio, or any audio or neighbors nuts! Works with any electric,
answer, producing a LOUD ear shat- source. Detects and decodes any acoustic-electric, or bass guitar. Plug your MP3
tering raucous racket! Super for car single digit and provides a closure player into the aux input and practice to your
and home alarms as well. Drives any to ground up to 20mA. Great for favorite music! Drives standard headphones
speaker. Runs on 9-12VDC. remote tone control Runs on 5VDC. and also works as a DI for any home stereo!
MB1 Mad Blaster Warble Alarm Kit $9.95 TT7 DTMF Encode/Decode Kit $24.95 PGA1 Personal Practice Guitar Amp Kit $64.95

Water Sensor Alarm RF Actuated Relay HV Plasma Generator


This little $8 kit can really “bail you out”! Just what you need when adding Generate 2” sparks to a handheld
Simply mount the alarm where you want to a preamp or power amp in line screwdriver! Light fluorescent tubes
detect water level problems (sump pump!). with an antenna! Auto senses RF without wires! This plasma generator
When the water touches the contacts the and closes an on-board DPDT relay that’s good to UHF creates up to 25kV at 20kHz from a
alarm goes off! Sensor can even be remotely at 100W! Also great to protect expensive RF test equip- solid state circuit! Build plasma bulbs from
located. Runs on a standard 9V battery. ment. Senses as low as 50mW! Runs on 10-15VDC. regular bulbs and more! Runs on 16VAC or 5-24VDC.
MK108 Water Sensor Alarm Kit $7.95 RFS1 RF Actuated Relay Kit $19.95 PG13 HV Plasma Generator Kit $64.95

Air Blasting Ion Generator Davis OBDII CarChip Pro Stereo Ear Super Amplifier
Generates negative ions along with a The incredible OBDII plug-in monitor Ultra high gain amp boosts audio 50
heafty blast of fresh air, all without any that has everyone talking! Once times and it does it in stereo with its
noise! The steady state DC voltage gen- plugged into your vehicle it monitors dual directional stereo microphones!
erates 7.5kV DC negative at 400uA, and up to 300 hours of trip data, from speed, Just plug in your standard earphone or
that’s LOTS of ions! Includes 7 wind braking, acceleration, RPM and a whole lot more. headset and point towards the source. Great
tubes for max air! Runs on 12-15VDC. Reads and resets your check engine light, and more! stereo separation besides! Runs on 3 AAA batteries.
IG7 Ion Generator Kit $64.95 8226 CarChip Pro OBDII Monitor $99.95 MK136 Stereo Ear Amplifier Kit $9.95

IC AM/FM Radio Lab SMT Multi-Color Blinky 3-In-1 Multifunction Lab


Learn all about AM/FM radio theo- The ultimate blinky kit! The 8-pin micro- The handiest item for your
ry, IC theory, and end up with a controller drives a very special RGB LED in bench! Includes a RoHS
high quality radio! Extensive step- 16 million color combinations! Uses PWM compliant temp controlled
by-step instructions guide you through methods to generate any color with the micro, soldering station, digital mul-
theory, parts descriptions, and the how’s and why’s of with switchable speed selection. SMT construction with timeter, and a regulated lab power supply! All in one
IC design. Runs on a standard 9V battery. extra parts when you lose them! Runs on 9V battery. small unit for your bench! It can’t be beat!
AMFM108K AM/FM IC Radio Lab Kit $34.95 SBRGB1 SMT Multi-Color Blinky Kit $29.95 LAB1U 3-In1 Multifunction Solder Lab $129.95

www.ramseykits.com
Just Off The Press!
Get the new 2008 Ramsey Hobby
800-446-2295
Catalog! 112 value packed pages of
590 Fishers Station Drive Where Electronics Is Always Fun!
the neatest goodies around with lots of
new stuff! Order yours today on line or
Victor, NY 14564 ✦ Build It! ✦ Achieve It!
(800) 446-2295
give us a call... Or download the PDF! (585) 924-4560 ✦ Learn It! ✦ Enjoy It!
Prices, availability, and specifications are subject to change. According to Robin we are not responsible
for typos, stupids, printer’s bleed, or broken hearts. Possession of this Valentine’s Day ad will not
guarantee you a date! Visit www.ramseykits.com for the latest pricing, specials, terms and conditions.
Copyright 2008 Ramsey Electronics, LLC...so there!
Q&A.qxd 1/10/2008 8:54 AM Page 22

■ WITH RUSSELL KINCAID


QA & WHAT’S UP:
Join us as we delve into the
basics of electronics as applied
to every day problems, like:
In this column, I answer questions about all
aspects of electronics, including computer ✓ Digital Compass

✓ Motion Detectors
hardware, software, circuits, electronic theory,
troubleshooting, and anything else of interest
to the hobbyist. Feel free to participate with

your questions, comments, or suggestions.
Send all questions and comments to:
✓ Improved TV Reception

Q&A@nutsvolts.com

a single channel scope, it is possible to voltage and want to measure 700


DIFFERENTIAL PROBE isolate the scope from ground and VAC, then the gain resistor, Rg, must
connect the probe ground to one side be opened because the output

Q
I would like to make a differ- of the circuit and the probe to the voltage cannot exceed ±10 volts. With
ential probe to use with my other side. If you are working with AC Rg open, the gain is one so 700 volts
oscilloscope. I did some power circuits, this is dangerous and an input will give seven volts output
investigating on the Internet OSHA no-no. when both S1 and S2 are open.
and I found while you could make up a If you are using a single channel If you have a 10X/1X probe, the
circuit with discrete components, the scope, the safe way to do differential switches, S1 and R1, are in the probe;
components would have to meet very display is to use an instrumentation otherwise, you need to use a 1X probe
tight tolerances and be perfectly op-amp. The circuit in Figure 1 uses a and put R1 and S1 in the box. The
matched. Are there readily-available INA128 instrumentation amp from power supply ground (PS GND) can be
integrated circuits made that could be Texas Instruments (formally from Burr- common with the probe ground or not.
used and can you suggest a circuit? I am Brown). The gain is set by Rg to be Keeping the grounds separate
not sure about voltage ranges, but I 100 (40 dB) because the worst case may avoid ground loop problems.
would like something that could be used input common mode range is ±5 volts. Nine meg and 90 meg resistors are
over a range of voltages from very small With 100:1 input attenuation, the not generally available; you will have
to 700 volts, and handle AC or DC. input common mode can be ±500 to put in series a number of 1%
— Richard A. Phillips volts and still have AC gain of one. If resistors and (optionally) a pot for final
you keep the output signal below ±5 adjustment. The 22 meg resistors are

A
Most dual trace scopes have volts, the input common mode can 5%, so it is possible that four of them
a switch for adding the A exceed 1,000 volts. The gain error is will exceed 90 meg by two meg, so I
and B channels to give a ±.05% plus the resistor tolerance. advise buying 10 or more and select
differential display. If you have If you have small common mode four that total less than 90 meg.

■ FIGURE 1
IMPROVED
TELEVISION
RECEPTION

Q
Where I currently
reside, I don’t have
very good recep-
tion for my televi-
sion. I have heard that I could
use a wide band RF amplifier
to get better reception. Un-
fortunately, I have not been
able to find any schematics for
a wide band RF amp. I would
22 February 2008
Q&A.qxd 1/10/2008 8:55 AM Page 23

QU E ST I O N S & A N S W E R S

appreciate a schematic if at all possible.


— Nathanial C. Blacker PARTS LIST
PART DESCRIPTION MOUSER PART NUMBER

A
If you have a roof mounted • S1-S5 SPDT Mini Toggle 108-1AS1T1171-EVX
• R1, R5 4 x 2.21 MEG +160K 71-CCF55-2.21M, 71-CCF55-162K
community antenna, then the • R2, R4 4 x 22 MEG + 2 MEG POT 291-22M-RC, 81-PV37W205C01B00
reception is probably as good • RG1 500 OHM, 0.1% 71-PTF56500R00BYBF
as you can get. If you are • RG2 10 OHM, 1% 271-10-RC
• RG3 10.2 OHM, 1% 271-10.2-RC
using a rabbit ears type of antenna, then • IC1 INA128P 595-INA128P
you need a better antenna. In order for • C1, C2 10 μF, 16V, 10% 581-TAP106K016SRW
an RF amp to do any good, it must have • C3, C4 0.1 μF, 50V, X7R 80-C320C104K5R
a lower noise figure than the TV RF amp.
For a better antenna, consider the spectrum is wider than the old analog prefer the output to light one of four
Terk TV55. It is a helical antenna with signal so there would be some LEDs, or perhaps trigger a variety of
an amp and covers VHF/UHF. I don’t degradation if the unmodified RF voice alerts. How would I construct a
have any experience with it, but reviews sections of the radio were used. The circuit to convert a sequential series of
are good. The cost is about $100 and detector would have to be redesigned pulses to switch four separate outputs?
you can order from: Crutchfield, and all the processing after the — Rob Gordon
P.O. Box 9032, Charlottesville, VA detector would have to be designed.

A
22906-9032. The antenna is less than Presently, reception of HD radio is A shift register seems the
four feet long and about three inches in free but it is possible that in the future, logical device for this
diameter, so it should fit in your space. you will be able to purchase specific application. The relay
The RF amp schematic that you channels (rock and roll, oldies, classical, becomes the clock; the
requested is shown in Figure 2. It is not etc.). European countries have adopted
real wide band — it only covers the VHF a different standard, so your USA radio ■ FIGURE 2
band — but the gain is nearly 20 dB (see won’t work over there and vice versa.
Figure 3). The transistor, 2SC3356/
NE85633, is an SOT-23 surface mount
and the resistors should be surface
CONVERT SEQUENTIAL
mount as well for best performance. PULSES TO FOUR
The input impedance of the amplifier is OUTPUTS
probably not 75 ohms, so the cable

Q
from the antenna to the amp should be I have a stand-alone wireless
short to avoid reflection problems. motion detection unit that re-
ports alerts from four detec-
HD RADIO tors. The system sounds one
to four beeps to distinguish between the

Q
The question I have is about detectors, and also conveniently closes
the HD radio broadcasts. Is a relay in sync with the beeps. I would
there a way to modif y a
regular FM radio to receive
these HD stations?
— Bryan Fischer

A
The short answer is no. Broad-
cast stations now have the
ability to send all analog, hy-
brid digital (including analog),
extended hybrid digital with analog, or
all digital (no analog). There are present-
ly no receivers available for all digital FM
and no all digital stations, as far as I know.
The digital signal can be subdivided into
multiple channels, each carrying a
different signal. The digital signal is
lower power than the analog and if the
digital signal is too weak, the receiver is ■ FIGURE 3
designed to switch to the analog signal.
The extended hybrid digital
February 2008 23
Q&A.qxd 1/10/2008 9:01 AM Page 24

■ FIGURE 4

first pulse loads a one into the first cell insure that the J/K input is one when quent pulses shift the lighted LED to D2,
of the register and at the same time the clock goes high. The capacitors, C1 D3, and D4. The last pulse leaves one
resets the flip-flop (IC1, A and B). Take and C2, are to debounce the mechan- of the LEDs lighted and it stays that way
a look at Figure 4. I used all four of the ical switches. The resistors, R1 and R10, until the reset button is pressed. Almost
NOR gates because they were there provide an initial low level to the inputs. any NPN will work for the transistors;
and also to give some added delay to The first pulse lights LED D1; subse- 2N3904 or PN2222, for example.
A fault with this circuit is that if a
second alarm comes in and the reset
button has not been pressed, then the
lighted LED will be shifted giving an
erroneous indication. It may be shifted
out of the register, leaving all the LEDs
unlighted. For that reason, I added an
LED to the IC1D output which
indicates that an alarm happened and
the reset button needs to be pressed.
If desired, a time delay could be
initiated from the IC1D output which
would automatically reset the flip-flop.

MOTION DETECTORS

Q
Could you explain the
theory of operation of
motion detectors (sensors)?
Is it based on infrared or
ultrasonic devices?
— Karas

A
Both infrared and ultrasonic
motion detectors are
available. The infrared detects
the heat of the human body,
so motion is not actually required.
Ultrasonic systems use the Doppler
Effect where the frequency of the
reflected wave increases when an
object moves closer and decreases
■ FIGURE 5 when the object moves away. A disad-
24 February 2008
Q&A.qxd 1/10/2008 8:55 AM Page 25

QU E ST I O N S & A N S W E R S

vantage of the ultrasonic system is that


it could detect a branch or bush
waving in the wind. You will find info
on infrared at www.glolab.com/pir
parts/infrared.html.
You will find a schematic, layout,
and parts list here to build your own
ultrasonic motion detector: http://web-
ee.com/Schematics/Motion%20Detec
tor/UltrasonicMotionDetector.pdf.
More info on ultrasonic can be
found at www.electronickits.com/
kit/complete/surv/ck203.pdf.

SURVEILLANCE SYSTEM

Q
A friend of mine asked me to
install a security camera in his
store so he can watch the store ■ FIGURE 6
from his home which is about
15 km away. I know I need a camera and outputs are capable of 20 mA and can
monitor, but how is the signal transmit- DIGITAL COMPASS drive an LED directly. See the URL.

Q
ted from the camera to the monitor? I’m looking for any The only digital part of a digital
— Tom Karas suggestions for a cheap compass is the microprocessor that does
digital compass, ranging from the calculation; the sensor is necessarily

A
An RF link would not be an analog voltage value of analog. Another type of sensor (which I
reliable; video has been sent 0 to 5V, for 360 degree pointing. could not find on the web) is the
over telephone lines but that — de KJ4UO fluxgate. Figure 7 is a depiction, not
system never took off. Video necessarily how to make one. Note that

A
is sent over the Internet now and that For those not in the know, the coils A and B are wound in opposi-
is the way to go. You could use an de is used by Morse code tion so the drive signal cancels out. The
inexpensive web cam like this one operators; it is the French drive signal is AC. The drive and earth
www.x10.com/key_products/internet- word “from.” magnetic fields on the left side add while
surveillance.htm for a low cost system. Many modern compasses use the fields on the right side subtract.
Or else you could purchase a complete Honeywell HMC1051/1052 magneti- Since the coils are wound in
system, as provided by these sellers: cally sensitive resistive bridges. One opposition and the field on the left is
www.ramelectronics.net/html/X-Guard bridge is oriented North-South; the increasing while the field on the
.html, and http://webcam-software other is East-West. The outputs are right is decreasing, the signals add
.net/webcam-software.htm. amplified and fed into a microproces- producing maximum output. The coils
Their lowest cost system supports sor which calculates the direction. are wound on a high permeability
four cameras, but it is not necessary to Figure 5 is taken from the HMC1052 toroid, either tape wound or ferrite.
use them all. Another alternative is to datasheet. Figure 6 is an even simpler If the winding is carefully done, the
buy the components and build the schematic of the HMC6352 which output will be sinusoidal as the toroid
system yourself; here is one supplier: has the op-amps and microprocessor
www.youdoitsecurity.com/Remote- in it. The Honeywell application note
Surveillance-Equipment.asp. AN914 has the HMC1052 informa-
Your minimum system will consist tion, and the HMC6352 datasheet is
of: video card, camera, and software, found at: www.ssec.honeywell.com/
plus two computers — one at the store magnetic/datasheets/HMC6352.pdf.
and another at the home. All the A truly simple compass can be
systems above come with bundled made using the 1490 compass from
software. You will need a high speed www.imagesco.com/articles/1490/
Internet connection (not dial-up) to 01.html#top.
have streaming video. I think DSL will The compass uses the Hall Effect
work; check with the supplier. and only has 45 degrees resolution, but
Check the index and back issues you can’t beat it for simplicity. The 1490
of N&V; you will find some camera has 12 pins: four of them are VCC, four
bargains there. are GND, and four are outputs. The ■ FIGURE 7
February 2008 25
Q&A.qxd 1/10/2008 2:49 PM Page 26

is rotated in the earth’s field. essary for the sensor to be horizontal Microchip’s application note AN996,
In any of the compasses, it is nec- or aligned with the earth’s field. which you will find at http://ww1.
Compensation for declination is done in microchip.com/downloads/en/AppN
better compasses but near the north otes/00996a.pdf. The compass is
MAILBAG magnetic pole, the declination is so near designed around the PIC18F2520 and
90 degrees that a gyrocompass is need- you can download the schematic and
Dear Russell,
ed to supplement the magnetic sensor. program. There is also a map of the
I have not been successful in
getting the turn signal reminder from For those wanting to build a earth’s field which will be useful to
July to work, even after re-checking. good digital compass, I recommend anyone using a compass. NV
It won’t shut off. Did you
build the unit and check it ■ FIGURE 8
out? If so, do you have
any changes to the circuit
in the October issue?
— FMC

Response: Thanks
for writing. I did not
build it but I have
simulated the circuit and
see the problem. The
second 555 trigger is left
low when the blinker
stops, which makes the
output stay high. The
solution is to put an R-C
between the two 555s as
in Figure 8. Mea culpa!

USB Connected
HIGH SPEED
PC OSCILLOSCOPES
and Spectrum A na ly z e r

.)[CBOEXJEUI
PicoScope 5000 Series (4TSFBMUJNFTBNQMFSBUF
The No Compromise P C O s c i l l o s c o p e s
.FHBTBNQMFSFDPSEMFOHUI
8JUIDMBTTMFBEJOHCBOEXJEUI TBNQMJOHSBUF NFNPSZ Advanced Triggers Arbitrary Waveform Generator
EFQUIBOEBOBSSBZPGBEWBODFEIJHIFOEGFBUVSFT UIF
www.picotech.com/pco401
www ppico High speed USB 2.0 Connection Waveform Playback Tool
1JDP4DPQF1$0TDJMMPTDPQFTHJWFZPVUIFGFBUVSFT Automatic Measurements
250MHz Spectrum Analyzer
BOEQFSGPSNBODFZPVOFFEXJUIPVUBOZDPNQSPNJTF

To check out our full line of pc based instruments visit www.picotech.com/pco412


or call 1.800.591.3916 for information and a products catalog

26 February 2008
Full Page.qxd 1/8/2008 12:52 PM Page 27
FEB08 - NewProducts.qxd 1/10/2008 1:31 PM Page 28

NEW
■ HARDWARE
■ SOFTWARE
■ GADGETS
■ TOOLS

P R O D U C T S
BOB-4-H communication options.
• Automatic video mode control
control (RC) servo pulse in-
terface, analog voltage,
VIDEO INFORMATION (local/genlock). and asynchronous
OVERLAY MODULE • Customer-configurable serial. The seri-
video standards (NTSC/PAL). al interface can
• Stand-alone operation for switch instantly
simple source ID, target reticle, etc. with one of the other
• Software-controlled digital outputs. two interfaces, allowing
• Consumes only 1/2W at +5 VDC. mixed autonomous and remote
• Lead-free; industrial temperature spec control. For example, a robot could
available. be configured to run autonomously
• Extended production lifetime; no OSD most of the time, but a human

B OB-4 is Decade’s fourth-generation


low-cost video information overlay
(OSD) module. BOB-4 lets your micro-
chips.
• Firmware can be upgraded in the
field.
operator could override the autonomous
function if the robot gets stuck or into
a dangerous situation. If the serial mode
controller or PC display text and vector • Independent debug port assists with is selected as the primary interface,
graphics on standard TV monitors. With application development. high-resolution measurements of all
huge user-definable character sets, five RC inputs are made available to
BOB-4 also supports bitmap graphics The free BOB-4 Conscriptor the autonomous robot controller,
and multiple languages. BOB-4 gener- program runs on Windows PCs and allowing for complex and unlimited
ates black background video on-board, offers these conveniences: mixing of operator control and sensor
or automatically genlocks to your video input.
source and superimposes graphics over • Font editing, importing, file The TReX Jr motor controller
the image. Printable characters and management. operates from 5 to 24 V, and the two
commands drive BOB-4 through fast • Bitmap graphics importing and editing. primary outputs provide bi-directional
SPI or RS-232 style ports, much like a • Boot script editing and file control with peak currents of 5 A
serial terminal or printer. BOB-4 links management. and continuous currents of 2.5 A
directly to microcontroller chips and • BOB-4 configuration memory while a unidirectional auxiliary output
modules, including the BASIC Stamp™. management. delivers over 10 A (continuous). A
NTSC and PAL video standards are • BOB-4 firmware upgrade utility. fourth control channel for invertible
supported via software commands. • One-click BOB-4 module robots allows improved control if the
configuration. robot does get turned upside-
• Simple hookup; requires just DC, serial down, and the fifth control channel
data, video I/O. For more information, contact: determines which interface controls
• Prints plain ASCII text in default Decade Engineering the motors. The unit measures
configuration. Web: www.decadenet.com approximately 1.75” x 1.75” x 0.5”,
• High display density; up to 480 x 240 and it is available fully assembled or
(NTSC) or 480 x 288 (PAL). in kit form.
• Arbitrary font sizes and proportional
font support.
TReX JR
• Stores thousands of custom characters DUAL-MOTOR For more information, contact:
(off-board option). CONTROLLER Pololu Corporation
• Vector graphics drawing commands. 6000 S. Eastern Ave., Ste. 12-D
Las Vegas, NV 89119
• Industry-standard ANSI control
protocol (ECMA-048).
• Automatic vertical scrolling.
P ololu introduces its new TReX Jr
Dual-Motor Controller, a versatile
DC motor controller suited for mixed
Tel: 877-7-POLOLU
or 702-262-6648
Fax: 702-262-6894
• Text crawl (single-line smooth autonomous and radio control of small- Email: www@pololu.com
horizontal scroll). and medium-sized robots. Three inde- Web: www.pololu.com
• Async, Synchronous, and SPI host pendent interfaces are offered: radio

28 February 2008
FEB08 - NewProducts.qxd 1/10/2008 4:26 PM Page 29

■ H A R D W A R E ■ S O F T W A R E ■ G A D G E T S ■ T O O L S

TALK BACK TO YOUR station of their choice. directions to the theater.

NUVI® • Weather reports — Features current • Local events — Receive special


weather conditions (including high/low/ notices on festivals, concerts, and

G armin International, Inc., has


announced the new nuvi 880, a
premium portable navigation device
current temperatures, chances of
precipitation, humidity, pressure, wind,
and weather alerts), as well as three day
sporting events in a specific area, and
navigate to them.

with cutting-edge speech recognition, weather forecasts. • News and stocks — The latest news
dynamic MSN Direct content, and an headlines and financial market
impressive array of other convenience • Enhanced movie listings — Search updates.
and safety features. for movies by title or by theater and
The nuvi 880’s speech recognition receive show times, star ratings, genre, • Send to GPS capability — Plan trips
technology is simple and intuitive to actors, and more — and get driving and look up destinations from the
use. Users mount a push-to-talk
wireless remote to their steering wheel,
which is used to activate voice
commands — no additional setup or
training is required. Once activated, the
user can effortlessly manipulate
controls by speaking the words that
correspond to buttons that are on the
touchscreen display, so that almost
any common task can be performed
without ever touching the unit.
Garmin has also streamlined the
way users can perform complex
points of interest searches. Use a
voice command to select the estab-
lishment of choice, and the nuvi 800
series gives turn-by-turn directions.
The nuvi 880 also knows the names of
many large business brands, so a
user need only say, “find nearest
Starbucks” for a quick caffeine fix.
Speech recognition can also be
used to search for addresses as well — all
hands-free, from start to finish. Speech
recognition is available for American
English, British English, European French,
European Spanish, German, Italian, and
Netherlands Dutch languages.
The nuvi 880 also provides
next-generation dynamic content from
the MSN Direct network, including:

• Traffic conditions — Receive up-


to-date traffic incident and flow infor-
mation for most metropolitan areas
across North America, and let nuvi
select a route that avoids traffic acci-
dents, road closures, and construction.

• Fuel prices — Receive gas price data


from over 100,000 gas stations across
the nation. Drivers will always
know where to get the best prices —
and save time and fuel by using
their unit to navigate directly to the

February 2008 29
FEB08 - NewProducts.qxd 1/10/2008 1:34 PM Page 30

SHOWCASE
Printed Circuit Board Design
Schematic Capture, Auto routing, Gerbers.
Using Altium - Protel
Microprocesor
Embeded Design
Motorola, Texas Instruments, Atmel, etc.
Prototype and production runs
Fully automated SMT assembly lines.
Plastic Parts
Mold manufacturing. No order to small or too big.
Very competitive on high labor parts. For very small
orders, we can inject your parts on manual low
pressure machines, dramaticaly reducing the cost of
the mold (parts up to 2 oz).

Www.electronicdesignmexico.com

■ H A R D W A R E ■ S O F T W A R E ■ G A D G E T S ■ T O O L S

convenience of your computer, via Windows Live Local, can even access their history log of received, missed, and
and then wirelessly send locations to your nuvi 880. dialed calls) or nuvi’s points of interest database (hotels,
restaurants, stores, and more). This new premium PND also
The nuvi 880 has Bluetooth wireless technology for has a built-in FM transmitter, allowing users to wirelessly
hands-free calling when paired with compatible phones. transmit turn-by-turn directions and street names, MP3s, and
Using the unit’s speech recognition capabilities, users can audio books through their vehicle’s stereo. The nuvi 880 has
find and dial phone numbers (specifically supported phones front-firing stereo speakers and a removable lithium-ion battery.
The unit features a bright, sunlight-readable 4.3-inch
color touchscreen display (480x272 pixels), and the nuvi
880 is loaded with maps of the US, Canada, and Puerto
Rico. The new unit incorporates a high-sensitivity internal
GPS antenna that makes it thinner and easier to mount in a
Interface a sharp LCD display to your BASIC Stamp® or other
micro-controller project with ease. No-solder wiring harnesses
car. Turn-by-turn, voice-prompted directions guide drivers to
and easy mounting kits available too. See www.seetron.com today. their destination, announcing streets by name along the
way. If they miss a turn, the nuvi automatically recalculates
• 3.2 x 1.4 in. supertwist LCD a route and gets them back on track.
BPI-216N
• 2400/9600 baud serial To help drivers find their car in an unfamiliar spot or
• Low (≈2mA) current draw
• Great with BASIC Stamps® crowded parking lot, the unit automatically marks where it was
last removed from the windshield mount. Users can save 10
• 3.2 x 2 in. backlit LCD routes, specify via points, and preview simulated turns, and the
ILM-216L
• 1200-9600 baud serial unit automatically sorts multiple destinations to provide an effi-
• Advanced protocol, 4 switch inputs cient route for errands, deliveries, or sales calls. It also displays
• EEPROM for configuration settings
• Favorite for OEM applications
speed limits for highways and interstates, and a trip log
provides an electronic bread crumb trail of up to 10,000 points.
• 3.2 x 1.4 in. graphics LCD SGX-120L
The nuvi 880 includes many entertainment and travel
• 2400/9600 baud serial tools including a music player (MP3, Ogg, and Flac formats
• Font and 15 screens in EEPROM supported), audio book player (subscription to Audible.com
• Easily draw points, lines, screens required), alarm clock, picture viewer, currency converters,
• 3 x 2 in. supertwist LCD and more. The units also are installed with Garmin Lock™,
• 1200-9600 baud serial
TRM-425L
an innovative patent pending theft prevention system that
• ESD-protected, 4x4 keypad input disables the unit from performing any functions until the
• Store up to 95 screens in EEPROM user types in a specific four-digit PIN or takes the unit to a
predetermined secure location.

1939 S. Frontage Rd. #F, Sierra Vista, AZ 85635 For more information, contact:
phone 520-459-4802 • fax 520-459-0623 Garmin International, Inc.
www.seetron.com • sales@seetron.com Web: www.garmin.com

30 February 2008
FEB08 - NewProducts.qxd 1/10/2008 1:35 PM Page 31

SHOWCASE

PP:KLWH
ZDWHUFOHDU
/('9
PFG
$% 

VHFRQGYRLFHUHFRUGHUSOD\EDFNPRGXOH
SUHDVVHPEOHG  $ 
7KH9HOOHPDQ3HUVRQDO6FRSH
LVDFRPSOHWH06VSRUWDEOH
oscilloscope. (HPS10) $146.
QGV
7KRXVD
L WH P VRQ
PRUH
E V LWH
RXUZH

PRINTED CIRCUIT BOARDS


QUALITY PRODUCT 10 pcs (3 days)
FAST DELIVERY 1 or 2 layers $249
COMPETITIVE PRICING 10 pcs (5 days)
4 layers $695
* Aluminum Backed PCB (up to 30 sq. in. ea.)
* Single & Double sided includes tooling, artwork,
* SMOBC/RoHS LPI mask & legend
* LPI mask
* Through hole or SMT
* Nickel & Gold Plating
* Routing or scoring
* Electrical Testing
* Artwork or CAD data 9901 W. Pacific Ave.
* Fast quotes Franklin Park, IL 60131
* Flex Circuits Phone 847.233.0012
We will beat any Fax 847.233.0013
competitor’s prices!!!
w w w.pulsar-inc.com • sales@pulsar-inc.com

The Power SchmartModule TM


will power up your circuits with
your choice of -9, -12, +2.5,
+3.3, +5, +9 and +12 volts.

$15
Very Schmart!

www.schmartboard.com
Xu.qxd 1/10/2008 2:53 PM Page 32

PROJECTS ●●●●
■ THIS MONTH’S PROJECTS
Flashlight Evolution . . . . . . . . .32 FOLLOW THE
FEVOLUTION
LASHLIGHT
RF Impedance Analyzer . . . . . .38
Metal Detector . . . . . . . . . . . . .50

■ LEVEL RATING SYSTEM


To find out the level of difficulty
for each of these projects, turn
to our ratings for the answers. Using just a few components, you can
easily transform the traditional bulb
●●●● . . . . Beginner Level
flashlight into an energy-saving, super
●●●● . . . . Intermediate Level bright LED flashlight.
●●●● . . . . Advanced Level
●●●● . . . . Professional Level I started to think about and work
on how to transform all of my
traditional bulb flashlights into LED
es here, most 6,000 to 9,000 mcd
LEDs are adequate.
Also keep in mind that not all
flashlights. The outcome actually LEDs are created equal. Even if you
During recent turned out to be quite encouraging
and rewarding, and the costs were
buy the same batch of LEDs from
one source, each LED may have
years, with the minimal. I’d like to share some of slightly different forward current
advent of white my experiences with you here. under the same forward voltage;
hence, different brightness.
LEDs, the ubiquitous White LED Parameters For this reason, it’s better to
measure each LED’s VF and IF
household item — The main players in this flash- before using them. Figure 1 is the
light evolution are the white LEDs. simple regulated power supply
the traditional They are the newest members in the
LED family, and super bright white
circuit to do so. It uses the LM317
regulated IC. Its output voltage
incandescent LEDs are still expanding. VO (volts) can be approximately
White LEDs differ from the calculated by the following formula:
flashlight — is normal signal indicator LED in sev-
EQUATION 1:
experiencing eral ways, but the most important
parameters are these three: forward Vo = 1.25 (1 + R1/R2)
radical changes. voltage VF; the corresponding for-
ward current IF; and luminous inten- For instance, using R1 = 500Ω
sity measured in millicandela (mcd). trimmer potentiometer and R2 =
It caught my attention Most white LEDs are typically 100Ω, the highest output voltage
when I noticed the listed as VF = 3.2-3.6V, IF = 20 mA;
their luminous intensities can range
should be VO = 1.25*6 = 7.5V.
Therefore, you can reduce the trim-
many benefits LEDs can from 3,000 to 30,000 mcd with mer resistor value to get any regu-
associated ascending prices. For lated voltage between 3.0V to 4.5V
bring about; especially our purpos- at the output for your experiment.
their energy-saving
■ FIGURE 1. My First LED
efficiency and the Regulated Flashlight
much brighter power
supply for My first LED flashlight was a
luminous intensity. LED testing. very simple one. I didn’t change

32 February 2008
Xu.qxd 1/8/2008 8:43 AM Page 33

BY G.Y. XU

anything except the burnt-out incan- ■ FIGURE 2. This is the easiest way
descent light bulb. I didn’t hesitate at to make an LED flashlight.
all to crack this burnt-out bulb and
solder a VF = 3V, IF = 10mA white LED In order to outperform the
in its place to the remaining two whisker traditional flashlight in brightness, the
electrodes of the bulb (Figure 2). battery voltage would have to be
The labor was absolutely mini- raised to more than 3V. That’s
mum since the only thing I had to take why most of the commercial LED
care of was soldering the LED’s anode flashlights use 4.5V batteries (three
pin to the bulb’s anode whisker. AA or AAA cells). I happened to
The brightness of this single LED have a fancy 4.5V bulb flashlight that
isn’t really comparable to the original contained a battery compartment for
bulb, but it’s still useful at night and three AA cells. The bulb consumes
only consumes 3V*10 mA = 30 mW 300 mA at 4.5V, or 1,350 mW. Such
(as compared to the original bulb huge current is not good for battery
at 3V at 500 mA = 1,500 mW — an longevity, so I wanted to change it.
energy savings of 50 times!). This seemed to be the best place for
Before making this particular LED using 3.5V, 20 mA LEDs.
flashlight, I searched on the Internet to One problem that must be solved
see if there were 3V 20 mA LEDs. Even is the voltage gap between the 3.5V Digital Flashlight
though the difference is only 10 mA, LED and 4.5V battery. I have seen Design Experiment
this specific requirement is important some commercial LED flashlights
because most household flashlights where the 4.5V battery voltage is I use the phrase “digital flashlight”
use 3V battery cells, and the LED’s directly applied to the parallel 3.5V to categorize any flashlight that
brightness is roughly proportional to LEDs. That’s not a good engineering contains a microcontroller (MCU). Of
its current. So, a higher current rating practice. It will overtax the LEDs and course, digital flashlight, must use
would double the brightness. shorten their life. LEDs, but an LED flashlight is not
I found only one manufacturer The simplest solution is to add a necessarily a digital one.
who offered such an LED. The current limiting resistor. As shown in Figure 5 is the circuit for a digital
datasheet listed it as typically 3.0V at Figure 3, this resistor is in series with flashlight design experiment. It contains
20 mA. So I purchased 15 of them three parallel LEDs. While each LED only a few components in addition to
from a distributor. Unfortunately, after consumes 3.5V at 20 mA, the resistor the LEDs. Let’s draw some guidelines
testing them, I found that none of Rs consumes the remaining 1V at 60 from this experiment. Note the supply
them reached 20 mA at 3V. All 15 mA, so Rs = 1V/60 mA. Choose a close voltage is 4.5V, and the interrelated
pieces only had the same 10 mA at nominal value of 15Ω — that’s the main component values are already chosen
3V. When I questioned this on the design of my third LED flashlight. for the best fit. The LEDs are connected
company’s website, their engineer This flashlight (Figure 4) looks in serial instead of parallel.
admitted it was a “datasheet error.” much brighter than the original one. Basically, the circuit is a voltage
(Very frustrating!) Its total power consumption is booster or step-up switching voltage
4.5V*60 mA = 270 mW — only 1/5 of converter, which converts the 4.5V
Make it Brighter — the original — so with this smaller supply to higher voltage for the serial
Parallel Three LEDs current, the battery life will be several LEDs. The number of LEDs should be
times longer, and higher lighting two or more.
The straightforward way to increase efficiency is achieved. The circuit uses ATtiny11 (U1) as a
brightness is to connect LEDs in parallel. Nevertheless, we should note that charge pump and operates as follows.
The brightness more than doubled (90 resistors do waste some energy to
mW). I did have to use a small protect the LEDs. In this example,
perfboard to solder the three LEDs in there is always 1/(4.5) or 22% energy
parallel; the subsequent supporting and waste to resistance heating. The utility
connecting mechanism between the efficiency is 78%. We’ll see how to
battery and the board also had to be deal with this problem later.
addressed. This second LED flashlight
was better than the first one, but it was ■ FIGURE 3. Parallel three LED
still not brighter than the original. flashlight with a current limiting resistor.

February 2008 33
Xu.qxd 1/8/2008 8:43 AM Page 34

■ FIGURE 4. This three


0.6V by Silicon diode 1N914. If, and
LED flashlight looks much only if, Vs is equal or larger than Vr,
brighter than the original bit5 of ACSR is set, so the charge
incandescent one. pump will not turn on, but stay idle.
Otherwise, it will keep charging for 7
Because microcon- μS every cycle. Because Rs = 27Ω,
trollers are widely available when Vs = 0.6V, the current-flowing
and inexpensive, plus have LEDs will be I = 22 mA; that’s the
a small footprint, using them normal LED forward ON current.
in LED flashlights is Figure 6 illustrates the charge
attractive. This is particularly pump current versus time. There are
true for the Atmel eight-pin two formulas that govern the circuit
ATtiny11L, which works operation. The first one holds the
down to 2.7V and costs relationship between supply voltage
only 52 cents each [1]. Vin, inductor L, its peak current Ipk,
Listing 1 shows the assem- and MCU’s ON time, Ton:
bly program used here for
the MCU as a charge pump. EQUATION 2:
When the MCU outputs a logic high to This program is so simple that it Vin = LIpk/Ton
the gate (G) of the 2N7000 N-channel takes only 26 bytes of program
MOSFET, it turns Q1 ON between drain memory. The most important idea is For instance, from Vin = 4.5V, L =
(D) and source (S), hence the right side the charge pump control function. 100 μH, Ipk = 300 mA, we can
of inductor L1 is shorted to ground. The instruction ‘Sbi portb, 2’ tells the calculate Ton = 7 μs. This is exactly
During this period, the 4.5V power MCU to output a logic high to turn what we chose for the charge
supply charges L1 so that its current on the charge pump. Because the pump ON time in the program
increases from zero to a peak value of MCU works at 1 MHz by its internal CPUMP.ASM, shown in Listing 1.
Ipk linearly (Figure 6), as long as the oscillator, each NOP takes 1 μS to The second formula describes the
inductor is not saturated. (That’s why execute, so the ON time is Ton = 7 μS. power of the voltage booster related
choosing the right inductor is impor- Similarly, ‘Cbi portb, 2’ tells the MCU to inductor L, peak current Ipk, and its
tant; see the Source information later.) to output a logic low to turn off the switching frequency f:
Next, the MCU outputs a logic charge pump.
low and Q1 turns OFF so the current Instruction ‘sbis ACSR, 5’ needs a EQUATION 3:
can’t flow to ground; however, the little more explanation. First, sbis P = 1/2 L(Ipk)2 *f
inductor’s stored energy will induce a means “skip next instruction if bit# is
high voltage to keep current flowing. set.” Here the bit number is bit5 of the Therefore, without changing com-
So, Schottky diode D2 conducts and MCU internal register ACSR; its full ponent values, the circuit’s switching
the capacitor C2 is charged until the name is Analog Control and Status frequency f will increase when adding
current becomes zero. The LEDs will Register. Bit5 is the comparing output more LEDs, because adding more
be turned ON when the capacitor’s of the ATtiny11 analog comparator LEDs means adding more power to
voltage reaches the LED’s total pins PB0 and PB1. light them up. You can easily test the
forward ON voltages. Refer back to Figure 5. ATtiny11L correctness of this formula. For
has two analog input pins: PB0 and example, if you change the number of
■ FIGURE 5. Digital flashlight PB1, where PB0 acts as variable input LEDs from two to four and measure
experiment circuit. Vs, while PB1 is set the switching frequency in each case,
up at a fixed refer- you will get the frequency ratio = 2. In
ence voltage; in our my experiment, I actually got f2 = 15
case, it’s set to Vr = kHz, f4 = 31 kHz, respectively.
However, when the
number of LEDs equals
five or more, measure-
ments indicates that Vs
always becomes less
than 0.6V. That means Vs

■ FIGURE 6. Charge
pump current versus time.

34 February 2008
Xu.qxd 1/8/2008 8:44 AM Page 35

Flashlight Evolution
can no longer keep up with Vr for
more LEDs. Why? The reason is that LISTING 1. Program for ATtiny11L as charge pump.
the energy stored in L has all been
;CPUMP.ASM: control FlashLight LEDs uisng ATtiny11L at 1 MHz
used up or exhausted. The frequency ;When Voltage boost pump ON=7 NOPs, Ton=7us
had been increased to its highest
possible, so that in Figure 6, “idle” .include “TN11def.inc”
time becomes zero. So, even though .cseg
.org 0
the charge pump continues to work ;——————————————————————————————————————————————————————————————————
every cycle, there will be no more Start:
energy than its maximum delivered to sbi ddrb, 2 ; make Portb.2 an output
the LEDs. Cbi portb, 2 ; pump=OFF to begin
Again:
In other words, when the number sbis ACSR, 5 ; skip next instruction if Vs=>.6V
of LEDs equals five or more, we can Sbi portb, 2 ; pump=ON for 7 NOPs (7uS)
safely remove the MCU’s analog nop
comparator circuit components R1, nop
nop
D1, and R2, without having to worry nop
about the LEDs being overdriven. This nop
is an advantage. Remember, R2 also nop
wastes some energy (heat), although nop
it is needed as a voltage sensing Cbi portb, 2 ; pump=OFF
rjmp Again
component. ;————————————————————————————————————————————

Serial 5-10 LED


Digital Flashlight ured less than one inch
square. The nine LEDs
Because Vs cannot follow Vr when were soldered on anoth-
the number of LEDs equals five or er circular perfboard.
more, so we can remove some Before final assembling
components from the circuit without and gluing them in the
having problems, as shown in Figure 7. body, the whole circuit ■ FIGURE 7.
Correspondingly, we should also must be connected Digital
remove the instruction ‘sbis ACSR, 5’ together and tested to flashlight
from the software, since the analog avoid any errors. circuit
(five LEDs).
comparator is no longer used. This new This is the fourth
program is now called CPUMP1.ASM flashlight and it is super
and it takes only 24 bytes. bright. The 4.5V (three AA cells) battery Summing Up
We can use this new circuit hard- supplies 150 mA current, and the nine
ware and software program to build LEDs output 30V at 20 mA. The input I now have four LED flashlights, all
any 5-10 LED digital flashlight. As an power is 675 mW, output power is 600 transformed from traditional bulb
example, I built a nine LED flashlight on mW, and the circuit efficiency is pretty lights (Figure 9). All new versions are
the base of another flashlight that had high: 88%. The main reason is that in much better than the original in
a bulky body and reflector (Figure 8). this case, there is no resistor used, and
The control circuit contains only the ATtiny11 takes only 2-3 mA. ■ FIGURE 8. The nine LED circuit and
six small components reflector before assembly.
that were mounted on
a perfboard that meas-

■ FIGURE 9. These
LED flashlights are all
transformed from the
traditional bulb
flashlights. Depending
on the number of LEDs
and the applied voltage,
their brightness
varies from low
(right) to high (left).

February 2008 35
Xu.qxd 1/8/2008 8:44 AM Page 36

energy savings, and the last two


ITEM DESCRIPTION versions outperform their predeces-
❑ C1 22 μF 16V Tantalum Capacitor sors in brightness. In addition to
❑ C2 1 μF 35V Ceramic Capacitor
❑ R1 100K, 1/8W Resistor household use, the last two can be
❑ R2 27Ω, 1/8W Resistor used for camping or for an emergency
❑ D1 1N914 Diode light. The use of a microcontroller
❑ D2 1N5819 (40V) Schottky Diode improves circuit efficiency.
❑ L1 100 μH 550 mA Conformal Coated Inductor In order to minimize my work, I
❑ Q1 2N7000 N-Channel MOSFET used all the original mechanical parts as
❑ U1 ATtiny11L Microcontroller (programmed)
❑ LEDs White LEDs (6,000 mcd or higher) at 3.5V, 20 mA much as possible, so no switches or
reflectors had to be replaced; even the
original battery holders were kept intact.
As a by-product, the boost volt-
YOUR COMPLETE B ATTERY SOURCE age technology learned here can be
applied to other fields. For example,
2-way Radio ● Cellular ● Digital ● Camcorder most MCU programmers require 12V
Laptop ● Chargers ● Analyzers ● Cells for the Flash memory programming.
HIGHER CAPACITY ● HUGE SAVINGS! Now you know it’s easy to get it from
a USB port 5V power supply by using
this boost voltage technology.
Custom Assembly & Battery Rebuilding for:
• Handheld Radios • Laptop • Camcorder • Test Equipment I like the power my LED flashlight
has in the dark. It makes me think back
to when our ancestors discovered fire
and invented lights. LED flashlights are
just a snippet in history. NV

[1] G.Y. Xu, “Programming the 52 cent Micro,”


Nuts & Volts, February 2006.
Authorized Dealer

SOURCES FOR
OEM Battery Packs
sales@nicdlady.com 20585 Camino Del Sol Unit B, Riverside, CA 92508

5000+ Batteries Online Toll Free COMPONENTS


WWW.NICDLADY.COM 800/906-6423 ■ For MOSFETs, inductors,
capacitors: www.jameco.com;
especially the 100 μH inductor
(Jameco part #642492)

■ For white LEDs and the 52 cent


ATtiny11L: www.digikey.com

■ For surplus white LEDs,


inductors: www.bgmicro.com

NOTE: The following is available


from:

G.Y. Xu, P.O. Box 14681, Houston, TX


77021.

Programmed ATtiny11L (with


CPUMP.BIN or CPUMP1.BIN;
please specify when ordering) — $1
each. (Send payment in with a
self-addressed stamped envelope
for free shipping.)

For more information, visit www.


geocities.com/xumicro.

36 February 2008
Full Page.qxd 1/7/2008 1:16 PM Page 37

Any Design... Anytime.


The Microchip name and logo, the Microchip logo, and PIC are registered trademarks of Microchip Technology Incorporated in the USA and in other countries. All other trademarks mentioned herein are property of
their respective companies. ©2008, Microchip Technology Inc.

Incredibly Versatile, Incredibly Low Power,


8- and 14-pin PIC® Microcontrollers from Microchip.
Microchip’s latest low pin count PIC microcontrollers combine the simplicity of an 8-bit architecture with innovative features
designed to add intelligence and functionality to a wide variety of applications. Whether you’re adding a keypad to a convection oven,
an intelligent cooling fan to a power supply, or battery management features to a digital camera, these new PIC microcontrollers
can handle the task. With available high-voltage variants and a footprint as small as 4mm x 4mm, this family of low-cost
microcontrollers fits easily into any design.

Purchase and program your microchip


PIC® microcontrollers and
related development tools at... DIRECT
www.microchipdirect.com

Flash 10-bit
Program Memory RAM I/O A/D
Product Bytes (Words) Bytes Pins Channels Comparators Timers Packages
PIC12F609* 1.75K (1K) 64 6 — 1 1-16 bit, 1-8 bit, 1-WDT 8 pin PDIP, SOIC, MSOP, DFN
PIC12F615* 1.75K (1K) 64 6 4 1 1-16 bit, 2-8 bit, 1-WDT 8 pin PDIP, SOIC, MSOP, DFN
PIC16F610* 1.75K (1K) 64 12 — 2 1-16 bit, 1-8 bit, 1-WDT 14 pin PDIP, SOIC, TSSOP, QFN
PIC16F616* 3.5K (2K) 128 12 8 2 1-16 bit, 2-8 bit, 1-WDT 14 pin PDIP, SOIC, TSSOP, QFN
*
High-voltage variants available.

Visit us online to order


FREE samples!
www.microchip.com/PIC16F61X

Microcontrollers • Digital Signal Controllers • Analog • Serial EEPROMs


Steber.qxd 1/9/2008 4:03 PM Page 38

●●●●
Measuring the
impedance of an A LOW COST RF
antenna, a
component, or a
IMPEDANCE
circuit such as a
matching network,
can often help us
optimize our
equipment and
ANALYZER
A voltmeter, signal generator, and a
few parts combine to make a powerful
impedance measuring tool.
improve our
understanding of T hese items together with a few
dollars worth of parts, a bit of soft-
on the plus side, it is an easy project
to build, is low cost, requires no
its operation. ware, and some manual work on your
part can produce the data you need in
power supply, and has the capabili-
ty of producing results comparable
just a few minutes. It also provides an to equipment costing much more.
Commercial network easy, low cost way of acquainting If you decide to build the project,
yourself with the art of impedance you will need a PC running
analyzers, RF measuring. While not as convenient as Windows®, a signal generator to cover
some commercial equipment, there is the frequencies of interest with at least
impedance meters, or a satisfaction that comes with building 13 dBm output into 50 ohms (about
antenna analyzers can and understanding a device that you 1.414 peak volts or 20 mW), and a
have built yourself. high input impedance digital voltmeter
do the job, but are out Discussed in this article are the (DVM) with a DC accuracy of at least
of the realm for many details of this unusual RF impedance
analyzer which uses a simple circuit
0.5%. The circuitry is very low cost
(less than $5) and uses readily
amateurs, especially with diode RF voltage samplers, as available parts. I suggest that you build
well as software for your PC that the circuit inside of a metal enclosure
since the equipment is processes the data, compensates (not a solderless breadboard like I did)
expensive and would for the diode nonlinearities, and since that would limit your frequency
calculates the impedance, SWR, and range. To get started, let’s review some
be sitting idly on the other parameters of interest at concepts of impedance.
shelf most of the time. If frequencies up to 21 MHz or more.
This approach to impedance Impedance Models
we only need a few measurement has its limitations, but
Impedance is the
measurements, an old more complete expres-
technique — the three sion defining current
flow than resistance
voltmeter method — that
uses a signal generator ■ FIGURE 1. Lossy series
models of inductor and
(or a QRP rig) and the capacitor. Frequency f,
in hertz, resistance R, in
ubiquitous digital ohms, inductance L, in
henrys, and capacitance
voltmeter may fill the bill. C, in farads.

38 February 2008
Steber.qxd 1/9/2008 4:03 PM Page 39

BY GEORGE R. STEBER WB9LVI

■ FIGURE 2. Series and parallel


equivalent circuit models at the
same measuring frequency.

alone and is typically expressed as a


complex quantity such as R + jX where
R is the resistive part (real) and X is the
reactive part (imaginary). The reactive
part is usually frequency dependent
and is preceded by the math operator
“j” to indicate it is the imaginary part.
For many resistors, the reactive part is
very small, except for wire wound
types. And so, it is typically ignored.
On the other hand, many induc-
tors and capacitors are lossy (as seen
in Figure 1) and have both a resistive
and reactive part with the reactive part
being positive for inductors and
negative for capacitors. Measurements The impedance analyzer program impedance at audio frequencies using
made on transmission lines and will display the results in both polar a simple circuit and a computer with a
antennas also show both a resistive and rectangular form on the computer sound card. Briefly mentioned was the
and reactive part which can be either screen. From here, it is relatively easy “three voltmeter method” (TVM) as
inductive or capacitive, depending on (knowing the measurement frequen- one technique that was looked at
the measuring frequency. cy) to calculate the values of the series while working on the “least mean
The models of Figure 1 show the and parallel models and to display squares” (LMS) method which — by
resistive part modeled in series with them on the screen. Other parameters the way — was found to be superior.
the reactance. Another model is such as the Q (quality factor), or The LMS method would be preferred
sometimes used with parallel resistors D (dissipation factor), SWR, and here too, but unfortunately it would be
as shown in Figure 2. The series and the reflection coefficient are also difficult and expensive to realize at
parallel models are equivalent at the calculated and displayed. Now let’s higher frequencies. So the simpler
same frequency of measurement and see how to measure impedance in TVM will be implemented here.
can be converted from one to the other polar form using just a voltmeter. According to the grapevine, some
using the equations shown on Figure 2. antenna analyzers on the market today
The impedance analyzer software Three Voltmeter use an approach similar to the TVM
(discussed later) basically calculates Method described here and use a microproces-
the impedance in polar form from sor for data collection. So, this article
voltage measurements provided to it. In recent articles [1, 2], I described may give you some insight on how
This can be converted to rectangular a powerful method of measuring those units work, as well. The TVM is,
form as shown in Equation 1:

EQUATION 1
Z = Z ∠è = R + jX

where Z is impedance in ohms, Z is


the magnitude of Z, θ is the angle of
Z, R is the resistive part of Z, and X is
the reactive part of Z. The two forms
in Equation 1 are related by:
■ FIGURE 3.
Three
EQUATION 2 voltmeter
Z = R 2 + X2 è = tan −1 (X / R ) circuit.
and

February 2008 39
Steber.qxd 1/9/2008 4:04 PM Page 40

conceptually, very straightforward After some algebraic manipulations, is found. In this case, the reflection
requiring only a single, precisely known cos(θ) is found in terms of the voltage coefficient r can be found from:
resistor, a signal generator, and some magnitudes as shown in Equation 4:
voltage measurements. But underneath EQUATION 5
this simplicity, alas, lie problems of EQUATION 4
precisely computing small phase angles ( R − Rm) 2 + X 2
V 2 − VRM
2
− VZ2 ρ =
and maintaining accuracy at high cos(è ) = S ( R + Rm ) 2 + X 2
SWRs. (We’ll have more to say on this 2VRMVZ
subject later on.) Nonetheless, the TVM
is good enough to provide reasonably We see from Equation 3 that the Here, R and X are the resistive and
accurate and dependable results if you impedance calculation depends critical- reactive parts of Z. The SWR can be
are aware of its limitations and don’t ly on the value of Rm, so it must be found from:
expect extraordinary accuracy. known precisely. But, as seen from
The TVM can be understood by Equation 4, the method is not able to EQUATION 6
referring to Figure 3, where VSG and distinguish the sign of the angle, since 1+ ρ
RG represent a sine wave signal gener- the cos(θ) = cos(-θ), so we must use SWR =
1− ρ
ator with internal 50 ohm impedance. other means to determine if the meas-
Rm is the measuring resistor and Z is urement is inductive or capacitive. Ways
the load impedance. Resistors R1 and for doing this are discussed later on. Note, too, that the reverse voltage
R2 shown in Figure 3 will be discussed If we have a good AC voltmeter VRV shown in Figure 3 can be calculated
later on. The voltages shown in Figure that can measure voltages without from the three original voltages meas-
3 are phasors and consist of a magni- loading the circuit, all we need to do is ured even without the two resistors R1
tude and phase angle such as VZ∠θ measure the voltages shown and apply and R2 being present. To see this, refer
where VZ is the magnitude and θ is them to Equations 3 and 4. We also to Figure 4 and note the triangle ADC
the angle. The magnitude of the need a hand calculator, using the where Vz and VRV are shown dashed.
impedance Z is equal to VZ divided by inverse cosine function, to find θ from The vector VRV + VRV goes from D to C
VRM times Rm as shown in Equation 3: the result of Equation 4. In the old days and bi-sects Vs, if we assume R1 = R2.
when measurements were made on 60 On the other hand, if we physically add
EQUATION 3 Hz power systems, this worked fine. But the two resistors R1 and R2 to the cir-
VZ × R M if we want to work in the high frequen- cuit, we can measure VRV and calculate
Z= cy range, most digital AC voltmeters VS. This provides us with an alternate set
VRM won’t measure AC voltages properly. of three voltage measurements and
Since the majority of us do not have provides for the calculation of cos(θ)
To find the phase angle, use the a good RF, high impedance AC by means of another equation. This
current (I∠0) in Rm as reference and voltmeter, we will need another method equation can be found by applying the
plot the three voltages VRM, Vz, and Vs of obtaining the voltages. A simple way law of cosines to triangle ADC to find
as shown in Figure 4 for some arbitrary of doing this is presented later on. cos(θ) from Equation 7 as shown below:
Z. The angle θ is the angle of Vz with Before we leave this subject
respect to VRM and is also equal to (180 though, it should be mentioned that EQUATION 7
- ∠α ) degrees. Cos(α) can be found the SWR and reflection coefficient at 2
VRM + VZ2 − 4VRV
2
from the law of cosines for triangle ABC. the load can be calculated once Z∠θ cos(è ) =
2VRM VZ

The implications of this will be


discussed in the next section.

Understanding Accuracy
and Phase Errors
The TVM produces a reasonably
good result for the magnitude of the
impedance (see Equation 3) since we
should be able to measure the two
voltages Vz and VRM fairly accurately

■ FIGURE 4. Phasor diagram for circuit.

40 February 2008
Steber.qxd 1/9/2008 4:04 PM Page 41

A Low Cost RF Impedance Analyzer


and Rm is known precisely. this particular case of a resistive load. convert AC voltages to DC for meas-
Impedance errors will occur when Of course, this is not rigorous proof, but urement is the “diode voltage sampler”
either Vz or VRM is very small, corre- other examples at higher SWRs show a (DVS) shown in Figure 5. In this case,
sponding to large or small load imped- similar advantage. The author has per- we want to find the voltage Vs across R.
ances in which case the accuracy will formed a sensitivity analysis of cos(θ) Here’s how it works. The positive, peak
suffer. Impedances near 50 ohms with respect to VRV and Vs in Equations AC voltage across R is rectified by
(where the voltages are roughly the 4 and 7, respectively. Sensitivity analysis diode D and charges capacitor C.
same) and below an SWR of about 4:1 refers to the sensitivity of a circuit Once the capacitor is charged to about
should be calculated fairly accurately. parameter or value to errors in the the peak value of Vs, it no longer places
Calculation of the cosine of the component or some other value such a load on R except for the minute
impedance angle θ is another story. as voltage. The mathematical details are amount of current needed to keep it
Theoretically, Equations 4 and 7 would too long to present here, but the results charged. A high input impedance DVM
produce identical results. But practical- show that Equation 7 has the least can read the voltage on C which should
ly speaking, there will be a difference sensitivity to errors when the load is be close to the peak value of VS.
depending upon the load impedance. resistive and at low SWR. Therefore, the Of course, for maximum accuracy,
What must be realized is that in a circuit based on Equation 7 is chosen. we should add the value of the diode
practical circuit there will be measure- I hope that from the above voltage drop VD to the DVM reading
ment errors and they will affect these discussion you can appreciate the Vm. If VS is large, the diode drop is
two equations differently. Below is a importance of accurate measurements. often neglected or considered a small
numerical example to illustrate. More As a further illustration, consider using constant of say, 0.7 volts, for a silicon
general comments follow the example. an eight bit analog-to-digital converter diode. And as long as the diode
Consider, as an example, a circuit (A/D) to measure the voltages in the voltage drop is small compared to Vs,
such as shown in Figure 3, where R1 = above numerical example. Since we this works reasonably well. But if VS is
R2 and Z = Rm = 50 ohms (corre- have a maximum voltage of two volts smaller, say, 1.5 volts peak, the diode
sponding to an SWR of 1:1 at the load and 256 levels with an eight bit unit, drop needs to be estimated better. And
Z). Assume the measured voltages are each level corresponds to 7.81 mV. for even smaller voltages — as we might
VRV = 0.000 V, VRM = 1.000 V, VZ = Clearly, only a one level mistake may find in our impedance measuring
1.000 V, and VS = 1.999 V (which has cause a moderate angle error. On the circuit — it becomes critical to know
a negative error of 1 mV) since VS other hand, modern digital multimeters the exact value of the diode drop to
would equal 2.000 volts in a system have counts (levels) ranging from 2,000 compensate our DVM reading.
with SWR of 1:1. Calculating from to over 50,000 and 3-1/2 or more dig- A method that I have used with
Equation 4 yields cos(θ) = 0.998 while its with 0.5% or better accuracy. This some success employs a mathemati-
Equation 7 yields cos(θ) = 1.000 as it should provide a fairly economical and cal model of the diode in the PC soft-
should. So, we have incurred an error accurate means of collecting the volt- ware. Knowing the diode parameters
of 0.2% with the first calculation and age data. (More details are discussed enables better compensation by using
an error in the angle of 3.6 degrees but later on.) Now let’s take a look at how the model to estimate the diode
there was no error with Equation 7. to measure the voltages required with voltage drop. Unfortunately, it is not
Note, too, that the error can an ordinary digital multimeter. perfect as it still leaves room for error
conspire to make the cos(θ) >1, which due to manufacturing tolerances and
is theoretically impossible for the Diode Sampling Circuit capacitance effects. These errors can
cosine function. To illustrate, consider be ameliorated somewhat by
the above case with Vs = 2.001 V (a A circuit that is commonly used to calibrating the model with known
positive 1 mV error) and calculate
cos(θ) from Equation 4 as 1.002.
Now consider the same example
except that VRV = 0.005 V (a positive 5
mV error) and VS = 2.000 V (no error).
Calculation from Equation 4 yields
cos(θ) = 1.000 while Equation 7 yields
cos(θ) = 0.9999. So, we have incurred
only an error of 0.01% with the second
calculation and an error in the angle of
0.81 degrees but with an assumed,
much larger, measurement error. ■ FIGURE 5. Diode
Clearly then, as shown above, voltage sampler.
Equation 7 is less sensitive to errors for

February 2008 41
Steber.qxd 1/9/2008 4:06 PM Page 42

impedances at specific power levels. therefore, VD. A better estimate for the the above sampler with a DC multi-
To see how the diode compensa- diode voltage drop can be found by meter confirmed that the measured
tion works, refer again to Figure 5. adjusting Req under known conditions voltage tends to fall off with frequency.
Recall that the objective is to find an such as a specific power level and The TVM circuit can be modified by
estimate of Vs from a measurement of known resistive load. More details on adding a DVS across each resistor that
Vm. This is done by estimating the the calibration using known resistors is has an AC voltage that we wish to meas-
diode voltage drop, VD, and adding it to discussed later on. ure. If the resistances are low enough (in
Vm, to form the estimate of Vs. To find Another thing we can do to the 50 ohm range) and the input imped-
VD, consider the diode equation below: improve accuracy is to employ a fast ance of the DVM is large enough, the
switching diode that does not conduct basic circuit operation will not be
EQUATION 8 substantially after the peak voltage has affected substantially. To confirm this, I
Solving for VD yields: passed as that would reduce the capac- viewed the AC voltage across a 100
VD itor voltage. Diodes meant for 60 Hz ohm resistor (in a circuit similar to Figure
I D = I S [exp( ) − 1] power supply use are not usually built 5) with a Tektronix TDS360 digital
NVT for speed, and shouldn’t be used in an oscilloscope when driven by a Wavetek
RF peak detector. A Schottky diode (or Model 81 signal generator at 3.5 MHz.
barrier diode) like the SD101A, No visible difference in amplitude
EQUATION 9 1N6263, or 1N5711 are better options was seen when the sampler was placed
ID and also produce a low voltage drop. across the resistor. But what surprised
VD = NVT ln( ) + 1) Germanium diodes like the 1N34 also me was that the scope probe (10 Meg
IS have a low voltage drop but are prone and 15 pF) affected the voltage read by
to temperature and matching prob- the DVM slightly, probably due to the
where N =1, VT = 26 mV @ 25°C, IS = lems. I have found the 1N5711 to be a probe capacitance. So, don’t leave any
22.31 x 10-9 A and ID is the diode good choice and it is available from probes connected to the circuit during
current, according to the Agilent Spice many sources for around $0.30 each. impedance measuring!
model on the 1N5711 datasheet. So, Another effect that is hard to com- There are a number of ways that
everything is known except for ID which pensate for is the diode capacitance. the samplers can be added to the
can be approximated by Vm/Req where For the 1N5711 model, the package circuit of Figure 3. After considering
Req is the equivalent impedance of the capacitance can be 2 pF, which causes several possible variations and testing
DVM or other resistive loads on the some bypassing of the AC signal for accuracy, the circuit shown in
diode that we may add later. Since Vm around the diode. At 14 MHz, this Figure 6 emerged as the best and was
is measured and Req is estimated, this is bypass impedance can be as low as chosen for the final implementation.
a good starting point to find ID and, 5,600 ohms. Measurements made on
RF Impedance
Analyzer Circuit
Figure 7 shows my breadboard
setup for the impedance analyzer. A
BNC connector (shown on the right) is
used to connect to the load Z. In this
instance, I am using a solderless
breadboard as it is an easy way to get
started and confirm operation of the
circuit. However, be aware that I am
not recommending this construction
method as it is limiting in terms of stray
capacitance between components and
has no shielding. Even though I used
triple spacing between components on
the breadboard, I started noticing
frequency effects above 10 MHz.
Placing the circuit on a PCB (print-
ed circuit board) with parts spaced
■ FIGURE 6. Three voltmeter apart and inside of a metal enclosure
circuit with diode samplers. with the appropriate connectors and
switch should be a better option.

42 February 2008
Steber.qxd 1/9/2008 4:07 PM Page 43

A Low Cost RF Impedance Analyzer


Actually, it shouldn’t be too complicat- ■ FIGURE 7. Photo of
ed to build and it should make a nice breadboard setup of the
weekend project as it is straightforward impedance analyzer.
and there is no power supply needed.
Now, refer again to the impedance ohms produces 1V RMS,
analyzer circuit schematic shown in or about 1.414 volts peak.
Figure 6. Only a few parts are required Although the generator will
but they must be selected carefully for not always see 50 ohms,
best results. D1 through D3 are this is still a convenient
1N5711 Schottky diodes. It is best if reference point. Because of
they are matched. I bought 10 diodes the diode nonlinearity,
which were packaged on a tape reel there is a lower limit of generator output they are rated above 0.5%. Some
and chose three diodes that were where it becomes very difficult to com- economical units can be found with an
placed together. Of course, this does- pensate accurately for the voltage drop. accuracy better than this. Unfortunately,
n’t guarantee the diodes are matched, This occurs somewhere around 13 dBm. a few meters may proclaim high
but it may improve the odds. Similarly, I don’t recommend using a generator accuracy but it may well be salesman-
I bought 20 pieces of 49.9 ohm, 1/4 with an output below this value. ship on their part. Caveat emptor!
W, 1% resistors and carefully measured Unfortunately, some generators Multimeters can have quirks. As a
each one. I found one that was 50 “max” out at 10 dBm (0.707 VRMS or case in point, an auto-ranging digital
ohms and used that for Rm. one volt peak) and would produce multimeter, with a stated accuracy of
I also found several resistors that marginal results. Several generators in 0.3%, was obtained on the Internet for
were close to 49.8 ohms which were my shack have that limitation. On the around $19. With the range fixed, it
then used for R1 and R2. It is important other hand, many generators can pro- produced acceptable results but when
that these two resistors be matched in duce much more. My Wavetek Model in auto-range mode, produced errors as
value. I also matched the three 81, 50 MHz generator can produce up high as 40% on low voltages. Why? As it
capacitors C1 through C3, 390 pF, 5% to 24 dBm (or five volts peak voltage). turns out, for the lower DC range, the
ceramic capacitors which should be Some generators produce a DC meter’s input impedance changes from
COG type. I also purchased some offset voltage which can cause the 10 Meg-Ohms to over 100 Meg-Ohms.
12.5, 25, 100, and 199 ohm, 1/4 watt, diode sampler to have an error. My This causes a different loading on the
1% resistors for use in calibration. Wavetek — although it was set for 0 circuit in Figure 6, with resulting higher
Shown on the diagram are a volts offset — actually produced 6 mV voltages measured on the low range.
coupling capacitor C4, a switch SW1, offset, and while that doesn’t sound This can be remedied by fixing the range
and filter components R3, R4, and C5. like much, it was enough to cause so that it is not allowed to auto-range to
Tolerances of these components are errors. I cured the problem by the lowest span. This seems to work best
not critical. R4 may or may not be placing capacitor C4 in series with the with meters having higher counts.
required, depending on the input generator to block the DC voltage. Even high-end meters like the
impedance of your DVM. This is A QRP rig is probably over-powered Protek 608 have different input
discussed in more detail later on. SW1 for use as a signal generator for this appli- impedances for different ranges. For
is used to select the voltage for cation, so an attenuator must be used to example, on the 500 and 2,500 mV
measurement by the DVM. Finally, bring the level down below 24 dBm. ranges the input impedance is greater
you should choose the appropriate Attenuation of transmitters is beyond the than 1 Giga-Ohm. On the 5.0 to 5,000
input and output connectors for the scope of this article so you will need to volt ranges, the input impedance
type of measurement you will make, consult an appropriate radio handbook. ranges from 10 to 10.5 Meg-Ohms.
be it a component or transmission line. Digital voltmeters or multimeters If the input impedance is extreme-
are very common today. A basic DC ly high, looking at a capacitive load
Signal Generator and accuracy of 0.5% or better is needed. like C5 in Figure 6 may cause
Digital Multimeter Normally, when accuracy is specified problems, so resistor R4 was added. It
Requirements in this manner it means 0.5% of span. may not be needed in some cases, and
So, if your voltmeter range or span is, if omitted, will allow a higher voltage
A sine wave signal generator say, two volts, then an error of 0.5% of to be measured. Note, too, that some
with 50 ohm output impedance that two volts (plus or minus 10 mV) is still DVMs have a low input impedance
produces a reasonable level is needed. within specifications. and are designed for special applica-
Signal generators are usually rated in Of course, it doesn’t mean you tions. An input impedance of at least
dBm output (for 50 ohm systems) which will necessarily see that large of an 10 Mohms is needed here to prevent
can be converted to peak volts, as need- error. Many of the very low cost over-loading the diode voltage sam-
ed. For example, 13 dBm output into 50 units are definitely not appropriate as plers. Be sure to check your meter for

February 2008 43
Steber.qxd 1/9/2008 4:08 PM Page 44

■ FIGURE 8. Main window benefits from the program, it should be


of the RF impedance calibrated as discussed next.
analyzer program.
Calibrating and Using
file and is on many the Impedance Analyzer
systems. If not found, you
will need to obtain it and The parameters the program will
install it on your system. It use when the “calculate” button is
accuracy, try to avoid changing ranges, is freely available from Microsoft and clicked are displayed near the bottom
and watch out for auto-ranging mode. other sites on the web. It is usually avail- of the main screen. These values cor-
For the record, four DVMs were able as Visual Basic 6.0 SP5: Run-Time respond to Rm and the diode models
tested in this project. They included a Redistribution Pack (VBRun60sp5.exe) used in the circuit. Parameters need to
Kelvin 200LE (2,000 count, 0.5%), and is a self-extracting file. Download be changed since, when you obtain
Gardner Bender GDT-193A (2,000 takes about six minutes at 28.8 kbps. the program, they will correspond to
count, 0.5%), Circuit Specialist MY-68 If you get the message the Rm and diodes in my circuit.
(3,260 count, 0.3%), and a Protek 608 “Component ‘COMDLG32.OCX’ or To get the proper values for your
(50,000 count, 0.05%). The first three one of its dependencies is not correct- diodes is easy, and a calibration
are low cost meters and produced ly registered: a file is missing or invalid.” method using four resistors is part of
acceptable results with the Protek pro- when you try to run the program, you the program. I have found that good
ducing slightly better results. I believe will need to register it on your system. results are obtained if you use two resis-
the calibration routine (discussed It is also freely available from Microsoft tors above 50 ohms and two below 50
later) helps fine-tune the results for a and other sites on the web. More ohms. I use the values of 12.5, 25, 100,
specific meter and improve accuracy. details are included with the software. and 199 ohm (1/4 watt, 1% resistors)
So, if you change meters, you proba- If you just want to experiment with to get an SWR of about 4:1 above and
bly should re-calibrate the software. the impedance analyzer program, go below the 50 ohm nominal value. This
ahead as it does not modify the registry gives maximum accuracy in this
RF Impedance or install any other material on your range of SWR. You don’t need to use
Analyzer Software computer. You can remove it by just the same values as I did, but you do
deleting the entire folder it is located in. need to be able to measure them as
The impedance analyzer software A screenshot of the main screen of accurately as possible for the program.
is available on the Nuts & Volts website the impedance analyzer is shown in Now click “calibrate” at the top of
(www.nutsvolts.com). When you’re Figure 8. It is easy to use. Just enter the the screen and a new window will
ready, unzip the software to a new measuring frequency and the three open up as seen in Figure 9 with boxes
folder and run the executable (exe) voltage measurements you obtained for you to enter the resistor values and
program. It was tested with Windows from the circuit into a single row. Up to the corresponding measurements for
98 and XP. When you run the software, eight rows of data may be entered so each one. Let your equipment warm
you may get a message like “Required that you can get a better picture of how up for a few minutes before measuring
DLL file MSVBVM60.DLL was not the impedance varies with frequency. and do it as accurately as possible.
found.” This is a Visual Basic run time To see the result for a row, click Include data on the measuring
the “calculate” button in that frequency and voltage level of the
row. That button also cycles signal generator Vs so it can be saved
through the Ls, Cs, and Cp with your measurement data. Then
options so you can view the click the “calibrate” button and wait
results for different circuit mod- while the program calculates the best
els as discussed previously. The diode parameters for your application.
Lp model was not implement- When finished, the right side of
ed as it is seldom used. You can the screen shows the calculated
also click the “calculate all” impedance magnitude (which should
button at the bottom of the be close to the resistor values) and the
screen, if you wish to calculate angles (which should be less than 6
all of the rows of entered data degrees). When done, be sure to save
at one time. To get maximum the calibration using one of the
buttons on the bottom. You may
■ FIGURE 9. Calibration wish to provide other calibrations for
window of the RF impedance different power levels or frequencies.
analyzer program. Up to six calibrations may be

44 February 2008
Steber.qxd 1/9/2008 4:08 PM Page 45

A Low Cost RF Impedance Analyzer


saved. These can be called up from the error or the difference between the cal- cussed later on. But in general, the rule
main screen. Calibration data is saved culated Z and the calibration resistor. does not hold, particularly if the load is
in a file RFinit upon exit. My data is in The second term is the error between complex. So, if you are not sure of the
the original file so you can see my the calculated cosine and the value of nature of the load attached to the trans-
resistor values, voltages, and calibra- one, which it would be for a resistor. mission line, do not use the above rule.
tion results. When you save your data, The weighting factor W(i) is set to There are other ways of finding
it will just overwrite the old data. 10,000 since the cosine changes are the sign. It is an easy matter to add a
There is a quirk with the TVM cal- small and change slowly near one. small amount of reactance in series
culation as alluded to earlier whereby The algorithm stops when it can with the input and observe the angle
the result of the cosine calculation may find no variation in the diode parame- change. For example, if you added
produce a value greater than one. This ter that reduces “Error” any further. some capacitive reactance and the
happens only with resistors where the These parameters are shown on the angle increases, then the input is
phase angle is supposed to be zero. screen. This doesn’t necessarily mean capacitive and the angle is negative.
Slight inaccuracies in measurement are the lowest error is found. There may If you know the length and type of
the cause of the problem. To keep you be other local minima due to the non- transmission line and the type of load
informed of this situation, the results of linear property of the diode and there (such as an antenna), you can make
the cosine calculation are shown on the is a possibility that the algorithm has some good estimates of the sign. For
calibration screen. Don’t be alarmed if gotten stuck on one of these. But as example, if the load is an 80-meter dipole
you see cosines above one. Hopefully, noted above, I haven’t been able to of known resonant frequency, you can
they will be very close to one and won’t find a better minimum in my testing. expect the antenna to be capacitive just
affect the program results substantially. below resonance and inductive above
This is just a peculiarity of this method. Determining the Sign resonance. Then using a program like
On the main screen, the box with of the Impedance Angle AC6LA’s Transmission Line Details (TLD),
the offending angle (cosine greater than you can calculate an estimate of the
one) will be highlighted in a red color. We saw previously from Equation 4 input impedance which should help
Since the error is often small and occurs that the analyzer cannot determine the determine the sign. TLD is designed for
mainly with resistors, the program will sign of the impedance angle, θ, so let’s Windows and easily found on the web
substitute a suitable small angle. In case explore other methods of finding it. [3]. Let’s look at some other applications.
you don’t like the value chosen, you For lumped parameter compo-
have the option of assuming the angle nents like capacitors and inductors, the Applications of an
to be zero. Also, if you don’t like the cal- sign is obvious since capacitive reac- Impedance Analyzer
ibration values found by the computer tance is negative while inductive reac-
algorithm, you can try to adjust them tance is positive, as seen in Figure 1. Uses for an impedance analyzer
manually. The resulting error is shown This leads to the following simple rule abound. And if the accuracy require-
on the screen as a guide. I have tried of thumb for lumped parameter parts. ments aren’t extreme, this unit can
several times to “best” the program but If Z increases with increasing produce good results. It can be used to
have been unsuccessful. It seems to do frequency, then the load is inductive check components like inductors and
a good job, though. and θ > 0. While ifZ decreases with capacitors at their operating frequency,
The calibrate algorithm is straight- increasing frequency, then the load is measure the input impedance of a
forward. An error criterion shown capacitive and θ < 0. So, by slightly matching network, and even measure
below is evaluated by a brute force changing the frequency and looking the impedance of an antenna. Coaxial
search for the minimum of “Error.” Each at the change of impedance, we can cable transmission lines — which often
diode parameter is varied separately in find the sign. This rule works for RC seem mysterious to many — can be
tiny increments and “Error” calculated. and RL circuits and even simple RLC investigated easily with this analyzer.
circuits. An easy way of doing this is to First, let’s consider a simple RC cir-
EQUATION 10 monitor Vz. For example, if Vz is cuit consisting of a 100.3 ohm resistor
decreasing as frequency increas- and a 527 pF mica capacitor connect-
i =4
Error = ∑ ( Zmag (i ) − Rcal (i )) 2 + W (i )(cos( i ) − 1) 2 es, the load is capacitive. ed in parallel. The component values
i =1 If we look at the input imped- were individually measured at an
ance of a transmission line with a audio frequency of 1 kHz. I connected
Here Zmag(i) is the calculated mag- load attached, the above rule is not them in parallel as the unknown Z for
nitude of Z, Rcal(i) is the calibration strictly obeyed. It may be obeyed at the analyzer, read the three voltages at
resistor, W(i) is a weighting factor on the some frequencies but not at others. 3.5 MHz, 7.0 MHz, and 10 MHz, and
cosine error, and “i” is the first through There is a special case where it is entered the data into the program.
fourth calibration resistor. The first term obeyed — that of a zero resistance load Figure 10 shows a comparison of the
in the sum is the error due to magnitude — an example of which will be dis- measured and theoretical values.

February 2008 45
Steber.qxd 1/9/2008 4:09 PM Page 46

IMPEDANCE MEASUREMENT OF PARALLEL RC CIRCUIT ■ FIGURE 10. RC circuit test results


compared to theoretical values.
Theoretical
Frequency Z∠θ R + jX D SWR Rp Cp So, initially we need to find the fre-
3.5 MHz 64.9 -49.2 42.6 -j49.5 0.86 2.8 100.3 527 pF quency corresponding to this length.
7.0 MHz 39.6 -66.8 15.6 -j36.4 0.43 5.0 100.3 527 pF
10.0 MHz 28.9 -73.2 8.4 -j27.6 0.30 7.9 100.3 527 pF
This is easily done with the analyzer.
We start by making the load
Measured impedance of the coax a short circuit.
Frequency Z∠θ R + jX D SWR Rp Cp This will reflect a small, nearly zero
3.5 MHz 64.9 -49.1 42.5 -j49.1 0.87 2.8 99.1 529 pF impedance back to the input at the
7.0 MHz 38.5 -65.4 15.9 -j35.0 0.46 4.7 92.5 537 pF 1/2 wavelength frequency. To find this
10.0 MHz 27.3 -70.9 8.9 -j25.7 0.35 7.1 83.3 551 pF point, we connect the analyzer to the
input and vary the frequency while
Frequency Comm. Analyzer TVM Analyzer ■ FIGURE 11. Impedance of monitoring Vz for the lowest voltage.
6.6 MHz 79.1∠-21.9 76.9∠-26.9 40 meter long wire antenna. In my case, this occurred at 13.9
6.7 MHz 73.9∠-13.2 73.1∠-16.5 MHz. See Figure 12 for the test setup.
6.8 MHz 69.7∠+0.6 72.6∠-7.7
6.9 MHz 73.9∠+14.2 74.6∠+11.1 length for the 40 meter ham Next, I wanted to find the physical
7.0 MHz 80.0∠+23.2 83.9∠+17.7 band and should resonate near length and the input impedance of the
7.1 MHz 88.9∠+31.9 93.0∠+27.4 7.0 MHz. One end of the wire cable at other frequencies. A coaxial
was connected to the analyzer cable with a short on one end presents
Notice that at 3.5 MHz, the accu- and the remainder, on the far end, left a wide variety of input impedances that
racy is very good although the SWR is on the spool. While carefully tuning the go from nearly pure capacitive to resis-
over 2:1. As the frequency increases, signal generator frequency, VRV was tive to inductive and back to capacitive
and the SWR does too in this case, we monitored with the DVM until a dip was again, repeating the cycle over and over
see an increasing difference between found. This occurred near 6.8 MHz. with frequency. As such, it makes an
the measured and theoretical values The antenna is expected to be ideal test subject. But be warned, the
of the angle and magnitude. This capacitive below this frequency and impedances can extend into the thou-
translates to different values for the inductive above it. Impedance measure- sands of ohms at some frequencies —
computed Rp and Cp components. ments were then made at frequencies well beyond the range of the analyzer.
The increasing difference as the fre- from 6.6 to 7.1 MHz. Figure 11 shows Fortunately, there are programs
quency climbs is probably due to sever- the results of the measurements along available on the Internet to find the
al factors, including stray capacitance of with those taken with a commercial RF length and calculate the theoretical
the breadboard, long leads on the com- impedance meter. The TVM analyzer impedance given the 1/2 wavelength
ponents, dissipation in the capacitor, data is shifted slightly in frequency, frequency. A good choice is the previ-
diode modeling errors, and high SWR, probably due to a small amount of ously mentioned TLD. Given the load
in the last case, of over 7:1. This exam- stray capacitance. Otherwise, the TVM impedance (shorted in this case), it will
ple should give you an idea of what to RF analyzer does a respectable job calculate the theoretical length and
watch out for and what you can expect. compared to the commercial unit. input impedance of the cable at other
For the next example, consider As a more complex example, frequencies. These values can then be
measuring the impedance of a long wire consider a long piece of RG58 coax of compared to the values obtained by
antenna. To create the antenna, a spool unknown length that was pulled out of the analyzer and give us an idea of how
of wire was unwound and strung out my junk box. We know that if the cable well the analyzer performs. By the way,
over the floor with a length of about 34 is 1/2 wavelength long, it will reflect for a loss-less cable with a resistive ter-
feet. This is close to one-quarter wave- the load impedance back to the input. mination (including a short), the above
rule of thumb for finding the sign does
hold. This is easily seen using TLD.
The cable manufacturer wasn’t
known, so Beldin was assumed. The
cable data (RG58 Beldin 9201) and 1/2
wavelength frequency were entered into
TLD and the physical length calculated
as 23.35 feet. The load (short resistance)
■ FIGURE 12. Setup for was assumed to be 0.1 ohms with zero
checking coaxial cable reactance. Next, a number of frequen-
with analyzer. cies were entered into TLD and the
theoretical input impedances predicted.

46 February 2008
Steber.qxd 1/9/2008 4:09 PM Page 47

A Low Cost RF Impedance Analyzer

TLD Calculated TVM Analyzer


REFERENCES
Frequency R + jX Z R + jX Z ■ [1] George Steber, “A Low Cost
5.0 MHz 6.8 + j110 110 6.8 + j115 115 Automatic Impedance Bridge” QST,
6.0 MHz 29.4 + j234 237 30.2 + j240 242 October 2005, pp 36-39.
8.0 MHz 27.7 – j211 213 38.5 – j213 217
10.0 MHz 4.3 – j63 63 8.9 – j63 64 ■ [2] George Steber, “LMS Impedance
12.0 MHz 2.3 – j23.9 24 5.5 – j23.5 24 Bridge” QEX, Sep/Oct 2005, pp 41-47.
14.0 MHz 2.1 + j1.2 2.3 3.3 + j1.7 3.5 ■ [3] Transmission Line Details, Dan
16.0 MHz 2.8 + j26.7 27 4.6 + j28.1 28 Maguire AC6LA, available free as a
18.0 MHz 6.4 + j68.8 69 6.1 + j67.9 68 download at www.qsl.net/ac6la/tl
20.0 MHz 63.0 + j251 259 52.0 + j216 222 details.html.
■ FIGURE 13. Coaxial cable test
results of shorted cable. useful in many situations where a more ative in many cases. I was often amazed
sophisticated instrument is not available. by the analyzer’s accuracy and seldom
This data along with selected, actual Accuracy is good over a reasonable dissatisfied with it. Overall, it works well
measured values obtained with the impedance range of about 5 to 1,000 if you understand its limitations. If you
analyzer are shown in Figure 13. ohms, and better between 10 and 250 find yourself making lots of measure-
As shown, the values are reasonably ohms. Angles near zero degrees (corre- ments or needing more portability, you
close. Don’t assume all of the differences sponding to a pure resistive load) and may want to consider moving on to a
are due to errors of measurement of the angles near 90 degrees (corresponding commercial impedance analyzer.
analyzer. The theoretical calculations to a pure reactive load) are the least It was fun and instructive working
don’t take into account connectors, the reliable. Making manual voltage with this impedance analyzer. I hope
effect of splices (my cable had one), and measurements and entering them into a you will find that to be the case, too.
age factors of the cable. In this case, I program may seem like a drawback So angle for some time, analyze your
appreciate the confirmation of the close- to some, but I have found it to be resources, and don’t be impeded in
ness of the data but tend to lean to the surprisingly easy to do and very inform- building your own version! NV
actual measurements as being more true.
As an interesting experiment, if you
connect an antenna to the coax as a
load (replacing the short), you can
again measure the input impedance at
some frequencies of interest. Using
TLD (in reverse), should then enable
you to find the impedance at the anten-
na. This obviates the need to go direct-
ly to the antenna for measurement.

Final Comments
The straightforwardness of the
impedance analyzer makes it attractive
as a low cost measuring tool. But, bely-
ing this simplicity, there are limitations
on its accuracy at low impedance
angles and at high SWR. It certainly
won’t replace a good network analyz-
er, so don’t sell your stock in Agilent!
On the other hand, it can be very

CONTACT THE
AUTHOR
■ George R. Steber Ph.D. can be
contacted via email at steber@execpc.
com with “TVM” in the subject line
and email mode set to text.

February 2008 47
Page48.qxd 1/10/2008 8:22 AM Page 48

NEW! HIDmaker FS for Full Speed FLASH PIC18F4550


Creates complete PC and Peripheral Both PC and Peripheral programs
programs that talk to each other over understand your data items (even odd
USB. Ready to compile and run! sized ones), and give you convenient
• Large data Reports variables to handle them.
• 64,000 bytes/sec per Interface PIC18F Compilers: PICBASIC Pro,
• Easily creates devices with multiple MPASM, C18, Hi-Tech C.
Interfaces, even multiple Identities!
• Automatically does MULTITASKING PIC16C Compilers: PICBASIC Pro,
• Makes standard or special USB HID MPASM, Hi-Tech C, CCS C.
devices
NEW! “Developers Guide for USB HID PC Compilers: Delphi, C++ Builder,
Peripherals” shows you how to make Visual Basic 6.
devices for special requirements. HIDmaker FS Combo: Only $599.95

DOWNLOAD the HIDmaker FS Test Drive today!


www.TraceSystemsInc.com
301-262-0300

The Standard for checking Locate shorted or leaky


Capacitors in-circuit components or conditions
Good enough to be the to the exact spot in-circuit
choice of Panasonic, Still cutting up the pcb,
Pioneer, NBC, ABC, Ford, and unsoldering every
JVC, NASA and thousands part trying to guess at
of independent service where the short is?
technicians. $209
Inexpensive enough to pay for itself in just Your DVM shows the same shorted reading all
one day’s repairs. At $209, it’s affordable. along the pcb trace. LeakSeeker 82B has the
resolution to find the defective component.
And with a 60 day trial period, satisfaction Touch pads along the trace, and LeakSeeker
guaranteed or money-back policy, the only beeps highest in pitch at the defect’s pad. Now
thing you can lose is all the time you’re you can locate a shorted part only a quarter of
currently spending on trying to repair all an inch away from a good part. Short can be
those dogs you’ve given up on. from 0 to 150 ohms
CapAnalyzer 88A LeakSeeker 82B
Available at your distributor, or call 561-487-6103
Electronic Design Specialists www.eds-inc.com
48 February 2008
Page49.qxd 1/10/2008 8:07 AM Page 49

&2/.40!.%,3%.#,/352%3

#USTOMIZEDFRONTPANELSCANBEEASILY
DESIGNEDWITHOURFREESOFTWARE
&RONT0ANEL$ESIGNER

s #OST EFFECTIVEPROTOTYPES
ANDPRODUCTIONRUNS
s 7IDERANGEOFMATERIALSOR
CUSTOMIZATIONOFPROVIDED
MATERIAL
s !UTOMATICPRICECALCULATION
s &ABRICATIONIN ORDAYS

3AMPLEPRICE
PLUS3(

WWWFRONTPANELEXPRESSCOM
  
Florian.qxd 1/9/2008 3:50 PM Page 50

●●●●
Want to be a treasure
hunter? By discerning
subtle changes in frequency, BUILD A FOUR
this design is capable TRANSISTOR
METAL
of detecting coins to a
depth of three to four
inches.

DETECTOR
The circuit can sense a
soda can at a depth of six
inches and metal pipes at
an even greater distance.
The unit is powered by
two 9V batteries in series.
The detector has a current Theory 3) Q3 is a mixer that multiplies the
outputs of Q1 and Q2.
draw of approximately 9 The design consists of four parts: 4) Q4 is a simple one transistor
mA at 18 VDC. As a result, amplifier.
1) Q1 forms an oscillator whose
the batteries should last frequency is determined by L1. L1 needs to be 100 μH. This
a long time. 2) Q2 is a reference oscillator whose inductor is created from 22 turns of
frequency is set by C6. 22 gauge magnet wire on a four

■ FIGURE 1. Four
Transistor Metal
Detector Schematic.

50 February 2008
Florian.qxd 1/9/2008 3:51 PM Page 51

BY PAUL FLORIAN

■ FIGURE 2. Search coil form.

inch diameter coil form (see Reference


1). However, I wound the coil with 21
turns, resulting in an inductance of 88
μH. The inductance measured into the
phono cable with the search coil
connected is 126 μH. In order to work
properly, you must use the audio cable
specified in the Parts List. The resonant
frequency is F = 1 / (2π*SQR(L1*C)).
C= 1 nF in series with 10 nF + 56 pF.
Solving yields C = 965 pF. Calculating
for F gives 456 kHz. Therefore, the
oscillation frequency of Q1 is 456 kHz
when no metal object is near the
coil L1.
The oscillator formed by Q2 is the
reference oscillator. This frequency
can be changed by adjusting C6. The ■ FIGURE 3. Search coil RCA
output must be set within 2 kHz of ance and works well. Note that both cable strain relief.
Q1’s output frequency. To obtain this the high land low mixer frequencies
result you may have to use a slightly are sent to the earphone. The single sided PCB material. Use a
different capacitor for C8. The part I earpiece shunts the higher frequency permanent marker to mask the areas
used has a tolerance of ±20%. Note to ground, acting as a low-pass filter. where the traces should go. Then,
that the oscillation frequency of Q1 is etch the board and clean the ink off
very sensitive to stray capacitance. Construction with rubbing alcohol. Finally, solder
The output of Q1 will vary about the capacitor and SIP pins to the PCB
70 Hz per each picofarad change of The circuit was built on a 2.6” x in surface-mount fashion.
stray capacitance. Transistor Q4 forms 3.5” piece of perfboard cut from PC This adapter plugs into a two
a mixer. Q1 and Q2 both feed signals board specified in the Parts List. Make position SIP socket on the PCB. The
into this circuit. When a metallic a copy of the schematic and
object is close to the search coil, the cross off the components as they
inductance of L1 decreases. This are installed. An adapter was
causes Q1’s oscillation frequency to used to mount C6 (refer to Photo
increase. The output of the mixer is 1). To construct the board, cut a
the sum and magnitude of the 1/2” by 3/4” piece of double or
difference of the two signals: Fosc +
Fref and |Fosc - Fref| (where “|x|”
■ PHOTO 2.
means “absolute value of x”). Coil assembly.
Suppose Fref = 500 kHz and Fosc
= 501 kHz. The output of the mixer
will be 1 kHz and 1,001 kHz. If Fref =
■ FIGURE 4.
500 kHz and Fosc = 499 kHz, the Potentiometer
output of Q4 is 1 kHz and 999 kHz. pin designations.
The frequencies output by the mixer
feed a high input impedance BJT
amplifier formed by Q3. The output ■ PHOTO 1. C6
of Q3 is capacitively coupled to the Adapter PCB.
volume control R16.
The earphone used in this appli-
cation must have a high impedance.
The ceramic earphone specified in the
Parts List has a 20 megohm imped-

February 2008 51
Florian.qxd 1/9/2008 3:53 PM Page 52

Keep the cable to


■ PHOTO 3. ■ PHOTO 4. PVC the RCA jack as short
Shielded coil handle assembly. as possible to reduce
assembly.
stray capacitance.
To construct the
search coil, obtain a 1X
copy of Figure 2
(Search Coil Form).
Use the template to cut
a form from the wood
slat given in the Parts
List. Drill the six holes
5/32“ in diameter.
Now construct the
wire coil. Wrap 21
turns of 22 gauge solid
magnet wire around a
Source 4“ diameter tube (an oatmeal contain-
# of Pins Destination Wire Type
(Crimp Housing) er works nicely). Once the coil is
COIL (L1) 2 J1 RCA Jack Shielded Cable wound, wrap it in electrical tape (see
VOL 3 R16 Twisted Trio Photo 2). Wrap 1” strips of aluminum
foil around the coil, leaving space for
EAR 2 Phone Jack Twisted Pair
the two magnet wire leads. Strip three
S1 2 SPST Switch Twisted Pair inches of insulation from a six inch red
9V Battery Snaps 22 gauge solid wire. Wrap the three
18 VDC 2 Battery Leads
in Series inch bare end of this wire around
■ TABLE 1 the aluminum foil (see Photo 3).
Wrap the whole coil assembly with
are shown in Figure 4. Break off the electrical tape.
■ PHOTO 5. Search coil
assembly with bracket. keying post of R16 with a pair of Make the search coil strain relief
pliers. Instead of soldering the bracket from a piece of aluminum
connecting wires directly to the PCB, sheet (Figure 3). A 1/4” grommet is
.100” male headers are used. These installed in the 1/4” hole. Cut off one
headers are installed for the search end of the RCA cable and feed it
coil, volume, S1, earphone, and 18 through the grommet. Remove 1” of
VDC. Female crimp housing connec- insulation from the end of the RCA
tors are used to make the twisted pair cable. Cut the red wire from the
cable assemblies shown in Table 1. search coil to 1/2” long and strip the
Be sure to note the ground pin on insulation to 1/4“. Scrape the enamel
pins of the adapter can be bent to the COIL, VOL, EAR, and 18 VDC from the magnet wires with a razor
90 degrees for top adjustment. The connectors. An easy way to do this is knife and tin with solder.
volume control (R16) pin designations to make the ground connections with Solder the magnet wire adjacent
a black wire in the cable assemblies. to the red wire along with the red wire
■ PHOTO 6. View of open case. to the shield connection of
the RCA cable. The other
magnet wire is soldered to
the center conductor of the
RCA cable. The solder
connections should be less
than 1/2” and carefully
wrapped with electrical tape
or the output of the mixer
may drift.
Next, mount the strain

■ PHOTO 7. Front panel view.

52 February 2008
Florian.qxd 1/9/2008 3:58 PM Page 53

Four Transistor Metal Detector


relief bracket to the wood slat with a ■ PHOTO 8. Completed
1/2” 6-32 machine screw, two external metal detector.
tooth lock washers, and a 6-32 nylon
lock nut. The coil is mounted to the the 33” main shaft into
coil form with three wire ties. Finally, the handle assembly’s
attach the 45 degree 7/8” inside 45 degree elbow joint,
diameter PVC elbow fitting to the coil drill a pilot hole, and
form with two #6 x 1/2” sheet metal secure with a #10 1/2”
screws. You must first drill 3/32” pilot screw. The cap at the
holes in the PVC joint to receive the end of the handle is
screws. This 45 degree fitting receives press-fit. Similarly, the
one end of the metal detector shaft (a search coil assembly is
33” long piece of PVC tubing). press-fit to the end of the
A photo of the completed search 33” metal detector shaft.
coil assembly with the bracket is
shown in Photo 5. Use been made, follow these steps:
Two 10” and one 3.5” lengths of
7/8” diameter PVC pipe are used Once the PC board, search coil, 1) Plug the RCA cable from the search
when making the handle for the metal housing, and handle assemblies have coil bracket to the metal detector
detector. Refer to Photo 4 for
assembly. The handle uses two 90
degree elbows and one 45 degree
elbow. Two 5/32” pilot holes and #10
PARTS LIST
1/2” sheet metal screws are used ITEM DESCRIPTION PART # SUPPLIER
❑ R1,R4 15K 5% 1/4W Various
when connecting each of these elbow ❑ R2,R5 33K 5% 1/4W Various
joints to the PVC pipes. ❑ R3,R6 1K 5% 1/4W Various
Drill two 5/32“ holes in the ❑ R7,R11 100K 5% 1/4W Various
bottom of the case as shown in Photo ❑ R8,R13 4.7K 5% 1/4W Various
6. These holes are used to attach the ❑ R9,R10 47K 5% 1/4W Various
enclosure to the handle assembly. ❑ R12 100 5% 1/W Various
Use Photo 7 as a reference when ❑ R14 1M 5% 1/4W Various
❑ R15 2.2K 5% 1/4W
mounting the following items to the ❑ R16 5K audio taper pot 255417 Jameco
front panel: J2, S1, and R16. Drill ❑ C1,C7 100 nF 50V ±10% Various
appropriately sized holes in the lid for ❑ C4,C9 10 nF 50V ±10% Various
these items. Next, drill a hole for J1 ❑ C3,C10,C13 1 nF 50V ±10% Various
next to the 45 degree elbow joint ❑ C2 56 pF 100V ±20% Various
where the 33” PVC pipe shaft attaches ❑ C8 470 pF 100V ±20% Various
to the handle. Separate the lower and ❑ C5,C11,C14-15 10 μF 50V ±20% Various
❑ C12 1 μF 50V ±20% Various
upper 10” lengths of PVC pipe. Drill ❑ C6 15-150 pF variable cap 94465 Jameco
mounting holes in the lower 10” piece ❑ L1 See text
of PVC pipe to match the holes in the ❑ L2 100 μH ±5% 208194 Jameco
bottom of the case drilled earlier and ❑ Q1-Q4 2N3904 transistor Various
mount it with two 1-1/4” 8-32 machine ❑ J1 RCA jack 159484 Jameco
screws, external lock washers, and nuts. ❑ J2 3.5 mm phone jack 281834 Jameco
❑ S1 SPST switch 72160 Jameco
Install J2, S1, and R16 on the
❑ Aluminum K&S Metals Hobby Shop
housing lid. Attach J1 to the case. sheet
Screw the PCB to the front panel with ❑ Wood slats Forster 6-Count Slats Craft Store
four nylon 4-40 1/2” threaded spacers ❑ PVC pipe 6’ 7/8” OD PVC Pipe Hardware Store
and eight 4-40 screws. Connect the ❑ Audio cable 6 ft cable 42-4367 RadioShack
previously mentioned crimp housing ❑ Case 6x4x2 270-1806 RadioShack
cables between their sources and ❑ Battery snap 9V snap (2) 123-5118-GR Mouser
❑ Earpiece Ceramic earphone 25CR035 Mouser
destinations. Attach the two 9V
❑ PCB Prototype board 854-POW3U Mouser
battery holders to the bottom of the ❑ Battery holder 9V holder (2) 534-071 Mouser
case with double-sided adhesive tape. ❑ Tape Two-sided adhesive tape Various
Now, reassemble the upper and ❑ Batteries 2 x 9 VDC Various
lower 10” PVC pipe sections. Insert

February 2008 53
Florian.qxd 1/9/2008 3:59 PM Page 54

housing RCA jack. Wrap the excess cable in spiral 2) Plug the ceramic earphone into J2.
fashion along the length of the metal detector’s shaft and
secure with electrical tape. This will keep the cable 3) Turn the volume control completely clockwise.
from moving and causing a subsequent change in stray
capacitance. 4) Attach the two 9V batteries to the battery snaps and
install the batteries into the holders.

5) Verify that S1 is in the On position.


Look! You should hear a tone from the earpiece. The pitch
Finally, at the earphone should increase when the search coil
approaches a metal object. To obtain this result, make
Hands-on sure that no metal object is near the search coil and then
turn C6 clockwise so that the pitch is a high tone, followed
Training for by a decreasing tone until the earphone is silent.
Next, rotate C6 counter-clockwise until a frequency of
PIC® Microcontrollers approximately 2 kHz is reached. As mentioned before, if
you are unable to tune the unit as specified, try reducing
and PIC BASICPRO™! the value of C8.
Now that the tone has been set, attach the lid to the
A Three-Day class of programming case with the four screws provided. If the metal detector
and hardware experiments designed does not balance properly, you may want to decrease
Learn to Program and Control:
to quickly bring you up to speed LED and LCD Displays the main shaft length to less than 33”. Photo 8 shows the
using PICs and PIC BASICPRO. Relays and Solenoids finished metal detector.
DC, Servo, and Stepper Motors
A2D Converters After the unit has been tested and completely
2007 Class Schedule Digital Potentiometers assembled, it’s time to look for coins and jewelry! Good
Austin, TX, April 17-19 LM34 and DS1620 Temp Sensors places to find coins at shallow depths are under the
Photo (light) Sensors
Albuquerque, NM, June 5-7 RS232 (serial) Communications
swings at a playground and below bleachers. For very
Minn. MN, Aug. 7-9 EEPROMs large metal objects at close distances, the output pitch
San Diego, CA, Oct. 9-11 Timers, Counters, Interrupts of the metal detector may be higher than physically
Real-time Clocks
San Jose, CA, Dec. 4-6 Visual Basic Interfaces
audible. Happy hunting with your four transistor metal
detector! NV
Check our web site for more details. RCG
www.RCGResearch.com Research
Phone (800) 442-8272 Innovative Ideas in Electronics Design REFERENCE
1) R. Dean Straw, N6BV, The ARRL Handbook, “Calculating Practical
PIC and PIC BASICPRO are trademarks or registered trademarks of their respective holders. Inductors,” 1999, p. 6-22, The American Radio Relay League.

Phone: (719) 520-5323


Order online at: Development Tools for PIC ® MCUs Fax: (719) 520-1867
www.melabs.com microEngineering Labs, Inc. Box 60039
Colorado Springs, CO 80960

USB Programmer for PIC® MCUs LAB-X Experimenter Boards BASIC Compilers for PICmicro®
Pre-Assembled Board Easy-To-Use BASIC Commands
$89.95 (as shown)
Available for 8, 14, 18, 28, Windows 98/Me/2K/XP/Vista
RoHS and 40-pin PIC® MCUs
2-line, 20-char LCD Module PICBASIC™ Compiler $99.95
Compliant
9-pin Serial Port BASIC Stamp 1 Compatible
Programs PIC Sample Programs Supports most 14-bit Core PICs
MCUs including Built-In Serial Comm Commands
Full Schematic Diagram
low-voltage (3.3V)
devices Pricing from $79.95 to $349.95 PICBASIC PRO™ Compiler $249.95
Supports most PICmicro® MCU Families
Includes Direct Access to Internal Registers
Software for
Windows With Accessories for $119.95: PICPROTO™ Prototyping Boards Supports In-Line Assembly Language
98, Me, NT, Includes Programmer, Software, USB Cable, Interrupts in PICBASIC and Assembly
XP, and Vista. and Programming Adapter for 8 to 40-pin DIP.
Double-Sided with Plate-Thru Holes Built-In USB, I2C, RS-232 and More
Circuitry for Power Supply and Clock Source Level Debugging
Large Prototype Area
EPIC™ Parallel Boards Available for Most PIC® MCUs See our full range of products, including
Port Programmer Documentation and Schematic books, accessories, and components at:
starting at $59.95 Pricing from $8.95 to $19.95 www.melabs.com

54 February 2008
Lindenbach.qxd 1/10/2008 9:13 AM Page 55

by W. Lindenbach

My friend Art, a radio amateur, built


a transmitter for operation on the
70 cm band (420-450 MHz),
but it didn’t work. There was
plenty of RF drive into the final tripler, but the output was
very low. Ed, his friend, came over to see the new rig.

“You’re too neat, Art!” commented Ed.


“Don’t let my wife hear you say that! Whatever do you
mean?” asked Art.
“Look at your wiring. It’s all neatly bundled into the corners
of the chassis, with nice right-angle bends. That’s okay for
the power wiring, but not for the RF lines. Connect them
directly by the shortest, straightest route.”

Later that night, Art reworked the RF wiring in his new


transmitter and turned it on. The output power was what it
should be.
“Well I’ll be (expletive deleted)!” Art exclaimed.
Lindenbach.qxd 1/10/2008 9:14 AM Page 56

W
hy did right-angle bends in When the current is AC (at any No. 12 copper wire has a resistance at
the wires cause such a frequency), new things begin to 30 MHz of 400 mΩ, compared to 9.5
problem? As explained in appear (the numbers in this next mΩ at DC. Even if the wire connects
this article, wires used in resistors, section are summarized in Table 1). to a perfect ground at one end, the
capacitors, inductors, antennas, and other end is not a good ground.
ground connections affect AC and DC • Resistance — With AC, there are two And there will be about 2.2 μH of
signals differently. kinds of resistance. The first is the inductance, as well.
ordinary well-known stuff that turns
ELECTRICAL PROPERTIES electric power into heat. The second • Proximity Effect — If more surface
OF WIRE is radiation resistance which turns area decreases the resistance, it would
alternating current into electromag- be reasonable to use more than one
A perfect wire should conduct a netic waves. That means that a wire. Consider the result with three
signal without adding noise, attenua- wire becomes an antenna, which is twisted No. 12 conductors six feet long.
tion, or distortion. Whatever is electri- certainly not an ideal conductor. It would seem that the resistance
cally happening at one end of the wire should be one-third of that produced
should be happening at the other end • Skin Effect — As the frequency with one No. 12 conductor (0.4Ω).
exactly in the same form, no increases, current moves out from the Instead, the RF resistance is now at least
matter what the current, voltage, fre- center of the wire, and concentrates 0.18Ω (instead of one-third of 0.4Ω or
quency, surroundings, or temperature. at the surface so that, at high frequen- 0.133Ω)! It could be a lot more; it
However, this isn’t the case. For exam- cies, all the current flows in a thin depends very much on the condition of
ple, the effect of the wire on a signal “skin” at the surface of the wire. To an the wire surface. The inductance with
depends on the frequency of the RF (Radio Frequency) current, a wire this arrangement will be higher, too.
current that the wire is conducting. looks like a thin tube or pipe. The proximity effect is very similar
The higher the frequency, the more RF currents could be considered to the skin effect in that it can also be
the effect of the wire on the signal. “anti-social;” each RF current element visualized as an anti-social tendency.
When the current is DC (ƒ = 0, tries to get as far away from every The RF current will stay on the top
that is, the frequency is 0 Hz), the other element as possible. Since the surface of the wire so, with twisted
behavior of the wire is most nearly the current flows entirely on the surface of wires, the current flows from one con-
perfect behavior described above. The the wire, the inside of the wire might ductor to another, and that is a high-
shape does not matter, what is near or as well not be there. At 30 MHz, the resistance path. Incidentally, this is
around the wire does not matter, and effective conducting thickness of a why copper braid has a high RF resist-
the current flows in the whole wire. copper wire is a surface skin about 0.5 ance — up to 1Ω per foot at 20 MHz.
But the temperature matters. For mils (0.0005 inch) thick. So, a tube of To avoid the proximity effect with
example, six feet of No. 12 wire at copper half a mil thick and 80.8 mils twisted wires, use one wire of approx-
room temperature (20°C) has a resist- in diameter is just as good at 30 MHz imately the same size in circular mils
ance of about 9.5 mΩ (0.0095Ω). At as a solid No. 12 wire. as twisted wires. No. 6 wire has more
30°C (hot day), the same wire has a Now the result of this skin effect than three times the cross-sectional
resistance of 9.87 mΩ. anti-social behavior is that six feet of area of No. 12 wire. Six feet of No.
6 wire will produce 0.2Ω of RF
Inductive resistance (only half of the resistance
Conductor Type Resistance Inductance in Reactance
and Length at 20°C DC Resistance at 30 MHz Microhenries at 30 MHz
of one No. 12 wire), and about 2.0 μH
of inductance at 30 MHz.
No. 12 Copper, Now consider the proximity
0.0095 ohms 0.40 ohms 2.72 μH 513 ohms
six feet long effect in a coil. RF resistance is lower if
Three Conductors the space between turns is equal to
(depends on wire (depends on
of No. 12 Copper, 0.00318 ohms 0.18 ohms twice the wire diameter. Then, the RF
surface condition) inductance)
six feet long
resistance increases by only about
No. 6 Copper, 5%, whereas if the turns are tightly
0.00237 ohms 0.20 ohms 2.0 μH 377 ohms
six feet long
pressed against each other, the
No. 30 Copper, resistance increases by about 33%,
0.619 ohms 3.4 ohms 3.48 μH 656 ohms
six feet long avoiding the wire surface that is
Copper Foil, six feet pressed against another wire surface.
long, one inch wide, 0.0095 ohms 0.11 ohms 2.0 μH 377 ohms This is true if the current is flowing in
five mils thick
the same direction in the closely
Copper Foil, six feet spaced wires; if the current in
long, two inches 0.00475 ohms 0.06 ohms 1.75 μH 330 ohms adjacent turns were somehow flowing
wide, five mils thick
in opposite directions, the resistance
TABLE 1. Resistance, Inductance, and Reactance. increase would be much greater.
56 February 2008
Lindenbach.qxd 1/10/2008 9:15 AM Page 57

• Lazy Effect — The numbers shown in


KINDS OF OPPOSITION
Table 1 apply to straight wires. If they
are curved or wound into a coil, the Making electronic circuits work resistance, inductive reactance,
resistance rises because the RF current correctly is a matter of making capacitive reactance, and impedance.
takes the shortest route, which is the electrons go where they should and Each is measured in ohms and
side of the wire nearest the center of when. Controlling electron flow Ohm’s Law applies to all calculations
with “opposition” devices is a way with these effects. Here is a
the coil. Taking only the inner surface
to do that. comparison of all four, and their
of the wire around the coil reduces the
There are four kinds of opposition: respective behaviors:
amount of copper for conduction.
COMPARISON OF RESISTANCE, REACTANCE, AND IMPEDANCE
• Reactance and Impedance — These
TYPE OF PRODUCED BY MEASURED IN RELATIONSHIP BEHAVIOR
are forms of opposition only to the OPPOSITION OF VOLTAGE WITH
flow of AC current because they are TO CURRENT AND CURRENT FREQUENCY
FLOW
dependent upon the frequency (see RESISTANCE Resistors Ohms In phase Same at all
the sidebar Calculating Reactance frequencies
and Impedance). Inductive reactance INDUCTIVE Inductors: Coils Ohms Current lags Increases linearly
REACTANCE and Wires voltage by up to with frequency
increases and capacitive reactance 90°
decreases as frequency rises. CAPACITIVE Capacitors: Any Ohms Current leads Decreases as the
REACTANCE two conductors voltage by up to reciprocal of
Impedance is a combination of separated by an 90° frequency
resistance and reactance. insulator.
IMPEDANCE Two, or all three of Ohms Depends on Can increase or
the above, in series proportions of decrease linearly
WIRES AT RADIO or parallel reactance and or as the reciprocal
FREQUENCIES combinations. resistance. of frequency.

By reason of the skin effect, a


solid copper wire looks like a very done to minimize RF resistance: — a very good term in this application.
thin tube of resistive material to RF Some circuit boards are copper-
current at 30 MHz. And, since there is (1) Make the surface area as great clad on both sides, with non-clad
inductance, we can think of the wire as possible. The thickness of the areas only where there are parts-
not as straight but as a coil. See Table conductor is almost irrelevant. mounting pads and connection traces.
1 for the characteristics of different But, all of the copper foil that is not a
sizes and shapes of wire at 30 MHz. (2) The conductor should be as nearly connection trace is grounded. Circuit
Now consider capacitance. A straight as possible. That means boards that have high-frequency
capacitor is formed wherever there that “neat” wiring or circuit board signals or high-speed data — and
are two conductors separated by an layout (nice sharp bends) increases RF therefore require very good grounds —
insulator. Think of two small spots on resistance. are sometimes made with a copper
our thin-tube-of-resistive-material coil. foil surface on both sides with the
There is air between these two (3) Conductors of RF currents should connection traces on an internal
surfaces which insulates them, and be kept apart, especially if the currents layer. This arrangement illustrates the
thus forms a capacitor! Well yes, but are flowing in opposite directions. importance of a large surface area
doesn’t the conductor itself short for a good ground, that is, very low
these two surfaces together? Not CIRCUIT BOARD TRACES resistance and inductance.
quite. There is inductance and resist- A double-copper-clad circuit
ance between any two spots on the According to Table 1, the type of board with conducting traces
surface of our conductor. Now think conductor with the
of the whole surface of the conductor lowest resistance and
as separate spots, insulated from each inductance is copper
other, and forming capacitors. foil. Where is there a
The net result for our 30 MHz RF large surface of copper
current is a very thin tube of resistive foil? Well, a copper-
material in the shape of a coil, bristling clad circuit board is
with capacitors all over the surface. If most familiar. The
you are thinking of the inductance copper forms what is
and capacitance in a single piece of called a ground plane
wire producing a resonant circuit,
you’re absolutely right. FIGURE 1. Hewlett-
Considering the effects described Packard Type 8405A:
Vector Voltmeter,
above, at least three things can be Front Panel
February 2008 57
Lindenbach.qxd 1/10/2008 12:46 PM Page 58

mined by the size and shape of the


CALCULATING REACTANCE AND IMPEDANCE
conductors and the thickness and type
of material of the insulator between. A
Here are “scalar value” equations for these quantities; there are “vector value” equations which are
really neat, but they are not needed here. common transmission line is co-axial
cable, such as RG-58, which has a
Inductive reactance can be found with:
characteristic impedance of 50Ω.
X L = 2π fL where: X L is Inductive Reactance in Ohms.
What is characteristic impedance?
π is Pi, a Greek letter which means “insert the number 3.1416”;
it is the ratio of the circumference to the diameter of a circle. You do not measure it with an
f is the frequency in Hertz, or Cycles per Second. ohmmeter. If a transmission line, no
L is Inductance in Henries. matter how long, is terminated in its
characteristic impedance, the other
Here is an example: if f = 1MHz. , and L = 10 μ H , X L = 62.8Ω
end will look like the characteristic
Capacitive reactance can be found with: impedance to RF currents. It will be a
1 pure resistance if the termination is
XC = where: XC is Capacitive Reactance in Ohms.
2π fC the correct, pure resistance. This is a
π is 3.1416 (as above) very good arrangement because the
f is the frequency in Hertz, or Cycles per Second. inductance and capacitance no longer
C is Capacitance in Farads. affect the frequency response.
Here is an example: if f = 1MHz. , and C = 100 pF , X C = 1592Ω
PRACTICAL APPLICATION
Impedance can be found with:
The most dramatic experience
Z = R2 + X 2 where: Z is Impedance in Ohms with wires that don’t behave as wires
R is Resistance in Ohms that I have ever experienced happened
X is Inductive Reactance, X L , or X C , Capacitive Reactance, in
about a year ago with an instrument
ohms.
called a vector voltmeter. Figure 1
Here is an example: if you connect a 10 ohm resistor and an inductor (whose reactance at a certain shows the front panel. It’s a wonderful
frequency is 10 ohms) in series, the result is Z = 14.4Ω old Hewlett-Packard instrument; it can
* * *
tell you things about a circuit that a
‘scope cannot. On my workbench, it is
between the two ground plane time delays for different frequencies, indispensable, and now it is irreplace-
surfaces suffers from the proximity and can produce ringing. As a result, able since it is about 35 years old.
effect, capacitance to ground, and data pulses will be rounded and So, when it stopped working
inductance in the traces. Circuit board timing may be wrong. correctly, I had to fix it. It has an
traces have approximately 10 nH per Circuit boards operating at fre- indicator on the front panel marked
centimeter of inductance (1,000 nH = quencies greater than 1,000 MHz (this “APC unlocked” (Automatic Phase
1 μH) and, with the capacitance of the includes high-speed data) must use a Control; similar to a phase-locked
ground plane, the traces can form a different arrangement: a transmission loop). When the APC is unlocked, the
low-pass filter which will produce a line. Transmission lines have a charac- input signal (up to 1 GHz) and the
falling frequency response, different teristic impedance (Ζo) which is deter- internal phase-locked loop are out of
synchronization. An internal phase
INDUCTIVE CARROTS? comparator has to pull an internal
oscillator to the correct frequency and
Inductive reactance and capacitive With pure inductive reactance, phase, and keep it there even in the
reactance are opposite: what one when the voltage is at a positive peak, presence of frequency modulation.
does, the other one does “upside the current is at zero! That means that That’s a very demanding operation!
down.” Inductive reactance increases the current lags the voltage by up to 90°.
It was getting harder and harder
in direct proportion to the frequency; In a pure capacitive reactance, when
capacitive reactance decreases in the current is at a positive peak, the to lock the APC until, after a few
inverse proportion to the frequency. voltage is at zero! That means that the weeks, it wouldn’t lock at all. Without
And, they cancel each other. If you current leads the voltage by up to 90°. a perfect phase lock, the instrument
have equal quantities of inductive and I found this a difficult concept, but is useless.
capacitive reactance in series, you have there is an easy way to demonstrate it. Signal sampling up to 1 GHz is
nothing left but a little bit of resistance. Read the sidebar “Seeing Is Believing.” accomplished with a 300 ps (3 x 10-10
This is called resonance. ANYTHING that behaves with second) pulse, adjusted to frequencies
In a resistance, the voltage and the characteristics shown in the between 0.98 MHz and 2.0 MHz,
current are in phase. That is, when the comparison table (see the “Kinds of producing a signal for measurement of
voltage is at a positive peak, the current Opposition” sidebar) is a resistor, 20 kHz. Such a short pulse contains
is also at a positive peak. inductor, or capacitor. energy at 3 GHz. The pulses are pro-
58 February 2008
Lindenbach.qxd 1/10/2008 9:16 AM Page 59

FIGURE 2. Hewlett-Packard Type 8405A:


Vector Voltmeter Pulse Generator, REFERENCES
showing modification for lower ground
impedance (green wires) which restored (1) B. Whitfield Griffith, Jr. Radio-
the instrument to working condition. Electronic Transmission Fundamentals,
2000, ISBN 1-884932-13-4. Available
duced on a circuit board in a shielded from the Amateur Radio Relay
League, www.arrl.org/qex/. ARRL
cage with sliding ground clips on the
Order Number: RETF; $75 plus
sides to contact the copper-clad circuit shipping and handling. Order toll-free:
board. There were also ground wires 1-888-277-5289 or QUICK ORDER online.
on the edge connector. Producing a
signal at such frequencies — and with (2) Dr. F. E. Terman, Radio Engineer’s
such very precise and critical frequency Handbook, First Edition: 1943, Section
and phase control — requires a very 2: “Circuit Elements,” pp. 26-53.
good ground. I suspected that the McGraw-Hill Book Company.
ground connections to the circuit board
(3) Other books by Dr. Terman:
had somehow deteriorated over time.
Assuming 10 nh/cm (nanohenries Electronic and Radio Engineering, 1955
per centimeter) of wire length, and
four wires of about 2 cm length in Fundamentals of Radio, 1938
parallel, the inductance would
be about 5 nh and, at 3 GHz, the wires in Figure 2. It worked perfectly! Electronic Measurements, 1952
inductive reactance is about 90 ohms. I can only assume that, over the
What the reactance of the slide clips years, the circuit board grounding If you can find these books
anywhere, and can afford them, grab
was, I couldn’t possibly guess. slide clips corroded, the ground them; you’ll never regret it.
After making measurements, impedance rose, which caused the These books are worth any couple
testing, viewing waveforms, replacing APC to fail. The extra ground wires dozen others that I can think of. Dr.
parts, making theological and biologi- were each in parallel with the existing Terman was a great teacher; perhaps
cal comments in four letters, scratching ground circuit, lowering the ground the greatest electronics teacher ever.
my head and almost making a hole, impedance and reducing interaction The Griffith text guided me through an
somehow I decided to add some more with other circuits. That’s what can AM broadcast transmitter installation.
ground wires to the pulse generator happen when a wire acts like an I cannot recommend these books
too highly.
edge connector. They are the green inductor and a resistor! NV

SEEING IS BELIEVING
You can see the current waveform lead- (6) Adjust the scope’s horizontal sweep the Channel 2 trace (current) would be to
ing the voltage waveform in a capacitive so that both traces show about one cycle the right (lagging) of the Channel 1 trace
reactance with a simple setup: and, with the generator output turned by about a quarter of a cycle.
off, the traces are on the center horizon- This is a hard concept: voltage and
(1) The parts required are a 0.1 μF tal line of the graticule. If there is DC in current in phase in a resistance, current
capacitor and a 1.0 Ω resistor. The values the generator output (the Channel 1 leading the voltage by 90° in a capaci-
can be approximate. trace moves vertically as you adjust the tance, and current lagging the voltage by
generator output), switch the ‘scope 90° in an inductance. It is the convention
(2) Connect the capacitor and resistor inputs to “AC coupling.” to refer phase shift to the voltage
in series. waveform, that is, the voltage waveform
(7) You will see the Channel 2 trace is is considered to be at 0°. Then, if the
(3) Connect a signal generator output to to the left (leading) of the Channel 1 current is ahead of the voltage (leading),
the capacitor free end and ground to the trace by about one-quarter of a cycle, it is considered to be at a positive angle;
resistor free end. The generator should or about 90°. if the current waveform is behind
be able to provide about 1.5V RMS at 30 the voltage waveform (lagging) it is
kHz into a 50 Ω load. The Channel 2 trace from the 1Ω considered to be at a negative angle.
resistor is showing the current waveform I have found it easier, in a series
(4) Connect a dual-trace ‘scope so that through the capacitor. The capacitive circuit, to think of the current waveform
the generator output can be seen on reactance of the capacitor at 30 kHz is as a reference, and then to think of the
Channel 1, and the voltage across the 1.0 about 50 ohms, so the 1Ω resistor, being voltage waveform as a result of the
Ω resistor on Channel 2. so much smaller, does not change the effect of the resistance or reactance (or
phase relationship significantly. combination) on the current. But then,
(5) Adjust the scope’s vertical sensitivity If the capacitor were replaced by an before any calculations, it is necessary to
so that both traces cover the graticule inductor of about 265 μH (inductive readjust the observation to conform with
vertically. reactance of about 50 ohms at 30 kHz), the convention (voltage at 0°).

February 2008 59
Mazur.qxd 1/8/2008 8:37 AM Page 60

H D T V
Audio
In the December ‘07 issue, we examined the various ways to hook
up pieces of your home entertainment system to your HDTV. We
specifically focused on the different video interfaces. We’ll continue
now with the choices for passing audio from one device to another.

by Jeff Mazur

O
nce again, the most common the ham operator who lives next and also known as TOSLINK — uses 1
connection by far is the standard door!). To solve this issue — as well as mm fiber terminated in a 5 mm
analog stereo pair using RCA complete the total conversion to binary connector. While earlier cables were
jacks and cables. With good quality 1s and 0s — there are three basic ways restricted to less than 15 feet, you can
cable and connectors, this method can to pass audio signals digitally between now buy high quality TOSLINK cables
provide excellent results. The most devices: coax, optical, and HDMI. up to 100 feet in length. TOSLINK can
common issue with analog audio con- carry data signals of up to 125 Mbits/s,
nections is its susceptibility to picking S/PDIF (Sony/Philips which allows for three audio channels.
up hum and/or other extraneous Digital Interconnect However, it is usually used to carry a
signals, especially from components Format) single pair of stereo audio signals.
within your system (or perhaps from As an electrical signal, S/PDIF is
Named after the two companies represented by a roughly 1V digital
Figures 2-4 are courtesy of Wikipedia, the that developed this interface, S/PDIF pulse train using Biphase Mark Code
free encyclopedia (licensed to the public is a means to carry audio between (BMC) to carry the audio data. While
under the GNU Free Documentation
License). devices in a digital format. The signals no specific sampling rate or bit depth
can be carried over is specified in the standard, audio is
standard 75 ohm coaxial usually carried as either 48 kHz (DAT)
cable using RCA jacks or 44.1 kHz (CD) data with either 20
(or BNC connectors in or 24 bit samples. We’ll describe the
professional equipment) actual data format in a moment.
or via optical fiber
(glass or plastic, usually HDMI
terminated with F05
connectors). See Figure 1. We’ve already discussed the
The optical connec- HDMI interface that can carry digital
tion — created by Toshiba video between devices. HDMI also
includes support for up to eight
FIGURE 1. Digital audio channels of uncompressed digital
connections (top, coax
and bottom, optical). audio at a 192 kHz sample rate with a
60 February 2008
Mazur.qxd 1/8/2008 8:38 AM Page 61

24 bits/sample, as well as compressed values. Under ideal conditions, it also (PCM). This approach simply takes the
streams such as Dolby Digital, or DTS. represents the maximum signal to noise output from an Analog-to-Digital
HDMI also supports one-bit audio, ratio (SNR), which is related to the num- Converter (ADC) and places the bits
such as that used on Super Audio CDs ber of bits by the following formula: into a continuous bitstream.
at rates up to 11.3 MHz. With version Figure 2 shows a sine wave (in
1.3, HDMI now also supports lossless SNR = 20 log 2N = approx (6 x N) dB red) that is sampled and quantized
compressed streams such as Dolby using simple PCM. At each sample
TrueHD and DTS-HD Master Audio. where N = number of bits. point, the digital representation of the
signal’s analog value is sampled and
Digital Audio Basic For example, a 20-bit converter then held until the next sample point.
theoretically could obtain an SNR of This produces an approximation of the
Digital audio connections can be 120 dB (if there are no other sources original signal, which is easily encoded
used to connect various components of noise). In practice, the maximum as digital data. For example, if the sine
of your home entertainment system signal level is usually reduced by 20 wave in Figure 2 is quantized into 16
such as from a cable or satellite STB dB of headroom to prevent clipping. values (i.e., four bits), we would
(Set Top Box) to the TV. Since audio is This still leaves an SNR of approxi- generate the following data samples:
transmitted digitally in the ATSC DTV mately 100 dB. In comparison, normal 1001, 1011, 1100, 1101, 1110, 1110,
signal, this will often be the best audio tape typically only achieves an 1111, 1111, 1111, 1110, etc.
choice. Other components (e.g., a CD SNR of about 60 dB. We could transmit these PCM
player) also handle audio natively in a As you can see, digitizing an ana- samples as four-bit parallel data with a
digital form. However, devices that log signal is all about compromise. You separate clock signal to indicate when
handle audio as an analog signal — need to sample at a high enough rate each sample was taken. This is cumber-
including the equipment used to so as not to miss changes in the signal some, however, and requires the use of
record or create TV audio at its source that occur between the samples. And multi-conductor cables. Most data
— must first convert the analog signal we need enough bits to represent each transmission today is done in a serial
to digital. This process is known as sample so that the difference between fashion. This requires that each bit of
digitizing and is a good place to start the actual analog value and its closest the PCM sample be clocked out onto a
when discussing digital audio. digital representation (a.k.a., quantiza- single serial data line. At the receiving
To digitize an analog signal, we tion error) is not very much. Of course, end of this data stream, a shift register
basically perform two separate increasing either of these values means will convert the serial data back into
functions. First, the signal is sampled that there will be more digital data that parallel data words. To keep the receiv-
at regular intervals to determine its needs to be carried and processed. er in sync with the transmitter, some
value at each discrete point in time. On the positive side, once a signal form of clock recovery is necessary.
This is usually the function of a has been digitized it can be transmit- One of the easiest ways to do this
sample-and-hold circuit. Next, each ted much more efficiently and without is to make sure that the serial data
sample is quantized, or converted many of the side effects of noise and changes polarities at least once during
from an analog voltage to a particular distortion present in the communica- each bit-time. This is the basis for sever-
digital representation of that value. tion channel used. More importantly, al different coding schemes, including
The sampling rate determines it can be compressed digitally so that Biphase Mark Code (BMC) — the sig-
what frequencies can be carried redundant and/or unessential data naling method used by both TOSLINK
digitally; information theory tells us can be discarded. This is one of the and the professional digital audio for-
that only frequencies below one-half main reasons that our TV signals are mat established by, and referred to as,
of the sampling frequency (also undergoing the transition to digital. AES/EBU (Audio Engineering Society
referred to as the Nyquist frequency)
can be represented accurately. Signals PCM
above this limit will cause extraneous
frequencies (i.e., distortion) to appear There are many
due to an effect known as aliasing. ways to represent
In other words, we need at least each sample as a dig-
two samples per cycle of the highest ital signal. The most
frequency we wish to digitize. common technique
The quantization of each sample is known as Pulse-
determines how many bits will be used Code Modulation
to represent each sample. The more
bits, the higher the precision will be of FIGURE 2. Analog-
each sample. This translates into the to-digital conversion
dynamic range of a signal, or the differ- of a signal using
Pulse Code
ence between its lowest and highest Modulation (PCM).
February 2008 61
Mazur.qxd 1/8/2008 8:38 AM Page 62

FIGURE 3. Serialization of rate, compression, emphasis modes.


digital data using Biphase
Mark Coding (BMC).
• Byte 1: Indicates if the audio
nized to a common 27 stream is stereo, mono, or some other
MHz timebase. Even so, combination.
a frame of NTSC video
has a duration of: • Byte 2: Audio word length.

1 / 29.97 = 33.366… ms • Byte 3: Used only for multichannel


and the European Broadcasting Union). applications.
With BMC, the data stream At 48 kHz, an audio frame has a
changes value at the beginning of duration of: • Byte 4: Suitability of the signal as a
each data bit. A logic 1 is represented sampling rate reference.
by having the stream change value 1 / 48,000 = 20.833… μs
again during the middle of its bit time; • Byte 5: Reserved.
it does not change for a logic 0 (see This makes a complete audio block
Figure 3). BMC coding provides easy 192 x 20.833 = 3,999.4 μs. The number • Bytes 6–9 and 10–13: Two slots of
synchronization since there is at least of audio samples per video frame, four bytes each for transmitting ASCII
one change in polarity for every bit. however, is not an integer number: characters.
Also, the polarity of the actual signal is
not important since information is 33366 / 20.833 = 1601.6 audio • Bytes 14–17: Four-byte/32-bit sam-
conveyed by the number of transitions samples/video frame ple address, incrementing every frame.
of the data signal.
Another advantage of BMC is that Because of this, it takes a total of • Bytes 18–21: As above, but in
the average DC value of the data five video frames before an even time-of-day format (numbered from
stream is zero, thus reducing the neces- number of audio samples corresponds midnight).
sary transmitting power and minimizing to an even number of video frames
the amount of electromagnetic noise (8,008 audio samples per five video • Byte 22: Contains information about
produced by the transmission line. All frames). Some video frames are given the reliability of the audio block.
these positive aspects are achieved at 1,602 samples while others are only
the expense of using a symbol rate that given 1,601. This relationship is • Byte 23: CRC (Cyclic Redundancy
is double the actual data rate. detailed in Figure 4. Check) for error detection. The absence
Each audio frame consists of two of this byte implies interruption of the
Transmission Protocol subframes: one for each of the two data stream before the end of the audio
discrete audio channels. Furthermore, block, which is therefore ignored.
S/PDIF and its professional cousin, as shown in Figure 4, each subframe
AES/EBU, were designed primarily contains 32 bits — 20 audio sample AC-3
to support two channels of PCM bits plus 12 extra bits of metadata.
encoded audio at 48 kHz (or possibly There is a single Channel Status As previously mentioned, raw PCM
44.1 kHz) with 20 bits per sample. bit in each subframe, making 192 bits data would require a large bandwidth to
Sixteen-bit data is handled by setting per channel in every audio block. This transmit. For surround sound, this would
the unused bits to zero; 24-bit data can means that there are 192 / 8 = 24 require approximately six channels x 48
be achieved by using four auxiliary bits bytes available in each block for samples/s x 20 bits = 5.7 Mb/s. With
to expand the data samples. The higher level metadata. In S/PDIF, the appropriate compression, however, this
low-level protocol used by both S/PDIF first six bits are organized into a control can be reduced to 384 Kb/s.
and AES/EBU is the same, with the code. The meaning of these bits is: Dolby Digital — officially known
exception of a single Channel Status bit. as AC-3 (Adaptive Transform Coder 3)
To create a digital stream, we bit if 0 if 1 — is the compression scheme used to
0 Consumer Professional
break the continuous audio data into 1 Normal Compressed data transmit audio within the ATSC DTV
smaller packets or blocks. Each block 2 Copy Prohibit Copy Permitted data stream. It can represent up to five
is further divided into 192 frames. 3 Two Channels Four Channels full bandwidth (20 Hz-20 kHz)
4 — —
Note, however, that these frames have 5 No Pre-emphasis channels of surround sound (Right
nothing to do with frames of video. In pre-emphasis Front, Center, Left Front, Right Rear,
fact, when digital audio is combined and Left Rear), along with one low fre-
with digital video signals, there are a In AES/EBU, the 24 bytes are used quency channel (20 Hz–120 Hz) for
number of steps that must be taken to as follows: subwoofer driven effects. This is often
make them compatible. First off, both referred to as 5.1 surround sound.
digitizing clocks must be synchro- • Byte 0: Basic control data — sample A complete description of the
62 February 2008
Mazur.qxd 1/8/2008 8:39 AM Page 63

Figure 4
Bits 0 to 3 bits at the start of each sub-frame.
These do not actually carry any • V (28) Validity bit: It is set to zero if
data but they facilitate clock recovery Bits 4 to 7 the audio sample word data are cor-
and subframe identification. They are These bits can carry auxiliary rect and suitable for D/A conversion.
not BMC encoded so they are unique information such as a low-quality Otherwise, the receiving equipment is
in the data stream and they are easier auxiliary audio channel for producer instructed to mute its output during
to recognize, but they don’t represent talkback or studio-to-studio communi- the presence of defective samples.
real bits. Their structure minimizes the cation. Alternately, they can be used to It is used by players when they have
DC component on the transmission enlarge the audio word length to 24 problems reading a sample.
line. Three preambles are possible: bits, although the devices at either
end of the link must be able to use this • U (29) User bit: Any kind of data such
X (or M): 11100010 if previous state non-standard format. as running time, song, track number,
was “0;” 00011101 if it was “1.” etc. One bit per audio channel per
Bits 8 to 27 frame form a serial data stream.
Y (or W): 11100100 if previous state These bits carry the 20 bits of
was “0;” 00011011 if it was “1.” audio information starting with LSB • C (30) Channel status bit: Its structure
and ending with MSB. If the source depends on whether AES/EBU or
Z (or B): 11101000 if previous state was provides fewer than 20 bits, the S/PDIF is used (see text).
“0;” 00010111 if it was “1.” unused LSBs will be set to a logical
“0” (for example, for the 16-bit audio • P (31) Parity bit: For error detection.
They are called X, Y, Z from the read from CDs, bits 8-11 are set to 0). A parity bit is provided to permit
AES standard; M, W, B from the IEC the detection of an odd number of
958 (an AES extension). The eight-bit Bits 28 to 31 errors resulting from malfunctions in
preambles are transmitted in the same These bits carry associated status the interface. If set, it indicates an
time allocated to four (BMC encoded) bits as follows: even parity.

AC-3 standard and its use in ATSC


transmission is quite complex and Video Frame 1 Video Frame 2 Video Frame 3 Video Frame 4 Video Frame 5
33.37 ms 33.37 ms 33.37 ms 33.37 ms 33.37 ms
beyond the scope of this article. You
can download the entire ATSC audio
standards document (A/52B) using the
Audio Data 1 Audio Data 2 Audio Data 3 Audio Data 4 Audio Data 5
link given under Further Info. However, 1602 samples 1602 samples 1601 samples 1602 samples 1601 samples
there are however some interesting
details worth mentioning here.

ATSC Audio Details 192 samples 192 samples .....


Unlike analog NTSC, audio does Audio Block 1 Audio Block 2 Audio Block 3 Audio Block 4
not take a backseat to video in ATSC. .....
3999.4 μS 3999.4 μS 3999.4 μS 3999.4 μS
Quite a bit of the standard is devoted to
how sound will be delivered to the
viewer. We’ve already seen how 5.1
surround sound can be transmitted with
each DTV channel. Other parameters in
the audio metadata can be used to
Frame 1 Frame 2 Frame 3 ..... Frame 192
enhance the viewing experience. One of 20.83 μS 20.83 μS 20.83 μS 20.83 μS
these parameters is known as dialnorm.
The purpose of dialnorm is to
equalize the sound levels when
changing from one program to anoth-
er. The value of this parameter —
which is embedded within the audio
stream — is meant to indicate the level Subframe A Subframe B
32 bits 32 bits
of average spoken dialog within the
complete audio program. This is then
used to control the decoder compres- Bit descriptions

FIGURE 4. Packetization of data


in digital audio streams.
February 2008 63
Mazur.qxd 1/8/2008 8:40 AM Page 64

sion gain within the HDTV receiver. Table 5.7 of the A/52 document (see ments similar to the Emergency Alert
If set properly, it will maintain a Table 1). System (EAS). Whenever an E service
consistent dialog level between pro- A complete main (CM) channel signal is present, it will automatically
gram elements and when changing represents the main audio service mute and/or replace the normal audio
from one channel to another, hence the with dialog, music, and effects. This is channels with the E channel audio.
abbreviation of “dialog normalization.” the normal audio program which can The voice over (VO) and karaoke
The dialnorm parameter ranges in be monaural (one channel), stereo services allow an additional channel to
integer values from 31 (where decoder (two channel), or surround sound (5.1 be added to an existing AC-3 stream
gain remains at unity) to a value of one channel) where available. A music and without requiring the audio to be
(where decoder gain is reduced by 30 effects channel (ME) contains only decoded (i.e., uncompressed) back to
dB). Unfortunately, many producers those respective portions of the audio, baseband PCM audio data, mixed, and
and broadcasters currently do not without dialog. This would be useful then re-encoded. Local stations could
provide a proper dialnorm value in when supplying a program in multiple use this to add their own audio tags to
their programs. This is partly due to the languages; the single ME service programming supplied by their network.
complexity and variability of actually would be combined with various
measuring the dialog level properly. other streams containing only a dialog Lip Sync
Thus, you may still find wildly varying (D) service for each language.
levels between channels. The visually impaired (VI) service Because audio and video are
is designed to allow a separate audio processed separately by various circuits
Other Audio Services channel to contain a narrative descrip- which can delay the signals significant-
tion of the program content. Also ly, special attention is needed to keep
The ATSC standard also provides known as video described, this aids a these parts of a presentation in sync.
for alternate audio channels by allow- person who is blind or otherwise When they drift apart past a certain
ing multiple AC-3 elementary streams visually impaired to comprehend what threshold, the discrepancy becomes
within the full transport stream. As is happening on the screen. Likewise, very noticeable and objectionable.
such, each alternate audio channel the hearing impaired (HI) service is Technically called audio/video
can have up to 5.1 channels of its own provided to aid those with slight hear- sync, this quality is often referred to as
to provide a complete audio service. It ing loss. Unlike captioning, which can lip sync (not to be confused with a
is also possible for the alternate audio provide audio content for those who Milli Vanilli performance). A/V sync
to consist of a single channel intended are completely deaf, the HI service is errors are becoming a significant prob-
to be combined with other channels designed to provide more intelligible lem in the digital television industry
from a different stream (although not audio by processing (compressing) because of the use of large amounts of
all HDTVs are capable of this). the dialog channel and emphasizing it video signal processing in television
One obvious use for an alternate over the music and effects. production and broadcasting and fixed
audio channel would be to convey the While the dialog service contains pixel, progressive television displays
dialog in a different language, much actual program dialog from the speak- such as Plasma, LCD, and DLP sets.
like the SAP (Secondary Audio ing actors, an additional commentary Studies have shown that “When
Programming) service, currently avail- (C) service can be added to provide audio precedes video by five video
able on NTSC channels. Because there further information. This is like many fields (83 ms), viewers evaluate
can be any number of audio streams, DVDs which offer a special audio track people on television more negatively
this would allow multiple languages to to provide director’s or actor’s com- (e.g., less interesting, more unpleas-
be transmitted at the same time. ments while you watch their movie. ant, less influential, more agitated, less
The ATSC standard also identifies The emergency (E) service is a successful). Viewers can accurately
several types of audio signals that can special, high priority channel which tell when a television segment is in
be transmitted. These are specified in can be used to convey vital announce- perfect sync, and when it is five fields
out of sync.” See the Reeves and
Voelker reference in the sidebar.
Table 1. Bit Stream Modes Furthermore, there is a larger toler-
bsmod acmod Type of Service ance for audio that is delayed in com-
000 Any Main audio service: Complete main (CM) parison to the video. This is a phenom-
001 Any Main audio service: Music and effects (ME) enon that we are all used to when we
010 Any Associated service: Visually impaired (VI) watch a fireworks display or, to a larger
011 Any Associated service: Hearing impaired (HI) degree, an electrical storm. We see the
100 Any Associated service: Dialog (D) effect before we hear it. Of course, this
101 Any Associated service: Commentary (C) is due to a totally different reason: the
110 Any Associated service: Emergency (E) difference in velocity between light and
111 001 Associated service: Voice over (VO) sound waves. But if you’ve ever had to
111 010 - 111 Main audio service: Karaoke watch a program with significant A/V
64 February 2008
Mazur.qxd 1/8/2008 8:41 AM Page 65

FIGURE 5. Lip sync


adjustment on an HDTV.
sync error, you know how
annoying it can be.
Good engineering
practices specify that the
audio should never lead
the video by more than 15
milliseconds or lag by
more than 45 milliseconds.
To keep the audio and
video signals in sync,
Presentation Time Stamps
(PTS) are added to the
transport stream packets.
This allows the MPEG decoder in the native resolution of the display device)
receiver to re-assemble the packets and correction for progressive display
correctly and keep the audio and of interlaced sources (de-interlacing
video (and captions, etc.) in sync. and 3:2 pull-down removal). They can
When the audio and video pack- also perform image enhancement to
ets are multiplexed together, they can reduce specific artifacts of the display
be sent up to one second apart. (e.g., Sony’s Digital Reality Creation).
Fortunately, most of the other delays in Some of these processes add
the transport stream affect audio and considerable delay, especially when
video together. However, if you con- they need to examine multiple video
sider the delays encountered in encod- fields to perform their function. This can
ing, buffering, multiplexing, transmis- cause noticeable A/V sync errors. Some
sion, demultiplexing, decoder buffer- HDTVs now have user adjustments to
ing, decoding, and presentation, there compensate for this (see Figure 5). NV
can be over five seconds of delay
between the broadcast input and your
TV display. You can easily see this by Glossary of Useful Terms
switching between one of your local ATSC Advanced Television System
station’s analog and digital channels. Committee — The organization
Even if the receiver in an HDTV and name of the digital television
decodes a perfectly synchronized standard adopted in the US.
signal, there still can be a difference in
DTV — Digital Television
the picture and sound when viewed.
This is because TVs now have lots of DAT — Digital Audio Tape
computing power and use it to
enhance HD, as well as SD pictures. HDMI: High-Definition Multimedia
They have large video buffers and DSP Interface — A method of connecting
(Digital Signal Processing) chips to components using a single cable that
perform resolution changes (mapping carries digital video signals along
with multichannel digital audio.
the incoming video resolution to the
HDTV: High Definition TeleVision —
Further Info Part of the new Digital Television
standards, those formats that have
Digital Audio Compression either 720 or 1080 lines of vertical
Standard (AC-3, E-AC-3) Revision B resolution.
www.atsc.org/standards/a_52b.pdf
MPEG :Motion Picture Experts Group
“Effects of Audio-Video — Standard for transmitting
Asynchrony on Viewer’s Memory, compressed audio and video.
Evaluation of Content
and Detection Ability” NTSC: National Television System
by Reeves and Voelker Committee — The organization
www.lipfix.com/file/doc/reeves_ and name of the analog television
and_voelker_paper.pdf standard currently used in the US.
February 2008 65
Electronet Feb08.qxd 1/10/2008 11:58 AM Page 66

g o t o w w w. n u t s vo l t s . c o m c l i ck E l e c t ro - N e t

AM/FM Broadcasters • Hobby Kits


Learnng Kits • Test Equipment
...AND LOTS OF NEAT STUFF!

Hobby Engineering
Kits, Parts, Tools and Books
www.HobbyEngineering.com

66 February 2008
Hiscocks.qxd 1/8/2008 8:31 AM Page 67

Low-Cost
Curve Tracer
Uses PC-Based Scope
by Peter D. Hiscocks and James Gaston

There are times when it’s extremely useful to


know the voltage-current characteristic of a
semiconductor device. Perhaps you’re matching
two transistors or you need to determine the
characteristic of some unknown surplus transistor.

M
I
any of us grew up with
t’s possible to obtain a VI plot The autotransformer provides
by hand with an ammeter, volt- an adjustable source of AC volt-
oscilloscopes that included
meter, and adjustable power age. The 25V transformer isolates the display and controls in one
source — and lots of patience. It is this voltage from ground and steps stand-alone box. Times do change
much more convenient to display it down to a more manageable and so does technology.
the complete curve in an value. The secondary of the trans-
automated measurement using an former is floating so the ground Today’s newest oscilloscope is a
instrument called a curve tracer. point of the oscilloscope can be PDA-size unit that captures the
On a curve tracer display, a established at the junction of the signals and then ships them off via a
resistor appears as a straight line resistor and diode under test. USB port for processing and display
with slope inversely proportional Channel A of the scope reads on a desktop computer or on a
to resistance. A diode shows no the voltage across the device (X laptop if you are immersed in field
current in the reverse direction axis on the curve tracer) and servicing. PC-based scopes even take
and substantial current in the Channel B reads a voltage which is their power from the USB connection.
forward direction. Figure 1 shows proportional to the current
an example. through the device (Y axis). The
Like all digital scopes, PC scopes
Curve tracers are available Channel B voltage is negative, so
can capture transients pre or post
from various manufacturers as an we invert the polarity to obtain a
integrated instrument which display where voltage increases to trigger. They provide zoom analysis
includes the power supplies, the right. and can store the display for later
switches, and X-Y display (see The demonstration circuit processing. The software runs on
Resources). They’re convenient to uses a 300Ω, two watt resistor. A the PC host, permitting special
use but they are expensive and peak of 20 volts across 300Ω math operations and digital
take up significant bench space. corresponds to 66 mA peak signal processing. What’s more,
For an occasional simple measure- current which is suitable for low the PC adds potential for color
ment or when constrained by current testing of diodes and printing, annotating diagrams, and
modest finances, it is possible to other components. (A choice of immediate sending by email.
create a curve tracer using the XY resistance such as 250Ω or 300Ω
plotting facility of an oscilloscope would yield an integer value for PC scopes come with a formidable
and some simple external circuitry. the current scale.) array of features; in many instances,
Operation is simple: Start comparable to their desktop forbears.
How it Works the autotransformer at zero, then Of course, not all PC scopes
increase the setting. The voltage/
are equal. For a comprehensive
Figure 2 shows the circuit of a current curve should appear
simple curve tracer. In this — hopefully without cooking
look at pros and cons, download
diagram, the device under test the DUT. our white paper: How to Select a
(DUT) is a diode, but it could be You could simplify further, by PC-Based Scope at www.syscomp
any two-terminal component. eliminating the autotransformer design.com/scope-specs.pdf.
February 2008 67
Hiscocks.qxd 1/8/2008 8:35 AM Page 68

(a) (b)

FIGURE 1. Small Signal Diodes. The horizontal scale is simply the setting of Channel A: 200 mV/div.
The vertical scale is the setting of Channel B divided by the series resistance, 300Ω, that is,
5V/300Ω = 16.6 mA/div; (a) silicon diode 1N4148; (b) point contact diode.

and plugging the transformer directly device under test and there might be signs of stress in the device, so it’s a
into the AC line. An adjustable power fireworks if the test voltage exceeds worthwhile investment.
resistor could then control the peak the device rating. The autotransformer For a lower-cost version, one
current in the DUT. However, this allows the voltage and current to be could use a transformer with multiple
arrangement applies full voltage to the increased gradually while watching for secondary taps to replace both the
autotransformer and the step-down
FIGURE 2. Diode Curve Tracer. transformer, and use a switch to select
the desired voltage. This is the
Scope
approach used in the unit designed by
Craig Taylor (see Resources).
Ch A

DUT Small Signal Diodes

Common
Figure 1 shows screenshots of the
Syscomp DSO-101 PC oscilloscope
R functioning as the display in Figure 2,
300 ohm
Autotransformer Transformer 2W
to compare two small signal diodes.
(Variac) Ch B Figure 1a is a 1N4148 silicon diode
25V, 1A
with a threshold voltage of approxi-

FIGURE 3. Junction Transistor Measurement.

1N4148 Scope

Rb
Ch A
100K
DUT

Common

R
300 ohm
Autotransformer Transformer 2W
(Variac) Ch B
25V, 1A

68 February 2008
Hiscocks.qxd 1/8/2008 8:35 AM Page 69

mately 0.6 volts. Figure 1b shows X


(a) X
(b)
an unknown type of point-contact
diode with a threshold voltage
of about 0.2 volts, which is
characteristic of germanium.
Notice that the voltage across the
germanium diode approaches
that of the silicon device at higher AB AB
T T
current.

Junction Transistor,
Variable Base Current
For a bipolar junction transis-
tor (BJT), the most useful display is XY Mode Triggered XY Mode Triggered
a plot of collector current vs.
collector voltage at various values X
(c) X
(d)
of base current. So, the curve
tracer circuit requires some
method to inject current into the
base terminal.
The current gain of the tran-
sistor (beta, or hFE) is the ratio of
collector current to base current. AB AB
T T
Figure 3 shows the measurement
arrangement. An adjustable DC
power supply drives base current
through resistor Rb and
around the base-emitter loop. The
transistor base current is
determined by the setting of the XY Mode Triggered XY Mode Triggered

DC supply. (I used a lab DC FIGURE 4. BJT, Variable Base Current: X axis VCE 5V/div; Y axis IC 3 mA/div;
power supply for this. You could (a) Ib = 22μA; (b) Ib = 45μA; (c) Ib = 66μA; (d) Ib = 88μA.
also use a battery or a wall wart
DC supply with a potentiometer The current gain β of the BJT can • Syscomp PC oscilloscope hardware
across it to vary the output voltage.) be determined by the relative change
Figure 4 shows the collector in collector current per unit change in • Laptop computer
curve at various values of base base current:
current. FIGURE 5. BJT Saturation Region: X axis
As the base current IB increases, I C VCE 200 mV/div; Y axis IC 6.6 mA/div.
=
the collector current IC increases I B T1 T2 X
proportionally. Notice how the slope
of the VCE,IC characteristic increases at
greater collector current. This indicates
that the incremental output resistance Equipment Setup
ro is decreasing. (It is possible to VA1
modify the scope software so that Figure 6 shows the
VA2
each curve can be caught and frozen equipment setup. From left
on the display. This would then show to right: AB
the collector characteristic at various T
VB1
base currents, on one graph — which is • Autotransformer for
the traditional method of displaying a adjustment of line voltage VB2
transistor collector characteristic.)
Figure 5 confirms this with an •117 VAC to 24V trans-
expanded view of the BJT saturation former for isolation
region. The BJT requires VCE to be
at least 200 mV to enter its constant • Device under test (lamp)
XY Mode Triggered
current region. and current sensing resistor
February 2008 69
Hiscocks.qxd 1/10/2008 2:55 PM Page 70

RESOURCES
SYSCOMP DSO-101 PC-BASED VI CURVE TRACER
OSCILLOSCOPE Charles Wenzel
www.syscompdesign.com www.techlib.com/electronics/
The oscilloscope used in this curvetrace.html
project. A simple curve tracer using
a tapped transformer in place
LOW-COST CURVE TRACER
of the variac and step-down
USES PC-BASED SCOPE
transformer.
www.syscompdesign.com/
tech.htm
An extended version of A LOW-COST AUTOMATIC
this article, showing other CURVE TRACER
device curves. George R. Steber
QST Magazine, July 2006
http://pcbunn.cithep.caltech. www.arrl.org/qst/2006/07/
edu/jjb/Tektronix/tektronix.htm steber.pdf FIGURE 6. Equipment Setup.
The classic Tektronix 575 A small-signal curve tracer
curve tracer. that uses the PC sound card.
dif ferent scope is convenient to use as a display
semicon- in this application. In addition to X-Y
The autotransformer in this setup ductor characteristic curves with the mode, the software supports saving a
is much larger than necessary. For low simple equipment setup shown in this screenshot or plot for incorporation
currents, a sine wave signal generator article. Different measurements into a document.
could be used instead. require different circuits, but the This curve tracer circuit was used
wiring is simple and the cost is to produce small currents and
Summary negligible compared to a commercial voltages, but it would be simple to
curve tracer. extend the circuit to large currents
It’s possible to measure many The Syscomp DSO-101 oscillo- and voltages. NV

Metal Fabrication
1-2 Day Lead Times Available

Both of these parts


were ordered on Tuesday
and shipped FedEx on
Wednesday

Materials from 0.001” to 6.000” in


thickness.
Parts from practically any material.

* Quick
* Affordable Complete Fabrication Center
Integrated Ideas & Technologies, Inc.
* Precise Precision Laser, Waterjet, Plasma, Machining,
Forming, and Welding Capabilities
* No Minimums 3896 N. Schreiber Way • Coeur d’Alene, ID • 83815-8362 • USA
Ph (208) 665-2166 • Fax (208) 665-5906 • www.iitmetalfab.com

70 February 2008
Full Page.qxd 1/7/2008 1:24 PM Page 71

ALL
QUALITY Parts
FAST Shipping

ELECTRONICS
DISCOUNT Pricing
CALL, WRITE, FAX or E-MAIL
for a FREE 96 page catalog.
C O R P O R A T I O N Outside the U.S.A. send $3.00 postage.

12 VAC 0.33A 6-CHANNEL TRANSMITTER SOLDERLESS BREADBOARD


WALL TRANSFORMER AND RECEIVER Design and change
Input: 120Vac, Vex # 276-2153. Transmitter circuits quickly and
60Hz 6W. and receiver for remote cleanly. Accommodate
Output: control of robotics all sizes of dips and
12VAC 0.33A. servos. Designed discrete components
6' cord with coax as an add-on kit to with lead diameters up
power plug, allow two human to 0.032". Interconnect
2.1mm id, 5.5mm od. operators to control with solid hook-up wire
Class 2 Transformer. UL different aspects of (#22 AWG recommend-
CAT# ACTX-1234 the same robot, it ed). Wires and com-

100 for $2.00 each 2


$ 75
each
can also be used as
the primary control
(see note below).
ponents can be used
and re-used many
times without damage to board or compo-
CARRYING CASE WITH FOAM 6 channels (4 analog and 2 digital). Two joy- nents. 400 tie points. 300 contacts on main
sticks, each with an X and Y axis, control the board and 50 contacts on each of two power
INSERT analog channels 1-4. Momentary switches on distribution strips. Distribution strips are

4
$ 00
Tough, break- the front and back operate the two digital removable.
resistant plastic channels. Operates on Channel 89 CAT# PB-400
carrying case (75.970MHz). Includes transmitter and receiv-
each
with foam er with crystals for Channel 89, receiver
insert. Great antenna and sleeve holder for antenna and 4.7 FARAD, 2.5 VOLT
for tools, interconnect cable between RF receiver mod- MEMORY DYNACAP
cameras, ule and microcontroller. Transmitter operates
High-capacitance. Slowly releases charge
test-equipment, on eight AA batteries or one 9.6V battery
to provide back-up power in temporary
audio equip- pack. Batteries not included.
shut-down situations. 0.50" dia. x
ment. Semi-
1.26" high. Leads on 0.2" centers.
clear plastic. Overall interior space approxi- Note: To use this transmitter as a primary
CAT# CBC-18
mately 13.25" x 7.5" x 3". Good-quality plastic
hinges and Slide-locks with holes for padlock.
Foam insert fills the width and length of the
control, it is necessary to use a micro con-
troller module to split and amplify the
received signal into six individual channels.
100 for $3.00 each $ 853
each
interior, leaving about 0.5" of space under the See PDF spec sheet on our website for a
cover. The foam has three 1" deep cutouts schematic for this mod, provided 12VDC 3.33A SWITCHING
6.25" x 3", 4.62" x 3.33" and 10.25" x 1.92".
The long cutout has a matching 0.45" thick
foam strip.
by one of our customers.
CAT# JS-6 $ 29 95 POWER SUPPLY
each Hipro # HP-O2040D43
CAT# CSE-65 $ 5 85
each SHINY METAL MIRROR
4.36" x 2.15" x
Input: 100-240Vac
Output: 12Vdc 3.33A
Table-top style
7-SEGMENT DISPLAY 0.03" thick. Shiny, switching power
reflective metal supply. 5 ft output
Fairchild # MAN71A. 0.3" high cord with ferrite bead
mirror. An auto-
red character with decimal point. for EMI suppression. Terminated
mobile visor, or
DIP package fits 14-pin DIP socket. with 2.5mm coax power plug,
towel dispenser mirror.
Common anode. Large quantity available. center positive. Includes three-prong IEC
A nice piece of plated metal.
CAT# SDA-71 May have decorative application. detachable power cord. UL, CE.

35 ¢
each
25 for 30¢ each
100 for 25¢ each
CAT# MIR-22
100 for 15¢ each 5 for $ 00 1
CAT# PS-1233
10 for $15.25 each $ 1575each

Shop ON-LINE www.allelectronics.com


ORDER TOLL FREE 1-800-826-5432
MAIL ORDERS TO: FAX (818) 781-2653 • INFO (818) 904-0524
ALL ELECTRONICS CORP.
14928 OXNARD ST., VAN NUYS, CA 91411-2610 E-MAIL allcorp@allcorp.com
NO MINIMUM ORDER • All Orders Can Be Charged to Visa, Mastercard, American Express or Discover • Checks and Money Orders Accepted by Mail •
Orders Delivered in the State of California must include California State Sales Tax • NO C.O.D • Shipping and Handling $7.00 for the 48 Continental United
States - ALL OTHERS including Alaska, Hawaii, P.R. and Canada Must Pay Full Shipping • Quantities Limited • Prices Subject to change without notice.

MANUFACTURERS - We Purchase EXCESS INVENTORIES... Call, Write, E-MAIL or Fax YOUR LIST.
February 2008 71
Cicchinelli.qxd 1/10/2008 1:04 PM Page 72

A2DSignalProcessing
● by Larry Cicchinelli

O ne of the limitations of many low cost, single


supply, analog-to-digital (A/D) converter ICs
today is that they have a limited input voltage
range. This article discusses various ways
to implement input processing to allow these
devices to operate in the real world. I use the
ADS7870 as an example A/D, but the equations
and samples are generic enough so that you can
configure the circuits for other devices.

The ADS7870 has three possible and has 11 bit resolution. adequate. By rearranging the equation
internal voltage reference values. We When used in its differential in the figure and specifying the
will assume that the 2.048V reference mode, the useful input voltage range required input resistance, you can
has been selected and that its increases to -Vref to Vref – 1 LSB (rel- determine the value for R2:
programmable gain amplifier is set to ative to the + input) and therefore has
1.0. When used in its single ended 12 bits of resolution where the MSB R2 = Vout * R1 / (Vin - Vout)
mode, the A/D then has a useful input becomes the sign bit. However, the
voltage range of 0 volts to Vref – 1 LSB input voltage must always be positive. If R1 = 100K and Vin = 10V when
Some A/Ds have an input Vout = 2.048V, then R2 = 25.7K
voltage limit of 2*Vref, so be Just as a practical matter it would
Vout = Vin * R2 / (R1+R2) sure to keep that in mind when be a good idea to use a slightly higher
R1
Vin
determining the maximum value as the maximum for Vin just
input voltage. to insure that you have some
For the circuits in Figures 1 “headroom.” If we use 10 volts as
and 2, the value of R2 should the actual maximum Vin, the scale

R2 be adjusted based on the


input resistance of the A/D.
factor for converting from A/D
counts to volts is 10/2047 =
However, if the calculated 4.8851mV/count (2047 is the maxi-
value is much greater than the mum count value for an 11 bit
Ground A/D resistance, then simple device). This can be used but is
FIGURE 1 calibration should be all that somewhat awkward. It also does not
is required. allow for headroom. A better solution
The simplest is to round up the value calculated

R1
Vin Vout = ((Vin - Vref ) * R2/(R1+R2)) + Vref form of scaling only above to 5 mV. This yields a maximum
works for unipolar input voltage value of 10.235 volts.
inputs and is a The applied voltage can be
voltage divider (see calculated from the count value as
Figure 1). If your measured by the A/D:
R2 system only needs to
measure between 0 Vin = Count * .005
volts and some posi-
tive voltage greater This is similar to the circuit in
than the reference, Figure 1 except that it allows you to
FIGURE 2
Vref
then this might be measure bipolar voltages.
72 February 2008
Cicchinelli.qxd 1/10/2008 1:04 PM Page 73

A 2 D S i g n a l P r o c e s s i n g
You can see that if Vref = 0, the Let Vin = -10v: function similar to that in Figure 2, as we
equation reduces to the same as in Vout = (-10-1.111)*11.1K/ did previously, but with higher input
Figure 1. Solving the equation for the (100K+11.1K) + 1.111 resistance. The easiest place to start is to
reference voltage yields: Vref = Vout = -11.111 * .1 + 1.111 = determine the ratio of the input and
Vout(R1+R2)/R1 – Vin*R2/R1. 0.0001 output voltages. This will determine the
“Now what?” you may ask. The ratio of R1 and R2. If you need an input
next step is to set Vout = 0 (because Without roundoff errors, voltage range of -10V to +10V and an
the minimum input voltage to the A/D the results are exactly 2.0 and 0.0, output voltage range of 0V to +2.048V,
must be 0V) and see what happens: respectively. the ratio is 20/2.048. The calculations
Vref = -Vin*R2/R1. If we assume that will be easier if the input voltage range is
the largest negative input voltage will Op-amp Discussion for A/D expanded to: -10.24V to +10.24V. This
yield Vout = 0, then Vref must be Converter Scaling yields a ratio of 20.48/2.048 = 10.0, as
positive. Substituting -10 in the above well as giving the circuit some headroom.
equation yields: Vref = 10*R2/R1. Now let’s look at the circuit in The voltage values used to
Now let’s set Vout = 2.0V, a little Figure 3. It is based on the following calibrate any of the above systems can
below the maximum allowed by the characteristics of an ideal operational be chosen approximately as:
A/D converter. This will be achieved amplifier:
when Vin = 10V. The equation Vmincal = Vmin + Vspan/20
becomes: Vref = 2*(R1+R2)/R1 – 1) Infinite input resistance Vmaxcal = Vmax – Vspan/20
10*R2/R1.
We now have two equations with 2) 0 volts between the two inputs – in This enables calibration at the 5%
three unknowns. We should now pick a properly configured circuit and 95% points. It is not a good idea
a value for R1 since it is the major to calibrate at the endpoints since
contributor to the input resistance. As 3) 0 ohms output resistance your applied voltage may be slightly
in the first example, let’s make it 100K. outside the measurable range.
The two equations become: Since the input resistance is
infinite, there is no current flow into Where:
Vref = 10*R2/100K and the inverting input; therefore, I1
Vref = 2*(100K+R2)/100K – across R1 must equal I2 across R2. Vmincal = the minimum applied
10*R2/100K Also, the voltage being forced on the calibration voltage
positive input will be present at
This allows us to solve for R2 the inverting input. These two charac- Vmin = minimum allowed input
since: teristics result in Formula (1). voltage

10*R2/100K = 2*(100K+R2)/100K – (1): (Vin – Vref)/R1 = (Vref-Vout)/R2 Vmaxcal = the mamimum applied
10*R2/100K calibration voltage
Rearranging the formula allows
which reduces to: R2 = 200K/18 = you to solve for Vout in terms of Vin Vmax = maximum allowed input
11.1K. If you want to be really and Vref: voltage
exact, the value of R2 should take
into account the input resistance of (2): (Vin – Vref)(R2/R1) = Vref–Vout Vspan = Vmax- Vmin NV
the A/D. Although the error incurred
by not including the input resistance (2a): Vout = Vref – I1 I2
can be compensated by properly (R2/R1)(Vin – Vref)

R1 R2
calibrating the system. Vin
Now we can solve for Vref: (2b): Vout = Vref(1 +
10*11.11K/100K = 1.111V. R2/R1) – Vin(R2/R)
To check, we can substitute an
input voltage back into the equation IMPORTANT: Since
of Figure 2: Vin is applied to the
negative input, Vout(min) - Vout
Let Vin = 10v: occurs at Vin(max). Vref
Vout = (10-1.111)*11.1K/
+
(100K+11.1K) + 1.111 This circuit may be
Vout = 8.889 * .1 + 1.111 = 1.999 used to implement a FIGURE 3
February 2008 73
PicaxePrimer.qxd 1/9/2008 4:24 PM Page 74

■ BY RON HACKETT
PICAXE PRIMER
SHARPENING YOUR TOOLS OF CREATIVITY

PLAYING MUSIC AND WATCHING LIGHTS


IN THE FIRST INSTALLMENT OF THE PICAXE PRIMER, we took a look at the
08M’s music making capabilities and used the super simple “play” command
to play “Rudolph the Red-Nosed Reindeer.” This month, we’ll expand our
repertoire by exploring the “tune” command, which will enable us to play
any tune we choose. As I mentioned last time, there are nearly 1,000 tunes
available for free downloading at the Revolution Education website (www.
rev-ed.co.uk/picaxe/).

H opefully, you have already visited


RevEd and downloaded all the avail-
able tunes. If not, now is the time! Just
program; ringtone files, on the other
hand, require a conversion process
that utilizes the Programming Editor’s
do, however, I have a couple of
cautions to mention.
First, music data is fairly memory-
go to the RevEd software page and scroll “Tune Wizard,” which is a much more intensive; it doesn’t take long to fill up
down to the “Additional Resources” involved process. Also, the majority of the 08M’s 256-byte program memory.
section near the bottom of the page. You the RevEd ringtone files have already Three or four tune files is the most that
will find five zipped files containing the been converted to tunes and also an 08M can store. Also, as I explored
tunes. In addition to tunes, the 08M can appear in the tune folders. the contents of the zip files, I made
play any monophonic ringtone in RTTTL For these reasons, we will focus on two important discoveries. First, these
format (the kind used on most Nokia the tune files. Later, if you want, you files were evidently “composed” and
cell phones). The Additional Resources can explore the ringtone conversion contributed by people with a wide
section of the RevEd software page also process. Be sure to read the documen- range of musical talent — some of
contains two zipped ringtone files, as tation on the tune command (especial- them don’t sound quite the way they
well as links to websites where you can ly the section on the Tune Wizard) in should, and I think this is a composer-
download more free ringtones. Part 2 of the PICAXE manual. related issue more than a PICAXE
Downloading a tune file to a issue. (I hope I put that tactfully!)
PICAXE chip is a simple matter of
copying and pasting the tune into your
TUNE FILES Secondly, when it comes to popular
culture, I am definitely what you would
Working with call “challenged,” so I couldn’t even tell
'==== Davey.bas ======== 2007.12.10 ======== Ron Hackett ==== tune files isn’t quite whether many of the songs sounded the
' This program runs on a PICAXE-08M processor. It plays as simple as playing way they should. One of the songs in
' "Davey Crockett" and alternately blinks LEDs on outputs “Rudolph,” but it’s the second zip file that did sound
' 0 & 4 (pins 7 & 3) in time with the music.
still fairly easy. All reasonably good to me was “Davey
'==== Directives ==== we need to do is Crockett” (see what I mean about being
#com 1 ' specify correct com port unzip RevEd’s tune culturally challenged?), so let’s use that
#picaxe 08M ' specify which PICAXE chip
files, copy the tune one for our first tune program.
we want from Once you have unzipped the sec-
'==== Begin Main Program ====================================
one of the folders to ond folder of tunes, all you need to do
main: ' "Davy Crockett" tune from RevEd tune files the clipboard, paste is double-click on the Davey Crockett
tune 3, 5, ($25,$65,$67,$69,$67,$65,$60,$22,$25,$E0,$25,$27, it into our own file. It’s just a text file, so it should open
$29,$67,$65,$27,$67,$69,$E7,$20,$60,$60,$25,$60,$60,$22,$62,
$62,$E7,$24,$64,$64,$24,$64,$62,$20,$62,$64,$E5,$29,$C0,$02, program, and down- in the NotePad accessory. Next, “select
$42,$40,$29,$60,$60,$60,$60,$24,$27,$E5,$2C,$29,$C0,$02,$42, load the program to all” and copy the contents of the file to
$40,$29,$60, $60,$60,$60,$24,$27,$E5)
the 08M. Before we the clipboard. Finally, run the PICAXE
wait 2 ' 2 second delay between repetitions Programming Editor, create a simple
■ FIGURE 1. Basic
goto main ' do it again, forever program to play
program, and paste the contents of the
' or until you can't stand it any more! clipboard into your program. At this
“Davey Crockett.”
74 February 2008
PicaxePrimer.qxd 1/10/2008 2:41 PM Page 75

PICAXE PRIMER

point, another note of caution is in ringtone files to tune files. If you run ■ FIGURE 2.
order — music files usually create very into trouble, let me know and I will see PNA4602M IR
long lines in your program. Don’t try to if I can help. If you have some musical receiver pinout.
break up these long lines by inserting a background, it’s also possible to use the Sony signals.
“return” character — it will confuse the the tune documentation to compose Over the years, I
Programming Editor. If you want to entire melodies of your own. If you are have collected six
break up a line, insert a “space” successful in doing so and would like or seven universal
character instead — that way, the editor to be “published,” I would be happy to remotes; when set up
will interpret the music data correctly. post your tune on my website. to send signals to a
Figure 1 presents the final program Sony TV, they all
file formatted with a couple of extra
spaces in the long line. I also made one
INFRARED function perfectly
with the IR project
minor change to RevEd’s file. The first COMMUNICATION we are about to dis-
parameter of the tune command cuss. So, just about
determines whether the LEDs will blink At this point, we’re going to shift any universal remote
as they did with Rudolph (again, see gears to take a brief look at the 08M’s should work fine —
the documentation). I changed the IR capabilities. Almost all PICAXE chips just be sure you pro-
parameter’s value from zero to three — including the 08M — have powerful gram your remote
so the LEDs will blink. built-in commands for IR input and with the correct code
When you have completed edit- output. Let’s begin with IR input. for transmitting Sony
ing your program, download it to the There are actually three IR input TV signals.
same 08M circuit we used last time (in commands: infrain, infrain2, and irin. The 08M uses
the December ‘07 issue of N&V) to Each of these commands functions with the infrain2 com-
play Rudolph — Davey Crockett will a different subset of PICAXE processors. mand, so that’s the
play repetitively. When you have had There are some significant differences one we’ll focus on. The SIRC protocol
enough, powering down your 08M between the three IR input commands (and many others, as well) transmits its
circuit will silence Davey. (again, refer to the documentation for data by modulating a 38 kHz carrier
You may want to take some time details), but all three of them are able to wave, so it is necessary to demodulate
to experiment with some of the other decode IR signals from any TV remote this wave to extract the useful infor-
tune files to see how they sound. capable of transmitting the SIRC (Sony mation on the receiving end of the IR
Whenever you want, you can also InfraRed Control) protocol, which not link. Fortunately, there are several inte-
read the tune command documenta- only includes all Sony IR remotes but also grated IR decoder units on the market.
tion and try your hand at converting any universal remote capable of sending We will be using the Panasonic

R1 180
1
6
serout
2 +5 V 1 8 Gnd
7 R2 22K
RS-232 serin
3 2
(DB-9) PICAXE 7
8
4 08M
3 6
9 IRin
5 4 5 R5
R3 R4
C1
+
D1
10K BAT85 330 10 μF 330

+5V
PNA4602M 40 or 80 ohm
Speaker
D2 D3
Green Red
■ FIGURE 3.
IR receiver
schematic.
February 2008 75
PicaxePrimer.qxd 1/9/2008 4:26 PM Page 76

■ FIGURE 4. IR receiver receive an SIRC signal, it automatically


breadboard circuitry. decodes it and stores the resulting
The only other circuitry we’re value in a special variable named infra,
adding is an additional (red) LED which is actually another name for one
and current-limiting resistor on of the PICAXE standard byte variables,
the 08M’s output 1 (external pin namely b13. As a result, in any program
7). As usual, you can’t see the that includes IR signal reception, it is
current-limiting resistor in Figure 4 important to not use b13 for any other
because it’s integrated into the purpose — to do so will almost certain-
LEDs that I used (see Sources). ly cause the program to malfunction.
Before we discuss the soft- The second column of Figure 5
ware that accompanies our IR cir- presents the infra values resulting from
PNA4602M unit because it’s readily cuit, it’s important to understand how the various key presses on a TV IR remote
available (see the Sources sidebar) and infrain2 command functions. Whenever when the SIRC protocol is enabled. As
it requires no additional external an infrain2 command is executed in a you can see, the digits one through
circuitry. The connections couldn’t be program, the program pauses and waits nine unfortunately each return a value
simpler (see Figure 2): pin 1 (V-out) for the reception of an IR signal. There that is one less than the original digit’s
connects directly to the IR input pin of is no time-out feature for the infrain2 value. To correct this situation, the third
the 08M (input 3, external pin 4); pin command; if no IR signal is received, the column in Figure 5 simply adds 1 to
2 is ground; and pin 3 is +5V. The 08M program will be stalled forever at the each value of infra, so that the values
circuit for IR reception is presented in location of the infrain2 command! for the digits 1 through 9 match the
Figure 3, and a photo of the bread- The usual way to get around this corresponding digit, which is what we
board circuitry is shown in Figure 4. issue is to include interrupts in the will do in our IR program.
The first thing you will notice is program (see the documentation on
that the circuit includes all the music
circuitry that we have been working
the setint command). However, this
can quickly get complicated and diffi-
THE PICAXE DEBUG
with up to this point. Of course, this is cult to manage. My experience is that COMMAND
not at all necessary for IR reception, it’s much simpler to dedicate an 08M
but I have left it in because we will to the single process of receiving IR At this point, we could probably
find a use for it later in this column. signals and relaying them to a second jump directly to our first IR reception
We will also be using one of the two processor via a serial link. That way, program without discussing the debug
LEDs from our music circuit. It’s the one the second (master) processor is free command because our program is a
attached to output 4 (external pin 3) of to carry out a variety of tasks without simple one and is not likely to require
the 08M. In the music circuit, the LED’s being tied up waiting for IR signals. debugging. However, I think it’s a
color didn’t matter, but for our IR explo- When the infrain2 command does good idea to explore the debug
rations, make sure it’s a green LED — we command in advance of actually
will see why that’s important shortly. having a problem. That way, you will
be prepared to effectively deal with
■ FIGURE 5. Infra values returned program bugs when they do occur.
by infrain2 command. Whenever a PICAXE program
TV Remote Infra Infra encounters a debug command, it uses
Control Ke Value Value + 1 the PC programming connection to
1 0 1 serially transmit the current value of all
2 1 2 variables to a special window in the
3 2 3 Programming Editor called the Debug
4 3 4 Window (see Figure 6). This is a fairly
5 4 5 large amount of data, so each debug
6 5 6 command can significantly slow down
7 6 7 the running of a program. Of course,
8 7 8 once the program is functioning
9 8 9 correctly you can remove all the
0 9 10 debug commands.
Channel + 16 17 There are a couple of points worth
Channel - 17 18 noting about the Debug Window in
Volume + 18 19 Figure 6. The first column lists all of the
Volume - 19 20 PICAXE standard variables, as well as
Mute 20 21
Powe 21 22
■ FIGURE 6. PICAXE Debug Window.
76 February 2008
PicaxePrimer.qxd 1/9/2008 4:26 PM Page 77

PICAXE PRIMER

pins and dirs, which are two Special ■ FIGURE 7.


Function Variables. There isn’t enough Infrain2Debug '' === Infrain2Debug ======== 2007.11.28 ======== Ron Hackett ===
space to discuss them this month, but Basic program. ' This program runs on a PICaxe-08M, decodes the Sony SIRC
' protocol and displays results in the PICAXE Debug Window.
you may want to read the documenta- in the b13 row
tion on Special Function variables in of the Debug ' === Directives ===========
Part 2 of the manual because they can Window. If it does- #com 1 ' specify com port
#picaxe 08M ' specify PICAXE chip
be very useful in a program. n’t, check your
The remaining 14 entries in column program for typos
' === Begin Main Program =======================================
one (b0, … b13) are the regular byte and/or logic errors,
variables and, if you click on the button and try again. You main: infrain2 ' wait here for infra-red signal
displaying the “>>” symbol, the Debug will also see the infra =infra + 1 ' add 1 (so digits & values match)
Window expands to show the seven LED on output debug ' display results in debug window
word-variable equivalents for the 14 byte 0 flickering after
goto main ' do it again, forever
variables. (If all this is confusing, reading each key-press on
the section on General Variables in the the remote. This is
manual should clarify things.) because output 0 is also the Serout can function independently of the PC.
The remaining four columns connection to the PC. The data being In order for it to do so, we’ll use a code
display the value of each variable in sent is what causes the flickering. that we can output to the red LED on
decimal, hexadecimal, binary, and output 0 (pin 7) and the green LED on
ASCII values, in that order. Only
printable ASCII values are displayed
DISPENSING WITH output 4 (pin 3) of the 08M. The code
I used is very simple; each red flash
and all values below decimal 33 are DEBUG equals five and each green flash equals
non-printable, so the fourth column in one. For example, if the “8” key is
Figure 6 just displays elipses. Once you have the above pressed on the remote, you should see
Finally, the number in parentheses program working correctly, the debug one red and three green flashes. The
at the top of the window (after command has done its job and we’re main loop of the program (see Figure
Debug) indicates how many times a ready to re-write our program so that it 8) merely waits for an incoming IR
debug command has been executed
since the program started. ' === Infrain2Demo ======== 2007.11.28 ======== Ron Hackett ===
'
Our first IR reception program ' This program runs on a PICaxe-08M, decodes the Sony SIRC
(shown in Figure 7) demonstrates ' protocol and displays results using a simple 2-LED code.
how the debug command functions.
Essentially, the program consists of three ' === Constants ============
symbol LEDred = 0 ' red LED on output0 (pin 7)
commands in the main loop: infrain2, symbol LEDgrn = 4 ' green LED on output4 (pin 3)
which waits for an incoming IR signal and
then decodes it; infra = infra +1, which ' === Variables ============
symbol red = b0 ' used to store # of red blinks
adds 1 to each value of infra so that the symbol grn = b1 ' used to store # of green blinks
values for the digits 1 through 9 match
the corresponding digit as discussed ' === Directives ===========
above; and debug, which transmits the #com 1 ' specify com port
#picaxe 08M ' specify PICAXE chip
received infra value back to the Debug
Window on the PC, along with all the ' === Begin Main Program ======================================
other variables that we haven’t imple-
main: infrain2 ' wait here for infra-red input
mented at all (so their values are all 0). infra = infra + 1 ' add 1 so digits correspond
Type the program in Figure 7 into
red = infra / 5 ' compute # of red blinks
the Programming Editor and give it a grn = infra //5 ' compute # of green blinks
try. If you are using a universal TV
do while red > 0 ' do red blinks
remote, be sure you have entered the high LEDred
appropriate code to enable the SIRC pause 100
low LEDred
signals. If it’s a multi-device remote, pause 300
also press the TV key to be sure you red = red - 1
loop
are transmitting the TV codes.
do while grn > 0 ' do green blinks
Once the program is running, press high LEDgrn
a key on the remote. Each time you do pause 100
low LEDgrn
so, the adjusted infra value (as per the pause 300
third column of Figure 5) should appear grn = grn - 1
loop
■ FIGURE 8. Infrain2Demo goto main ' do it again, forever
Basic program.
February 2008 77
PicaxePrimer.qxd 1/9/2008 4:27 PM Page 78

signal and then implements our code a division and // returns the remainder. at the correct point in the count-down.
to flash the two LEDs to indicate the For example, 8 / 5 = 1 and 8 // 5 =
value of the received signal.
In order to understand how the pro-
3, because five divides into eight once
with a remainder of three. The program
PROGRAMMING
gram in Figure 8 functions, we need to uses these two operators to compute CHALLENGE
be clear about the difference between the red and grn values for each remote
the / and // mathematical operators, key-press and then each do…loop blinks By now, you are probably wonder-
which are discussed under the “let” the LEDs accordingly. I selected the ing why we left the speaker output in
command in the documentation: / is the do…loop structure to implement the our IR circuitry, since we didn’t use it in
standard division operator and // is the LED code because it allows for testing either of our IR programs — well, the
modulus division operator. In other at the beginning of each iteration of the reason is that I have a programming
words, / returns the (integer) quotient of loop, which enables us to exit the loop challenge for you! In the first install-
ment of the Primer, we briefly explored
the four songs that are built into every
08M (the details are in Part 2 of the
What’s the difference? manual under the “play” command).
The challenge is to write a program that
responds to IR input as follows: If the
user presses 0, 1, 2, or 3 on the remote,
the corresponding built-in song will
play; if he or she presses any other key,
an annoying buzzer will sound (see the
“sound” command documentation for
help with this part). See what you can
come up with, and I will post one pos-
sible solution on the PICAXE PrimeD
Blog at www.nutsvolts.com/blogs/
index.php?/site/categories/C18/
before the end of February. Have fun!

ONE FINAL NOTE


That completes our brief introduc-
tion to IR input on the 08M. It’s a very
powerful feature that can be used as
the basis for a remote-controlled
robot, a wireless input device for any
project that requires user input, or
many other projects. Combined with

Price! the infraout command (you probably


know what I will say next — see the
Manual for details!), it can provide a
short-range wireless data link between
two PICAXE projects and/or automat-
You’re correct, the one on the right costs print-advertised price for a product
less because it’s from Jameco! When Jameco offers, just let them know and
ed control of any Sony audio/video
you’re looking to purchase major name they’ll offer that product for 10% less equipment. If you come up with an
brand passives or semiconductors, be than the other company’s price, right interesting application, let me know
sure to check out Jameco first. They also down to Jameco’s cost! Wouldn’t it be about it! You can reach me by email at
offer money-saving generic equivalents worth your time to check out Jameco Ron@JRHackett.net. NV
at about 20% less, so you’ll save even today at www.Jameco.com?
more! And if you should find a lower
• Both Major Name Brands and Generic Products for Additional Savings SOURCES
• Over 99% of Catalog Products are in Stock for Immediate Delivery PICAXE-08M:
www.JRHackett.net; www.phander
• Only Jameco Guarantees the Lowest Prices
son.com; or www.picaxe.co.uk

Click or call today for a FREE Jameco Catalog Visit www.Jameco.com/NVT Five-volt Resistorized LED
& start benefiting from Jameco’s Awesome Prices! Call 1-800-831-4242 Panasonic PNA4602M IR Decoder
www.JRHackett.net
78 February 2008
Page79.qxd 1/10/2008 2:52 PM Page 79

Fax: 631-563-0701 Phone: 1-800-539-7445 Email: sales@exphil.com


Your source of low cost, high value test and measurement equipment!
www.exphil.com Sales Ɣ Calibration Ɣ Refurbished Instruments

GPS Series Power Supplies 6000 Count Autoranging DMM


• Light and Compact Design Features 117 116 115 114
• 0.01% High Regulation
Digits 3 1/2
• Constant Voltage and Constant Current Operation
• Series or Parallel Operation Function Basic DC Accuracy 0.5%
• Remote Control for External Programmable True RMS Reading AC
• Internal Select for Continuous or Dynamic Load
• Overload and Reverse Polarity protection Voltage AC/DC 600 V
Model GPS1830D GPS1850D GPS3030D GPS3030DD Frequency 5 Hz to 50 KHz
Output Volts 0 ~ 18V 0 ~ 18V 0 ~ 30V 0 ~ 30V
Volt Alert Ɣ
Output Amps 0 ~ 3A 0 ~ 5A 0 ~ 3A 0 ~ 3A
Price $179.99 $169.99 $149.99 $129.99
Price $199 $199 $199 $211

TDS1000B/TDS2000B
Series Digital Oscilloscopes 381295 5 MHz
• Removable Data Storage via Front Panel USB host port Dual Channel Multiscope™
• USB plug-and-play PC connectivity • Easy to Use Menu Driven Operation
• Internal or External Triggering
• Direct Print Capability
• Auto or Manual Setup for Horizontal and Vertical
Scaling
Model TDS1001B TDS1002B TDS1012B TDS2002B TDS2004B TDS2012B TDS2014B TDS2022B TDS2024B
• Single Shot Mode
Channels 2 2 2 2 4 2 4 2 4 • Window Freeze Locks Waveform in the Display
• Roll Mode for Slow Repetition Waveforms
Bandwidth 40 MHz 60 MHz 100 MHz 60 MHz 60 MHz 100 MHz 100 MHz 200 MHz 200 MHz • Store and Recall Up to 16 Waveforms and Setups
• Sampling Time: 25MS/s Dual Channel; 50MS/s
Sample Rt 500 MS/s 1.0 GS/s 1.0 GS/s 1.0 GS/s 1.0 GS/s 1.0 GS/s 1.0 GS/s 2.0 GS/s 2.0 GS/s
Single Channel
Price $850 $1020 $1270 $1270 $1530 $1530 $1860 $1860 $2290 • 132 x 128 Pixel Super-Twist Two Level Backlit
Display PRICE: $449.99
Authorized Distributor of:

February 2008 79
OpenComm.qxd 1/8/2008 8:28 AM Page 80

■ BY LOUIS E. FRENZEL W5LEF


OPEN COMMUNICATION
THE LATEST IN NETWORKING AND WIRELESS TECHNOLOGIES

A FEMTO IN YOUR FUTURE?


What the devil is a Femto?
I SUPPOSE IT HAD TO HAPPEN SOONER OR LATER. With indoor cell phone
usage as poor as it often is, it was inevitable that someone would come along
to solve that problem. And here it is — the femto cell. It just could be one of
the next big electronic purchases you make.

A femto cell is a miniature cell phone


basestation designed to operate
inside your home to give you improved
Many people complain about
their bad to worse indoor cellular
coverage, but just remember, these
(10-12). Now, along comes the femto
cell. Femto literally means 10-15 or one
thousandth of a trillionth. Even smaller.
indoor cell phone coverage. Cell phones were not optimized for indoor Femto cells are very small but complete
phones are low power UHF or operation. Yet, that is not how people low power basestations designed to be
microwave two-way radios designed to tend to use them. used in the home.
operate outdoors. Their typical range is It has been estimated that over Figure 1 shows what one looks
a few miles at most and even shorter in 50% of all cell phone calls originate like. It’s like a cable TV set top box or
most cases usually because of environ- from indoors. In fact, some even say a wireless LAN router in size. Your cell
mental limitations. Radio wave propaga- that better than 70% of calls come from phone will talk to it rather than an out-
tion in the UHF and microwave regions inside homes or from office buildings. side basestation when you go to make
is strictly line-of-sight (LOS) and heavily Think about your own cell phone usage. a call. With such close range, your
impacted by obstructions like buildings, Is it mostly indoors or outdoors? In any connection will be sure and good.
trees, mountains, and especially the case, it is amazing that performance is
walls of buildings. Reflections causing
multipath signals are always a problem.
as good as it is. People adapt and move
their positions to optimize the signal
THE BACK HAUL
If you are using your cell phone out- when calling from indoors. They get PROBLEM
side, you have a much better chance of near a window or move around a room
hitting the closest cell site antenna tower until they get one or more “bars” of All basestations have to get
and getting a clean clear signal. But if signal. Or, as a last resort, go outside. connected to the main telephone
you are in an area obstructed by trees or This problem of poor indoor cellu- networks somehow. This is done by
surrounded by tall buildings, cellular lar coverage has been resolved by the their back haul connection. This con-
service could be poor to non-existent. It cell carriers for years by using smaller nection is made in a variety of ways,
is even worse if you are indoors since basestations (cell sites) we call micro or depending upon where the basesta-
the signals are greatly attenuated by pico cells. These compact basestations tion is. The most common connection
walls, ceilings, furniture, and the like. are designed to be installed inside is one or more T1 data lines that all
a building or other public telecommunications companies use.
place. They may sit on top of Recall that these lines carry up to 24
a tall building or be mounted digital voice calls in a time division
on the wall inside an airport. multiplexed mode at a data rate of
Micro means small (10-6) 1.544 Mb/s. Sometimes the back haul
while pico means really small is by a fiber optic cable or by a short
range microwave point-to-point radio.
■ FIGURE 1. Femto cells made In a femto cell, the back haul
by Airvana of Chelmsford, MA. connection is your high speed Internet
It incorporates a 3G radio
transceiver, processor, Ethernet
broadband connection. (See Figure 2.)
interface, and the antenna. That would be a cable TV data service
80 February 2008
OpenComm.qxd 1/8/2008 8:29 AM Page 81

O P E N C O M M U N I C AT I O N

or a DSL line. The femto cell plugs into signal, the faster the data rate. Indianapolis where Sprint is in field
this line and sends the call from you The downside to femtos is the trials with a femto made by Samsung.
phone back to the Internet service potential interference they can cause There are other pockets of tests
provider who sends it through the to nearby standard basestations and to occurring on a small scale to deter-
Internet to your cellular provider. one another. A femto cell is a low mine the problems and the solutions
power radio and its power will be only before large scale deployment; 2008
THE GOOD NEWS AND milliwatts to limit its range to inside the
home. Given the nature of wireless, it
is expected to be a testing year with
potential roll-out in 2009. The activity
THE BAD NEWS is anyone’s guess how far a signal will will vary with the carrier.
travel. A femto cell in one apartment Virtually all femtos are expected to
Femto cells solve the indoor may interfere with the femto in an be 3G basestations. The term 3G refers
performance problem for sure. In fact, adjacent apartment. Or, it could inter- to the third generation of cell phones
it is expected that with great indoor cell fere with a standard basestation only with high speed data service. If you
service, more and more subscribers will blocks away. It remains to be seen. have an AT&T or T-Mobile cell phone,
drop their wired telephone connection. The actual positioning of the femto 3G means a phone that uses wideband
Wired phone subscriptions have been cell is critical to getting optimum code division multiple access
in decline for years and many under 30 coverage from your cell phone but also (WCDMA) possible with the high speed
years of age already rely solely on their critical to minimizing interference with packet access (HSPA) data option. If
cell phone for phone service. those around you. The carriers haven’t your carrier is Verizon, Sprint, or Alltel,
Femtos also solve the capacity completely figured out how to deal with the 3G technology is called cdma2000
problem of some cell sites in a carrier’s that yet, but they are working on it. EV-DO (evolution-data optimized). If
system. Most basestations can only Another issue is the handoff you have an older phone, you will need
handle so many simultaneous calls. This problem. When you move around with to upgrade to use a femto. Not a bad
typically amounts to several hundred your cell phone, you will often go out deal if you really need good indoor
calls depending upon the technology of range from the basestation you coverage and a fast data option.
used and environmental factors. If connected to originally. You will typical- Every carrier is looking into
you try to make a call in a high density ly move into the coverage area of an femtos and there are a dozen or so
population area during a really busy adjacent cell site. The phone system is manufacturers standing by to make
time, you just won’t get any service if designed to seamlessly hand off your them. Will they be a big hit? It is
the cell site is at capacity. That doesn’t connection from one site to another anyone’s guess at this point. It is more
happen too often as most cell phone without you even knowing it. That same a way for your cellular company to get
companies have a sufficient number of arrangement has to be implemented in your money, but in return, you will get
cell sites to handle their subscriber the femtos. If you initiate the call in your even better service, greater reliability,
load. But service denials do occur, dur- home, you will want the call to contin- and higher data speeds.
ing emergencies for examples, when ue as you go outside or get in the car or Watch your local area for the
everyone is trying to call for help or to whatever. And vice versa. If you get out availability in the months to come. NV
check on a friend or family member. of you car and go
The femto cell will help offload inside, the phone must
some of that traffic from existing base switch from the external
stations. That will only occur in cell site to your femto
residential areas where a sufficient without disconnecting
number of subscribers actually go for or other fuss. Not an
the femto service. But overall, it helps easy thing to do, but it is
to minimize the need for extra costly usually part of all cell
standard basestations with their phone technology.
towers and costly land leases, power
consumption, and related expenses.
Femtos are a real plus for the carriers,
WHERE CAN
assuming a critical mass of subscribers. YOU GET A
Femtos should also boost FEMTO CELL?
performance of any cell phone data
service you may have. For example, if In most areas,
you have a high speed data card for femtos are not yet
■ FIGURE 2. Connection
your laptop, it will probably perform available. They are still of the femto cell home
much better on your femto than largely under develop- basestation back to the
with an outside basestation. Data rate ment, test, and study. cellular carrier is via your
usually adjusts automatically to the Two active test areas cable TV or DSL Internet
signal conditions. The stronger the are Denver and service provider.
February 2008 81
DesignCycle.qxd 1/9/2008 4:16 PM Page 82

■ BY FRED EADY
THE DESIGN
ADVANCED TECHNIQUES FOR DESIGN ENGINEERS
CYCLE

INTRODUCING THE 32-BIT PIC!


I CAN STILL REMEMBER FIDDLING WITH MY very first PIC project, which was
based on (at that moment in time) the brand new and unbelievable PIC16C54.
I don’t recall ever complaining about the size of the PIC16C54 SRAM or its 1 μs
instruction cycle time. And, I don’t recall ever filling up a PIC16C54’s program
memory as we all programmed in assembler back then. As time passed, I
quickly “outgrew” the PIC16C54’s limited I/O system (12 I/O lines) and moved
up to using the “bigger” PIC16C55 device (20 I/O lines) in my projects.

M y late friend and mentor, Bill


Green, was deep into embedded
Z80 development at that time. Bill never
one project where I completely filled up
a PIC. Believe it or not, I filled the PIC’s
program memory with assembler code!
history as the Intel 8088 became the
darling of the early IBM personal com-
puters and their clones. Oddly enough,
really liked PICs as he didn’t see how I I guess Microchip wants to keep my 0-1 the inventor of the 4004 eventually left
could do things he was doing with his program memory-filled record intact. I Intel to found Zilog. HMMMM.
Z80s with a PIC that seemed in com- just got my hot little hands on a mem- In 1989, some far-sighted folks
parison to have so few resources. With ber of Microchip’s new 32-bit PIC fami- purchased what is now Microchip from
no disrespect to Zilog and their magnifi- ly and it looks like we will have to do the semiconductor division of General
cent family of Z80 products, back then I some pretty serious coding to exhaust Instruments. The PIC16C5X microcon-
felt that there was nothing I could not its very generous program memory and trollers appeared, followed by the
do with a PIC. Every time I ran up SRAM resources. With that, this month ground-breaking analog-to-digital-
against an application that the current we’ll take a look at the subsystems converter-laden PIC16C71. Tons of
PICs could not easily handle, Microchip that make up the new PIC32MX and eight-bit Microchip PICs are currently
would punch out a more advanced build up some super simple hardware available, ranging from tiny six-pin
part that filled the bill. That trend still to allow you to evaluate Microchip’s devices to 100-pin TQFP parts.
continues to this day. I honestly believe new 32-bit monster microcontroller. We’ve witnessed the introduction of
that Bill would be “PICing and Grinning” Microchip’s 16-bit PIC24 and dsPIC
with the rest of us if he were here today.
I literally wore out a pair of EPROM
4 -> 8 –> 16 -> 32 BITS devices and now we’ve seen Microchip
evolve into the 32-bit PIC32MX family.
erasers during my PIC16C5X period as I Although the PIC is in a microcon- During all of this microprocessor
prototyped all of my PIC projects using troller class of its own, this whole and microcontroller innovation, have
the JW package, which was comprised microcontroller thing actually started you ever considered that the eight bits
of a ceramic body with a quartz win- with a four-bit microprocessor called that we all know as a byte may have
dow over the PIC’s EPROM-based pro- the 4004, which was introduced to us been based on engineers holding up
gram memory innards. These days, you in November of 1971. The Intel 4004 all of their non-thumb fingers? Don’t
can still use the PIC16C54 in a design consists of 2,300 transistors that can think too hard on that last statement
but you won’t have to dust off that old do the job of the 18,000 vacuum tubes and don’t let the 32-bit nature of the
EPROM eraser as the PIC16C54 has found in the very first electronic new PIC intimidate you. After all, we
been replaced with the PIC16F54, computer, the ENIAC. The Intel 4004 all know that the 16-bit concept came
which can zip along at 20 MHz. As for was a member of the MCS-4 family, from counting those eight fingers and
my introduction to Flash program which included a supporting 4001 all of the non-big-toe toes in binary
memory, I saw the writing on the wall ROM-based program memory device, from right to left. And, it’s common
when the PIC16F84 was introduced. I the 4002 RAM device, and 4003 I/O knowledge that a pair of software engi-
hopped on the Flash bandwagon at that port/shift register device. One thou- neers thought up the 32-bit scheme.
time and have never jumped off. sand transistors later, the eight-bit 8008 Okay, enough of the binary jokes.
To this day, I’ve worked on only microprocessor appeared. The rest is Let’s all take a deep breath and focus
82 February 2008
DesignCycle.qxd 1/9/2008 4:17 PM Page 83

THE DESIGN CYCLE

on the very first page of the PIC32MX data sheet. It reads, thus, has a ton of supporting configuration registers. That’s a
PIC32MX Family Data Sheet. 64/100-Pin General-Purpose, good thing. However, having that kind of control requires com-
32-Bit Flash Microcontrollers. The words General-Purpose on plexity. The PIC32MX’s ability to be configured down to the
the PIC32MX data sheet title page are very important. nits jives with my first rule of embedded computing: Nothing
“General-Purpose” infers that the PIC32MX is not some spe- is free. To assist the new PIC32MX user in getting a 32-bit
cialized PIC that only a handful of us will ever use in a PIC application up and running quickly, Microchip has graciously
project. If you step back and give it some thought, in an I/O provided a set of API (Application Programming Interface) calls
sense, the new PIC32MX doesn’t do anything more than the that take much of the finger work out of coding a PIC32MX
old PIC16C54 did. PIC microcontrollers are designed to be project. The demo program I loaded into my PIC32MX Starter
easily integrated into embedded applications that require Kit board that looks for command letters also uses the API
basic and advanced elements of mixed data processing extensively. Fortunately, there are lots of examples that address
and I/O handling. The PIC32MX blinks an LED just like a each and every PIC32MX subsystem. For instance, here’s a
PIC16C54 does. The difference is that the PIC32MX can not complete demo project that shows you how to systematically
only blink that LED, at the same time it can blink that LED blink, all of the LEDs on the PIC32MX Starter Kit board:
faster and in the process, perform tasks that the PIC16C54
had to relegate to external supporting devices. Another int main(void)
{
attribute that physically ties the PIC32MX to its PIC16C54 int i;
roots is that neither the PIC32MX nor the PIC16C54 are cur- // setup LEDs
mPORTDClearBits(BIT_0); //Turn off LED0 on startup
rently available in a ceramic quartz-windowed JW package. mPORTDSetPinsDigitalOut(BIT_0); // Make LED0 as output
Just in case you haven’t had the opportunity to check out mPORTDClearBits(BIT_1); // Turn off LED1 on startup
the PIC32MX data sheet, the PIC32MX’s enhanced features mPORTDSetPinsDigitalOut(BIT_1); // Make LED1 as output
mPORTDClearBits(BIT_2); // Turn off LED2 on startup
include a maximum of 512K of program Flash and 32K of data mPORTDSetPinsDigitalOut(BIT_2); // Make LED2 as output
memory. Recall that I mentioned that the old PIC16C54
maxed out with a 1 μs cycle time, which was supported by a 4 while(1) { // do forever
MHz clock. Folks on the Microchip PIC32MX forum are speak- for(i=0; i<200000; i++); // put a delay
ing in terms of MIPS as the PIC32MX can clock its MIPS32 mPORTDToggleBits(BIT_0); // turn ON LED0
for(i=0; i<200000; i++); // put a delay
M4K 32-bit RISC core at a maximum of 72 MHz. If you fell into mPORTDToggleBits(BIT_1); // turn ON LED1
the Microchip 16-bit bucket and have a PIC24 or dsPIC design for(i=0; i<200000; i++); // put a delay
that you would like to port to the PIC32MX, you may be in luck mPORTDToggleBits(BIT_2); // turn ON LED2
}
as the PIC32MX is pin compatible with most of the PIC24 and return 0;
dsPIC microcontrollers. It’s my opinion that Microchip also }
wants you to fall head first into the 32-bit bucket, as well. I base
my prognostication on the $50 PIC32MX Starter Kit hardware, Judging from the code snippet I just presented to you, it’s
which I’ve shutterbugged for you in Photo 1. rather obvious which PORTD bits correspond to each of the
PIC32MX Starter Kit’s three LEDs. It’s also pretty blatant as to
THE PIC32MX STARTER KIT what each of the PORTD API calls do. Repeat after me: The
PIC32MX is a general-purpose PIC. All you need to get started
The PIC32MX Starter Kit package is a sleeper. Coming in at coding that does not come in the PIC32MX Starter Kit box is
$50, the PIC32MX Starter Kit includes the PIC32MX360F512L- the student edition of the Microchip C32 compiler, which
based hardware you see in Photo 1, an A-to-MINI-B USB you can get as a free download from the Microchip website.
cable, and a CD-ROM stuffed with numerous PIC32MX code The Microchip PIC32MX Starter Kit team knew that you
examples, documentation, and tutorials. The PIC32MX Starter and I would soon grow weary of only being able to push but-
Kit’s PIC32MX comes preprogrammed with a Simon Says game tons and flash LEDs. So, they decided to place an ultra compact
that is based on the PIC32MX Starter Kit’s onboard pushbutton 120-pin Hirose connector on the opposite side of the PIC32MX
switches and LEDs. Rather than frustrate myself with the Starter Kit board. The Hirose CL570-0103 header attached to
memory game, I decided to load one of the other demo the PIC32MX Starter Kit board you see in Photo 2 equates to a
programs into the PIC32MX. The demo I chose to run uses the Hirose product number of FX10A-120P/12-SV1(**). If we want
services of MPLAB 8.0 to prompt for command letters that to go beyond blinking LEDS, we’ll need to build up a compati-
correspond to LEDs on the PIC18F2620 Starter Kit board. ble interface to the PIC32MX Starter Kit’s Hirose header. After
For instance, entering an “R” toggles the RED LED on a bit of Hirose FX10A data sheet bending, I came up with a
the PIC32MX Starter Kit board. The letter “O” works on the matching receptacle whose part number is CL570-0203-0-**,
ORANGE LED while “G” toggles the PIC32MX Starter Kit’s which translates to a Hirose product number of FX10A-
GREEN LED. The demo program also allows the PIC32MX 120S/12-SV(71). The “**” values, or lack thereof, within the
student to enter “E” to echo a string. Although the demo parentheses of the part number is a specifications number.
application sounds trivial, the PIC32MX programming con- For those of you that want to explore the PIC32MX
cepts contained within the demo application are essential beyond blinking LEDs and sensing pushbuttons, I’ve taken
to grasp if you want to be successful with the PIC32MX. Microchip’s API approach to the hardware side. I’ve designed
As you would imagine, the PIC32MX is feature rich and and realized a simple printed circuit board (PCB) that allows
February 2008 83
DesignCycle.qxd 1/9/2008 4:18 PM Page 84

■ PHOTO 2. The Hirose header in


this shot looks like it would be a
bear to mount without special SMT
equipment. Not so. As it turned
out, it’s actually no different than
mounting an 80-pin PIC as the
pitch of the Hirose header (0.50
mm) matches that of a 16-bit,
80-pin PIC24FJxxxGA008.
aligned, I spot soldered the
ground plane lugs at each end
of the receptacle to hold it
firmly in place. The rest of the
soldering process was no
problem as I was able to con-
centrate on putting the solder
and the soldering iron tip on
■ PHOTO 1. This little board is meant my targeted receptacle pin. If
to introduce you to the PIC32MX CAD footprint for the receptacle based you’re in the smoke when it comes to
hardware and the new 32-bit C compiler on the PCB footprint CAD parameters soldering at this level, check out Aaron
that supports it. contained within the Hirose FX10A data Dahlen’s excellent SMT assembly arti-
sheet. The result of my efforts can be cle in the December ‘07 Nuts & Volts.
you to simply plug in your PIC32MX seen in Screenshot 1. Once the Hirose The PIC32MX 32-bit expansion
Starter Kit board and gain direct access 120-pin receptacle CAD work was board is very simple in design. The
to all of the PIC32MX360F512L’s pins. done, the rest of the PIC32MX 32-bit Hirose receptacle places ground plane
I must admit that at first I was expansion board came into fruition very connectors between every 10 pins of the
totally intimidated by the 120-pin easily. A shot of the final board in bare receptacle with the exception of placing
header on the flip side of my PIC32MX form is represented in Photo 3. a ground plane connector pin at the sixth
Starter Kit board. So, for three days I I have the fancy SMT equipment pin in from each end. I make a physical
gazed at the board’s 120-pin header necessary to mount and solder the electrical connection between every
through my magnifier loop wondering receptacle. However, you may not have receptacle ground pin and the top and
if I could pull off mounting the match- that kind of equipment at your disposal bottom ground planes of the PIC32MX
ing 120-pin receptacle on a PCB of my and I feel that if you can’t build the board. The combined use of the Hirose
own design. After sleeping on it one expansion board on your bench, it’s of receptacle’s grounding pins and the
more time, I finally bit the bullet and no use to you. So, I manually mounted ground planes on the PCB reduces elec-
ordered up 10 of the matching 120-pin and hand soldered the Hirose 120-pin trical noise. Note that there are no power
receptacles from Digi-Key (H11234- receptacle as you can see in Photo 4. or programming interfaces on the expan-
ND). Why 10? I figured I’d ruin at least The 120-pin receptacle I used has a pair sion board. That’s because the PIC32MX
two of them in the design phase. of guidepost alignment pins on its bot- Starter Kit board is powered by its on-
Upon receiving the receptacles, I tom side. I intentionally oversized the board USB portal. The PIC18LF4550 that
studied them up close for the next guidepost mounting holes by a few provides the USB interface for the starter
couple of days. After determining that I hundredths of a millimeter to allow for kit board is also programmed to be used
could not easily bend or damage the some play to guarantee precise manual as the on-board debugger interface.
receptacle’s pins when handling the con- mounting of the receptacle. The power derived from the USB
nector, I set out to build an ExpressPCB Once I got the 120-pin receptacle port (+5 VDC) is fed to a MCP1603-
based synchronous buck converter
■ SCREENSHOT 1. circuit that converts the incoming USB
There is absolutely power to +3.3 VDC, which is switched
nothing fancy here. to the PIC32MX’s Vdd pins via a
I simply used the FDN360P P-channel MOSFET. The
Hirose data sheet as
a guide to producing MCP1603-based synchronous buck
the receptacle pads, converter circuit’s input can also be
their placements, fed with an external +5 VDC source.
and their clearances. Both the PIC32MX’s Vdd and exter-
ExpressPCB allowed nal +5 VDC power connections exist on
me to custom-build
the 32-bit expansion board’s 60-pin
the pads and holes
you see in this shot connectors. The starter kit PCB header
to the Hirose data connections are logically grouped with
sheet specifications. respect to their function (UART1, PMP
84 February 2008
DesignCycle.qxd 1/9/2008 4:18 PM Page 85

THE DESIGN CYCLE

Address, PMP Data, etc.) on each side I need to point out that
of the 120-pin header. As my 32-bit the PMP also supports
expansion board design simply brings read/write/address con-
out each side of the 120-pin header to a trol signals just like the
pair of 60 pin headers, the original logi- 82C55, plus a few other
cal intent of the Microchip PIC32MX things the 82C55 just
hardware designers is kept intact. The can’t do.
expanded board is shown mounted via The 82C55 was
our 120-pin receptacle in Photo 5. designed to integrate
external parallel peripher- ■ PHOTO 3. I went all out on this double-
SUPER 82C55 als into a microcontroller system’s I/O
with minimum parts and minimum
sided board. You can save some
bucks and choose not to include the
Officially known as the 82C55 coding overhead. The PIC32MX’s PMP soldermask, but that will make the
Programmable Peripheral Interface, the subsystem has the same mission. For Hirose receptacle more difficult to
solder onto the expansion board and
82C55 is the CMOS derivative of the instance, take a look at Figure 1. A stan- you won’t be able to identify each
venerable Intel 8255A. Back in the days dard LCD interfaces using four or eight of the PIC32MX pins with silkscreen
when the baseline 8048 and 8051 micro- data lines, a Register Select (RS) line, a legends as I’ve done in this shot.
controllers were just about all we micro- Read/Write (R/W) line, and an Enable (E)
controller hobby types had to work with, line. As you can see, the PIC32MX’s PMP configured with wait states and polarities
the 8255A was the way to go as far as I/O supplies all of the necessary signal lines to meet the access needs of the external
expansion was concerned. In fact, when to drive a standard LCD module. What eight-bit device. What you don’t see here
Microchip announced their new line of you don’t see in Figure 1 is the flexibility is that the PMP can be programmed to
17CXX PICs, I used a pair of 82C55s to of the PMP subsystem in this example. automatically increment or decrement
augment the I/O of a PIC17C42 in a To make this LCD driver work, the the address value on every read/write
PIC16C5X emulator I designed. PMP must be programmed to act in cycle. You can’t do that with an 82C55.
The 82C55 is comprised of 24 I/O eight-bit demultiplexed Master Mode. In Before we move on, there’s one
lines divided into three sets of eight. The addition, the LCD control lines are all more important attribute of the PMP I
host microcontroller attaches to the active high levels, which is an attribute need to make you aware of. The PMP
82C55 by way of an eight-bit bi- that is programmed into the PMP control inputs are all five-volt tolerant. As long
directional bus and a handful of line polarity mix. PMENB in this case is a as the external device can pick out a
read/write/address lines. The way the write enable line. If the PIC32MX periph- logical high and logical low from the
82C55 is utilized depends on how you eral clock is too fast, the LCD module PIC32MX, no special logic level con-
configure the part using 82C55 control may miss the PMENB pulse on its E input. version circuitry is necessary. What
words. The programmer has three 82C55 No worries! The PMP’s PMENB pin can
■ PHOTO 4. No sweat. After I aligned
modes to choose from, which include: be throttled with programmable wait
the 120-pin receptacle, I spot soldered
Mode 0 – Basic Input/Output; Mode 1 – states. We have control of wait states the ground lugs at each end of the
Strobed Input/Output; and Mode 2 – Bi- before the pulse, wait states during the receptacle to hold the connector in
Directional Bus. The only real problem pulse, and wait states following the pulse. place. With the receptacle properly
with the 82C55 is that it is slow and the Can you say “covered?” aligned and firmly in place, the rest was
average PIC would sit and spin for a long Figure 2 shows us simple to solder under the magnifier.
while waiting for the 82C55 to cough up how the PIC32MX’s PMP
its data. The PIC32MX has a built-in subsystem handles simple
super fast 82C55-like subsystem called eight-bit transfers from
the PMP (Parallel Master Port). The devices such as Flash,
PIC32MX’s PMP can also be configured SRAM, or EPROM. Once
to operate in slave mode (PSP). again, the PMP is config-
The PIC32MX’s PMP provides the ured for eight-bit demulti-
programmer/hardware designer with a plexed Master Mode.
maximum of 16 programmable address And, as with the PMENB
lines and can operate in eight-bit or 16- output, the PMRD and
bit mode. The PMP built into the version PMWR signals can be
of the PIC32MX found on the PIC32MX
Starter Kit board also supports a 16-bit ■ PHOTO 5. Here’s the
data bus. If your design will utilize the shot we’ve been working
64-pin variant of the PIC32MX, you’ll towards. We now have
only have an eight-bit PMP data bus to total access to all of the
PIC32MX subsystems at
work with. Since I’m comparing the the pair of 60-pin 0.1-inch
PIC32MX’s PMP to the good old 82C55, headers.
February 2008 85
DesignCycle.qxd 1/10/2008 9:31 AM Page 86

PIC32MX running at +3.3 VDC.

WE’RE NOT DONE YET


Now that we have a little bit of
knowledge as to what the PIC32MX is all
about and we have some hardware that
■ FIGURE 1. If you’ve worked extensively with LCD modules, exposes all of the PIC32MX’s hardware
this may look trivial. However, imagine the big picture with this features, we need to explore the
LCD on a bus instead of being controlled by dedicated I/O lines.
32-bit firmware that drives the
PIC32MX360F512L. Your immediate
task is to get your version of the
PIC32MX Starter Kit 32-bit expansion
board into the oven. To assist you, I’ve
supplied the complete set of ExpressPCB
files on the Nuts & Volts website (www.
nutsvolts.com). And, if you’re wondering
where all of the schematics are, visit the
Microchip website and click yourself into
the PIC32MX documentation area.
You’ll find a complete set of PIC32MX
Starter Kit schematics plus the schematic
rendition of the 32-bit expansion board
■ FIGURE 2. Note the inclusion of a PMP you will find is that most TTL devices pinout. Have your hardware ready to go
chip select line here (PMCS2). The will recognize a logical high (2.4 volts as we’ll do some PIC32MX 32-bit
PIC32MX PMP subsystem has two chip and up) and logical low (2.0 volts and firmware cooking in the next installment
select lines available to the programmer.
down) emanated by devices like the of the Design Cycle. NV

IPS20 and IPS21 Power Management

Voltage and Current Feedback Amplifiers IS


ICOMP

GND OUT (-)

Trimmed Current
Applications Sensing
50mV PTAT
100mV
Temp. Stable
• Fast Chargers for Power Hand-Tools 4V Shunt
Current
Error
and Other Applications Regulator Amplifier OPTOCOUPLER
Current-Source
Control
Trimmed 1.25V

• Battery Eliminators Temp. Stable


Bandgap
Regulator
Voltage
Error
Amplifier

• ACDC and DCDC Power Supplies


• Distributed Power Systems OPTO
VCOMP
• LED Lighting Systems VCC
VSENSE
Ordering Information
Features Ordering PN (1) Subgroup Description Temp. Range Package Packing Type Packging Qty
• Dual Precision Error Amplifiers for IPS20C-D-G-LF Feedback and Support V/I FB and Cntrl, 50mV Vsen, Tcu Comp Ref Commercial 8-Pin DIP Tube 50
SMPS Voltage and Current Control IPS20I-D-G-LF Feedback and Support V/I FB and Cntrl, 50mV Vsen, Tcu Comp Ref Industrial 8-Pin DIP Tube 50
IPS20C-SO-G-LF Feedback and Support V/I FB and Cntrl, 50mV Vsen, Tcu Comp Ref Commercial 8-Pin SOIC Tube 98
• Internal 1.20V Trimmed Voltage Reference IPS20I-SO-G-LF Feedback and Support V/I FB and Cntrl, 50mV Vsen, Tcu Comp Ref Industrial 8-Pin SOIC Tube 98
• 100mV Trimmed Reference for Current Amplifier, IPS20C-SO-G-LF-TR Feedback and Support V/I FB and Cntrl, 50mV Vsen, Tcu Comp Ref Commercial 8-Pin SOIC 13” T&R (2) 2500
3μV/°C Temperature Stability (IPS21) IPS20I-SO-G-LF-TR Feedback and Support V/I FB and Cntrl, 50mV Vsen, Tcu Comp Ref Industrial 8-Pin SOIC 13” T&R (2) 2500
• 50mV Trimmed Reference for Current Amplifier, IPS21C-D-G-LF Feedback and Support V/I FB and Cntrl, 100mV Vsen Commercial 8-Pin DIP Tube 50
IPS21I-D-G-LF Feedback and Support V/I FB and Cntrl, 100mV Vsen Industrial 8-Pin DIP Tube 50
Temperature Compensated to Match PCB Trace
IPS21C-SO-G-LF Feedback and Support V/I FB and Cntrl, 100mV Vsen Commercial 8-Pin SOIC Tube 98
Resistance for Use as Sense Element (IPS20)
IPS21I-SO-G-LF Feedback and Support V/I FB and Cntrl, 100mV Vsen Industrial 8-Pin SOIC Tube 98
• Sources Error Current to Grounded Opto-Coupler IPS21C-SO-G-LF-TR Feedback and Support V/I FB and Cntrl, 100mV Vsen Commercial 8-Pin SOIC 13” T&R (2) 2500
for Feedback in Isolated System IPS21I-SO-G-LF-TR Feedback and Support V/I FB and Cntrl, 100mV Vsen Industrial 8-Pin SOIC 13” T&R (2) 2500
• 4V Shunt Regulator, Allowing Wide Range for (1) Only RoHS/Lead-Free Packaging is normally offered.
Input Voltage with Limiting Resistor (2) T&R - Tape and Reel

• Useful for Currents to 50A, Voltages


Down to 1.2V
For samples and additional information,
• Evaluation Board Available for Qualified
Designers (AAEV2021) go to http://loci.asicadv.com/IPS2021NV
...Striking the Balance!
86 February 2008
WebstoreFeb08.qxd 1/10/2008 1:27 PM Page 87

Check ou t our new webs tor e for many mor e gr eat t i tles!!

The Nuts & Volts WEBSTORE


Electronic Circuits —
CD-ROMS Fundamentals & Applications:
Third Edition
by Mike Tooley
In Electronic Circuits, Mike
Tooley provides all the
essential information
required to get to grips
with the fundamentals of
electronics, detailing the
underpinning knowledge
necessary to appreciate
the operation of a wide Best r
range of electronic Selle
circuits, including ampli-
fiers, logic circuits, power supplies, and
oscillators.The third edition now offers an
even more extensive range of topics, with
extended coverage of practical areas such
as circuit construction and fault finding, and
new topics including circuit simulation,
electronic CAD, and a brand new chapter
devoted to the PIC microcontroller.
$34.95

Encyclopedia of Electronic
Circuits, Volume 7
ELECTRONICS by Rudolf F. Graf / William Sheets
Programming and Customizing Newnes Guide to Television and Publish Date: August 31, 1998
the PICAXE Microcontroller Video Technology
by David Lincoln by K. F. Ibrahim An extensive library
Here’s everything you of 1,000 circuits from
need to harness the the bestselling, seven-
Starting with TV volume Encyclopedia
power of PICAXE, fundamentals, the bulk
the inexpensive yet of Electronic Circuits. A
of the book covers the virtual treasurehouse.
versatile chip that’s many new technologies
taken the electronics An invaluable reference
that are bringing rowth tool for every
community by storm. to the TV and video
This beginner-friendly hobbyist, technician,
market, such as plasma student, and design
guide from IT pro and
Best r
and LCD, DLP (digital professional. $39.95
PICAXE expert David
Selle
light processing), DVD,
Lincoln shows you Blu-ray technology,
just what Revolution Digital television, High Build Your Own Electronics
Education's PICAXE can do — and helps Definition television Workshop
you make it do it! Packed with ready-to- (HDTV), and video projection systems. By Thomas Petruzzellis
build projects for all the $34.95
flavors of PICAXE. $39.95 YOUR DREAM ELECTRONICS LAB
IS WAITING INSIDE!
This value-packed
resource provides
Programming the PIC PIC Microcontroller everything needed
Microcontroller with MBASIC Project Book to put together a
by Jack Smith fully functioning
by John Iovine home electronics
No microcontroller is The PIC workshop! From
of any use without microcontroller is finding space to
software to make it enormously popular stocking it with
perform useful func- both in the US components to
tions.This compre- and abroad.The putting the shop
hensive reference electronics hobbyist into action — building, testing, and trou-
focuses on designing market has become bleshooting systems — popular electronics
with Microchip’s mid- more sophisticated. author Tom Petruzzellis’ Build Your Own
range PIC line using This new edition is Electronics Workshop has it all! And the best
MBASIC, a powerful fully updated and part is, this book will save you money, big
but easy to learn pro- revised to include
gramming language. It time! $29.95*
detailed directions on
illustrates MBASIC’s abilities through a using both versions of the microcontroller,
series of design examples, beginning with with no-nonsense recommendations on
simple PIC-based projects and proceeding
GREAT BOOK
which is better served in different situations.
through more advanced designs. $62.95* $29.95

February 2008 87
WebstoreFeb08.qxd 1/10/2008 1:25 PM Page 88

CALL 1-800-783-4624 today!


Or Order online @ www.nutsvolts.com
PROJECTS
Digital Flashlight Kit Nixie Clock Kit
NEW
!

As seen on this month’s cover As seen in the


October 2006 issue
200% More Efficient
Turn all your old style bulb flashlights Nixie tube clocks fuse the spirit, drama, and eerie beauty of cold war technology
into bright, five LED, energy efficient, with modern inner works to create uncommon handcrafted timepieces.
4.5 VDC digital flashlights. This clock / kit was shown at the October 2007 MAKER Faire in Austin,TX
For more information, by Nut & Volts Magazine and was very well received as a novel way to show the
go to our website @ Nixie tubes. Plus, it’s a great kit for all levels of electronic experience.
www.nutsvolts.com
Without Flashlight Housing $19.95 For more information, please check out your October 2006 issue
With Flashlight Housing $22.45 or go to our website @ www.nutsvolts.com
Both include an article reprint. Subscriber’s Price $124.95 Non-Subscriber’s Price $139.00 Both include an article reprint.

NE W!

As seen in the Sale!


November 2007
issue $ 22.95
Garage Door Alarm Kit lf you like books on projects, check out
The Evil Genius Series
We have all 18 books in stock and
Save yourself time and aggravation from lost or stolen items that mysteriously disappear from ready to ship.
your garage when — as we have all done — THE DOOR IS LEFT OPEN! With this small but Buy 3 or more books from this series and
mighty kit (inspired by one of our project writers, Garth O'Donald), the alarm lets you get free USPS shipping.
know when your door is open and has an audible alarm when anyone enters the garage. (US Only)
Go to www.nutsvolts.com
For more information, please check out your November 2007 issue Click Store/Books/The Evil Genius Series
or go to our website @ www.nutsvolts.com Peruse through the descriptions
of each book, plus check out
Subscriber’s Price $49.95 Non-Subscriber’s Price $57.45 the Digital Sampler of four
Kit includes article reprint, complete instructions, parts list, and hole drilling templates.
publisher-selected titles.

Hydrogen Powered Racer Magic Box Kit

As seen in
our April issue.
With this kit, you now can see and feel We received such great
the future of energy generation in your reviews on this magic box
own hands! Recently named as one of the kit that we decided to
Best Inventions of 2006 by Time Magazine, offer it in our store.
the H-racer is now the best selling fuel This unique DIY construction project blends electronics technology with carefully planned
cell product in the world. For more handcraftsmanship. Its delightful innovation will surely amuse you. More importantly though,
info, go to our online store at it bewilders, baffles, and mystifies those observing this subtle magic trick.
www.nutsvolts.com. $115.00* Subscriber’s Price $41.95 Non-Subscriber’s Price $47.95 Both include an article reprint.
WE ACCEPT VISA, MC, AMEX, and DISCOVER. Prices do not include shipping and may be subject to change.
88 February 2008
WebstoreFeb08.qxd 1/10/2008 1:22 PM Page 89

At t en t ion Subsc r ibe r s ask abou t your discoun t on pr ic es mar ke d wi t h an *

The Nuts & Volts WEBSTORE


ALTERNATIVE ENERGY
SECTION
Designing & Building Fuel Cells If you are an alternative energy Solar Energy Projects for
by Colleen Spiegel enthusiast, you’re going to the Evil Genius
Best r love this shirt! by Gavin D. J. Harper
Designing & Building Selle Going, Going, Gone Green!
Fuel Cells equips you Let the sun shine
with a hands-on guide on your evil side
for the design, model- — and have a
ing, and construction wicked amount of
of fuel cells that per- fun on your way to
form as well or better becoming a solar
than some of the best energy master! In
fuel cells on the mar- Solar Energy Projects
ket today. Filled with for the Evil Genius,
over 120 illustrations high-tech guru
and schematics of fuel cells and compo- Gavin Harper gives
nents, this “one-stop” guide covers fuel you everything you
cell applications, fuels and the hydrogen need to build more than
economy, fuel cell chemistry, thermody- 50 thrilling solar energy projects.You'll
namics and electrochemistry, fuel cell Check it out in our Webstore! find complete, easy-to-follow plans, with
modeling, materials, and system design, www.nutvolts.com clear diagrams and schematics, so you
fuel types, delivery, processing, and much Spring Special $18.95 know exactly what’s involved before you
more. $89.95* begin. $24.95
Solar Hydrogen Power
Alternative Energy Demystified Generation Set The Complete Idiot’s Guide to
by Stan Gibilisco Solar Power for Your Home
Publish Date: October 23, 2006 by Dan Ramsey / David Hughes
The fast and easy Publish Date: May 2007
way to get up-to- The perfect
speed on alternative source for solar
energy. Because of power — fully
current events, illustrated.This
geopolitics, and book helps read-
natural disasters, ers understand
the cost of fuel is the basics of solar
front and center in power and other
our lives.This book renewable energy
provides a concise The Solar Hydrogen Generation Set sources, explore
look at all forms of includes a solar cell, a PEM reversible fuel whether solar
energy, including fossil fuels, electric, cell, as well as oxygen and hydrogen gas power makes
solar, biodiesel, nuclear, hydroelectric, containers.The set only needs pure water sense for them,
wind, and renewable fuel cells.You will to create hydrogen and produce electricity. what their options are, and what’s
get explanations, definitions, and analysis Perfect for science labs, classroom use, or involved with installing various on- and
demonstration purposes.
of each alternative energy source from a
$67.00 off-grid systems. $19.95
technological point-of-view. $19.95

MUST HAVE New To Our Store


Pocket Ref Electrical and Electronic RF Circuit Design
by Thomas J. Glover Principles and Technology by Christopher Bowick
3rd Edition Publish Date: October 26, 2007
by John Bird RF circuit design is
This great little book Publish Date: now more important
is a concise, all-pur- October 1, 2007 than ever as we find
pose reference fea- In this book, John Bird ourselves in an increas-
turing hundreds of introduces electrical ingly wireless world.
tables, maps, formu- principles and Radio is the backbone
las, constants, and technology through of today’s wireless
conversions. AND it examples rather than industry with protocols
still fits in your shirt theory – enabling such as Bluetooth,Wi-
pocket! Goes where students to develop a Fi,WiMax, and ZigBee.
you go! $12.95 sound understanding of Most, if not all, mobile
the principles needed by devices have an RF component and this
technicians in fields such as electrical book tells the reader how to design and
engineering, electronics, and integrate that component in a very practi-
telecommunications. $39.95 cal fashion. $44.95
February 2008 89
Classifieds Feb08.qxd 1/10/2008 9:23 AM Page 90

CLASSIFIEDS
COMPONENTS CONNECTORS/WIRE/CABLE
T The RF Connection
C Silver Teflon PL-259/Gold Pin, $1.00
H
E R O
N
213 N. Frederick Ave., Ste. 11NV
N or 10/$9.00
F E
C
Gaithersburg, MD USA 20877
T
I
O Call for Specials of the Month
Nhttp://www.therfc.com/
Full Line of Audio Connectors for Icom,
Complete Selection of MIL-Spec Coax, Kenwood, and Yaesu
RF Connectors and Relays 8 Pin Mike Female $2.50
UG-21B/U N Male for RG-213/214 .$5.00 8 Pin Mike Male Panel $2.50
UG-21D/U N Male for RG-213/214 .$3.25 13 Pin DIN for Kenwood $2.75
N Connectors for 9913/Flexi4XL/9096 8 Pin DIN for Icom $1.00
uM-FPU V3.1 UG-21B/9913 .....$6.00 / Pins Only......$1.50 8 Pin DIN for Kenwood $1.50
UG-21D/9913 ..$4.00 / Extra Gasket.$0.75 Prices Do Not Include Shipping
Floating Point Coprocessor
UG-176/U Reducer RG-59/8X, $0.25 Prices subject to change without notice.
32-bit IEEE 754 or 5/$1.00
SPI or I2C Orders 800-783-2666
UG-175/U Reducer RG-58/58A, $0.25 Info 301-840-5477
DIP-18, SOIC-18 or 5/$1.00 FAX 301-869-3680
Fast – Easy to Use
Extensive floating point support,
GPS input, FFT, 12-bit A/D, matrix PUBLICATIONS
operations, user-defined functions.
Support for: BASIC Stamp® CNC Book
Easy CNC
PICmicro®, PICBASIC PRO™
PICAXE®, ARMmite, OOPIC®
PLANS/KITS/ Atmel AVR®, WinAVR™, ...
G-code
SCHEMATICS www.micromegacorp.com
Bit map draw programs
Bit map image converter
Bit map to G-code
CAD - machine drawings HARDWARE
CAM - DXF to G-code WANTED
http://www.cncintro.com
DEC EQUIPMENT
SQUARE 1
SQUARE WANTED!!!
Digital Equipment Corp.
ELECTRONICS and compatibles.
Buy - Sell - Trade
MISC FOR SALE (208) 664-4115 CALL KEYWAYS 937-847-2300
Hayden, ID USA or email buyer@keyways.com

Stepper Motor SOLAR PRODUCTS


Book
Easy Step'n
Table Of Contents
Ordering Info
On Web Site
http://www.stepperstuff.com

OSCILLOSCOPES

SATELLITE (208) 664-4115


Bargain
Hayden, ID USA LCD
Satellite Dish Parts Scope!
C-band • Ku-band • 4DTV • FTA
LCDs/DISPLAYS BATTERIES Portable, benchtop 25Mhz 2-ch color LCD

Ice Zapper TM Scope. Download waveforms via USB1.1 to


PC. 7.8" 640 x 480 Color LCD 3.5lbs.
Melts Snow and Ice! Sampling Rate 100 MS/s. Volt/Time Automatic
Measurement Peak-to-peak Value, Average,
Simply attach to your existing dish - RMS, Frequency and Cycle. FREE 1x/10x
works on metal dishes up to 1.2m! probes, USB cable. Compare with expensive
LCD scopes! PDS5022S only $325!
www.skyvision.com Battery-powered PDS5022S-BAT $399!
www.icezapper.com Saelig Co. Inc. info@saelig.com
800-500-9275 1-888-7SAELIG www.saelig.com

90 February 2008
Classifieds Feb08.qxd 1/11/2008 2:45 PM Page 91

CLASSIFIED ADVERTISING $50 Per Inch. Classified ads must be


paid in full prior to the closing date or the ad will be placed in the
Nuts & Volts must be received by the closing date. Supplied ads
must be received by the artwork due date. Call 951-371-8497 or
READER FEEDBACK
following issue, at our discretion. Minimum charge is one inch with email classad@nutsvolts.com for closing dates, available sizes, and Continued from page 8
half-inch increments. No proofs will be sent. Ads to be typeset by special prepay discount offers. Color included in price.
Response: First, thanks
very much for your interest in
SECURITY MICRO AUDIO/VIDEO my Bingo article. I really
CONTROLLERS appreciate hearing from the
readers. Second, I'll try and
MicroStamp11 answer all your comments.
World’s Smallest 68HC11 The “verify + 1” and
Microcontroller Module!
telemetry
z
“verify + 10” buttons were used
microrobotics
z to enable one to reach any
smart toys
z
animatronics
z number in the 75 numbers
model railroading
z
home automation
z possible, as quickly as possible.
z tiny (1 by 1.4 in.), light-weight (0.5 oz.) For example, if one wanted to
zon-board 5V reg., crystal, & reset chip
zchoice of 8K or 32K EEPROM verify the number 72, you only
z or 32K RAM + 32K EEPROM (64K version)
z SCI, SPI, Output Compare and Input need to push the “Verify + 10”
Capture channels, timer, pulse accumulator
z all 14 I/O lines and 2 interrupt lines button six times to get to the
brought out to versatile 20-pin connector
zprogram in BASIC, assembler, or C number “71,” then one time on
zeasy code-loading with Docking Module
z Starter Packages:* the “Verify + 1” and you are at
 z 8K EEPROM (#MS11SP8K).......$49


z 32K EEPROM (#MS11SP32K)...$77
z 32K EE/32K RAM (MS11SP64K)$90
72 rather than having to hold
* includes MicroStamp11, manual, PC soft-
down the “Verify + 1” button
ware (assemblers, SBASIC compiler,
MicroLoad utility, and sample programs),
long enough to reach 72. The
serial cable, Docking Module, & accessories.
verify portion of the program
www.technologicalarts.com runs independently from the
Toll-free (USA & Canada): number choosing portion, so
1-877-963-8996
Visa • MasterCard • Discover • Amex both can actually be done at
ROBOTICS the same time. After all 75
PCB SOFTWARE numbers have been chosen, no
more choices will appear on
EXCLUSIVE U.S. DISTRIBUTOR the output.
I didn’t see any reason to
use a random number genera-
tor, since timer 0 runs con-
stantly, and the time of pushing
DESIGN/ENG the “choose a number” button
SERVICES is completely random depend-
ing on the person calling the
numbers. You are correct, it
would have been nice to have
YOUR COMPLETE a sounder and a flashing light
SOLUTION! but, of course, the device I built
• PCB Design does not know when someone
ARobot Kit from Arrick has called Bingo. I didn’t auto-
Robotics uses the Basic Stamp • PCB Simulation
mate that much of it, trying to
II. Quality metal construction. • CAD/CAM Menu
keep the project simple and
Looking for robots?
Easy to assemble and 121747, Hobby Vers., $175
very expandable. 121743, Pro. Version, $275 inexpensive. Again, thanks for
$235.00 your comments and questions.
www.robotics.com/arobot www.KELVIN.com www.servomagazine.com — Chuck Irwin

February 2008 91
TechForum.qxd 1/10/2008 3:40 PM Page 92

TECH This is a READER-TO-READER Column.


FORUM
All questions AND answers are submitted by Nuts & Volts readers and are intended to promote the exchange of ideas and provide assistance
for solving problems of a technical nature. Questions are subject to editing and will be published on a space available basis if deemed suitable
by the publisher. Answers are submitted by readers and NO GUARANTEES WHATSOEVER are made by the publisher. The implementation of
any answer printed in this column may require varying degrees of technical experience and should only be attempted by qualified individuals.
Always use common sense and good judgement!

All questions and answers should

>>> QUESTIONS
be sent by email to forum@nuts is not available and to optionally limit
volts.com All diagrams should be
computer generated and sent with your the supply current so as not to overload
submission as an attachment. I'm learning electronics on a self a low capacity circuit breaker when
QUESTIONS study basis. My main book has a brief charging away from home.
To be considered, all questions should relate section on impedance matching. The Ideally, it would be better to charge
to one or more of the following: key idea is that power transference will each battery separately so they are
❶ Circuit Design be at a maximum when the source properly balanced, but using 13 charg-
❷ Electronic Theory impedance is equal to the load imped- ers seem a bit too bulky. Any ideas?
❸ Problem Solving ance. It doesn't do a very good job #2082 Dave Delman
❹ Other Similar Topics demonstrating the math. I need a more Jericho, NY
■ Be brief but include all pertinent informa- detailed explanation.
tion. If no one knows what you're asking, you #2081 Mark Jungmeyer I'm trying to interface a thermal
won't get any response (and we probably via email IBM PC Compact Printer (Model
won't print it either). 5181001) to a micro and need the
■ Include your Name, Address, Phone Num- I am converting a 1981 DeLorean Tech manual, or information describing
ber, and email. Only your Name, City, and
into an electric vehicle and I need the timing, commands, and pinouts of
State will be published with the question,
advice on building a battery charger for the printer. I’ve searched the Web, but
but we may need to contact you.
■ No questions will be accepted that offer my series string of 13, 12 volt Deka can't locate any info other than it was
equipment for sale or equipment wanted to 9A31 AGM (sealed absorbed glass used with IBM PC Jr. Plenty of these
buy. mat) batteries which are 100 Ah each. printers are for sale, just no documen-
■ Selected questions will be printed one The manufacturer recommends a three tation that I can find.
time on a space available basis. stage charge cycle: Does this printer have the same
■ Questions are subject to editing. First, start with a constant current interface as another printer that I might
of 30 amps until the voltage of each be able to locate?
ANSWERS battery reaches 14.4-14.6 volts (187.2- #2083 Bruce
■ Include in the subject line of your email, 189.8 volts for the string). via email
the question number that appears directly Second, charge at a constant volt-
below the question you are responding to. age of 14.4-14.6 volts (187.2-189.8 I need a cheap — but reliable —
■ Payment of $25.00 will be sent if your volts for the string) until "the current remote liquid level sensor setup for my
answer is printed. Be sure to include your acceptance drops by less then 0.10 home heating fuel oil tank.
mailing address or we cannot send payment.
amperes over a one hour period;" max #2084 Will
■ Only your Name, City, and State, will be
time 12 hours. via email
printed, unless you say otherwise. If you
Third, maintain a constant terminal
want your email address included, indicate
to that effect.
■ Comments regarding answers printed in
voltage of 13.5 volts (175.5 volts for
the string).
>>> ANSWERS
this column may be printed in the Reader It would be best to have an option [#11074 - November 2007]
Feedback section if space allows. to operate off 110 volts when 220 volts Is there a unit or circuit to
92 February 2008
TechForum.qxd 1/10/2008 3:40 PM Page 93

> > > R E A D E R - TO - R E A D E R Q U E S T I O N S A N D A N S W E R S

convert HDMI to IEEE? have found that Tarn-X will remove the was developed to have the same
oxidation (the part must be water coefficient of expansion as glass.
There is not a circuit or device to washed and dried afterwards). This made it possible to bring wire
convert HDMI to IEEE because IEEE Solder tinning has just about gone leads out of glass sealed units without
stands for Institute of Electrical and away due to RoHS (the Reduction of leakage. This wire is cheap and readily
Electronics Engineers, an international Hazardous Substances initiatives in available, probably less expensive
nonprofit organization (www.ieee./ Europe and California). Everyone is than copper. It is also magnetic.
org). This is not a protocol/specifica- afraid of lead these days, and Carbon film resistors are fabricated on
tion such as HDMI (High-Definition traditional solders are an alloy of tin a ceramic core. The end cap that
Multimedia Interface). You must add and lead. Most parts are now tinned holds the core is steel and is magnetic.
a series of numbers after "IEEE" to with pure tin (now you know where The end cap makes the connection
refer to a particular standard such as the term "tinning" originated!). between the carbon film and the
IEEE 488, IEEE 802.11, IEEE 1394, and Pure tin is showing some longetiv- copper wire.
so forth. ity problems in that it tends to whisker Russell Kincaid
HDMI is a licensed interface over time and on close pitch parts, can Milford, NH
which uses uncompressed and cause an early device failure. Parts
encrypted data to interface DRM tinned with solder do not seem to #3 Copper is not used because of
(Digital Rights Management) exhibit this problem. Although the the cost and the added heat
audio-video devices/sources including agencies pushing elimination of conduction is not needed. In most
computers and satellite dish systems lead have exempted components applications in PCBs, the leads are
to compatible televisions, audio used in military and communications so short that it wouldn't make any
devices, etc. Due to the DRM aspect, applications, most manufacturers are difference in the heat dissipation
it is not likely possible or legal to only making the lead free variety now, capability of the device.
convert HDMI to some other form of as it is cost-prohibitive to run two Phillip Milks
signal (digital or analog) to bypass the parallel production processes for the
copyright protection. same base part. #4 On capacitors, LEDs, and many
Erik For more information on RoHS, transistors, the leads are also the
Escondido, CA visit www.rohsusa.com. physical support. For example, a TO-5
Phil Shewmaker cased transistor running at its power
[#12071 - December 2007] KG4ERX limit might be mounted high off the
I have noticed that many of the circuit board and have a "flag" style
leads on capacitors and LEDs are #2 Many years ago, an iron alloy heatsink. Copper leads wouldn't be
magnetic, as are the bodies of carbon-
film resistors (but not the leads). Why is Correction Figure 1 is the correct schematic.
that? Why not copper wire? Why is There is an error in the schemat- The text of my answer remains the
there iron in a carbon film resistor? ic diagram accompanying my answer same.
in the November issue to question Ed Schick
#1 Many of the leads are magnetic #08074. Harrison, NY
because they are made of steel.
This steel is then "tinned" with either Figure 1
solder, pure tin, silver, or gold. One
would suspect the reason for using a
"base metal" such as steel would be
material cost, but actually it is so there
is the correct tensile strength to allow
for bending prior to insertion in a
circuit board. The leads are tinned to
make soldering more efficient.
Solder adheres very well to gold, silver,
and tin.
Many mil-spec semis have gold
tinned leads. Some have silver tinning.
If these have been in storage a while,
they will oxidize and turn black (just
like silverware does) and solder will
no longer stick. To use these parts,
the leads must be cleaned, either
manually using an "Eraser" brush, or I
February 2008 93
TechForum.qxd 1/10/2008 3:41 PM Page 94

> > > R E A D E R - TO - R E A D E R Q U E S T I O N S A N D A N S W E R S

stiff enough. The steel leads are Figure 2 is a simple power supply Helpful hint: Do NOT wet your finger
sometimes plated with gold to prevent schematic gleaned from part of and touch the capacitor contacts
corrosion and improve conduction. that kit. The power supply is a simple when it is charged!
For the carbon film resistors, I oscillator that runs on 6 VDC with Sid Knox,W7QJQ
suspect the iron — or soft steel — is a single PNP transistor. The oscillator Oklahoma
an inexpensive but sturdy core that output is stepped up to around 100-
can be coated with ceramic or glass, 150 VDC with the transformer. Almost #4 The answer can be found with
then the carbon. all components are off the shelf. the MAX1932. The standard circuit for
Dale Yarker The transformer is an audio output this part makes 90V and operates
via email transformer, like those used in from 3 to 5V input, so three AA cells
many older audio amplifiers. You can is all that is needed. This circuit also
[#11075 - November 2007] probably find one in a discarded radio has a nice current limit so it will make
Years ago, I built several "Nothing from the 1970s. it safer than a garden variety boost.
Boxes" that fascinated friends. They E. Kirk Ellis, KI4RK The datasheet and circuit are
were boxes with six to 10 flashing Pikeville, NC here: http://datasheets.maxim-ic.
NE-2 lamps. They needed over 120 com/en/ds/MAX1932.pdf
volts, usually from three surplus 45 volt #3 How about a free power supply Len Sherman
batteries which were hard to find. and as a bonus, a free battery to run it? (works for Maxim)
Can anyone provide a simple but Go to a photo developing store and
efficient power supply that could be ask for a used disposable camera. #5 I built one of those many years
used with 6 to 12V and provide the When you take it apart, look for these: ago and used 110 volts right out of the
120 to 140 volts needed by the NE-2 1) Contacts that when closed, wall. Many more years later, I built
oscillators? I would probably use C or energize the flash option. another one using a bunch of nine volt
D cells so that the boxes would run for 2) The large (slightly smaller than batteries in series. That was safe but
several months on one set of batteries. an AA cell) high-voltage storage did not last long. I later used a DC-to-
capacitor. DC converter fed by five AA cells. It
#1 Jameco Electronics sells a 12V Close the contacts (1) to begin worked well and would probably last
power supply for fluorescent lamps charging the capacitor. After a few for months with D cells. The converter
that may work for you. Its output is seconds, the small neon lamp (similar I used was a PICO 5B48S. I used small
180V or so; Part #239636. It will prob- to an NE-2) will flash. With a meter, neon bulbs without sockets and 2.2
ably work on less than 12V, as well. you can measure the capacitor voltage meg resistors. Put the whole thing in a
Bob Lindstrom which will be around 300 VDC. This clear plastic box. Piece of cake. Good
Broomfield, CO will run your "Nothing Box," although luck and keep having fun!
you may want to change the resistor Tom Grabowski
#2 Years ago, I assembled a “goofy values if the flash rate is too fast. Baltimore, MD
night light” P-Box kit from RadioShack. If you want to see the camera
That kit had five neon bulbs that could strobe lamp flash, hold the contacts #6 Buy 12 nine volt batteries and
be configured to flash in sequence or (1) closed and simultaneously close snap them together in series for 108
randomly. The kit was made to run off the contacts that are connected to the volts at the two remaining terminals.
of six volts DC and advertised that shutter release mechanism. The neons may light at as low as 90
if you used four D cells or a lantern Mr Google has links to dozens of volts. Add more batteries to the series
battery, it would run for months. sites related to hacking these cameras. string if you think you need more than
108 volts.
Figure 2 D. Crunkilton

[#12072 - December 2007]


I subscribe to cable phone with a
company that provides a bundle of
high-speed Internet access, television,
and phone service. A cable problem can
cause any one or all three to crash. My
primary concern is about the phone.
When it goes out, you won't know it
until you try to use it and get no dial
tone, or if someone tells you later that
they could not reach you. This has
caused me to miss important calls and
deliveries. Is there a circuit I could build
94 February 2008
TechForum.qxd 1/10/2008 3:41 PM Page 95

> > > R E A D E R - TO - R E A D E R Q U E S T I O N S A N D A N S W E R S

to monitor the cable phone line and carried to and from your Enhanced and put an alarm on this condition, I
alert me (e.g., beep, buzz, blinking light, Media Terminal Adapter (EMTA) using suggest (despite my better judgement)
etc.) when it goes down? My provider complex modulation techniques over that you pull the cable off of the back
hasn't a clue, and only apologizes for RF signals on fiber and coaxial of your EMTA and notice what activity
the inconvenience over and over again. networks. Even in the best of cable occurs on the front panel LEDs. Then,
networks, these signals can be consider a circuit that uses photo
As one who monitors the opera- impaired by noise generated in your detectors taped in front of one or
tion of thousands of "cable phones" neighbor's home, by a local radio more LEDs and connected to a circuit
daily, I can tell you that there are many transmitter, or created within the cable that detects LED activity that occurs
reasons why your phone may lose system itself by faulty connectors. The during the "outage" and sounds an
dial-tone or inbound calls do not ring signal level can be too high or too low alarm. Or, take a look at what happens
your phone or go to voicemail even because of faulty or incorrectly adjust- to the voltage on the telephone side of
though your phone is idle. The ed lasers and amplifiers or because of the EMTA. Some EMTAs will drop the
PacketCable technology used to faulty wiring in your home. If the tele- telephone line voltage when they lose
deliver such service has come a long phone switch in the cable head-end RF. I learned this the hard way when a
way and cable phones are certainly tries several times to signal your EMTA customer's burglar alarm sounded
a viable option today, but many of an inbound call via the Media each time the EMTA lost RF signal.
complex technologies have to work Gateway Control Protocol (MGCP) You could build a circuit to detect this
correctly all at the same time in order and signaling packets are lost because and alert you.
for your phone to function properly. of such impairments, the call will fail. If you do not already subscribe
In a Plain Old Telephone Service Often, the condition is intermittent to your MSO's voicemail service, I
(POTS) network, the central office and even the cable operator will have recommend that you do so. In cases
only has to apply DC or simple AC a difficult time detecting these. where the inbound call fails because
voltage waveforms to your phone to There are conditions that may of a problem between the phone
provide dial-tone or to make it ring. It cause you to lose the RF signal switch and your EMTA, it should be
is hard to beat the reliability of such a altogether when a cable is cut or directed to voicemail.
simple network. during a maintenance on the network. John Montalbano
Signals on your cable network are If you are really motivated to detect Middletown, NJ

February 2008 95
InTheSpotlight.qxd 1/10/2008 9:33 AM Page 96

An Interview with Ray Bellantoni


Vice President of Marketing, Jameco Electronics
by Marvin Mallon

T
he spotlight this month is on growing segment, the corporate cus- detailed descriptions, data sheets, and
Jameco Electronics — a northern tomer, is driving product strategy and cross-reference capabilities. In 2008,
California firm located about 20 growth. That product line has we will continue to push ourselves to
miles south of San Francisco. It is a increased over a magnitude since bring our customers the best selection
privately owned company housed in a 2003 by responding to the needs of of the products they need, all at
50,000 square foot facility. They are a this customer base. Jameco also has a the best prices and the best service
leading online and catalog distributor loyal group of hobbyist customers. In levels available.
of electronic components and are March 2005, the company purchased At Jameco, we are committed not
ranked 45th among the top electronic the first and most recognized robotics only to meeting, but exceeding,
distributors in the nation. Jameco’s website, RobotStore.com. This strate- industry standards. In order to meet our
first promotion was a small ad in gic acquisition adds to the expanding customer’s expectations, we rigorously
Radio Electronics. The significant product portfolio offered to hobbyists. test our products and back them with
response to that led them to create a our 30-day money-back guarantee. Our
two-page, black-and-white catalog. M: What is the principal focus of convenient ordering options include
They now distribute a full-color, 212- Jameco’s business? online, 24/7 toll-free phone/fax, email,
page catalog to millions of customers R: Jameco focuses on the most will-call, and postal mail. Nine payment
each year. commonly needed electronic methods allow for maximum flexibility.
The company’s broad product components. General areas include Orders placed by 6 pm EST are shipped
line includes semiconductors, pas- integrated circuits, discrete and the same day. Other services include
sives, interconnects, electromechani- passive components, connectors, scheduled shipments, kitting, volume
cal devices, power sources, and spe- power components, prototyping discounts, and special sourcing for
cialty products. They carry more than supplies, tools, test equipment, hard-to-find products.
100,000 products from over 300 man- and computer products. Jameco con- In order to exceed our customer’s
ufacturers. A partial list of the most sistently adds new products to meet expectations, we offer the lowest
popular organizations they represent customer demands. The product line prices on all major brands, as well as
includes Fairchild, Intel, TI, Micron, has grown vastly in the past two years, even greater values on our in-house
Toshiba, Amphenol, and Panasonic. and the company is aggressively brands. Our customer-friendly catalog
Additionally, in 2004, they introduced adding more commonly used prod- offers the opportunity for side-by-side
their own branded products, the ucts. Jameco backs these, and all its comparison shopping — an exclusive
Jameco ValuePro™ line of PEMCO products, with its low-price guarantee. feature in our industry. We are
products; the Jameco ReliaPro™ line A highly competent in-house technical constantly expanding our product line
of power supplies and motors; and the support staff supports our products. in direct response to customer needs.
Jameco BenchPro™ line of accurate, In the last two years alone, our
professional-grade workbench tools. M: Can you summarize Jameco’s pres- product line has grown vastly by
Dennis Farrey, who remains as ent policies and future endeavors? adding the most commonly needed
Chairman of the Board, founded the R: With the Jameco catalog, you don’t items. More than 99% of our catalog
company in 1974. Bob Croshaw is the need to search through thousands of items are in stock, ready to ship, repre-
president and CEO, and Ray pages to find the products you want. senting significantly greater availability
Bellantoni serves as Vice-President of We don’t flood our catalog with every than similar distributors. NV
Marketing. When interviewed recently product to make our catalog thicker.
for this column, Ray responded to our We carefully select the industry’s most
questions in this manner: frequently used product lines so our
JAMECO ELECTRONICS
customers can find what they need 1355 Shoreway Rd.
Marvin: Can you give us some idea of quickly and easily. The 100s of Belmont, CA 94002
who Jameco’s principal customers are? thousands of additional products we Tel (sales): 800-831-4242
Ray: Jameco’s largest and fastest carry are listed on our website with Web: www.Jameco.com
96 February 2008
IndexFeb08.qxd 1/10/2008 3:44 PM Page 97

■ LOOK FOR

AMATEUR
■ SEARCH FOR
Find your favorite advertisers here!
■ FIND

R4Systems, Inc. ....................................49


MISC./SURPLUS
AD INDEX Abacom Technologies ...............95
RADIO AND TV Scott Edwards Electronics, Inc. .............30
All Electronics Corp. .............................71 ActiveWire, Inc. .........................31
PolarisUSA Video, Inc. ...........................5 Trace Systems, Inc. .............................48
Front Panel Express LLC ......................49 All Electronics Corp. ..................71
Ramsey Electronics, Inc. ................20-21 XGameStation ......................................31
AP Circuits ................................19
MOTORS
BATTERIES/ DESIGN/ ASIC Advantage ........................86

CHARGERS ENGINEERING/ Jameco ................................................78 Cam Expert, LLC .......................31

ASIC Advantage ..................................86 REPAIR SERVICES PROGRAMMERS


Circuit Specialists, Inc. .........98-99

Cunard Associates ...............................31 Cam Expert, LLC .................................31 Comfile Technology ..................27
Electronic Design Mexico .....................30
NiCd Lady Company ............................36 Electronic Design Mexico .....................30 Command Productions ..............47
Electronics 123 ....................................31
ExpressPCB .........................................29 Cunard Associates ....................31
microEngineering Labs .........................54
BUYING ELECTRONIC Front Panel Express LLC ......................49 DesignNotes.com, Inc. ...............48
SURPLUS IMET Corporation .................................48
PUBLICATIONS Dimension Engineering ..............79
Earth Computer Technologies ..............31 NiCd Lady Company ............................36 Earth Computer Technologies ...31
Lakeview Research ..............................30
Jaycar Electronics ...................................9 PCB Pool .............................................36 Electronic Design Mexico ..........30
Pulsar, Inc. ...........................................31
CCD CAMERAS/ R4Systems, Inc. ....................................49
RF TRANSMITTERS/ Electronic Design Specialists ....48
Electronics 123 ..........................31
VIDEO Trace Systems, Inc. .............................48 RECEIVERS EMAC, Inc. ................................49
Circuit Specialists, Inc. ....................98-99 Abacom Technologies .........................95
DISPLAY
Exphil ........................................79
Matco, Inc. ...........................................31 Linx Technologies ................................79
ExpressPCB ..............................29
PolarisUSA Video, Inc. ...........................5 Comfile Technology .............................27 Matco, Inc. ...........................................31
Front Panel Express LLC ...........49
Ramsey Electronics, Inc. ................20-21
EDUCATION ROBOTICS
Hagstrom Electronics ................31

CIRCUIT BOARDS Command Productions ........................47 HobbyLab .............................................31


HobbyLab ..................................31

EMAC, Inc. ...........................................49 IMET Corporation ......................48


AP Circuits ...........................................19 Jameco ................................................78
LEDkit.biz .............................................30 Information Unlimited ................65
Comfile Technology .............................27 Lemos International Co., Inc. .................6
Cunard Associates ...............................31 PAiA .....................................................95 Integrated Ideas & Tech. ...........70
Lynxmotion, Inc. ...................................18
Dimension Engineering .........................79 RCG Research .....................................54 Jameco ......................................78
Net Media ...............................................2
ExpressPCB .........................................29 Schmart Board .....................................31 Jaycar Electronics ........................9
Pololu Robotics & Electronics ..............19
IMET Corporation .................................48 XGameStation ......................................31 Lakeview Research....................30
Robot Power ........................................19
LEDkit.biz .............................................30 LEDkit.biz ...................................30
PCB Pool .............................................36 EMBEDDED TOOLS
Pulsar, Inc. ...........................................31 Mouser Electronics ..............................17
SATELLITE Lemos International Co., Inc. ......6

Lemos International Co., Inc. .................6 Linx Technologies .....................79


R4Systems, Inc. ....................................49 NetBurner ...............................................7
Lynxmotion, Inc. ........................18
Schmart Board .....................................31
ENCLOSURES SECURITY Matco, Inc. .................................31

COMPONENTS Integrated Ideas & Tech. ......................70 Information Unlimited ...........................65


Microchip ...................................37
microEngineering Labs ..............54
Cam Expert, LLC .................................31 Linx Technologies ................................79
Front Panel Express LLC ......................49
KEYBOARD Matco, Inc. ...........................................31
Mouser Electronics ....................17

Jameco ................................................78
EMULATORS PolarisUSA Video, Inc. ...........................5 NetBurner ....................................7
Hagstrom Electronics ...........................31 Net Media ....................................2
Lemos International Co., Inc. .................6
Linx Technologies ................................79
KITS & PLANS TEST EQUIPMENT NiCd Lady Company .................36

Mouser Electronics ..............................17 Parallax, Inc. ...............Back Cover


ASIC Advantage ..................................86
DesignNotes.com, Inc. ..........................48
Pulsar, Inc. ...........................................31 PAiA ..........................................95
Earth Computer Technologies ..............31 Circuit Specialists, Inc. ....................98-99
Super Bright LEDs ...............................12 PCB Pool ...................................36
Electronics 123 ....................................31 DesignNotes.com, Inc. ..........................48
Pico Technology Ltd. UK ...........26
Dimension Engineering .........................79
COMPUTER EMAC, Inc. ...........................................49
Electronic Design Specialists ...............48
PolarisUSA Video, Inc. ................5
Information Unlimited ...........................65
Hardware Pololu Robotics & Electronics ....19
Jaycar Electronics ...................................9 Exphil ...................................................79
ActiveWire, Inc. ....................................31 Pulsar, Inc. ................................31
LEDkit.biz .............................................30 HobbyLab .............................................31
Earth Computer Technologies ..............31 QKITS ........................................31
NetBurner ...............................................7 Jaycar Electronics ...................................9
Pico Technology Ltd. UK .....................26 R4Systems, Inc. .........................49
PAiA .....................................................95
Microcontrollers / I/O Boards Rabbit, A Digi International Brand..3
QKITS ...................................................31 Trace Systems, Inc. .............................48
Abacom Technologies .........................95 Ramsey Electronics, Inc. .....20-21
Rabbit, A Digi International Brand...........3
Comfile Technology .............................27
EMAC, Inc. ...........................................49
Ramsey Electronics, Inc. ................20-21 TOOLS RCG Research ..........................54

Scott Edwards Electronics, Inc. .............30 Renesas Technology Corp. .......13


ASIC Advantage ..................................86
HobbyLab .............................................31
XGameStation ......................................31 NetBurner ...............................................7 Robot Power .............................19
Microchip ..............................................37
Schmart Board ..........................31
microEngineering Labs .........................54
LASERS WIRE, CABLE Scott Edwards Electronics, Inc. ..30
Mouser Electronics ..............................17
AND CONNECTORS
Information Unlimited ...........................65 Super Bright LEDs ...................12
Net Media ...............................................2
Trace Systems, Inc. ..................48
Parallax, Inc. ..........................Back Cover LSI (micon) DesignNotes.com, Inc. ..........................48
XGameStation ...........................31
Pololu Robotics & Electronics ..............19 Renesas Technology Corp. .................13 Jameco ................................................78

February 2008 97
Full Page.qxd 1/7/2008 1:31 PM Page 98

C i rcuitSpecialists.com C i rcuitSpecialists.com C i rcuitSpecialists.com

Our Premium All in One Repairing System


•All in One system. Combines the function of a Hot Air Gun, a Soldering Iron and
a Desoldering Gun.
•Microprocessor controlled ESD safe unit. All digital display of hot air temperature,
soldering iron temperature, desoldering gun
temperature and air pressure with touch type FREE CSI486
panel controls. Smoke Filter (a $27.99 value)
•The desoldering tool comes with zero crossing
circuitry preventing electrical surges and is with the purchase of a
equipped with air cylinder type strong suction CSI-9000
vacuum pump.
•The 24V soldering iron is compatible with the compound tip design by connecting the
ceramic heater, sensor, control unit and tip as one. Designed for efficiency.
Replacement of tips with easy slip in/out method.
•Compatible with various type of air nozzles. Item# Only
•Compatible with different kinds of tips. CSI-9000
•Full compliment of nozzles & tips are available. $249.00
•Use with lead-free or standard solder.
Details at Web Site > Soldering & Rework > Hot Air Rework

www.CircuitSpecialists.com Programmable DC Power Supplies


The CSI 3600 Series
Programmable DC Power
Supplies are equipped with a
Circuit Specialists Soldering Station $39.95! back-lit LCD display, number
w/Ceramic Element & keypad and a rotary code
Seperate Solder Stand switch for ease of use & quick
•Ceramic heating element for more programming. Voltage, Current & Power can all be displayed on the LCD
accurate temp control or computer screen (with optional RS-232 interface module). It can be
•Temp control knob in F(392° to 896°) & operated at constant current mode, constant voltage mode & constant
C(200° to 489°)
•3-prong grounded power cord/static safe tip power mode. It also can be set with maximum limits for current & power
•Seperate heavy duty iron stand output. Ideal instruments for scientific research, educational labs or any
•Replaceable iron/easy disconnect Item # application requiring a sophisticated DC-power source.
•Extra tips etc. shown at web site Rapid Heat Up!
CSI-STA
CSI-STATION1A Model CSI3644A CSI3645A CSI3646A
Only
DC Voltage 0-18V 0-36V 0-72V
Also Available w/Digital Display
SMD Hot Tweezer
$199.00
DC Current 5A 3A 1.5A
& MicroProcessor Controller Adaptor Fits
Fits CSI Each!
Power (max) 90W 108W 108W
Stations 1A & 2A,
2A,
$51.95 and CSI906 Details at Web Site
> Power Supplies > Bench Power Supplies
Item # $29.00
CSI-STA
CSI-STATION2A Item # ESD Safe CPU Controlled SMD
Details at Web Site CSITWZ-STA
CSITWZ-STATION Hot Air Rework Station
> Soldering & Rework > Soldering Stations The heater and air control system are built-in and
adjusted by the simple touch of the front keypad
20MHz 2Ch Analog Oscilloscope for precise settings.
In Business
w/Component Tester Temperature range is
from 100°C to 480°C /
•2 channels 2 traces 212°F to 896°F, and
•20MHz Bandwidth
•TV video sync filter the entire unit will
Blow Out Price enter a temperature
•Component test function Limted to
•Sensitivity: 5mV-20V/div drop state after 15
Stock on Hand!
•Sweep Time: 0.2us-0.5s/div minutes of non-use for
•Bandwidth: DC: DC-20MHz / AC: 10Hz-20MHz safety and to eliminate
•Vertical Deflection Operating Mode: CH A, CH B, excessive wear.
DUAL, ADD Since 1971 Item#
•CPU Controlled
Details at Web Site > Test Equipment > Oscilloscopes •Built-in Vacuum System CSI825A++
PROTEK 3502C: $359.00 Now Only $269.00 •Temperature Range:100°C to 480°C / 212°F to 896°F
•15-Minute Stand-By temperature "sleep" mode
•Power:110/120 VAC, 320 W maximum
Dual Output DC Bench Power Supplies Sale
High stability digital read-out bench power supplies
Details at Web Site $149.00!
featuring constant voltage and current outputs. Short- As Low As > Soldering & Rework > Hot Air Rework
circuit and current limiting protection is provided. SMT $99.50!
PC boards and a built-in cooling fan help ensure reli- Triple Output Bench Power Supplies
able performance and long life. with Large LCD Displays
•Source Effect: 5x10-4=2mV •Output: 0-30VDC x 2 @ 3 or 5 Amps
•Load Effect: 5x10-4=2mV HOT & 1ea. fixed output @ 5VDC@3A
•Ripple Coefficient:: <250uV ITEM! •Source Effect: 5x10-4=2mV
•Stepped Current: 30mA +/- 1mA •Load Effect: 5x10-4=2mV
•Ripple Coefficient: <250uV
*All 3 Models have a 1A/5VDC Fixed Output on the rear panel*
panel* •Stepped Current: 30mA +/- 1mA
CSI3003X-5:
CSI3003X-5 0-30v/0-3amp 1-4: $105.95 5+: $99.50 •Input Voltage: 110VAC
CSI5003X5:
CSI5003X5 0-50v/0-3amp 1-4: $114.95
$114.95 5+: $109.00 CSI3003X3:
CSI3003X3 0-30VDCx2 @3A $188.00 5+: $183.00
CSI3005X5:
CSI3005X5 0-30v/0-5amp 1-4: $119.00
$119.00 5+: $114.00
$114.00 CSI3005XIII:
CSI3005XIII 0-30VDCx2 @5A $249.00 5+: $234.00
Details at Web Site > Power Supplies > Bench Power Supplies Details at Web Site > Power Supplies > Bench Power Supplies

C i r c u i t S p e c i a l i s t s , I n c . 2 2 0 S . C o u n t r y C l u b D r. , M e s a , A Z 8 5 2 1 0
8 0 0 - 5 2 8 - 1 4 1 7 / 4 8 0 - 4 6 4 - 2 4 8 5 / FA X : 4 8 0 - 4 6 4 - 5 8 2 4
Full Page 2.qxd 1/7/2008 1:33 PM Page 99

C i rcuitSpecialists.com C i rcuitSpecialists.com C i rcuitSpecialists.com

PowerSupply1 Switching Power Supplies Stepper Motors


Part #: Motor Frame Holding Torque: Price:
These Highly Reliable PS1 Series, uni- Size:
versal AC input/full range single output 42BYGH404 NEMA 17 3.4kg.cm/47oz.in $17.95
power supplies comply with the RoHS
57BYGH207 NEMA 23 8kg.cm/111oz.in $24.95
directive. Choose between various 25,
40, 60, 100 & 150 Watt versions. They 57BYGH303 NEMA 23 15kg.cm/208oz.in $29.95
have the approval of UL and CE and 57BYGH405 NEMA 23 20kg.cm/277oz.in $34.95
come 100% full load burn-in tested and 85BYGH350B-03 NEMA 34 48kg.in/665oz.in $79.95
with overload/over and voltage/short cir- 85BYGH350C-03 NEMA 34 63kg.cm/874oz.in $119.95
cuit protection. Also included is a 2 year
manufacturer’s warranty.
Stepper Motor Controllers: 2 Phase Microstepping
Stepper Motor Driver (Bi-polar & Unipolar Motors)
NEW 25W Series Added! Part #: Dimensions: MicroStep: Price:
XCW220 100mm x 61mm 1(200), 1/2(400), 1/4(800), $39.95
PowerSupply1 Qty 1 Qty 10 Qty 100 x 19mm 1/8(1600)
25W Series CW220 99mm x 65mm 1/2(400), 1/8(1600) $49.95
Available in $14.90 $12.60 $10.78 x 30mm
3.3,5,12,15,24,48V CW230 115mm x 72mm 1(200), 1/2(400), 1/4(800), $59.95
x 32mm 1/8(1600), 1/16(3200),
40W Series 1/32(6400), 1/64(12800)
Available in $22.50 $18.90 $15.89 CW250 140mm x 94mm 1(200), 1/2(400), 1/8(1600) $69.95
5,12,15,24,48V x 45mm
60W Series CW860 147mm x 97mm 1(200), 1/2(400), 1/4(800), $119.95
x 30mm
Available in $26.88 $21.92 $18.25 1/8(1600), 1/16(3200),
1/32(6400), 1/64(12800),
5,12,15,24,48V
128(25600), 1/5(1000),
100W Series 1/10(2000), 1/25(5000),
1/50(10000), 1/125(25000),
Available in $32.80 $26.49 $22.50 1/250(50000)
3.3,5,7.5,12,15,24,48V
150W Series
Available in $40.75 $33.70 $27.90 Sirocco SMD Rework Unit
5,7.5,9,12,24,28,36V
The CSI-6028 is a small yet
powerful rework system. The
Sirocco style fan induces
Digital Storage Oscilloscope Module seamless airflow thru the heat-
ing element providing convec-
Convert any PC with USB interface to a high tion style heating, and this
performance Digital Storage Oscilloscope. This non-pressurized air stream
is a sophisticated PC basedscope adaptor pro- works perfectly for reworking
viding performance compatible to mid/high highly sensitive IC packages
level stand alone products costing much more! such as BGA, QSP, SOP and
Comes with two probes. Price plastic based SMD devices.
Price
Detai ls & S oftwar
oftware
e Breakthrough! Item # CSI-6028 SALE!
Download at Web
Web Si te $79.00
Details
Details at Web
Web Site
Site
> Test Equipment > Oscilloscopes
> Soldering & Rework > Hot Air Rework
PC based Digital
Digital Storage
Storage
Oscilloscope, 200MHz 5GS/s
equiv.
Item# 200DSO Only$819.00 Soldering Station w/Iron &
equiv. sampling USB interface
SMD Hot Tweezers
•Electrostatic discharge safe
mCU Controlled True RMS design with grounding measure
High Accuracy DMM •Tweezers directly applies heat
to components being repaired
The CSI2205D Micro Control Unit auto-ranging DMM is
UL Listed and designed for measuring resistance, HOT while avoiding nearby
components
capacitance, DC & True RMS AC voltage, DC & True
RMS AC current, frequency, duty cycle and temper- Item! •Suitable for crowded circuit
boards
ature, along with the ability to test diodes, transis- •24V output voltage to ensure
tors and continuity. A special feature included is the safety of user and protect soldered components on board
Auto Test Lead Input Indication Technology. This
will ensure that whenever you switch functions on Details
Details at Web
Web Site
Site Item# CSI-950+ $59.00
the DMM, the proper positive port LED will light > Soldering & Rework > Soldering Stations
indicating where to plug the red test lead into so
that no mistakes can be made by the user. It even 3-1/2 Digit LCD Panel Meter
goes so far as to give a warning tone if you do plug (enhanced version)
the lead into the incorrect jack! A very helpful fea-
The PM-128E is an enhanced version of
ture for the novice and even for the experienced our best selling PM-128A. The E version
user who is using the meter in less then ideal light- can be set to work with either a 5VDC or
ing conditions. Overall, we find this to be a meter 9VDC power source, will perform with
that compares very favorably with much higher either a common ground or an isoalted
priced competitors on the market today! ground, and is supplied with easy to use
jumper points so the end user can easily
Details
Details at Web
Web Site
Site
> Test Equipment > Digital Multimeters
Only set the measurement range required. $12.25
Quantity
Item#
PM-128E
Details
Details at Web
Web Site
Site
Item # CSI2205D $59.00 > Panel Meters > Digital LCD Display
Price Breaks
at website!

C i r c u i t S p e c i a l i s t s , I n c . 2 2 0 S . C o u n t r y C l u b D r. , M e s a , A Z 8 5 2 1 0
8 0 0 - 5 2 8 - 1 4 1 7 / 4 8 0 - 4 6 4 - 2 4 8 5 / FA X : 4 8 0 - 4 6 4 - 5 8 2 4
backcvr.qxd 1/7/2008 1:37 PM Page 100

You might also like