You are on page 1of 108

Vol. 28 No.

2 NUTS & VOLTS INTERFACE YOUR iPod • DIGI-LOG CLOCK • WEATHER STATION February 2007
Page 108
6:50 PM
1/11/2007
Cover.qxd
CoverInside.qxd 1/10/2007 9:48 AM Page 2

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


ESD Safe CPU Controlled
Controlled SMD Hot Air Rework Station
Station Stepper Motors
The heater and air control system are Part #: Motor Frame Holding Torque: Price:
built-in and adjusted by the simple touch Size:
of the front keypad for precise settings. 42BYGH404 NEMA 17 3.4kg.cm/47oz.in $17.95
Temperature range is from 100°C to 57BYGH207 NEMA 23 8kg.cm/111oz.in $24.95
480°C / 212°F to 896°F, and the entire
57BYGH303 NEMA 23 15kg.cm/208oz.in $29.95
unit will enter a temperature drop state
57BYGH405 NEMA 23 20kg.cm/277oz.in $34.95
after 15 minutes of non-use for safety and
85BYGH350B-03 NEMA 34 48kg.in/665oz.in $79.95
to eliminate excessive wear.
Item# CSI825A++ Sale 85BYGH350C-03 NEMA 34 63kg.cm/874oz.in $119.95
•CPU Controlled $149.00!
•Built-in Vacuum System
•Temperature Range:100°C to 480°C / 212°F to 896°F Stepper Motor Contr ollers 2 Phase Microstepping
Microstepping
•15-Minute Stand-By temperature "sleep" mode Stepper Motor Driver (Bi-polar & Unipolar Motors)
•Power:110/120 VAC, 320 W maximum
Part #: Dimensions: MicroStep: Price:
Details at Web Site > Soldering Equipment & Supplies XCW220 100mm x 61mm 1(200), 1/2(400), 1/4(800), $39.95
x 19mm 1/8(1600)
CW220 99mm x 65mm 1/2(400), 1/8(1600) $49.95
Br eadboard / Power Supply / x 30mm
MultiFunction DMM Bundle CW230 115mm x 72mm
x 32mm
1(200), 1/2(400), 1/4(800),
1/8(1600), 1/16(3200),
$59.95
Provides the user with a quick and efficient 1/32(6400), 1/64(12800)
system for breadboarding electronic circuits. CW250 140mm x 94mm 1(200), 1/2(400), 1/8(1600) $69.95
Comes with three built-in regulated power x 45mm
supplies along with a deluxe, easy-to-use CW860 147mm x 97mm 1(200), 1/2(400), 1/4(800), $119.95
breadboard. Included is a multifunction DMM x 30mm 1/8(1600), 1/16(3200),
1/32(6400), 1/64(12800),
with 100VDC, 750VAC, frequency, resist- 128(25600), 1/5(1000),
ance, diode test, audible continuity, transistor 1/10(2000), 1/25(5000),
check,temperature, and capacitance. 1/50(10000), 1/125(25000),
A Super Deal! 1/250(50000)
Details at Web Site
> Breadboards & Prototyping Boards
Only
Powered
Powered Breadboard
Breadboard w/out DMM: $69.00 $69.99! Protek
Protek 2.0 & 2.9GHz Field Str
Strength
ength Analyzers
Item#: PBB272-DMM: $69.99! •Frequency Range : 100KHz ~ 2900MHz 3290N

Powered Breadboard w/Multifunction DMM (CSIMS8264) (2060MHz for 3201N)


•WFM/NFM/AM/SSB modulated signals
You Get The DMM for an Extra $.99 may be measured.
•Sweep Trigger Mode: Free Run, Single
Digital Storage Oscilloscope Module Run, Continuous Wave, Squelch Run
•Sweep Speed: 500 to 2000msec
Convert any PC with USB interface to a high •PLL tuning system for precise frequency
measurement and tuning New
performance Digital Storage Oscilloscope. This
•Built-in Frequency Counter Rev.
Rev. Now
is a sophisticated PC basedscope adaptor pro-
•RS232 interface Available
viding performance compatible to mid/high
level stand alone products costing much more!
Comes with two probes. Item#’s 3290N & 3201N Special
Details at Web Site $1899.00 (for 3290N)
Details & Software Price > Test Equipment > RF Test Equipment $1374.00 (for 3201N)
Download at Web Site Breakthrough!
> Test Equipment > Oscilloscopes/Outstanding Prices
PC based Digital Storage Oscilloscope, Outdoor Color Speed Dome Camera
200MHz 5GS/s equiv. sampling USB
interface
Item# 200DSO Only$819.00 •1/4” SONY Exview CCD Item# VC-EX861
•768(H) x 494(V) effective pixels
•Horizontal Resolution: 480TV lines $899.00
•Up to 80 preset points
SONY Super HAD CCD Color SONY •Line scanning
Weatherproof
eatherproof IR Cameras Super HAD •Continuous 360° horizontal rotation
•Day & Night Auto Switch CCD™ equipped •Vertical rotation: 0-100°
•Signal System: NTSC camera’s feature dra- •RS485 control interface
•Image Sensor:1/3" SONY Super HAD CCD •Min. Illumination: 0.1Lux (color) / 0.001Lux (B&W)
•Horizontal Resolution: 480TV lines matically improved
•Min. Illumination: 0Lux light sensitivity Details at Web Site Shown with optional wall mount
> Miniature Cameras(Board,Bullet,Mini’s, B/W, Color)
4 8 0n e s Item# VC-827D: $132.00
i
T V oLl u t i o n
Res
SONY Super HAD CCD B/W SONY Super HAD SONY Super HAD CCD Color
Weatherproof
eatherproof IR Camera CCD Color Camera Weatherproof
eatherproof IR Camera
•Day & Night Auto Switch •Weather Proof •Day & Night Auto Switch
•Signal System: EIA •Signal System: NTSC •Signal System: NTSC
•Image Sensor: 1/3" SONY Super HAD CCD •Image Sensor: 1/4" SONY Super HAD CCD •Image Sensor: 1/4" SONY Super
•Horizontal Resolution: 420TV lines •Horizontal Resolution: 420TV lines HAD CCD
•Min. Illumination: 0Lux •Min. Illumination: 1Lux/F1.2 •Horizontal Resolution: 420TV lines
Item# VC-317D: $59.50 Item# VC-805: $53.95 •Min. Illumination: 0Lux

Details at Web Site > Miniature Cameras(Board,Bullet,Mini’s, B/W, Color) Item# VC-819D: $62.50

Visit our website for a complete listing of our offers. We have over 8,000 electronic items on line @ www.CircuitSpecialists.com. PC based data acquisition,
industrial computers, loads of test equipment, optics, I.C’s, transistors, diodes, resistors, potentiometers, motion control products, capacitors,miniature observation
cameras, panel meters, chemicals for electronics, do it yourself printed circuit supplies for PCB fabrication, educational D.I.Y. kits, cooling fans, heat shrink, cable
ties & other wire handleing items, hand tools for electronics, breadboards, trainers, programmers & much much more! Some Deals you won’t believe!
C i r c u i t S p e c i a l i s t s , I n c . 2 2 0 S . C o u n t r y C l u b D r. , M e s a , A Z 8 5 2 1 0
8 0 0 - 5 2 8 - 1 4 1 7 / 4 8 0 - 4 6 4 - 2 4 8 5 / FA X : 4 8 0 - 4 6 4 - 5 8 2 4
Full Page.qxd 11/8/2006 11:34 AM Page 3

RabbitFLEX A New Way To Customize

• Click-to-ship in 5 days!
• Pay only for what you need
• Revision friendly
• Perfect for prototype and production

RabbitFLEX™ is an unique build system that gives you the Start developing now by ordering the
power to develop custom boards without the hassle and RabbitFLEX Tool Kit and your own
the cost. The RabbitFLEX simple-to-use web interface allows custom RabbitFLEX board. Take your
you to choose from numerous options such as digital I/O, solution to the next level.
analog I/O, serial ports, and Ethernet connections on your
custom board. Just configure and buy online and our patent Configure and Buy Online
pending manufacturing process will deliver your solution www.myrabbitflex.com
Quick-Turn Boards Range From RabbitFLEX Tool Kit
in a matter of days. With RabbitFLEX you will reduce design
risk, manufacturing cost, and development time.
$
149- 279 $ $
199

Test Drive RabbitFLEX $49


Value
Build your custom RabbitFLEX board online. Free
Add a tool kit to your order for a complete Book
development system including Dynamic C®. 2900 Spafford Street, Davis, CA 95616 Tel 530.757.8400
For a limited time
Solutions That Work
www.myrabbitflex.com with kit purchase.
TOC - Feb07.qxd 1/11/2007 12:22 PM Page 4

F E B R UA RY 2 0 0 7

COLUMNS 42

08 TECHKNOWLEDGEY 2006
Events, advances, and news
from the electronics world.
13 PERSONAL ROBOTICS
Motor Test Lab — Part 2.
20 Q&A
Sawtooth generator, MIDI AB 78
switch box, model RR trolley
controller, plus more.
84 GETTING STARTED WITH
PICs
PROJECTS and FEATURES
Quick and dirty hockey
scoreboard. 34 CONTROL YOUR WORLD 58 GETTING STARTED WITH
Home Automation: PICAXE MICROCONTROLLERS
88 OPEN COMMUNICATION Catch the Wind. Part 2: Interfacing the
Tesla invented radio, not ■ By Michael Simpson PICAXE-18X with a Hitachi
Marconi!
HD44780-based LCD display.
90 THE DESIGN CYCLE 42 THE DIGI-LOG CLOCK ■ By Ron Hackett
Using Ethernet inside a PIC. This timepiece combines
digital logic and modern 67 ACCESS FLASH DRIVES
components with a traditional WITH A MICROCONTROLLER
analog display (almost). With the USBwiz chip from
DEPARTMENTS ■ By Gerard Fonte GHI Electronics, just about any
microcontroller can read and
46 WALL-WART-LESS AVR
06 READER FEEDBACK write to files in Flash drives.
PROGRAMMER USER/
■ By Jan Axelson
MAKER
28 NEW PRODUCTS This powerful tool boasts new
72 DISPLAYS FOR ALL
features and makes users and
OCCASIONS
32 NEWS BYTES programmers lives easier!
Become familiar with the most
■ By G.Y. Xu prominent display technologies
64 SHOWCASE available on the market today.
54 iNTERFACE YOUR iPOD
■ By Faiz Rahman
Create your own iPod gizmos.
76 ELECTRO-NET ■ By TJ Byers 78 RENO AIR RACES 2006
Learn more about this aviation
96 CLASSIFIEDS Schmartie Award competition and what drives
Winners Announced! the competitors.
98 NV BOOKSTORE See Page 65! ■ By Brian Mork

102 TECH FORUM Nuts & Volts (ISSN 1528-9885/CDN Pub Agree#40702530) is published monthly for $24.95 per year
by 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
105 ADVERTISERS INDEX to Nuts & Volts, P.O. Box 15277, North Hollywood, CA 91615 or Station A, P.O. Box 54,Windsor
ON N9A 6J5; cpcreturns@nutsvolts.com

4 February 2007
Full Page.qxd 1/10/2007 9:56 AM Page 5

Link Instruments
PC-Based Test Equipment

Digital Oscilloscopes • 2 Channel Digital Oscilloscope


• 500 MSa/s max single shot rate

NEW! • 1Mpt sample memory


250 MSa/S (Dual channel) 512 Kpts
500 MSa/S (Single channel) 1 Mpts
• Advanced Triggering
• Only 9 oz and 7” x 3.5” x 1.5”
• Portable and Battery powered
• USB 2.0
• Advanced Math
• FFT Spectrum Analyzer
• Priced at only $950

Sa/s
500M 1Mpts

Windows
Screenshot

Logic Analyzers
• 40 to 160 channels
• up to 500 MSa/s
• Variable Threshold
• 8 External Clocks
• 16 Level Triggering
• up to 512K samples/ch
• USB 2.0 and Parallel Interface
• Pattern Generator option
LA5240 (200MHz, 40CH) $1700
LA5280 (200MHz, 80CH) $2350
LA5540 (500MHz, 40CH) $2500
Windows Screenshot
LA5580 (500MHz, 80CH) $3500
LA55160 (500MHz, 160CH) $7500

Link Instruments (973) 808-8990


17A Daniel Road East · Fairfield, NJ 07004 · Fax (973) 808-8786

www.Link-instruments.com
February 2007 5
ReadFeed Feb07.qxd 1/11/2007 12:24 PM Page 6

READER FEEDBACK whereas the reader wanted a single value:


EVERYTHING FOR ELECTRONICS

Published Monthly By
135 volts. Nonetheless, there is a safety T & L Publications, Inc.
STAMP OF APPROVAL issue with this circuit. A rotary switch is spec- 430 Princeland Ct.
NV is a great magazine and your Jan- ified to select the bottom resistor that is part Corona, CA 92879-1300
uary 2007 issue is especially good. I really of the divider for the LR8 adjustable regula- (951) 371-8497
enjoyed the 555 timer replacement, PIC- tor. When, as shown in Figure 11, the switch FAX (951) 371-3052
AXE, and Zigbee articles. I have long had is "between" contacts (is open), the bottom Product Order Line 1-800-783-4624
www.nutsvolts.com
a love/hate relationship with the 555 timer resistance is momentarily infinite. This caus-
and was glad to see a PIC replacement that es the output (B+) voltage to shoot up to the Subscriptions
can do 555 functions with "one pin tied be- input voltage — quite more than 200 volts. Inside US 1-877-525-2539
hind its back." I have been using the BASIC If a user was switching from, say, 22.5V to Outside US 1-818-487-4545
Stamp II for years at home and at work but 45V, the output would hit 200-plus volts. Not P.O. Box 15277
the cost of the Stamp has limited my use safe. This deficiency can be remedied by North Hollywood, CA 91615
somewhat at home, so I was also glad to using a make-before-break switch (not dis- FOUNDER/ASSOCIATE PUBLISHER
see the PICAXE article. The PICAXE is cussed), which makes the output safely drop Jack Lemieux
especially attractive to me since I am below the currently set voltage and then rise
familiar with Stamp Basic which is very sim- to the next voltage. Alternately, you can di- PUBLISHER
Larry Lemieux
ilar to PICAXE Basic. One of the main things rectly connect the 30K resister to ground
publisher@nutsvolts.com
that has attracted me to the BASIC Stamp and replace the 4.7K, 10K, 15K, and 20K re-
II is the fact that it has built-in touch tone sisters with 5.6K, 15K, 30K, and 60K values, ASSOCIATE PUBLISHER/
frequencies. I work at a hospital and in a respectively. This limits the output to 135 VP OF SALES/MARKETING
project that I have had operating continu- volts in all cases, including switch failure. Robin Lemieux
display@nutsvolts.com
ously since 1997, a BS II is used to moni- The circuit provides a 1.5 volt filament
tor various alarms (fire alarm, oxygen tank supply, which was also not requested by the CONTRIBUTING EDITORS
low, blood bank alarm, etc.) and then picks reader. Even though a vacuum tube needs Chuck Hellebuyck TJ Byers
up a phone line and sends a code to the a heater supply, a Geiger tube does not. Jeff Eckert Brian Mork
Peter Best Phil Davis
appropriate person on their pager. This It doesn't have a cathode because the radi- Jan Axelson Ron Hackett
system is used as a backup for the normal ation to be detected ionizes the gas in the Gerard Fonte Faiz Rahman
main alarm indications but, in many cases, tube. This allows a pulse of current to flow. Michael Simpson G.Y. Xu
Lou Frenzel
gets the message to the appropriate Without any amplification, there is enough
person before the main alarms. So, my current to drive a meter and headphones. CIRCULATION DIRECTOR
question is, do you know of a routine that Since Mr Byers knows his electronics, I be- Tracy Kerley
subscribe@nutsvolts.com
has already been written for the PICAXE lieve my confusion is because the question
that will simulate touch tone frequencies? was edited down, omitting details of the SHOW COORDINATOR
Thanks again for such a great magazine. I reader's Geiger counter. It is possible that Audrey Lemieux
am anxiously awaiting parts 2 and 3 of the he has a vacuum tube device? Then it would
PICAXE series. be at least 50 years old! WEB CONTENT/NV STORE
Michael Kaudze
Ron Bean Winston Kim sales@nutsvolts.com
GEIGER COUNTER QUERY Response: The Geiger counter has an
I enjoy reading NV and the Q&A internal flyback transformer that steps up PRODUCTION/GRAPHICS
column each month. The Geiger counter the 135 volt s to 500 volt s. BTW, 135 is Shannon Lemieux
power supply question and answer (Jan 07, rather unusual for portable Geiger counters
ADMINISTRATIVE ASSISTANT
p. 23,24) was, however, a bit strange. There — most operate from 90 volts.The question Debbie Stauffacher
are a few points I wonder about. The of battery replacement has been asked more
reader asked for a 135 volt power supply than once. I simply picked a typical query Copyright © 2007 by T & L Publications, Inc.
All Rights Reserved
circuit to replace the pair of 67-1/2V bat- and extended its range to cover the most
teries used in the old device. An Internet popular high-voltage batteries of that era. If All advertising is subject to publisher’s approval. We are not
search shows that a Geiger tube requires a a reader wants a single voltage, it's easy responsible for mistakes, misprints, or typographical errors.
Nuts & Volts Magazine assumes no responsibility for the
precise voltage in the 500-1,000 volt range enough to hardwire the respective resistor availability or condition of advertised items or for the honesty
— typically 700 volts. No Geiger tube will in place and remove the switch along with of the advertiser. The publisher makes no claims for the legal-
"fire" at 135 volts. I wonder just what kind the unwanted resistors. — TJ ity of any item advertised in Nuts & Volts. This is the sole
responsibility of the advertiser. Advertisers and their agencies
of device the reader actually has? agree to indemnify and protect the publisher from any and all
But the answer does not address the It is with heavy hearts we must report that claims, action, or expense arising from advertising placed in
long-time NV columnist TJ Byers passed Nuts & Volts. Please send all editorial correspondence, UPS,
reader's stated question. The circuit (Figure overnight mail, and artwork to: 430 Princeland Court, Corona,
11) produces a range of five set voltages, away in the wee hours of January 11th. He CA 92879.
will be greatly missed.
6 February 2007
Full Page.qxd 1/11/2007 9:35 AM Page 7
Tech2007.qxd 1/10/2007 11:29 AM Page 8

TECH

2007
KNOWLEDGEY
EVENTS, ADVANCES, AND NEWS
■ BY JEFF ECKERT
ADVANCED TECHNOLOGY
FOOLING AROUND WITH over a frequency range of 2.8 to 10 million years, and existing radar systems
AURORA MHz. However, when complete, it will are not all that good at mapping it out;
be able to pump about 3,600 kW into they can only generate two-dimension-
the full arsenal of 180 antennas. al profiles over very narrow paths.
Observers on the ground won’t be However, some scientists at Ohio
seeing any artificial aurora, though, as State (www.osu.edu) have devised the
the signal strength in the target area is Global Ice Sheet Mapping Orbiter
less than 3 W per square centimeter, (GISMO), a system that uses multiple
which is tens of thousands times less steerable antennas mounted on an
than what the Sun delivers. airplane to obtain three-dimensional
As a sideline, HAARP will be images over a mile-wide strip, at depths
PHOTO COURTESY OF THE HAARP IONOSPHERIC OBSERVATORY. experimenting with extremely low 1.2 miles beneath the ice surface.
■ The HAARP array includes 180 frequency (ELF) signal generation The system uses vertical and
antennas spread out over 33 acres. techniques with an eye toward things horizontal radar elements to generate
like submarine communications. The an interference pattern, and computer
f you take Interstate A1 out of facility has no regular visiting hours, techniques are under development
I Anchorage, AK, and head a couple
hundred miles to the northeast, you
but you can take a virtual tour at www.
haarp.alaska.edu/haarp/tour.html.
that will increase the radar’s ability to
use that pattern to cancel out
will encounter the town of Gakona, the effects of surface ice. The first
which is just a stone’s throw from the RADAR PENETRATES experiment involved peeking under
Wrangell Saint Elias National Park. POLAR ICE Greenland’s ice and produced the
Even though the population was only image shown. Although the image isn’t
PHOTO COURTESY OF OHIO STATE UNIVERSITY.
215 when the last census was taken, it exactly equivalent to a good topo map
is a pretty interesting place, being yet, the left half of the image does
home to the High Frequency Active reveal the vertical layers of ice from
Auroral Research Program (HAARP, the surface down to the base (white
www.haarp.alaska.edu). line, center), and the right half shows a
Jointly managed by the Air Force horizontal view of the topography.
Research Laboratory and the Office of As signal processing techniques
Naval Research, HAARP is scheduled are improved, the images should get
to come fully online this year, and it better and become useful for monitor-
has two main purposes. First of all, it ing the effects of climate change on
has a suite of scientific instruments the ice and water beneath it. It is
(receivers, magnetometers, radars, projected that the concept could one
etc.) that allow researchers to perform day operate from a satellite to study
passive observations of natural auroral more of the world or even other
activity to better understand the phe- ■ Radar signal of subglacial Greenland planets. The next trip over Greenland
nomenon. Second, one can fire up the topography obtained by GISMO. is scheduled for April, so stay tuned.
ionospheric research instrument (IRI),
which is a high-power HF transmitter t is known that the land beneath the NEW MEMORY
system used to stimulate small areas of
the ionosphere at an altitude between
I Earth’s ice sheets — which make up
about 15 percent of the planet — can
TECHNOLOGY
DEMONSTRATED
100 and 350 km. The IRI will stir up a run the gamut from areas that have
volume of a few hundred meters by a been scraped flat by moving ice to ate last year, scientists at IBM
few tens of kilometers in diameter,
allowing for various scientific studies.
mountainous terrain and possibly
lakes and rivers. But it has been very
L (www.ibm.com), Macronix (www.
mxic.com.tw), and Qimonda (www.
As of this writing, only 48 difficult to study the subglacial qimonda.com) announced some joint
antennas are operational, and the surface, because a lot of it has been research that resulted in a new type of
transmitter can generate just 960 kW covered with ice for close to three memory, dubbed “phase-change.”
8 February 2007
Tech2007.qxd 1/10/2007 11:30 AM Page 9

TECHKNOWLEDGEY 20 07

PHOTO COURTESY OF IBM.Seymour Cray — known as Internet searches turn up the same rela-
the “father of supercom- tively useless results regardless of what
puting” — founded Cray search engine you use. This occurs
Research. The road has because typical search engines for the
been bumpy, with most part troll only what is termed the
mergers, spin-offs, the “surface web” and ignore the “deep
departures of key manage- web,” which includes accessible but not
ment, and a disastrous easily spidered material such as graphic
enough balance sheet that files, searchable databases, and other
■ Cross-section micrograph of the Cray stock was selling for useful sources of information.
phase-change memory bridge. $1.38 per share in 2005 (although it The solution is to go deep using a
has recovered to around $10 as of this meta-search engine, which is an entity
Judging by the prototype, it can switch writing). In the first nine months of last that performs a search of other search-
500 times faster than Flash while using year, the company lost $20.8 million on es and consolidates the results. There
half the power to write to a data cell. revenues of $119.6 million. That, how- are several out there, but a good
Its cross section is just 3 by 20 nm, ever, was better than the $55.1 million starting point is IncyWincy.com, a
equivalent to the chip industry’s target loss during the same period in 2005. showcase site offered by Loop
for the year 2015 and considerably In any event, Cray is predicting a Improvements LLC to demonstrate its
smaller than Flash memory’s apparent profitable 2007, based largely on its Net Research Server (NRS).
downward limit of 45 nm (below new XT4 machine. Previously code- IncyWincy has spidered and
which it is no longer nonvolatile). named “Hood,” it is derived from the indexed some 150 million pages plus
At the heart of phase-change XT3™ architecture, which uses massively hundreds of thousands of search
memory is a chunk of a semiconduc- parallel processing (MPP). The XT4 can engines, and you can even refine your
tor alloy that can be changed rapidly be scaled up to as many as 30,000 search to turn up only web pages,
between an ordered, crystalline phase AMD Opteron processors and provide forms, or images. It also includes a
having lower electrical resistance to a better than one petaflops of perform- directory in case you want to look in
disordered, amorphous phase with ance (yes, that’s 1,000,000,000,000 general subject areas. If Google and
much higher resistance. Because no floating point operations per second). Yahoo! let you down, give it a try.
electrical power is required to The company seems to be back on
maintain either phase of the material, track in the sales department as well, with FLASH IN THE PAN?
phase-change memory is nonvolatile. announced orders from Oak Ridge Na-
It’s premature to junk your hard drives tional Lab, the National Energy Research
and Flash memories, though, because Scientific Computing Center, and the
a commercial version of the prototype Finnish IT Center for Science. The sys-
is probably several years away. tem is currently equipped with dual-core
processors, but it is designed to be eas-
COMPUTERS AND ily upgraded to quad-core chips. If you
are interested in the technical details, just
NETWORKING visit www.cray.com/products/xt4/. But
CRAY BACK IN THE GAME? unless you have a DoD-sized wallet, it
PHOTO COURTESY OF DYNAMISM.
will probably be sufficient to know that
the XT4 achieves its performance and ■ These USB drives come in several
scalability with the help of its SeaStar2™ flavors.
interconnect chips, through which the
processors communicate. he folks at Dynamism.com are
This is superior to the cluster
architecture in which many processors
T dedicated to marketing innovative
consumer technology from Japan and
share a common interface. The machine other regions, and they tend to focus on
represents the first product in the notebooks, digital cameras, PDAs, and
Rainier program, which is the first phase so on. But with all due respect, I must
of its forward-looking Adaptive Super- bestow upon them the award for bring-
■ Cray’s new XT4™ supercomputer
computing concept. ing forth this month’s Most Ridiculous
uses massively parallel processors to Product. Consider Sushi Disk, a
achieve peak performance of greater META-SEARCH MINES collection of hand-built USB drives that
than one petaflops. THE DEEP are made to look like a piece of sushi.
Among the choices are futomaki (large
he history of Cray, Inc., stretches ou may have noticed an interesting roll, 256 MB, $99), otoro (fat tuna, 1
T back to 1972, when founder Y phenomenon in which your GB, $219), mentai (pickled cod roe,
February 2007 9
Tech2007.qxd 1/10/2007 11:31 AM Page 10

256 MB, $119), and kanitumi (fried oratory and a UT-Battelle corporate fellow,
crab claws, 256 MB, $119). And if all INDUSTRY AND is noted for research involving sensor tech-
this sushi leaves you thirsty, try the bot-
tle of sake (256 MB, $99). Personally, THE PROFESSION nology and weapons detection. The AAAS
Council cited Thundat’s “pioneering work
I’m waiting until the bratwurst with NANOTECH COMPETITION in developing a novel class of sensors for
kraut drives come out of Germany. SCHEDULED molecular recognition using nanomechan-
t was recently announced that Oak ical sensor platforms.” One of his cited

CIRCUITS
I Ridge National Laboratory researcher
Thomas Thundat has been elected a fellow
concepts uses microcantilever technology
to detect minute amounts of TNT, which
of the American Association for the could be applied to both national security
AND DEVICES Advancement of Science (AAAS). missions and the reclamation of former
SOLAR CELLS HIT 40+ Thundat, a member of the Biosciences battlefields and war zones. Congrats!
PERCENT EFFICIENCY Division at the Department of Energy lab-

sunlight — it has achieved a 40.7


percent conversion efficiency, said to
be a new world’s record for terrestrial
cells. The claim was verified by the US
Department of Energy’s National
Renewable Energy Lab (NREL).
These cells use essentially the PHOTO COURTESY OF OAK RIDGE NATIONAL LIBRARY.
same technology as the company’s ■ ORNL’s Thomas Thundat.
space-based cells, so they can be
manufactured in high volumes within a Spectrolab’s terrestrial concentrator
reasonable period of time. Researcher cells are already generating power in a
■ A technician at Spectrolab examines Dr. Richard R. King commented, 33-kilowatt full-scale concentrator sys-
an earlier version of the concentrator re- “These results are particularly encour- tem in the Australian desert. The com-
ceiver assembly containing the solar cells. aging, since they were achieved using pany recently signed multimillion dollar
A triple-junction terrestrial concentrator
a new class of metamorphic semicon- contracts for its high efficiency concen-
solar cell is shown in the inset photo.
PHOTO COURTESY OF SPECTROLAB, SUBSIDIARY OF BOEING. ductor materials, allowing much trator cells and is anticipating several
greater freedom in multijunction cell new contracts in the next few months.
epresenting another step forward design for optimal conversion of the
R in solar cell technology, Spectrolab,
Inc. (www.spectrolab.com), recently
solar spectrum. The excellent perform-
ance of these materials hints at still
CD/DVD REPAIRS
MADE EASY
announced that — using concentrated higher efficiency in future solar cells.” h i l e
W Aleratec
(www.aleratec.
com) is perhaps
better known for
its duplication
equipment, the word
■ The Aleratec on the street is that its
Disc Repair Plus. Disc Repair Plus actu-
PHOTO COURTESY OF
ALERATEC, INC.
ally works. It is billed
as a “patented, motorized system that
can repair and clean up to 99 percent of
all scratched DVDs, CDs, Game Discs,
VCDs, DVD+Rs, DVD-Rs, DVD+RWs,
DVD-RWs, CD-Rs, CD-RWs, and
masters ... without the hassle that comes
with a manual cleaning kit.” The unit
comes with three sets of wheels, one
each for repair, cleaning, and buffing.
You just drop the disc into the machine,
add three drops of repair solution on the
wheel, and it does the rest. At a list price
of $44.95, it won’t take too many
repairs for it to pay for itself. NV
10 February 2007
Full Page.qxd 1/10/2007 10:34 AM Page 11
Page12.qxd 1/11/2007 3:52 PM Page 12

12 February 2007
PersonalRobotics.qxd 1/11/2007 9:44 AM Page 13

PERSONAL ROBOTICS
UNDERSTANDING, DESIGNING & CONSTRUCTING ROBOTS & ROBOTIC SYSTEMS
■ BY PHIL DAVIS

MOTOR TEST LAB — PART 2


LAST MONTH, I WENT OVER THE PROCESS of constructing my homemade
Motor Test Lab. Since then, I made a couple of changes to the basic design
before using it to test a couple of motors.

T he first change I made was to add


a block connector and a switch at
the power output stage. The connec-
Analyzer Pro has a large set of
features, but those which I personally
am interested in for my robotic
three inches long and two inches in
diameter — plus the fact that when I
turned the output shaft, I could feel
tor made it easier to connect and projects are: strong cogging.
disconnect motors. The switch Okay, the first thing I want to do
allowed me to disconnect the motor • Voltage measurement is make sure I have a secure mount for
during testing which was a favor to the • Current measurement the motor. As you can see from the
dogs and my wife as they had gotten • RPM photos, I constructed the test system
extremely tired of listening to the • Torque on top of some plywood, which is
audible whine of the 8K PWM (pulse available to everyone and easy to
width modulation). Please see Photo 1. The Power Analyzer Pro also has work with. The motor is mounted to a
The second change I made was the ability to connect to your PC. If separate board and placed on top of a
some slight alterations of the code you use this feature, then you will small wooden block with a ‘V’ cut into
required to convert the RC-style PWM have the ability to control the motor it for stability, as in Photo 2. I hot
into the H-bridge style PWM. Please ‘remotely’ and graph some of the glued the motor to the block to keep
see Listing 1. above measurements. it rigid and make it easy to take off.
One of the parameters I want to
measure is RPM. The Power Analyzer
WHAT CAN THE MOTOR PREPARING A MOTOR Pro comes with an IR emitter/receiver
TEST LAB MEASURE? FOR TEST pair which is used to measure the

Because we are using Power One of the motors I am going to ■ PHOTO 2. Motor mount.
Analyzer Pro — a commercial off-the- test is one I picked up for $6 at my
shelf product integrated into our lab — local surplus store. When I bought
we are relying heavily on its capabili- this motor, I knew absolutely
ties. As I mentioned in Part 1, this nothing about it except its size —
device was created
for the RC market-
place where it is
used to measure
the parameters of
high-performance
RC Flight DC
motors. We have
changed its mission
somewhat, but all
its capabilities are
no less valid.
The Power
■ PHOTO 1. Changes
since last month.
February 2007 13
PersonalRobotics.qxd 1/11/2007 9:46 AM Page 14

encoder disk and is ready to test.


LISTING 1. RC to H-bridge Conversion. The PC computer interface for the
Power Analyzer Pro allows the user
to create a ‘Run’ with which you
can specify a variety of test profiles,
as shown in Photo 4. On the
‘Waveform’ tab, you will notice that
I have chosen a simple linear ramp
with the following parameters: No
start delay, a peak value of 100%
(which is full speed), holding the
peak value for 10 seconds, and
specifying that the ramp will take 30
seconds. It is possible to choose
other waveforms, as in Photo 5.
When we execute this Run
profile, PWM will be fed to the
motor such that the PWM follows
the graph in Photo 4, gradually
increasing until the motor is
running at 100% and then holding
there for a period.
During the Run, in real-time, a
graph will be drawn of all the
measurements we have chosen.
Power Analyzer has a tool with
which you set your dials, gauges,
and graphs, but I won’t be going
into detail on that setup. However,
looking at Photo 6, you can see
the output I was getting.
Let’s try and do a brief analy-
sis of the various lines in the graph.
The gray line represents the linear
throttle response, which is actually
RPM of an RC plane’s propeller. The a drawing program, glued it to some a steady increase in PWM (and
obvious trick here is to make an poster board with white glue, and consequently voltage) and, as you can
encoder disk and glue it to the motor then used the same glue to mount it see, it follows the programmed profile.
shaft, then mount the emitter/receiver on the shaft. Check out Photo 3. The purple line is the actual
close to the surface so the lines can measured RPM from the encoder
be read. I drew up an encoder disk in disk. I should note that the analyzer
TESTING THE MOTOR application has the ability to massage
■ PHOTO 4. ‘Run’ profiles for testing. the data coming in and, in this case,
So that’s it. The the RPM in is automatically divided by
motor is mounted on the number of lines on the encoder
its own board with an disk, divided by two. This produces
the correct
RPM value
as the analyz-
er believes it
is using a
t wo - b l a d e d
propeller.
O n e
thing to note

■ PHOTO 3.
Making the
encoder disk.
14 February 2007
PersonalRobotics.qxd 1/11/2007 9:46 AM Page 15

PERSONAL ROBOTICS

■ PHOTO 5.
Waveform selections.

from the graph is


that the motor does
not start turning until
around nine or 10
seconds into the test,
which is where
sufficient voltage has
built up from the
PWM. The purple
RPM line continues
on to a maximum of
around 8,300 RPM. ■ PHOTO 6. Real time ‘run’ graph.
The green line represents the comes with an electronic scale which
amps required to run the motor. As would normally be used to measure down the wood. (You will need to look
you can see, it starts right off at about the thrust of a spinning propeller; at the pictures to understand this). A
.3 amps and slowly climbs until the useful I guess, if you want to know if small hole is then drilled through the
motor just starts to turn, at which point you have sufficient thrust to fly. But in wood on the same plane as the screw,
there is a blip, after which it steadily our case, we have no propeller and for a bolt, spacer, and wing nut.
climbs to a max of around 1.6 amps. we really want to measure torque. The operation of the Prony Brake is
The red line represents the volt- The Internet and the advice from as follows: Open the wing nut so it is
age from the battery. As the RPM and a friend are wonderful things. After very loose. Slide the slit in the wood
amps increase, the voltage from the much searching, I came across a over the motor shaft until the shaft clicks
battery drops in concert, starting off at device called a “Prony Brake” which into the pre-cut hole and then loosely
12.85 and dropping to around 12.6. was developed by French mathemati- tighten the wing nut; not so tight though
A couple of additional points to cian Gaspard de Prony (1755-1839) that the brake does not freely rotate on
note: Once the motor starts turning and can, in fact, measure tourque. To
(represented by the purple RPM line) it keep things simple and in line with the ■ PHOTO 7. Prony Brake construction.
tracks (is proportional to) the voltage rest of the construction, I made my
which, in this case, is the gray throttle Prony Brake out of wood, which you
line. This is a characteristic of a DC can see in Photos 7 and 8.
motor. Up near the top of the graph at The construction is fairly straight-
close to 100% throttle, you can see all forward; a hole the same diameter of
the measured inputs getting very the motor shaft is drilled through a
bouncy and jagged. I would surmise piece of wood and at exactly six inch-
that this is because the magnetic fields es from that on the other side (other
are breaking down in the windings, plane), a small screw is partially
but I am not a DC motor expert. screwed in. A saw cut is made though
the shaft hole, extending quite far
WHAT ABOUT
TORQUE?
All right, one last
parameter to meas-
ure: Torque. The
Power Analyzer Pro

■ PHOTO 8. Prony
Brake assembled
with scale.
February 2007 15
PersonalRobotics.qxd 1/11/2007 9:46 AM Page 16

■ PHOTO 9. Prony Brake am looking for a motor which will run


on motor, resting on a robot, perhaps something like a
the scale.
robot for the Magellan contest. My
10. Believe it or not, in first thoughts are that the bot should
this photo the encoder not go tearing across a field at break
disk is spinning at 5,000 neck speed.
RPM and my camera Well, what do I want? Let’s begin
froze it. In any case, the by trying to reverse-engineer this. An
reading on the scale is average person walks at around three
1.5 oz and, in actual fact, miles per hour which works out to be
it varied around the about four feet per second ((3 *
1.5–1.6 mark. 5280)/60/60). That seems like a good
What does this speed, but let’s go a bit faster and
mean? Well, we made assume the bot’s max speed will be
our Prony Brake so the 1.5 times that at six feet per second (a
distance between the fast walk).
shaft and the screw Now, let’s assume we have six-
which rests on the scale inch diameter wheels. This will mean a
was as close as possible wheel will travel about 18 inches in
the shaft. Position the scale such that to six inches. This being the case, we one revolution (6 * π). If we want to go
the screw rests in the center of the scale can now multiply the ounce value by at six feet per second, how many
and reset the scale to accommodate the the length, 1.5 * 6 to arrive at the revolutions must we make per second
weight of the wood. Now you’re ready torque in oz-ins. This motor was devel- (6/(18/12))? This is four. In summary,
to go. See Photo 9 for this setup. oping 9 oz-ins at 5,000 RPM. this means for our bot to travel at the
In addition, a quick glance maximum specified speed of six feet
showed the amperage measurement per second, the wheels will have to
MEASURING THE to be 4.5. I also very briefly cranked make four revolutions per second.
TORQUE down the Prony Brake until the motor With this information, we can
stalled and checked the amperage. try and figure out if the motor will fit
With a bit of luck, everything These values tell us what the minimum our needs when properly geared. A
should be set up to measure the torque. size of H-Bridge is that I needed. lot of this will be guess-work without
You could do this a number of ways, Because the Prony Brake has to very expensive equipment with
but I used the “Real Time Control” be cranked down by hand, creating a which to make precise measure-
slider on the application to run up the graph is not something that can be ments, but we can get a feel for what
motor to max RPM — full speed. I then done automatically. Nevertheless, it is should work.
tightened up the wing nut on the Prony not difficult to make half a dozen tests Let’s assume to gear our motor,
Brake so that it started to bind on the at different RPM values, recording the we use timing belts, chains or gears
motor shaft and, at the same time, kept amperage and torque for each one. which are from about 60-90%
an eye on the RPM. When the RPM efficient (respectively). The next thing
reached 5,000, I looked at the ounce to consider is what happens to the
reading on the scale. Please see Photo
SO, HOW DOES THIS RPM of the motor under load. The
MOTOR MEASURE UP? load, in this case, will be the torque
■ PHOTO 10. Torque reading. required to move the rolling weight of
Good question! I our bot and, in a worst case, perhaps

■ PHOTO 11. Zagros Robotics Max 96 gear motor setup.

16 February 2007
PersonalRobotics.qxd 1/11/2007 9:47 AM Page 17

PERSONAL ROBOTICS

up a slight gradient. This is where we You can go to the website and read
would need to make lots of empirical the specs on this motor. See Photo 11 SUMMARY
measurements (perhaps), so let’s for this setup. With a little effort and some off-
make a guess at this and say an RPM The testing of this motor went the-shelf products, the hobbyist
degradation of 50%. very well and to highlight some of the should be able to build a Motor Test
Now we can say that the effective details: Lab/Dynamometer which rivals
RPM of our motor will be 80% of multi-thousand dollar versions. In any
8,300 RPM and then 50% of that. This • Measured max RPM was about 20 case, you have to do something to
will be our max usable RPM and to 25 RPM. understand the motors you are using if
calculates out at 3,320 or 55 per sec- you get them at surplus suppliers,
ond, and dividing this by our required • Amps went from about .1 to .2 at perhaps just wet your finger and stick
revolutions per second, we have a max speed (unloaded). it in the air. NV
needed gear ratio of 55/4 or 13.8. We
round that off to 14; and this is the
ratio we will use for gearing the motor.
We might also suggest a final
torque value at the wheel by multiply-
ing the motor shaft torque by 14, this
gives 9*14 oz-ins or 126 oz-ins. At the
circumference of the six-inch wheel in The Mouser Advantage:
pounds, this would be 126/3/16
which is 2.65 pounds (the 3 in the Faster Time to Market for
formula is the radius). If you were to
use two motors (differential steering),
YOUR New Designs!
you might have around five pounds of
force; not bad for a small bot. I hope
this makes sense.

TESTING A SECOND
MOTOR
I’m not going to bore you with all
the details of testing a second motor,
so I will go through some of the high-
lights. The second motor I tested was
a geared motor I got from Zagros
Robotics, called the Max 96/99/97.

RESOURCES
■ Medusa Research Power Analyzer
— www.medusaproducts.com

■ Matrix Orbital LCD — Experience Mouser’s time-to-


www.matrixorbital.com
market advantage! Our vast selection
■ Zagros Robotics gear motor — of the NEWEST products, NEWEST
www.zagrosrobotics.com technologies, new catalog every 90
days, no minimums, and same-day
■ Electronics Exchange surplus
motor — www.electronics-
shipping on most orders, gets you to
exchange.com market faster. We make it easy to do
The Newest Products
business with Mouser! For Your Newest Designs
■ FreeRTOS — www.freertos.org/

■ WinAVR — http://winavr.source
mouser.com (800) 346-6873
forge.net/
The NEWEST Semiconductors | Passives | Interconnects | Power | Electromechanical | Test, Tools & Supplies
■ AVRstudio — www.atmel.com/dyn/ Mouser and Mouser Electronics are registered trademarks of Mouser Electronics, Inc. Other products, logos, and
products/tools_card.asp?tool_id=2725 company names mentioned herein, may be trademarks of their respective owners.

February 2007 17
NutNVolt200702.qxd 1/10/2007 10:38 AM Page 18

Mini-Kits...
The Building Blocks!
Tickle-Stick
The kit has a pulsing 80 volt
tickle output and a mischie-
vous blinking LED. And who
can resist a blinking light! Great
fun for your desk, “Hey, I told you not to touch!”
Electrocardiogram Runs on 3-6 VDC
ECG Heart Monitor TS4 Tickle Stick Kit $12.95
✔ Visible and audible display of your heart rhythm!
✔ Bright LED “Beat” indicator for easy viewing! Super Snoop Amplifier
✔ Re-usable hospital grade sensors included! Super sensitive amplifier that will
✔ Monitor output for professional scope display pick up a pin drop at 15 feet! Full
✔ Simple and safe 9V battery operation 2 watts output. Makes a great “big
February is the month for ear” microphone. Runs on 6-15 VDC
Valentine’s Day, and what a great BN9 Super Snoop Amp Kit $9.95
time to think of your heart! Not how many
times it’s been broken, not how many times
it’s fallen head over heels in love, but how it Dripping Faucet
actually works...and how it’s doing these days! Produces a very pleasant, but
obnoxious, repetitive “plink, plink”
Use the ECG1C to astound your physician with your knowledge of ECG/EKG systems. sound! Learn how a simple transistor
Enjoy learning about the inner workings of the heart while, at the same time, cover- oscillator and a 555 timer can make such
ing the stage-by-stage electronic circuit theory used in the kit to monitor it. The three a sound! Runs on 4-9 VDC.
probe wire pick-ups allow for easy application and experimentation without the cumbersome harness normal-
ly associated with ECG monitors. The documentation with ECG1C covers everything from the circuit descrip- EDF1 Dripping Faucet Kit $9.95
tion of the kit to the circuit description of the heart! Multiple “beat” indicators include a bright front panel LED
that flashes with the actions of the heart along with an adjustable level audio speaker output that supports LED Blinky
both mono and stereo hook-ups. In addition a monitor output is provided to connect to any standard oscillo-
scope to view the traditional style ECG/EKG waveforms just like you see on ER... or in the ER! See the display Our #1 Mini-Kit for 31 years!
above? That’s one of our engineers, hooked up to the ECG1C after an engineering meeting! Alternately flashes two jumbo red
LED’s. Great for signs, name badges,
The fully adjustable gain control on the front panel allows the user to custom tune the differential signal model railroading, and more. Runs on 3-15 VDC.
picked up by the probes giving you a perfect reading and display every time! 10 hospital grade re-usable BL1 LED Blinky Kit $7.95
probe patches are included together with the matching custom case set shown. Additional patches are avail-
able in 10-packs. Operates on a standard 9VDC battery (not included) for safe and simple operation. Note, Cricket Sensor
while the ECG1C professionally monitors and displays your heart rhythms and functions, it is intended for hob-
byist usage only. If you experience any cardiac symptoms, seek proper medical help immediately! (Like I did Senses temperature and
after I got the ad deadline date for February from Robin!) changes the chirp according-
ly. Can actually determine
ECG1C Electrocardiogram Heart Monitor Kit With Case & Patches $44.95 temp by chirps! Runs on
ECG1WT Electrocardiogram Heart Monitor, Factory Assembled & Tested $89.95 9VDC battery. Speaker included.
ECGP10 Electrocardiogram Re-Usable Probe Patches, 10-Pack $7.95
ECS1 Cricket Sensor Kit $24.95

Electronic SMT LED Electronic Siren


“Love Tester” Flashing Heart Pin Produces the upward and down-
✔ 10 LED love scale display! ✔ Use it as a pin or pennant! ward wail of a police siren.
✔ Audible love level sound! ✔ 2 brilliant blue LEDs Produces 5W output, and will drive
✔ Great party fun! ✔ 3 brilliant red LEDs any speaker! Runs on 6-12 VDC.
✔ Heart shaped PC board! ✔ Magnetic pin attachment SM3 Electronic Siren Kit $7.95
This .9” heart-shaped pin is sure to be
This uniquely shaped “Love Tester” is the ultimate an attention getter. 5 bright LEDs (2 Universal Timer
gag for any couple! Designed to check your love blue, 3 red) flash brightly, guaranteed to elicit inter-
life, each partner holds one end of the tester PCB at est from anyone (or anything) attracted to shiny Build anything from a time delay
the appropriate male and female touch pads. Then objects! Factory assembled and tested and ready to to an audio oscillator using the
they romantically join hands and watch the results use. versatile 555 timer chip! Comes
on the love meter! 10 green, yellow, and red LEDs with lots of application ideas. Runs on
act like a scale, and just like the carnival when it hits The unique design can be hung as a pennant using 5-15 VDC.
the top they flash, indicating you're a red hot cou- the small hole at the top. But it gets even better, UT5 Universal Timer Kit $9.95
ple! There is also an audible alarm that changes this little heart comes complete with a small but
with the “love level”. Next time the party isn’t going powerful magnet to “pin” it to your clothing...with- Voice Switch
anywhere, bring this out, it’s a riot! out any holes! Holds it in place and it can even be
moved! Runs on two standard CR927 button cells Voice activated (VOX) provides a
Wide sensitivity range is compatible with all couples. (included) and turns on and off from the back. switched output when it hears a
Includes a built-in power on/off switch. Runs on a Show everyone how you feel about that special per- sound. Great for a hands free PTT
standard 9V battery. Measures 4.1” x 3.1” x .98”. son in your life with this lively pin! switch, or to turn on a recorder or light! Runs on
6-12 VDC and drives a 100 mA load.
MK149 Electronic Love Tester Kit $16.95 LFB3 SMT LED Flashing Heart Pin $2.95
VS1 Voice Switch Kit $9.95

LED Magic SMT LED Flashing Tone Encoder/Decoder


Message Wand Heart Display Encodes OR decodes any tone 40
✔ Message floats in air! ✔ Alternating flashing! Hz to 5KHz! Add a small cap and it
✔ Fun at concerts & events! ✔ 6 super bright SMT LEDs! will go as low as 10 Hz! Tunable with
✔ High visibility red LEDs ✔ Learn all about SMT! a precision 20 turn pot. Runs on 5-12 VDC and
✔ Pre-programmed or cus- ✔ Definitely gets her attention! will drive any load up to100 mA.
tom messages
TD1 Encoder/Decoder Kit $9.95
Use the “Magic Wand” to display your true feelings! This cute little kit gives you a distinctive red display
Simply shake it back and forth and brilliant mes- using 6 Surface Mount (SMT) LEDs. The PC board is RF Preamplifier
sages seem to appear in mid-air! Six high intensity in the shape of a red heart. The small size makes it
LEDs are microprocessor controlled to display mes- Super broadband preamp from
perfect to be used as a badge or hanging pendant 100 KHz to 1000 MHz! Gain is
sages and graphics that are pre-programmed into around your neck. Even better as an illuminated
the wand. greater than 20dB while noise is less
attention-getting heart to accompany a Valentines than 4dB! 50-75 ohm input. Runs on 12-15 VDC.
Day card!
You can also custom program a message of your SA7 RF Preamp Kit $19.95
choice! From amazing your friends, making a state- Makes a great SMT learning kit to bring you into the
ment at a concert, or simply telling your loved one world of SMT technology, design, and hands-on sol-
how you feel, the message wand can’t be beat! dering and troubleshooting. Don’t worry, extra SMT
Touch Switch
parts are included just in case you lose or damage Touch on, touch off, or momentary
Runs on two AAA batteries (not included), and the any! Runs on a small CR2025 or CR2032 button cell touch hold, your choice! Uses CMOS
auto power off circuit gives you long battery life. (not included). Measures 1.9” x 1.7” x .3”. technology. Runs on 6-12 VDC and drives any
Measures 6.4” x 1” x .9”. load up to 100 mA.
MK155 LED Magic Wand Kit $16.95 MK144 SMT LED Flashing Heart Kit $11.95 TS1 Touch Switch Kit $9.95
NutNVolt200702.qxd 1/10/2007 10:41 AM Page 19

What’s Hot for 2007! High Resolution Air


Pressure/Elevation Sensor
The Newest And Neatest Goodies ✔ Pressure resolution greater than
0.0001kPa!
✔ 128 x 64 pixel graphical display!
Passive Aircraft ✔ Shows realtime elevation & pres-
Airband Monitor sure changes!
✔ USB computer interface for easy
✔ Monitors the entire aircraft band without tuning! data transfer!
✔ Passive design, can be used on aircraft, no local ✔ 13,824 samples of FLASH storage
oscillator, generates and creates no interference! available!
✔ Great for air shows ✔ Special pilots menu
✔ Patented circuit and design! ✔ Multiple built-in alarms
For decades we have been known for our novel and
creative product designs. Well, check this one out! An
aircraft receiver that receives all nearby traffic without
What The Customer’s Are Saying...
any tuning. It gets better... there is no local oscillator “Stunning!”
so it doesn't produce, and can't produce, any interfer-
ence associated with all other receivers with an LO.
That means you can use it onboard aircraft as a passive We really did it this time! The UP24 is one of our most advanced kits to date, and
device! And what will you hear? The closest and an absolute MUST for anyone serious about the environment around us. But the
strongest traffic, mainly, the one you're sitting in! How applications only begin there!
unique is this? We have a patent on it, and that says it
all! The unique design allows unprecedented super high resolution measurements
and display of absolute atmospheric air pressure. The UP24 senses ambient air
This broadband radio monitors transmissions over pressure and critically calculates elevation with unheard of precision! Using a
the entire aircraft band of 118-136 MHz. The way highly sensitive sensor and 24-bit A/D converter in a special noise-immune
it works is simple. Strongest man wins! The design, less than 1/3" of an inch of elevation resolution is achieved! YES, we said
strongest signal within the pass band of the radio will 1/3 of an inch! This high accuracy and resolution opens the door to a host of
be heard. And unlike the FM capture effect, multiple air- sophisticated environmental air pressure monitoring applications.
craft signals will be heard simultaneously with the strongest
one the loudest! And that means the aircraft closest to you, Unlike your normal run-of-the-mill barometer, air pressure is sensed in Pa's or
and the towers closest to you! All without any tuning or looking up frequencies! kPa's. What are those you may ask? Pascals or KiloPascals. However, don't be
So, where would this come in handy? afraid, for your convenience, and to fit any application you may have, it is also dis-
played in millibars, bars, PSI, atmospheres, millimeters of mercury, inches of mer-
1. At an air show! Just imagine listening to all the traffic as it happens cury, and feet of water! Take your pick! The range of the UP24 is 15kPa to
2. Onboard aircraft to listen to that aircraft and associated control towers 155kPa.
3. Private pilots to monitor ATIS and other field traffic during preflight
activities (saves Hobbs time!) We've talked about air pressure, now let's talk about elevation! The incredibly
4. Commercial pilots to monitor ATIS and other field traffic as needed at precise 24 bit A/D converter in the UP24 looks at the air pressure and converts it
their convenience to elevation above sea level. In both graph and text, the elevation is displayed to
5. General aircraft monitoring enthusiasts a resulution of 1/3”! Yes, I said 1/3 of an inch! The applications for the super
accurate elevation meter are endless. From watching and recording elevations
Wait, you can't use a radio during hiking trips to measuring and recording the wave heights on boats! Let
SPECIFICATIONS your imagination take over from there!
receiver onboard aircraft Frequency Range: 118 MHz to 136 MHz
because they contain a
local oscillator that could Receiver Type: Patented Passive Detector What if you're in the field and you want to save data captured in your UP24? The
generate interfering sig- IF Frequencies: None! built-in FLASH storage provides 13,824 samples of storage. Then you can transfer
nals. Receiver Sensitivity: Less than 2 uV for detectable your data to your PC with a standard USB interface.
audio
We have you covered on Audio Output: 700mW, 8-24 ohms While the UP24 is small enough to be kept in your coat pocket it boasts a large
that one. The ABM1 has Headphone Jack: 3.5mm stereo phone 2.78" x 1.53" 128x64 pixel LCD display screen making viewing easy. Display
no local oscillator, it does- External Antenna: Headphone cord coupled modes include both realtime pressure and elevation graphs as well as pressure
n't, can't, and won't gen- Power Requirement: and elevation statistics. There are 12 user selectable sample rates from 1/10th of
9VDC battery
erate any RF whatsoever! Dimensions: a second all the way up to every 15 minutes. Includes a built-in NiMh battery
2.25” x 2.8” PC Board pack for up to 4 days of continuous use. 110VAC charger is included. May also
That's why our patent 2.5” x 4.6” x .9” Case
abstract is titled "Aircraft Weight: be charged from a 6-12VDC source.
4 oz. with battery
band radio receiver which
does not radiate interfering signals". It doesn't get any plainer than that! Needless to say, you cannot put all the specs and screen shots in the limited
Available as a through-hole hobby kit or a factory assembled & tested SMT ver- space of this ad! Visit our website at www.ramseykits.com for full specs and
sion. information.

ABM1 Passive Air Band Monitor Kit $89.95 If you're looking for the finest air pressure and elevation sensor, check out the
ABM1WT Passive Air Band Monitor, Factory Assembled & Tested $159.95 UP24, truly a marvel in the industry! Available in a ready-to-build kit or a factory
assembled and tested version.

3-In-1 Multifunction UP24 High Resolution Air Pressure/Elevation Sensor Kit $239.95
UP24WT Factory Assembled and Tested UP24 $299.95
Soldering Lab
✔ ROHS soldering station!
✔ Digital multimeter!
✔ Regulated lab power supply!
✔ Everything all in one unit!

Take a close look! On your left is a multi-function 3½ digit digital multimeter. Its MORE than just friendly on-line ordering!
large backlit LCD display can be seen from anywhere on your bench while you’re Clearance Specials, Ramsey Museum, User Forums, Dealer Information, FAQ’s, FCC
working. The DMM also features built-in transistor, diode, and continuity testing,
data hold, and audible alarm. Next up, the regulated lab DC power supply. Info, Kit Building Guides, Downloads, Live Weather, Live Webcams, and much more!
Switch selectable ranges of 3V, 4.5V, 6V, 7.5V, 9V, and 12V provide a continuous
duty current of 1.5 amps with a 2 amp peak! Features both overload protection
and overload indication.

To the right we have a high quality temperature regulated soldering station. The
www.ramseykits.com
24V low voltage iron features an isolated ceramic 48 watt temperature controlled
element. Front panel control gives you variable tip temperature control from
150°C to 450°C and LED indication of power-on and heating-on. Runs on 120VAC.
LAB1U 3-in-1 Miltifunction Soldering Lab $119.95
800-446-2295
Just Off The Press! Where
Electronics


Build It!
Learn It!
590 Fishers Station Drive
Get the new 2007 Ramsey Hobby
Victor, NY 14564 Is Always ✦ Achieve It!
Catalog! 96 value packed pages of Fun!
(800) 446-2295 ✦ Enjoy It!
the neatest goodies around with lots of (585) 924-4560
new stuff! Order yours today on line or Prices, availability, and specifications are subject to change. Not responsible for typos, stupids,
printer’s bleed, or migraine headaches. Possession of this Valentine’s Day ad will not guarantee
you a date! Visit www.ramseykits.com for the latest pricing, specials, terms and conditions.
give us a call... Or download the PDF! Copyright 2007 Ramsey Electronics, LLC...so there!
Q&A.qxd 1/11/2007 5:36 PM Page 20

■ WITH TJ BYERS
QA
& WHAT’S UP:
Hot chocolate, a warm fire,
and a list of fun, one-night
projects. What better way to
while away winter?
In this column, I answer questions about all
aspects of electronics, including computer
✓ Sawtooth generator.

hardware, software, circuits, electronic theory,
troubleshooting, and anything else of interest
✓ MIDI AB switch box.

to the hobbyist.
Feel free to participate with your questions, ✓ Phone transmitter key.

✓ Model RR trolley controller.
comments, or suggestions.
Send all questions and comments to: ●
Q&A@nutsvolts.com

■ FIGURE 1
SAWTOOTH
GENERATOR
Could you please show

Q me how to make a
variable-frequency saw-
tooth generator?
— A Devoted Reader

You didn’t say if you

A wanted a digital or
analog circuit, so I will
give you both. A saw-
tooth wave is characterized by a
positive-going linear voltage ramp
concluded with a sharp drop to
zero (Figure 1a). One way to
generate a sawtooth is to slowly
charge a capacitor via a constant
current source, then quickly dis-
charge the capacitor by shorting it
out. By repeating this process, a
sawtooth waveform is created.
But constant-current sources
can be complex — especially if
you want to make it adjustable. In
lieu of a constant current source,
a fixed resistor is often used to
limit the cap’s charging current.
However, the voltage across a
charging capacitor using a fixed
resistor isn’t linear. It starts off fast
and finishes slowly, creating the
waveform you see in Figure 1b.
But by selecting a section of the
curve that is more or less linear —
20 February 2007
Q&A.qxd 1/10/2007 11:37 AM Page 21

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

as shown by the red dashed lines — ■ FIGURE 2


4V-16V
we can generate a pseudo sawtooth.
A 555 timer is an astable oscillator
that exploits the charging and
discharging of a capacitor. It has its
8 4 Frequency
trip points — the points where the cap 3.3K
R
starts to charge and ends charging — 1M
LMC662
at 1/3 and 2/3 the working voltage, 3
555 + LMC662 Sawtooth
7
creating the waveform shown in Out
+
Figure 1c. Not perfect, but good 6 1K
1K
enough for most electronics designs. 2 Wave 10K
The waveform is then buffered (Figure 1.44 Form
2) and conditioned. The Frequency 1 5
f=
pot changes the frequency and the
C
0.1
RC 4.3K Sawtooth
.01
Wave Form control adjusts the wave Generator
to keep the top and bottom of the
waveform from being clipped.
A more linear sawtooth waveform 5V-15V ■ FIGURE 3
can be generated using a digital up
counter with weighted outputs. Look
at the sawtooth generator in Figure 3.
The 4516 binary counter has
f = 300Hz 16.2K
BCD outputs (1, 2, 4, 8) that represent - 30kHz
values from 0 to 16 in increments of 1. 1K 4516 32.4K
Let’s set the current of the 1 output 33K P3 Q3
P2 Q2
(Q0) to 40 µA by placing a 130K LMC662
P1
P0
Q1
Q0
64.9K
resistor on pin Q0 to ground. This 10K + PL TC 130K
means that every time Q0 goes high, CP + LMC662 Sawtooth
CE
40 µA will flow through the resistor. 470 pF U/D Out
1M MR
Now let’s set the current of out-
put 2 (Q1) to 80 µA — twice as much Frequency
current as Q0. When Q0 is on and 1K
Q1 is off, 40 µA will flow. When Q0 is
off and Q1 is on, 80 µA will flow. But Sawtooth Generator
when both Q0 and Q1 are on, 120
µA will flow — three times the amount
of current through Q0 alone. Does of the sawtooth waveform using the While there is a four-layer
that sound like the number 3?
By setting Q2 and Q3 to equal
160 µA and 320 µA, respectively, we
can represent all the values from 0 to
16 using currents. These currents
formula f = 1/2n where n is the
number of weighed outputs.

AM FREQUENCY
A diode equivalent of the
M4L3054, I doubt it will fit
comfortably into the original
design. Aptly named a diac, this family
of breakover diodes are made to
are summed at the node of a GENERATOR trigger triacs in phase-controller circuits.
non-inverting op-amp and output as Unfortunately, they have a characteris-
a voltage. Notice that again the saw- In the 1968 winter edition of tic breakover voltage range of 27 to
tooth waveform isn’t exactly a linear
ramp, but a staircase of small
individual voltage steps, as shown
in Figure 1d. You can increase the
resolution and remove the coarse-
Q the Popular Elec tronics
Experimenter’s Handbook,
Don Lancaster published a
simple signal generator project called
the AMLIGNER, that used nothing more
70 volts — far in excess of the 12 volt
design voltage.

ness of the waveform by increasing than a diode, a resistor, a coil, and two
the number of steps from four bits to capacitors (see Figure 4). The diode was
five bits using a 4518 (Figure 1e). a Motorola M4L3054 four-layer device
The greater the number of binary that is no longer available. Is there any
digits, the better the resolution of the substitute for the M4L3054? If not, what
sawtooth waveform. is your recommendation?
The input frequency (LMC662 — Dennis L. Farkas
oscillator) determines the frequency Ocala, FL ■ FIGURE 4
February 2007 21
Q&A.qxd 1/10/2007 1:26 PM Page 22

■ FIGURE 5 The coil may be tapped, kill power to the tracks for a few
or there could be a small- seconds each time the track voltage
er second coil wound is reversed?
over the first. While — Don Hicke
you’re at it, snag the San Diego, CA
tuning capacitor, too.
However, it’s been a long The time delay is the easy
time since I’ve seen a six-
transistor AM radio, so I
suggest buying
loopstick antenna (see
websites below). Again,
a A part. The hard part is
triggering the timer from a
reversing DC voltage. After
considering the alternatives, I decided
to monitor the voltage across the RU1-
pair the tuning cap to the 1 reversing relay rather than the voltage
antenna because its value across the trolley track itself. For one,
will change as the induc- the relay voltage is either on or off, and
What is my recommendation? tance of the different loopsticks second, it’s a constant 12 volts as
To use a 555 timer configured as a changes. For example, the loopstick opposed to a variable voltage that the
relaxation oscillator — a.k.a., a saw- antenna sold by Scitoys requires a 160 speed controller places on the RR
tooth oscillator. Like a breakover pF tuning cap which — not coinciden- tracks. That done, I now needed to
diode, the 555 lets a timing capacitor tally — happens to be the only variable translate the relay voltage (or lack of)
charge to a predetermined voltage, at cap they sell. Other than that, feel free into a negative-going pulse to trigger
which time it discharges the capacitor to express yourself with your rendition the 555 timer. This I did using a pair of
and generates an output pulse. And of the new AMLIGNER 2007. inverting logic gates.
like the breakover diode, it needs only When the gates are cascaded, a
two external parts — a timing resistor www.angelfire.com/electronic2/ negative transition occurs alternately at
and a timing capacitor — to index1/index.html the outputs of the inverters each time
ccomplish this. The 555 has the added the relay is energized and de-energized.
benefit that the input trigger is isolated www.scitoyscatalog.com These outputs are then summed and
from the output pulse, which means fed to the time-delay’s input trigger
the impossible-to-find 22 1/2 volt www.hobbytron.com (pin 2). The result is the circuit shown
battery can be replaced with a much in Figure 6.
smaller A23 (wireless doorbell) 12 volt The 1N4148 diodes, 100K pull-up
alkaline battery. The new AMLIGNER
TROLLEY TRICKS resistors, and .01 µF caps are required
is shown in Figure 5. I use a Miniatronics RU1-1 to prevent the outputs from interacting
Because the original design is 40
years old and built with parts of its
day, a few words about construction
are in order. The tuning coil is a loop-
stick antenna salvaged from an AM
Q point-to-point automatic
reversing unit on my model
train layout to control a trol-
ley running up and down Main Street.
Problem is, when the trolley gets to
with each other. Now each time the
relay changes state — reversing the
polarity across the tracks — the 555
activates the time delay relay, which
cuts power to the tracks for the
transistor radio. They are easy to each end of the line it reverses prescribed time. This is about 12 sec-
identify; just look for a coil wrapped instantly and takes off in the opposite onds for the values shown; increasing
around a three-inch (or so) ferrite rod. direction. Can you suggest a way to or decreasing the value of the 100 µF
cap changes the de-
■ FIGURE 6 +12V lay time accordingly.
To Speed
Transformer
JOYSTICK
RU1-1 8 4 SORROWS
4049 100K 100K 10K 100K
Relay
A while

Q
Coil 3 To
4049 .01 555 Track
7 back, I
1N4001 6 1N4001 modified
1N4148 .01
2 an arcade-
qualit y digital joy-
1 5 stick to emulate an
100 uF analog stick for use
Polarity Reversal .01
with a MAME
Detector (Multiple Arcade
22 February 2007
Q&A.qxd 1/10/2007 11:37 AM Page 23

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

Machine Emulator). I used resistors and movement when the satellite signals easy enough to convert it to a digital
SPDT microswitches using info I found are blocked by tall buildings, trees, signal using a Schmitt gate, like
on the Internet to generate the appro- and tunnels. A vehicle speed sensor the 40106.
priate resistance. This worked fine on typically consists of a toothed ferrous
the gameport of my old computer, but metal gear, a sense coil, and a bias
my new Dell, running Windows XP, only magnet (Figure 7). As the gear rotates,
CONNECTING MIDI
has USB ports and doesn’t recognize the magnetic field between the gear I am a 73-year-old who, after
the joystick. What is the easiest solution
to this problem?
— Walter J. Maslowski

Your analog joystick won’t


and the bias magnet changes because
of changing distances between the
magnetic material and the magnet.
This induces a voltage into the sense
coil that is converted into a square
Q many years, has finally found
time to attempt to enter the
world of electronic music by
way of keyboards — the magic(?) of
MIDI. I have read a number of books

A work because it has an


analog interface and the
USB port is a high speed
serial interface. However, you have
three solutions. The first is to replace
wave and distributed throughout
the vehicle. This signal has an output
voltage of five to seven volts and a
frequency of 133 Hz at 60 MPH
(based on 8,000 pulses per mile).
on the subject, but still have trouble
matching up channel outputs to sound
module inputs, so here are my ques-
tions. Is there any way to insert some-
thing in line that will provide a readout
your modified joystick with a USB joy- When tracing the vehicle sense wire, of the particular channel being
stick. They come in a wide range of one of the rear wheels is t ypically transmitted to a selected sound
models and prices, ranging anywhere rotated by hand at 2 MPH, which module in order to match them? Is there
from $15 to $50, depending on fea- results in a frequency of 4.4 Hz. any method that allows me to switch
tures. But I’ll bet you’re hooked on The circuit in Figure 8 is a mono- from one sound module to another
your analog joystick, or you wouldn’t stable multivibrator that triggers on quickly while playing a keyboard with
be writing. In this case, you can use a the positive-going edge of the square MIDI output?
game port to USB adapter, like the wave, causing the LED to light. A small — W.A. Lee
RM-203 from Custom Sensors (www. coupling capacitor (0.01 µF) prevents
usb-port.com/rm203.html). About $30. DC voltage from triggering the pulse- You can monitor the activity
If you have an empty PCI slot in your
new PC, you can plug in a game
port/MIDI adapter, which accepts your
analog joystick. Just make sure to install
the Windows XP software driver that
stretching, one-shot circuit, thus
guaranteeing that only fast-rising AC
signals (like the VSS square wave) will
be detected — not low-voltage signal
or +12 volt power lines.
A on a MIDI line by simply
placing an LED across the
data wires, as shown in
Figure 9. Notice that the LED/resistor

comes with the board. Prices start at At 4.4 Hz, it’s normal for ■ FIGURE 7
around $20. the LED to flash about
once per second, further
enhancing the “got it!”
IN SEARCH OF VSS effect. I wasn’t able to run
When installing GPS units, I down the Chrysler analog

Q frequently need to tap into


the VSS (Vehicle Speed Sen-
sor) wire on vehicles. Most of
the time it is very easy; the ECM (Elec-
tronics Control Module) on most vehi-
VSS signal you speak
about, but if you happen
to run across one, it’s

■ FIGURE 8 +12V
cles is where you find it. But sometimes
it becomes a laborious chore, taking
hours to locate. On the newest Chrysler
vehicles, for example, the VSS wire
color changes from model to model, 100K LED
.01
and some models use analog rather Probe
10 uF
than digital signals. If I had a handheld 4001 4001
+
device that could identify the VSS lead, Gnd
life would be so much simpler.
— Mike Ventrella
4001
Let me first tell our readers

A
1K
that the reason for the GPS Vehicle Speed
unit tapping into the VSS is Signal Detector 4001
to keep track of vehicle
February 2007 23
Q&A.qxd 1/10/2007 11:38 AM Page 24

indicator can be inserted without the number of DIN connectors you It sounds to me like your
cutting any wires — a plus for those of
us who have paid a premium for gold-
plated connectors. Flashing of the LED
is normal as the MIDI port spits out 1s
and 0s. As for switching between
can fit into the enclosure.

PHONE MESSAGE
WAITING
A phone service uses DC
voltage neon technology for
message waiting. There are
three formats used for message waiting
in current use. Neon technology
sound modules, this can be done accounts for about 50% of the phone
using a switch box. Look for them on I want to add an audio systems that support message waiting
eBay under MIDI switch boxes. If
you’re up to building it yourself,
gather together four five-pin DIN sock-
ets, a three-position rotary switch, three
resistors, and three LEDs, and
Q
indicator to message waiting
on our PBX. Currently, we
have a neon lamp that flash-
es about once per second when we
have a message waiting. (Our lamp is
lights. What the exchange does is place
a 90 to 140 volt DC voltage on the line
when a waiting message is pending. Be-
cause it is DC rather than AC, it won’t
activate the ringer. To verify my suspi-
assemble them as shown in Figure 10.
a module that plugs into the RJ45 cions, test the phone line using a DC
While my example is limited to three
phone jack.) What I would like to do voltmeter on the 150 volt range. With
MIDI devices, you are limited only by
is add an audio device (buzzer or the phone on-hook, the voltage across
speaker) that would emit a the Tip and Ring wires (red/green or
■ FIGURE 9 tone/sound at the same rate. yellow/black) should read about 50
Volume would be about the volts at “rest.” If you have a message,
J2
same as a microwave beep- you will measure a constant or “flash-
J1 220
4 5 er and might include a pot to ing” DC voltage of 90 to 140 volts.
Shield Shield adjust it. I don’t want to load The best way to approach this
5 4 the line down and would project is with an optoisolator. This
LED probably use a nine-volt bat- can be done using an optocoupler IC
tery. Do you have something like the 4N33, or by making a DIY
quick, cheap, and easy? neon lamp/phototransistor combina-
MIDI Transmit Indicator — Kelly Hoffman tion (Figure 11). The latter has the
The University of Texas advantage of being unpolarized — that
is, you can connect it to either phone
■ FIGURE 10 wire and the lamp will still light. The
LED-controlled 4N33, on the other
hand, won’t work if the wires are
reversed. If you opt for the neon lamp
combination, couple the two together
using a length of black shrink tubing.
The tubing will hold the optical parts in
alignment and keep out ambient room
light. The phototransistor acts like an
on/off switch. When the LED or neon
lamp lights, the transistor conducts
and applies voltage to the oscillator.
While the oscillator can be any
audio device (such as an annoying
buzzer or screaming piezo device), I
thought you might like a pleasant
bird sound. The “bird” generator is a
modified Hartley oscillator that pro-
duces a chirping sound as C1 charges
and discharges through the 2N2222
base-emitter junction. Feel free to
experiment with different capacitance
values to achieve other effects.
The audio transformer can be
salvaged from an AM transistor radio
(as can the speaker) or you can buy
one from RadioShack (273-1380). The
optional 47 ohm resistor is used to
lower the speaker volume; alternative-
24 February 2007
Q&A.qxd 1/10/2007 11:38 AM Page 25

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

MAILBAG
Dear TJ, for just tens of dollars. Look for model numbers such as
On your December ‘06 answer about IEEE-488 and GPIB-232CV-A, 232CT-A, IoTech’s Serial, and Micro 488A.
USB, I too have many older instruments with an IEEE-488 There is also a dirt cheap GPIB-to-USB converter on the
(GPIB) port. Over the years, I have found several inexpen- market made by Prologix (www.prologix.biz). It’s sold
sive ways to interface them to my PC. The cheapest way is by SparkFun Electronics (www.sparkfun.com) for $125,
to pick up surplus GPIB to RS-232 interface boxes made by software included.
National Instruments, IoTech, and the like. Since this is by — TVB
now old-fashion technology, they can be found on eBay www.LeapSecond.com

ly, a 100 ohm pot can be used 1N4004


instead to make a continuously + 47 ohms

+
1N4752 .01 1K : 8 (see text)
L 100 uF x
variable volume control.
I 4N33 x
.02 SPKR
N 47K
PHONE XMTR KEY _
E x
x 2N2222
22K
1W +
I would like a circuit

Q
9V 1K : 8 x
that would key the mic 4.7K
on my transmitter SPKR
100

+
when my home phone 22K C1
100 uF x
rings. I had originally thought L
Neon x
Lamp
about using an NE51 neon bulb I
with a photocell and a small N
Light-To-Audio "Bird Chirp"
relay, but I can’t find an NE51 in E x
my cit y. Do you have a better ■ FIGURE 11

February 2007 25
Q&A.qxd 1/10/2007 1:24 PM Page 26

circuit that wouldn’t affect the phone line? borhoods, ex- 1 uF


— Ray Escue pect to find 100 100
250V Phone Ring Detector
K4RDK volts at 20 Hz to 1N4004
25 Hz. The cir- L To Xmitr
This is one of those cases cuit consists of I

A
RadioShack
where, thankfully, you don’t an input cap, a N 275-005
E

+
need optical line isolation. A bridge rectifier 1N4742 7V, 14mA
10 uF
12V
coupling capacitor is all the (made of four
isolation you need, plus the phone 1N4004 diodes), ■ FIGURE 12
company provides all the power need- a voltage-limiting
ed to drive a sensitive relay directly. No Zener diode, a filter cap, and a with the exception of the 1 µF cap, you
external battery needed! In most neigh- RadioShack relay (Figure 12). In fact, can get all the parts from RadioShack.
The 1 µF cap is often found in small mo-
tors or ceiling fan speed controllers.
Check your local appliance repair shop
or do your shopping at one of the mail-
order jobbers, like Jameco.
The ringer signal from the phone
company’s central office is a 20 to 60
Hz sine wave of 90 VAC to 150 VAC.
The capacitive reactance of the 1 µF
input capacitor is about 6K to 8K,
depending on the ringer frequency. This
limits the ringer current to 14 mA, more
or less — well within the pull-in range of
the relay. Don’t be concerned that the
input voltage is 100 volts plus and that
the relay is a mere seven volts. Relays are
current operated devices and by limiting
the current with the input cap, the relay
coil will seek its correct operating
voltage. But to be on the safe side, a 100
ohm input resistor and a 12 volt Zener
diode protects the relay from surges and
unexpected voltage spikes. NV

COOL WEBSITES
Electronic Parts by the Pound.
Let grab bags fill the empty bins
in your parts cabinet.

Alltronics

www.alltronics.com/cgi-bin
category/5

Electronix Express

www.elexp.com/srp-indx.htm

Jameco

www.jameco.com

SMC Electronics

www.smcelectronics.com/
grabag.htm
26 February 2007
Full Page.qxd 1/10/2007 10:50 AM Page 27

Updated Website Features: New Shopping Cart Features


www.goldmine–elec.com Improved Navigation
Create Personalized Accounts
Create your own Wish List
Sale Items & New Arrivals
Visit Us Online! Easy “Quick Ordering” Online Catalog
Large 12” x 12” 20VDC .25Amp Glass Toll Free Order Line:
Solar Panel with Wire Tabs Amazing 1-800-445-0697
This solar panel has been designed Deals! Fax Line: (480) 661-8259
for 12VDC applications and can We have over 4,000 electronic components and items online at discount prices!
charge batteries, pump water, power
transmitters, electronic devices, emer- Martian Micro–Rover Robot Kit
This robot starts exploring in the dark. Its electronic brain causes this robot to move forward and
gency power, etc. Features open cir-
backward in a straight line. This motion can be adjusted (programmed) using two poten-
cuit voltage of 19 to 21VDC and short circuit current of
WLRPHWHUV$VLWPRYHVGLIIHUHQWFRORUOLJKWVEOLQNRQDQGLWVWDUWVVHDUFKLQJIRUDUHÀHFWLYH
0.22 to 0.26Amp. New with metal wire tabs already in-
surface (white paper, white plastic, etc.) through the use of an LED/CDS sensing system. For
stalled to allow you to simply solder your hookup leads
XVHRQÀDWVPRRWKVXUIDFHV$SSUR[LPDWHVL]H´/[´:[´+2SHUDWHVRQRQH
to the panel with standard rosin core solder. Size 12” x
9V battery (not included). Complete with all parts, PC board and instructions. Skill Level 2.
12” x 0.125”Thick. New, but may have slight cosmetic
C6759 $18.95 ea. Visit us online for our complete line of interesting kits!
defects (edge chips, discoloration etc) – that will not
affect output. Enjoy free power from the Sun!
G16131 $28.95 ea. As a special bonus for Nuts & Volts readers,
VISIT US
ONLINE!

Super Power 12VDC Gear Motor go online to our search engine and enter: NVFEB for an exclusive offer!
Sealed case gear motor was made Offer Expires 02/28/07
for automotive applications. Motor
operates on 12VDC and features Bertsch Micro Motor Optex F–51167NCU–FW–AA Color LCD
0.52”Dia. x 0.5”L shaft with 8 spines Small odd shaped motor by Display w/ CFL Backlight
(or ridges). The shaft rotates at ap- Bertsch has a unique arma- New very high quality Optex
proximately 5RPM and has very ture (see picture for the three F–51167NCU–FW–AA color LCD
high torque. Overall size including coil armature). It is about 0.93”L x 0.67”W x display. Features 320 x 240 dots,
mounting ears about 4.2” x 3.2” x 0.39”D. It has a 1mm diameter x 2mm long shaft and two a viewing area of 122.0mm(W) x
1.1”Thick (without shaft). Part # PP–GF30 made by solder eyelets for connection. Operates on 3VDC up to 92.0mm(H), 8 – bit parallel data transfer
TRW. Has built in 2 pin male connector, however 9VDC. Sorry, no other specs available. and an overall size of 167.1mm(W) x 109.0mm(H) x
G16260 $3.49 ea. 8.0mm(D). LCD supply voltage 5VDC. CFL voltage re-
we do not have the matching female connector.
G16034 $7.95 ea. T6 Torx Screwdriver quirement (starting voltage) = 700Vrms - operating volt-
Small screwdriver age = 430Vrms. Brand new worth over $100! See link
Amazing Wire Glue on our website for full spec sheet.
Brand new product is an elec- for the T6 Torx screws is very handy to have around. We
G16239 $21.95 ea.
trically conductive glue. Make keep several of these in our toolsets here as we frequently
electrical connections quickly run into T6 Torx screws on electronic assemblies. This Hantronix HDM16216L–S 16 Character
without heat or solder. Attach screwdriver is lightweight and is good for overall use. We 2 Line LCD Display with Backlight
wires to glass solar panels, batteries, etc. got tired of buying T6 Torx screwdrivers at up to $10 each High quality miniature 2 line 16 char-
using this amazing product. Highly conduc- from the local hardware store and decided to start carrying acters per line display features an
tive non-toxic no lead product is great for this popular size ourselves. New in manufacturer’s bag. overall size of 53mm x 20mm. Stan-
low voltage electrical connections. Just apply G16146 $0.99 ea. dard 5 x 7 dot display with cursor and LED
backlight. Viewing area is 36mm x 10mm.
DQGDOORZWRFXUHRYHUQLJKW<RX¶OO¿QGKXQGUHGVRIXVHV Handy 6 in 1 Screwdriver/Level/Flashlight +DVSLQÀDWULEERQFDEOHIRUFRQQHFWLRQ
for this amazing product. Brand new in blister pack jar Handy 6 in 1 tool
containing 0.3FL oz. This display module has a built in LCD con-
¿UVLQ\RXUSRFNHW troller IC, and driver IC. Display has LED
G16133 $3.95 ea. You get two dou- backlight. Complete specs and hookup in-
ble sided quality tip bits (two different sized straight blades formation are available on the internet. The part number
Universal Tilt Adjustment
and two different sided phillips bits). It also has a hand that is printed on ribbon cable is HDM16216L–S–LC1P.
Platform Assembly
ZKLWH/('ÀDVKOLJKWRQVFUHZGULYHUHQGWROLJKWXSWKH Brand new display and is worth over $9 each!
Made for adjusting a mirror in an
screw you wish to remove or install. Finally it has a built in G16081 $3.95 ea.
automobile this assembly consists
“bubble” level on the handle. Compact size, only 5.5”L x
of two internal motors with gears. Scissor Cut SS Copper Clad
1”W. Brand new in retail package. Black and silver color.
By applying different polarity to Simple to use – just cut this copper
Ready to use (batteries installed).
each of the motors the motors can G16256 $7.95 ea. clad to your desired size using a pair of
push/pull the platform. Overall size of scissors. Features copper on one side
the platform is 4.3”sq. x about 2”H. Platform can also Rubber Grip 14 White LED Flashlight for easy etching and a thickness of only 0.016” which
be adjusted manually without damage. Operates from This is our best compact 14 LED brilliant PDNHVLWVRPHZKDWÀH[LEOHDQGHDV\WRFXWWRVL]H
12VDC up to 15VDC. Has female socket pins on mo- ZKLWH ÀDVKOLJKW &RPHV FRPSOHWH Great for making all types of electronic projects. Has
tors for wire connections (2 on each motor that allows with three “AAA” batteries. All metal peel off protective backing on one side.
you to insert any solid 22 gauge wire for connections). body with rubber/non–slip grip. This G15697 5.5” x 6” $0.99 ea.
Made in the USA by EATON. has a pushbutton on/off switch on the G15698 5.5” x 12” $1.75 ea.
G16067 $6.49 end and a carrying strap. The beam on this is very bright!
High Quality 16 Pin Machine Pin Socket
Our Brightest 10,000MCD 5mm Red LED New in sealed retail package. Full factory tube of thirty 16 pin ma-
G16244 $8.95 ea.
Absolutely our brightest red FKLQH SLQ ORZ SUR¿OH VRFNHWV %UDQG
LED. This outputs an incred- 200V 1.5Amp WO26 Miniature Bridge new. Blowout price!
ible 10,000 MCD when 2.7VDC is applied. Requires 7\SH:2EULGJHUHFWL¿HULVRQO\DERXW´'LD G16259 $5.00/Tube of 30 sockets
about 40mA. Crystal clear 5mm (T 1 3/4) lens. Color x 0.17”Tall. Has four leads trimmed to about 0.18”
ZDYHOHQJWKQP9LHZLQJDQJOHÛ%\6XQOHG long for PCB mounting. Special pricing! A63/LR41 Tiny Alkaline Batteries
G16257 $0.49 ea. G16255 4/$0.99 These power up heaving aids, tiny calculators,
body jewelry lights, etc. Size about 7.9mm x
Solid Tungsten Carbide PC Board Drill Bit Assortment 3.6mm. Rated 1.5V each. Package of three. New!
Consists of 10 different solid tungsten carbide drill bits made for PC board G16258 $0.99/Pkg of 3
hole drilling. These came from a PC board manufacturer that closed
and may have been resharpened or used drill bits. Each bit has a small Solid Carbide Spiral Upcut Router Bit
collar on it and most have the size marked on it (some sizes may be metric). Solid carbide 1/8”Dia. shaft
Bits range from big to 80 (very tiny). All shanks are standard 1/8”. These will drill spiral upcut router bit has a cutter di-
WKRXVDQGVRIKROHVLQ3&ERDUGVKRZHYHU\RXVKRXOGXVHDGULOOSUHVVDVÀH[LQJWKHVHWLQ\ELWVZLOOEUHDNWKHP7KLV ameter of 2.0mm and a 1/4”L cutting length. These are
LVRXUEHVWDVVRUWPHQW:H¿QGWKHVHELWVYHU\XVHIXOZKHQPDNLQJ3&ERDUGVKHUHDWWKH*ROGPLQH razor sharp and have been professionally repointed.
G15421 $12.00 G15796 $1.00 ea.
Promo Offer Expires 02/28/07 $10.00 Minimum Order + Shipping Electronic Goldmine • www.goldmine-elec.com • 1-800-445-0697 • P.O. Box 5408, Scottsdale, AZ 85261

February 2007 27
NewProductsFeb07.qxd 1/11/2007 9:16 PM Page 28

NEW
■ HARDWARE
■ SOFTWARE
■ GADGETS
■ TOOLS

P R O D U C T S
USB MOTION length of cable with attached USB environment — in the home, outside,
connector (may be used with a and even underwater.
DETECTION USB extender for distances up Gadget lovers of all types — from
SYSTEM to 100 feet or more). electronics hobbyists to students to
This do-it-yourself sys- amateur scientists — will use the

K adtronix introduces the


USB Motion Detector
(UMD) system. Costing as low
tem provides a low-cost
option for those with
knowledge of low-voltage
HOBO Pendant G logger in a broad
range of activities, from recording G
forces on rollercoasters to measuring
as $91 in single-unit quantity, the wiring and assembly. activity patterns of people and/or pets.
system is comprised of the follow- (Motion detector and Once data has been collected,
ing elements: USB motion AC power adapter sold users can display the data in colorful,
detector, USB wiring interface, separately.) Also available easily recognizable graphs on a PC or
and Windows software. is a complete turn-key system includ- Mac, and print out the graphs to share
This product was developed for ing motion detector, USB interface, with others.
applications needing to perform and Digio software, all pre-wired and The HOBO Pendant G incorpo-
motion-triggered actions under PC ready for installation. rates a state-of-the-art, omni-directional
control. Combined with a Windows accelerometer and onboard memory
PC or laptop, the UMD becomes the For more information, contact: capable of storing 64,000 measure-
basis of a smart motion-activated Delahoussaye Consulting ments. It also provides a convenient,
system. Automatically send email, run Tel: 321-757-9280 direct-USB interface for linking to
Email: info@kadtronix.com
applications, play .wav sounds, set a computer, and works with
Web: www.kadtronix.com
digital outputs, play multimedia HOBOware® Lite, a user-friendly graph-
presentations, and more. ing and analysis software package.
Utilizing existing Windows driv- The HOBO Pendant G Data
ers, no custom drivers are needed. ACCELERATION Logger Kit — which includes the data
Included with the UMD is the logger, HOBOware Lite software,
USB Digital I/O Commander “Digio” DATA LOGGER mounting bracket, and USB optic base
software. This software allows you to station — is available now. Check the
define and customize system parame-
ters for your specific application.
Using Digio, configure the system for
O nset Computer Corporation — a
leading supplier of battery-powered
data loggers — has unveiled the HOBO
website for current pricing.

For more information, contact:


any of these applications and more: Pendant G Logger — an easy-to-use data Onset Computer
logger for measuring and recording tilt, Corporation
• Security systems orientation, activity, and motion. Tel: 800-564-4377 or
• Industrial control Roughly half the size of an iPod® 508-759-9500
• Robotics Shuffle, the new HOBO Pendant G Email: info@onsetcomp.com
• Kiosks makes it easy to record data in any Web: www.hobopendant.com
• PowerPoint presentations
• Research
NEW LINE
Digio can be configured for use in
motion-activated slideshows and
OF DYNAMIC
videos, making it well-suited for use in BRAKING
computer-based kiosks. Run motion-
activated multimedia presentations in
RESISTORS
shopping malls, airports, convenience
stores, etc.
The USB interface features 16
M ilwaukee Resistor Corporation
— now in their 62nd year of
business — just introduced a new line
configurable I/O signals and a six-foot of Dynamic Braking Resistors that

28 February 2007
NewProductsFeb07.qxd 1/11/2007 9:17 PM Page 29

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

are used with both AC F-16 Fighting Falcon to a tions panels, or GPS panels,
Variable Frequency Boeing 777, or designing flight simmers get added
Drives and DC Drive their own novel cockpit. realism in their desktop
applications. This new Each MFP comes with or home-built cockpits.
line of dynamic brak- 25 keys which can Through the placement
ing resistors are rated between 300 watts be positioned, removed, and programming of keys
and 6,000 watts and are ready for and re-positioned to any on the MFP, any avionics
shipment in as little as 24 hours. This new location on the panel’s “active surface,” panel can be emulated.
line offers resistors mounted in NEMA making each MFP completely The CH Control Manager™,
type 1 enclosures and are pre-wired for customizable. Each of the 25 keys is optimized for flight simulation and
easy installation both at the OEM’s movable, programmable, wireless, and other entertainment software, is
factory and at an industrial job-site. has no batteries. By using MFPs to combined in the MFP with Ergodex’
The enclosure is constructed from emulate avionics panels, communica- technology, allowing up to 16 panels
aluminum and includes two endplates
and a screened cover. Milwaukee
Resistor Corporation stocks numerous
ohmic values of 300 watt and 1,500
watt resistors which provides the
ability to quickly ship dynamic braking
resistors up to 6,000 watts. Series/
parallel wiring combinations of these
stock values are utilized to create
numerous other resistance values and
braking packages up to 19.2 kw are
also available.
When a load is being decelerated,
the motor acts as a generator,
converting the kinetic energy of the
load to electrical energy. The dynamic
braking circuit converts this electrical
energy into another form (heat)
through the use of dynamic braking
resistors to slow the load. The resistors
are sized based on braking torque
(ohms) and heat dissipation (watts) as
recommended by the manufacturer of
the drive and application.

For more information, contact:


Milwaukee Resistor ProtoMat® S-Series
Corporation PCB Milling Machines
8920 W. Heather Ave. Electrical engineers agree: with a Protomat S-Series
Milwaukee, WI 53224 prototyping machine at your side, you’ll arrive at the
Tel: 414-362-8900 best solutions, fast. These highly accurate benchtop
Fax: 414-362-9876 PCB milling machines eliminate bread-boarding and
Web: www.milwaukee allow you to create real, repeatable test circuits—
resistor.com including plated vias—in minutes, not days.

• Declare your independence from board houses

CH MULTI FUNCTION • Affordable, entry-level price tag

PANEL • The best milling speed, resolution, and accuracy


in the industry

C H Products and Ergodex announce


the CH Multi Function Panel
(MFP). The revolutionary MFP enables
• Single-sided, double-sided, and multilayered
machining without hazardous chemicals For complete details visit:
www.lpkfusa.com
flight simmers to design their own • Optional vacuum table and autosearch camera or call:
cockpits, either duplicating any for layer alignment 1-800-345-LPKF
existing aircraft from a Cessna 172 to

February 2007 29
NewProductsFeb07.qxd 1/11/2007 9:17 PM Page 30

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

to be used on a single PC. The MFP Simulation. The MFP has the same func- With CH’s Control Manager —
also includes a removable clear tray tionality as a keyboard, with some major which supports Windows 98, ME, 2K,
that allows users to create custom key advantages. Each key can be removed XP, and XP 64 bit — a flight sim enthusi-
templates to be placed underneath and re-positioned wherever the user ast can add up to 16 CH controllers,
the tray, aiding in the identification of wants on the MFP tray. Each key is held including multiple MFPs. Software such
key placement and adding realism. in place with a re-usable, inexhaustible as Flight Sim, Combat Sim, and so on,
Sample templates — such as the one adhesive, sometimes called “Molecular sees the controllers as one device. With
shown in the photo — will be available Velcro,” which allows re-positioning the Control Manager, games which are lim-
at no charge on the CH website, as keys over and over again, without losing ited to supporting only one controller
well as the CH Hangar website. any “stickiness.” The MFP can be seen can be used with many controllers.
The MFP is designed for any on the CH Hangar website and ordered “Adding the MFP to our joysticks,
Windows application, including — but at www.chproducts.com/shop/usb yokes, throttles, and the rest of our
not limited to — PC Gaming and Flight .html#23. product line gives our customers the
opportunity to build complete and
ealistic cockpit environments on a
desktop for a minimal price,” stated
Debby McDowell, Director of
Marketing for CH Products. “This is a
real breakthrough for PC gaming and
will take our customers to a new level of
added realism.”
“This product is our first thrust in
OEM channel for bringing Ergodex
technology to customers in new
markets. Working with CH Products
to bring the Ergodex Engine to flight
simmers and other gaming enthusiasts
is an exciting new avenue for our
technology” said Scott Rix, CTO of
Ergodex. “New features and new
implementations of the Ergodex tech-
nology are coming not only in prod-
ucts from Ergodex, but also in OEM
product lines, such as CH’s MFP, and
in the form of licensed technology in
new instrumentation both within and
outside the computer industry.”
The MFP allows you to program
each key in any way you want,
depending on the game. Each key can
perform as any combination of the
following: keystrokes, joystick buttons,
mouse buttons, joystick axis, and
mouse axis. Additional trays and keys
may be purchased so that the
customer can set up one tray for one
game, another tray for another game,
a third tray for Windows applications
(such as Photoshop or Word), and so
on. The MFP includes one CH Panel,
one clear key tray, one set of keys
(keys 1-25), and CH Control Manager
Software version 5.0.

For more information, contact:


CH Products or Ergodex
Web: www.chproducts.com or
www.ergodex.com

30 February 2007
Full Page.qxd 1/10/2007 10:54 AM Page 31
NewsBytesFeb07.qxd 1/11/2007 8:31 PM Page 32

FREESCALE DESIGN
NEWS BYTES the DEMO9S08QG8 board. In addi-
■ NEWS ■ I N N O VAT I O N S ■ IDEAS

continues to reach new milestones of


CHALLENGE LOOKS FOR tion, they will have the opportunity to success and garner kudos for the
THE NEXT EIGHT-BIT purchase Freescale’s USBSYPDER08 qualit y of its product and its work
KILLER APP development tool at a 50-percent improving Internet safety for kids.
discount. In step three, contestants will The popular website that allows
North American developers to vie for submit their application concepts. children to play games and chat in one
$10,000 grand prize and chance to All entries must be submitted on- of the safest online environments to
demonstrate winning app at the line by April 6. Entries may be submit- date was recently chosen by Children’s
2007 Freescale Technology Forum
ted by individuals or groups. Each sub- Technology Review (CTR) to receive its

F reescale Semiconductor is offering


embedded engineers and
engineering students in the United
mission will be reviewed by a panel of
Freescale judges for creativity, design
efficiency, technical complexity, total
coveted Editor’s Choice Award.
CTR is an independent monthly
survey that reviews children’s
States, Canada, and Mexico the Freescale product quantity, usefulness, technology products from professional
opportunity to free their imaginations and overall application rating. educators’ perspectives.
and turn great design ideas into eight- Freescale plans to announce the In a recent review of Club Penguin,
bit innovations. top 10 finalists on April 13. Each CTR awarded the site 4.5 stars out of 5,
The Black Widow $10,000 Design finalist will receive a $1,000 (USD) saying, “The experience is social and
Challenge rewards the most inventive award. The finalists will be invited to easy to play, and it offers a variety of
designs with cash prizes and high- build prototypes of their designs and informal learning opportunities. As a
profile recognition. Registration for the submit them to Freescale for final judg- language experience, the program gets
design challenge opened Jan. 15 and ing. The grand prize winner will receive children busily typing with others, and
closes April 6, 2007. $10,000 and free admission to the there are a variety of games that require
Freescale Technology Forum (FTF) in logical thinking and strategy. All in all,
Design Challenge Details Orlando, FL, June 25-28, 2007. The this is a noteworthy service.”
Contestants can register for the second and third prize winners will “It’s gratifying to receive such a
design challenge at www.freescale. receive $5,000 and $2,000, respectively. high rating from a publication that
com/blackwidow. Once registered, is a trusted source for unbiased and
they will follow three steps and gain KUDOS CONTINUE credible reviews of technology
access to a wealth of design support. AS CLUB PENGUIN products aimed specifically at children,”
In step one, contestants will test their MARKS ONE-YEAR says Lane Merrifield of Club Penguin.
knowledge in a short question-and- ANNIVERSARY “Our sole focus at Club Penguin is the
answer session. In step two, they will safety and enjoyment of our young
participate in a short coding demon-
stration using Freescale’s virtual lab on J ust one year after it launched, Club
Penguin (www.clubpenguin.com)
users and we really value the support
of other organizations that display a
similarly strong commitment to children
and families.”
Since Club Penguin launched its
HobbyEngineering virtual world populated by colorful,
animated penguins in October 2005,
The technology builder's source for kits, components, supplies, tools, books and education.
it has experienced a rapid growth in
popularity and reputation.
Robot Kits For All Skill Levels ICs, Transistors, Project Kits In March 2006, Club Penguin
made its debut on Miniclip.com, the
Motors, Frame Components world’s largest website dedicated to
and Scratch Builder Supplies.
playing online games. A month later,
Club Penguin was the number one
Order by Internet, phone, fax or mail.
game on the site; a position it has
www.HobbyEngineering.com consistently maintained ever since.
Books and 1-866-ROBOT-50 With concerns about online
1-866-762-6850 safety for children at an all-time high,
Educational K 1-650-552-9925 Club Penguin has also garnered
1-650-259-9590 (fax)
sales@HobbyEngineering.com
favorable reviews for its commitment
180 El Camino Real to protecting its young users.
BEAM Kits and Components Millbrae, CA 94030 Thanks to a sophisticated filtering
Visit our store near SFO! system and the presence of live
moderators who monitor what’s going
Most orders ship the day received! World-wide shipping. Convenient payment options. on in the world and deal with any
32 February 2007
NewsBytesFeb07.qxd 1/11/2007 8:31 PM Page 33

reports of misconduct, Club Penguin offers unprecedented


peace of mind for parents. It also adheres to a strict privacy
policy and includes no advertising.
“Although advertising certainly has its place in the
world of adults, I don’t think it belongs on a site dedicated
to children,” says Merrifield, a father of two. “I wouldn’t let
my child watch an hour of advertising on TV. So why would
I on the web?”
Club Penguin recently partnered with NetSmartz
Workshop, a leading educational safet y resource that
teaches children and teens how to stay safer on the Internet.
The site was also selected by the Better Business Bureau’s
BBB OnLine program to receive its Kid’s Privacy Seal of
Approval, a respected designation currently held by less than
a dozen other companies in the world. Club Penguin is
designed for 8-14 year olds, but is open to children of all ages.
Although the site is funded by subscriptions, you don’t have
to be a paying member to visit or play games.

SURVIVALTAG DESIGNED TO SAVE


FIREFIGHTERS’ LIVES

S urvivalTag, the latest in life-saving radio frequency


identification (RFID) technology for firefighters, is in
the final design phase. Embedded in uniforms, fire chiefs
and commanders will be able to use the SurvivalTag
System to track their emergency personnel squads in
at-risk, on-scene situations pinpointing the wearer’s
location for possible rescue by other squad members if
and when necessary.
Influenced by fire chiefs and commanders, RFID, LTD.
(&5"3&"--*'&
is designing and developing a complete SurvivalTag
System that not only monitors the locations of squads but
also their heart rates, respiratory developments, and skin
3FBEZ TFU HPy
temperatures. HFUZPVSESFBNKPC
RFID, LTD. formulates, tests, and deploys vendor neutral
Radio Frequency Identification solutions. .BLF BZFBS
MICROCHIP’S GLOBAL SALES TEAM XJUI/0DPMMFHFEFHSFF
NAMED AS FINALIST

M icrochip Technology, Inc., a leading provider of


microcontroller and analog semiconductors,
announced that Mitch Little, vice president of worldwide
sales and applications, was honored with a Stevie® Award
in the “Worldwide VP of Sales of the Year” category
in The 2006 Selling Power Sales Excellence Awards.
Additionally, Microchip’s worldwide sales organization
was named a finalist in the “Global Sales Team of the Year”
category.
This prestigious award honored Mitch Little and the
Microchip sales team for their significant achievements
during the past year, including the effective addition of
nearly 30% more sales and applications resources to the
global team, at all levels. The elegant Stevie trophy was
designed by R. S. Owens, the same company that makes the
Oscar and the Emmy. NV
February 2007 33
Simpson5.qxd 1/10/2007 11:45 AM Page 34

PROJECTS ●●●●
■ THIS MONTH’S PROJECTS
Home Automation . . . . . . . . . .34

The Digi-Log Clock . . . . . . . . . .42

AVR Programmer . . . . . . . . . . .46

■ LEVEL RATING SYSTEM


C O N T R
YOUR WORLD
O L
To find out the level of difficulty Home Automation: Catch the Wind
for each of these projects, turn
to our ratings for the answers.

●●●● . . . . Beginner Level

●●●● . . . . Intermediate Level

●●●● . . . . Advanced Level


■ FIGURE 1
●●●● . . . . Professional Level

I have always been


T his is the first in a series of
articles where I will take you
into the world of building your
complicated devices in the home
weather station. The anemometer
is also the coolest and most
fascinated by the own weather station and home responsive environmental sensor. It
automation system. I live in a rural can display real-time information
weather. I own several environment where violent thunder several times a second.
of those remote gauges; storms seem to seek me out as if I built four completely different
they are on a search and destroy weather stations while researching
you know, the ones mission. I have lost every single TV this series, and with each I found
that sit on your desk antenna I have placed on my roof. I that starting with the anemometer
and display the outside have had to replace five ISDN seemed to make the assembly of
routers. When a bad storm rolls the rest of the station proceed the
temperature and through, I run around the house like smoothest.
humidity. Some display a madman unplugging things and While the basic construction of
shouting “the rain,” “the rain.” most anemometers is similar, there
rainfall, while others Anyway ... wouldn’t it be cool are three approaches you may take
display barometric to automatically detect the lightning in adding one to your weather
and turn off or isolate various station:
pressure. I even have a devices? This is exactly what we are
couple that display a going to do in future articles, as we • Building a homemade anemometer.
build a home automation system
neat little forecast of using X10. • Purchasing and building an
the upcoming weather. Let’s take some time and look anemometer kit.
And then it occurred at a wind speed sensor, otherwise
known as an anemometer. I will • Purchasing a fully assembled
to me ... show you three types. It may look anemometer.
like we are starting in the middle, as
many would have started with a All three approaches are very
Why not build temperature or humidity gauge first. reasonable in cost. After I discuss
my own weather I wanted to jump feet first into the mechanical aspects of each
anemometers since they are one device, I will provide some basic
station? of the most expensive and most hookup and testing instructions.

34 February 2007
Simpson5.qxd 1/10/2007 11:45 AM Page 35

BY MICHAEL SIMPSON

Homemade rain gauge or another anemometer.


Anemometer
Features of the Homemade
One of the most difficult aspects Anemometer
of making an anemometer is the con-
struction of the cup and hub assem- • This is the most sensitive anemome-
bly. If they are not perfectly balanced, ter out of the three. I ran several tests
the anemometer may not operate outside, and on very calm days this
properly or even worse, fly apart at was the only anemometer turning.
high speeds. A company called The cup assembly has the lowest mass
ForceField has solved this problem for so it takes much less air flow to get it
us. They offer a molded plastic cup going and it also tended to track the
and hub assembly for around $20. variations in winds much better than
As shown in Figure 2, the assem- the others. ■ FIGURE 2
bly has a very small pre-drilled hole in
the center, so all we need to do is • This device is very resistant to water
enlarge it to the correct size and it will damage due to its simple design. Take a counter reading, wait
always be dead center. 1.5 seconds, then take another. Subtract
Our homemade anemometer will • Since you are building the unit, it the first from the second and multiply
feature this assembly. We will build a will be very easy to repair or replace by .88.
small ball bearing mount to attach the parts.
assembly and a couple of magnets Homemade Anemometer Assembly
and a reed sensor. Don’t panic; the • This anemometer has the smallest Before you proceed, please read
reed sensor is nothing more than the footprint and weighs the least of all through all the instructions. You will
small glass reed removed from a reed three, so the weather pole used can need the following tools to complete
relay that you can purchase from your be quite small. this project:
local RadioShack.
To interface this anemometer, we • It’s not restricted to 1-Wire. You can • Drill — This can be any kind of drill.
will use a small, 1-Wire board available use several interface options. You will also need 1/8” and 5/16” drill
from a company called Hobby Boards. bits.
You will be hearing more about I ran tests up to 50 MPH with
Hobby Boards later in this article, as my car, so this anemometer should • Pliers — You will need these to tight-
well as throughout the series. hold up nicely under most weather en the lock nut.
The dual counter shown in Figure conditions. This anemometer uses the
3 is a very small board that measures following formula: • Screwdriver — You will need this to
about 3/4” x 1”. It has a small battery tighten the machine screw.
that will allow the onboard DS2423 to MPH = counts over 1.5 second
retain its counts for years. time period * .88 • Soldering Iron — This is needed for
Schematic 1
shows the basic ■ FIGURE 3
hookup for connect-
ing a reed to the
counter. The cool
thing about the
onboard DS2423 is
that it has built-in
denounce so you
don’t have to worry
about any additionally
circuitry. Notice that
we are only using half
of the counter so later
we can connect some ■ SCHEMATIC 1
other sensor like a

February 2007 35
Simpson5.qxd 1/10/2007 11:46 AM Page 36

bearing upside down


over the bushing.

• Add the remaining


1/8” bushing and
then the lock nut.
Since this is a dry fit,
you may want to use
a standard #6 hex nut
to ease disassembly.

■ FIGURE 4 ■ FIGURE 5 ■ FIGURE 6 At this point, you


should be able to
connecting wires to the reed sensor. part epoxy on the edges before rotate the cap freely while holding the
inserting. Make sure you don’t get hub in your hand. As you rotate the
• 6-32 Tap — This is needed to tap a epoxy on the center surface area of the PVC cap, you will probably notice
small piece of brass tubing. These can bearing or it won’t turn freely. The top hat it is not perfectly centered. Mark
be purchased for a couple of dollars at of the bearing should be flush with the the point on the cap where it is the
your local home center. top of the PVC cap, as in Figure 4. furthest from the inside of the
anemometer hub, i.e., the area with
• Two-Part Epoxy — Needed to attach STEP 3: Tap a small bushing. the most clearance.
a couple of the components. Take a piece of 5/32 brass tubing
and using the 6-32 tap, add about half STEP 6: Attach the magnets.
• PVC Glue — Needed for connecting of the threads to the end of the rod. Remove the PVC cap and bushings
various PVC pipe sections permanently. The best way to do this is to add a few from the assembly. Leave the machine
drops of machine oil. Make sure you screw in place. About 3/8” down from
• Hacksaw — This is needed to cut the tap a single thread, then back it out to the edge of the anemometer hub,
various lengths of PVC pipe. clear the material. Once you have attach one of the small Neodymium
1/2” of the brass tubing tapped, cut it magnets with some two-part epoxy.
Please note that you will most off. This will yield you a small 5/32 Mix only a small amount of epoxy since
likely need all these tools for all piece of threaded tubing. you can only mount one magnet at a
three of the anemometers except for time. Do not get any epoxy on the pro-
the #6-32 tap. STEP 4: Create more bushings. truding machine screw. Once the
Cut a 1/8” piece of 3/16 brass epoxy has hardened, place a second
STEP 1: Prepare the anemometer hub. tubing and a 1/4” piece of brass tub- magnet on the opposite side of the
Drill a 1/8” hole into the center of ing. Clean the edges so that they are hub in the same position. Use the
the anemometer hub. There is already a free from burs. It is important that the protruding machine screw to help you
small hole that will act as a guide (Figure cuts are straight or the anemometer line up the second magnet. Again, mix
2). Once you have the hole drilled, use a will wobble. up some two-part epoxy and glue in
6-32 tap to thread the hole. As an place. It is important that the magnet is
option, you can drill a slightly larger hole STEP 5: Dry-fit the assembly. not more than 3/16” thick or there
and forego the threading. Make sure you won’t be enough clearance for the reed
keep the drill straight as you proceed. • Place a #6 stainless steel washer that we will install later.
onto a 1-1/4” #6 machine screw (6-32
STEP 2: Prepare the PVC cap. is good), then insert the assembly STEP 7: Prepare the reed.
Drill a 5/16” hole into the center of through the top of the hole you drilled If you purchased a reed relay from
a 1/2” PVC cap. I recommend you into the anemometer hub. RadioShack, you need to remove the
make the hold slightly off-center about glass sensor from the relay. This is a
1/16” of an inch or so. This will give you • Thread the threaded bushing onto very simple process. Bend both of the
a bit more clearance when mounting the machine screw that is protruding contact leads so that they are in line
the reed. You should not be able to inside the anemometer hub. with the relay. One of the contact leads
press-fit the 5/16” bearing into the hole. will be protruding through an opening
This is done by placing the cap upside • Now place the 1/4” bushing over the that is large enough for the glass
down on top of the bearing and gently threaded bushing. element to pass through. Simply pull on
tapping the PVC cap. If the bearing this lead and the reed will separate
does not have a tight fit, use some two- • Insert the 1/2” PVC cap with the from the relay. One end of the reed has

36 February 2007
Simpson5.qxd 1/10/2007 11:46 AM Page 37

Control Your World


a small plastic spacer.
Leave this in place and
bend that lead as
shown in Figure 5B.
With a couple pieces
of 1/16” heat shrink,
solder two 24” lengths
of wire to each lead as
shown in Figure 5C.

STEP 8: Attach the


reed to the PVC cap. ■ FIGURE 7 ■ FIGURE 8
Attach the reed to
the cap as shown in Figure 6. It is damage due to its simple design. This ane-
important that the magnet passes over mometer uses
the spot indicated by the arrow. You • Of the three, this is the most rugged the following
can always change the lengths of the design. formula:
3/16” bushings after the reed is in
place. There is a great deal of leeway • Aluminum cups. MPH = counts
for the placement as the Neodymium over 1.67
magnets are very powerful. You can • This is the most professional looking second time ■ FIGURE 9
use a small twisted wire to hold the device tested. period + 2
reed in place while the epoxy dries.
• It has a matching, very heavy duty Take a counter reading, wait 1.67
That’s it for the mechanical assem- wind vane that can be purchased. seconds, then take another. Subtract
bly of the homemade anemometer. At the first from the second and add 2.
the end of this article, I will talk about • Not restricted to 1-Wire. You can The result will be the MPH.
the hookup and testing. use several interface options.
Complete Wind
Anemometer Kit • 1-1/2” PVC mounting gives you Instrument
many placement options.
For those of you who don’t want A while back, Dallas offered a small
to build an anemometer from the The only downside I have found weather instrument to demonstrate the
ground up, your next option is to pur- with this anemometer is that since the use of their chips as sensors. This was a
chase a complete kit. A company hub assembly has so much mass, it takes perfect solution for those wanting to
called Fascinating Electronics sells the a bit more wind than the other two build their own weather station. They
perfect anemometer kit to get your devices tested to get moving. Normally, no longer offer the device, but a
home weather station started. this will not be a problem as we are company named AAG Electronica does.
The kit costs $49.90, and this is talking about one MPH, and at those The unit that AAG offers is actually an
one nice kit. You get everything you low speeds, it’s a moot issue any way. improved version of the original.
need to build the anemometer. We will The assembly of this kit will take Hobby Boards is a US distributor
use the Hobby Boards counter board you one to two hours. The anemome- of the AAG unit. I prefer to work with
as before to interface to our PC. Of the ter, once finished, mounts on 1-1/2” them because the owner Eric Vickery
three units, this is the most rugged PVC pipe as shown in Figure 8. has been very responsive. Hobby
anemometer. It features real aluminum Use a couple of 1-1/2” U-bolts to Boards also offers several other 1-Wire
cups and the design makes for a really attach a 1’ section of PVC pipe to sensors, many of which we will be
water-tight system. Like our homemade your weather pole, then all you need looking at in the upcoming articles in
anemometer, it comes with a reed that to do is slip the anemometer on to the this series.
is triggered twice with each revolution. pipe as shown in Figure 9.
The hookup is identical as well: Simply Fascinating Electronics sells a T Features of the AAG Instrument
connect the anemometer reed to the mount for mounting the anemometer,
counter as shown in Schematic 1. as well as an electronic weather vane. • Very sensitive to wind speed and
This weather vane features a full 360 direction.
Features of the Complete Kit degree reading with no dead zones.
We will be looking at this instrument • Self-contained unit features three
• This device is very resistant to water in detail next month. instruments: wind speed, wind

February 2007 37
Simpson5.qxd 1/10/2007 11:47 AM Page 38

you will need to purchase a U-bolt. I


use a 1-1/2” U-bolt. This size will work
for just about any size mast up to
1-1/2” in diameter.
You will need to drill two holes in
the aluminum mounting rod that
comes with the AAG instrument as
shown in Figure 10.
You should download the
assembly instructions for this device.
They are outdated and refer to the
older V2.0 unit, but contain most of
the information you will need for the
mechanical assembly.
■ FIGURE 10 ■ FIGURE 11 The instrument uses three Dallas
1-Wire chips used to collect weather
direction, and temperature. order to install the wind direction data. A DS2423 is used to collect wind
vane. This will take you 15-30 minutes. speed data. A DS2450 is used to
• Simple 1-Wire interface. It is You will also need to coat all of the calculate wind direction data with a
possible to install and use this device external seams with some sort of resolution of 16 compass points. A
without soldering a single wire. sealant to keep water from entering DS18S20 is used for temperature
the instrument. The PCB inside the measurements. The instrument can be
The AAG weather instrument housing is coated for protection but made to operate off of 5V, but is set by
comes partially assembled. You will the RJ12 connectors are not. default to use 1-Wire parasite power. In
need to open up the main housing in I have had more than a few issues parasite power mode, you only need
with water. Eventually, I used a two wires connected to the unit to
■ FIGURE 13 gutter sealant and that seemed retrieve the data from any of the sen-
to solve all my water problems. sors. I will be going into more detail
Once assembled, the anemome- about the use of 1-Wire sensors, as
ter cups are located at the well as other alternatives next month.
top and the wind vane on the The instrument works flawlessly,
bottom as shown in Figure 10. but I do have a few comments about
To mount this instrument, the effectiveness of the various sen-
sors. I run several temperature devices
■ FIGURE 12 ■ FIGURE 14 on my weather pole and have found
that the AAG temperature tends to
run 2-10 degrees hotter than the
others when the sun is shining. This is
due in part to the fact that the unit has
no ventilation and that the housing is
made of white plastic so it creates a
small solar oven inside. For this
reason, I rarely use the AAG DS18S20
for temperature readings. The wind
vane is ultra-sensitive to wind and
never seems to stop turning. A bit
more surface area and more mass is
needed to make the vane more stable.
The AAG anemometer uses the
following formula:

MPH = counts over 1.5 second time


period * .68

Take a counter reading, wait 1.5


seconds, then take another. Subtract

38 February 2007
Simpson5.qxd 1/10/2007 11:47 AM Page 39

Control Your World


the first from the second. Multiply the is not the same as a standard tele-
difference by .68 phone line cable. If you wish to use a
normal telephone line cable, you will
Hookup need an adapter. One way to do this
is to use a line cable link and two line
There are several ways of interfac- cables as shown in Figure 13. This will
ing to the various sensors needed to effectively allow you to connect two
build a weather station; the three most line cables, thus double-reversing the
common are: two center pins on the connectors.
The other two anemometers
• PC to 1-Wire interface. require a little more prep. As you
• PC to microcontroller interface. recall, we are using a 1-Wire dual
• Microcontroller to 1-Wire/other. counter available from Hobby Boards
as our interface.
Each has its advantages and as the In order to facilitate a connection to
series progresses, we will go into each the PC, we will use a RJ11 surface
type of system in detail. For this mount box, available from most home
article, I will keep things simple and centers. We are going to place the dual
will be concentrating only on the PC counter inside this box so make sure ■ FIGURE 15
to 1-Wire interface. you get a standard sized box, not one of
So far, most of what I have gone the small ones. In order to prep the box, on the counter board. Cut another
over relates to the mechanical con- you need to remove the yellow and piece of wire and attach the red lug to
struction or make-up of each unit. It is black wires. The green and red wires will the Gnd terminal on the counter
now time to hook up each unit and do need to be bent as shown in Figure 14. board. You can now connect the
some tests. In order to simplify things Cut a small length of wire, about anemometer reed leads to the 5V and
here, I chose to use a 1-Wire network one inch, will connect it to the box’s A terminals as shown in Figure 15.
for each of the three devices. This green lug and then to the DQ terminal You can use a standard telephone
makes the actual software needed for
each of the three nearly identical.
In order to connect 1-Wire devices HOMEMADE ANEMOMETER PARTS
to your PC, you will need a 1-Wire to
serial adapter. A DS9097U is shown in ITEM PART NO. SUPPLIER
❑ Anemometer Cup and Force Field
Figure 11. They can be purchased for
Hub Assembly
under $30 and will allow your PC to ❑ Two Neodymium Magnets Force Field
connect to any 1-Wire device. I have ❑ Bearings Team Associated #6589 Tower Hobbies
added direct support for this adapter ❑ Reed Relay #275-232 RadioShack
to Zeus. (Zeus is a custom program ❑ 1/2” PVC Cap Home Centers
available on the Kronos website, which ❑ 1/2” PCV Tubing Home Centers
is listed under Links.) You will not need ❑ #4 1-1/4” Stainless Steel Machine Screw Home Centers
❑ #4 Stainless Steel Washer Home Centers
any drivers or runtimes to support it. ❑ #4 Lock Nut Home Centers
All the test applications written for this ❑ #5 Hex Nut Home Centers
article require this adapter and will not ❑ 5/32” Brass Tube Home Centers
work with any others. ❑ 3/16” Brass Tube Home Centers
The AAG unit has two RJ12
connectors with only four of the six OTHER PARTS
pins wired in each. One of these ❑ Dual Counter DC2.5-R1-A Hobby Boards
❑ AAG Weather WIND-R3-A Hobby Boards
connectors will have a small jumper Instrument
installed. For now, leave the jumper in ❑ AAG Weather Instrument Hobby Boards
place. An 8’ coiled RJ11 cable was Assembly Instructions
also included with the AAG. Plug one ❑ 1-Wire to Serial Adapter DS9097U-A Hobby Boards
end of this cable into the remaining ❑ AAG Weather TAI8515 AAG Electronica
RJ12 connectors and plug the other Instrument
end into the DS9097 adapter. This is ❑ 1-Wire to Serial Adapter DS9097U AAG Electronica
❑ Standard Anemometer WEA-ANKIT-A Fascinating Electronics
all you need to do to start testing. Kit
An important note is the cable ❑ RJ11 Surface Mount GE TL26101 Home Centers
that comes with the AAG instrument

February 2007 39
Simpson5.qxd 1/10/2007 11:48 AM Page 40

LINKS
■ Hobby Boards: opment/ZeusPro/ZeusPro.
www.hobby-boards.com htm

■ Fascinating Electronics: ■ AAG Electronica:


www.fascinatingelectron www.aagelectronica.com/
ics.com/index.html aag/

■ Kronos Robotics: ■ Force Field:


www.kronosrobotics.com/ www.forcefieldmagnets.
xcart/customer/home.php com

■ KRMicros: ■ Tower Hobbies:


■ FIGURE 16 ■ FIGURE 17 www.krmicros.com/Devel www.towerhobbies.com

line cable to connect the surface-mount box to the DS9097 option in the Settings menu. Next you will need to set the
now and you are ready to test. unique ROM registration number for the DS2423 connected to
your anemometer. To do this, select the Search ROMs option
Testing in the Settings menu. The program will display all the ROM
registration numbers for each Dallas device on the 1-Wire
I have included a couple of programs for testing the network. If no devices are displayed, you are not properly
anemometers. The first program called WindSpeed2 connected to the network. You will have to go back and check
(shown in Figure 16) will allow you to test each of the your connections, as well as your com settings. Once you have
anemometers presented in this article. valid devices displayed, select the eight hex ROM numbers
The first thing you will need to do is set the com port that associated with the DS2423 and hit the SetRom button.
you have connected to the DS9097 adapter. Use the Com Port The program will begin collecting data from the
DS2423 sensor and displaying the result via the gauge.
Be sure to set the appropriate calibration factor for the
particular anemometer you are using.
The WindSpeed program is unique in the fact that it
constantly monitors the wind speed sensor and updates the
various indicators by looking at the amount of time that has
passed as it averages the various long-term and short-term
readings. This allows instantaneous displays of readings
down to .1 MPH.

Going Further
I have included a complete mini AAG weather station
that monitors and displays all three sensors from an AAG
instrument shown in Figure 17. The download for these
applications can be found on the Kronos Robotics website
at www.kronosrobotics.com/Projects/catchwind.shtml.
Also available and included at the site is the source
code and Pocket PC versions of the software.
Zeus has a complete low level 1-Wire library using
the DS9097 adapter. There are also several high-level
libraries for interfacing to various sensors directly. I have
also included some simple console-based programs to
demonstrate this interface.
Next month, I will delve into the 1-Wire interface in more
detail. We will look at additional environmental sensors, as well.
I have created a forum devoted to building weather
stations and home automation. I will be posting additional
projects, as well as update notices at www.kronosrobotics.
com/forums/. NV

40 February 2007
Full Page.qxd 1/11/2007 5:40 PM Page 41

2,6 00 NE W 2,5 00 NEW


5,000 NEW
BOURNS MAXIM
PA RT S AM P PAR TS
PART S

Wow! Jameco just added 65,000


new major-brand products!
2,0 00 NEW 19,0 00 NEW
2,8 00 NE W
TE XA S
MOLEX 2,90 0 NEW IN ST RU ME NT S M IC RO CH IP
PAR TS PAR TS PA RT S
V I S H AY
The industry’s fastest
PAR TS Check out these new
growing product offering! 3,000 NEW and expanded lines:
6,200 NEW
You know that Jameco’s catalog
always offers over 99% in-stock AVX Aavid Thermalloy •
AlcoSwitch • AMP •
availability— the best of any elec-
tronic components distributor...
FAIR CHI LD PARTS Amphenol Connex •
Aromat • Atmel • Augat •
And now, they have the PART S Avago • AVX • Bourns • Buchanan •
fastest growing product offering C & K Switches • Comair Rotron •
in the industry! Condor Power Supplies • CTS •
They’ve just added another Cypress • Dallas Semiconductor •
65,000 new parts to their online Elco • Fairchild • Grayhill • Intel •
catalog; and it’s everything Intersil • Keystone • Lumex •
from ICs to passives, optos to Lumileds • Maxim • Microchip •
Micron Technology • Molex •
interconnects, power supplies
NXP/Philips • Panasonic •
to electromechanical.
Power-One • Raychem •
Service & Availability! Renesas Technology •
As Design Engineers Sandisk • Siliconix •
know, Jameco offers great ST Micro • Texas
service, selection and Instruments • Toshiba •
Tyco Electronics • Vishay
same-day shipping!
Intertechnology •
Now you can get those
Wakefield...
same benefits for even
more great brands... Get it here. Right now:

Jameco.com/NVR

Great Products.
Awesome Prices.

February 2007 41
Fonte.qxd 1/10/2007 11:52 AM Page 42

●●●●
This clock project is a
little bit different. It
combines digital logic
and modern electronic
THE DIGI-LOG
components with the
traditional analog
positional display (almost).

The approach lends


itself to all sorts of
CLOCK
The Three-Handed design to display seconds, there will
be two additional rings for the tens
Clock
variations so you can of seconds and ones of seconds
There is a simple technique to (identical in layout to the two min-
choose to make your reading the clock. There are three utes rings). In this case, your clock
clock in whatever “rings” of LEDs for the clock shown. will have five hands: hours, tens of
The outer ring represents hours. The minutes, ones of minutes, tens of
way suits your taste. middle ring represents tens of min- seconds, and ones of seconds. You
utes, and the inner ring represents will probably also have to make it
It should be noted that individual minutes. There is only physically larger to accommodate
while the example built one LED per ring lit. The analog the two additional rings.
clock-face position of this LED The design shown has the hours
only displays hours and indicates the value. Straight up (or as the outermost ring. This is
minutes, the software topmost) is 12. Straight down is 6 arbitrary. You can place your rings in
and so forth. There are 12 positions any order you want. However, I like
(and schematic) fully for the hours, six positions for the reading from the outside ring,
supports hours, tens of minutes, and 10 positions for inward. It seems more natural and
minutes, and seconds. the ones of minutes. In effect, the the most significant digit has the
clock has three hands: hours, tens of biggest ring. I also used different
minutes, and ones of minutes. The colors for different rings for easier
■ PHOTO 1. The clock has three hands: center LED is necessary to provide a ring identification.
hours, tens of minutes, and ones of visual reference in a darkened room.
minutes, and is read outer ring inwards.
The red LED indicates 10 hours. The yellow (I used a bi-color central LED that Design Approach
LED “points” to 40 minutes and the green flashes back and forth between red
LED shows eight minutes. This makes the and green.) Note that the “12” In order to keep the design sim-
time 10:48. If you incorporate the seconds, o’clock position indicates zero for ple and manageable, an LED matrix
then the clock will have five hands. anything other than hours. So 12:00 was used with a microprocessor
noon (or midnight) will have a line (µP). Instead of calling out rows and
of LEDs straight up. columns of a conventional matrix,
Looking at Photo 1, you can see we use rings and spokes for clarity.
that the time is 10:48. The red outer The rings have already been defined
ring LED that’s on is in the 10 o’clock (hours, tens of minutes, etc.). The
position. The lit LED for the tens of spokes are unit values (0-9 for
minutes (yellow) is in the 4 o’clock minutes, 0-5 for tens of minutes,
position, and the ones of minutes etc.). By driving one ring and one
(green) is in the 8 o’clock position. spoke, a single LED can be made to
If you choose to implement the light up. The actual design does this
very quickly (a standard technique
called multiplexing) so it appears
NOTE: that several LEDs are on at one time.
The source code for the software
Using a matrix significantly reduces
is available on the Nuts & Volts
website at www.nutsvolts.com.
the number of wires and micro-
processor I/Os needed. In this case,

42 February 2007
Fonte.qxd 1/10/2007 11:52 AM Page 43

BY GERARD FONTE

five wires are needed for the rings (source code available at the Nuts & capacitors (C1 and C2) provide the
(three if seconds are not used) and 12 Volts website). The software is trivial, precise timing necessary for a clock.
wires are needed for the spokes. Only consisting of only about 200 lines of Switch SW1 is used to increment the
17 lines are needed for 44 LEDs. (It is code. It’s a bare-bones clock. Feel free minutes when setting the clock.
possible to save two wires by connect- to add more features like an alarm, Switch SW2 is used to increment the
ing the “10” and “11” o’clock hour blinking display, or whatever you want. hours when setting the clock.
LEDs to unused positions of the tens of Figure 1 shows the schematic dia- The resistor values for the LEDs are
minutes ring. But it would require spe- gram. As you can see, it’s basically just not specified because they depend on
cial-case software and would be more LEDS and a µP. Most any AC adapter the brightness of LEDs you use. I used
difficult to implement. Since the I/O ranging from 7 to 12 volts AC or DC really old and inefficient diffused LEDs
lines are available, simplicity is chosen.) of either polarity can be used. (I hate so R4 through R8 were 100 ohms. If
searching for a specific wall-wart.) The you use high-brightness LEDs, you may
Electronic Design bridge rectifier (D45) and the large fil- choose to increase these resistors to
ter capacitor (C3) provide a positive 510 or even 1,000 ohms. This is espe-
The electronics are really very easy. DC voltage to the low-power five-volt cially true if you use high-brightness,
I used a Microchip PIC16C73A for the regulator IC (U2). This powers the point-source LEDs. Note that the
µP because I had it on hand. The soft- circuit which only needs 10-20 mA for clock-display LEDs have a 20% duty
ware should run on virtually any other normal operation. The 32,768 Hz cycle and the center LED has a 100%
PIC with little or no modification watch-crystal and two associated duty cycle (50% red and 50% green).

■ FIGURE 1. The clock design is


very simple consisting mostly of
a microcontroller and LEDs. The
tens of seconds ring and the ones
of seconds rings (D29-D44) are
optional and can be omitted if
you only want to display hours
and minutes (like this project).

February 2007 43
Fonte.qxd 1/10/2007 11:53 AM Page 44

■ PHOTO 3. The frame for this


project were fabricated from
stock aluminum channel. If you
don’t want to do that, a thick
picture frame with holding
clips can be used instead.

first and then the LEDs were


placed to fit. Using cardboard
made this really easy. I just put
the face over the cardboard
and pressed an awl through the
Photo 2. Holes were drilled in the holes in the plastic to make holes in the
plexiglas for the LEDs. They protrude cardboard for the LED leads. Standard
slightly from the face. If you want a flat diffused LEDs of T1 3/4 size (0.20”
face, use thicker plexiglas, smaller diameter and 0.34” long) with 0.100”
■ PHOTO 2. The main hardware parts
are a 1/4” thick plexiglas face, aluminum LEDs, or mount the LEDs farther back. lead spacing were chosen because they
channel frame, and oak base. Feel free The aluminum channel I used was were easily available. Photo 4 also
to choose other materials and methods about 5/8” wide and 1/2” deep shows how the oak base was routed out
to suit. (outside measurements). The wall about 0.6” to accept the electronics.
thickness is 1/16” thick.
Be sure to limit the current such that Photo 3 illustrates the channels, as Wiring the Clock
the µP isn’t exceeding the design limits well as a commercial picture frame.
(about 25-35 mA per I/O). These thick picture frames use clips I used point-to-point wiring for
(shown) to hold everything in place. everything. Photo 5 displays the back
Hardware Design Using such a frame will probably save of the cardboard “circuit board” that
time and effort. You should still use plex- held the LEDs. I bent the LED leads flat
This is the most difficult and most iglas (or other clear plastic) for the face, to hold them in place for wiring. After
personal. How you put it together is instead of the glass that comes with the assembly, the holes in the plastic face
really completely up to you. Choose frame. But it will probably have to be keep the LEDs in precise position. It’s
any method or style you like. I chose thinner than 1/4”. Additionally, because easy to see the rings and spokes. I
1/4” thick plexiglas for the face, stock the frame is rectangular you will have to used bare wire for the rings and #30
aluminum channel for the frame, and determine the best LED layout. (Of wire-wrap wire for everything else. I
oak for the base. The dimensions (as course, you could use this non-display incorporated different color wires to
shown) are 7.8” tall, 6.6” wide, and space for the electronics and eliminate help identify what went where. I
1.5” deep (at the base). the base. Then you would have a clock brought out the 18 wires (15 wires for
The main parts are shown in you could hang on the wall.) the 12 spokes and three rings plus
Instead of a real circuit board, I three wires for the bi-color LED)
■ PHOTO 4. The base is hollowed out used a piece of cardboard from the through the center hole and through a
with a router to hold the electronics. back of a writing tablet that I spray- hollow spacer into the routed-out oak
The “circuit board” for the LEDs is just painted flat black. This is shown in Photo base. Photo 1 shows the clock display
a piece of cardboard from a writing pad 4. Note that the plastic face was drilled raised over the base with three 1/2”
that was spray-painted flat black.
spacers. The outer spacers have
4-40 screws that connect the base
to the display. Additionally, these
screws extend into the base to hold
the electronics circuit board in

■ PHOTO 5. Number 30 wire-wrap


wire was used for the rings and
spokes. The LED’s leads were bent
over to hold the LEDs in place, next
the wires were soldered, and then
the leads were trimmed. Keeping
the leads long during soldering helps
to dissipate the heat which can
damage the LEDs.

44 February 2007
Fonte.qxd 1/10/2007 11:53 AM Page 45

The Digi-Log Clock


place. Photo 6 shows the mounting
■ PHOTO 6. Final assembly of the clock.
screws holding the circuit board in The two small switches at the bottom
place. The wires from the display are used to set the hours and minutes.
come into the base from the middle Connectors were used for the display
spacer, exit under the circuit board, wires for easier troubleshooting.
and come around its edge. Some of
this can be seen in the photo. setting of hours and minutes.
There are several notes concern- The accuracy of the clock
ing Photo 6. The three large black depends upon the accuracy of the
objects with white stripes are connec- watch crystal. These are typically tun-
tors. If you look closely, you can see ing-fork types with a basic tolerance
the wire-wrap wires connecting to of 20 PPM (Parts Per Million). Since
them. This made it easy to disconnect there are about 2.6 million seconds
the circuit board from the display dur- per month, an error of 20 PPM
ing de-bugging. The power supply is at converts to an error of about eight
the top with the power jack coming seconds per month, worst case.
out the back of the base just below
this. At the bottom, there are two Going Farther
push-button switches (SW1 and SW2)
that are used for setting the time. Not It has been noted that the display
seen are the LED current limiting looks similar to the planetary motions
resistors (R4-R10). These are mounted of the solar system. You could design
on the bottom of the circuit board a clock that shows the relative move-
because it made things easier for me. ments of the planets by having each
ring represent a planet’s orbit and use Conclusion
Operation separate timers for each ring/orbit.
You could also get fancy and show the A different type of clock has
Operation is simple and straight- absolute positions of the planets by been designed that integrates digital
forward. Apply power to the clock. adding a new display for the year, and analog concepts. It’s simple
After about a second, the clock month, and day. In this way, you could to build and operate. Additionally,
should display 12:00 (12:00:00 if sec- pick a date and see exactly where the there are many different ways to
onds are used) and should immediate- planets would be in the sky at that customize the clock to match your
ly operate. Pressing the Set Minute time (in the past or the future). preferences. NV
switch (SW1) will increment the min-
utes display every time it is pressed. At
worst case, you will have to press it 59 PARTS LIST
times to set it to the proper minute.
Holding it down does NOT continu- RESISTORS (1/4 watt 5%)
❑ R1-R3 10K ohms
ously increment the display (but that is
❑ R4-R10 100 to 1000 ohms (see text)
a software upgrade you could write!)
If the minutes display passes through CAPACITORS (25 volts minimum)
the hour (59 minutes to 00 minutes), ❑ C1, C2 33 pF
the hour display is NOT incremented ❑ C3 220 µF
(as it would in normal operation). ❑ C4, C5 0.1 µF
Setting the hour is accomplished by
pressing the Set Hour switch (SW2) in SEMICONDUCTORS
a similar manner. Each switch press ❑ D1-D44 LED (see text)
increments the hour display. There is ❑ D45 Center LED bi-color (see text)
no provision for setting the seconds. ❑ D46 Bridge rectifier 1 amp 50 volts
However, since the time-keeping con- ❑ U1 PIC16C73A microcontroller
tinues during the setting of the clock, ❑ U2 78L05 low power five volt regulator
the seconds can be “set” by applying
MISCELLANEOUS
power exactly on the minute (because
❑ X1 32,768 Hz watch crystal
the clock power on reset initializes
❑ SW1, SW2 Normally open push-button switch (SPST)
itself to exactly 12:00:00). The ❑ J1 DC power jack
seconds are not affected during the

February 2007 45
Xu.qxd 1/10/2007 11:57 AM Page 46

●●●●
This powerful tool
now boasts new
features that will
WALL-WART-LESS
make users and AVR PROGRAMMER
USER/MAKER
programmers lives
easier!

The AVR HyperTerm


programmer introduced
in Nuts & Volts [1]
N ow, after two years, it has
evolved to carry another
advantage: it doesn’t need a sepa-
called WWLHTP-1 and WWLHTP-2,
respectively — based on different
processors used. Both have the
back in 2005 has the rate power supply to work anymore. same functionality and speed as
Such capability eliminates the mentioned above.
advantage of low cost hassle of finding different voltage Furthermore, depending on
and using the readily (110V or 220V) wall-mount power your preference and budget, you
transformers, the so-called “wall- can build either of the two forms of
available Windows warts” in different countries. wall-wart-less HyperTerm program-
HyperTerminal program Some may argue that the USB mers in three versions: deluxe ver-
port can also eliminate the use of wall- sion where ZIF socket and PCBoard
on PC to simplify its warts for such outside devices. But the are used; economy version where
problem is that currently there is no PCBoard is used but limited to
software development. such data communication program 20-pin normal solder-tail socket in
similar to HyperTerminal available on order to reduce cost; and solderless
Windows PC for the USB port. breadboard version. With so much
■ FIGURE 1. Schematic of the two wall- The programmer’s speed and flexibility, we should say that MCU
wart-less AVR HyperTerm programmers. functionality has (microcontroller) programming has
also been never been so easy and cheap!
improved. Its
communication The Circuits
speed is doubled
(at 19200 bps The schematic of either
instead of 9600 WWLTHP-1 or WWLTHP-2 are only
bps), and now slightly different, so we can draw
there are a total both in one schematic diagram with-
of nine com- out causing confusion, as shown in
mands instead of Figure 1. Each programmer uses only
six as before, two chips: U1 is for RS-232 interface
including the between the programmer and the
“LockBits” com- PC; U2 is the firmware MCU (stores
mand which lets the program code), either
you hide your AT89C2051/4051 (for WWLHTP-1)
source code to or AT90S2313 (for WWLHTP-2) —
prevent it from it’s the heart of the programmer to
being pirated. handle all programming chores and
The pro- communication with the PC.
grammers can U3 is the AVR microcontroller
now assume to be programmed (here we show
two slightly dif- only AT90S1200/2313, but with the
ferent forms — appropriate adapters built by the

46 February 2007
Xu.qxd 1/10/2007 11:57 AM Page 47

BY G. Y. XU

user, it can also program the eight-pin interchangeably, File Name Target Purpose
AT90S2323/2343 and the 40-pin even though each
WWLHTP1.HEX AT89C2051/4051 WWLHTP-1 firmware
AT90S4414/8515). MCU is quite
WWLHTP2.HEX AT90S2313 WWLHTP-2 firmware
First let’s see how wall-wart-less- different in their
ness can be achieved. The basic require- architecture and LED1AVR.HEX AT90S1200/2313 Use for Demo
ment is that the total current consump- uses a different LED2AVR.HEX AT90S1200/2313 Use for Demo
tion by the circuit must be very small, machine or assem- ■ TABLE 1
such as less than 10 milliamps, because bly language.
the UART port was never designed as a All AVR MCUs have the three-pin a great convenience for the user. Not
power source like the USB port we have SPI (serial peripheral interface) port to every programmer has this feature.
today. The two pins DTR (data terminal be used in their serial programming. Because a blank AT90S2313 is a
ready) and RTS (request to send) can The chip to be programmed is called a device to be programmed (as U3 in
be used as a minuscule power source “slave” and the control MCU or host Figure 1) and we can enter not only
if we treat them wisely and choose processor is called a “master.” In LED1AVR.HEX or LED2AVR.HEX but
appropriate components. programming mode, the SCK pin is also WWLHTP2.HEX, it is interesting
As shown, the outputs from these used to transfer the clock signal to point out that this firmware file
pins are delivered to a pair of Schottky from master processor to slave for syn- can also be regarded as a special
diodes D1, D2 — which cause very chronization control. While MISO is “example program.”
little forward voltage drop (only 0.3 the signal from slave to master, MOSI But there is an exception. This
volts) — then applied to a low-dropout is the signal from master to slave. newly programmed 2313 can only be
voltage regulator LM2936; their demonstrated on the WWLHTP-2 cir-
output voltage is smoothed by two Firmware and Example cuit; it can’t be demonstrated on the
capacitors C1 and C2. To save current Programs WWLHTP-1 circuit, because the compo-
consumption, the LED circuit also nents R2, C3 and 4 MHz ceramic res-
uses a bigger current-limiting resistor Table 1 lists the hex files onator are not in the WWLHTP-1 circuit.
(1K), and the control firmware will contained on the programmer user’s From this comes an important
turn it on only after the programming disk. The first two are most important: conclusion: You have a chance to be a
task has completed and is in idle state. they are each programmer’s firmware WWLHTP-2 programmer maker! You
Otherwise, the LED is set OFF. files. As you may know, firmware is can burn as many blank AT90S2313s as
From Figure 1, it’s apparent that the code stored in a microcontroller you want, simply by using either the
the circuits for programmers are easy for its execution. The programmer WWLHTP-1 or WWLHTP-2 programmer.
to build. The circuit for the WWLHTP-1 firmware contains the execution code On the other hand, you cannot
is simplest; it utilizes the Atmel 8051- on how to communicate with the PC, make another WWLTHP-1 programmer
like micro AT89C2051/4051 which has and all the nine programming unless you have a way to program the
2K/4K bytes of program memory. It commands which interact with the 2051/4051 (for example, using the
doesn’t need any component connect- Windows HyperTerminal program. 8X51 programmer [2]). The AVR wall-
ed to the RESET (pin 1) and it uses the Note that because the 2051/4051 wart-less programmers here can’t do
3.58 MHz ceramic resonator to gener- is an 8051-like MCU, its machine or that. So it may be better for you to have
ate 19200 bps for communication. assembly language is different from a WWLHTP-1 first if you’re going to get
The circuit for WWLHTP-2 utilizes AVR. Therefore, you should pay close one, because from WWLHTP-1, you can
the Atmel AT90S2323 AVR MCU which attention to what the target MCU is for make WWLHTP-2, but not vice versa.
contains 2K bytes of program memory. It each file, and never mix them up.
does need two components R2 and C3 By the same reason, the two The Options
connected to the RESET pin as shown by example program files LED1AVR.HEX
the dotted lines. Missing either one will and LED2AVR.HEX are supposed to be Because WWLHTP-1 and WWL-
result in failure or not completely work- written or “burned” in AT90S1200/ HTP-2 are different only on the
ing. It uses the 4 MHz ceramic resonator 2313, and then you temporarily replace processors, their speed and function-
for the same 19200 bps. the existing firmware MCU by this ality are the same, so the factors
We guessed that when Atmel newly programmed MCU. Once that influence your choice are your
designed the AT90S2313 they might powered up, you will see the LED budget, your preference, and your
keep the 4051 MCU in mind so that blinking or double blinking. In other familiarity with that processor.
both look very similar (same pin count, words, you don’t have to build your Only one type of business-
same RX, TX and XTAL pin locations). own circuit to test this program, but card-sized PC board was designed to fit
That helps us to utilize both almost rather use the programmer itself. This is both forms of programmers, with some

February 2007 47
Xu.qxd 1/10/2007 11:57 AM Page 48

grammers as you want.


To run the wall-wart-
less AVR HyperTerm
programmer, you must
properly set up the
Windows HyperTerminal
program on your PC/
laptop, as described in
my previous article. Let’s
briefly recap some of the
most difficult parts of
this as it can be difficult
■ FIGURE 3. Deluxe WWLHTP-2 programmer. for beginners.
Right: adapter for the eight-pin AT90S2323/2343. Begin from the
Windows “Start”
Figure 4 shows the econo- button, find Accessories>
■ FIGURE 2. Deluxe WWLHTP-1 programmer. my version of the two program- Communications>Hyperteminal and
mers, respectively. Sometimes double-click it. A lot of dialog boxes will
holes left empty. Figure 2 shows the the serial cable can be eliminated if appear asking for Location information
deluxe version of WWLHTP-1. Notice your PC/laptop allows you to directly or a phone number. Reject all default
that there is no power plug on it — that’s plug this gadget in. The only restriction offers and continue, until you reach
wall-wart-less. It’s better to make a two to using the economy version is flexi- “New Connection.” The dialog box then
to three foot flat ribbon DB-9 cable (as bility; you won’t be able to handle the asks you to enter a Name and choose
shown) to carry this small gadget. When eight-pin or the 40-pin AVRs. However, an Icon. Type in a name (such as
you need to use it, simply plug the the lower cost and convenience are T19200), select an icon, then click OK.
cable into the PC’s serial port. great advantages, especially for begin- After that, the Location informa-
Figure 3 is the deluxe WWLHTP-2 ning users. With the AT90S1200/2313, tion prompt appears again. Reject it
programmer, together with a hand- you can do a lot of programming, one more time. The “Connect to”
made adapter built by the user. (You including making your own AVR dialog box appears, where there is an
can refer to my previous article for the programmer, as described below. item “Connect using ...”; you can then
schematic on building an adapter.) If you want to save some bucks or find the serial port COM1. Select it
The basic requirement is to connect just want to tinker around, use your and click OK. Immediately the “Port
the SPI pins (SCK, MISO, and MOSI) available junk box components and a setting” box appears. From there,
and the Vcc and GND pins properly. palm-sized solder-less breadboard select the baud rate and other
to build either the WWLHTP-1 or parameters to match the programmer:
■ FIGURE 4. Economy HyperTerm WWLHTP-2, as shown in Figure 5. 19200, 8N1; remember to select
programmers. XON/XOFF for “Flow control” (reject
Be a Programmer default “Hardware”). Click OK.
User/Maker A rectangular window will pop-up
with the “File” menu bar and a cursor
As mentioned above, by using the resting at the upper-left corner. Click
wall-wart-less AVR programmer, you “File” menu and go to its “Properties”
can make as many WWLHTP-2 pro- item. From there, edit the “Settings”
tab so that the Emulation type is
TTY; then go to the “ASCII setup”
box, where it has a portion called
ASCII sending. Put a check mark
in the box for “Send line ends with
line feeds.” The reason for doing
this is to send/receive ASCII char-
acters using the serial COM port.
At this point, we’re almost
done. Notice that there are two

■ FIGURE 5. WWLHTP-1 or WWLHTP-


2 built on a breadboard.

48 February 2007
Xu.qxd 1/10/2007 11:58 AM Page 49

AVR HyperTerm Programmer


boxes along ASCII sending: Line delay ■ FIGURE 6. Screen
and Character delay, with the number view when the
“0” in each. That means the line delay programmer is run.
is 0 milliseconds for each item. To
guarantee it works from the first time, it’s Write a Hexfile
better to put a value 1 instead of 0. If (Hexfile is also a text
later you find it too slow, you can change file or ASCII file) to
the value back. the chip and Verify
Before exiting from the “File” programming.
menu, you should save whatever Keep in mind
you’ve entered, and create a short-cut that our goal is
icon for the COM port on your desk- to use the serial
top, so you won’t have to do this again. COM port to
When you connect the DB-9 send/receive ASCII
cable to the PC, a menu appears on characters. You
the rectangular window as shown in need to use the
Figure 6. Now you’re in business. “Transfer” item from
All commands start with the con- the menu bar, and click the “Transfer ished, a completion message will
trol key. For example, pressing ctrl-R Text File” menu from it. Type in a file- display.
will Read Flash memory, ctrl-E will name, such as LED1AVR.HEX, and Good luck and enjoy using and
Erase the chip. The most complicated press Enter or click “Open” to let it programming your wall-wart-less AVR
operations are ctrl-W and ctrl-V, to transfer. When the operation is fin- programmer. NV

SOURCES WWWLHTP-1 PARTS LIST


■ [1] G.Y. Xu: “Play the AVR Hyper
Term,” Nuts & Volts, February 2005. ITEM DESCRIPTION
(Article available on the Nuts & Volts ❑ C1 100 µF 16-volt radial electrolytic capacitor
website; www.nutsvolts.com) ❑ C2 .1 µF ceramic capacitor
❑ R1 1K ohm 1/4 watt carbon resistor
■ [2] G.Y. Xu: “8X51 EPROM/Flash ❑ U1 RS-232 transceiver DS275 by Dallas Semiconductor
Microcontroller Programmer,” Circuit
Cellar, April 1998.
❑ U2 AT89C4051 Flash microcontroller (programmed)
❑ U3 AT90S1200 or AT90S2313, AVR MCU to be programmed
Note: The following items are ❑ VR1 LM2936 voltage regulator
available from: ❑ D1, D2 Schottky diode 1N5817
❑ J1 DB9F connector
G.Y. Xu ❑ LED1 General-purpose light-emitting diode
P.O.Box 14681 ❑ CR1 3.58 MHz ceramic resonator
Houston, TX 77021 ❑ CR2 4 MHz ceramic resonator
Phone: (713) 741-3125

■ Assembled and tested WWLHTP-1


Programmer — $39.95 (Deluxe);
$29.95 (Economy).
WWWLHTP-2 PARTS LIST
ITEM DESCRIPTION
■ Assembled and tested WWLHTP-2 ❑ CC1 100 µF 16-volt radial electrolytic capacitor
Programmer — $39.95 (Deluxe);
❑ C2 .1 µF ceramic capacitor
$29.95 (Economy).
❑ C3 10 µF 16-volt radial electrolytic capacitor
■ Plated through hole PCBoard — ❑ R1 1K ohm 1/4 watt carbon resistor
$8.00 ❑ R2 10K ohm 1/4 watt carbon resistor
❑ U1 RS-232 transceiver DS275 by Dallas Semiconductor
■ Programmed AT89C4051 or ❑ U2 AT90S2313 Flash microcontroller (programmed)
AT90S2313 — $5.00 ❑ U3 AT90S1200 or AT90S2313, AVR MCU to be programmed
❑ VR1 LM2936 voltage regulator
Shipping and handling: $5.00 ❑ D1, D2 Schottky diode 1N5817
(USA); $6.00 (Canada); $10.00 ❑ J1 DB9F connector
(other countries). For more
❑ LED1 General-purpose light-emitting diode
info, visit www.geocities.com/
xumicro. ❑ CR1, CR2 4 MHz ceramic resonator

February 2007 49
Page50.qxd 1/11/2007 10:12 PM Page 50

Find Out What


You’re Missing

• Over 40,000
Products
Stocked
• Access to over
1.5 million
electronic parts
and related
products
• Installer/Dealer
pricing program
• Quotation team,
send us your
quotes for quick
response

FFRREEEE !
logg!
talo
CCaata
call toll free
1-800-543-4330
refer to or visit
www.mcminone.com/magazine

Source Code: NVM46

50 February 2007
Full Page.qxd 1/10/2007 2:22 PM Page 51

gh
y throu + page
our wa 10
Claw y opy of our 4 website
EE c our t
our FR g, log onto talog and ge
catalo car.com/ca s in US D.
y e
www.ja copy. All pric
your

Powertool Battery POST AND PACKING CHARGES:


Speedo Corrector MkII Charger Controller Order Value Cost Order Value Cost
KC-5435 $29.00 + post & packing KC-5436 $23.25 + post & packing $25 - $49.99 $7.50 $200 - $499.99 $60
When you modify your gearbox, diff ratio Enhance the performance of the charger supplied $50 - $99.99 $20 $500+ $75
or change to a large circumference tyre, it may with your power tool with this controller. It $100 - $199.99 $40
result in an inaccurate speedometer. This kit alters incorporates charge Max weight 12lb (5kg). Heavier
the speedometer signal up or down from 0% to 99% timeout, min and max parcels POA. Minimum order $25.
of the original signal. With this improved temperature monitoring, Note: Products are dispatched from Australia,
model, the input set-up selection can be Delta V charge detection, local customs duty and taxes may apply.
automatically selected and it also power and charge LED
features an LED indicator to indicator and more! Radar Speed Gun
show when the input Suits both Ni-Cd and KC-5429 $58.00 + post & packing
signal is being Ni-MH cells. Kit This Doppler radar gun reads speed in km/h or mph
received. Kit includes PCB with overlay, case up to 250 km/h or 155 mph. It has a resolution of 1
supplied with PCB and all electronic components. km/h or 1 mph with an accuracy of 1%, and also has
with overlay and all a hold switch so you can freeze the reading. There's
electronic components Improv a jiffy box to mount the electronics in,
e
with clear English Model! d Two-Way SPDIF/Toslink Digital and the enclosure for the radar gun
instructions. assembly is made from 2 x coffee tins
Audio Converter Kit
KC-5425 $14.50 + post and packing or similar. Details included. Kit
Magnetic Cartridge Pre-amp This kit converts coaxial digital audio signals into includes PCB and all specified
KC-5433 $23.25 + post & packing optical or vice-versa. Use this bit stream converter in components with clear English
This kit is used to amplify the 3-4mV signals situations where one piece of equipment has an instructions.
from a phono cartridge to line level, so you can use optical audio input and the other a coaxial digital • Requires 12VDC power
your turntable with the CD or tuner inputs on your output. Kit includes Toslink optical modules, PCB
Hi-Fi amplifier. The design is suitable for with overlay, case with screen printed lid, all
12" LPs, and also allows for RIAA electronic components and clear English instructions.
equalization of all the really old
78s. Kit includes PCB with
overlay and all electronic
components.
• Requires 12VAC power Requires 9-12VDC
wall adapter
(Jameco#252751 $12.05)
Theremin Synthesizer MKII
KC-5426 $87.00 + post & packing
By moving your hand between the metal antennae,
create unusual sound effects! The Theremin MkII Starship EnterpriseTM
improves on its predecessor by allowing adjustments Door Sound Simulator DC Relay Switch
to the tonal quality by providing a better waveform. KC-5423 $23.25 + post & packing KC-5434 $8.75 + post & packing
With a multitude of controls, this instrument's This easy-to-build kit emulates the An extremely useful and versatile kit that enables
musical potential is only limited by the skill and unique noise made when the cabin you to use a tiny trigger current - as low as 400µA
imagination of its player. Kit includes stand, PCB with doors on the Starship EnterpriseTM at 12V to switch up to 30A at 50VDC. It
overlay, machined case open and close. The sound emulator has an isolated input, and is
with silkscreen printed lid, Improv can be triggered by switch contacts suitable for a variety of triggering
e
loudspeaker, pitch Model! d (normally open), which means you can options. The kit includes PCB
antennae, all specified use a reed magnet switch, IR beam or with overlay and all
electronic components e PIR detector. Kit includes a machined, silkscreened electronic
d in th
and clear English As use Boys and pre-drilled case, speaker and all electronics
Beach ‘Good components with
instructions. h it components with clear English instructions.
classic ons’ clear English
Vibrati Requires 9-12VDC
Requires 9-12VDC For all instructions.
y
wall adapter Trekkieou
wall adapter (Jameco
(Jameco#252751 $12.05) fans
#252751 $12.05)

Log on to
410+
www.jaycar.com/catalog page
for your FREE catalog! Catalog
1-800-784-0263
(Monday - Friday 09.00 to 17.30 GMT + 10 hours only). All
For those who want to write: 100 Silverwater Rd
Silverwater NSW 2128 Sydney AUSTRALIA
prices in
USD
Page52.qxd 1/11/2007 5:28 PM Page 52

t o rs Dio
e s i s des
R Order PCB
Get FREE parts
T r a Capacitors o r s
nsis e c t
tors
o nn
C
O nly $50 for 5pcs 4 " x4 " 2L
Free Solder mask and silkscreen !

FREE
With first order
Http :// EzPCB . COM
Sales @ EzPCB . COM

52 February 2007
Page53.qxd 1/11/2007 5:19 PM Page 53

Amazing Devices
www.amazing1.com
Laser Modules
All laser modules operate from 3 volts and include built in optics
providing a parallel beam of 1mr or less. Includes instructions on
safety requirements for FDA full compliance
Red - Class IIIa
LM650P3 - 3mw 650 nm12 x 45 mm ........ $14.95
LM650P5 - 5mw 650 nm 12 x 45 mm ....... $24.95
LM630P3 - 3mw 630 nm 10.5 x 45 mm .... $34.95
Red - Class IIIb
LM650P10 - 10mw 650 nm 12 x 51 mm ... $99.95
LM650P30 - 30mw 650 nm 12 x 51 mm . $249.95
Green - Class IIIa
LM532P5 - 5mw 532 nm 12X45 mm ........ $49.95
Infrared - Class IIIb
LM980P30 - 30mw 980 nm 12X30 mm ..... $49.95
Laser Diode Visible Red - Class IIIb
LD630-P10 - 10mw 635 nm 5 mm diode .... $29.95

High Voltage Capacitors


Ceramic capacitors for voltage multipliers, etc.
22/6KV - 22 pfd 6kv .28” x .17” ................. $.35
50/6KV - 50 pfd 6kv .325” x .18” ................ $.45
100/6KV - 100 pfd 6kv .46” x .17” .............. $.65
200/3KV - 200 pfd 3kv .3” x .25” ................ $.45
270/3KV - 270 pfd 3kv .3”d x .25” .............. $.45
470/10KV - 470 pfd 10kv .35”d x .25” ......... $.75
1000/20KV - 1000 pfd 20kv .5”d x .37” ..... $2.25
.01/2KV - .01mfd 2kv .63” x .13” ............... $.50
Energy Storage Capacitors
Electro-kinetics,wire exploding, can crushing, emp, etc.
25M/5KV - 25 mfd 5 kv 312J 10 x 4 x 3 can ...... $100.00
32M/4.5KV - 32 mfd 4.5 kv 324J 9 x 4 x 2 can ... $170.00
10002M/2KV - 1000 mfd 2 kv 2K J 4 x 8 x 7 can $299.00
1.3M/100KV - 1.3 mfd 100 kv 6500J case ........ $750.00

High Voltage Transformers


Includes circuit schematics on how to use.
28K089 - 7kv 10ma 30 khz 9-14v 1”cube . $19.95
28K074 - 4kv15ma 30 khz 9-14v 1”cube . $17.95
28K077 - 2kv 10ma 30 khz 7-9v .7x1.25 .... $9.95
CD25B - 20 kv trigger pulse 1 x 1.25 ...... $16.95
CD45 - 40 kv trigger pulse 1.25 x1.25 .... $18.95
TRAN1035 - 10 kv35 ma bal output ........ $39.95
FLYLABURN - 10 kv 60 ma end grd ...... $49.95
FLYEXP - 4 misc flybacks ................... $24.95
FLYHP - High power large flyback ........ $34.95

High Volt/Freq Modules


12 vdc with instructions on how to use.
MINIMAX1 - 1kv15 ma 35 khz ................ $17.95
MINIMAX2 - 2kv10 ma 50 khz ................ $17.95
MINIMAX3 - 3kv10 ma 35 khz ............... $19.95
MINIMAX7 - 7kv10 ma 35 khz ................ $34.95
SS01S - 1 to 7kvac for ozone .............. $24.95
GRADRIV10 - 7.5 kv15 ma 35 khz adj .... $79.50
PVM300 -20kv25ma 115vac input ......... $179.95

High Volt DC Modules


12 vdc with instructions on how to use.
PBK40 - 10 kv 100ua 9 vdc in .................. $34.95
CHARGE10 - 10kv 2.5 ma ....................... $59.95
SHK10 - 2kv 10 ma shocker .................... $39.95
TRIG10 - 20 kv trigger/shock pulses ........ $54.95
SS016S - +20kv 100ua ............................ $29.95
SS010S - -20kv for neg ions .................... $24.95

Parts for Tesla Coils


Includes plans for two of our coils. Parallel for 60&120ma.
4KV/.03 - 4kv30ma60hz floating output ........ $59.95
6.KV/.02 - 6.5kv20ma60hzfloat output ......... $59.95
9KV/.03 - 9kv 30ma60hz midgrd output ..... $79.95
12KV/.03 - 12kv30ma60hz midgrd output .... $109.95
15KV/.03 - 15kv30ma60hz midgrd output .... $139.95
14.4KV/.5A - 14.4kv.5amp pole pig ............ $699.95
Spark Gaps and Electrodes
SPARK1 - Fan cooled dual gap 3/8” tungsten $149.95
SPARK05 - Single gap 1/4” tungsten ............ $49.95
TUNG141B - 1/4” x1” pair electrodes with holders tungsten $14.95
TUNG38 - 3/8” x2” pair electrodeswith holders tungsten .... $59.95
Toroidal Terminals
TO8 - 8 x 2” Spun Aluminum Toroid .... $59.95
TO12 - 12 x 3” Spun Aluminum Toroid . $79.95
TO24 - 24 x 6” Spun Aluminum Toroid $399.95
TO30 - 30 x 7”’ Spun Aluminum Toroid$525.95
See website for more data on above items
Minimum order is $25.00. Volume pricing available
Information Unlimited, Box 716, Amherst, NH 03031 USA
Orders: 800-221-1705 Info: 603- 673-6493 Fax: 603-672-5406
Email: riannini@metro2000.net

February 2007 53
Byers.qxd 1/11/2007 5:30 PM Page 54

iNterface Your iPod


W ith all the aftermarket products available for the iPod
these days, it makes you wonder if you can’t hack into the
iPod yourself and build your own iPod gizmos. Yes you can! With
the dock connector, the iPod can be charged, connected to a PC,
connected to a stereo, or connected to a serial device and controlled
via the Apple Accessory Protocol. Here is a quick overview of the
docking connector and ways to utilize it.
by TJ Byers

Overview a boot volume. The interface types FireWire


include FireWire, USB, TTL serial,
In a nutshell, the Apple iPod is a audio, and video ports. FireWire is the trademarked name
personal MP3 player, about the size of a of Apple Computer for the IEEE-1394
deck of cards, that is capable of storing Docking Connector personal computer — and digital
thousands of tunes on its internal hard audio/digital video — serial bus interface.
drive. It connects to Apple Macintosh The dock connector was intro- Virtually all modern digital camcorders
computers equipped with a FireWire duced with the third generation iPods. have included this connection since
interface (all modern Macs) and syncs The connector is proprietary (Figure 1) 1995, as well as many portable comput-
with Apple’s iTunes 2 (free) MP3 and manufactured for Apple by JAE ers, including all Apple, Dell, and Sony
Player/Encoder/Organizer application. (Japan Aviation Electronics). Until laptops (where it is known as i.Link).
However, the iPod also doubles recently, you had to contact Apple, sign The iPod uses a six-pin connector for
as a portable hard disk drive that can a Non-Disclosure Agreement and jump the FireWire link (Figure 2). Pins 1 and 2
be used for traditional data storage. It through hoops to obtain the mating are used to charge the iPod’s internal
can even be used as connectors for the iPod. Fortunately, battery via a 12-volt source. The data is
FIGURE 2 you can now find them from the transferred via two twisted pairs using
following suppliers for about $2 each. CAT-5 cable or any of several ready-
made FireWire cables. Typically, you load
• Ridax — (646) 257-2080, http:// the music or video file into the comput-
home.swipnet.se/ridax/connector.htm er, then transfer it to the iPod using the
FireWire connector at data rates of 100,
• Spark Fun — www.sparkfun.com/ 200, or 400 Mbps, depending on the
commerce/product_info.php?prod particular model, using Apple’s software.
ucts_id=633 This doesn’t prevent you from using the
FireWire port with other devices — like
FIGURE 1 video editors — using their software.

USB
The iPod supports the more popular
and widespread USB 2.0 Universal Serial
Bus, using the type A connector (Figure

iPod, iTunes, FireWire, i.Link, and


Macintosh are all trademarks of
Apple Computer.
54 February 2007
Byers.qxd 1/11/2007 5:30 PM Page 56

FIGURE 7 Resistance Accessory


Beeps when docking
1K station is connected.
Places iPod into Photo
10K Import Mode.
Denison Ice Link Plus
500 K car interface.
1 Meg Belkin auto adapter.

TABLE 1. Accessory Indicator.

allelectronics.com). The modulator


converts the composite signal into an
RF signal on channel 3 or 4 for
display on the TV screen.
S-Video is an analog signal com-
posed of luminance (intensity) and
chrominance (color) components.
The four-pin S-Video connector
(Figure 6) was designed for Super
VHS VCRs as a high-bandwidth video
turned all the way down. The audio in is that used for TV broadcast and dis- connection, and has since been used
also at line level, and needs a preamp if played on an analog TV set. Almost all with TVs, DVD players, high-end video
it is to be used with a microphone. A modern video equipment has a com- cassette recorders, Digital TV
simple preamp is shown in Figure 5. Pin posite connector, so there isn’t usually receivers, DVRs, and game consoles —
2 of the Dock Connector is signal return a problem of simply plugging this coming into greatest prominence with
ground for both the audio and video. output directly into the video device. the rise of the DVD format. Due to a
However, older video equipment and lack of bandwidth, though, S-Video is
Video some very low-end modern televisions not generally considered suitable for
have only an RF input (antenna) and high-definition (HD) displays.
The iPod Dock Connector has two won’t accept the signal without an RF
video outputs: composite and S-Video. modulator, like the CAT# MOD-6 from Accessory ID
The composite video is the same as All Electronics (888-826-5432; www.
A resistor connected from this pin
to ground indicates which accessory is
connected. Table 1 is a short list of those
accessories that I know about. NV

FURTHER READING
www.engadget.com/2006/04/18/
how-to-design-your-own-ipod-
super-dock-part-1/

www.engadget.com/2006/04/25/
how-to-design-your-own-ipod-
super-dock-part-2/

www.engadget.com/2006/05/02/
how-to-design-your-own-ipod-
super-dock-part-3/

www.engadget.com/2006/05/10/
how-to-design-your-own-ipod-
super-dock-part-4/

www.ipodhacks.com/article.php?
sid=678

www.redchairsoftware.com/
anapod/

56 February 2007
Full Page.qxd 1/10/2007 11:01 AM Page 57
Hackett2.qxd 1/10/2007 12:02 PM Page 58

Getting Started With


PICAXE MICROCONTROLLERS
b y R o n H a c k e t t
PA R T 2
The PICAXE-08M Chip

I
n Part 1 of this series, we introduced the PICAXE-18X
microcontroller, provided a brief introduction to PICAXE
programming, and constructed a simple “Hello World”
project to demonstrate the simplicity of the PICAXE system.
As promised, in Part 2 we will focus on interfacing the
PICAXE-18X with a Hitachi HD44780-based LCD display.
Finally, in Part 3, we will add a 12 or 16 key matrix keyboard
The PICAXE-18X Chip and a piezo beeper to complete our I/O terminal.

At the end of Part 1, we added an with the switch without using the
input switch to our “Hello” circuit and PICAXE “Button” command; each time
posed a challenge to write a program the switch is pressed, the LED that is
to control the blinking of the two LEDs currently lit should turn off and the

FIGURE 1. One possible solution to the programming challenge.


' **** HelloButton.bas ************************************************

' This program runs on a PICAXE-18X at 4 MHz.


' It toggles LEDs on outputs 6 & 7 in response to a switch-press.
The PICAXE-28X Chip ' *********************************************************************

' **** Constant Definitions ****

symbol LED6 = output6 ' LED on output6 (pin 12)


symbol LED7 = output7 ' LED on output7 (pin 13)

symbol pbsw = input2 ' push-button switch on input2 (pin 1)


symbol up = 0 ' input2 held to Ground when switch up
symbol down = 1 ' input2 goes high when switch pressed

' **** Main Program ***************************************************

The PICAXE-40X Chip high LED6 ' start with LED6 turned on
' (& LED7 turned off by default)

main: if pbsw is up then main ' loop here until switch press
' note: "is" is equivalent to "="

toggle LED6 ' switch pressed, so toggle LEDs


toggle LED7
pause 25 ' delay 25mS to avoid switch-bounce

tarry: if pbsw is down then tarry ' loop here until switch release

goto main ' do it again, forever

58 February 2007
Hackett2.qxd 1/10/2007 12:02 PM Page 59

Getting Started With PICAXE Microcontrollers


other LED should turn on. Of course, 18X Pin LCD Pin Symbol Function
there may be as many correct answers
as there are readers, but one possible — 1 Vss LCD Power Supply (Ground)
solution is presented in Figure 1. — 2 Vcc LCD Power Supply (+3 to +5 volts)
The most important aspect of any Contrast Control (Analog)
— 3 Vee
solution is to avoid the “extra” switch (Consult Data Sheet)
presses generated by switch-bounce, Register Select Input
8 4 RS
and the simplest way to do so is to (H=Data; L=Command)
delay long enough for the switch — 5 R/W Read/Write Input (H=Read; L=Write)
contact to “settle” (usually within 25
9 6 E Enable Input
ms or so). The loop that waits for the
switch to be released (near the end Data Bus I/O Bit 0
— 7 DB0 (Not used in four-bit mode)
of the program in Figure 1) is also
important; without it, the program will Data Bus I/O Bit 1
— 8 DB1 (Not used in four-bit mode)
respond to a single switch-press as if it
were a rapid series of presses. The Data Bus I/O Bit 2
— 9 DB2 (Not used in four-bit mode)
bottom line is: If your program func-
tions as expected and it’s reasonably Data Bus I/O Bit 3
— 10 DB3 (Not used in four-bit mode)
easy to understand, then it’s a correct
solution — congratulations! 10 11 DB4 Data Bus I/O Bit 4
We won’t be using switch-presses 11 12 DB5 Data Bus I/O Bit 5
in this part of the series, but we will 12 13 DB6 Data Bus I/O Bit 6
revisit them in Part 3 when we connect
our matrix keyboard. In the meantime, 13 14 DB7 Data Bus I/O Bit 7
before we actually connect the LCD to — 15 A Optional Backlight Anode
the 18X, we first need to cover the rel- (Consult Data Sheet)
evant basics of character-based LCDs. — 16 K Optional Backlight Cathode
(Consult Data Sheet)
Intelligent Character LCDs FIGURE 2. PICAXE-18X to LCD interface pin-out.

A Liquid Crystal Display (LCD) can than non-backlit displays, but they are of the board is the easiest to use; you
be an extremely useful module to also considerably more expensive and can solder a 14 or 16 pin straight male
include in many microcontroller consume a significantly greater amount header to the LCD board and plug it
projects. We will focus on character of power, so they may not be suitable directly into your breadboard (LCD
displays (rather than graphics displays) for battery-powered projects. “laying down”) or use a right-angle
because they are readily available, rela- Actual pins are rarely included on male header if you want the LCD to
tively inexpensive, and easy to interface the LCD board; usually there are one “stand up” on the breadboard.
to a microcontroller. The discussion will or two rows of holes into which you Another option is to solder a right-
be confined to alphanumeric LCDs can solder your connector or cable of angled female header onto the LCD
based on the Hitachi HD44780 con- choice. While the 14 or 16 pin pin-out board and plug it into a male header on
troller chip, which constitute the vast is standard, the actual physical arrange- the breadboard. This approach provides
majority of the displays that are current- ment of holes on the LCD
ly available from surplus and other elec- board is not. The two most FIGURE 3. LCD sizes and connector configurations.
tronic suppliers (see the Resources side- common configurations
bar). These displays are commonly avail- are one row of 14 or 16
able in sizes of 8, 12, 16, 20, 24, 32, or holes or two rows of seven
40 characters by one, two, or four lines. or eight holes, as shown in
All HD44780 LCDs share a Figure 3. Also, the holes
common pin-out, which is presented in are sometimes at the top
Figure 2, along with the corresponding edge of the LCD board
PICAXE-18X connections. (Each connec- and sometimes at the
tion is discussed in more detail below.) bottom, or even the side.
Pins 1-14 are always present, while pins If you develop your
15 and 16 are only available on displays projects on a breadboard,
which include a backlight. Backlit dis- the single-row arrange-
plays, of course, are much more visible ment at the bottom edge
February 2007 59
Hackett2.qxd 1/10/2007 12:02 PM Page 60

Getting Started With PICAXE Microcontrollers


either directly or by using a Another valuable resource for informa-
16-pin ribbon cable. Figure 4 tion on PICAXE-LCD interfacing is www.
shows the parts necessary to hippy.freeserve.co.uk/picaxelc.htm.
construct an adapter for use As discussed in the second link
with a ribbon cable and above, there is an error in the PICAXE
Figure 5 is a photo of all three documentation as to how the PICAXE-
adapters (top left: ribbon 18X should be connected to the LCD. In
cable with DIP connector; two places in the PICAXE manual, it is
top right: LCD connected stated that Output Pins 4 through 7 of
directly to breadboard; the 18X should be connected to the LCD
bottom: ribbon cable to data pins 7 through 4 in order. However,
breadboard adapter). Details as “the Happy Hippy” points out, this is
FIGURE 4. Parts for ribbon-cable to of the construction of all actually the reverse of the correct
breadboard adapter. three types of adapters are connections; PICAXE Output Pins 4
presented on the author’s through 7 should be connected to the
the flexibility of changing the male website at www.JRHackett.net LCD data pins 4 through 7 in order.
header from straight (LCD laying down) The connections required to
to right-angled (LCD standing up). Interfacing PICAXE Chips interface the PICAXE-18X with an
The seven or eight hole by two- with Character LCDs HD44780 LCD (introduced earlier in
row configuration is somewhat more Figure 2) are fairly straightforward, but
difficult to connect to a breadboard. Once you have selected an LCD a couple of clarifications are in order:
One solution is to solder a 7x2 or an and constructed the necessary hard-
8x2 straight male header to the LCD ware interface, you’re ready to connect • Pin 3 (Display Contrast Adjust) can
board and construct a short 16-pin the LCD module to the PICAXE. All be connected to a potentiometer for
ribbon cable with a 8x2 IDC connector HD44780 LCDs can operate in one of complete control, but a 1K resistor
on one end and a 16-pin .100 inch IDC two modes of data transfer: four-bit from pin 3 to ground usually provides
DIP flat cable plug (Jameco part no. (nibble) mode or eight-bit (byte) mode. very acceptable contrast. If you prefer
42673CG) on the other. (The 16-pin As you would expect, byte mode to use a pot, consult either of the
IDC connector can be used with both requires eight data line connections references above for wiring details.
the 14 and 16-pin headers, just be sure between the processor and the LCD,
to note which two connections are not while nibble mode only needs four data • Pin 5 is the R/W (Read/Write
used.) If you choose this approach, you line connections. Of course, it takes two Select). Since we will only be writing
will need to find some way to support nibbles to make a byte, so nibble mode to the LCD display, we can connect
the LCD or just lay it on your bench — is approximately twice as slow as byte the R/W line directly to ground.
a nuisance to say the least! mode. In spite of this speed difference,
Another approach is to solder a four-bit mode is fast enough and four • Pin 6 (Enable) needs to be pulsed
7x2 or 8x2 straight male connector to I/O pins are very valuable on a small “high” briefly (e.g., 10 µs) each time
the LCD board, construct a small processor, so we will use nibble mode a data byte or command byte is
adapter on a stripboard, and use it to in this article. Readers who prefer speed transferred to the LCD.
plug the LCD into the breadboard, at any price should consult their LCD
Data Sheet for byte • Pins 15 and 16 are only present if
FIGURE 5. LCD connector cables/adapters. mode interfacing. the LCD is backlit. If it is, consult the
The third section of data sheet for the display you are
the PICAXE manual, using for the correct connections,
available from Revolution because there are variations here. For
Education (www.reved. example, the LCD backlighting circuit
co.uk), is entitled may or may not include an internal
“Microcontroller current-limiting resistor. Care must be
Interfacing Circuits” and taken to correctly wire these pins.
contains a wealth of
information on interfac- PICAXE-18X to HD44780-
ing various input and out- based Character LCD
put devices to PICAXE
processors; pages 30
Interface Circuit
through 41 deal with Now that we have clarified the
LCD module interfacing. required LCD connections, we’re ready
60 February 2007
Hackett2.qxd 1/10/2007 12:46 PM Page 61

Getting Started With PICAXE Microcontrollers


to interface an LCD to +5V
the PICAXE-18X. I will
be using a 20-charac-
ter by four-line backlit

4.7K
PICAXE
LCD, but the same Programming
setup will work for Connections
NOT Shown
any HD44780-based
LCD. A quick eBay
search for “HD44780
9 8 7 6 5 4 3 2 1
LCD” will find dozens PICAXE-18X

E
of suitable displays.
Figure 6 presents 10 11 12 13 14 15 16 17 18
the schematic of the
circuit we will be
+5V
using; Figure 7 is a

10K

10K

10K

10K

10K
photo of the bread- +5V
board setup with the

220 ohms
LCD removed so that
1K

all the connections


are visible. Figure 8 +5V
shows the completed **Optional**
breadboard setup, 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Backlight
including the LCD. As LCD Connector Connection
you can see in Figure
8, the display I am
using includes a con- FIGURE 6. PICAXE-18X to LCD interface schematic.
nector along its top
edge. Rather than finding some way to LCD Instruction Set “HD44780” and “LCD” — there is a
support the display to make it visible, huge amount of information on the
I found it easier to support the entire All HD44780-based LCDs share a web. An excellent two-part article
breadboard at about a 60 degree common set of instructions or on the subject can be downloaded
angle — cutting a thin slot in a piece of commands to control their operation. at www.epemag.com/lcd1.pdf and
scrap wood was all that was required. For example, there are commands to www.epemag.com/lcd2.pdf.
As you can see in the schematic implement either a four-bit or an eight- At this point, we will be using only
presented in Figure 6, all 5 of the bit data interface, to use a blinking or the following LCD Commands:
unused PICAXE-18X inputs (pins 1 and underlined cursor, to print or scroll the
15-18) are tied to ground with a 10K display left to right or right to left, etc. • 1 — Clear display and move cursor to
resistor. In general, if unused inputs A thorough explanation of the Home position
are left disconnected (“floating”) they HD44780 instruction set is beyond • 12 — Hide cursor
can be affected by static electricity, the scope of this article; refer to your • 14 — Turn on LCD and cursor
which can result in excessive current LCD’s data sheet for a complete listing • 32 — Set LCD to four-bit operating
drain and/or possible erratic operation or do a Google search for the words mode
of the circuit. Tying them to
ground (or +5V) avoids these FIGURE 7. Breadboard without LCD. FIGURE 8. Breadboard with LCD.
risks.
Of course, you can
modify the wiring layout on
the breadboard to suit your
purposes, but if you plan to
attach the matrix keyboard
when we get to Part 3 of this
article, make sure pins 10
through 18 on the PICAXE-
18X are easily accessible
because we will be using them
to connect the keyboard.
February 2007 61
Hackett2.qxd 1/10/2007 12:03 PM Page 62

Getting Started With PICAXE Microcontrollers

FIGURE 9. “Hello20X4LCD” Program Listing. • 48 — Set LCD to eight-bit operating


mode
' **** LCD20x4.bas ************************************************************ • 128 — Move cursor to start of first
'
' This program runs on a PICAXE-18X @ 4 MHz. line
' It interfaces with an HD44780-based 20x4 LCD display. • 192 — Move cursor to start of
' second line
'
*******************************************************************************
LCD Character
' **** Constant Definitions ****
Addressing
symbol En = 3 ' LCD Enable pin connected to PICAXE output 3
Until now, everything we have
symbol RS = 2 ' LCD RegSel pin connected to PICAXE output 2 covered about HD44780-based
LCDs has been very consistent
regardless of the size of the display.
' **** Variable Definitions ****
However, now we need to discuss
symbol char = b1 ' character to be sent to LCD how a character is placed at a
symbol index = b2 ' used as counter in For-Next loops specific location or “address” on
the display and, at this point, it can
' **** Data Definitions **** get a little confusing. First of all —
except for the smallest display
data 0, ("NICE PICAXE DISPLAY!") ' LCD row 1 stored in EEPROM memory (eight characters by one line) — all
data 40, ("With all this space,") ' LCD row 3 stored in EEPROM memory
data 20, ("you can control your") ' LCD row 2 stored in EEPROM memory
HD44780 displays are organized
data 60, ("corner of the world!") ' LCD row 4 stored in EEPROM memory into two “lines.” So, what we think
of as a 16x1 line display is actually
an 8x2 line display with the second
' **** Main Program *********************************************************** line beginning in the middle of the
only line — go figure! Also, a 20x4
main: gosub init ' initialize LCD display — such as the one used in
this article — is actually a 40 charac-
for index = 0 to 39 ' output data to 1st (& 3rd!) row of LCD
read index, char ' read character from EEPROM ter by two line display. To make
gosub wrchr ' send character to LCD matters worse, the two lines are
next index interleaved: Line 1 begins where
you would expect (first position of
char = 192 ' instruction: start of 2nd row of LCD
gosub wrins ' send instruction to LCD the first row), but when row 1 of the
display is filled, the line continues at
for index = 40 to 79 ' output data to 2nd (& 4th!) row of LCD the beginning of row 3! Similarly,
read index, char ' read character from EEPROM
gosub wrchr ' send character to LCD
line 2 starts at the beginning of row
next index 2 of the display and jumps to row 4.
If that isn’t confusing enough, it
end turns out that just about all of these
displays have data storage of two
' **** End Main Program - Subroutines Follow ********************************** lines by 40 characters. In other
words, except for a 20x4 display, all
the smaller LCDs can store more
' **** Subroutine init ****
data than they can display at one
init: pins = 0 ' clear all PICAXE output lines time, which explains why data can
pause 200 ' pause 200 mS for LCD initialization be scrolled on these displays. I chose
pins = 48 ' instruction: set to 8-bit operation
the 20x4 display before I was aware
pulsout En,1 ' send data to LCD of all these intricacies, but it actually
pulsout En,1 ' send data (necessary) turns out to be easier to use than the
smaller ones, because there is no hid-
pins = 32 ' instruction: set to 4-bit operation
pulsout En,1 ' send data to LCD den data stored in the display. The
pulsout En,1 ' send again (necessary in 4-bit mode) only complication is the interleaving
of lines 1 and 2, but this is easy to
pins = 128 ' instruction: set to 2 line operation handle, as we are about to discover.
pulsout En,1 ' send data to LCD
When you need to figure out
62 February 2007
Hackett2.qxd 1/10/2007 12:03 PM Page 63

Getting Started With PICAXE Microcontrollers


the character addressing scheme for a
specific display, it’s extremely helpful to Figure 9 continued ...
have access to the display’s data sheet, char = 14 ' instruction: screen on, cursor on
but if that isn’t possible, you can try the gosub wrins ' send instruction to LCD
“Let’s see what happens!” approach of
char = 1 ' instruction: clear display, cursor home
the “Hello20x4LCD” program present- gosub wrins ' send instruction to LCD
ed in Figure 9. Essentially, what the
program does is write four 20-character char = 12 ' instruction: hide cursor
strings to the LCD so we can see where gosub wrins ' send instruction to LCD
they are positioned on the display. return
However, before you read through or
try the program, there are a couple of
points that may need clarification. ' **** Subroutine wrchr ****
First, PICAXE Basic does not sup- wrchr: pins = char & 240 ' place high nibble of char onto pins
port string variables, but all PICAXE high RS ' make sure RS is high
chips have built-in EEPROM Data pulsout En,1 ' send data to LCD
Memory (256 bytes in the PICAXE-
pins = char * 16 ' place low nibble of char onto pins
18X), so the simplest approach to out- high RS ' make sure RS is high
putting data to an LCD is to first store pulsout En,1 ' send data to LCD
it in Data Memory and then transfer it
byte-by-byte to the LCD for display. If return
you look at the four Data Memory
assignments in the program listing of ' **** Subroutine wrins ****
Figure 9, you can see how the
interleaving of the LCD lines 1 and 2 wrins: pins = char & 240 ' place high nibble of char onto pins
pulsout En,1 ' send data to LCD
has been managed. The starting
addresses for the second and third 20- pins = char * 16 ' place low nibble of char onto pins
character string have been reversed to pulsout En,1 ' send data to LCD
“undo” the interleaving — look at the
return
resulting output presented in Figure 8
to see the results of the reversal.
Secondly, for some reason (which Conclusion
I have been unable to ascertain), when RESOURCES
a four-bit data interface is used with In the final part of this series, we
Full PICAXE Line of Products
an HD44780-based display, the initial- will add a 12 or 16 key matrix key-
www.world-educational-
ization commands need to be sent to board and a piezo beeper to our hard- services.com
the LCD twice — so what seems like ware design and develop the software
redundancy in the initialization necessary to implement a simple stand- PICAXE-18X
subroutine code is actually necessary. alone I/O terminal for other microcon- www.phanderson.com
Finally, aside from placing the cur- troller-based projects. Of course, a sec- www.picaxe.co.uk
sor at the beginning of line 1 or line 2, ond microcontroller will be necessary
it isn’t necessary to update the address to fully test the functionality of the PICAXE-08M
for each character to be displayed — the terminal. Any processor capable of www.JRHackett.net
LCD handles that automatically. In fact, sending and receiving five-volt level www.phanderson.com
www.picaxe.co.uk
because a 20x4 LCD displays every serial data at 1200, 2400, or 4800
character its memory can store, it isn’t baud will do. If you don’t have one on
Character LCD
even necessary to position the cursor at hand, the PICAXE-08M is an excellent www.allelectronics.com
the beginning of line 2. One for-next candidate. It has the same Basic pro- www.digikey.com
loop with 80 iterations will also work, gramming system as the 18X, is amaz- www.ebay.com
as long as your initial Data Memory ingly small (eight pins), and costs less www.goldmine-elec.com
assignments take the interleaving of the than $4 (see the Resources sidebar). In www.mouser.com
two lines into account. However, this is the meantime, you might experiment
not true for all the smaller LCDs, which with placing text at specific locations Matrix Keypad
cannot display the full 80 characters, so on your LCD display to gain experi- www.acroname.com
the program is written with those ence with its specific addressing www.ebay.com
www.hvwtech.com
displays in mind, as well. scheme. See you next time! NV
February 2007 63
Showcase-Schmartie.qxd 1/11/2007 7:50 PM Page 64

SHOWCASE

PP:KLWH
ZDWHUFOHDU
/('9
PFG
$% 

VHFRQGYRLFHUHFRUGHUSOD\EDFNPRGXOH
SUHDVVHPEOHG  $ 
7KH9HOOHPDQ3HUVRQDO6FRSH
LVDFRPSOHWH06VSRUWDEOH

QGV
7KRXVD
L WH P VRQ
PRUH
E V LWH
RXUZH

PRINTED CIRCUIT BOARDS


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

SchmartBoard Announces Eight


Winners of Schmartie Awards
What’s New Award Winners to Receive
Apple iPod Nanos'
In The Forums?
If you haven’t been to the Nuts S chmartBoard, the developer of
a new technology that has signifi-
cantly simplified the creation of elec-
& Volts forums lately, you’ve likely
tronic circuits for hobbyists, education,
missed out on a lot of great and industry, announced the winners
discussions.There are over 5,000 of its first annual Schmartie Awards.
registered users and over 41,000 Schmartie Award participants, as a
part of the SchmartDeveloper program,
posts covering every electronics posted an electronic circuit design with
topic imaginable. a bill of materials that included the cor-
Here are some recent topics rect SchmartBoards (prototype boards)
to SchmartBoard's SchmartDeveloper
that have been in discussion. website. The winners receive Apple
iPod nanos and all participants that
➥ Monitoring Home Energy Usage posted a schematic received a Schmart-
➥ Motors As Generators Board t-shirt and free SchmartBoards
➥ Engine Knock Sensors to build their circuit. The countries rep-
resented by participants who signed up
➥ Building A CPU From TTL Chips for the contest included Australia,
➥ Thermostat Hack Bangladesh, Bulgaria, Canada, France,
➥ Ham Morse Code Test Dropped India, Mexico, and the United States.
The circuits, and information about
➥ Electric Water Heaters the winners and other applicants can
➥ Solar Power be found at www.schmartdevelop
er.org. The winners of the contest are:
Current forums include:
• Robert Gatt — Port Fairy, Australia —
Nokia 5110 LCD Interface
Electronics Discussion
• Sunil Jha — Kanpur, India — Seven-
Computers Segment Display Module
Robotics • Indranil Majumdar — Kolkata, India
— 3.6VDC Li Charger
Programming • Jack Atkinson Jr. — Grant, AL USA —
Up For Grabs 8032 Microcontroller Module
• Jared Bayne — Mission, KS USA —
The new forum Up For Robot Controller
• Mike Otte — Pearl City, IL USA —
Grabs is a great place to post any
Site: www.vandvmachy.com
Finger Talker
Email: victor@vandvmachy.com or electronics items for sale, • Russell Pead — Worcester, MA USA
tesoreria_mtm@prodigy.net.mx
USA Office: Blink Manufacturing 14019 Whispering Palms Dr. trade, or to give away to a good — TTL Test Board Module
Houston, TX 77066, PH. 281-397-8101 FAX: 281-397-6220
Mexico Plant: Automatizacion, Ensambles Y Cir. Impresos, S.A.C.V. home. It’s for private party (person- • Jerry Rutherford — Overland, KS USA
Alamo 93, 4o. Piso, Sta. Mónica, Tlalnepantla, Edo. de México 54040 — Mega 8 Module
PH: 011 52-555 360-3648 & 011 52 555-361-3351
FAX: 011 52-555 361-5996
al) items only. No commercial
vendors allowed. Oh yeah, and Co-sponsors of the contest were
it’s FREE. R&D Electronics (randelec tronic
Extreme Motor
So, don’t throw out that junk parts.com), Hobby Engineering (www.
Speed Control!
hobbyengineering.com), Parallax
$399 6 14V - 50V you’re not using — it may be
6 Dual 150A+ Peak H-bridges! (www.parallax.com), Topline (www.top
6
6
Current/Temp limiting
R/C inputs - serial option
just what a budding electronics line.tv), Intellect Lab (www.intellect
6
6
Extruded Aluminum case
4.25" x 3.23" x 1.1” hobbyist needs to get that project lab.com), SERVO Magazine (www.servo
MADE IN
magazine.com), and Nut s & Volt s
finished!
THE USA Magazine (www.nutsvolts.com).
1.6“ x 2.7“
1.25“x .5“ $119.99 Check it out for yourself today! SchmartBoard plans to announce a
1.6“ sq
$29.99 Powerful!
$79.99 bigger and better second annual
Scorpion Mini - Single 6A H-bridge - R/C interface
Scorpion HX - Dual 6A H-bridge +12A Aux - R/C www.nutsvolts.com Schmartie Awards in the second quarter
Scorpion XL - Dual 30A H-bridge - R/C or serial of 2007. NV
www.robotpower.com February 2007 65
Phone: 253-843-2504  sales@robotpower.com
Full Page.qxd 1/10/2007 11:04 AM Page 66

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.

15MM PIEZO CCD IMAGE SENSORS LASER PARKING DEVICE


DISC In digital imaging and photography Charge WITH MOTION SENSOR
Coupled Devices (CCDs) capture light on
AVX # KBS-15DA-9C-31. 2" pigtail leads. Boa # 9150T. A peculiar,
their surfaces which is converted into
CAT# PE-53 images. These CCDs are, in effect, digital
yet oddly practical device
to take the guess-

75 ¢ 10 for 65¢ each


100 for 50¢ each
cameras without lenses. We have two types,
both made by Sharp Electronics. We don’t
work out of
each parking your
have documentation, but both are new and
vehicle in
12 VDC 97 MM CENTRIFUGAL should be functional.
the garage.
BLOWER Sharp # YH9GB1.
Some people do
AVC # F9733B12LT. 12 Vdc, this with a tennis ball hanging on a rope. The
Consists of two pc boards,
0.72 Amp, ball bearing blower. adjustable laser pointer mounted on the wall or
back-to-back. Overall size,
97 mm x 95mm x 33mm ceiling of the garage is activated when the car
(3.80" x 3.73" x 1.3"). Four
11" leads with 4-pin socket
connector, 0.1" centers. Two
0.84” x 1.55” x 0.7” thick.
CAT# CCD-1 $ 502 enters the garage. The laser beam, set to pro-
each ject a point of light on the car's dashboard or
hood, lets you know when the car is where you
Sharp # YH9TM1.
of the leads are part of a want it. The laser shuts off automatically after
Single pc board made
trigger-terminal mechanism a short time. Operates on a 110 Volt wall
for 3Com Corp.
$ 251
for switching the blower remotely. The remote transformer or 9 Volt battery (battery not
1.2” x 0.65” x 0.34” thick.
switch is easily bypassed by connecting the included). Mounting screws and double-side
CAT# CCD-2 each tape included.
red and yellow leads together and the black
and white leads together. See spec sheets on
our web site for more hook-up information. UL,
6 VOLT, 1.3 AH BATTERY
Maintenance-free, recharge-
CAT# LP-904 $ 1665 each
CSA, CE, TUV. CAT# CF-270
10 for $5.00 each $ 505 able sealed lead acid battery.
each Can be used in any position and
can be trickle charged for
12VDC 1000MA WALL
TRANSFORMER
Input: 120V 60Hz 25W.
18 AMP SOLID-STATE RELAY, long periods of time.
Output 12 Vdc 1000 mA.
3.85" x 2.10" x 0.98."
3-15VDC CONTROL 0.187" qc / solder term-
Screw Terminals. UL listed.
Crydom # EZ240D18. CAT# DCTX-121
inals. New batteries,
Control Voltage:
3-15 Vdc. Output:
18 Amps @ 240 Vac.
SCR output, low leakage solid
prepped with easily removable
2.5" wire leads with qc
connectors. CAT# GC-613
$ 4 75
each
6
$ 75
each 10 for $6.00 each

MINI-GEARHEAD MOTOR,
state relay. 1.72" x 1.5" x 1.02" high including POWER SUPPLY, 5V/8A, 166:1 RATIO
0.25" QC/solder terminals. Mounting holes on
2.2" centers. UL, CSA, CE.
12V/2A, -12V/2A Portescap
CAT# SRLY-18
10 for $9.25 each
$ 10 50 Astec # RBT101.
each Input:
115/230 Vac.
(escap) Motor
17 N 78 213E 1
Portescap (escap)
Outputs: Gearhead R16 6 166 Precision,
FERRITE SPLIT BEAD 12Vdc @ 2.0A, Swiss-made motor and gearhead. Quiet,
Self-locking plastic snap 5Vdc @ 8.0A, -12Vdc smooth-running. Lots of torque for its size. 48
sleeve holds ferrite form @ 2.0A. Switching power RPM @ 7.5 Vdc @ 21 mA. 17mm diameter x
in place. 0.43" I.D. supply on an aluminum L-bracket, 50mm long (excluding shaft). 3mm diameter x
1.33" long x 1.05" diameter.
CAT# FB-66
10 for $1.00 each • 100 for 75¢ each
$ 251 6.78" x 3.65" x 1.72".
each UL, CSA, TUV.
CAT# PS-105 7
$ 50
each
8mm long flatted shaft.
Solder lug terminals.
CAT# DCM-285
$ 1775 each

Shop ON-LINE www.allelectronics.com


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

MANUFACTURERS - We Purchase EXCESS INVENTORIES... Call, Write, E-MAIL or Fax YOUR LIST.
66 February 2007
Axelson.qxd 1/10/2007 12:49 PM Page 67

Flash Drives
Access
with a Microcontroller
— by Jan Axelson

USB Flash drives provide a handy way to store any type of


information in a small package. The drives — also known as thumb
drives and USB keys — seem ideal for use in data loggers and other
microcontroller-based projects. But to access files in a Flash drive, a
microcontroller must have USB host hardware and support for a file
system. Microcontroller-based devices often lack these elements.

T
o the rescue is the USBwiz USB port on a PC, Windows assigns the USBwiz comes in.
chip from GHI Electronics. a drive letter and shows the drive in
With the USBwiz, just about My Computer. Inside the USBwiz
any microcontroller can read and Current Flash drives have capaci-
write to files in Flash drives. The ties as large as eight gigabytes, which The USBwiz is a programmed
microcontroller can access the is more than enough for the data Philips LPC2141 microcontroller
USBwiz via an asynchronous serial a small system might need to store based on a 16/32-bit ARM processor
(UART) port or an SPI or I2C port. and access. core. For USB communications,
Most microcontrollers support one Every USB communication is the chip interfaces to a Philips
or more of these ports. The USBwiz between a host and a device. The host ISP1160 USB host controller. The
can also access USB hard drives contains host-controller hardware and USBwiz-OEM board (Figure 2)
and Flash-memory cards such as manages communications on the bus. contains both chips, two USB
MultimediaCards (MMCs) and The device contains device-controller connectors, a connector for an SD
Secure Digital (SD) Cards. hardware and responds to communi- Card or MultiMediaCard, and a user
In this article, I’ll show how cations from the host. Host
to use the USBwiz to create a file hardware and code are more
in a Flash drive, write to the file, complex than device hardware
and read the file’s contents. I’ll also and code.
show how to control the USBwiz PCs contain host con-
from a PC using a terminal utility or trollers and thus can communi-
Visual Basic. When you have working cate with USB devices,
code on the PC, you can port including Flash drives. Most
the code to your microcontroller microcontrollers with USB sup-
of choice. port contain device controllers.
A microcontroller that wants to
About Flash Drives access Flash drives or other
and USB USB devices must have a host
controller embedded in the
A USB Flash drive (Figure 1) is microcontroller or accessed on
a USB device that contains Flash a separate chip. This is where
memory that PCs and other USB hosts
can access in the same way as other ■ FIGURE 1. USB Flash drives
are handy for storing informa-
drives. If you attach a Flash drive to a tion for just about any purpose.
February 2007 67
Axelson.qxd 1/10/2007 12:49 PM Page 68

Access Flash Drives with a Microcontroller

into the USBwiz can replace the DLP-USB232M with a


from an SD Card or Maxim Semiconductor MAX233 or
MultiMediaCard. similar chip that converts between
This article asyncronous. serial and RS-232
focuses on commu- voltages.
nications with USB With the circuit connected to a
drives. The USBwiz PC, you can use a terminal utility or
can also talk just about any programming language
with USB mice, to communicate with the USBwiz via
some printers, a COM port.
some modems/cell
phones, and USB USBwiz
device controllers Communications
■ FIGURE 2. With the USBwiz-OEM from FTDI Chip.
board, microcontrollers can access Every USBwiz command must be
Flash drives and other USB devices, A Setup for followed by a CR code (ASCII 0Dh).
as well as SD Cards and
MultiMediaCards. Experimenting After receiving a command and CR,
the USBwiz returns a status code
interface that brings out connections The USBwiz is ideal for followed by a CR. A code of “!00”
for powering and communicating microcontroller communications, but indicates success. For some
with the circuits. The user interface is sometimes the easiest way to check commands, the USBwiz follows
a line of holes that accepts an 18-pin out a new device is to hook it up to a the status code with additional
SIP header (which you provide). PC and use its resources to run and information, or the sender of the
You can plug the header into a debug code. When you have every- command sends additional informa-
breadboard or mating receptacle thing working, you can port the code tion as described below.
or solder the header directly to a to your microcontroller of choice. Windows includes a terminal utili-
circuit board. Figure 3 is a circuit that connects ty called Hyperterminal, but I don’t
GHI Electronics provides free a USBwiz-OEM board to a PC using recommend using it with the USBwiz.
USBwiz firmware that supports a the USBwiz’s UART port. To interface To view what you’re typing and the
command set for communicating the port to a USB port on a PC, I used responses, you want the terminal’s
with the board. All commands and a DLP Designs DLP-USB232M USB display to add a line feed (LF) to each
responses are ASCII text. A boot- Adapter Board, which comes in a CR sent and received without sending
loader program loads the firmware handy dual in-line package (DIP). LFs to the USBwiz. I couldn’t find
You can build Figure 3’s circuit on a combination of settings that would do
■ FIGURE 3. To experiment with breadboard. this in Hyperterminal.
the USBwiz, connect it to a PC. A
DLP-USB232M converts between the If your PC has an RS-232 serial Instead I used the free TeraTerm
UART port on the USBwiz and a PC’s port or a USB/RS-232 adapter, you Pro (see Sources for a link). In
USB port.

68 February 2007
Axelson.qxd 1/10/2007 12:49 PM Page 69

Access Flash Drives with a Microcontroller

TeraTerm Pro, under Setup > Serial ■ FIGURE 4. The USBwiz communi-
Port, set Port to the COM port your cates via text commands.
device uses and set Baud rate = 9600, The UM command registers an
Data = 8 bit, Parity = none, Stop = 1 enumerated USB mass-storage device
bit, and Flow control = none. If the and assigns a mass-storage handle for
port uses a USB/serial adapter, the communicating with the device:
adapter will need to be attached
before TeraTerm will list it. Under UM h>m
Setup > Terminal, set New-line Receive
to CR+LF and New-line Transmit to CR. where h is the assigned device handle
Check the Local echo checkbox. and m is the mass-storage device
You’re now ready to start sending handle to assign to the device.
commands to the USBwiz (Figure 4). This command assigns mass-
If you have another favorite storage handle 0 to the device with
terminal utility, you can probably use device handle 0:
it by setting the options as described
above. UM 0>0
I’ll show some of the essential
commands for accessing files on Flash After executing the UM
drives. The USBwiz’s User Manual command and returning a status code
documents many more commands, of !00, the USBwiz returns “$” mass-storage handle of a USB device.
including commands that access followed by the number of the highest The USBwiz supports up to three
other device types. logical unit (LUN) in the media: independent file systems.
This command mounts file system
The Commands $00 0 on the USB device with mass-
storage handle 0:
Before reading and writing to files On a PC, each LUN corresponds
on a Flash drive, the USBwiz must to a drive letter. Partitioned drives MU 0>U0
receive and execute four commands. have multiple LUNs. Flash drives
USB hosts learn about attached typically have just one LUN, If the USBwiz returns !00 in
devices by sending a series of requests numbered zero. response to each of the above
in a process called enumeration. The The AM command prepares the commands, you’re ready to read and
device returns a series of data USBwiz to communicate with a mass- write to files.
structures called descriptors, which storage device and checks to ensure
describe the device’s functions and the storage media is available: Accessing Files
capabilities. A Flash drive sends
descriptors that tell the host that the AM Um<n Before you can write to a file, you
device belongs to USB’s mass-storage need to open it. The OF command
class. The host then knows it can use where m is an assigned mass-storage opens a file:
mass-storage protocols to communi- handle and n is the LUN.
cate with the device. This command prepares to OF nM>filename
The UI command causes the communicate with LUN 0 in the
USBwiz to enumerate an attached device with mass-storage handle 0: where n is a file handle, filename
USB Device: is the name of the file, and M is
AM U0<0 the read or write mode. Set M to
UI p>h “W” to overwrite any existing file of
Note that this command uses “<” the same name, “A” to append to an
where p is the port number and h is rather than “>”. existing file, or “R” to read from
the device handle to assign to the To read and write to a file, the the file.
device. USBwiz must mount a file system to This command opens the file
The USBwiz-OEM board has two the device. The MU command “test.txt” for overwriting using file
USB connectors: Port 0 on the bottom mounts a file system to a mass-storage handle 0:
and Port 1 on top. This command device:
enumerates the device on Port 0 and OF 0W>test.txt
assigns device handle 0: MU m>Un
If the file doesn’t exist, the
UI 0>0 where m is the file system and n is the USBwiz creates it.
February 2007 69
Axelson.qxd 1/10/2007 12:50 PM Page 70

Access Flash Drives with a Microcontroller

The WF command writes to an WF 0>D The CF command closes an open


open file: file and frees the file handle:
On receiving a valid WF
WF n>ssssssss command, the USBwiz returns !00, CF n
waits to receive the specified
where n is the file handle and number of bytes, and returns “$” where n is the handle.
ssssssss is the amount of data to followed by the number of bytes This command closes file
write expressed in ASCII hex. written and !00: handle 0:
(ASCII hex means the value is
hexadecimal and expressed as !00 CF 0
Nuts & Volts
text using the characters 0-9 and
$0000000D
A-F.) !00 This command opens the file
This command writes 13 (0Dh) test.txt for reading:
bytes to the file opened with file (The text “Nuts & Volts” followed
handle 0: by a CR is 13 bytes.) OF 0R>test.txt

Using Visual Basic to Access the USBwiz


You can also write applications to communicate The ReadLine method can read a response code
with the USBwiz. Microsoft’s .NET Framework 2.0 returned by the USBwiz:
includes a SerialPort class for accessing hardware
that uses a COM-port interface. This includes devices Dim response As String = “”
connected to USB/serial converters such as the response = SelectedPort.ReadLine
DLP-USB232M module. You can run the following
Visual Basic code using the free Visual Basic 2005 This statement requests to open the file “test.txt”
Express edition available from Microsoft. using file handle 0 for writing:

Configuring the COM Port selectedPort.WriteLine(“OF 0W>test.txt”


This statement defines SelectedPort as a member of
the SerialPort class: This statement requests to write three bytes to the
opened file with file handle 0:
Friend SelectedPort As System.IO.Ports.SerialPort
selectedPort.WriteLine(“WF 0>3”)
These statements set port parameters and open a
COM port in Visual Basic .NET: After sending this command and receiving a
response of “00!”, the application should send the bytes
selectedPort = My.Computer.Ports.OpenSerialPort( to write to the file without adding a CR code to the end
“COM4”, 9600, Parity.None, 8, StopBits.One) (unless desired). The Write method does the job:
selectedPort.Handshake = Handshake.RequestToSend
selectedPort.ReadTimeout = 1000 Dim bytesToSend as byte()
selectedPort.WriteTimeout = 1000 bytesToSend(0) = 78 ‘ ASCII “N”
bytesToSend(1) = 38 ‘ ASCII “&”
The NewLine property defines what is considered bytesToSend(2) = 86 ‘ ASCII “V”
the end of a line for the ReadLine and WriteLine selectedPort.Write(bytesToSend, 0,
bytesToSend.GetLength(0))
methods. Because the USBwiz uses a carriage
return only, NewLine should be set to the Visual-Basic
constant vbCr: This statement requests to read three bytes from
the open file with file handle 0 and filler character “X”:
selectedPort.NewLine = vbCr
selectedPort.Read(“RF 0X>3”
Accessing Files
The WriteLine and ReadLine methods send data to After returning a response code, the USBwiz returns
the port and read data received on the port. WriteLine the requested data. The Read method reads the data:
adds a NewLine character to the end of the data being
sent. ReadLine returns all received data up to a NewLine Dim bytesRead As Integer
Dim bytesToRead as Integer
character and discards the NewLine character. Dim receiveBuffer() As Byte
This statement writes a UI command and CR to a bytesToRead = 3
serial port: ReDim receiveBuffer(bytesToRead - 1)
bytesRead = selectedPort.Read(receiveBuffer, 0,
SelectedPort.WriteLine(“UI 0>0”) bytesToRead)

70 February 2007
Axelson.qxd 1/10/2007 12:50 PM Page 71

Access Flash Drives with a Microcontroller

The RF command reads from to Access the USBwiz shows how


a file: you can perform similar functions About the Author
from a Visual-Basic application.
RF nM>ssssssss ■ Jan Axelson is the author of
For a complete Visual Basic
USB Complete, USB Mass
application that accesses the
Storage Complete, and Serial Port
where n is a previously obtained USBwiz, visit my website at
Complete. For USBwiz code and
file handle, M is a filler character, www.Lvr.com. Another option to
more information about accessing
and ssssssss is the number of bytes give your programming a quick start Flash drives and designing USB
to read expressed as ASCII hex. If is the free Microchip C library for devices and hosts, visit Jan’s
the requested number of bytes the USBwiz available from GHI website at www.Lvr.com.
aren’t available, the USBwiz inserts Electronics. NV
the filler character for the missing
bytes.
This command requests to read
15 (0Fh) bytes from a file opened with
file handle 0 using “X” as the filler
character:

RF 0X>0000000F

On receiving a valid RF com-


mand, the USBwiz returns !00
followed by the requested data, filler
characters if needed, “$”, the number
of bytes read, and !00:

RF 0x>F
!00
Nuts & Volts
XX$0000000D
!00

In the example that’s shown


above, the command requested
two more bytes than the file
contained, so the file’s contents
were followed by two filler
characters.
The sidebar Using Visual Basic

Sources NEW! HIDmaker FS for Full Speed FLASH PIC18F4550


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

■ TeraTerm Pro DOWNLOAD the HIDmaker FS Test Drive today!


http://hp.vector.co.jp/authors/ www.TraceSystemsInc.com
VA002416/teraterm.html 301-262-0300
February 2007 71
Rahman.qxd 1/10/2007 1:06 PM Page 72

DISPLAYS for
ALL OCCASIONS
b y F a i z R a h m a n

I f a picture is worth a In this article, we will look at a display for use as computer monitors.
number of the most prominent display This initial device was basically an
thousand words, then technologies that are available on the array of neon-filled cells that could be
market. These include Plasma Display selectively excited by an AC voltage.
moving pictures are surely Panels (PDPs), Liquid Crystal Displays Making large dot matrix displays from
worth many thousands of (LCDs), Digital Light Projection (DLP), the Nixie tubes of the 1950s and 1960s
and Electronic Ink Displays (EIDs). The was a revolutionary idea. A few years
words. It is this great last one is still under development and later, a license was purchased by IBM
descriptive power of moving is targeted at semi-static applications
such as changeable signage.
who developed it further into the 3290
Information Panel that came out in
imagery that has made Televisions, of course, are not the 1983. In the years that followed, several
only devices that incorporate displays. Japanese companies also became inter-
televisions so popular. A wide variety of handheld gadgets, ested in this display technology, and
outdoor information signs, computers, with the backing of the Japanese nation-
Televisions were introduced in the and even movie theaters require al broadcaster NHK, began to aggres-
late 1930s and rapidly replaced radio means for displaying stationary and sively develop it for TV applications.
sets as the prime entertainment moving images. Advances in display As a result of subsequent efforts
appliance for the home. In most of the technologies have far reaching conse- in the United States and Japan, these
intervening years, the only notable quences because they touch almost displays changed from monochrome
development had been the appear- every aspect of modern life. For this to color and thus gradually evolved
ance of color TVs in the 1950s. For reason, it is important that we under- from high-tech neon signs to dense
the past few years, however, there stand the basic technical features arrays of fluorescent lights.
have been several new developments behind the new generation of display Structurally, plasma display panels
in television technology. The most technologies. If nothing else, this will consist of an array of gas discharge cells
visible of these are the emergence of help us make informed choices as like the one shown in Figure 1. An entire
new displays which are spoiling us for consumers of display equipment. panel is made from a honeycomb-like
choice in the marketplace. sheet of millions of such chambers.
Plasma Displays These cells are filled with a mixture of
FIGURE 1. A PDP cell, showing inert gases, such as krypton and xenon,
the placement of discharge Few display technologies have had at low pressure. Applying a high voltage
electrodes, phosphor, and cell rib. such an impact on consumer senti- across such a cell ionizes the gas mix-
ments as flat panel plasma displays. In ture and causes it to emit ultraviolet radi-
recent years, their outstanding visual ation. While ultraviolet itself is invisible,
appeal has rejuvenated a languishing it can be efficiently converted to visible
TV market. Plasma displays are actually light with the help of luminescent mate-
quite old, having been invented in the rials called phosphors. Actually, each
1960s by Donald Bitzer and Gene pixel is composed of three sub-pixels:
Slottow at the University of Illinois. They one each for red, green, and blue colors.
developed a prototype monochrome The phosphors used with these
72 February 2007
Rahman.qxd 1/10/2007 1:06 PM Page 73

sub-pixels are the same as those in The advent of High


use with color CRT displays. Plasma Definition (HD) TV technology
technology has benefited from the years has found a compatible partner
of phosphor developments that have in plasma display screens as their
made conventional color TVs so good at combination works exceedingly
accurate color reproduction. Because well for delivering and displaying
each sub-pixel can be individually con- images of outstanding clarity. No
trolled over a wide range of output light wonder most plasma TVs are
intensity, by appropriately mixing light now sold with built-in HDTV
from the three pixel group, an amazingly capability. Their large sizes, cou- FIGURE 2. A section of an LCD panel, showing
large palette of colors could be pled with the ability to view the arrangement of various layers.
displayed. The segmented design of plas- them from virtually any angle,
ma pixels, combined with a bubble-like has also made plasma screens the three sub-pixels for red, green, and
design that shields individual pixels from favorite for electronic billboards and blue colors. Instead of phosphors,
neighboring pixels, further helps create other outdoor display applications. however, these displays use colored
very accurate color reproductions. The filters to define their sub-pixels.
first generation displays had high-voltage LCD Panels Polarized light — unlike ordinary light —
electrodes placed in front of and at the has a well-defined directional charac-
back of each discharge cell, but these Liquid Crystal Display (LCD) panels ter with its electric field oscillations all
quickly gave way to a design where both have been aggressively competing with confined to only one direction that is
high-voltage electrodes are placed at the plasma panels with several leading man- at right angles to the direction in which
front plane, and coplanar-electrode PDP ufacturers offering both varieties. the light is travelling. Such light can
cell design is now almost universal. Compared to plasma displays, liquid only pass through a polarizing material
In contrast to the opposing- crystal panels have better contrast and if the latter’s polarizing orientation
electrode design, this structure mini- lower power consumption, which is the same as the polarised light’s
mizes energetic ion bombardment of explains their widespread use in hand- preferred direction of oscillation.
phosphors and thus prolongs phosphor held and portable equipment. On a shop LCD cells can switch light by rotat-
life. A thin layer of magnesium oxide pro- floor, these two might appear very much ing the direction of the polarization of
tects the inner cell surface from ener- alike. However, closer inspection reveals light passing through them. An applied
getic particles created in the discharge interesting differences that originate cell voltage can alter the direction of
plasma. As each pixel is itself a source of from their very different technologies. orientation or twist the liquid crystal
light, plasma panels don’t need backlight- Unlike plasma panels, LCD panels molecules which, in turn, changes the
ing (as is the case with LCD panels). This are not self-emissive but rely on a set polarizing direction of the light passing
makes them especially bright no matter of discharge lamps or LEDs to provide through it. If this direction is the same
what the panel size. The resulting rich, screen illumination. The technology is as that defined by the polarizing mate-
bright, and vibrant imagery provides for the same as that used in laptop rial, then the light gets through the LCD
an extraordinary viewing experience. computer displays with the screen assembly. Otherwise, it gets blocked.
comprised of a large array of LCD cells With a mosaic of red, green, and
Plasma Progress that rely on switching polarized light blue filtered sub-pixels, color can also
to generate various light intensities. be displayed. The cell switching action
Progress in the further develop- A liquid crystal screen is made of is controlled by individual Thin Film
ment of plasma panels has been rapid. a layer of special, highly-oriented Transistors (TFTs) that are integrated at
The first ever commercial plasma dis- molecular material (called liquid the back of the lower glass pane. This
play TV was introduced by Pioneer in crystal) sandwiched between two close integration brings the benefits
1997. Last year, Japanese manufactur- sheets of thin, highly-polished float of high-speed, transistor-controlled
ers displayed sets with screen sizes up glass. These glass panes have a pattern switching to these so-called active
to 103 inches across at the Consumer of transparent electrodes printed on matrix TFT LCDs and enables them to
Electronics Show in Las Vegas, NV, and them that define individual pixels. display television images.
this year will bring even larger units. There are also sheets of light-polarizing Because polarization is orienta-
Fujitsu and Hitachi are the leading material that cover the whole assem- tion-dependent, LCDs do suffer from
producers of plasma display panels in bly both at the top and on the bottom. limited angular coverage. Recent
Japan and they supply their panels The entire multilayer is illuminated advances have led to significant
to a number of other Japanese and with a flat backlight from the rear. improvements in this area, however.
European companies. Due to their low This arrangement is best under- Furthermore, reliability issues connect-
weight and naturally planar construc- stood by looking at a small cross- ed with the integration of large arrays
tion, plasma displays are the technolo- section of an LCD display, shown in of TFTs means that the manufacture of
gy of choice for large and extra-large Figure 2. Just as with plasma screens, large liquid crystal panels becomes
screen TVs and computer monitors. each LCD pixel is also divided into quite tricky and, for this reason, LCD-
February 2007 73
Rahman.qxd 1/10/2007 1:07 PM Page 74

speeds. The DLP device is capable of rely on Texas Instruments’ DLP chips, as
steering light from a lamp source to a no other company has developed any
viewing screen, creating images of alternative to this technology. The rest of
outstanding sharpness and vibrancy. the projection system is built by major
Invented by Larry Hornbeck of manufacturers and purchased by smaller
Texas Instruments (TI) in 1987, the companies. The much touted digital
DLP chip — which goes by the name projection cinema is also being enabled
of Digital Micromirror Device (DMD), by DLP technology. As digital cine-print
combines both video processing and distribution and security issues are
light switching functions on a two resolved, we will see a steeper rise in
tier platform (see Figure 3 for what a digital projection-equipped theaters
FIGURE 3. A packaged DLP chip from typical packaged chip looks like). around the world. As opposed to
Texas Instruments. The MEMS mirror assembly is a conventional film projection, digital
two-dimensional array of hinged mirror distribution and projection offers many
based TVs are currently not available flaps and piezoelectric actuators that sit benefits such as low cost of print dupli-
in quite as large screen sizes as PDP- atop a CMOS under-layer that contains cation, fast worldwide distribution, and
based units. Continued progress in the processing and drive circuitry. The entire multiple screenings with the same digital
development of very high brightness chip is the same size as other commer- copy. In addition, 3D movies in the
LED-based backlights and more con- cial large size chips (about 1.5” x 1.5”). IMAX format, projected with twin pro-
trolled TFT process technologies will A complete projection system is some- jectors, are particularly suited to digital
lead to larger LCD panels in the future. what complicated as it has to include projection techniques and these might
such elements as a light source, filter make a big comeback with the advent
Digital Light Projection wheel, and various mirrors and lenses. of mainstream digital projection cine-
The projection assembly works by direct- mas. A digital cine projector from Barco
Unlike plasma and liquid crystal ing light from a powerful lamp, through a is shown in Figure 4. Such projectors are
displays, Digital Light Projection (DLP) red-green-blue filter wheel, on to a DLP commercially available now and are set
technology forms images by projecting chip. The DMD mirror array then selec- to claim a bigger share of the market as
a pattern of light and dark areas on a tively projects a pixel pattern, through a digital projection gains further ground.
translucent screen. The projector is a projection lens, on to a screen. Red,
specialized semiconductor chip that green, and blue partial images are E-ink Technology
carries an array of tiny movable mirrors thus projected in quick succession as the
on its top surface. This Micro Electro- filter wheel rotates. The three primary Yet another technology that is
Mechanical System (MEMS) device is color images get blended together and under rapid development is the so-
a true marvel of modern engineering one sees a composite full-color image. called electronic ink or E-ink that offers
in that it can digitally switch an image The display screen itself could be extremely low power consumption
mosaic accurately and at very high integrated with the rest of the system in and is suitable for semi-static display
a short distance projection configuration applications such as information
FIGURE 4. A commercial digital for producing domestic DLP televisions update panels, clocks, and books. Sony
cine projector from Barco. or it could be a remote screen as in Corporation has already introduced an
movie theaters. In the latter case, of E-book called Libre that uses E-ink
course, especially powerful lamps have technology developed by E-ink and
to be used in order to provide sufficient Toppan Corporations. Electronics man-
light for wide screen illumination. ufacturers in Europe are also eyeing
this development for producing road-
A Rise in DLP Usage side signage and public information
display systems. Even more products
Several consumer electronics com- are expected in the next few years.
panies are now offering DLP televisions
and these are rapidly replacing tradition- What is E-ink Made Of?
al CRT-based sets on account of their
much superior resolution and color E-ink consists of millions of micro-
saturation properties. The high intensity capsules, each filled with two types of
tungsten-halogen lamps in these sets pigments, suspended in a clear fluid.
have a limited lifetime of 5,000 to One pigment is white in color and
10,000 hours of continuous operation. carries a permanent positive charge
These are somewhat expensive but not while the other is black in color and
too difficult to replace. Needless to say, carries a permanent negative charge.
all digital projection systems currently These ‘electrophoretic’ pigments make
74 February 2007
Rahman.qxd 1/10/2007 1:07 PM Page 75

E-ink electrically active. Sandwiched Transparent


between two conducting polymer Top Electrode
sheets, each microcapsule becomes a
single monochrome pixel capable of
showing up as either a white or a Positively Charged Negatively Charged
White Pigment Black Pigment
black dot, depending on which pig-
ment faces upward toward the viewer.
Patterned Clear Fluid
Either of the pigments could be made
Bottom Electrode
to face the viewer by applying an + + + - - -
appropriate voltage to a pair of trans-
White Gray Black
parent conducting tracks underneath
the chosen microcapsule. The pig- FIGURE 5. E-ink microcapsules. Different charge configurations on backside pixel
ment steering action is fairly quick and control electrodes result in different E-ink tones being displayed.
can result in a pixel becoming white,
black, or gray, depending on the voltage development. These include electronic superior images. This technology is also
configuration (see Figure 5). The possibil- books, Personal Digital Assistants enabling the development of digital
ity of intermediate or gray configuration (PDAs), flexible clocks (see Figure 6 for cinemas which will become ubiquitous
results in a pleasing display quality. a prototype from Citizen Watch in the next few years. The delays here
Transition from one color state to Company), Flash memory sticks with are not technical but rather commercial
another takes place in less than a sec- usage indicators, indoor weather sta- and logistic; stemming from the inability
ond. Once a pixel has been switched to tions, and more. Recently, a color ver- of the film industry to reach a consensus
one of its three possible color states, no sion of E-ink has also been introduced on rights management, content distribu-
further power consumption is required — a development that will further diver- tion, and security provisions.
as the state can be maintained indefi- sify the range of electronic ink-based As progress is made on these
nitely. The resolution of such a display products that are possible. As this issues, we will see widespread adop-
is ultimately limited by the diameter of technology matures, more and more tion of digital projection standards in
the E-ink microcapsules that is roughly developers are likely to jump on the the near future. E-ink, being a static
the same as that of a human hair. Pixels bandwagon so that we can expect to display technology, is unsuitable for
of such a size are well-suited for most see more E-ink products in the future. televisions but — by all indications —
all display applications ranging from will see widespread use in electronic
public signage to screens for portable What Lies Ahead books, personal gadgets, and informa-
and handheld devices. Due to their tion signage. Its utility will be boosted
slow switching speed, present-day E-ink With several distinct display tech- further by the recent development of
technology is not suitable for displaying nologies competing out there for com- colored E-ink technology.
moving images, but there are still mercial success, what can be said about By all accounts, the diversity of
plenty of applications where this kind the future? While all technologies will be emerging electronic image reproduc-
of display can be usefully employed. improved over the coming months and tion standards will both satisfy existing
The outstanding advantages of years in order to bring down their costs needs and spawn brand new markets.
E-ink-based displays are their high and to improve their operational aspects, Taken together, the new display
contrast (the same as that of black ink they will mostly find their own niches. technologies will define much of the
on paper), extremely low power PDP and LCD have been direct look and feel of the early 21st century,
consumption (power is only needed competitors and are likely to remain so, and in the process, will make our lives
when a displayed image is changed), especially because efforts are underway more vibrant and colorful. NV
all-angle viewing capability, very low to make larger LCD screens
weight, and thin form factor. To these that could compete head-to- FIGURE 6. Citizen recently demonstrated the
can be added its inherent flexibility head with PDPs in the large world’s first flexible clock made from E-ink.
which will be fully utilized once flexible screen arena. Other than
backplane display-driver electronics that, unless something gives
are developed. Futuristic developers one or the other a definitive
are already talking of the days when technological advantage, the
flexible display technology will make choice among them will
personal flexible newspapers a reality. continue to be dictated by
consumer tastes.
The Potential of E-ink DLPs have replaced CRT-
based projection TVs and
Due to its outstanding advantages, these appear set to remain in
several products employing E-ink tech- this role as the new sets are
nology are being released or are under smaller and display much
February 2007 75
ElectronetFeb07.qxd 1/10/2007 1:12 PM Page 76

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

AM/FM Broadcasters • Hobby Kits


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

100+ Electronic Kits


and Modules
www.TechnologyKit.us

76 February 2007
Page77.qxd 1/11/2007 5:20 PM Page 77

EMBEDDED LINUX
Starter Kit
FEATURES INCLUDE:
! Linux 2.6 Kernel
! 486-133 MHz based SBC
! 10/100 Base-T Ethernet
! Removable Flash Disk
! 32MB RAM
! Power Supply
! Carrying Case
! Starting at $399.00
! X-Windows (option)
! Eclipse Development Package

I magine running Embedded Linux on a Single Board Computer


(SBC) that is 4.0" x 5.7" and boots Linux from a Flash-Disk. No
hard drives, no fans, nothing to break. Now your hardware can be
as reliable as Linux! If your application requires video output,
the X-Windows upgrade option provides video output for a
standard VGA monitor or LCD. Everything is included;
Ready to Run Linux! For more information, please visit our
website at: www.emacinc.com/trainers/linux_starter_kit.htm

Since 1985
OVER
21
YEARS OF
SINGLE BOARD
SOLUTIONS EQUIPMENT MONITOR AND CONTROL
Phone: (618) 529-4525 Fax: (618) 457-0110 www.emacinc.com

Interface a sharp LCD display to your BASIC Stamp® or other


micro-controller project with ease. No-solder wiring harnesses
and easy mounting kits available too. See www.seetron.com today.

• 3.2 x 1.4 in. supertwist LCD


BPI-216N
• 2400/9600 baud serial
• Low (≈2mA) current draw
• Great with BASIC Stamps®

• 3.2 x 2 in. backlit LCD


ILM-216L
• 1200-9600 baud serial
• Advanced protocol, 4 switch inputs
• EEPROM for configuration settings
• Favorite for OEM applications

• 3.2 x 1.4 in. graphics LCD SGX-120L


• 2400/9600 baud serial
• Font and 15 screens in EEPROM
• Easily draw points, lines, screens

• 3 x 2 in. supertwist LCD


TRM-425L
• 1200-9600 baud serial
• ESD-protected, 4x4 keypad input
• Store up to 95 screens in EEPROM

1939 S. Frontage Rd. #F, Sierra Vista, AZ 85635


phone 520-459-4802 • fax 520-459-0623
www.seetron.com • sales@seetron.com

February 2007 77
Mork.qxd 1/11/2007 3:29 PM Page 78

Reno Air Races 2006

An old-fashioned fire-truck drove pilots and If you squint your eyes, and look into the haze, the line-up of unlimited air
crew up and down the flight line after flight racers looks like a military flight line of World War II.
demonstrations or race heats.

by Brian Mork
ave you ever noticed that national aviation events tend to pick up names based on where
H they occur? For example, the home-built Experimental Aircraft Association (EAA,
www.eaa.org) fly-in, conducted annually in August in Oshkosh, Wisconsin, is colloquially
known as “Oshkosh.” The Reno Air Racing Association (RARA, www.airrace.org) air races,
held annually in September at the Reno-Stead Airport in Nevada, are known simply as “Reno.”

I had a chance to attend the 2006 tiny errors leading to magnificent loss. etc. Some modern lower-power, low-
races, held September 11-15, and Individual teams are always look- weight designs are starting to threaten
took the opportunity to learn a bit ing for new ways to improve, and the speed zone previously owned by
about the teams, see what opportuni- adopting data collection and analysis the best WW-II speedsters. In
ties there are for people, take a lot of techniques is one of many methods response, the RARA committee added
photos, and see what hardware and helping them squeeze the last mph an additional minimum weight restric-
software they’re using to push forward out of their aircraft and pilot tech- tion to keep the character of the race.
this “World’s Fastest Motor Sport.” niques. What is this environment, and Past wins have been above 450 mph,
Previously, I reported on the 2004 who are these people? What kind of and are pushing against 500 mph as
and 2005 DARPA Autonomous technology do they use? In what areas improvements are made each year.
Vehicle competitions and 2005 X- could I contribute? These questions
Prize win for the Space Ship One form the scope of this article. Please • The Jet Class exhibits the fastest raw
team. These were cutting edge efforts, be sure to also read the many photo speed, but doesn’t have the same
pushing new technology to the limit. captions — much of the spirit of Reno audience thrill of deep throated aspi-
Although the team that took first place comes out through the photographs. rated engines as they zoom by a cou-
in the Reno Sport Class develops ple hundred feet in the air. All aircraft
aircraft at the same Mojave Spaceport Race Aircraft in this class are L-39 Albatross jets.
as the Scaled Composites Space Ship
One team, the character and purpose There are six broad classes of com- • The Sport Class was started in 1998 to
of Reno is different. petition, based on the type of airplane. include any number of the faster home-
Reno is not a free-for-all run toward built type aircraft. As optimization set in,
the future, with new technology oozing • The traditional fast movers are the the class has become dominated by
out of every mechanical seam. It’s an Unlimited Class. Until recently, any Glassair and Lancair fiberglass airframes.
honorable and traditional discipline propeller driven airplane could partici-
pursued by those with the money and pate. This class is populated with pro- • Formula One pilots fly aircraft built
dedication to win with margins of peller driven World War II type planes to strict technical specifications.
victory hovering at a few percent, any with stock or modified engines, wings, Speeds of nearly 250 mph are
78 February 2007
Mork.qxd 1/11/2007 3:30 PM Page 79

Detonation is when the conditions in a piston The sport class is dominated with composite construction,
engine cause premature explosion of the fuel retractable gear Glass-air and Lancair aircraft. These are not exotic
mixture, providing expanding pressure when the specialty craft. Just a few years ago, many racers were stock. To
piston is at the same time trying to compress the squeeze the last 10-15 mph out of them, increased customization is
fuel mixture. During one of the qualifying runs, this the trend in the air race community. If you have the money, and
$200,000 Merlin engine was allowed to detonate reasonable shop skills, you can build one of these planes. Check
just a second too long. The piston flew down into websites at www.lancair.com/Main and www.glasairaircraft.com.
the crankcase, damaging many parts until it finally Think $50,000 to get started, five years to complete. Finished planes
tore through the body of the engine. sell for over $100k.

These planes look very similar as they Part of the Unlimited Class lineup
round the southwest pylons traveling over
Five people working simultaneously on race pit area after a day of
200 mph. If you look close, you can identify
the same engine was not abnormal. qualifying runs. A Hawker Sea
a Glasair by the bow in the canopy, and the
Notice the two halogen spotlights in Fury from Nevada and two from
Lancair by the one-piece canopy. Sport
the foreground to keep working into Texas, join a Grumman F8F-1 at
Class champion speeds have gone from 308
the night. the far end of the line.
mph in 1998 to 365 mph in 2005.

The Formula One aircraft are tightly The Nemesis racer in the Sport Class
constrained in form and size, so much was optimized to beat the Lancairs at
of the competitive advantage comes the Reno air races. For aerodynamic
from tuning the engine and propeller reasons, as the Nemesis is taxiing, The Air Force F-15s didn’t participate in
to deliver every last pound of thrust the pilot can’t see the runway in the race, but they did multiple air
into the air-stream zipping by at about front, so the team mounted a remote shows throughout the days. With the
250 miles per hour. Sometimes, it camera on the landing gear. After two track clear, the pilots usually ended their
seemed the effort was led by technolo- years of landing gear trouble, John routine with a lap around the track —
gy, and sometimes good-old fashioned Sharp and the Nemesis won this year clearly trouncing times of normal
savvy experience. at 360 mph around the 6.4 mile course. competitors.

February 2007 79
Mork.qxd 1/11/2007 3:31 PM Page 80

attained on a 3.2 mile course. The is dominated by Pitts (wikipedia. extremes, airplane speeds clock in
following description comes from the org/wiki/Pitts_Special), but also has a between 200 mph and nearly 500
www.if1airracing.com website (that’s few designs optimized to go fast and mph. Race results are available many
a “one”, not “el” in the URL): do little else well. places on the web, and reported in
many aviation-oriented magazines or
“Established in 1947 as an alterna- For all classes, the engines of the websites. An interactive web query can
tive to the (even then) outrageously aircraft are the philosophical center of be found at www.airrace.org/2006
expensive unlimited class, Formula One gravity for the entire airplane. For the ResultsQuery.php. The fastest times for
racers have been evolving for almost 70 Unlimited class war birds, it’s not each category this year were as follows:
years. Today, the top racers use NASA uncommon to use a heavily mod-
Speed
technology to reach top speeds ified, turbine-driven carburetor- Class Airplane Pilot (mph)
approaching 300 mph on the same aspirated engine, with manifold Unlimited September Fury Mike Brown 482
engine that powers a Cessna 150 to pressures above 120 inches of Jet American Spirit Rick Vandan 443
barely 100 mph. International Formula mercury. Inter-cooling is manda- Sport Nemesis Jon Sharp 360
One is without a doubt the most afford- tory, and loss of the water system F-1 Mariah Gary Hubler 257
able form of world class motor racing.” or the electricity that runs it is an Biplane Phantom Tom Aberle 252
immediate emergency grounding T-6 Six Cat Nick Macy 236
• T-6 is a class defined by the airplane, for the airplane.
but kept alive by the spirit of a Competitors run aggressive timing Culture
community. The Condor Squadron advances so that every possible molecule
out of Van Nuys, CA airport is a good of burned fuel adds pressure to the The people who own and pilot these
example. In 1967, former Guardsman downward stroke of the pistons. Threat aircraft are not your normal blue-collar,
from the 146th Airlift Wing formed of detonation is real. See the photo of the 8-5 employees. Most of the Unlimited
the Condor Squadron (www.condors engine that threw a piston out the side of aircraft are owned by business owners,
quadron.org) as a search and rescue the casing on the previous page. Unique airline pilots, or people retired from a
unit associated with the Civil Air Patrol to Reno is that even with an engine business closely related to aviation. The
and for the enjoyment of flying the blow-out like that, the press was happy to owners don’t necessarily fly the planes.
vintage North American Texan AT-6, report “no serious accidents” for the Pilots may be tied to one team
originally used in World War II training week. It’s a recognition that what could year after year, or free-lance each year.
missions. The aircraft fly in formation happen is much worse. But not just anybody can fly in these
weekly and participate in patriotic, On the other end of the scale are races. If you intend to fly in
charitable, and memorial activities. the Formula One racers, where all September, you have to attend a four-
Several of their planes were at Reno. planes are powered by a 200 in3 day Pylon Racing School in the prior
Continental engine, which is the small June, or have raced in the same class
• All aircraft in the Biplane Class need 100 Hp engine used in a Cessna 150 within the past three years.
to have (surprise) two wings. There are trainer. The weights and size of every Free-lance pilots such as Skip
some technical limits on what consti- major part must be within stock limits, Holms are perennially at the race,
tutes a wing, but basically the intent is and the cam profile and carburetion appearing in race results every few
to include what a common person are strictly controlled. years. On a Lake Tahoe dinner cruise,
would identify as a bi-plane. This class Pulled through the air with these I had the privilege of chatting with Skip

If you’re used to working in the The mix of old and new military
grungy engine compartments of planes is increasingly getting rare. Six Unlimited class aircraft make the turn
road vehicles, aviation installations Several times per day, military back to the North on the Southeast corner
would impress you. Big enemies formation flybys were done with a of the race track, directly in front of the
are vibration, heat, and potential mix of World War II, Korean War, audience. Visible in the picture are the
for fire. Almost all the assembly Vietnam War, and modern fighters. If emergency vehicles ready to respond.
techniques you see here — such as you have expertise that can help old Races were flown only 100 feet or so
cable sheathing, strapping, ferrules, planes stay airworthy, there are mul- above ground level, with very little time for
and feed-throughs — are mandated tiple organizations or private owners mistakes. Fortunately, this year, there were
by FAA regulations. that would value your contribution. no serious accidents.

80 February 2007
Mork.qxd 1/11/2007 3:31 PM Page 81

This shows a typical pit crew display for an Unlimited This data shows a flight of the Lancair 360 “Unleashed,” which
Class racer. Displays vary based on what each team placed 6th in the Bronze Sports Class, at 259 mph.
wants to monitor. This aircraft appears to have just
taxied back to the ramp and shut down (no RPM or
fuel flow, oil temperature is warm, and oil pressure
recently dropped to zero).

Although the engines started with the same stock on This is the cockpit of one of few Sport class aircraft that used
many of the P-51 race planes (12 cylinder Merlin data acquisition systems during the races. Flight instruments are
engines), individual tweaks were always at hand. on the left. Technical data information is presented on the right.

Many general aviation aircraft need a The staid Cessna Citation business jet has
battery only to start the engine and for been retro-fit with two Williams FJ44-2A tur-
cockpit illumination if flying after bofan engines and designated the “Stallion”
sundown. The Unlimited Class racers by Sierra Industries of Uvalde, TX. Even
typically used 20+ NiCad cells giving a more than cars, the engine inside an air-
voltage of about 24 volts. These batter- plane gives it character to both the pilot and
ies ran primary systems such as water to the business managers monitoring costs.
injection into the engine to counter-act The engine re-fit, in this case, cuts down on
detonation and other critical systems. If weight, size, and fuel consumption, while
battery charging quits, it is an immedi- improving performance numbers. The A venerable P-51, taxiing out for
ate emergency — even in beautiful day- Stallion climbs directly to FL340 (34,000 a flight demonstration (no team
light weather — because the engines feet), and cruises for 1,400 nm at 380 knots, number on the tail indicates that
will be damaged if battery power dies. burning only 620 lb/hr of fuel. this was not a race bird).

February 2007 81
Mork.qxd 1/11/2007 3:32 PM Page 82

for the evening, and came to appreci- sides benefitted. Mike learned a lot opinions about putting displays in the
ate the breadth of experience he (and about engineering “laboratory grade” cockpit because traveling at 300 mph,
I’m sure many race pilots) have. When data acquisition systems for hard life in less than 100 feet above ground,
not active on a team, he’s part of a a magneto driven, high RPM engine demands most of the pilots’ time.
new aviation business (www.maverick environment. Ray was one of the first Some teams use nothing in the cock-
jets.com/team/skip.php). beneficiaries of a real-time data pit; some use a simple red light annun-
The mechanics are a special display, and after-race analysis to ciator, and some use data displays.
breed. Not everybody knows the ins determine what could be optimized. After-action analysis may con-
and outs of these engines and planes. Currently, Carbon Slipper has tribute most to the year-to-year
But knowledge isn’t enough. During equipment in place to monitor four improvements. With proper analysis
race season, care and feeding of a race Cylinder Head Temperatures (CHTs), tools, pilots can learn to take advantage
plane becomes one’s life. Spouse or four Exhaust Gas Temperatures of prevailing wind on the track, or build
kids travel with you, and you, in-turn, (EGTs), Air Speed, GPS-based Time reference data sets of optimum set-
travel with the plane. Many team Space Position Information (TSPI), Oil tings, based on ambient weather condi-
members live in an RV trailer on the temperature, RPM, and NZ (vertical tions. RCAT Systems was there this year
ramp during race week. Between races acceleration, or gravity). Real-time overlaying position data on top of
— day or night — it’s not uncommon to telemetry is transmitted to a laptop on Google Earth images, giving instant
have swarms of people around the the ground during the race. Panel visual display of variations, lap to lap.
planes, with engine cowlings pulled. indication to the pilot announces if Improvement may come in the form of
Oftentimes, teams become populat- anything is approaching limits. trend analysis or pattern recognition of
ed with volunteers and families, doing With this Formula One start, the what airframe and pilot technique
the entire race season for recreation. The RCAT system has become the domi- combinations obtain the best speed.
Formula One, Biplane, and Sport Class nant data acquisition system at the This technology area is not limited
continue most strongly with this charac- Reno air races. In addition to Formula to individual race teams investigating
ter, although the Sport class has drifted One, several of the serious Unlimited how to use reams of real-time and
toward special race-only aircraft, relying class teams use the system. For exam- historical data. Using data well is the
on contract-hired work of experts. ple, September Fury — which won the core goal for one of the Small Business
The costs of racing a plane is Unlimited class competition — uses an Innovation Research (SBIR) government
significant. To take the edge off, many RCAT system. During the race week, grants I’m familiar with, that is specifi-
teams have a full-time booth selling fan Mike was resident on-site helping cally funding new methods of using
paraphernalia — hats, t-shirts, teams get the most from his hardware aircraft test data. If you visit the
emblems, jackets, and sometimes even and software. I included pictures of Increa.com Wiki, and search for “SBIR,”
rides in the plane during quiet times. several screen shots, giving an idea of you can read contract and technical
what type of data is streamed to the summaries of the work being done.
Data Collection ground during a race, and what type If your company can do develop-
of after-action analysis can be done. ment in this area, you may want to
Ray Debs is partnered with Curtis monitor what other requests are com-
Weinman to build, own, and race Data Technology ing from the government. Check the
Formula One aircraft (www.aerophile. Improvements SBIR solicitations that come out multi-
org). This year, they moved up to the ple times per year (www.sba.gov/
Gold competition for the first time, and I’ve had a chance to work with sbir/indexsbir-sttr.html) for contracts
placed fifth, flying #81, “Carbon Slipper.” multiple data collection systems at the that range from $100k to over $700k.
Ray also has a strong background USAF test pilot school, and the automo- On a smaller scale, if you’re
and continued interest in model plane tive manufacturing industry. Actually interested in volunteering time with
racing. This connection opened con- collecting data from almost anything is any of the teams, contact them now
versations with Mike Luvara, of RCAT getting to be “old hat.” Intelligent use as race improvements are a year-
Systems (www.rcatsystems.com), of the data is a wide open field. Do you round activity. If you’re interested in
who traditionally developed data have ideas? Get in touch with a team, wandering the ambiance of a modern
systems for radio-controlled aircraft. and start volunteering your time. day air race next September, check
Teaming together in 2003, they Race teams’ big concern is engine prices and schedule on the RARA
flew the first data collection systems in life and performance. The two are website. Camping locations start to fill
the Reno air races. It was a classic often at odds, and optimizing the com- up mid-summer, so plan ahead.
cooperative sponsorship where both bination often runs parameters against Although air racing has been around
the limit. Some sort of warning system for 60+ years, the improvements keep
when limits are exceeded is by far the happening. Whether you contribute
ABOUT THE AUTHOR most valuable contribution of the data on a team, or watch as a spectator, I
Visit Brian Mork’s website at systems. Monitoring by a ground team hope you’ll have a chance to enjoy
www.increa.com. during a race is wise. There are mixed this one-of-a kind sport! NV
82 February 2007
Full Page.qxd 1/10/2007 11:06 AM Page 83

Logon to our website for secure shopping cart, powerful


search engine, and latest news! www.halted.com

Silicon Valley’s Electronics Marketplace


♦V
Got excess electronic inventory? Send us your list or give us a call, we’d be happy to make an offer!
Call 1-800-4-HALTED (1-800-442-5833) to order... ...or use our web search! Deals @ HSC! Search

Electro-Hobbyist Alert -- HSC is your source! Homeboxx for Modern


Even before there was a place called “Silicon Valley”, HSC was the favorite stop of hardware hackers,
Home-Wiring!
techno-tinkerers, entrepreneurs and engineers on a budget! We have been buying and selling the Valley’s
excess inventory for 40 years now, and our collection is second-to-none! We are also factory-authorized
distributors for many fine lines of parts, tools, equipment and accessories, so we feel we should be your first
stop when shopping for electronic basics. Give our ever-expanding website a try and see what we mean!
Fujitsu Laptop Power Supply ♦ Extensive line of modularized home
16VDC, 3.75 A, Fits many models data, telco & audio wiring hardware
HSC#21183 $24.95 ♦ Surface or built-in cabinets
♦ New product...search on “Homeboxx”

Solar Panel 4.7 - 5.0 VDC, .25W Wireless RF Transmitter See Website for Details!
60 x 60 mm, CuInSe for iPod
Vicor 48VDC 2.1A Flatpac Supply
HSC#80821 $4.95 HSC#80837 $12.95 Another Transceiver
HSC#80849 $27.50
Hacker Special!
USB 2.0 to IDE Drive Adaptor
HSC#80822 $14.95
5-port USB Host Card
“Backpack Bantam”
Parallel-port external CD ROM HSC#80834 $14.95
RF Transistor Engineering Kit
54 different devices
HSC#20972 $19.95
HSC#20999 $29.50
♦ S & C Electric “IntelliCAP Plus”
♦ Wireless Power Dist. Controller
♦ Dandy weatherproof enclosure
2.4 GHz Wireless Color Security ♦ 900 MHz Data Radio
Camera with Receiver Small DC Gearmotor
♦ Yagi Beam Antenna (weatherproof)
6 - 12 VDC, 3 - 6 RPM
HSC#80830 $37.50 ♦ Coaxial Cable with “N” connectors
Toroidal Transformer, 70VCT, 1A HSC#80812 $12.95 ♦ Sold for experimental purposes only!
Universal Laptop Power Supply HSC#20691 $14.95 ♦ Never used...no other info avail!
HSC#80844 $37.50 HSC#21177 $149.00
700MHz Transceiver
Hobbyist Special! Fujitsu PenCentra
PCMCIA DVD/MPEG Video Card
HSC#21067 $19.95 PCMCIA FireWire card
HSC# 20829 $12.50 Tablet Computer -
HSC# 20830 $12.50 Good to Go!
29.4 GHz Transceiver
with 12” dish -- Wow!
HSC#21154 $95.00

Tripplite Outlet Strip, 5 ft. long


USB External 2.5” Metal Drive Case Logitech QuickCam Express
HSC#20794 $39.95
HSC#80824 $14.95 HSC#21061 $19.50
2.5” 30GB Laptop IDE Hard Drive
for above case (not shown)
HSC#21248 $39.95
Pressure Transducer, 0-30 psi ♦ Fujitsu PenCentra 130 computer
Special! Buy both HSC#21066 $9.95 ♦ 131 MHz NEC VR4121 MIPS CPU
case and drive above Hands-free Cell-phone Headset ♦ 32MB DRAM, 24MB ROM, 8MB Flash
for $49.95! Step-down Toroid Transformer 2.5mm plug fits many phones ♦ Color DSTN Touch LCD 640 x 480
240 - 120 VAC 250VA
HSC#21118 $2.95 ♦ PCMCIA, VGA, PS2, USB, SIO ports
HSC#21058 $35.00 ♦ Win CE 2.11 Pro in PROM (no disks!)
♦ Microsoft Pocket Office, Outlook, IE
♦ “Radio Ready” for LAN/WAN PC Card
♦ Internal microphone, speaker & jacks
♦ Stylus, Mini Keyboard, Dock & PS
Plantronics LS1 Computer Headset
Slo-Syn Stepping Motor ♦ New, never used, 90-day warranty!
(Stereo & mic. plugs, not RJ-11) Embedded Wireless Transceiver!
Model SS-25, 120V, .3A
2.4GHz - 200mW, 5VDC Peltier Module - Electrocooler!
HSC#20725 $26.95 HSC#20948 $12.50 HSC# 80797 $159.00
HSC#21001 $65.00 HSC#80813 $24.95

Since 1964!...
Silicon Valley’s BEST place to shop for Electronics!
Three Retail Stores to serve you! Order Toll-Free: 1-800-4-HALTED (442-5833)
Look for us on...
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: $10.00
Santa Clara 1-408-732-1573 seller ID: plus shipping. Orders under $30.00 subject to $3.00 handling fee, in addition to shipping.
Sacramento 1-916-338-2545 hscelectronicsupply All orders shipped by UPS Surface unless otherwise specified. $7.50 UPS charge added
for COD. Visit our website for detailed information on domestic and international shipping.
Rohnert Park 1-707-585-7344

February 2007 83
GetStartedWithPICs.qxd 1/10/2007 12:53 PM Page 84

■ BY CHUCK HELLEBUYCK
GETTING STARTED WITH
THE LATEST IN PROGRAMMING MICROCONTROLLERS
PICs
QUICK AND DIRTY HOCKEY
SCOREBOARD
ONCE YOU LEARN HOW to control an LCD module, you suddenly see them all
over the place and numerous ideas for LCD projects come to mind. Over the
years, I’ve done many projects with LCDs, and the whole LCD business has grown
to the point that just about every kind of LCD you could imagine is available.

S erial LCDs that receive informa-


tion in RS-232 style format are
popular and have come down in
LCDs can really come in handy. I’ll
also show that the Atom software
makes driving one of the lower cost
ey, it’s when kids play hockey on
their knees using those little plastic
souvenir hockey sticks and a soft,
price. Parallel LCDs — which require parallel LCDs as easy as driving round ball. He often plays until
a little more software to drive — are a serial LCD because of the someone gets to 10 or 20 goals, but
popular because they can be bought LCDWRITE command. my knees can’t take that, so I wanted
in surplus for around $10. LED to put a time limit on it. I didn’t have
backlight LCDs are also readily time to build a whole setup, so I
available in lots of different colors.
SCOREBOARD pulled out a BasicBoard and in a
I’ve also received a lot of email from Several years ago, I created short time had a whole scoreboard
new readers to the column asking for one of my most favorite Atom developed as seen in Figure 1. I
more LCD examples. I pulled a little development boards that I call the wasn’t real worried about accuracy
project out of my library for this BasicBoard. I tried to put all the of the time, but since the BasicBoard
month to show how having a features in one board that I use used a 20 MHz resonator and I was
development board with built-in most often in my projects. The only looking for a 20 minute timer,
BasicBoard has switches, LEDs, this setup was accurate enough. In
speaker, potentiometer, serial port, fact, I didn’t even need to use a timer
NOTE: expansion ports and — of course — interrupt. I could just use a simple
■ The complete software listing is
available on the Nuts & Volts website an LCD. I used a 40 pin Atom PAUSE command to get the right
at www.nutsvolts.com interpreter chip at the center of timing.
it which is a I got a little carried away and
■ FIGURE 1 PIC16F877A added a score to the setup since it
with the Atom didn’t take much more effort and I
f i r m w a r e had the space on the LCD.
installed. This Having the switches and LEDs
board came in pre-connected also made this simply
handy when I a software project. The original
needed to build scoreboard had a second timer to tell
a quick timer when to change lines in case my son
for a mini-stick had a group of kids playing that were
hockey game I taking turns. I removed that portion
promised to play for this article.
with my son.
If you’re not
familiar with
HOW IT WORKS
mini-stick hock- Using the CON (constant) and
84 February 2007
GetStartedWithPICs.qxd 1/10/2007 12:53 PM Page 85

G E T T I N G S TA R T E D W I T H P I C s

VAR (variable) directive, all the


variables are established, the first
being the speaker connection. It’s
easier to understand that “spkr” is
speaker rather than p20. ■ FIGURE 2

spkr con 20 ‘Initialize Speaker Connection individual digits to be displayed on an LCD.

Next, the variables required to store the time and ‘ *** Create timer values to be displayed ***
display values are reserved in RAM using the VAR directive. tns = mn/10 ‘ Ten’s digit is minutes divided by 10
This program only needs byte-size variables. mns = mn//10 ‘ One’s digit is the remainder
scs = sc/10 ‘ Tenths digit is seconds divided by 10
ths = sc//10 ‘ Hundreths is the remainder
tns var byte ‘0x:xx 10’s digit display variable
mns var byte ‘x0:xx 1’s digit display variable
scs var byte ‘xx:0x 1/10’s digit display
ths var byte ‘xx:x0 1/100’s digit display
The calculated data is displayed on the LCD. The
mn var byte ‘total minutes variable for clock second line is controlled by the SCRRAM+$40 command.
sc var byte ‘total seconds variable for clock The second line position starts at 40 hex on the LCD
hscore var byte ‘Home Score variable character map inside the LCD display, as seen in Figure 2.
vscore var byte ‘Visitor Score variable The position you want is then added to the value.
Notice I add “14” to position the visitor score and it is
The LCD needs to be initialized as a 2x16 LCD with the treated as decimal 14, not a hex value. This is because the
cursor block visible and blinking (scrblk). This command Atom compiler doesn’t see a ‘$’ in front of it, so it converts
also clears the display (clear) and puts the cursor at the it and does the math. Nice little feature.
first position (home). We also pause 500 milliseconds
before this command to allow the LCD hardware to power ‘ *** Display the time on the LCD ***
up properly. lcdwrite 17\16,outc,[Clear,home,”HOME “,dec tns,
dec mns,”:”,dec scs,dec ths,” VIS”]
lcdwrite 17\16,outc,[scrram+$40+1,
‘ *** Initialize LCD to 2x16 *********
dec hscore,scram+$40+14,dec vscore]
pause 500
lcdwrite 17\16,outc,[initlcd1,initlcd2,twoline,scrblk,
clear,home]
The main loop is entered next. This just decrements the
clock and updates the display in a similar fashion to what we
Next the program confirms the display is working by did earlier. The only difference is the clock decrement calcu-
showing “ScoreBoard” on the first line and delaying it for lation. Also notice the “pause 975” at the top of the loop. This
one second so we will see it. is a crude adjustment for accuracy to make the loop close to
one second. I just timed it next to a stopwatch via trial and
‘ *** Initialize Section *********** error to get that number. In fact, it’s probably a little off since
main I removed some code from the original program for this arti-
cle. You will have to adjust that by making it slightly larger.
‘ *** Display Banner of “ScoreBoard” for 1 second ****
lcdwrite 17\16,outc,[clear,home,”ScoreBoard”]
pause 1000 ‘ *** Main Loop of Code ***
loop

The program also has to initialize the clock and score. pause 975 ‘ Adjustment for accuracy of
‘ clock
This is done by initializing the variables. if sc <> 0 then ‘ Test if seconds is not zero
sc =sc - 1 ‘ Reduce seconds by one
‘ *** Initialize clock to 20:00 and Home 0 vs Visitor 0 elseif sc = 0 and mn > 0 ‘ Seconds is zero so test
*** ‘ minutes also
init sc = 59 ‘ Reset seconds to 59
mn = 20 mn = mn - 1 ‘ Reduce minutes by one
sc = 0 endif
hscore = 0
vscore = 0
The Home score and Visitor score are next. All these
The time is actually broken out from the two time sections do is look for a switch to be pressed. If one of the
variables by math functions. We get the first digit by switches is pressed, the score is incremented and then it
dividing by 10, then use the remainder for the ones digit. waits for you to release the switch. This is actually lousy
We do the same for the two digits beyond the decimal code writing because holding the button stops the clock. It
point. This is a simple way to break up a number into also requires you to hold the switch for almost a second
February 2007 85
GetStartedWithPICs.qxd 1/10/2007 12:53 PM Page 86

because of that long pause 975 delay. (This is the cost of the contacts of momentary switches can internally bounce,
doing something quick and dirty so my son wasn’t waiting causing multiple contacts which can be read as two or
forever for me to finish.) If I would have used a timer more presses. The Atom is a little slower than a compiled
interrupt as the clock base, I could have made the main PIC, so this is less of an issue.
loop shorter and scanned the keys quicker without ever
messing up the clock accuracy. ‘*** Freeze Time ***

‘** Check for home score *** if in18 = 0 then ‘ If Switch 18 is pressed then
if in19 = 0 then ‘ If P19 switch is pressed high 7 ‘ light LED7 and
hscore = hscore + 1 ‘ then increase home score holdt ‘ hold up the clock
if in13 = 1 then holdt ‘ until switch is pressed again
‘** Update Display *********** low 7 ‘ Switch pressed LED7 off
lcdwrite 17\16,outc,[Clear,home,”HOME “,dec tns,dec endif
mns,”:”,dec scs,dec ths,” VIS”]
lcdwrite 17\16,outc,[scrram+$40+1,dec hscore,
scrram+$40+14,dec vscore]
This last section tests the clock values to see if they are
endif at zero. This indicates time is up so the SOUND command
is used to drive a tone from the speaker. The program also
‘*** Wait for switch to be released *** pauses the program after the tone is complete and waits for
holdh
if in19 = 0 then holdh
the user to press the P13 switch. When the switch is
pressed, the program jumps back to the top and resets the
‘*** Check for VIS score *** clock to 20:00 and clears the score. The timer then starts
if in12 = 0 then ‘ If P12 switch is pressed running again. If the clock isn’t at zero, then this section is
vscore = vscore + 1 ‘ then increase visitor score skipped and the program jumps to the loop label.
‘*** update display *************
lcdwrite 17\16,outc,[Clear,home,”HOME “,dec tns, ‘ *** Check for Main Clock Time up ***
dec mns,”:”,dec scs,dec ths,” VIS”] if sc = 0 and mn = 0 then ‘ Test for time = 0
lcdwrite 17\16,outc,[scrram+$40+1,dec hscore, high 7 ‘ time up light LED7
scrram+$40+14,dec vscore] sound spkr, [8000\200] ‘ Play time up tone for 8s
endif tuhold ‘ Hold up program until switch 13
if in13 = 1 then tuhold ‘ is pressed as reset switch
‘*** Wait for switch to be released *** low 7 ‘ LED 7 off
holdv mn = 20 ‘ Reset time to 20:00
if in12 = 0 then holdv sc = 0
goto loop ‘ Loop back to do it all again
endif
Next, we’ll use the pause 975 “feature” to actually stop
the clock. It reads the switch the same way it reads the goto loop ‘ Final loop if all else passes
score switches, but this time holds until the switch is
pressed again. Switch bounce could be a problem here, but
the time to set the LED allows this to work well. If this There are lots of areas to shorten this code. All the
wasn’t the case, it could actually see two presses because display commands could be combined into a subroutine,
as well as some of the calculations of
display digits. However, shorter code
wasn’t my goal. A quick solution to save
my knees was all I was looking for.

HARDWARE
The schematic for the BasicBoard is
shown in Figure 3. The schematic shows
four momentary switches pre-wired to
the Atom PIC with external pull-up
resistors. I put eight LEDs all connected
to PortB (P0 thru P7) through a 330 ohm
resistor bank. The speaker is prewired
to P20 pin through a 10 µF cap which
is an easy way to create sound (as
shown in the December 2006 article).
The LCD is a simple four-bit connection
scheme. I don’t have it wired for back-
■ FIGURE 3 light operation.
86 February 2007
GetStartedWithPICs.qxd 1/10/2007 12:54 PM Page 87

G E T T I N G S TA R T E D W I T H P I C s

This setup is easily built on a breadboard if you have


the components lying around. I personally like laying out
these types of development boards. Call me crazy, but I
find it a lot of fun. It costs more initially, but saves time in
the long run. I do get many emails asking me which
development board I recommend and frankly, I don’t really
know. I like mine since I designed them, but everybody has
their own preference. In most cases, you are spending a lot
of money for these boards so you want as many options as
possible. I guess that even becomes a problem because you
may have too many choices that require all sorts of jumpers
and more difficult software setup. You also end up paying
for features you may never use.
My Ultimate OEM modules resulted from all that
experimenting. So don’t be afraid to shop around to find
what you think will work for you, and then have a couple
around for simple projects like this scoreboard that happen
to come up. Just the savings in time from having all the
connections pre-wired is well worth the cost.

SUMMARY
It’s little projects like this that build up your skill over
time. Once you have a few development boards lying
around, you’ll find yourself writing quick snippets of code to
test something out. Soon you will have a library of sample
code for creating all kinds of little gadgets. I’ve found it’s the
hardware that takes so long to get right. This is why I’ve
developed all the breadboard modules that are on my
website (www.elproducts.com). I use them to quickly plug
and play ideas and then use that knowledge in future
projects. They don’t eliminate the hardware, but reduce it
down to a few jumper wires. When you want to make
something quick just to prove that it will work, you cannot
beat the simplicity of a pre-built development board.
The Atom also adds a lot of simplicity since you don’t
need to use a separate programmer to get the code into the
PIC. Just a simple serial connection will work. I’ve even
tested the BasicBoard with a few RS-232 to USB adapters
and most worked well. You still need to supply separate
power, though. Look for that option when searching for a
development board. Serial ports are getting harder to find
especially on laptops. If you can find a board with USB to
RS-232 built in, that is great. There are new chips out that
make that easier to implement. Some PICs even have USB
built in (I’ll be writing about that in future articles.)
Another advantage to the development board route is
that the code is proven first and then you can focus on
improving the hardware. For example, you could drive large
LED displays and make this setup a real scoreboard. I’ve
seen LED arrays form seven-segment digits that are five
inches tall. Plenty big enough for a full scale scoreboard.
Keep those emails coming! I enjoy reading them all. I
get a lot of junk mail also, so if I don’t respond, I probably
missed it because the spam filter got it. I try to respond to
everybody’s email. If you sent it to me and didn’t get a
response, please try again. It’s chuck@elproducts.com. See
you next month. NV
OpenComm.qxd 1/11/2007 3:57 PM Page 88

■ BY LOUIS E. FRENZEL W5LEF


OPEN COMMUNICATION
THE LATEST IN NETWORKING AND WIRELESS TECHNOLOGIES

TESLA INVENTED RADIO,


NOT MARCONI!
Get Your History Correct and Give
Credit Where Credit is Due
OKAY, I AM PROBABLY AS GUILTY AS YOU in believing that Marconi
actually invented radio. But he did not and it has taken decades — actually,
over a century — for the truth to come out. In fact, I am convinced that the
truth is still not well known. Not to burst your bubble or anything, but here is
the real story.
electronics type, but he read the immigrated to the US in 1884. He
WHAT REALLY book and was fascinated by Tesla and worked for Edison in New York City
HAPPENED? even amazed at Tesla’s unbelievable for a while, but pursued inventions on
inventions. Tesla was not only a real his own with great success. After end-
My son-in-law recently gave me a success in the electrical fields, but less squabbles with Edison over the
book he found on a sale table called also a terrible failure in many ways. merits of DC vs. AC, Tesla took off on
Tesla, Man Out of Time by Margaret And one of those failures was his his own and invented a whole stream
Cheney. It has a 1981 copyright date inability to get recognition for invent- of electrical things and patented them.
on it, but was re-released in 1993. ing radio during his lifetime. I read the Some of them were improvements
My son-in-law is not a technical or book only to find that I have had it to the telegraph, arc lights, and all
wrong all these years myself. From manner of electrical machines like
my days as a ham radio addict in my generators and motors. One of
teens to today where I write books his best inventions was the AC
and articles on radio for a living, I induction motor which he sold to
firmly believed I owed my livelihood Westinghouse.
to Marconi. Tesla went to work for
Nikola Tesla was born in the Westinghouse and helped him
Serbian part of Croatia in 1856. Last eventually win the battle for electrical
year was his 150th birthday. He began power distribution in the US and
inventing as a boy. Tesla was educated elsewhere. Edison was hell-bent to
in various European universities in electrify everything with DC, but
mechanical and electrical engineering, found that it was very inefficient and
physics, and languages. During the required more generating stations
late 1800s, he worked for Thomas over shorter distances. But AC — with
Edison’s European telephone compa- its ability to be stepped up in voltage
ny in Budapest and Paris. He by a transformer — could be transmit-
ted efficiently over very long distances
Photos are courtesy of Dr. Ljubo Vujovic, then stepped back down to usable
General Tesla Memorial Society of New levels where it was to be used.
York (www.teslasociety.com). Tesla was a major player in
■ FIGURE 1. Nikola Tesla in 1895 (age 39). building the first big power-generating
88 February 2007
OpenComm.qxd 1/11/2007 3:58 PM Page 89

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

plant at Niagara Falls, NY. In any case, extend the transmission range to one cant inventions, radio had not just one
he was a major player in making AC mile, then hundreds of miles. He “father,” but many. British mathemati-
the electrical power of choice. And received British patents for his radio cian James Clerk Maxwell first
despite his essential role and success, inventions. In 1901, he demonstrated proved the existence of radio waves
he never got rich like the the first trans-Atlantic radio transmis- mathematically in 1864. The German
Westinghouses and Edisons of sion. He went on to form a wireless physicist Hertz set out to prove
his time. telegraphy business for the British. Maxwell’s equations and did so in
His number of inventions and While all of the first patents related to 1885. After that, lots of others jumped
patents runs into the thousands but spark wireless, the real important into the fray. Some of them included
few — if any — actually paid off big for patents were for continuous wave Briton Oliver Lodge, Indian physicist
him. He did manage to live comfort- (CW) transmission on one frequency. Jagdish Chandra Bose, and the
ably for years in New York City hotels Spark gap transmitters radiated a very Russian Popov. And none of this
from his royalties and occasional fund- broadband signal on no particular would have happened unless Edouard
ing for research by a stream of rich frequency. CW signals used the reso- Branly invented the coherer — the first
benefactors. In general, Tesla was just nance of tuned circuits and antennas. real detector of radio waves. This
too distracted by his active mind to Marconi’s real contributions are device used metal filings inside a glass
patent or otherwise protect every- more engineering and commercial tube that served as a kind of crummy
thing he invented. And that is more or than theoretical. He took the basic but sensitive diode detector.
less why he never did get credit for ideas and inventions of others and Radio or wireless was strictly a
inventing radio despite the fact he did improved upon them and made them telegraphy medium until the vacuum
patent it in the US the same year that practical business successes. Tesla was tube was invented. The first tube
Marconi got his first British patents. almost the opposite. He created diode was invented by John Fleming
Tesla was very good at getting press original ideas and proved them math- of England in 1904. In 1906,
coverage for his work, but Marconi ematically and physically, patenting American Lee de Forest invented the
came along and captured all the glory some and not others. Some of his best triode vacuum tube that quickly made
and credit before Tesla realized what ideas like the AC induction motor was radio even better because of the
was going on. a commercial success which brought amplification and oscillation it could
Tesla actually invented the idea of him fame but not riches. Marconi, of provide. Reginald Fessenden then
radio in 1892 — not too long after course, was fabulously rich. made the first AM radio broadcast in
Heinrich Hertz demonstrated UHF A patent battle between Tesla 1906. By the 1920s, there were
spark wireless transmissions in and Marconi went on for years. hundreds of radio stations in the USA.
Germany in 1885. In 1898, he Marconi died in 1937. Tesla died in Edwin Armstrong invented FM in
developed a radio-controlled robotic 1943 and six months after his death 1933, but lost the patent battle with
boat which he demonstrated by driv- the US Supreme Court ruled that all RCA, and committed suicide shortly
ing the boat remotely around the of Marconi’s radio patents were thereafter. Then in 1947, Shockley,
waters of Manhattan from a set of invalid and awarded the patents for Bardeen, and Brattain at Bell Labs
controls at Madison Square Garden. radio to Tesla. So, for the past 64 invented the transistor which
But despite this amazing feat, he tried years, we still believe that Marconi Shockley later perfected into the
for years to sell the idea to the Navy invented radio. Few actually know of transistor as we know it today. In
without success. Tesla’s radio inventions. He is — of 1957 and 1958, Jack Kilby (Texas
Once realizing the importance of course — well known, but for his Instruments) and Robert Noyce
radio, Tesla actually built a huge strange experiments with high (Fairchild, later Intel) invented
transmitting tower at Wardenclyffe on voltage, lightning, and the claim he integrated circuits. And the rest, as
Long Island in 1900 to develop world- had invented not only an electrical they say, is history. NV
wide radio transmission services. He “death ray” but a way
ran out of money and could not raise to transmit electrical
the capital to continue. He actually power wirelessly.
went bankrupt, thus ending his formal
radio research and development.
THE
WHAT MARCONI INVENTION
ACTUALLY DID OF RADIO
Like most signifi-
Guglielmo Marconi was born in
Italy but lived in England. He experi- ■ FIGURE 2. Nikola
Tesla in his 60s adjusting
mented with Hertz’s spark apparatus a radio device in his lab
and developed improvements to in New York City.
February 2007 89
DesignCycle.qxd 1/10/2007 12:59 PM Page 90

■ BY PETER BEST
THE DESIGN
ADVANCED TECHNIQUES FOR DESIGN ENGINEERS
CYCLE

USING ETHERNET INSIDE A PIC


THIS MONTH, WE’LL DISCUSS THE VIRTUES OF the new Microchip
PIC18F67J60 and build up an Ethernet system based on the single-chip
Ethernet engine. If you read through the first couple of pages of the 472-page
PIC18F97J60 family datasheet, you’ll notice that the PIC18F97J60 family is
composed of three variants. The PIC18F97J60 is the most feature-rich of the
group hosting 100 pins with 70 of those pins capable of performing general-
purpose I/O functions. The PIC18F97J60’s little brother — the PIC18F87J60 —
comes fitted in an 80-pin TQFP. The smallest member of the PIC18F97J60
family of single-chip Ethernet engines — the PIC18F67J60 — is contained
within a 64-pin TQFP. The PIC18F87J60 offers 55 usable general-purpose I/O
pins while the smaller PIC18F67J60 weighs in with 39 free I/O pins.

D espite their physical size and


pinout, every member of the
PIC18F97J60 family is equipped
buffer memory. Program Flash
capacity ranges from 64KB in
the PIC18F66J60, PIC18F86J60,
PIC18F97J60 part is an extra serial
port and a few more analog-to-digital
converter inputs. If you don’t need
with 3,808 bytes of SRAM and and PIC18F96J60 to a maximum them, you waste them.
8KB of separate Ethernet TX/RX of 128KB of program Flash con- According to what you see in
tained within the PIC18F67J60, Photo 1, we can’t plug any of the
PIC18F87J60, and PIC18F97J60. If PIC18F97J60 family devices into a
64KB is just not enough Flash and socket as every PIC18F97J60 family
128K is way too much program member is packaged in TQFP. Not
memory for your application, you to worry. Design Cycle readers
can opt for the PIC18F66J65, eat TQFP packages for breakfast.
PIC18F86J65, or PIC18F96J65, all So, in this installment of Design
of which house 96KB of program Cycle, we will build up an Ethernet
Flash. node using the PIC18F67J60. I
For program Flash or SRAM chose the PIC18F67J60 because it
requirements outside of the standard can be easily assembled from
PIC18F97J60 family limits, you can scratch with basic soldering tools. If
choose to hang some external Flash you need the expanded, general-
or SRAM from the pins of the purpose I/O capability of the
PIC18F96J60, PIC18F96J65, or larger PIC18F97J60 or PIC18F87J60
PIC18F97J60. The only other real Ethernet engines, you can still use
advantage using the high-end the PIC18F67J60 support circuitry.
You’ll just need to lay down the larg-
■ PHOTO 1. Here’s a bird’s eye view er 80-pin and 100-pin pad farms and
of all of the current PIC18F97J60 be more careful with your soldering.
family members. As you can see, the Unless you have the need for a
PIC18F67J60 is the most compact of the tremendous amount of general-
three. Deploying any of the PIC18FX7J60
devices would make for a very small purpose I/O, the PIC18F67J60 will
Ethernet engine. do just fine in most embedded
90 February 2007
DesignCycle.qxd 1/10/2007 12:59 PM Page 91

THE DESIGN CYCLE

■ FIGURE 1. All of the


Buffer Address registers
keep up with locations
of data within the
PIC18F67J60’s 8K Ethernet
data buffer. The data that
is moved between the
Ethernet data buffer
and the PIC18F67J60’s
microcontroller flows
by way of the EDATA
register.

Ethernet applications.

THE
PIC18F67J60
Designed as a
logical extension of
the ENC28J60 stand-
alone Ethernet engine,
the PIC18F67J60 is a
single-IC combination
of the ENC28J60 and
a PIC18 microcon-
troller. Everything you’ve come to know and love about char rd_sram_ENC28J60 (void)
PIC microcontrollers is part of the PIC18F67J60. Every {
enc_spi_on; //turn SPI interface on
new generation of PIC seems to be faster and the SSP1BUF = RBM; //read buffer memory command
PIC18F67J60 parts are no exception, running with a while(SSP1IF == 0); //wait for command to be sent
maximum clock speed of 41.667 MHz with a +3.3 VDC SSP1IF = 0; //clear the SPI interrupt flag
power supply. SSP1BUF = 0; //send 0x00 for a read operation
The PIC18F97J60 family’s main reason for existence is while(SSP1IF == 0); //wait for read op to compete
SSP1IF = 0; //clear the SPI interrupt flag
to resolve some of the original ENC28J60’s shortcomings. enc_spi_off; //turn off SPI interface
Depending on the speed of the SPI clock, there’s only so return(SSP1BUF); //return byte of buffer data
much Ethernet data one can pump over a SPI interface in }
a given amount of time. The PIC18F67J60 eliminates the
SPI bottleneck by incorporating the ENC28J60 on-chip The rd_sram function uses the SPI interface to read a
with a very speedy PIC18 microcontroller. In the case of byte from the ENC28J60 buffer SRAM that is pointed to by
the PIC18F97J60 family members, the integrated the ERDPTH/ERDPTL read pointer register pair. The same
ENC28J60 engine’s memory area and SRAM buffers are functionality of the ENC28J60 rd_sram function is invoked
directly accessible by the PIC18F67J60’s PIC18 microcon- within the PIC18F67J60 using this simple function:
troller subsystems, thus eliminating the need for an SPI
interconnect between the Ethernet engine and the PIC char rd_sram_67J60(void)
microcontroller. {
The PIC18F67J60 SFRs (Special Function Registers) return EDATA;
are identical to the ENC28J60 registers assigned to }
control the flow of data to and from the PIC18F67J60’s
integrated Ethernet engine. So, if you’ve done some The ERDPT register pair (ERDPTH/ERDPTL) is used to
previous ENC28J60 work, your PIC18F67J60 learning point to the desired byte to be read from the
curve will be very short. If you’ve studied the ENC28J60, PIC18F67J60’s 8K Ethernet SRAM buffer, which happens
Figure 1 is filled with familiar register pair names such as to look just like the ENC28J60’s 8K Ethernet SRAM buffer.
ERDPT and EWRPT. You’ll also note a new register By reading the EDATA register, the value pointed to by the
unique to the PIC18F97J60 family of devices called ERDPT register pair is passed to the application. Writing
EDATA. data bytes to the PIC18F97J60’s 8K of SRAM buffer
The EDATA register replaces the SPI interface on the area is just as easy. The EWRPT pointer pair illuminates
PIC18F67J60. To feel the impact of what the EDATA the target SRAM to be written to and a simple write
register implementation does for you, take some time to to the EDATA register puts the data into the targeted
walk though this function: SRAM location:
February 2007 91
92
DesignCycle.qxd

+3.3VDC +3.3VDC L2
+3.3VDC C11 .1uF U3
C8 +3.3VCC
C9 .1uF 16
.1uF L1 VDD
R1 2.36K R2 49.9 1 C13 RXIN 13 12 RX
TPOUT+ 2 TPOUT/CT .1uF 8 R1IN R1OUT 9
TPOUT- 3 TPOUT+ R2IN R2OUT
R3 49.9 TPIN+ TPOUT- TXOUT
4 10 14
TPIN+ T2IN T1OUT
1/10/2007

C10 .1uF R4 49.9 TPIN- 5 TX 11 7


6 TPIN- T1IN T2OUT
TPIN/CT

EE_CS
TPOUT+
TPOUT-
7 1 5
R5 49.9

February 2007
+3.3VDC 8 LED/Y EL/C C14 C1+ C2- C16
9 LED/Y EL/A
LEDA 10 LED/GO .1uF 3 4 .1uF
U1 C7 LEDB LED/GO C1- C2+

64
63
62
61
60
59
58
56
57
55
54
53
52
51
50
49
.1uF 2 6
0810-1X1T-06 C15 V+ V- C17
1:00 PM

R6 R7 15

RE2
RE3
RE4
RE5
VSS

RD0
RD1
RD2
VDD
180 180 .1uF VSS .1uF

RBIAS

VSSPL
VSSTX

VDDPL
VDDTX
TPOUT-
TPOUT+
SP3232
+3.3VDC
1 48
2 RE1 VDDRX 47 TPIN+ +3.3VDC
RB0 3 RE0 TPIN+ 46 TPIN- C6
RB1 4 RB0 TPIN- 45 .1uF
RB2 RB1 VSSRX
Page 92

5 44 RS-232 CONNECTOR
RB3 6 RB2 RB4 43 R8 C12
MCLR 7 RB3 RB5 42 PGC 100K U2 .1uf 9
8 MCLR RB6 41 9 8
9 RG4 VSS 40 OSC2 EE_CS 1 8 7 8
10 VSS OSC2 39 OSC1 +3.3VDC SDI 2 CS VCC 7 7 6
11 VDDCORE PIC18F67J60 OSC1 38 3 SO HOLD 6 SCK 5 6
12 RF7 VDD 37 PGD 4 WP SCK 5 SDO 5 4
13 RF6 RB7 36 SDO VSS SI RXIN 3 4
14 RF5 RC5 35 SDI C5 3 2 TXOUT
15 RF4 RC4 34 SCK .1uF 25LC256 1 2
16 RF3 RC3 33 1
C1 C2 RF2 RC2 J2/DB9 FEMALE

.1uF 1uF R18 470 D2


RF0

+3.3VDC LED +3.3VDC


ICSP CONNECTOR
R19 470 D3
R11 10K RF1 J3 R22 C26
6 3 RESET .1uf
S1 PGC 5 6 3 2 10K
LED
R10 470 PGD 4 5 2 1

RF1
ENVREG
AVDD
AVSS
RA3
RA2
RA1
RA0
VSS
VDD
RA5
RA4
RC1
RC0
RC6
RC7
RB0 R20 470 4 1
D4
RF2 R23 C18

17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
100
LED .1
R25 1M +3.3VDC MCLR
OSC1 OSC2 R21 470 D5
RF3 R24 1K
Y2 Y1 R13 1K
LED
S2
32KHz 25MHz R12 470
+3.3VDC RB1

C27 C28 C19 C20


C3 C4 20pF 20pF 18pF 18pF
.1uF .1uF +3.3VDC

R15 10K

S3
+6-9VDC +5.0VDC +3.3VDC R14 470
VR1 VR2 RB2
J1 ETHERNET NV
D1 LM2940 LM3940 R9
1 3 1 3 061220
IN OUT IN OUT +3.3VDC
1N5819 332
C21 + C22 C23 + C24 C25 + ALL PASSIVE COMPONENTS 0603

GND
GND
47uF R17 10K
47uF .1uF 47uF .1uF D6
LEDS = 0805
L2 = 1206

2
2
S4
R16 470 L2 = STEWARD MI1210K600R-00
RB3
devices.
own set of peripheral
■ SCHEMATIC 1. This

embellishing with your


rather sure you’ll be
is a boilerplate that I’m
DesignCycle.qxd 1/10/2007 1:00 PM Page 93

THE DESIGN CYCLE

void wr_sram_67J60(char data) need to incorporate an ENC28J60 the maximum clock frequency of
{ if you are working embedded 41.6667 MHz, we must enable the
EDATA = data;
} Ethernet apps with the Microchip 5x PLL, disable the PLL postscaler,
dsPIC line of microcontrollers. So, and configure the PLL prescaler for
even though the PIC18F67J60’s grass 1:3 operation.
If you have previously designed looks greener, there is a reason If you do the simple math (5 * 25
around the ENC28J60 stand-alone Microchip still makes the ENC28J60 MHz / 2) with the prescaler set for 1:2
part, you know that a logic-level available to us. and the postscaler disabled, you’ll see
translation is required if you want to The PIC18F67J60 is actually very that the resultant frequency is well
run some of the PIC microcontrollers easy to bring up in the hardware beyond the PIC18F67J60’s opera-
as a full-speed host connected to the sense. A look at Schematic 1 shows tional capabilities. The minimum clock
ENC28J60. ENC28J60 devices at us that the microcontroller side of frequency that can be sustained with
revision levels below B5 have a SPI the PIC18F67J60 needs nothing the 5x PLL enabled is 13.8889 MHz (5
clocking restriction that requires an more than any other PIC microcon- * (25 MHz / 3) / 3). Disabling the 5x
8 MHz minimum SPI clock speed. troller requires. Each of the PLL and maxing out the postscaler
To meet the 8 MHz SPI clock PIC18F67J60’s power pins is and prescaler values yields a minimum
speed requirement, many of the PIC bypassed with a .1 µF capacitor and clock frequency of 2.7778 MHz. EC
microcontrollers must be run at a a standard PIC microcontroller (External Clock) and ECPLL modes —
voltage level that allows the PIC crystal-controlled system clock circuit which accept the externally generated
system clock to generate a SPI clock is attached to the PIC18F67J60’s incoming raw clock signal through
fast enough to provide reliable data OSC1 and OSC2 pins. The the OSC1 pin — will work in the clock
flow between the ENC28J60 SPI and PIC18F67J60 requires a single 25 frequency domain exactly like the HS
host PIC’s SPI portal. MHz crystal if the Ethernet functions and HSPLL modes.
Many of the current PIC LF of the PIC18F97J60 will be utilized. I The fifth PIC18F67J60 clocking
devices cannot acquire their full decided to go ahead and include the mode is INTRC, or internal oscillator
clock speeds at voltages less than 32 kHz clock circuitry, as well. I’ve mode. One of the five PIC18F67J60
4.5 VDC. With the ENC28J60 being found that having a real-time clock clocking modes — which becomes
a +3.3 VDC part with non-5V-tolerant available to the embedded Ethernet the primary clock — is selected using
digital outputs, the ENC28J60 design- application is always handy. the FOSCX trio of configuration bits.
er is forced into a design tradeoff, There are five PIC18F67J60 All of the PIC18F67J60’s configurable
which runs the PIC microcontroller at oscillator options that are common oscillator components (5x PLL,
+5 VDC and buffers the ENC28J60’s across the PIC18F97J60 family of prescaler, and postscaler) are set up
digital outputs with an external devices. PIC18F67J60 HS (High by bits we code into the
buffer IC. Speed) crystal modes include the use PIC18F67J60’s OSCTUNE register.
All of the ENC28J60’s SPI design of either a standard crystal as we have There’s nothing new in the
tradeoffs have been addressed in the done in our PIC18F67J60 design, or a PIC18F67J60’s MCLR circuitry and
new B5 ENC28J60 silicon. There is no ceramic oscillator. To mix things up the PIC18F67J60’s Microchip ICSP
longer a clocking minimum speed (and we did just that), we can enable programming/debugging interface is
requirement for the ENC28J60. the PIC18F67J60’s PLL (Phase Locked also no different than any other PIC’s.
However, if you choose to use a PIC Loop) circuitry and invoke HSPLL Outside of the PIC18F67J60’s
microcontroller that cannot attain full mode. Ethernet interface, there is only one
speed operation at +3.3 VDC, you will The PIC18F67J60’s PLL sub- other design to-do that we must take
need to buffer the ENC28J60 digital system consists of a 5x PLL that is care of. The PIC18F67J60 contains an
outputs if you run the PIC host at +5 sandwiched between a PLL prescaler internal +2.5 VDC voltage regulator to
VDC. The ultimate workaround to all and a PLL postscaler. Both the provide power to the PIC18F67J60’s
of the ENC28J60 design tradeoffs is prescaler and postscaler can be con- microcontroller core from the
to design your embedded Ethernet figured to divide by two (1:2) or divide PIC18F67J60’s +3.3 VDC VDD supply.
application around the PIC18F97J60 by three (1:3). The postscaler can also The PIC18F67J60’s internal +2.5 VDC
family of devices. be configured out of the circuit (1:1). voltage regulator is controlled by the
There are still plenty of applica- As I mentioned earlier, we must ENVREG pin. To enable the
tions in which the new ENC28J60 supply a 25 MHz clock source to the PIC18F67J60’s internal +2.5 VDC
silicon can provide a best-fit PIC18F67J60 as we are intending to voltage regulator, we must tie the
solution. Everyone in the world use the PIC18F67J60’s Ethernet ENVREG pin to VDD. Otherwise, we
doesn’t use PIC microcontrollers in capabilities. Disabling the 5x PLL and would have to provide a source of
embedded Ethernet applications. the postscaler will automatically power for the PIC18F67J60’s micro-
However, no matter which microcon- disable the prescaler and provide a controller core externally. Since we
troller host you prefer, it can be 25 MHz clock frequency to the will be running our PIC18F67J60 at
attached to an ENC28J60. You’ll also PIC18F67J60’s internals. To obtain +3.3 VDC, I personally prefer tying
February 2007 93
DesignCycle.qxd 1/10/2007 1:01 PM Page 94

are pitched at 0.5 mm. The difference resistor, which for the PIC18F67J60 is
SOURCES in the 64-pin and 80-pin TQFP specified as 2.26K. The value of the
■ Microchip — Microchip TCP/IP packages is just four extra pins per external bias resistor varies from
Stack, PIC18F67J60, MPLAB ICD 2 side. If we were simply laying down a revision level to revision level on the
— www.microchip.com standard PIC microcontroller in the ENC28J60 parts. The bias resistor is
80-pin package and did not hardwire essential to the operation of the PHY
the ENVREG pin logically high and any of the I/O, we could easily place module’s internal analog circuitry
adding a pair of 1 µF and .1 µF filter a 64-pin pad package within the and influences the TPOUT signal
capacitors tied to the PIC18F67J60’s 80-pin pad package and just ignore amplitude. Messing around with the
VCAP pin over the incorporation of the two general-purpose I/O pins at value of the bias resistor may cause
an external +2.5 VDC power supply each flat corner when the smaller the Ethernet transmit waveform to
circuit. package was installed. I’ve seen the violate the IEEE 802.3 specification.
I listen to Design Cycle readers crafty folks at microEngineering Labs So, to keep from getting an IEEE
and I’m always looking at ways to cut do that with some of their universal 802.15.4 ticket, you want to use the
the costs of Design Cycle projects. To PIC development boards. RBIAS resistor value that Microchip
keep the costs of this project down, Unfortunately, in the case of the specifies.
the PIC18F67J60 and associated PIC18F97J60, the Ethernet differential The PIC18F67J60 stands alone
circuitry will be built up on a simple, inputs and outputs ride on two of the in the most part. However, it is not
double-sided printed circuit board corners in the outermost pin positions. totally independent. So, let’s turn our
(PCB). The PIC18F67J60’s 64-pin package attention to the rest of the
When I do these types of Ethernet differential pins shift into the PIC18F67J60’s supporting circuitry.
projects, I try to put myself in the general-purpose I/O pins of the
Design Cycle reader’s shoes and PIC18F87J60 80-pin package. So, I
include enough flexibility in the scrapped the idea of multiplexing
PIC18F67J60 SUPPORT
project to allow the readers to be able PIC18F97J60 family devices on a CIRCUITRY
to adapt the project to their personal single PCB.
needs. My original idea was to include The PIC18F67J60 Ethernet inter- The driving force behind the
pads for both the 64-pin and 80-pin face circuitry is identical to that of PIC18F67J60 supporting circuitry is
variants of the PIC18F67J60 on the the ENC28J60. Our PIC18F67J60 the firmware that will run on the
same PCB. That would allow a Design Ethernet interface design is built PIC18F67J60. Reinventing the wheel
Cycle reader to use either of the parts around the Bel Fuse BM0810-1X1T-06 is not something any of us want to do.
and eliminate the need to produce 10/100Base-TX belMag, which Writing PIC18F67J60 driver code
multiple PCBs for each PIC18F97J60 includes integral indicator LEDs. The from scratch is like chiseling on a rock
family device. LEDs are simply indicators as far as the with one of the GEICO cavemen as a
If you’ve ever played around with PIC18F67J60 is concerned. Recall that complete TCP/IP stack can be had for
64-pin and 80-pin TQFP pad layouts, the ENC28J60 uses the indicator the PIC18F67J60 at no cost from the
you know that you can place the LEDs to determine portions of its Microchip website.
64-pin pad layout neatly inside of the duplex configuration at power-up. The To use the free Microchip stack,
80-pin pad layout. That works only if PIC18F67J60 multiplexes the Ethernet all we have to do is conform to
both the 64-pin and 80-pin TQFP pads indicator LEDs with general-purpose the hardware conventions that are
are pitched identically. All of the I/O pins on PORTA and you specified in the Microchip TCP/IP
PIC18F97J60 family member’s pads can forego the Ethernet indicator stack’s compiler.h file. We can then
functions and use the pull the functions we want from the
PORTA RA0 and RA1 stack or implement the modules of
pins for I/O purposes. the stack that meet the needs of our
One other differ- particular application. We can also
ence is the external bias fashion our own set of drivers
using the Microchip TCP/IP stack’s
■ PHOTO 2. This is a raw functions as prototypes.
prototype I used while An RS-232 serial port is a must-
writing this installment of
the Design Cycle. You can
have. The MAX3232 can be had as
use the ExpressPCB file an STMicro or Sipex part, which
I’ve provided to produce a makes it easy to acquire from many
pretty silkscreened version, sources in this magazine. Five .1 µF
if you wish. I’ve included capacitors plus one of the 3232
total accessibility to the variants are all it takes to put the
PIC18F67J60’s resources
to allow you to pile your PIC18F67J60’s serial port in place. I
own stuff into the design. also included a standard six-pin RJ-12
94 February 2007
DesignCycle.qxd 1/10/2007 1:01 PM Page 95

THE DESIGN CYCLE

jack for the ICSP portal in this an ExpressPCB layout file that you Cycle, we will walk through coding up
design. That allows you to use the can download from the Nuts & Volts a set of basic drivers for the
Microchip MPLAB ICD 2 right out of website. The ExpressPCB layout PIC18F67J60. Using our little
the box. file will allow those of you that home-grown “garage stack,” you will
Many of you have written me ask- wish to build a PIC18F67J60 project be able to do some pretty nifty things
ing about web serving and HTTP in from scratch to do so with with the PIC18F67J60 without having
the terms of the PIC microcontroller. little effort. My version of the to resort to decoding and loading any
You’ll be glad to know that the new PIC18F67J60 project we’ve just portion of the Microchip TCP/IP stack.
Microchip TCP/IP stack has enhanced discussed (I call it Ethernet Nuts & Get ready to put another notch in
its HTTP firmware. To take full advan- Volts or Ethernet NV for short) can your belt as you’re about to add
tage of the TCP/IP stack firmware, be seen in Photo 2. the PIC18F67J60 as part of your
I’ve added a SPI-driven EEPROM in In the next installment of Design Design Cycle. NV
the form of a 25LC256 to the
PIC18F67J60 design. The EEPROM
can be used to hold web pages. If
HTTP is not in your application The Standard for checking Locate shorted or leaky
mix, the EEPROM can be used to Capacitors in-circuit components or conditions
store anything you wish. Good enough to be the to the exact spot in-circuit
Every device on the PIC18F67J60 choice of Panasonic, Still cutting up the pcb,
project board is powered by +3.3 Pioneer, NBC, ABC, Ford, and unsoldering every
VDC. However, since the JVC, NASA and thousands part trying to guess at
of independent service where the short is?
PIC18F67J60’s inputs are five-volt
technicians. $209
tolerant and you may need to use
a +5.0 VDC-powered device, I’ve Inexpensive enough to pay for itself in just Your DVM shows the same shorted reading all
designed in a dual-voltage power sup- one day’s repairs. At $209, it’s affordable. along the pcb trace. LeakSeeker 82B has the
ply to accommodate any +5.0 VDC resolution to find the defective component.
devices you may need to incorporate And with a 60 day trial period, satisfaction Touch pads along the trace, and LeakSeeker
into your PIC18F67J60 application. guaranteed or money-back policy, the only beeps highest in pitch at the defect’s pad. Now
If you decide to employ the thing you can lose is all the time you’re you can locate a shorted part only a quarter of
services of the free Microchip stack, currently spending on trying to repair all an inch away from a good part. Short can be
those dogs you’ve given up on. from 0 to 150 ohms
there are some portions of the
Microchip TCP/IP stack that require CapAnalyzer 88A LeakSeeker 82B
the user to enter a function block by Available at your distributor, or call 561-487-6103
pressing a button attached to PORTB
Electronic Design Specialists www.eds-inc.com
of the PIC18F67J60. In return, the
function block may return a status via
the RS-232 port or an LED. So, to
make sure you can fully utilize these
functions, I’ve added some blinky
lights and pushbuttons to our
PIC18F67J60 design. I recommend
reviewing the Microchip TCP/IP
Stack Version Log to get the
lowdown on what the new version of
the TCP/IP stack will do.

PIC18F67J60
LOGISTICS
To facilitate the proliferation of
the PIC18F67J60 project hardware
you just read about, I’ve supplied

CONTACTING THE AUTHOR


■ Peter Best can be reached via
email at peter@nerdvilla.com.
February 2007 95
ClassifiedsFeb07.qxd 1/11/2007 12:18 PM Page 96

CLASSIFIEDS
COMPONENTS CONNECTORS/WIRE/CABLE
The RF Connection MIL-Spec Coax Available (Teflon, PVC IIA)
R
T C
O
213 N. Frederick Ave., Ste. 11NV New Product: Belden 9913F, 9913 with
H
N

F
E
N
E
C Gaithersburg, MD USA 20877 High Density PE Foam dielectric,
T
I
O http://www.therfc.com/ stranded center cond. and Duobond
N
III Jacket $0.80/ft or $76.00/100ft
Complete Selection of MIL-Spec Coax, Also New: 9092, RG8X with Type II Jacket.
RF Connectors and Relays Intro Price ............$23.00/100ft
UG-21B/U N Male for RG-213/214 .$5.00 Call for Specials of the Month
UG-21D/U N Male for RG-213/214 .$3.25 Full Line of Audio Connectors for Icom,
N Connectors for 9913/Flexi4XL/9096 Kenwood, and Yaesu
UG-21B/9913 .....$6.00 / Pins Only......$1.50 8 Pin Mike Female $2.50
Floating Point Coprocessor FREE 120 Pg CATALOG UG-21D/9913 ..$4.00 / Extra Gasket.$0.75 8 Pin Mike Male Panel $2.50
Amphenol 83-1SP-1050 PL-259 $0.90 13 Pin DIN for Kenwood $2.75
New Electronic components, kits, UG-176/U Reducer RG-59/8X, $0.25 8 Pin DIN for Icom $1.00
or 5/$1.00 8 Pin DIN for Kenwood $1.50
uM-FPU V3
test equipment, tools, and sup- UG-175/U Reducer RG-58/58A, $0.25 Prices Do Not Include Shipping
32-bit IEEE 754, SPI and I2C interface plies for hams, hobbyists, and or 5/$1.00 Orders 800-783-2666
10 to 70 times faster than uM-FPU V2 businesses. Many hard-to-find Silver Teflon PL-259/Gold Pin, $1.00 Info 301-840-5477
new instructions: matrix, FFT, string, items like variable capacitors, or 10/$9.00 FAX 301-869-3680
12-bit A/D, Flash, EEPROM,
callable user-defined functions
vernier dials, coil forms, magnet
2.7V, 3.3V or 5V, with low power mode wire, and toroids. ROBOTICS
18-pin DIP or SMT, RoHS compliant Ocean State Electronics
uM-FPU IDE code compiler, debugger, www.oselectronics.com
user-defined function programmer
Applications: sensors, GPS, robotics,
signal processing, embedded control
See website for full details
www.micromegacorp.com

SECURITY

PLANS/KITS/ www.nutsvolts.com
SCHEMATICS
SATELLITE ARobot Kit from Arrick
Robotics uses the Basic Stamp
FREE Satellite TV Buyer’s Guide II. Quality metal construction.
Home of DishSkinz Easy to assemble and
very expandable.
C-band • Ku-band $235.00
4DTV • MPEG-2 www.robotics.com/arobot
Get it all with just one call!
800-500-9275

www.skyvision.com

BUSINESS SERVICES

96 February 2007
ClassifiedsFeb07.qxd 1/11/2007 12:19 PM Page 97

CLASSIFIED ADVERTISING $50.00 Per Inch — No extra charge for color. must be received by the closing date. Supplied ads must be received by the
Classified ads must be paid in full prior to the closing date or the ad will be artwork due date.
placed in the following issue, at our discretion. Minimum charge is one inch with Call 951-371-8497 or email classad@nutsvolts.com for closing dates,
half-inch increments. No proofs will be sent. Ads to be typeset by Nuts & Volts available sizes, and special prepay discount offers.

DESIGN/ENGINEERING SERVICES AUDIO/VIDEO

HARDWARE
WANTED
DEC EQUIPMENT
WANTED!!!
Digital Equipment Corp.
and compatibles.
Buy - Sell - Trade
CALL KEYWAYS 937-847-2300
or email buyer@keyways.com PUBLICATIONS
CNC Book
MICRO
CONTROLLERS Easy CNC
G-code
MicroStamp11 Bit map draw programs
Bit map image converter
World’s Smallest 68HC11
Microcontroller Module! Bit map to G-code
telemetry
z CAD - machine drawings
microrobotics
z
smart toys
z CAM - DXF to G-code
animatronics
z
model railroading
z
home automation
z
http://www.cncintro.com

PCB SOFTWARE
z tiny (1 by 1.4 in.), light-weight (0.5 oz.)
z
z
on-board 5V reg., crystal, & reset chip
choice of 8K or 32K EEPROM
S QUARE 1
SQUARE
ELECTRONICS
z or 32K RAM + 32K EEPROM (64K version)
z SCI, SPI, Output Compare and Input
Capture channels, timer, pulse accumulator
z all 14 I/O lines and 2 interrupt lines
EXCLUSIVE U.S. DISTRIBUTOR brought out to versatile 20-pin connector (208) 664-4115
zprogram in BASIC, assembler, or C
zeasy code-loading with Docking Module Hayden, ID USA
z Starter Packages:*
 z 8K EEPROM (#MS11SP8K).......$49
SOLAR PRODUCTS
 z 32K EEPROM (#MS11SP32K)...$77
 z 32K EE/32K RAM (MS11SP64K)$90
Stepper Motor
* includes MicroStamp11, manual, PC soft-
ware (assemblers, SBASIC compiler,
MicroLoad utility, and sample programs), Book
Easy Step'n
serial cable, Docking Module, & accessories.

www.technologicalarts.com
Toll-free (USA & Canada):
1-877-963-8996 Table Of Contents
Visa • MasterCard • Discover • Amex

YOUR COMPLETE Ordering Info


On Web Site
SOLUTION! LCDs/DISPLAYS
• PCB Design
Did you know that if you’re http://www.stepperstuff.com

• PCB Simulation a paid subscriber to


• CAD/CAM Menu Nuts & Volts, you can get
121747, Hobby Vers., $175
121743, Pro. Version, $275
the online version for FREE? (208) 664-4115
www.KELVIN.com Go to www.nutsvolts.com Hayden, ID USA
February 2007 97
BookstoreFeb07.qxd 1/11/2007 8:26 PM Page 98

S e l e c t e d T i t l e s f o r t h e E l e c t r o n i c s H o b b y i s t a n d Te c h n i c i a n

The Nuts & Volts Hobbyist BOOKSTORE


Practical Electronics Handbook:
ELECTRONICS Sixth Edition PROJECTS
Practical Electronics for Inventors by Ian Sinclair/John Dunton LEGO MINDSTORMS NXT
Ian Sinclair’s Practical Hacker's Guide
by Paul Scherz Electronics Handbook
This intuitive, applica- by Dave Prochnow
!
NEW
combines a wealth of Here is an awesome
tions-driven guide to useful day-to-day elec-
electronics for hobby- next-generation col-
tronics information, lection of LEGO
ists, engineers, and stu- concise explanations,
dents doesn't overload MINDSTORMS proj-
and practical guidance ects that enables you
readers with technical in this essential
detail. Instead, it tells to build and program
companion to anyone a real working robot
you — and shows you involved in electronics
— what basic and in just 30 minutes!
design and construc-
!
NEW
advanced electronics New technologies
tion.The compact and expanded sensor
parts and components
!
NEW
collection of key data, capabilities make it
do, and how they fundamental principles, and circuit design
work. Chock-full of illustrations, Practical easier than ever to
basics provides an ideal reference for a add a level of sophistication to robotic and
Electronics for Inventors offers over 750 wide range of students, enthusiasts,
hand-drawn images that provide clear, architectural creations.The book explains
technicians, and practitioners of electronics the all-new NXT intelligent brick ... the
detailed instructions that can help turn who have progressed beyond the basics.
theoretical ideas into real-life inventions interactive servo motors with rotation sen-
The sixth edition is updated throughout
and gadgets. $39.95 with new material on microcontrollers and
sors that align speed for precise control ...
the ultrasonic sensor that allows robots to
computer assistance, and a new chapter on “see” by responding to movement ... the
101 Spy Gadgets for digital signal processing $39.95 improved light and touch sensors that let
the Evil Genius robots detect color and feel ... and much
by Brad Graham/Kathy McGowan Troubleshooting more. $24.95
Utilizing inexpensive, Electronic Equipment
easily-obtainable com- by R. S. Khandpur
ponents, you can build From cell phones to 50 Model Rocket Projects
the same information medical instruments for the Evil Genius
gathering, covert to digital and micro- by Gavin D J Harper
sleuthing devices used processor based The fun, hands-on way
by your favorite film equipment, this to learn about rocket
secret agent. Projects hands-on, heavily science. Yes, as a mat-
range from simple to illustrated guide ter of fact, is IS rocket
sophisticated and clearly explains how science! And because
come complete with a to troubleshoot, this book is written for
list of required parts
and tools, numerous illustrations, and step-
maintain, and repair
all types of electrical N E W
! the popular Evil Genius
format, it means you
by-step assembly instructions. $24.95 equipment.The can learn about this
author covers all the essentials such as fascinating and growing
necessary tools, soldering techniques, test- hobby while having fun
Electronic Games for ing, fundamental procedures, and mechani-
the Evil Genius creating 50 great proj-
cal and electrical components. $49.95 ects.You will find a detailed list of materi-
by Thomas Petruzzellis als, sources for parts, schematics, and lots
You can have a wicked of clear, well-illustrated instructions.
amount of fun on your Electronic Circuits —
Fundamentals & Applications: $24.95
way to becoming a
game master! In Third Edition
Electronic Games for the by Mike Tooley
Evil Genius, popular In Electronic Circuits, Mike 25 Home Automation Projects
how-to author Tom Tooley provides all the for the Evil Genius
Petruzzellis gives you essential information by Jerri Ledford
everything you need required to get to grips Computer technology
to build 35 exciting with the fundamentals of has caught up with
games and gadgets.You N E W ! electronics, detailing the home automation, and
get complete, easy-to- underpinning knowledge it’s now easy and inex-
follow plans, with clear diagrams and necessary to appreciate pensive to automate
schematics, so you know exactly what's everything in a house
the operation of a wide
!
involved before you begin. Packed with fun range of electronic NEW — including lighting,
security, appliances,
projects that you'll love to build and play circuits, including ampli-
with, this guide develops game expertise fiers, logic circuits, power supplies, and entertainment, and
one simple step and project at a time. oscillators.The third edition now offers an environmental condi-
!
$24.95 even more extensive range of topics, with tions — and here’s NEW
extended coverage of practical areas such how to do it! This
If you don’t see what you need as circuit construction and fault finding, and well-illustrated resource offers 25 com-
here, check out our online store at new topics including circuit simulation, plete home automation projects that
electronic CAD, and a brand new chapter require only basic household tools and the
www.nutsvolts.com for a complete instructions found within its pages.
devoted to the PIC microcontroller.
listing of the titles available. $34.95 $24.95

98 February 2007
BookstoreFeb07.qxd 1/11/2007 8:28 PM Page 99

CALL 1-800-783-4624 today!


Or Order online @ www.nutsvolts.com
Take This Stuff and Hack It! PC Mods for the Evil Genius
by Dave Prochnow by Jim Aspinwall MICROCONTROLLERS
Transform common If you yearn for the
household items into coolest, most crazed Nuts & Volts of BASIC
really cool stuff.You ‘puter around, PC Mods Stamps — Volume #6
don't need to be an for the Evil Genius is the by Jon Williams
electronics genius to key to the kingdom! Nuts & Volts of BASIC
get started turning This book shows you Stamps — Volume 6
everyday items into how to supercharge includes articles #117-
high-performing won- your PC and create a 128, written for 2005.
ders.With how-to jaw-dropping system Article topics consist
of RFID Readers
chased off any shelf, N E W !
that cannot be pur-
Prochnow's step-by- N E W !
guru Dave
and Ultrasonic
step directions and anywhere! You get Measurement, SX/B
fully illustrated plans, even beginners can complete, easy-to-follow plans, clear dia- and the Professional
hack their way to a high-tech home, cooler grams and schematics, and lists of parts and Development Board,
toys, and less yard work. Certain to fire tools, so you know what's needed before the advanced MIDI
your imagination and start you plotting you begin. $24.95 receiver, programming the SX microcon-
new, original, and even more creative won- troller in BASIC, mastering the MC14489
ders you can make from ordinary house- display driver, and more! The Nuts & Volts
hold items, Take This Stuff and Hack It! is ROBOTICS of BASIC Stamps books are a favorite
Parallax technical pick and are a tremen-
the perfect gift for your inner inventor.
$27.95 Robot Builder's Bonanza dous technical resource for all PBASIC
Third Edition programming projects. $14.95
by Gordon McComb/Myke Predko
Everybody's favorite
NEW 2006 CD-ROMS! amateur robotics PIC Basic Projects
book is bolder and by Dogan Ibrahim
Nuts & Volts CD-ROM better than ever — Covering the PIC
Here’s some good and now features the BASIC and PIC
news for Nuts & field's "grand master" BASIC PRO compil-
Volts readers! Myke Predko as the ers, PIC Basic Projects
Along with all 24 new author! Author provides an easy-to-
issues of Nuts & duo McComb and use toolkit for
Volts from the Predko bring their developing applica-
2004 and 2005 expertise to this fully- tions with PIC
calendar years, illustrated robotics "bible" to enhance the BASIC. Numerous
the 2006 issues already incomparable content on how to simple projects give
are now available, build — and have a universe of fun — with clear and concrete
!
as well.These robots. Projects vary in complexity so examples of how NEW
CDs include all of Volumes 25, 26, and 27, everyone from novices to advanced hobby- PIC BASIC can be
issues 1-12, for a total of 36 issues (12 on ists will find something of interest. Among used to develop electronics applications,
each CD).These CD-ROMs are PC and the many editions, this book features 30 while larger and more advanced projects
Mac compatible.They require Adobe completely new projects! $27.95 describe program operation in detail and give
Acrobat Reader version 6 or above. Adobe useful insights into developing more involved
Acrobat Reader version 7 is included on Linux Robotics microcontroller applications. $29.95
the discs. $24.95 – Buy 2 or more by D. Jay Newman
at $19.95 each If you want your robot
to have more brains Programming the PIC
than microcontrollers Microcontroller with MBASIC
SERVO CD-ROM can deliver — if you by Jack Smith
Are you ready for want a truly intelligent, No microcontroller is !
some good news? high-capability robot — of any use without NEW
Along with the everything you need is software to make it
first 26 issues of right here. Linux perform useful func-
SERVO Magazine, Robotics gives you tions.This compre-
all issues from the step-by-step directions hensive reference
2006 calendar for "Zeppo," a super- focuses on designing
year are now smart, single-board-powered robot that can with Microchip’s mid-
available, as well. be built by any hobbyist.You also get com- range PIC line using
These CDs plete instructions for incorporating Linux MBASIC, a powerful
include all of single boards into your own unique robotic but easy to learn pro-
Volume 1, issues 11-12,Volume 2, issues designs. No programming experience is gramming language. It
1-12,Volume 3, issues 1-12, and Volume 4, required.This book includes access to all illustrates MBASICs abilities through a
issues 1-12, for a total of 23 issues all the downloadable programs you need, plus series of design examples, beginning with
together.These CD-ROMs are PC and Mac complete training in doing original pro- simple PIC-based projects and proceeding
compatible.They require Adobe Acrobat gramming. $34.95 through more advanced designs. $59.95
Reader version 6 or above. Adobe Acrobat
Reader version 7 is included on the discs. WE ACCEPT VISA, MC, AMEX, and DISCOVER Prices do not include shipping and
$24.95 – Buy 2 or more at may be subject to change. Ask about our 10% subscriber discount on selected titles.
$19.95 each

February 2007 99
Page100.qxd 1/11/2007 5:21 PM Page 100

WWW.POWERWERX.COM
POWER CONNECTOR SUPERSTORE
Standardize Your Power Connectors
Best choice for New Hams
Share Emergency Power • Reusable • Easy to Use
Anderson Powerpoles®, Adapters & Accessories

Build your own


or buy assembled

Easy secure
online ordering

Authorized RIGblaster & RIGrunner Dealer

Huge savings • lowest prices


Over 1500 products in stock • Satisfaction guaranteed!

100 February 2007


Page101.qxd 1/11/2007 5:22 PM Page 101

Phone: (719) 520-5323


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

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

February 2007 101


TechForum.qxd 1/12/2007 10:38 AM Page 102

TECH This is a READER-TO-READER Column.


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

All questions and answers should

>>> QUESTIONS
be sent by email to forum@nuts Is there something that can be
volts.com All diagrams should be
computer generated and sent with your attached to the wire that goes from my
submission as an attachment. I am a member of an Old Order earplug to the external speaker of my
QUESTIONS Mennonite Church. We do not use police scanner that will diminish the
To be considered, all questions should relate PCs, TVs, or the Internet, therefore, I high pitch sounds of fire calls? When
to one or more of the following: have three somewhat unusual requests. an ambulance or fire station is alerted it
❶ Circuit Design 1. Is it possible to program micro- is preceded by a series of high pitch,
❷ Electronic Theory controllers without a PC? (A variety of ear-piercing sounds which I want to
❸ Problem Solving sizes, say from eight DIP through 40 eliminate.
❹ Other Similar Topics DIP.) Is any family of microcontrollers #2073 Michael Dellaquila
■ Be brief but include all pertinent informa- better suited for non-PC programming? via email
tion. If no one knows what you're asking, you Are there any books that would help?
won't get any response (and we probably 2. Is there any stand-alone RS-232- I’m looking to buy a YDA135
won't print it either). C Terminals available anymore? I need sound processor chip, but cannot find a
■ Include your Name, Address, Phone Num- one to program my late 80’s Premier supplier to purchase a few.
ber, and email. Only your Name, City, and
2460 phone system. Could one also be #2074 Rocky Misner
State will be published with the question,
used to program microcontrollers? via email
but we may need to contact you.
■ No questions will be accepted that offer Can someone tell me how to build
equipment for sale or equipment wanted to one? I would prefer one that has a I need an alternator circuit that will
buy. small QWERTY keyboard and an allow me to charge an eight-volt lead-
■ Selected questions will be printed one alpha-numerical LCD screen. The acid battery in a WWII army vehicle
time on a space available basis. phone manual mentions a TI Silent 700 using a standard automobile alternator.
■ Questions are subject to editing. programming terminal. #2075 Walter Bringsauf
3. How can I send/receive email Towaco, NJ
ANSWERS using my fax machine?
■ Include in the subject line of your email,
the question number that appears directly
#2071(1-3) Leroy Sensenig
Penn Yan, NY
>>>> ANSWERS
below the question you are responding to. [#9062 - September 2006]
■ Payment of $25.00 will be sent if your I'm looking for a circuit diagram I want to use an accelerometer as
answer is printed. Be sure to include your that will let me know the status of a a motion sensor for a vehicle security
mailing address or we cannot send payment.
fuse in a 12 VDC circuit and 120 VAC system.
■ Only your Name, City, and State, will be
circuit. It must light an LED to show that Can someone advise me on which
printed, unless you say otherwise. If you
the fuse has blown. It would be used to type (capacitive, temperature, etc.) is
want your email address included, indicate
to that effect. monitor automotive fuses and the fuses good for this application?
■ Comments regarding answers printed in for an amateur radio station.
this column may be printed in the Reader #2072 Bradley Flener Analog Devices has an application
Feedback section if space allows. Central City, KY note on using one of their accelerome-
102 February 2007
TechForum.qxd 1/12/2007 10:38 AM Page 103

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


ters in car alarms. If you are interested and NOT directly across the battery as Amazon.com for $49.97: www.ama
in doing this with microcontrollers, shown in the diagram!!! zon.com/Kworld-TV-LCD-Resolution-
then search analog.com for 1280x1024/dp/B000234W2C and
"ADXL202 CAR ALARMS" (no quotes) Tigerdirect.com for the same price:
to find the application note. www.tigerdirect.com/applications/S
Colin O'Flynn earchTools/item-details.asp?EdpNo=
Hamilton, ON 674680&CatId=1427

[#12062 - December 2006] Specifications


I have a 12V 20W-halogen light K3PGP - John Video Input:
that I want to use in my car by plugging via email TV: Coaxial (RF)
it into the cigarette lighter receptacle. Video 1: Composite Video
The alternator produces 13.8V to [#12064 - December 2006] Video 2: S-Video
14.1V. Can I just connect the cord to a How do I interface a VGA monitor VGA: Eight pin DB
cigarette lighter plug or do I need to to use as a color monitor with ordinary Video Output
reduce the voltage to 12V? If I need to video input? Output 1: VGA 15 pin DB
reduce the voltage, could someone Output 2: Composite Video for TV
suggest a circuit that I can fit into the #1 The short answer is: If you want Display
cigarette lighter plug? to do it "on the cheap,"you can't! Audio Input
The "long" answer is: You CAN, Audio 1: External Audio (RCA)
#1 The halogen lamp will work fine but you need a "composite to Audio 2: Line-In From PC sound card
on 14 volts but the life is inversely RGBHV" video converter, and these Audio Output
proportional to the applied voltage, so ARE NOT CHEAP! Stereo Audio Output to Speaker
if you want to extend the life, install a VGA monitors use three separate K3PGP - John
one-ohm, five-watt resistor in series. video drive lines: Red, Green, and via email
Russell Kincaid Blue, along with the separate horizon-
Milford, NH tal and video vertical sync signals. [#12065 - December 2006]
They also use different horizontal/ I need a 16-pin TCA280AI to repair
#2 There is no problem plugging vertical scan rates than standard NTSC an auto body spot welder. It is a general-
this directly into the cigarette lighter, video (15.75 kHz, approx. horizontal purpose trigger circuit. Are there any
especially if you are going to use the scan, 60 Hz vertical scan). Unless you companies that will sell me this chip
light without the engine running. plan on using a MULTISYNC monitor, without having to pay the typical
However, if you intend to use the light you'll risk damaging the monitor and $200 to $500 minimum fee for a $15 to
with the engine running and are even then the best you can get is $20 chip?
concerned about lamp life, you sub-VGA resolution.
can drop the voltage using series- If you're really set on doing it, First try the usual hobbyist sources
connected silicon diodes. Since you here's an idea for a converter: for parts. Some of the common ones
have a 20 watt light, you will need DataPro Composite/S-Video to VGA are Mouser Electronics, Jameco, All
diodes that can carry at least two Converter, $119.00 (www.datapro Electronics, and Global Electronics. If
amps; 20 watts / 12 VDC = 1.67 amps. .net/products/CSV-955B.html). As these fail, some of the commercial
A readily-available part at RadioShack you can see, it's not a cheap method, suppliers, such as Newark Electronics,
would be three-amp diodes; Model but if it's worth it to you, it's something will fill small orders, and the minimum
1N5402; Catalog #276-1143. to consider. order is usually about $25, not
The typical drop across a silicon Ken Simmons hundreds. If all else fails, one despera-
diode is usually specified at 0.7 volts. Auburn,WA tion move I've used is to contact the
However, at this current, you will prob- manuufacturer of the part and ask for
ably find the drop to be a bit more. #2 I have been using a product for a sample. Sometimes, to keep good
There will also be some voltage drop the past year from KWORLD with very public relations, the company will
in the wiring itself. Two or three diodes good success. It has a standard 15 pin send one or two for free (especially if
in series placed between the cigarette VGA connector that connects to the they think it's for a prototype that will
lighter and the lamp will drop the computer monitor. Besides a built-in eventually lead to multiple sales).
voltage to approximately 12 VDC. standard TV tuner, there are inputs for Howard Mark
Remember the diodes must be composite video and S-Video. Suffern, NY
connected with the proper polarity.
No damage will be done if you Manufactured by: KWORLD [#12066 - December 2006]
accidently hook them up backwards. Mfg Part No: VS-TV1531R As I travel the highways, I often
In that case, all that will happen is the UPC No: 872880886919 wonder if the road is going up or down
light won't work. Just make sure they and by how much. One reason is that
are connected in series with the lamp This item is available through I might t ypically shut the air-
February 2007 103
TechForum.qxd 1/12/2007 10:38 AM Page 104

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


conditioning compressor off when going uphill to save ener- device which will read out the ELEVATION TO A THIRD OF
gy, but turn it on when going downhill as the engine is idling AN INCH, you might want to check out the UP24 - High
and the energy to drive the air-conditioner is essentially free. Resolution Air Pressure / Elevation Sensor Kit sold
GPS units are fairly accurate at computing altitude. Are by Ramsey Electronics; www.ramseyelectronics.com/
directional accelerometers or GPS units sufficiently quick cgi-bin/commerce.exe?preadd=action&key=UP24.
and accurate to produce such a signal? I have also seen K3PGP - John
digital levels that must produce an off level signal to send to via email
a readout or display. How might these devices be used?
#2 What you are describing is more along the lines of an
#1 The two most common ways of determing elevation "inclinometer." They are often used in off-roading vehicles,
and changes in elevation are GPS and barometric pressure. so you can find a supply of them at any nearby off-roading
I'm not sure what kind of hills you are dealing with, but store. As well, you can check eBay or similar for low-cost
where I live, there is no problem determining whether the options.
vehicle is going uphill or downhill as the hills are STEEP! So If you wish to do this yourself, there are still other
I have to assume you are concerned about topography options. You can purchase inclinometer sensors directly.
which is not as severe as what I have to deal with. The absolute cheapest will be found at a hardware store. It
For the past year, I've been using a Vetta V100a bicycle is designed to be used to measure the angle of any surface,
computer on my bicycle. It not only displays present and is essentially a stiff piece of plastic with a weight on the
elevation but also indicates grade and whether the elevation end that is free to rotate. It will always point down, so by
is increasing or decreasing. It senses barometric pressure fixing a scale behind it relative to the surface, you know the
to do this. angle. This won't work if you are accelerating or bumping
If you are looking for something with an audible output, around in the car though, as it will throw the readings off.
look around for what is called a Variometer. However, To use one of the many MEMS accelerometer devices
unless you like looking at rotating inductors, I suggest you you have seen around, check out Freescale's application
type paraglider, ultralight, aircraft, or barometric pressure note on the subject, AN3107. As well, see the article on a
along with variometer when using an Internet search engine self-balancing robot, Part 2, which appeared in the
such as Google. December issue of Nuts & Volts. GPS could potentially
If you want the ultimate change of elevation indicating work, but you would need a device that can receive WAAS
signals for an accurate enough fix. Search eBay for "GPS
Mouse"; there are a number of GPS units about the size of
a computer mouse you can get. They are sealed and have a
magnet mount so you can put them on top of your car. Get
one with serial output and you can interface it to a
microcontroller/Stamp device. They all output NMEA data,
if you search the web, you'll find all sorts of example code
for interfacing. Then it's just a matter of seeing if your
altitude is going up or down.
Colin O'Flynn
Hamilton, ON
[#1074 - January 2007]
What is the frequency and mode used by the small
outdoor temperature transmitters? Is the data serial? Is there
a standard format?

I have found many of the weather forums say that


several transmitters are on 433.970 MHz. Yes, the data is
serial. There are some "standard" formats, but many do not
follow them. My $60 weather station certainly does not,
according to the discussions. There is a forum I have found
very useful www.weathermatrix.net/. Several of the
weather stations use chips by Dallas Semiconductor/Maxim
and therefore could be called a sort-of standard. Of course,
if you have a simple thermometer, it might not be using the
same chips as the weather stations. If you do a search for
433 weather, you will see many weather-related items pop
up, but I suspect the frequency is between 433 and 434,
not exactly 433.
Joe Heck
Wrentham, MA
104 February 2007
IndexFeb07.qxd 1/12/2007 10:35 AM Page 105

■ LOOK FOR

1-WIRE
■ SEARCH FOR
Find your favorite advertisers here!
■ FIND

R4Systems, Inc. ...................................87


Scott Edwards Electronics, Inc. ...........77
OPTICS
AD INDEX Abacom Technologies ...............77
Hobby Boards ......................................40 Madell Technology .............................101
Trace Systems, Inc. .............................71 ActiveWire, Inc. .........................64
Matrix Orbital ........................................53
AMATEUR World Educational Services .................52 All Electronics Corp. ..................66

RADIO AND TV
XGameStation ......................................64
PCB MILLING AP Circuits ................................65

PolarisUSA Video, Inc. .........................11


DESIGN/ MACHINES Avcom Tec, LLC ........................52
Blink Manufacturing ...................65
Powerwerx .........................................100 LPKF Laser & Electronics ....................29
Ramsey Electronics, Inc. ................18-19 ENGINEERING/ Circuit Specialists, Inc. .....106-107
REPAIR SERVICES PROGRAMMERS Command Productions ..............33
BATTERIES/ Blink Manufacturing .............................65
ExpressPCB .........................................30
Conitec DataSystems ...........................26
Electronics123 .....................................64
Conitec DataSystems ................26
CHARGERS EZ PCB ................................................52 microEngineering Labs ......................101
CrustCrawler ...........................101
Cunard Associates ...............................64 Front Panel Express LLC .....................56 Cunard Associates ....................64
Powerwerx .........................................100 PCB Cart ............................................100 PUBLICATIONS DesignNotes.com, Inc. .............100
PCB Pool .............................................95 Mouser Electronics ..............................17 Dimension Engineering ..............26
BUSINESS Pulsar, Inc. ...........................................64 Earth Computer Technologies ...64
OPPORTUNITIES R4Systems, Inc. ...................................87
Trace Systems, Inc. .............................71 RF TRANSMITTERS/ Electronic Design Specialists ....95
EZ PCB ................................................52
RECEIVERS Electronic Goldmine ..................27
DISPLAY DEVICES Abacom Technologies ..........................77 Electronics123 ...........................64
BUYING ELECTRONIC Matrix Orbital ........................................53 Linx Technologies ................................50 EMAC, Inc. ................................77
SURPLUS Matco, Inc. ...........................................64 ExpressPCB ..............................30
Earth Computer Technologies .............64 EDUCATION
GreenChip ............................................64 Avcom Tec, LLC ...................................52 ROBOTICS EZ PCB .....................................52
Front Panel Express LLC ...........56
Jaycar Electronics ................................51 Command Productions ........................33 CrustCrawler ......................................101
EMAC, Inc. ...........................................77 Hobby Engineering ..............................32 Future Technology Devices .......57

CCD CAMERAS/
Hobby Engineering ..............................32 HVW Technologies ..............................64 GreenChip..................................64
Schmart Board .....................................64 Jameco ................................................41
VIDEO
Hagstrom Electronics ................65
XGameStation ......................................64 LabJack ................................................77 Halted Specialties Co. ...............83
Circuit Specialists, Inc. ................106-107 Lemos International Co., Inc. ...............33
Matco, Inc. ...........................................64 EMBEDDED TOOLS Lynxmotion, Inc. ...................................12
Hobby Boards ...........................40
PolarisUSA Video, Inc. .........................11 NetBurner................................................7 Net Media ...............................................2 Hobby Engineering ....................32
Ramsey Electronics, Inc. ...............18-19 HVW Technologies ....................64
ENCLOSURES
Pololu Robotics & Electronics ..............12
Robot Power ........................................65 Information Unlimited ................53
CIRCUIT BOARDS Integrated Ideas & Technologies, Inc. ...25
Integrated Ideas & Tech. ...........25
AP Circuits ...........................................65 SATELLITE
Blink Manufacturing .............................65 IP HOME Lemos International Co., Inc. ................33
Jameco.......................................41
Jaycar Electronics ......................51
Cunard Associates ...............................64
AUTOMATION
Dimension Engineering ........................26
MicroAutomata......................................71 SECURITY LabJack......................................77
ExpressPCB .........................................30 Information Unlimited ...........................53 Lemos International Co., Inc. ....33
EZ PCB ................................................52
Maxstream .........................................104
KEYBOARD Linx Technologies ................................50
Matco, Inc. ...........................................64
Link Instruments ..........................5
Linx Technologies .....................50
PCB Cart ............................................100 EMULATORS PolarisUSA Video, Inc. .........................11 LPKF Laser & Electronics .........29
PCB Pool .............................................95 Hagstrom Electronics ...........................65
Pulsar, Inc. ...........................................64 SMT EQUIPMENT Lynxmotion, Inc. ........................12

R4Systems, Inc. ...................................87 KITS & PLANS LPKF Laser & Electronics ....................29 Madell Technology ..................101
Schmart Board .....................................64 DesignNotes.com, Inc. .......................100 Matco, Inc. .................................64
Earth Computer Technologies .............64 TEST EQUIPMENT Matrix Orbital .............................53
COMMMUNICATION Electronic Goldmine .............................27 Circuit Specialists, Inc. ................106-107 Maxstream ..............................104
Avcom Tec, LLC ...................................52 Electronics123 .....................................64 Conitec DataSystems ...........................26 MCM ..........................................50
EMAC, Inc. ...........................................77 DesignNotes.com, Inc. .......................100
MicroAutomata ...........................71
COMPONENTS Future Technology Devices .................57 Dimension Engineering ........................26
microEngineering Labs ............101
Electronic Goldmine .............................27 Hobby Boards ......................................40 Electronic Design Specialists ...............95
Hobby Engineering ..............................32 Jaycar Electronics.................................51 Mouser Electronics ....................17
Front Panel Express LLC .....................56
Future Technology Devices .................57 Information Unlimited ...........................53 LabJack ................................................77 NetBurner ....................................7
Jameco ................................................41 Jaycar Electronics.................................51 Link Instruments .....................................5 Net Media ....................................2
MicroAutomata......................................71 Madell Technology .............................101 Parallax, Inc. ...............Back Cover
Lemos International Co., Inc. ...............33
NetBurner................................................7 Syscomp Design ..................................64
Linx Technologies ................................50 PCB Cart .................................100
QKITS ...................................................64 Trace Systems, Inc. .............................71
Matrix Orbital ........................................53 PCB Pool ...................................95
RABBIT Semiconductor ..........................3
Maxstream .........................................104
Pulsar, Inc. ...........................................64 Ramsey Electronics, Inc. ................18-19 TOOLS PolarisUSA Video, Inc................11
Scott Edwards Electronics, Inc. ...........77 LPKF Laser & Electronics ....................29 Pololu Robotics & Electronics ...12
Super Bright LEDs ...............................10
XGameStation ......................................64 Madell Technology .............................101 Powerwerx ..............................100
COMPUTER
NetBurner................................................7 Pulsar, Inc. ................................64
LASERS QKITS ........................................64
WEATHER
Hardware
ActiveWire, Inc. ....................................64 Information Unlimited ...........................53 R4Systems, Inc. .........................87
Earth Computer Technologies .............64
LSI (micon) MONITORING RABBIT Semiconductor ...............3
Future Technology Devices .................57 Hobby Boards ......................................40 Ramsey Electronics, Inc. .....18-19
Renesas Technology Corp. .................31
Halted Specialties Co. ..........................83 Renesas Technology Corp. .......31
MISC./SURPLUS WIRE, CABLE Robot Power .............................65
Microcontrollers / I/O Boards
Abacom Technologies ..........................77
All Electronics Corp. .............................66 AND CONNECTORS Schmart Board ..........................64
Electronic Goldmine .............................27 DesignNotes.com, Inc. .......................100 Scott Edwards Electronics, Inc. ..77
Avcom Tec, LLC ...................................52
Front Panel Express LLC .....................56 Jameco ................................................41
Conitec DataSystems ...........................26 Super Bright LEDs ....................10
GreenChip ............................................64 Powerwerx .........................................100
EMAC, Inc. ...........................................77 Halted Specialties Co. ..........................83 Syscomp Design .......................64
microEngineering Labs ......................101
Net Media ...............................................2
MCM ....................................................50
WIRELESS Trace Systems, Inc. ..................71
World Educational Services ......52
Parallax, Inc. ..........................Back Cover MOTORS PRODUCTS XGameStation ...........................64
Pololu Robotics & Electronics ..............12 Jameco ................................................41 MicroAutomata......................................71

February 2007 105


Full Page.qxd 1/10/2007 9:54 AM Page 106

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

PowerSupply1 Switching Power Supplies Programmable DC Power Supplies


The CSI 3600 Series
Power Supply Blowout! PowerSupply1 Any Quantity Programmable DC Power
Choose between various 40, 60, 100 & 150 Supplies are equipped with a
40W Series $28.99 back-lit LCD display, number
Watt versions. They have the approval of UL Available in $15.98 keypad and a rotary code switch
and CUL and come 100% full load burn-in 5,12,15,24,48V
tested and are pro- for ease of use & quick program-
60W Series $32.99 ming. Voltage, Current & Power can all be displayed on the LCD or com-
tected with over- Available in
load/over and volt- $17.69 puter screen (with optional RS-232 interface module). It can be operated at
5,12,15,24,48V
age/short circuit. constant current mode, constant voltage mode & constant power mode. It
100W Series also can be set with maximum limits for current & power output. Ideal
Also included is a Available in $38.50
2 year warranty. 3.3,5,7.5,12,15,24,48V $21.18 instruments for scientific research, educational labs or any application
requiring a sophisticated DC-power source.
150W Series
We are Making room for our new ROHs Available in $48.99 Model CSI3644A CSI3645A CSI3646A
compliant versions of these power supplies, 5,7.5,9,12,24,28,36V $26.93
take advantage of these great prices WHILE DC Voltage 0-18V 0-36V 0-72V
SUPPLIES LAST. No backorders. These models will be replaced HOT DC Current 5A 3A 1.5A
by identical models except the new stock will be ROHs compliant SALE! Power (max) 90W 108W 108W
and will be sold at our regular prices. Stock levels are available at our
web site. Only $199.00 Each!
Programmable
Programmable DC Electronic
Electronic Loads
www.Cir cuitSpecialists.com The CSI 3700 series electronic
loads are single input program-
mable DC electronic loads that
Circuit Specialists Soldering Station $34.95! provide a convenient way to test
w/Ceramic Element & Seperate batteries and DC power sup-
Solder Stand plies. It offers constant current mode, constant resistance
•Ceramic heating element for more mode and constant power mode. The backlight LCD,
accurate temp control numerical keypad and rotary knob make it much easier to
•Temp control knob in F(392° to 896°) & use. Up to 10 steps of program can be stored.
C(200° to 489°)
•3-prong grounded power cord/static safe tip In Business Model CSI3710A CSI3711A
•Seperate heavy duty iron stand Input Voltage 0-360V DC 0-360V DC
•Replaceable iron/easy disconnect Input Current 0-30A DC 0-30A DC
•Extra tips etc. shown at web site Item# Rapid Heat Up! Input Power 0-150W 0-300W
CSI-STA
CSI-STATION1A
CSI3710A: $349.00 CSI3711A:
CSI3711A: $499.00
Also Available w/Digital Display SMD Hot Tweezer
& MicroPr
MicroProcessor
ocessor Controller
Controller Adaptor Fits CSI
Stations 1A & 2A,
2A, 6-1/2 Digits Digital Multimeter
and CSI906
Item#
CSI-STA
Since 1971 •Stability, Speed and
CSI-STATION2A $29.00 Accuracy
•High Performance: 2000
$49.95 Item# readings/sec
Details at Web Site CSITWZ-STA
CSITWZ-STATION •Multi-Point Scan
•19 Full-Featured Functions
> Soldering Equipment & Supplies > Soldering Stations •Dual Displays with 3-color
Annunciators
100,000 Count Programmable
Programmable Data Logging DMM •Noise Immunity.
A power house DMM with 100,000 count accuracy and a •Built-in USB and GPIB
built-in data logger that will help you find intermittant prob- (optional) Interfaces
•Easy & Free PC
lems and monitor equipment while you are busy working on applications
other jobs. The D620 can record and store in it's own internal •6 1/2 Digits M3500A
memory up to 37,300 time stamped data values in all func- Specifications Compare Price & Specs with
tions by simply pressing a button. •Optional Accessories the Agilent 34410A !
Special
•True RMS measurements for AC •Designed with 7-1/2 digit techniques to provide user a
•RS-232C interface with personal computer. $169.00! stable, faster and accurate
Item# PROTEK D620
measurement. Item# M3500A
Details at Web Site > Test Equipment > DIGITAL MULTIMETERS •1000VDC / 750VAC
$689.00
Details at Web Site
Dual Output DC Bench Power Supplies > Test Equipment > Digital Multimeters
High stability digital read-out bench power supplies
featuring constant voltage and current outputs. Short- As Low As
circuit and current limiting protection is provided. SMT $93.00!
PC boards and a built-in cooling fan help ensure reli-
able performance and long life. Triple Output Bench Power Supplies
with Large LCD Displays
•Source Effect: 5x10-4=2mV
•Output: 0-30VDC x 2 @ 3 or 5 Amps
•Load Effect: 5x10-4=2mV HOT & 1ea. fixed output @ 5VDC@3A
•Ripple Coefficient:: <250uV ITEM! •Source Effect: 5x10-4=2mV
•Stepped Current: 30mA +/- 1mA •Load Effect: 5x10-4=2mV
*All 3 Models have a 1A/5VDC Fixed Output on the rear panel* •Ripple Coefficient: <250uV
•Stepped Current: 30mA +/- 1mA
CSI3003X-5 0-30v/0-3amp 1-4: $105.95 5+: $99.50
CSI3003X-5: •Input Voltage: 110VAC
CSI5003X5 0-50v/0-3amp 1-4: $114.95
CSI5003X5: $114.95 5+: $109.00 CSI3003X3 0-30VDCx2 @3A $188.00 5+: $183.00
CSI3003X3:
CSI3005X5 0-30v/0-5amp 1-4: $119.00
CSI3005X5: $119.00 5+: $114.00
$114.00 CSI3005XIII 0-30VDCx2 @5A $239.00 5+: $229.00
CSI3005XIII:
Details at Web Site > Test Equipment > Power Supplies Details at Web Site > Test Equipment > Power Supplies

C i r c u i t S p e c i a l i s t s , I n c . 2 2 0 S . C o u n t r y C l u b D r. , M e s a , A Z 8 5 2 1 0
8 0 0 - 5 2 8 - 1 4 1 7 / 4 8 0 - 4 6 4 - 2 4 8 5 / FA X : 4 8 0 - 4 6 4 - 5 8 2 4
CoverInside.qxd 1/10/2007 9:48 AM Page 2

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


ESD Safe CPU Controlled
Controlled SMD Hot Air Rework Station
Station Stepper Motors
The heater and air control system are Part #: Motor Frame Holding Torque: Price:
built-in and adjusted by the simple touch Size:
of the front keypad for precise settings. 42BYGH404 NEMA 17 3.4kg.cm/47oz.in $17.95
Temperature range is from 100°C to 57BYGH207 NEMA 23 8kg.cm/111oz.in $24.95
480°C / 212°F to 896°F, and the entire
57BYGH303 NEMA 23 15kg.cm/208oz.in $29.95
unit will enter a temperature drop state
57BYGH405 NEMA 23 20kg.cm/277oz.in $34.95
after 15 minutes of non-use for safety and
85BYGH350B-03 NEMA 34 48kg.in/665oz.in $79.95
to eliminate excessive wear.
Item# CSI825A++ Sale 85BYGH350C-03 NEMA 34 63kg.cm/874oz.in $119.95
•CPU Controlled $149.00!
•Built-in Vacuum System
•Temperature Range:100°C to 480°C / 212°F to 896°F Stepper Motor Contr ollers 2 Phase Microstepping
Microstepping
•15-Minute Stand-By temperature "sleep" mode Stepper Motor Driver (Bi-polar & Unipolar Motors)
•Power:110/120 VAC, 320 W maximum
Part #: Dimensions: MicroStep: Price:
Details at Web Site > Soldering Equipment & Supplies XCW220 100mm x 61mm 1(200), 1/2(400), 1/4(800), $39.95
x 19mm 1/8(1600)
CW220 99mm x 65mm 1/2(400), 1/8(1600) $49.95
Br eadboard / Power Supply / x 30mm
MultiFunction DMM Bundle CW230 115mm x 72mm
x 32mm
1(200), 1/2(400), 1/4(800),
1/8(1600), 1/16(3200),
$59.95
Provides the user with a quick and efficient 1/32(6400), 1/64(12800)
system for breadboarding electronic circuits. CW250 140mm x 94mm 1(200), 1/2(400), 1/8(1600) $69.95
Comes with three built-in regulated power x 45mm
supplies along with a deluxe, easy-to-use CW860 147mm x 97mm 1(200), 1/2(400), 1/4(800), $119.95
breadboard. Included is a multifunction DMM x 30mm 1/8(1600), 1/16(3200),
1/32(6400), 1/64(12800),
with 100VDC, 750VAC, frequency, resist- 128(25600), 1/5(1000),
ance, diode test, audible continuity, transistor 1/10(2000), 1/25(5000),
check,temperature, and capacitance. 1/50(10000), 1/125(25000),
A Super Deal! 1/250(50000)
Details at Web Site
> Breadboards & Prototyping Boards
Only
Powered
Powered Breadboard
Breadboard w/out DMM: $69.00 $69.99! Protek
Protek 2.0 & 2.9GHz Field Str
Strength
ength Analyzers
Item#: PBB272-DMM: $69.99! •Frequency Range : 100KHz ~ 2900MHz 3290N

Powered Breadboard w/Multifunction DMM (CSIMS8264) (2060MHz for 3201N)


•WFM/NFM/AM/SSB modulated signals
You Get The DMM for an Extra $.99 may be measured.
•Sweep Trigger Mode: Free Run, Single
Digital Storage Oscilloscope Module Run, Continuous Wave, Squelch Run
•Sweep Speed: 500 to 2000msec
Convert any PC with USB interface to a high •PLL tuning system for precise frequency
measurement and tuning New
performance Digital Storage Oscilloscope. This
•Built-in Frequency Counter Rev.
Rev. Now
is a sophisticated PC basedscope adaptor pro-
•RS232 interface Available
viding performance compatible to mid/high
level stand alone products costing much more!
Comes with two probes. Item#’s 3290N & 3201N Special
Details at Web Site $1899.00 (for 3290N)
Details & Software Price > Test Equipment > RF Test Equipment $1374.00 (for 3201N)
Download at Web Site Breakthrough!
> Test Equipment > Oscilloscopes/Outstanding Prices
PC based Digital Storage Oscilloscope, Outdoor Color Speed Dome Camera
200MHz 5GS/s equiv. sampling USB
interface
Item# 200DSO Only$819.00 •1/4” SONY Exview CCD Item# VC-EX861
•768(H) x 494(V) effective pixels
•Horizontal Resolution: 480TV lines $899.00
•Up to 80 preset points
SONY Super HAD CCD Color SONY •Line scanning
Weatherproof
eatherproof IR Cameras Super HAD •Continuous 360° horizontal rotation
•Day & Night Auto Switch CCD™ equipped •Vertical rotation: 0-100°
•Signal System: NTSC camera’s feature dra- •RS485 control interface
•Image Sensor:1/3" SONY Super HAD CCD •Min. Illumination: 0.1Lux (color) / 0.001Lux (B&W)
•Horizontal Resolution: 480TV lines matically improved
•Min. Illumination: 0Lux light sensitivity Details at Web Site Shown with optional wall mount
> Miniature Cameras(Board,Bullet,Mini’s, B/W, Color)
4 8 0n e s Item# VC-827D: $132.00
i
T V oLl u t i o n
Res
SONY Super HAD CCD B/W SONY Super HAD SONY Super HAD CCD Color
Weatherproof
eatherproof IR Camera CCD Color Camera Weatherproof
eatherproof IR Camera
•Day & Night Auto Switch •Weather Proof •Day & Night Auto Switch
•Signal System: EIA •Signal System: NTSC •Signal System: NTSC
•Image Sensor: 1/3" SONY Super HAD CCD •Image Sensor: 1/4" SONY Super HAD CCD •Image Sensor: 1/4" SONY Super
•Horizontal Resolution: 420TV lines •Horizontal Resolution: 420TV lines HAD CCD
•Min. Illumination: 0Lux •Min. Illumination: 1Lux/F1.2 •Horizontal Resolution: 420TV lines
Item# VC-317D: $59.50 Item# VC-805: $53.95 •Min. Illumination: 0Lux

Details at Web Site > Miniature Cameras(Board,Bullet,Mini’s, B/W, Color) Item# VC-819D: $62.50

Visit our website for a complete listing of our offers. We have over 8,000 electronic items on line @ www.CircuitSpecialists.com. PC based data acquisition,
industrial computers, loads of test equipment, optics, I.C’s, transistors, diodes, resistors, potentiometers, motion control products, capacitors,miniature observation
cameras, panel meters, chemicals for electronics, do it yourself printed circuit supplies for PCB fabrication, educational D.I.Y. kits, cooling fans, heat shrink, cable
ties & other wire handleing items, hand tools for electronics, breadboards, trainers, programmers & much much more! Some Deals you won’t believe!
C i r c u i t S p e c i a l i s t s , I n c . 2 2 0 S . C o u n t r y C l u b D r. , M e s a , A Z 8 5 2 1 0
8 0 0 - 5 2 8 - 1 4 1 7 / 4 8 0 - 4 6 4 - 2 4 8 5 / FA X : 4 8 0 - 4 6 4 - 5 8 2 4
$7.00
0 2>

3
CANADA

74470 89295
$5.50
U.S.

0
Vol. 28 No. 2 NUTS & VOLTS INTERFACE YOUR iPod • DIGI-LOG CLOCK • WEATHER STATION February 2007
Page 108
6:50 PM
1/11/2007
Cover.qxd

You might also like