Professional Documents
Culture Documents
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
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
• 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
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
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
www.Link-instruments.com
February 2007 5
ReadFeed Feb07.qxd 1/11/2007 12:24 PM Page 6
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-
12 February 2007
PersonalRobotics.qxd 1/11/2007 9:44 AM Page 13
PERSONAL ROBOTICS
UNDERSTANDING, DESIGNING & CONSTRUCTING ROBOTS & ROBOTIC SYSTEMS
■ BY PHIL DAVIS
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
■ 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.
■ PHOTO 8. Prony
Brake assembled
with scale.
February 2007 15
PersonalRobotics.qxd 1/11/2007 9:46 AM Page 16
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
■ 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
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
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
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
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
■ 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
+
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
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
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
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.
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.
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
PROJECTS ●●●●
■ THIS MONTH’S PROJECTS
Home Automation . . . . . . . . . .34
34 February 2007
Simpson5.qxd 1/10/2007 11:45 AM Page 35
BY MICHAEL SIMPSON
February 2007 35
Simpson5.qxd 1/10/2007 11:46 AM Page 36
36 February 2007
Simpson5.qxd 1/10/2007 11:46 AM Page 37
February 2007 37
Simpson5.qxd 1/10/2007 11:47 AM Page 38
38 February 2007
Simpson5.qxd 1/10/2007 11:47 AM Page 39
February 2007 39
Simpson5.qxd 1/10/2007 11:48 AM Page 40
LINKS
■ Hobby Boards: opment/ZeusPro/ZeusPro.
www.hobby-boards.com htm
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
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).
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).
February 2007 43
Fonte.qxd 1/10/2007 11:53 AM Page 44
44 February 2007
Fonte.qxd 1/10/2007 11:53 AM Page 45
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!
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
48 February 2007
Xu.qxd 1/10/2007 11:58 AM Page 49
February 2007 49
Page50.qxd 1/11/2007 10:12 PM Page 50
• 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
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
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
February 2007 53
Byers.qxd 1/11/2007 5:30 PM Page 54
USB
The iPod supports the more popular
and widespread USB 2.0 Universal Serial
Bus, using the type A connector (Figure
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
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
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 "="
tarry: if pbsw is down then tarry ' loop here until switch release
58 February 2007
Hackett2.qxd 1/10/2007 12:02 PM Page 59
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
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
SHOWCASE
PP:KLWH
ZDWHUFOHDU
/('9
PFG
$%
VHFRQGYRLFHUHFRUGHUSOD\EDFNPRGXOH
SUHDVVHPEOHG$
7KH9HOOHPDQ3HUVRQDO6FRSH
LVDFRPSOHWH06VSRUWDEOH
QGV
7KRXVD
L WH P VRQ
PRUH
E V LWH
RXUZH
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.
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
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
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
68 February 2007
Axelson.qxd 1/10/2007 12:49 PM Page 69
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
70 February 2007
Axelson.qxd 1/10/2007 12:50 PM Page 71
RF 0X>0000000F
RF 0x>F
!00
Nuts & Volts
XX$0000000D
!00
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
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
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
Since 1985
OVER
21
YEARS OF
SINGLE BOARD
SOLUTIONS EQUIPMENT MONITOR AND CONTROL
Phone: (618) 529-4525 Fax: (618) 457-0110 www.emacinc.com
February 2007 77
Mork.qxd 1/11/2007 3:29 PM Page 78
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
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
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.
G E T T I N G S TA R T E D W I T H P I C s
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
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
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
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
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
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
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
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
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
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.
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
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
98 February 2007
BookstoreFeb07.qxd 1/11/2007 8:28 PM Page 99
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
Easy secure
online ordering
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
>>> 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
■ LOOK FOR
1-WIRE
■ SEARCH FOR
Find your favorite advertisers here!
■ FIND
RADIO AND TV
XGameStation ......................................64
PCB MILLING AP Circuits ................................65
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
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
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