Nuts and Volts2004 12
Nuts and Volts2004 12
Nuts and Volts2004 12
Vol. 25 No. 12
Nuts & Volts
SPECIAL ALL PROJECTS ISSUE
December 2004
RF Field Str
Strength
ength Analyzer New Fantastic
3M™ DataCom Cable Tester
UNBEAT
UNBEATABLE PRICE This unit allows for mapping, testing and Compare at Over $2000! Low Price:
troubleshooting of various lines, includ- The 3201 is a high quality hand-held RF $1299.00!
ing installed data communi- Field Strength Analyzer with wide band
cations, phone wiring and Only reception ranging from 100kHz to
•WFM/NFM/AM/SSB modulated signals may
be measured.
coaxial cable runs.Performs $49.00 2060MHz.The 3201 is a compact & •Signal Levels up to 160Channels can be
multiple test on the following lightweight portable analyzer & is a must displayed simulaneously on the LCD
cable types, up to 1000 feet in length: for RF Technicians. Ideal for testing, •PLL tuning system for precise frequency
Unshielded telephone cables with RJ-11 installing & maintenance of Mobile measurement and tuning
and RJ-45 connectors; Ethernet 10 (100) Telephone Comm systems, Cellular •Built-in Frequency Counter
Phones,Cordless phones, paging systems, •LED Backlight LCD (192x192 dots)
Limited Time Offer Base-T; Token Ring; EIA/TIA-568 A/B; •All fuctions are menu selected.
AT&T 258a; USOC; 50 or 75 ohm Coax cable &Satellite TV as well as antenna •RS232C with software for PC & printer
Item# DT-2000
DT-2000 with F or BNC connectors. installations.May also be used to locate interface
Details at Web Site Includes: Holster, Case, 7 Remotes & Telecom Alligator Clips hidden cameras using RF transmissions •Built-in speaker
(Includes Antenna)
> Test Equipment > Specialty Test Equipment Limited Time Offer
Item# 3201
Details at Web Site > Test Equipment > RF Test Equipment
!
•Horizontal Resolution: 420TV lines
W
Details at Web Site 1-4:$159.00
$159.00 5+:$153.00
$153.00 •Lens: 3.8mm/F2.0 Pinhole/90° Angle of View
NE
> Miniature Cameras(Board,Bullet,Mini’s, B/W, Color) •S/N Ratio: > 48dB
•Min. Illumination: 0.8Lux/F1.2
SONY Super HAD CCD B/W Item# VC-8063CP 1-4:$79.95
$79.95 5+:$74.95
$74.95
Weatherproof
eatherproof IR Camera Details at Web Site > Miniature Cameras(Board,Bullit,Mini’s)
•Day & Night Auto Switch
•Signal System: EIA SONY Super HAD CCD Mini Color Camera
•Image Sensor: 1/3" SONY
Super HAD CCD •Signal System: NTSC
•Effective Pixels: 510 x 492 •Image Sensor: 1/4" SONY Super HAD CCD
•Horizontal Resolution: •Effective Pixels: 510 x 492
420TV lines •Horizontal Resolution: 420TV lines
•Built-in Lens: 6mm/F1.5
•Lens: 3.6mm/92° Angle of View
Item# VC-806B
•S/N Ratio: > 48dB
•Min. Illumination: 0Lux •S/N Ratio: > 48dB 1-4:$77.00
$77.00 5+:$73.00
$73.00
•Min. Illumination: 1.0Lux/F1.2
1-4:$84.50
$84.50 5+:$79.00
$79.00 Item# VC-317D •White Balance: Auto tracking
Details at Web Site
> Miniature Cameras(Board,Bullit,Mini’s) Details at Web Site > Miniature Cameras(Board,Bullet,Mini’s, B/W, Color)
System Accessories Power Supplies! Mini Phone! Rack Mt. for Monitors!
♦Miniture, Ultra-Light w/belt clip ♦Std. 19” rack cabinet for your display
♦’Potrans’ Mod. No. PP-303X
♦Has redial, stores 10 numbers, flash/call ♦’Kontron’ Model No. 6531-BUMM
♦Extra plug in 350W switching power ♦300W, Std. ATX waiting, hook on/off, mute...MORE! ♦Thick Lexan screen cover
supply, incl. CPCI-3500-P-38 ♦Headset has 2.5mm plug, will ♦Front panel lifts up
Power Supply $125.00! HSC#20190 $14.95 work with some cellphones!
♦’Power Computing’ Mod. No. TCX-20D ♦3 ringer tones, speed dial! ♦For up to 15” displays
♦Fujitsu 36GB SCA SCSI Hard Drive ♦200W, Std. ATX ♦15’ cord, adapter included ♦New, boxed units
10,000RPM ♦New, HSC 90-day warranty ♦HSC 90-day warranty.
36GB HD $79.95! HSC#19721 $12.50 HSC#20244 $9.95 HSC#20257 $75.00
Since 1963!...
Silicon Valley’s Electronic Marketplace
3 Retail/Wholesale Locations: Look for us on...
Order Toll-Free: 1-800-4-HALTED(442-5833)
Main Office - Mail Orders... or...ONLINE, AT: www.halted.com
3500 Ryder St. Santa Clara, CA 95051 Terms: Some quantities limited; all items are subject to prior sale. Minimum order:
Santa Clara 1-408-732-1573 $10.00 plus shipping. Orders under $30.00 subject to $3.00 handling fee, in addition to
seller ID:
shipping. All orders shipped by UPS Surface unless otherwise specified. $6.00 UPS charge
Sacramento 1-916-338-2545 hscelectronicsupply
added for COD. Visit our website for detailed information on domestic and international
Rohnert Park 1-707-585-7344 shipping methods.
Vol. 25 No. 12
PROJECTS COLUMNS
30 THE EVER SHRINKING µC 50 PARKING ASSISTANT 8 JUST FOR STARTERS
Developing with the PIC10F. Use existing garage door Dim lights with PWM.
by Peter Best sensors to help park your car.
by Dave Siegel
14 DESIGN CYCLE
38 CAMERA IR REMOTE A DSP-equipped
Remote shutter control for your 54 PHONE RANG microcontroller.
SLR. INDICATOR
by Rajkumar Sharma Know when you’ve missed a call.
by Michael Kornacker 20 Q&A
Pep up panel meters; wall
42 MUSCLE WHISTLER warts; mail alarm; and more.
Listen in on your nerve impulses. 56 DVM LEAD ZEROING
by Craig Kendrick Sellen Accurately measure low
resistances on your multimeter. 68 STAMP
by John Kacerek Stamp accessories, the easy way.
46 R/C AIRPLANE CAMERA
An automatic sequencer for
airborne flight. 75 IN THE TRENCHES
by Dan Gravatt Success in project building.
81 OPEN COMMUNICATION
Amateur radio kits, revisited.
DECEMBER 2004
86 PERSONAL ROBOTICS
p. 50 Exploring robotic behavior with
a Braitenberg vehicle.
p. 38
DEPARTMENTS
97 Advertiser’s Index
63 Classified Display Ads
18 Electro-Net
58 Electronics Showcase
p. 42 26
59
New Product News
News Bytes
66 NV Bookstore
Nuts & Volts (ISSN 1528-9885/CDN Pub Agree#40702530) is published monthly for $24.95 per year by 6 Publisher’s Info
T & L Publications, Inc., 430 Princeland Court, Corona, CA 92879. PERIODICALS POSTAGE PAID AT
CORONA, CA AND AT ADDITIONAL MAILING OFFICES. POSTMASTER: Send address changes to 6 Reader Feedback
Nuts & Volts, 430 Princeland Court, Corona, CA 92879-1300 or Station A, P.O. Box 54, 92 Tech Forum
Windsor ON N9A 6J5; [email protected]
DECEMBER 2004
4
Full Page.qxd 11/10/2004 11:08 AM Page 5
WWW.SUPERCIRCUITS.COM
VIDEO CRIME STOPPERS AND JAW DROPPERS!!!
OUTDOOR SEND AUDIO/VIDEO OVER 2.4GHZ WIRELESS SUPER 18 INCH FIBER OPTIC
FLOOD 1 MILE VIDEO KIT EASY TO SCOPE
LIGHT USE!
CAMERA $199.95 Transmits up to 150’
and produces a sharp
Needs only 1/2"
opening. Built-in
300 lines of resolution high intensity
Powered by halegon light.
and transmits Lengths available up
video through to 72”
AC lines! Operates on 900 MHz ARS
band. Strong 500 milliwatt out-
put makes it great for RC aerial
$89.95 $249.95
Receiver or robotic applications.
Included $99.95 B/W MICROVIDEO CAMERA 2 CH VIDEO SERVER
Easily connects to LAN’s
WEATHERPROOF
WORLD’S SMALLEST CAMERA
Featured in the
320 Lines
ion
$249.95 or even directly to PC’s
INFRARED CAMERA Of Resolut
Guinness Book of
World Records!
Only $11.95—
1.25” World’s Best Value
$49.95 Video Camera!
View video live from anywhere in
Tough metal turret-style
housing. Easy installation
$11.95 the world using any browser.
Tiny 0.375” square Put it on your R/C plane with our Features include auto email of
& precise camera aiming by 0.625” size! $89.95 video xmitter for a bird’s eye view! video during alarm conditions.
SEND VIDEO & AUDIO UP 1280 HOUR TIME QUAD/DVR VIDEO CARD
TO 300 FEET! MICRO AUDIO SYSTEM
LAPSE VCR Record indefinitely with
endless loop recording!
View and
$49.95 5:30
record video up
to 4 cameras
on your PC!
This 2.4GHz audio/video link
$9.95 This time lapse VCR lets you
works with any video camera. Super high gain microphone record 1280 hours-- that’s Records up to 1000 hours of
Operation is easy and license free. with built in preamplifier! nearly 2 months! $159.95 video on an 80 GB hard drive! $89.95
1” MINI MONITOR NEW! MICRO DIGITAL VIDEO WIRED COVERT SMOKE 4 CAMERA B/W DOME
RECORDER DETECTOR CAMERAS VIDEO SECURITY SYSTEM
New! Handheld
Records up to 40 Hours! Covers almost
pocket size
any room with
mini field monitor!
30º oblique
camera angle
Covert
camera
location 4-Dome cameras
1-Realtime b/w quad processor, &
power supplies
World’s smallest hard- Ask about or super stealth 1-12” B/W monitor
drive based digital versions for phenomenal low 4-12 volt power supplies,
Runs up to 24 hours on video recorder! light rating of 0.0003 lux. 2-3’ video cable
3 AAA batteries!
4-100’ integrated
700 foot wireless
video/power cables
$119.95 $499.95
version available for
$189.95 $59.95 Comes complete
for only.................. $279.95
UNDERWATER VIDEO WEATHERPROOF OUTDOOR
SYSTEM WITH MONITOR CAMERA WITH ZOOM LENS
AND 4 HOUR BATTERY Installation is a
RVICE IN
snap with easy See Hundreds Of Amazing SE
NO
QUALITY
1-800-335-9777
Underwater
One Supercircuits Plaza, Liberty Hill, TX 78642
5” CRT
Display Camera w/
Phone 1-512-778-6950 Fax 1-866-267-9777
Infrared Lighting Prices, specifications and availability are
Complete, plug and Comes with versatile 2.8-10 MM subject to change without notice. See catalog
play with 65 foot varifocal zoom/auto iris lens. or website for details of 110% low price guar-
cable! $99.95 Also available with 5-50 MM lens $159.95 antee. Published terms & conditions apply.
Copyright 2004 Supercircuits, Inc.
Please call us at 1-800-335-9777 to be rushed your free Microvideo and Security Catalog!
DECEMBER 2004 5
readfeedDec04.qxd 11/11/2004 10:26 AM Page 6
very much. It was the best the publisher from any and all claims, action, or
expense arising from advertising placed in Nuts &
investment we ever made. Volts. Please send all subscription orders,
Ralph D. Reed correspondence, UPS, overnight mail, and artwork
by J. Shuman Apache Junction, AZ to: 430 Princeland Court, Corona, CA 92879.
DECEMBER 2004
6
Full Page.qxd 11/10/2004 11:15 AM Page 7
FREE
advanced search.
• Over 3500 product datasheets & application notes
page
424 log available on-line. www.jaycarelectronics.com
• And we’re from Australia so you can trust us!
Cata
Part of our extensive build-it-yourself kit range
Get the Best Quality Video from Theremin Synthesiser Kit
your Home Theatre System KC-5295 $34.95
The Theremin is a
KC-5390 $64.95
weird musical
VIDEO SIGNAL STABILISER
instrument that was invented
Did you know you are not getting the best
early last century but is still used
picture from that expensive movie
today. The Beach Boys hit:
collection you paid good money for?? Movie
“Good Vibrations” featured
companies deliberately tamper with the video
the Theremin. You can
signal to restrict copying, but this robs you of
have one of these kits (cat
the true high quality picture your system is capable of and you deserve.
no. KC-5295) for $34.95.
Get the picture you paid for and strip out these annoying signals, including
All kits have first class
copyright protection, by connecting our Doctor Video Kit inline with your
instructions written in clear English text with plenty
DVD player or VCR. Kit supports S-Video and composite video signals. Case,
of illustrations and component identification.
circuit board, electronic components and comprehensive assembly
instructions are supplied. Some SMD component soldering required. This product is now available built and fully tested -
Caution: During signal conditioning, this unit removes 9VAC Wall Cat. AM-4025 $64.95
copyright protection. Piracy is a crime, and Jaycar Electronics Adaptor required
takes no responsibility for its potential for unlawful use. (Jameco part no.
226131CD $4.49)
V
arying the power delivered necessary to modulate the square since each period is broken into
to DC loads is a common wave is relatively simple, thanks to 100 count values: 0 to 99. A duty
problem in projects — such integrated circuits and the availability cycle threshold register stores the
as robotics — where motors and of power transistors that can switch count value at which the system’s
lights require more control than high currents. output changes from off to on (or
simply on/off. Rapidly changing When PWM is applied to drive a vice versa). The threshold, in this
supply voltage to a DC motor or light in a properly designed system, case, is 40 and the system resets the
light is often impractical or the human eye perceives varying PWM output to off each time the
disallowed by the electrical charac- brightness rather than rapid blinking. counter returns to 0. Therefore, the
teristics of the load. The rapid on/off is visually averaged PWM output remains off for the first
A common solution is to apply into a uniform brightness that is less 40 counts and then switches on
pulse-width modulation — PWM. than what would be seen if the light for the final 60 counts. This yields
PWM applies a square wave signal to is on continuously. a 60% duty cycle. A comparator
a load and varies the duty cycle of performs a “greater than or equal
the square wave to change power PWM Solutions to” test between the counter and the
consumption over time. threshold to determine the PWM
Figure 1 shows a varying duty There are many ways to imple- output state.
cycle square wave. The load draws ment a PWM solution. Purely digital The digital approach is practical
its full power during the on time and solutions rely on a counter to time if you already have a microprocessor
draws no power during the off time. the on and off periods of the square designed into your system. An
As the duty cycle increases to 100%, wave. This can be done with a micro- alternate approach is a dedicated
the load draws more power. As the processor or with hard-wired logic. analog PWM chip that modulates a
duty cycle decreases to 0%, the Figure 2 illustrates the digital square wave with an analog input
load draws less power. The circuitry approach. The square wave period — signal. These chips can support a
100 Hz — is wide range of operating frequencies
Figure 1. PWM:Varying the square wave duty cycle. defined by the sys- and very accurate modulation
tem’s reference for applications requiring high
fixed period frequency (10 precision.
kHz) and the Since PWM is often applied to
counter’s terminal high current loads, some PWM
Voltage
10 KHz
0-99 counter variable resistor (potentiometer)
that is manually adjusted.
PWM out You can construct a simple
>=
Everything For Electronics
“ Lower costs, higher output —it’s easy to measure the value of eBay.
My company counts on me to get great deals on test equipment. That’s why
I count on eBay. Oscilloscopes, lenses, transformers, signal generators…
all the gear I want is there for less. So far, I’ve bought $40,000 worth of
new and used equipment for just $20,000. With a well-equipped lab, we’re
troubleshooting more efficiently and getting products to market faster.”
© 2004 eBay Inc. All rights reserved. eBay and the eBay logo are registered trademarks of eBay Inc. Designated trademarks and brands are the property of their respective owners. All items subject to availability.
Stan Searing – eBay User ID: searing (595)
Application Engineering Manager, Pixim, Inc.,
a 50-person manufacturer of imaging platforms
in Mountain View, CA.
www.ebaybusiness.com
Circle #36 on the Reader Service Card.
NutNVolt200406.qxd 11/10/2004 11:28 AM Page 12
Mini-Kits...
The Building Blocks!
LED Animated Santa NEW!
Animated Santa and reindeer
display has 126 dazzling col-
Professional FM Stereo Radio Station ored LEDs! Makes a great hol-
iday sign! Animated motion
✔ Synthesized 88-108 MHz with no drift makes it come alive. Runs on standard 9V battery
✔ Built-in mixer - 2 line inputs, 1 mic input or external power supply.
✔ Line level monitor output
✔ High power version available for export use MK116 LED Santa Kit $19.95
The all new design of our very popular FM100! Designed new from LED Christmas Tree NEW!
the ground up, including SMT technology for the best performance
ever! Frequency synthesized PLL assures drift-free operation with sim- Electronic Christmas tree features 134
ple front panel frequency selection. Built-in audio mixer features LED bargraph bright colored LEDs in the shape of a
meters to make setting audio a breeze. The kit includes metal case, whip antenna and tree with 18 random flashing blinking
built-in 110 volt AC power supply. “candles”! Runs on a 9V battery or PS.
FM100B Super-Pro FM Stereo Radio Station Kit $269.95 MK117 LED Xmas Tree Kit $17.95
FM100BEX 1 Watt, Export Version, Kit $349.95
FM100BWT 1 Watt, Export Version, Wired & Tested $429.95 LED Animated Bell NEW!
This holiday bell is animated to
Professional 40 Watt Power Amplifier simulate swinging back and forth!
84 bright colored LEDs will dazzle
✔ Frequency range 87.5 to 108 MHz you with holiday cheer! Includes
✔ Variable 1 to 40 watt power output an on/off switch. Runs on 9V.
✔ Selectable 1W or 5W drive
MK122 LED Bell Display Kit $13.95
At last, the number one requested new product is here! The
PA100 is a professional quality FM power amplifier with 30-40
3D LED Christmas Tree NEW!
watts output that has variable drive capabilities. With a mere one
watt drive you can boost your output up to 30 watts! And this is Not your average LED display! 4 branch
continuously variable throughout the full range! If you are currently using an FM sections give this tree a 3D look! 16 red
transmitter that provides more than one watt RF output, no problem! The drive input is selectable for LEDs light it up with yellow LED’s for you
one or five watts to achieve the full rated output! Features a multifunction LED display to show you output to customize your tree! 9V battery base.
power, input drive, VSWR, temperature, and fault conditions. The built-in microprocessor provides AUTOMATIC
protection for VSWR, over-drive, and over-temperature. The built-in fan provides a cool 24/7 continuous duty MK130 3D LED Tree Kit $7.95
cycle to keep your station on the air!
SMT LED Christmas Tree NEW!
PA100 40 Watt FM Power Amplifier, Assembled & Tested $599.95
Build this subminiature Christmas tree
and learn SMT at the same time. Small
Synthesized Stereo FM Transmitter enough to wear as a badge or pen-
✔ Fully synthesized 88-108 MHz for no drift dant! Extra SMT parts are included so
✔ Line level inputs and output you can’t go wrong! Runs on Li-Ion cell.
✔ All new design, using SMT technology MK142 SMT LED Tree Kit $8.95
Need professional quality features but can't justify the cost of a commer-
cial FM exciter? The FM25B is the answer! A cut above the rest, the SMT LED Smiley Face NEW!
FM25B features a PIC microprocessor for easy frequency programming with- This is a great attention grabber and
out the need for look-up tables or complicated formulas! The transmit fre- also teaches you the basics of SMT
quency is easily set using DIP switches; no need for tuning coils or "tweak- construction! Display your “smiley” as
ing" to work with today's 'digital' receivers. Frequency drift is a thing of the a pin or badge! Extra parts included!
past with PLL control making your signal rock solid all the time - just like
commercial stations. Kit comes complete with case set, whip antenna, 120 VAC power adapter, 1/8" Stereo to MK141 SMT LED Smily Kit $8.95
RCA patch cable, and easy assembly instructions - you'll be on the air in just an evening!
LED Traffic Signal NEW!
FM25B Professional Synthesized FM Stereo Transmitter Kit $139.95
Impress your friends with this neat 4-way
traffic signal! Operates just like a standard
Tunable FM Stereo Transmitter signal, and features adjustable delay. Red,
✔ Tunable throughout the FM band, 88-108 MHz yellow, and green LEDs are used just like
✔ Settable pre-emphasis 50 or 75 µSec for worldwide operation the real thing! Runs on 9V battery.
✔ Line level inputs with RCA connectors MK131 LED Traffic Signal Kit $7.95
The FM10A has plenty of power and our manual goes into great detail
outlining all the aspects of antennas, transmitting range and the FCC rules Stereo Super Ear NEW!
and regulations. Runs on internal 9V battery, external power from 5 to 15 The stereo Super Ear features an
VDC, or an optional 120 VAC adapter is also available. Includes matching case! ultra high gain audio amp with
two sensitive microphones!
FM10C Tunable FM Stereo Transmitter Kit $44.95 Boosts audio 50 times! Includes vol-
FMAC 110VAC Power Supply for FM10A $9.95 ume control. Runs on 3 AAA batteries.
MK136 Stereo Super Ear Kit $9.95
Professional Synthesized AM Transmitter
Wheel Of Fortune NEW!
✔ Fully frequency synthesized, no frequency drift!
✔ Ideal for schools Just like the casino game! Just push
✔ Microprocessor controlled the button and the LEDs “rotate”
and slowly come to a stop, display-
Run your own radio station! The AM25 operates anywhere within the stan- ing the “winner”! Push it again to
dard AM broadcast band, and is easily set to any clear channel in your area. It start over. Runs on 9V battery.
is widely used by schools - standard output is 100 mW, with range up to ¼ mile,
but is jumper settable for higher output where regulations allow. Broadcast frequen- MK152 Wheel Of Fortune Kit $7.95
cy is easily set with dip-switches and is stable without drifting. The transmitter accepts
line level input from CD players, tape decks, etc. Includes matching case & knob set and AC power supply! RF Preamplifier
AM25 Professional Synthesized AM Transmitter Kit $99.95 Super broadband preamp from
100 KHz to 1000 MHz! Gain is
greater than 20dB while noise is less
Tunable AM Transmitter than 4dB! 50-75 ohm input. Runs on 12-15 VDC.
✔ Tunes the entire 550-1600 KHz AM band SA7 RF Preamp Kit $19.95
✔ 100 mW output, operates on 9-12 VDC
✔ Line level input with RCA connector
Light Sensitive Switch NEW!
A great first kit, and a really neat AM transmitter! Tunable throughout the entire
AM broadcast band. 100 mW output for great range! One of the most popular Senses light to turn your device on
kits for schools and scouts! Includes matching case for a finished look! at night, off at dawn! Provides a
NO/NC 5A relay contact.
AM1C Tunable AM Radio Transmitter Kit $34.95 Adjustable delay. Runs on 12VDC.
AC125 110VAC Power Supply for AM1 $9.95 MK125 Light Sens. Switch Kit $7.95
NutNVolt200406.qxd 11/10/2004 11:35 AM Page 13
The Newest Neatest Stuff! Just like at the airports, this hand
held metal detector wand Now this is neat stuff!
detects the smallest metal Nearly 10’ of electrolumi-
NEW!
Audio/RF Signal Generator objects hidden in both people nescent wire to install in
and packages. Rocker switch your car. BUT...it gets
✔ DDS and SMT technology! better! A built-in sensor
✔ 0 Hz to 5 MHz at 0.1Hz resolution! turns the unit on and power is
indicated with a green LED. modulates the EL wire to
✔ 0 to 10V peak to peak output level the beat of music! Can
✔ Sine, Square, or Triangle waveform When metal is detected, a red
LED is illuminated along with an be set for full mode,
Following our world famous SG550, we alert tone. Headphone jack is music mode, or off.
are proud to introduce the SG560, the provided for private security Plugs into 12VDC car
next generation signal generator! checks. Runs on a standard 9V jack. Fully assembled.
battery and includes a case &
To begin with we increased the frequency range all the way up to 5MHz and all strap. Factory assembled & tested. NWRR30 Red EL Kit $27.95
the way down to 0Hz (yes, we mean zero...or DC!) continuously in 0.1Hz steps NWRG30 Green EL Kit $27.95
CS10MD Security Wand $54.95 NWRB30 Blue EL Kit $27.95
across the entire range! Then we gave it a variable output level all the way up to
10V peak to peak in either Sine, Square, or Triangle waveforms! You can also pro-
vide a DC offset to the output to recreate TTL, 4000 series logic levels, low voltage
logic levels, AC waveforms with a DC component, or just plain AC signals! Electronic Watch Dog NEW! Automatic Robot Car NEW!
SMT and DDS technology is used throughout the SG560 for ultimate performance ✔ Sound activated ✔ Senses sounds and
and reliability. If you’re looking for a lab quality sig gen at a super hobbyist price, barking dog on a PC turns!
the brand new SG560 fits the bill...and a whole lot more! board!
This little car may
SG560WT Audio/RF Signal Generator, Factory Assembled $329.95 It’s nice to have a barking not look like a
dog to react to someone at robot, but it sure
our door. But not all of us acts like one! The
Digital FM Transmitters NEW! can have a dog! No prob- futuristic vehicle drives in a
lem there, build your own! straight path, but a highly sensitive
✔ Rock stable PLL synthesized Two distinct barking
✔ Front panel digital control and microphone detects sounds, and
sounds are sound activated changes direction! Impress your
display of all parameters! with a built-in microphone
✔ Professional metal case friends, yell at it, clap your hands, and
that has adjustable sensitivity. I wish it listens, and then turns around! Runs
✔ Super audio quality! my dog had adjustable sensitivity!
✔ 25mW and 1W models! on 2 standard AA batteries (not includ-
This dog eats 9-12VDC. Easy kit ed) Gets great MPB.
For nearly a decade we’ve been assembly.
the leader in hobbyist FM radio K2655 Watch Dog Kit $32.95 KSR1 Robot Car Kit $19.95
transmitters. Now for 2005 we
introduce our brand new FM30 series of FM Stereo Transmitters! We told
our engineers we wanted a new technology transmitter that would provide
FM100 series quality without the advanced mixer features. They took it as a chal-
lenge and designed not one, but TWO transmitters! Electronic Learning Labs
The FM30 is designed using through-hole technology and components and is
available only as a do-it-yourself kit, with a 25mW output very similar to our FM25
series. Then they redesigned their brand-new design using surface mount tech-
nology (SMT) for a very special factory assembled and tested FM35WT version,
with 1W output for our export market! Both are designed around an RF tight vinyl
clad metal enclosure for noise free and interference free operation. All settings PL130
PL300
are done through the front panel digital control and LCD display! All settings are
stored in the non-volatile memory for future use. ✔ Learn and build! PL500
✔ 130, 300, & 500 In One!
Both the FM30 and FM35WT operate on 13.8 to 16VDC and include a 15VDC plug ✔ Super comprehensive training manuals!
in power supply. The stylish metal case measures 5.55"W x 6.45"D x 1.5"H and is
a perfect match with your computer to broadcast your music files throughout your Whether you want to learn the basics of electricity, the theory of electronics, or
house. advanced digital technology, our lab kits are for you! Starting with our PL130, we
FM30 Digital FM Stereo Transmitter Kit, 0-25mW RF Output $199.95 give you 130 different electronic projects, together with a comprehensive 162
FM35WT Digital FM Stereo Transmitter, Assembled, 1W, Export $299.95 page learning manual. A great start for the kids...young and old!
NEW!
Step up to our PL300, which gives you 300 separate electronic projects along with
Hand Held Digital Scope With DVM Readout 165 page learning and theory manual. The PL300 walks you through the learning
✔ Digital waveform and measurement display! phase of digital electronics.
✔ 10MHz and 40MHz sample rates!
✔ Backlit LCD display If you’re looking for the ultimate lab kit, check out our PL500. Includes a whop-
✔ RS232 output (40MHz model only) ping 500 separate projects, a 152 page starter course manual, a 78 page
✔ Charger, case, probes included advanced course manual, and a 140 page programming course manual! The
PL500 covers everything from the basics to digital programming! Learn about
We’ve seen a lot of portable scopes and scope/meters, and we’ve electronics and digital technology the fun way and build some neat projects!
also seen the price tags! They have always been way out of the
reach and budget of the hobbyist. No more! Now for close to PL130 130 In One Learning Lab Kit $42.95
the price of a good DMM you can have a personal scope that PL300 300 In One Advanced Learning Lab Kit $69.95
also has DVM readout for dBm, dBV, DC, and True RMS! PL500 500 In One Super Learning Lab Kit $169.95
Frequency readout is also displayed on the screen through
markers, plus the scopes have two memories for digital storage.
The 40MHz model also includes an RS232 output and serial inter- MORE than just friendly on-line ordering!
face to capture the screen display on your scope to your PC at the
mere push of a button! These scopes run on 5 standard AA Clearance Specials, Ramsey Museum, User Forums, Dealer Information, FAQ’s, FCC
Alkaline batteries (not included) which provide up to 20 hours of Info, Kit Building Guides, Downloads, Live Weather, Live Webcams, and much more!
use. You can also use rechargable AA NiMH batteries instead and
they’ll be charged with the included power supply! Both units come with a cus-
tom foam lined high impact carrying case, set of high quality scope probes, AC
power adapter and a comprehensive user’s manual. If you’re working with elec-
tronic circuits, automotive applications, audio and stereo applications or other
www.ramseykits.com
applications, the personal scope is for you...at a price that can’t be beat!
HPS10SE Personal Handheld 10MHz Digital Scope
HPS40 Personal Handheld 40MHz Digital Scope w/RS232
$229.95
$299.95 800-446-2295
Get The Catalog! 590 Fishers Station Drive
Where
Electronics
✦
✦
Build It!
Learn It!
Get the brand new 2005 Ramsey Hobby Victor, NY 14564 Is Always ✦ Achieve It!
Catalog! 64 value packed pages of the (800) 446-2295
(585) 924-4560
FUN! ✦ Enjoy It!
neatest goodies around! Order your Circle #79 on the Reader Service Card.
copy on-line or give us a call! Prices, availability, and specifications are subject to change. Visit www.ramseykits.com for the
latest pricing, specials, terms and conditions. Copyright 2004 Ramsey Electronics, Inc...so there!
DesignCycle.qxd 11/9/2004 11:34 AM Page 14
T
o perform DSP (Digital Signal Processing) microcontroller features, like bidirectional I/O ports,
tasks, you’ll need a bit more than just math timers, and USARTs.
and some fancy programming. DSP hardware In addition, a DSP engine and on-chip analog-to-
traditionally came (and still can come) as a dedicated digital modules that can sample incoming signals at up to
DSP IC, which requires special compilers and debugging 500,000 samples per second complement the dsPIC
tools. microcontroller hardware.
These days, DSP-equipped microcontrollers — Sampling at high rates has its advantages, as you can
like the Microchip dsPIC30F2010 — contain standard get more of the incoming analog signal digitized and — as
Figure 1.The dsPICDEM 28-Pin Demo Board is very simple, as far as hardware goes. Most of the real action is taking place
inside the DSP engine of the dsPIC30F2010.
+5VDC
ICSP CONNECTOR
SW1
J1 R3 R2
6 6 3 3
PGC 5 2
PGD 5 2 MCLR RESET 470 4.7K
4 4 1 1
U2
J2 J3
RF3 RF2
PGD 1 PGC 1
2 2
3 3 RE0/PWM1L 26
RE1/PWM1H 25
RE2/PWM2L 24
RE3/PWM2H 23
RE4/PWM3L 22
RE5/PWM3H 21
RB0/INT 2
RB1 3
RB2 4
C1 22pF 1 5
MCLR RB3 +5VDC
9 OSC1/CLKIN RB4 6
7 J6
RB5 C14
7.37MHz Y1 U1 5
9
10 R5 2K .1uF 1 8 4
OSC2/CLKOUT RXOUT VCC
U1ATX 11 2 VDRV RXIN 7 8
C2 22pF +5VDC 13 12 3 6 3
VDD U1ARX TXIN NC
20 VDD 4 GND TXOUT 5 7
28 14 R6 2K 2
AVDD RD1
15 DS1275 6
RD0
8 VSS RE8 16 1
19 17 PGD
VSS RF3/PGD PGC
27 18 CONNECTOR DB9
AVSS RF2/PGC
+9VDC
dsPIC30F2010
1
+ R7 + C10 R8
GND
LED2 LED1
+5VDC +5VAN
Everything For Electronics
C6 C3 C4 C5
DECEMBER 2004
14
DesignCycle.qxd 11/9/2004 11:35 AM Page 15
MILLIVOLTS
VOLTS
• Designed for technicians and engineers who want to gain the necessary electronics and computer
skills to become an entry level ECET technician.
• Support and guidance from instructors throughout each course of the program.
• Hands-on lab experiments are an integral part of each course.
• Features 18 courses in electronics.
NUTS & VOLTS
Take courses on a quarterly schedule, 11 weeks per quarter starting in September, January and March. Select
courses are available during summer quarter. Call or visit our web site.
Everything For Electronics
LICENSED
ELECTRONIC TECHNICIAN
ANALOG
IN Learn at home in your
SAMPLE
AND HOLD ADC
DIGITAL
OUTPUT
spare time.
VREF-
Sample Control
#include <dspic.h>
You can earn more money
__CONFIG(FOSC,POSC & XTPLL4 & CLKSWDIS & FSCMDIS);
if you get an FCC License!
__CONFIG(FWDT,WDTDIS); Not satisfied with your present income?
__CONFIG(FBORPOR,PWRT16 & MCLREN & BORDIS);
__CONFIG(FGS,GCPU & GWRU);
Add prestige and earning power to your
__CONFIG(FCOMM,PGEMU); electronics career by getting your FCC
Government License.
#define BAUD1 57600
#define OSC1 7372800 The Original Home-Study course pre-
#define DIVIDER1 (((OSC1/BAUD1) /16) - 1) pares you for the “FCC Commercial
void main(void) { Radiotelephone License” at home in your
U1BRG = DIVIDER1; //load the baud rate generator
U1_UARTEN = 1; //enable the UART
spare time.
U1_ALTIO = 1; //select alternate TX/RX pins This valuable license is your professional
U1_UTXEN = 1; //enable transmitter “ticket” to thousands of exciting jobs in:
while(1){ //echo character received forever Communications, Radio-TV, Microwave,
while(!U1_URXDA); //wait for a received character Maritime, Radar, Avionics & more…you
while(!U1_TRMT); //is transmit buffer empty? can even start your own business!
//if transmit buffer is empty.. send character
U1TXREG = U1RXREG; No need to quit your job or go to school.
} This proven “self-study” course is easy,
} fast and low cost!
The UART code here simply echoes any character it GUARANTEED TO PASS – You get your
receives. I’ll embellish on this code the next time around.
In the meantime, get yourself some dsPIC hardware and be FCC License or your money will be refunded.
ready to do some serious DSP stuff with me when I return
in the February issue of Nuts & Volts. NV Call for FREE facts now!
(800) 932-4268 Ext. 220
RESOURCES www.LicenseTraining.com
HI-TECH Software
HI-TECH dsPICC C Compiler COMMAND PRODUCTIONS or mail
FCC LICENSE TRAINING - Dept. 220 coupon
www.htsoft.com today
P.O. Box 3000 • Sausalito, CA 94966
Please rush FREE details immediately!
Microchip
Name
dsPICDEM 28-Pin Demo Board
MPLAB ICD 2 Address
www.microchip.com City State Zip
www.gatewayelectronics.com
(Electronically Speaking, Gateway’s Got It!)
www.audioxpress.com
ONE PASSircuitTM
“The Future
Everything For Electronics
of Proto-
typing”
www.onepasinc.com
Wow! What a a cool item! Brand new HP Agilent model Rechargeable Battery Blowout!
Brand new laser scanner A
LST2829 Laser transmitter mod
module (size 1x1x1.5”!) includes red laser, beam ule. Capable of 622 MB/s data
splitting mirror, opamps, photo sensor, transistors, rates, 1 mW output power, 1300 C
processor, ICs, etc. From handheld laser barcode nm wavelength, includes on chip
reader. We sold out of the last style we had! No power monitor diode. These are
specs, but buyers figured out the hook up for the high end quality lasers and not
last group, we’ll post on the web any new info on often found on the surplus mar
this one, should be easy, has just 12 pins on the ket! Two style available, A: 32”
connector.
0131346R ................................................$14.95 B long thin pigtail fiber and B: 16” A B
long encased fiber. Each has the Popular Nicad batteries, 1.25V all brand new,
same electrical specs. Price: $9.95 each recent stock. A &B are NiCad and C is NimH.
C size Nicad Battery Item A: 0128526R Item B: 0128536R A: AAA 400mah 0125339R 2 for $1.00
B: Sub C 2500 mah 0125443R 2 for $1.75
This is the real deal, a true 2 A Hr Cellphone CMOS Camera Module C: 3.6 Volts 750mah 0125348R 2 for $3.00
Nicad, Button top works in any device
too! Brand new by Sanyo. Wow! Here’s the guts of Nice, new 5 AA cell nicad pack.
0130380R $2.00 the camera in all the new 6 Volt 700mah with 6” wire
cellphones. Brand new leads. Great for projects or
assemblies made by Pic cordless phone replacements.
Powerful DC Motor tos, model 0187837M11. 0125345R.....................$2.50
Camera head has neat rotating head and snazzy
Made by Johnson Electric look. Flexible circuit board has tiny connector on
12 VDC @0.85 A no load, 17,000 end for hook up. Opening the cam
rpm, 3 vdc @ .51 amps 4,200 era head reveals a super tiny sin Big box of 50 brand new
rpm, 6 vdc @ .6 amps 8,500 rpm. gle chip camera IC that is only 3/8” AA button top NiCads. Fit
Similar to Johnson Electric HC313MG series but square including built in lens! Sorry anywhere an AA battery
higher power. Actually runs as low as 1 volt oper we have no specs on this unit, but does. 1.25V 800mah.
ation! (1200 rpm .46 amps). Size: 2" l x 1.5" dia should be easy to research on the Best price in the USA!
7/8" long eccentric brass shaft end easily broken net or with a scope. 0128870R.............$19.95
off to form a .5" long x .312 dia round shaft end. 0128842R $8.95
0123850R .............................................$4.95
Tool Set Lithium Ion Rechargeables !!
Well made quality Rechargeable
3 piece plier set. Lithium batteries
pack the highest
WINDSOR DISTRIBUTORS COMPANY Includes deluxe
density of power
padded zipper
19 Freeman Street case. Pliers are big 8” in size, for size and
weight! Ideal rec
Newark, New Jersey 07105 3708 you get: needlenose, diagonal
tangular size is
Ph: 973 344 5700 Fax: 973 344 3282
and lineman style with handy
crimper and stripper dies on
A B
easy to fit in your C
each tool! Get a few for the project. All 3.6
Volt and approx rated Amp Hour capacity.
car, gifts and toolbox, they are that nice!
A: 1Ah 1.95x1.34x.4”
0128871R .............................................$12.95 0125337R.....$1.50
B: .8Ah 1.95x.1.34x.25” 0125349R.....$1.25
ORDERING INFO: Shipping and insurance charges made
Check our web site for more great deals! C: .8Ah 1.95x1.24x.23” 0125350R.....$1.25
after order is packed. You will be notified by Email. Orders
under $25 add $5.00 small order fee. Credit cards will only
be authorized on US and Canadian banks. Please contact
Windsor regarding payment instructions for other countries. www.shopatwindsor.com
DECEMBER 2004 Circle #54 on the Reader Service Card.
19
Q&A.qxd 11/9/2004 11:38 AM Page 20
Electronics Q&A
In this column, I answer Panel Meter enough current through Rf to equal
Pepper-Upper the input current. If the input current
questions about all aspects is 10 µA, then Rf becomes 100K with
of electronics, including . I have a large collection of good a 1 volt output. The formula is -V(out)
computer hardware,
Q panel meters, but find that many
of them are not sensitive enough.
= I(in) x Rf.
Now, let’s go to the other end
software, circuits, electronic Could you print a simple, one-transistor of the equation, where the output
circuit to “pep” them up using a voltage translates into a current to
theory, troubleshooting, and 2N2222 or similar transistor? drive your panel meter.
anything else of interest to Fran Hillibush For this example, I’ve selected
via Internet a 0-1 mA panel meter — a very
the hobbyist. common analog meter you can find
Feel free to participate . Would you go for an op-amp? at RadioShack under the guise of a
-1V
Q stereo amplifier using
Everything For Electronics
ers Q&A
+
tap into an internal ladder resistor. tion gate (upper 5uF
The taps are switched in and out left), which forces Digital Potentiometer
sequentially so that the resistance its output high and Manual Control
follows a linear path. The number of sets the U/D pin to
taps determines the resistance count up.
difference between the steps and the The frequency of the square wave as well as the external microphone —
resolution (coarseness) of the pot. oscillator is about 3 Hz; you may want are overloaded from the intensity
The higher the number of taps, the to raise or lower this frequency by of the loud music and, hence,
smoother the operation. changing the 5 mF capacitor to there’s distortion on playback. I’d
For example, a 10K pot with 32 match the step number of your like to control the gain to the
steps has a resistance change of particular pot. A 32-step pot needs camera microphone input either
312.5 Ω per step, whereas a 10K pot a larger cap (lower frequency) than automatically or manually. Do you
with 256 steps has a resistance a 1,024-step pot does. have information or a website on
change of just 39 Ω per step. building an adjustable gain micro-
Inside the digital pot is an Max Headroom phone amp? The camera has an
up/down controller that steers the external microphone input that
direction of the taps. The user inter- . I have a Sony Handycam DCR- provides some DC power.
faces this controller through three
methods.
Q HC40. When I tape my son’s
rock band, the built-in microphone —
Larry Smith
Richmond, IL
One method uses computer
protocols — like I2C or SPI — to name
but a few. Other digital pots — like the
AD5228 from Analog Devices — have
internal circuitry so that you have
HAMBOREE® 2005
Southeast’s Top Choice for
only two pins to contend with:
increasing resistance or decreasing Communications • Electronics • Computers
resistance.
The most popular interface for February 5-6, 2005
hobbyist and many audio applica-
tions is the incremental up/down Fair Expo Center, Miami, Florida
method. This uses three inputs. The
up/down pin directs the direction of
Manufacturers, Dealers, Tailgate,
the count and the increment pin License Exams, Fox Hunts, Awards
provides the clock that steps the
controller. The third pin is a chip
enable that’s grounded for normal
www.hamboree.org
operation. [email protected] or [email protected]
A simple manual interface using TEL: 305-226-5346 or 305-642-4139
this method is shown in Figure 2. A
momentary SPDT switch with a Details via mail: Evelyn Gauzens, W4WYR, 2780 N.W. 3rd St, Miami, FL 33125
center off position (RadioShack 275-
705) operates the digital pot. When SO. FLORIDA SECTION CONVENTION
DECEMBER 2004 21
Q&A.qxd 11/9/2004 11:40 AM Page 22
Q&A
+
100uF 100k 8 4
+
10k 27k
2.2uF 7
+ LMC662 2.2uF
+ 555 74HCT112
+ 15k
-
2.2uF S S
Electret 6 Buzzer J Q J Q
27k 33k 10k + Out 3 CP _ CP _
Mike 2
K Q K Q
47uF 1 5 R R
Rg .01 10k 10k 74HCT112
Low-Distortion Rg Gain
+
10uF
Mike Preamp 33k 2x Start
1.5k 23x
Figure 4
. Your problem is not enough the level for input to your recorder. reset input (pin 4) goes high and
A headroom. At loud volumes, the starts the time.
music peaks are being clipped, Two Is Enough After a time determined by the
which is causing your distortion. 100K pot, the piezo beeper will
What you need is an op-amp circuit . I need a circuit operating on sound for about half a second. The
with programmable gain that allows
for large voltage swings without
Q any voltage between 1.5 and 12
volts (1.5 volts preferred) that will
beep will repeat itself one more
time and stop. That’s because the
clipping, like the circuit in Figure 3. output an audible beep about 3 sec- flip-flop output on pin 4 has now
The first condition is to boost onds after throwing a switch (I can flopped (gone low) and shut down
the power supply voltage and use either a regular or momentary the 555. If you can find a J-K
current to a level where it can handle switch), then beep again after a flip-flop that works down to 1.5 volts
the signal by switching from the random delay of about 1 to 5 (they exist, but are not readily
Handycam’s internal battery to a 9 seconds after the first beep. available), you can replace the 555
volt radio battery. This will provide Randy Schroeter with the Z1555 and reduce the
an undistorted 1.8 volts of swing. via Internet 5 volts to 1.5 volts.
The gain of the amplifier is For those readers who want the
controlled by Rg using the formula . Random? Not easy — but I can same beeper feature without the
Gain = ((33K/Rg) + 1). With the
values shown, the gains are 2, which
A give you a simple circuit (Figure
4) that will give you two beeps per
push-button, replace the switch with
the output of a logic gate driven by
is suitable for live music — like your press, with an interval that you can your circuit. All you need is a
son’s rock band — and 23 for every- vary using a single control. The momentary zero-logic (GND) output
day recordings. The 10K pot adjusts heart of the circuit is the 74HCT112 pulse to reset the flip-flops.
flip-flop. (Are you
Figure 5 surprised it isn’t the EL Panels?
+5V to +15V 555?) This is a J-K
RadioShack
flip-flop that changes .Whatever happened to electro-
1N4004 273-1380
EL
state with every clock
pulse and can be found
Q luminescent panels? They
change color and brightness with
Panel
8 4 in ripple counters. The changing voltage and frequency.
3
1k start button resets the Craig Kendrick Sellen
2N5551
flip-flops so that the via Internet
555 Frequency
20k
7 1k
NUTS & VOLTS
6 Figure 6
2
Typical Wall-Wart
AC Adapter
1 5 0.47 Fuse T1
Plug
Everything For Electronics
Filter
Capacitor
EL Power Supply AC
DECEMBER 2004
22
Q&A.qxd 11/9/2004 11:41 AM Page 23
Q&A
. EL panels are
A still alive and well.
They are often used in
Figure 7
DECEMBER 2004 23
Q&A.qxd 11/9/2004 11:42 AM Page 24
Q&A
+
100uF 470 terminal voltage regulator and two capacitors. Figure 8
shows a voltage regulator circuit for positive and negative
1k 10k
LED input voltages.
4N25
Remember, the wall wart voltage has to be at least 2
2N5064
volts higher than the regulator voltage and the current is
Mailbox
limited to 1 amp.
1k 0.1
Door
Mail Delivery Alarm
. I built a remote mailbox alert circuit described in the
Sometimes, the inner pin is positive and sometimes it’s
negative. Make sure you know the difference before you
Q July 2000 Poptronics. When the box opened, a switch
engaged and fired an SCR — so far, so good. But it didn’t
plug it into your circuit. work for long, so I replaced the transistor and SCR. Again,
There is also an issue of voltage regulation — or lack it worked, but not for long. I assume something is failing.
thereof. Let’s go back to the 12 volt, 300 mA wall wart I What is it?
mentioned. With a light load, a 12 volt wall wart can pump T. Hunter
out in excess of 16 volts. Load it and the output voltage via Internet
drops (Figure 7). At 300 mA, you’re at 12 volts. Nudge
it a bit more — say to 400 mA — and you’re looking at . I looked over the circuit and it seems solid enough —
11 volts.
Normally, this isn’t an issue because I always
A for a PCB design — but not for a long wire run with a
normally-open switch at the terminal end, which basically
makes the wire run into a big antenna. That is, any EMF
that comes down the line is going to be fed to your indoor
sensor electronics. Those spikes can be pretty severe. You
know the rest.
Instead of a high impedance open loop, what you
need is a low impedance loop with current flowing
through a closed switch that is interrupted when the mail
door opens. In fact, it was one reason that the 4-20 mA
instrumentation standard was established. Current flow
equates to lower impedance, which equates to smaller
spikes.
Here’s what I’d do. (I’ve saved as much of your
original parts investment as I could, most of which I would
have used anyway.) Use a normally-closed mailbox switch
and have it drive an optocoupler, like a 4N25 (Figure 9).
Have the 4N25 transistor short out the signal to the SCR
so that the SCR only triggers when power is lost in the
loop. This configuration also has the benefit of detecting
breaks in the line (another reason for the 4-20 mA
standard). Yes, it draws constant power, but — for this
application — it’s the right solution.
Q&A
+
LEDs in series, the voltage drop based NLDN 1.8V - 3V Sense 4 2.2uF
3
exceeds that of a reasonable battery (National Lightning SHDN
GND 0.13 ohm
pack. Can you help me out with a Detection Network) On/Off 2
circuit that works with either flash- uses mainly time
light batteries or a gel cell? -of-arrival (TOA)
Richard Herndon sensors to determine
LED Flashlight
Bastrop,TX the position of the
lightning strike. The precise time at lightning at www.Vaisala.com
. The circuit in Figure 10 will light each site is determined using a GPS Ken Devine
A four white LEDs from two
alkaline D cells. The ZXSC310 is a
receiver and claims a positional
accuracy of 1/2 km. This accuracy
Aurora, Ontario, Canada
• Simulator includes external devices (LCD, Terminal, I2C etc) and runs up to 10 times
faster than standard environments
Everything For Electronics
applications), the GTT is the first device that can be safe- DC SERVO CONTROLLER
ly installed on the ground line in order to eliminate one of
he new PicoMotion™
the common causes of crashes, lock-ups, and system
degradation — ground transients.
Unlike conventional suppression techniques that pro-
T
from PicoBotics, Inc.,
is among the smallest
tect only the AC line, the GTT incorporates a patented cir- and most feature-rich
cuit with no moving parts or sensitive electronics and — as DC brushed motor
a result — does not pose any threat to the intrinsic safety controllers on the
ground. market. With 11
In sensitive micro-electronics, ground transients are one modes of operation,
of the most frequent problems and can cause significant dis- the end user is sure to
ruption in the operation of microprocessor-based equip- find a mode for any
ment. Microprocessor circuits are constantly measuring application. Quadrature encoders of up to 2,048 CPR are
logic voltages against the "zero voltage reference" or supported.
ground and its decision is the result of discrimination of Some of the features include; 1x, 2x, 4x encoder
one rapid voltage transition from another, making ultra- decoding, 12 trapezoidal profiles, 10 PID settings, current
clean and quiet electrical grounds essential. Current micro- monitoring and reporting, analog control, R/C control,
processors expect to see less than .5 volts of neutral to RS232 and TTL serial control with any combination of the
ground and future innovations will soon lead to designs above.
using voltages near .3 volts. If a microprocessor sees more With data logging and upgradeable firmware, this
than .5 volts, operational problems may occur that cannot small board (2" x 2") is the biggest commotion in motion
be duplicated or explained. control. PicoMotion includes PicoTalk™ setup and servo
The GTT works by opposing changes in electron tuning software for Windows®.
flow on the ground wire. Its ability to oppose the electron The operating range is from 12 to 50 volts at currents
flow slows the damaging rise and fall time of a power of up to 3 A, continuous (6 A, surge). PicoMotion costs
surge rather than clipping it off
entirely. By doing so, it controls fre-
quency rather than amplitude and
keeps damaging voltages from
entering.
Possible hobbyist projects for
the GTT include data protection on
computers, ham radio operations,
home theater entertainment systems,
robotics, security, and video systems
— basically protecting any micro-
processor-based electronic device
to ensure the utmost in reliability,
clarity, and quality of performance.
The GTT offers a wide frequency
range of 50 kHz to 2.0 GHz with a fast
response time for both current and
voltage rise. The standard operating
temperature range is -40° to 85° C.
The device measures 65 x 55 mm
and retails for $99.90.
For more information, contact:
9 CORPORATION
1121 E. Main #340
St. Charles, IL 60174
630-762-1148
Fax: 630-762-1765
Email: [email protected]
Web: www.9corp.com
Circle #116 on the Reader Service Card.
M icromega Corporation
announces the uM-FPU
Floating Point Coprocessor.
package at a price of $14.95, with volume discounts
available.
For more information, contact:
The uM-FPU interfaces to vir-
tually any microcontroller MICROMEGA CORPORATION
using a SPI interface, making it 1664 St. Lawrence Ave.
ideal for applications requiring Kingston, ON K7L 4V1
floating point math — such as Canada
converting sensor readings, Tel: 613-547-5193
robotic control, data manipulation, and other embedded Web: www.micromegacorp.com
control applications. Circle #138 on the Reader Service Card.
The uM-FPU provides support for 32-bit IEEE 754
compatible floating point operations and 32-bit integer Working on Something Cool?
operations.
A PIC-compatible mode is also available to support If you are launching a new product, let us know!
PIC format floating point numbers. An extensive list Send us a short write-up (including product specs,
of functions are built-in, including floating point math, applications, and price), a high res photo of the product,
long integer math, exponential functions, trigonometric
and customer contact information.
functions, data conversion, and formatting functions. A
built-in debug monitor is available to assist in developing
and debugging code. Send your announcement to
A unique feature of the uM-FPU is the ability to define [email protected] today to be
user functions. User functions are defined as a series of considered for future New Product News installments!
built-in operations and are stored in Flash memory on the
NUTS & VOLTS
Everything For Electronics
Cleveland Institute of Electronics offers distance learning CIE’s Distance Learning Programs
programs that will prepare you for rewarding careers in
• Electronics Associate Degree
Electronics Engineering or Computer Technology
- even if you have no experience! • Computer Associate Degree
• Basic Electronics with Lab
CIE's courses allow you to learn new technology at your
own pace, in your own home, without disrupting your • Advanced Electronics Troubleshooting with Lab
present job or lifestyle. • Electronics Technology with FCC Preparation
No prior experience is needed and you can do all your • PC Troubleshooting
training at home with full instructor support, extensive • Computer Networking
learning labs and on-line exams.
• Wireless Technology
They're fast, convenient, affordable and quickly • COMING SOON!
becoming the new way to earn an accredited degree. Industrial Electronics with PLC Technology
Send for your FREE CIE course catalog and take the
first step toward building a successful career in Cleveland Institute of Electronics
electronics and computer technology. You’ll find 1776 E. 17th St, Cleveland, OH 44114
it has many rewards!
FCC License Prep Course Basic Electronics Course PC Board Design with Lab
19 FCC prep lessons on CD ROM. 39 lessons • 2 labs • 53 exercises 4 lessons • lab • CD ROM
01-FCC01 (cert) ................... $49.95 03-Introb (cert) ....................... $225 02-261 (cert) ............................ $195
Fiber Optics Course with Lab Oscilloscope Course Intro to Information Systems
2 lessons • Lab • Video • Certificate 7 learning topics • software 9 lessons • certificate
01-FB02 ..................................... $175 01-SCP01 (cert) ......................... $95 01-CET111 ................................ $195
The Ever-Shrinking µC
Six Pins and One MIP — If You Can See It!
This Month’s
Projects
The PIC10F20X Family of
A
s you might imagine, I spend lots of
Ever-Shrinking µC . . .30 my time reading technical books Microcontrollers
Remote Trigger . . . . 38 and electronic journals. Recently, to
Muscle Whistler . . . 42 cut the ice, I’ve been reading about the The PIC10F206 is the largest of the
Airplane Camera . . . 46 exploits of men who flew and crewed B-17 tiniest microcontrollers in the world. The
Parking Assistant . . . 50 bombers for the Eighth Air Force in World PIC10F200 and PIC10F204 microcontrollers
Telephone Rang . . . . 54 War II. If you recall your history, the flyers of contain 256 words of program Flash and 16
Zeroing Circuitry . . 56 the “Mighty Eighth” had one of the highest bytes of SRAM. The PIC10F202 and
casualty rates in the war. Why? Because they PIC10F206 microcontrollers are loaded with
were doing something that had never been double the program Flash of the PIC10F200
done before. and PIC10F204 microcontrollers (512 bytes)
On a daily basis, these men braved high and contain eight more bytes of SRAM
The Fuzzball altitude cold, bad weather, anti-aircraft fire, (24 bytes).
Rating System enemy fighters, and mid-air collisions with The differentiator of the same-sized
their own bombers to attempt to put their variants of the PIC10F20X family is the
To find out the level thin-skinned aircraft, tons of aviation gasoline, addition of an onboard comparator found in
of difficulty for each and bombs over a predetermined ground the PIC10F206 and PIC10F204 silicon. Both
of these target in broad daylight. the PIC10F206 and PIC10F204 comparator
projects, turn to Electric flying suits (a precursor to modules are governed by an internal absolute
Fuzzball for electric sleeping blankets), wool-lined flying voltage reference with all comparator inputs
the answers.
jackets and shoes, and oxygen were essential and outputs visible on their respective
The scale is from to the survival of the crews while on their multiplexed I/O pins. The output of the
1-4, with four dangerous missions. I’m not going to take you comparator can also be configured not to be
Fuzzballs being flying on a B-17, but — like the B-17 flyboys — shown on the microcontroller I/O pin.
the more difficult we will today be doing something no one else Each PIC10F20X microcontroller has four
or advanced has done. Snap up that flight jacket and take multiplexed I/O pins, which include three
projects. Just look a deep breath from that oxygen mask bi-directional I/O pins (GP0, GP1, and GP2)
for the Fuzzballs in because — for the rest of this article — you will and one input only pin (GP3) when all of the
the opening header. be breathing pure oxygen at high altitudes. I/O pins are configured for general-purpose
We’re going to fly some highly technical I/O mode. All of the GPIO (General-Purpose
You’ll also find missions on Little Bits, which is powered by a Input Output) pins except GP2 can be config-
information included in pair of PIC10F206 engines. ured with weak pull-ups and wake-up on
each article on any change operation. Each I/O pin can source or
special tools Figure 1. Yep, the PIC10F206 is a tiny bugger, but sink 25 mA, which results in a total of 75 mA
or skills you’ll it’s still big enough to allow you to hang some that can be sourced or sunk by the
need to complete the wire-wrap wire off of its pins or solder it onto
project. a set of SOT-23 copper pads. PIC10F20X microcontroller’s I/O port.
Thus, the PIC10F20X family of microcon-
Let the trollers can directly drive small resistive loads
soldering begin! and LEDs.
Clocking for the PIC10F20X microcon-
trollers is provided internally. A 4 MHz internal
NUTS & VOLTS
Little Bits
Even though the PIC10F20X microcontrollers are tiny, Figure 2. Little Bits is a combination of a regulated 5 VDC
power supply and a pair of PIC10F206 microcontrollers.
there is no reason why the average Microcontroller Joe A third PIC10F206 can be programmed and run from the Wells-CTI
can’t put them to use. Believe it or not, you can actually SOT-23 programming socket position.Two banks of jumper-selectable
solder some wire-wrap wire to each of the PIC10F20X’s six LEDs are included to free you from having to pull out that logic
probe.This photo also shows the dual-row 20-pin female header
pins and breadboard the little bugger just like you would I added to allow easy access to the pair of Little Bits’
any other electronic part. On the other hand, you could PIC10F206 microcontrollers.
also put together a specialized PIC10F20X printed circuit
board that would include a regulated +5 VDC power source, an ICSP socket, and some LEDs with a breadboard
Figure 3. The ICSP connector in the schematic is common to all of the PIC10F20X microcontrollers. Jumper blocks allow for
easy configuration of the Little Bits microcontrollers.
+5VDC +5VDC
6 6 3 3
GP1 5 5 2 2
GP0 4 1 GP3 VDD VDD VDD
4 1
1 3 4 6 1 3 4 6 1
3
+5VDC 4
6
HEADER AREA
C3 C4 C5
JR1 +9VDC VR1 +5VDC
.1uF .1uF .1uF R1 R2 R3 R4 R5 R6 D7 LM340S-5.0
331 331 331 331 331 331 1 1 3
IN OUT
1N5819 C1 + C2 R7
GND
10uF 331
D1 D2 D3 D4 D5 D6
2
D8
DECEMBER 2004 31
Best.qxd 11/9/2004 10:52 AM Page 32
Project
Figure 5.
Since I’m not pushing a single application here, we’ll
be adding auxiliary supporting hardware as we gain
altitude with our PIC10F206 projects. So, rather than
32 DECEMBER 2004
Best.qxd 11/9/2004 10:53 AM Page 33
The Ever-Shrinking µC
overload the Little Bits bread- Listing 1. Chances are you’ll never need to inspect the assembler code that the
board area, I added a dual-row HI-TECH PICC C compiler generates. My purpose of showing it to you here is to
20-pin, .1 inch-spaced female point out how good the assembled C code really is.
connector (Jameco part number //*********************************************************************
70826) to my Little Bits to allow //* HI-TECH C SOURCE CODE FOR INVERTER MODULE
the association and disassocia- //*********************************************************************
tion of external hardware that is #include <pic.h>
fitted with a matching set of
dual-row male .025 inch header __CONFIG(MCLRDIS & WDTDIS & UNPROTECT);
posts. This will come in handy
void main()
when we teach the PIC10F206 {
to control external devices and TRIS = 0b11111011; //GP2 = output : GP3 = input
communicate with the outside FOSC4 = 0; //GP2 = I/O pin
world. CMCON = 0b11110111; //comparator off
OPTION = 0b11001111; //pull-ups and wake-up off
Project
The Ever-Shrinking µC
0b11111011 is the 2’s comple- Listing 2. It would defeat the purpose of using C, but you could actually write your application
ment representation of -5. If that in C and then look at the generated assembler to figure out how to write that same
is true, then the negative number application more efficiently with assembler.
2’s compliment rule states that //*********************************************************************
— if I invert every bit within //* HI-TECH C SOURCE CODE FOR DUAL INVERTER MODULE
0b11111011 and add 1 — I //*********************************************************************
void main()
should be able to add the inverted {
result of the original number TRIS = 0b11111001; //GP3 = input #1 : GP2 = output #1
(0b00000101 or +5) to the orig- //GP0 = input #2 : GP1 = output #2
inal number (0b11111011 or -5) FOSC4 = 0; //GP2 is an I/O pin
CMCON = 0b11110111; //comparator off:pullups off:wakeup off
and end up with 0. Let’s try that: OPTION = 0b11001111; //prescaler assigned to WDT
Project
92 1FA 20B movf btemp+3,w AND gate. I'll also describe how to
93 1FB 643 btfsc 3,2
construct various other logic gates
94 1FC BEA goto l30004
95 1FD BF6 goto l6 using the PIC10F microcontroller.
Everything For Electronics
The Ever-Shrinking µC
I
have designed this project for photographers who with 38 kHz generated internally.
want to activate their cameras from a distance. It can Circuit BT1 has a 3 VDC power supply. Two AA or
be used for Canon SLR (Single Lens Reflex) cameras, AAA batteries can be used. C1 is a supply filter; J1 and
like the Canon EOS66, EOS88, EOS500N, EOS3, J2 are jumpers that are used to set the code for the
EOS33, and the latest digital Canon EOS300D — which is product. SW1 is a double action switch; this special
a professional digital camera. The range of this remote is switch is mainly made for camera applications. It is
approximately 15 feet. not easily found, but a link to a supplier is provided. C1,
This project features a simple, small unit and full-use C2, and Y1 resonate to internally generate the 38 kHz
capabilities for arial, wildlife, and physically dangerous oscillator. D2 is a 5 mm LED, which indicates the
photography. transmission.
There are two components to this project. The first Q1, Q2, and R2 drive the infrared LED, and R1 limits
is the transmitter and the second is the receiver. The its current. Figure 2 shows the circuit configuration for the
transmitter is based on the SM5021B IC and the receiver double action switch and shows how the switch works.
is based on the SM5032B IC. These two ICs are specifically
made for infrared media. Receiver
Transmitter Look at Figure 3 to see the receiver. TSOP1738 is a
miniature 38 kHz infrared receiver for remote control
Figure 1 is an infrared transmitter for a camera. An applications, R1 is to control the current to U1, and
SM5021B IC is the heart of the transmitter; this IC is C2 is the power supply filter. Q1, R3, and R2 are for
available in 16-pin DIP and SO packages. This little, inverting the data coming from U1. U2 is the SM5032B
handy encoder is made for infrared transmission media decoder.
DECEMBER 2004
38
Sharma.qxd 11/9/2004 11:00 AM Page 39
DECEMBER 2004 39
Sharma.qxd 11/9/2004 11:02 AM Page 40
Project
EMBEDDED LINUX
U1 SM5021B decoder
Q1, Q2 BC547 NPN transistor
D1 IR LED,Vishay TSAL4400
Starter Kit
D2 5 mm red LED
Y1 455 kHz resonator
BT1 Two AA or AAA batteries
FEATURES INCLUDE: J1,J2 Jumper
Linux 2.4 Kernel
486-133MHz SBC SW1 Double action switch
10 Base-T Ethernet
8MB DOC Flash Disk
16MB RAM Receiver Parts
Power Supply
R1 47 Ω (all resistors are 1/4 W)
Carrying Case
Starting at $399.00
R2 10K
X-Windows (option) R3 3.3K
RealTime Linux (option) R4 330 Ω
I
R5 43K
magine running Embedded Linux on a Single R6, R7 4.7K
Board Computer (SBC) that is 4.0" x 5.7" and
boots Linux from a Flash-Disk. No hard drives, R8, R9 220 Ω
no fans, nothing to break. Now your hardware C1,C2 4.7 µF 25 V
can be as reliable as Linux! If your application C3 1,000 pF disc
requires video output, the X-Windows upgrade U1 PIN diode,Vishay TSOP1738
option provides video output for a standard
VGA monitor or LCD. Everything is included; U2 SM5032B
NUTS & VOLTS
$295
Capture digital signals down to 25nS
with arbitrary trigger patterns.
See the spectrum and waveform of analog
signals simultaneously and in real-time Pocket Analyzer combines a high speed sample-synchronized storage scope
and logic analyzer with a programmable waveform and logic pattern generator.
Also included is an integrated real-time spectrum analyzer and powered "Smart
Waveform Generator POD" expansion interface so you've got all bases covered!
Load up to 32K arbitrary waveform and replay
via the onboard DAC (10MS/s) or a digital About the same size and weight as a Pocket PC, this USB powered BitScope
pattern from the POD (40MS/s) needs no bulky accessories. It's the perfect low cost "go anywhere" test and
debug solution.
Standard 1M/20pF BNC Input BitScope "Smart POD" Connector BUS Powered USB 2.0 Device External/Passthru Power Supply
200uV-20V/div with x10 probe 8 logic channels, 2 analog channels Single USB cable to your PC Auto senses an external supply -
S/W select AC/DC coupling Dual channel capture from POD A/B Compressed data transmission removes power load from USB
S/W select 50ohm termination Async serial I/O for external control Simple ASCII control protocol for use with unpowered hubs.
Arbitrary Waveform Generator Logic Pattern generator 32K 40MS/s BitScope Scripting Language Supplies up to 500mA via POD
• R&D
• Education
• Robotics
• Lab Scope
• Fast DAQ
• Service
• Debug
T
here are 656 muscles in the human body and all lower arm) are active when you clench your fist and
of them generate a small voltage potential when the gastrocnemius muscle (in the calf) is active when
they are activated. This voltage — which is called you stand on your toes. You may be surprised to
myoelectricity or EMG — is present on the surface of the hear muscle activity even when you think a muscle is
skin surrounding the muscle. The detection of this signal relaxed. This is called “muscle tone” and is characteristic
is important in both clinical medicine and medical of all muscles.
research. Whether you listen to the Muscle Whistler to monitor
Reaction time, for example, can be measured by the force generated by your muscles, measure your
noting the time lag between a stimulus and the onset of reaction time, or improve your golf swing, this project will
EMG activity. Audible EMG monitoring has been used provide an entertaining introduction to an important area
experimentally in training athletes, on animals, etc. (Note: of medical electronics.
Do not test the Muscle Whistler on pets or other animals.)
It has been hypothesized that athletes can learn compli- Theory of Circuit Design
cated, coordinated muscle skills faster by listening to their
muscles during training. Operational amplifier IC1 is a very high gain
The Muscle Whistler — described here — can monitor differential amplifier whose gain (sensitivity) is controlled
many of the muscles in the body, producing a whistling by feedback potentiometer R6, R15. The differential input
tone each time a muscle is activated. to the op-amp is picked up by the electrodes applied to
Try it, for instance, with the electrodes on the the skin.
biceps muscle (upper arm) while lifting a heavy object. Unijunction transistor Q3 is wired in the classical
Signals can also be picked up with the electrodes on UJT oscillator configuration with capacitor C5 deter-
the triceps (back of upper arm) when you try to push mining the frequency and the emitter-collector resist-
something. The flexor muscles (on the front of the ance of Q2 (with limiting resistor R12) acting as the
charging resistor. The
Figure 1. Schematic of the Muscle Whistler. interelement resistance
of Q2 is a function of
the applied base current
and the voltage to move
this current is stored in
capacitor C4, which is
charged up by amplifier
Q1. The size of the
steady-state charge on
C4 is determined by the
settings of potentiome-
ters R9 and R16.
When a muscle
voltage is amplified by
IC1 and fed to Q1, the
collector voltage on Q1
NUTS & VOLTS
Construction
The circuit of the Muscle Whistler is shown in Figure
1. The prototype was built on a piece of perf board,
though any other method may also be used. The
components are either mounted on small clips or the
leads may be soldered directly underneath the board. A
14-pin dual in-line socket that is only half used may be
used for the IC, if desired. The input connector (J1), the
speaker, the zero and sensitivity potentiometers (R9 RJL Systems has a 25 year history in medical devices
and R6, respectively), and the on-off switch (S1) are and is proud to announce an analog development board
mounted on the front panel of the selected chassis box. for engineers and hobbyists who demand accurate
A conventional three-lead microphone jack with an signal processing for display and communications.
associated three-lead microphone connector and a few
feet of three-lead cable are used to connect the muscle
Bipolar 16 bit ADC (+/- 1.5000 volts FS 100K SPS)
electrodes to the circuit.
Isolated 8 channel analog mux (single ended)
The electrodes are fashioned from two screws,
mounted 3 or 4 inches apart on a narrow piece of Isolated power supplies (+/- 5.0V analog and 5.0V digital)
plastic, as shown in Figure 2. A third screw — midway Isolated 9 digital PIC I/O pins with buffered LED indicators
between the other two — forms the ground electrode. Hard wired development area with access to all power
Solder lugs under the nuts are used to connect the three Isolated RS-232C communications (115.2 Kbps max)
color-coded leads from the circuit. The center screw is 4 line X 20 character (blue) display with white LED
longer than the other two so that a knob or handle can
In-circuit programming and debugging (RJ-12 connector)
be attached.
CCS PIC-C sample code and schematics provided (CD ROM)
Operation Operates from any battery or bench 6 to 12 VDC power supply
Screw terminals for convenient wiring to external devices
With power applied to the circuit, adjust R9 so that
there is no output from the speaker when there is no input RJL Systems, Inc.
33955 Harper Ave.
signal. The output varies from a whistle down to a series of Clinton Twp, MI 48035
slow clicks. Adjust R9 until the clicks just stop. When the
1−800−528−4513
sensitivity control, R6, is turned up slightly, touching one
of the end electrodes on the muscle probe should cause www.realanalog.com
the circuit to squeal due to an imbalance in the op-amp
DECEMBER 2004 43
Sellen.qxd 11/9/2004 10:14 AM Page 44
Project
Parts List
R1-R3 10K
Circle #108 on the Reader Service Card. R4, R5 1M
R6, R9 500K potentiometer
R7 330K
R8 33K
R10 27K
R11, R12 1K
R13 470 Ω
R14 91 Ω
R15, R16 510K
B1, B2 9 V battery
J1 Three-pin microphone connector and plug
S1 DPST switch
NUTS & VOLTS
SP 8 Ω speaker
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.
3-INPUT AUDIO/ VIDEO LI-ION PRISMATIC CELL LED LIGHT SHOW, 20 BARS
Polystor #340948. 3.7 Volt, Originally
SWITCHER marketed as
1200 mAh lithium-ion cell.
Low-profile, high-density Christmas
rechargeable cell, ideal for lights, these
applications where space is LED
a factor. 1.35" x 0.34" x 1.89" covered
Can handle up to 2 Amp dis- bars make excellent attention-getting market-
Recoton / Jensen #JV500. charge rate. Built-in shutdown separator and ing displays or disco-type lighting. In-line pat-
Connect up to three audio/ video components, rupture vent. Spec sheet including charge tern generator provides more than 24 different
VCR, DVD, video game, etc, to your television and discharge rates on our web site. UL rec- light effects including chasing, burst, wagon
RCA inputs. Rotary selector switch on front ognized. CAT# LBAT-43 wheel, rain fall, progressive and pulsating.
panel of switch. Includes a 6 ft. 3-conductor,
video / stereo audio cable with RCA plugs.
New units in original packaging, but the pack-
10 for $3.50 each
100 for $3.00 each
$ 753
each
Each 11 foot long circuit has 20 bars and can-
not be daisy-chained. The green 6.5" long
bars each have 8 leds: 2 red, yellow, amber
aging may be old or scuffed.
CAT# AVS-500
7
$ 50
each
SPDT MINI-SLIDE SWITCH,
RIGHT ANGLE, PC MOUNT
and green (160 LEDs total). Each bar has two
mounting holes. Includes 5 Vdc 2 Amp wall
power supply. CAT# LVL-2
"BED-O-NAILS" TEST CLIPS Body size: 0.45" X 0.22" X 0.20" high.
CAT# SSW-42
¢
Case of 12 for $4.75 each
5
$ 50
each
J.S. Popper "Bed-of-nails" test
clips with insulating boots
on approximately 46"
100 for 12¢ each 5 for 75 FAN-COOLED 6-12 VDC MOTOR
Smooth, powerful DC motor
long leads. Bed-of- SOLAR CELLS w/ CHARGING with internal cooling fan.
nails clips have CIRCUIT - 3 LED’S Operates on 3-12 Vdc.
multiple spikes 11,500 RPM @ 6Vdc,
in the middle Here's a great 1.35 Amps. 1.45" dia. x
of the clip start for a solar 2.25" long. 0.125" diameter
enabling measure- cell project. From flatted shaft is 0.7" long. Two threaded mount-
ment through insulated wire. The jaws at the not-yet-assembled ing holes on face of motor on 1" mounting cen-
front of the clip grab and hold securely to solar-powered garden ters. Solder lug terminals. CAT# DCM-231
plugs or terminals. The leads are stranded lights, these assemblies
copper litz wire with red and black woven cloth
insulation. Leads were cut from new equip-
ment and may require a crimp terminal to facil-
include two glass photovoltaic cells mounted
on a plastic base. Output is approximately
2.6 Vdc @ 25 mA in bright sunlight. Under
3
$ 75
each
10 for $3.50 each
75 for $3.00 each
itate attachment. CAT# ALG-22 the photocells is a bracket for a two cell 24 CHARACTER X 2 LINE LCD
rechargeable AA pack & a small circuit board w/ EL BACKLIGHT, USED
$ 005
each
10 for $4.50 each
50 for $4.00 each
with three red LEDs. There is a photoresistor
on top of the panel between the solar cells
to sense light and dark conditions. In day-
24 character x 2 line LCD
with electroluminescent
backlight. 0.64" x
X-BOX POWER SUPPLY light the cells charge the battery. When it 3.7" viewing
Mineba, NMB Technologies gets dark, the LEDs light. These are working area. Module
Corp# MS001A096EMJ. units but the batteries packs are old and size, 1.53" x 4.7".
Replacement power may not take a charge. Our two AA cell nick- Includes a detachable 7" ribbon cable with 14
supply for Microsoft el-metal-hydride pack, CAT# NMH-2AA contact socket connector and 5" leads on the
Xbox, v. 1.0-1.1. ($2.00 ea.) is a good replacement. Solar cell el terminals. Removed, in good condition,
Open-frame supply, surface area: 3.78" X 1.98". CAT# SPL-05 from used equipment. CAT# LCD-107
8.25" x 2.55" x 1.55" high.
UL, CE. CAT# PS-96 $ 359
each $ 50
each 4 10 for $4.25 each
100 for $4.00 each $ 004
each
10 for $3.50 each
MANUFACTURERS - We Purchase EXCESS INVENTORIES... Call, Write, E-MAIL or Fax YOUR LIST.
DECEMBER 2004 Circle #50 on the Reader Service Card.
45
Gravatt.qxd 11/9/2004 10:05 AM Page 46
I
’ve always been interested in photography and, when video signal.
I first saw an advertisement for a “key chain digital Finally, if your landing is non-survivable, the replace-
camera,” I had to get one. In fact, I got two, since ment cost of the digital camera is low.
they were inexpensive and so small that I figured I would
lose one. Hacking the Camera
After playing with them for a while, I decided to see if
I could get one to fit into a park-flyer electric R/C airplane To turn your digital camera into a sequence camera,
or model rocket. The size and weight of the camera were first remove the battery cover and the stickers inside the
suitable, but it was designed to operate in your hand, not battery compartment.
remotely or automatically. Since I only had $25.00 invested Next, pry off the clear plastic panel on the front of the
in the camera, I set about dissecting it to turn it into a camera that covers the display and the camera lens (it is
sequence camera. held on with double-sided tape). Remove the screw under
this panel and then gently pry apart the front and rear
Why Digital? halves of the case.
Once inside the case, remove the screw holding the
I have seen R/C airplanes modified to carry video mounting bracket for the key chain and discard the entire
cameras and transmitters, but — if you don’t absolutely assembly, then remove the two screws holding the circuit
need to have full motion video — a digital camera has a board to the case.
few advantages. Finally, remove and discard the view finder assembly,
First, power consumption is lower, since the digital since it won’t be needed and just adds weight.
camera stores the data rather than transmitting it, Observe the “top” side of the circuit board with the
although the camera burns through AAA batteries pretty LCD and the camera lens (Figure 1). On the upper-left
quickly. In addition, there are no concerns about the side of the board is the shutter switch with two leads;
video transmitter interfering with the airplane’s control momentarily grounding the right-hand lead causes the
receiver. Second, the image resolution is higher — 640 x camera to capture an image. Solder a wire to this lead
480 pixels versus the typical 320 x 240 pixels for video with a fine-tipped soldering iron, making sure not to
cameras. Third, there’s no degradation of the digital bridge the solder to adjacent components or the switch
image, as you might experience with a transmitted body. Solder a ground wire to one of the large solder
Figure 1. Modifications to the shutter switch. Figure 2. CMOS 555 timer circuit.
NUTS & VOLTS
Everything For Electronics
DECEMBER 2004
46
Gravatt.qxd 11/9/2004 10:08 AM Page 47
Project
Flashlite Once you’ve landed, extract the camera and turn it off
to save battery power, then download the photos.
Depending on your camera’s orientation in the plane, you
z
DOS w/ Flash File system
44 Digital I/O lines w/ CPLD
$ US69
z Console / Debug Serial Port
QTY 1 Advanced Camera Controller
z 7- 34V DC or 5V DC power z 2 Serial Ports
I plan to build a more sophisticated control circuit for
z Accepts 8MB DiskOnChip z 2 16-bit Timers the camera based on an eight-pin PIC microcontroller. This
512K DRAM & 512K Flash z Watchdog Timer
z
circuit would control both the “Mode” button and the
z Expansion options with Peripheral Boards shutter, allowing the camera to perform any of its functions
while in flight. This opens up the possibility of using the
Development kit includes: camera’s video capture feature to take an 8 second video
z Flashlite 186 controller at a predetermined time and also to have the camera turn
$99
z Borland C/C++ compiler v4.52 itself off after its memory is full.
US z FREE Email Technical Support Now just sit back, relax, and enjoy your flight (pictures,
Development z Serial Driver library that is)! NV
System
NUTS & VOLTS
1N4148 diode
On the web at www.jkmicro.com geologist with the State of
47K potentiometer Kansas. He can be reached at
JK micr osystems
microsystems 10K resistor
10 µF capacitor
[email protected]
CALL OR WRITE
CALL TOLL-FREE
(800) 292-7711
Orders Only
~
C&S SALES
Secure On-line Ordering @ cs-sales.com
FOR OUR
FREE
64 PAGE CATALOG!
Se Habla Espanol FREE GIFT with online purchase (use coupon code NV) (800) 445-3201
TM
Elenco Digital Multimeters Elenco Snap Circuits
Model M-1750 Model LCM-1950 Model M-2795 Elenco’s new Snap CircuitsTM make learning electronics fun and easy. Just follow
the colorful pictures in our manual and build exciting projects, such as: FM radios,
$
24.95 $
59.95
$
44.
• AC/DC voltage
95
digital voice recorders, AM radios, burglar alarms, doorbells, and much more! You
• Current
can even play electronic games with your friends. All parts are mounted on plastic
11 Functions:
• Large 1” 3 3/4 Digit
LCD
(10A max.) modules and snap together with ease. Enjoy hours of educational fun while
• Beeper
• Freq. to 20MHz • Autoranging Freq. • Frequency to learning about electronics. No tools required. Uses “AA” batteries.
• Cap. to 20µF to 4MHz
15MHz
• AC/DC Voltage • Cap. to 400µF
• Inductance to 40H
• Capacitance to
200µF
6 versions available.
• AC/DC Current
• Beeper • Res. to 4,000MΩ • Transistor test Build up to 750 projects!
• Diode Test • Logic Test • Diode test
• Transistor Test • Diode & Transistor • Logic test As low as $29.95
• Meets UL-1244 Test • Data hold
safety specs. • Audible Continuity
Test
• Free
holster
Quantity
Discounts
Test Equipment Available
•
$
195
Pocket-size, easy-to-use
plus experiments in solar, electromagnetism, vibration switches, and 70 computer interfaced experiments.
SC-500 - Pro Version, contains over 75 parts including voice recording IC, FM radio module, analog meter, transformer,
$119.95
• Speaker/earphone/vibrate alerts relay, and 7-segment LED display. Build over 500 experiments. $89.95
• 5-segment RSSI bargraph SC-300S - Deluxe Version, contains over 60 parts. Build over 300 experiments plus 20 bonus
• Low power consumption computer interfaced experiments. $74.95
$
75 • Includes NiCd, charger,
and antenna
• Tells you if your room is bugged.
SC-300 - Standard Version, same as SC-300S, but without bonus experiments.
SC-100 - Snap Circuits, Jr., contains over 30 parts. Build over 100 experiments.
$59.95
$29.95
4 DC Voltages: 3 fixed; +5V @ 3A, +12V @ 1A, Elenco 5MHz Sweep Function iBOTZ Hydrazoid Kit
1 variable; 2.5 - 20V @ 2A • Fully regulated & short
protected • Voltage & current meters • All metal case
Generator w/ built-in 60MHz Model MR-1004 Elenco Educational Kits
Frequency Counter
Model GF-8056 Walks and Model 21-880 Model AM-780K Model AK-700
Elenco Oscilloscopes makes sounds Line Tracking Mouse Kit Two IC Radio Kit Pulse/Tone
Telephone Kit
Free Dust Cover and x1, x2 Probes UL
$ 95
25. Flashing Neon Lights
®
Sound Activated $
9.95 Great School Project
2 year warranty Soldering
Required
$
14.95
S-1330 25MHz Delayed Sweep $439
$
225 Model RCC-7K Model M-1006K Model K4001
Radio Control Car Kit DMM Kit 7W Amplifier
*Special
$
299
* S-1340 40MHz Dual Trace
S-1345 40MHz Delayed Sweep
S-1360 60MHz Delayed Sweep
$475
$569
$725
Generates square, triangle, and sine waveforms,
and TTL, CMOS pulse.
$
29.95 $
• 7 Functions
27.
95
• Transmitter Incl.
• 18 Ranges
• 3 1/2 Digit LCD
• Transistor Test 12.95
$
the added circuit is to monitor this pulse train and switch opener sensor signals are similar to those on the Genie.
the indicator light on when the pulses are forced to +12 You will need an oscilloscope and the manual for your
volts and switch the light off when the pulses reappear. opener. The manual should have a diagram showing where
This can be accomplished with a “missing pulse detector” the door sensors connect to the power head.
circuit driving a relay. This circuit should work with any Figure 2 shows the schematic of the monitor circuit.
door opener that has similar sensor signals. Check your The sensor signal from the door opener is connected to J2.
own door opener to determine if the sensor signals are (The existing connection of the sensors to the door opener
similar. The frequency does not have to be exact, as it will is not removed; this additional connection is merely
be adjusted later. added.) The sensor signal is fed to IC1, which serves as a
high impedance unity gain buffer. This prevents loading of
How the Circuit Works the sensors and also drives transistor Q1.
The missing pulse detector is comprised of Q1, IC2,
This circuit was designed to work with the Genie and associated components. IC2 is set up as a monostable
model GXL9550CL garage door opener. Before building (one shot) multivibrator. P1, R2, and C1 set the time delay of
this project, you should determine whether your door IC2. R2 is there to protect Q1 should potentiometer P1 be
DECEMBER 2004 51
Siegel.qxd 11/10/2004 9:05 AM Page 52
Project
inadvertently zeroed during set up. The incoming pulses from IC2, pin 3, high. When the sensors become blocked, the missing
the door sensors continually discharge C1 before it times out, pulses allow C1 to charge fully, completing the timing cycle,
which continually resets the timing cycle of IC2. This keeps and driving output pin 3 low. This provides base drive to Q2,
which switches on and energizes the relay coil. The normally
Parts List open contacts close, switching on the 120 VAC indicator light
to signal that the door path is blocked. The indicator light
Resistors remains lit until the obstruction moves out of the door path
R1 4.7K and the pulses reappear at pin 3 of IC1.
R2 100
R3 1.5K
Circuit Construction
Capacitors
C1 4.7 µF Building the circuit is not complicated and it can easily
C2 .01 µF be constructed on perfboard. I used sockets on the ICs and
the relay. You will need access to the set-screw on P1 for
Semiconductors adjustment when the circuit is powered-up and connected
IC1 LM2904 to the garage door opener. Keep in mind that there will be
IC2 LM555
120 VAC present on this board at all times, so be especially
Q1 2N3906 PNP
Q2 2N4402 PNP careful. Double-check all wiring and solder joints. Figure 3
D1 1N914 shows the completed prototype board.
UPDATED
· Determine surplus stepper motor specs using ·
subroutines, loops, lookup tables, interrupts
Using a text editor, using an assembler, using MPLAB
simple easy to build test equipment.
· Design and build microcontroller-based control systems · Timing and counting (timer 0), interfacing, I/O conversion
Microcontrol'n Apps - Intermediate $44.95
(flow charts and code examples included).
· Design and build stepper motor driver circuits. · Serial communication - PICmicro to peripheral chips
· Analyze the mechanical characteristics of stepper motor- · Serial EEPROMS
· LCD interface and scanning keypads
driven devices.
· The book is full of experiments, circuits and code. $34.95 New Titles · D/A and A/D conversion - several methods
· Math routines
Same Useful · 8-pin PICmicros
· Talking to a PICmicro with a PC using a terminal program
Books · Test equipment and data logger experiments
NUTS & VOLTS
DECEMBER 2004
52
Siegel.qxd 11/9/2004 12:30 PM Page 53
be easily seen by the driver(s) while pulling vehicles into the vehicle was sticking out. The
the garage. A good location would be on the wall in front sensors had to be raised up a bit.
of the vehicle(s). Connect 12 VDC and the door sensor Measure the distance from the
signal to the appropriate terminal blocks. Do not connect garage floor to the bumper top
120 VAC or the lamp yet. and also from floor to the bumper
We have to set the time delay of the 555 timer to slightly bottom. Then calculate the
exceed the time between the incoming pulses from the midpoint of the bumper using this
door sensors. Verify that the door sensors are unblocked formula: Sensor height = (bumper
and connect an oscilloscope to the output of the 555 timer top + bumper bottom)/2. Do this
(U2, pin 3). Then adjust P1, decreasing its resistance until for all vehicles to be parked in the
negative-going pulses appear in the 12 volt output. When garage. Use this information to
the pulses appear, turn the set-screw of the pot in the determine an optimum sensor
opposite direction, increasing the resistance until the pulses height that will catch the end of
disappear and the output is high. both bumpers and move the
Give the set-screw an extra 1/4 turn in the same direc- sensors to this height. Test the
tion. Connect an ohmmeter across the N.O. relay contact system by pulling the vehicles in
J3, pin1–J4, pin 2. The meter should show infinite resist- the garage and noting the point
ance. Then block the sensors while watching the scope. at which the light goes on and
The 555 output should go low and the relay should click goes off. Stop the vehicle at the Figure 3. Completed
on. The meter should show a resistance of <1 Ω. Unblock point the light goes off and verify circuit on perfboard.
the sensors and the output should go high, clicking off the that the door path is clear. Do
relay. The resistance should again be infinite. this with all vehicles that will be parked in the garage.
If it doesn’t work this way, go back and check all con-
nections and reheat all solder joints. It is easy to make wiring Conclusion
errors with the PNP transistors if you are used to using NPN
type, as I am. Disconnect the test equipment and connect This device has proved itself invaluable in my garage
the lamp and the 120 VAC. The circuit is now ready to use. and I’m sure it will in yours, too. NV
S
ince I am in and out of my office many times a day, How the Circuit Works
I needed a visual indicator to tell me if someone
called and to inform me that I may have a voice When the phone rang indicator circuit is connected to
mail message. the phone line, the normal on-hook voltage of 48 volts is
If I come in after being out and see the LED lit, then applied to the part of the circuit that consists of R1, R2,
I know there is probably a message. If the LED is not C1, and Q1. Let’s ignore C1 for the moment because it
lit, then no one called and I don’t have to bother checking comes into play when the telephone rings, which I’ll cover
for messages. later. The on-hook voltage — applied through the voltage
Figure 1 is the schematic diagram circuit of my divider circuit of R1 and R2 — turns on and saturates Q1.
simple phone rang indicator circuit, which uses only a Still in the on-hook state, SCR1 is in the off state, as
few easy-to-obtain parts. This circuit will not only light an is LED1, because the DC voltage is blocked by C2. When
LED when the phone rings, but will keep the LED the telephone rings, about 175 volts of AC ringing voltage
latched on after the phone stops ringing until you pick appears on the line.
up the handset to check your messages. When you pick The ringing voltage is rectified by D1 and is coupled
up the handset to check your messages, the LED will through C2 and current limiting resistor R3 to the gate of
automatically extinguish and reset the circuit for the SCR1. Since Q1 is already on, the ringing voltage will
next call. turn on SCR1 and, thus, turn on LED1 through its current
limiting resistor, R4,
Figure 1. The telephone rang indicator schematic circuit diagram. by way of the 9 volt
battery, BAT1.
When the tele-
LED1 R4
phone stops ringing,
1K
C2 stops conducting,
but SCR1 will remain
latched on. Since the
A
line voltage returns
N1 D1 R3 SCR1 back to the 48 volts
+ 33K G C DC level, Q1 stays
on, and LED1 stays
+
Ne BAT1 illuminated, telling us
9V that the phone rang.
Now, when we
D
To R1 pick up the handset
Telephone 4.1M to check our mes-
G _
Line N Q1 sages, the line voltage
goes down to about
NUTS & VOLTS
SCR1 will turn off and extinguish LED1. Thus, the circuit
Parts List
has automatically reset itself and is now ready for the next
call — no need for a manual reset switch. R1 4.1 M Ω, 1/2 W
The last detail of our circuit is C1. It keeps the high R2 1.1 M Ω, 1/2 W
voltage ring signal from Q1’s gate because a voltage R3 33K Ω, 1/2 W
greater than about 20 volts there will damage Q1. C1 and R4 1K Ω, 1/2 W
R1 form a 20 Hz low-pass filter and attenuate the 175 volts C1 0.47 µF, 200 V
AC ringing voltage to about a safe 1 volt AC level. N1 NE-2 neon bulb
I housed the unit in a RadioShack plastic box D1 1N4004, 400 PIV, 1 amp
from their computer department; it can mount two
Q1 IRF510, 60 V, N-channel MOSFET
Category-3 computer jacks. Category-3 jacks work great
SCR1 200 V, 1 amp, silicon controlled rectifier
for telephone service. Make sure that when you connect
the device to the telephone line, you observe the polarity LED1 Any color LED
shown. BAT1 Standard 9 volt battery
I also found that the battery didn’t last too long, so I Case Snap-in 2-port surface-mount box
replaced it with a 9 VDC “wall wart” power supply. Q1 is a (RadioShack 278-2092)
little underrated for this application, but I haven’t had any Two phone jacks Snap-in module, Category-3 jacks
problems with it. You could use a part with a 200 volt or (RadioShack 278-2022)
higher drain-source rating to be on the safe side. Phone cord Two-foot telephone line cord
By the way, this circuit — as far as I know — should (RadioShack 279-0334)
meet all FCC (Federal Communications Commission) Perf-board A small piece of perf-board to mount
requirements both for on-hook impedance of greater than the components
5M (R1 + R2) and for ringing impedance of greater than
30K (R3) and should, therefore, be safe to connect to the Miscellaneous circuit board mounting hardware
telephone system. NV
6XUSOXV6DOHVRI1HEUDVND
2XWOHW3RZHU'LVWULEXWLRQ8QLW 2XWGRRU:HDWKHUWLJKW%R[ $PS%UHDNHU%R[
(/(957& (/(5+ (/(
*HLVW 0DQXIDFWXULQJ YHUWLFDO SRZHU GLVWULEXWLRQ XQLW 2XWGRRU ZHDWKHUWLJKW ER[ )HGHUDO DPS Y GXDO EUHDNHU
LV LGHDO IRU XVH LQ GDWD FHQWHU LQGXVWULDO DQG ODE 3DFL¿F (OHFWULF )3( ,QFOXGHV )HGHUDO 3DFL¿F (OHFWULF )3(
HQYLURQPHQWV&RROEODFNZULQNOH¿QLVK´ORQJ DPS FLUFXLW EUHDNHU YDF UHPRWH FLUFXLW ER[ 7ZR DPS
DPSWKHUPDOEUHDNHUVZLYHORQEUDFNHWIRRW SROH´ZLGHE\´ORQJE\´ Y EUHDNHUV DUH VWUDSSHG EXW
6-762SRZHUFRUGJUHHQ/('³RQ´LQGLFDWRU KLJK *UHDW IRU DPS KDP VKDFN FDQEHRSHUDWHGLQGHSHQGHQWO\IRU
8/UHFRJQL]HGSRXQGV VHUYLFHRXWVLGHDLUFRQGLWLRQHUXQLWRU VHSDUDWH DPS FLUFXLWV ´
RWKHUKHDY\HTXLSPHQW E\ ´ E\ ´ KLJK 6HYHQ
NQRFNRXWV
161
3OHDVHYLVLWRXUZHEVLWHZLWKRYHUSDJHVDQGLPDJHVZZZVXUSOXVVDOHVFRP
&LUFXLW%UHDNHUV)URPWRDPSV 9DFXXP7XEHV2YHUYDFXXP +,0DQXDOVVRIUDGLRPLOLWDU\DQG
5RFNHU7RJJOH3XVKEXWWRQW\SHV WXEHVLQVWRFN WHVWHTXLSPHQWPDQXDOVRQKDQG
9DULDEOH&DSDFLWRUV$LU0LFD9DFXXP 0DULQH6DWHOOLWH%HDFRQ)DFWRU\QHZ
)HHGWKUX(\HOHWV2YHUVL]HV
(3,5%
-RQHV6WUHHW2PDKD1()D[HPDLOJULQQHOO#VXUSOXVVDOHVFRP9LVD0DVWHUFDUG$PHULFDQ([SUHVVRU'LVFRYHU
&DOORUHPDLOIRUVKLSSLQJDQGWRWDOFKDUJHV$OO63(&,$/6LQWKLV$GRQO\JRRGIRUGD\DGYHUWLVLQJF\FOH1RH[FHSWLRQVSOHDVH
9LVLWRXUZHEVLWH#
ZZZVXUSOXVVDOHVFRP
DECEMBER 2004 55
Kacerek.qxd 11/9/2004 12:35 PM Page 56
Theory of Zeroing
Circuitry
Cancel Out Your DVM Lead Resistance
T
o measure resistance, a digital ohmmeter uses a shown in Figure 2.
constant current source to convert resistance to To overcome this
voltage, which is then read by an A/D converter and limitation, I have
displayed as ohms. devised an adaptor that
In Figure 1, we see a current drive of 1 mA into a 1 is connected between
ohm resistor, resulting in 1 mV. Thus, on a display of the DVM and its test
000.0, the reading would be 1.0. This, of course, assumes leads.
there is zero resistance in the test leads. Look at Figure 3 to
If the output display did not measure tenths of an see an isolated 5 V
ohm, there would be no distinguishable error. For meters power source that is connected in such a manner as to
showing tenths of an ohm, however, the error can be a cancel out the lead resistance error. The current from the
problem when making low resistance measurements, as meter is diverted though the zeroing source. The zeroing
NUTS & VOLTS
Everything For Electronics
Vin Vin
Iz Vin
I = 1 mA I = 1 mA
0.1Ω 0.1Ω Lead resistance
Rx 0.47Ω
Vos I=1.0 mA
Vz = 5V Ios
For Rx = 1.0Ω, and assuming
the lead resistance is zero, Rx = 1.0Ω Rz
Vin = (1.0 mA)(1Ω) = 1 mV
For lead resistance of 0.2Ω,
0.1Ω 0.1Ω Lead resistance
Figure 1. Ideal leads. Vin = (1.0 mA)(1Ω + 0.1 + 0.1) = 1.2 mV
Now, if Rx is zero when the leads are shorted,
we get an output of (1.0 mA)(0.2) = 0.2 mA
supply sends a small,
adjustable current Figure 2. Realistic leads.
through the resistor, Rx = 1.0Ω
providing a negative bias in series with the test leads.
Resistor Rz is adjusted until the display reads zero with the Figure 3. Current flow model of zeroing circuit in action.
test leads shorted.
In the actual adapter, a 5 V regulator supplied from a
9 V battery provides the back-biasing current for the 0.47
ohm series resistor (Figure 4). An adjustable pot in series
with a fixed resistor adjusts the negative bias current; the
fixed resistor prevents excessive current drain on the
LM78L05 regulator.
"%41
!DAPTIVE $IGITAL 3IGNAL 0ROCESSING