Professional Documents
Culture Documents
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
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
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
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
TECHKNOWLEDGEY 20 08
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.
■ BY VERN GRANER
PERSONAL ROBOTICS
UNDERSTANDING, DESIGNING & CONSTRUCTING ROBOTS & ROBOTIC SYSTEMS
PERSONAL ROBOTICS
■ 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
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.
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
$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
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
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
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
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
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
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
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
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
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
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:
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
$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
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 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. ;————————————————————————————————————————————
■ 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
SOURCES FOR
OEM Battery Packs
sales@nicdlady.com 20585 Camino Del Sol Unit B, Riverside, CA 92508
36 February 2008
Full Page.qxd 1/7/2008 1:16 PM Page 37
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.
●●●●
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
EQUATION 1
Z = Z ∠è = R + jX
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
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
40 February 2008
Steber.qxd 1/9/2008 4:04 PM Page 41
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
February 2008 43
Steber.qxd 1/9/2008 4:08 PM Page 44
44 February 2008
Steber.qxd 1/9/2008 4:08 PM Page 45
February 2008 45
Steber.qxd 1/9/2008 4:09 PM Page 46
46 February 2008
Steber.qxd 1/9/2008 4:09 PM Page 47
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
&2/.4 0!.%,3 %.#,/352%3
#USTOMIZED FRONT PANELS CAN BE EASILY
DESIGNED WITH OUR FREE SOFTWARE
&RONT 0ANEL $ESIGNER
s #OST
EFFECTIVE PROTOTYPES
AND PRODUCTION RUNS
s 7IDE RANGE OF MATERIALS OR
CUSTOMIZATION OF PROVIDED
MATERIAL
s !UTOMATIC PRICE CALCULATION
s &ABRICATION IN OR DAYS
3AMPLE PRICE
PLUS 3(
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
February 2008 51
Florian.qxd 1/9/2008 3:53 PM Page 52
52 February 2008
Florian.qxd 1/9/2008 3:58 PM Page 53
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.
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
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
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 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.
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
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
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
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
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-
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
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
* 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.
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
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
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
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
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
PICAXE PRIMER
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!
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
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
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
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
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
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
Check ou t our new webs tor e for many mor e gr eat t i tles!!
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
NE W!
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
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
OSCILLOSCOPES
90 February 2008
Classifieds Feb08.qxd 1/11/2008 2:45 PM Page 91
February 2008 91
TechForum.qxd 1/10/2008 3:40 PM Page 92
>>> 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
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
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
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
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
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
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
February 2008 97
Full Page.qxd 1/7/2008 1:31 PM Page 98
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 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