Professional Documents
Culture Documents
Nuts and Volts2007 05 PDF
Nuts and Volts2007 05 PDF
.R
i2 .R
O
E.H i2
EL .H
RU
M UL
iU OR
.G AT
W M
W CA
W OS
A Di
.R $7.00
0 5>
W
3
CANADA
W
74470 89295
W
$5.50
U.S.
0
Vol. 28 No. 5 NUTS & VOLTS X-10 DOGGY DISH • HACKING • SONIC REALISM • FLOOD DETECTION ALARM May 2007
Page 108
11:11 PM
4/5/2007
Cover.qxd
CoverInside.qxd 4/4/2007 11:36 AM Page 2
.G
check,temperature, and capacitance. 1/50(10000), 1/125(25000),
A Super Deal! 1/250(50000)
Details at Web Site
W
iU
> Breadboards & Prototyping Boards
Only
Powered
Powered Breadboard
Breadboard w/out DMM: $69.00 $69.99! Protek
Protek 2.0 & 2.9GHz Field Str
Strength
ength Analyzers
.R
RU
Item#: PBB272-DMM: $69.99! •Frequency Range : 100KHz ~ 2900MHz 3290N
New
E.H
performance Digital Storage Oscilloscope. This
•Built-in Frequency Counter Rev.
Rev. Now
is a sophisticated PC basedscope adaptor pro-
•RS232 interface Available
viding performance compatible to mid/high
level stand alone products costing much more!
AM
i
T V oLl u t i o n
Res
SONY Super HAD CCD B/W SONY Super HAD SONY Super HAD CCD Color
.R
Weatherproof
eatherproof IR Camera CCD Color Camera Weatherproof
eatherproof IR Camera
•Day & Night Auto Switch •Weather Proof •Day & Night Auto Switch
O
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 3/8/2007 10:00 PM Page 3
W
W
W
W
W
.G
W
iU
.R
RU
AD
M
iO
EL
SC
E .H
A
i2
M
.R
AT
O
OR
UL
.H
i2
.R
O
M AY 2 0 0 7
COLUMNS
08 TECHKNOWLEDGEY 2007
W
Events, advances, and news
from the electronics world.
W
12 PERSONAL ROBOTICS
Parameters on the fly — Part 3.
W
W
18 STAMP APPLICATIONS
Control virtually anything ...
W
.G
virtually!
W
26 Q&A
iU
18 Russ Kincaid offers his own
solutions to reader questions.
.R
RU
67 IN THE SPOTLIGHT
AD
Configuration wizardry.
EL
Home Automation — Part 4: ON PENETRATION TESTS
Build an X-10 doggy dish. WITH IRA WINKLER 86 NEAR SPACE
SC
E
The Near Space Ventures
■ By Michael Simpson When is hacking legal?
webpage.
.H
When the company being
42 BUILD A FLOOD hacked hires the hacker. 90 GETTING STARTED WITH PICs
A
i2
DETECTION ALARM ■ By David Geer The 8/14/20-pin PIC family.
M
Nuts & Volts (ISSN 1528-9885/CDN Pub Agree#40702530) is published monthly for $24.95 per year 101 TECH FORUM
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
to Nuts & Volts, P.O. Box 15277, North Hollywood, CA 91615 or Station A, P.O. Box 54,Windsor 105 ADVERTISERS INDEX
ON N9A 6J5; cpcreturns@nutsvolts.com
4 May 2007
Full Page.qxd 4/4/2007 2:04 PM Page 5
Link Instruments
PC-Based Test Equipment
W
• Portable and Battery powered
• USB 2.0
W
.G
• Advanced Math
• FFT Spectrum Analyzer
W
iU
• Priced at only $950
.R
RU
Sa/s
500M 1Mpts
AD
M
iO
EL
SC
E
Windows
.H
Screenshot
A
Logic Analyzers
i2
M
.R
AT
O
• 40 to 160 channels
OR
• up to 500 MSa/s
• Variable Threshold
• 8 External Clocks
UL
• 16 Level Triggering
• up to 512K samples/ch
.H
www.Link-instruments.com
May 2007 5
ReadFeed May07.qxd 4/4/2007 3:43 PM Page 6
Published Monthly By
demand quite a variet y of safet y T & L Publications, Inc.
measures built in. Nor was it intended 430 Princeland Ct.
THUMBS UP FOR to be a component tester either. How- Corona, CA 92879-1300
ANEMOMETER ever, the reader has two choices on (951) 371-8497
FAX (951) 371-3052
Just wanted to say I really enjoyed these options: 1) Go to National Semi's
Product Order Line 1-800-783-4624
the article by Michael Simpson on website and download the LM317 data
www.nutsvolts.com
making the anemometer. I don't know sheet. There you will find additional
of any hobbyist who hasn't attempted info on the LM317 as a current source Subscriptions
or at least thought of making a home that you may want to incorporate into Inside US 1-877-525-2539
W
weather system. this design. 2) An outboard constant Outside US 1-818-487-4545
Dan Bacon current source is a very simple circuit P.O. Box 15277
North Hollywood, CA 91615
W
to build requiring one transistor and a
couple of resistors. These options were FOUNDER/ASSOCIATE PUBLISHER
MISSING FEATURES
W
Jack Lemieux
W
deleted from design for several reasons
ON POWER SUPPLY as mentioned in the article: simplicity,
PUBLISHER
W
Robin Lemieux
RU
fundamental problems: ampere of current and the article states display@nutsvolts.com
1. The inabilit y to adjust the the heat dissipation is well within the
AD
CONTRIBUTING EDITORS
maximum current means you cannot devices range, as verified by actual case
M
Chuck Hellebuyck Phil Davis
use the device to conveniently test temperature measurements, and this Jeff Eckert Ray Marston
Peter Best Michael Simpson
iO
diodes (especially LEDs), or to recharge was with all supplies loaded. In fact, I
EL
David Geer Marvin Mallon
Nicad or similar batteries. have actually run any of the outputs at Paul Verhage Gerard Fonte
2. The unit is not designed for a 1.5 amps for short periods of time Vaughn Martin Ed Driscoll
SC
E
typical use at five volts at near full (15-20 mins.) and experienced no Paul Florian Russ Kincaid
.H
Jon Williams John Stabler
current. The unit will overheat at this problems. Does the reader understand
CIRCULATION DIRECTOR
A
load, and the output voltage will that all devices are heat sinked to
i2
cycle as the regulator goes into and the chassis? I hope this answers the Tracy Kerley
M
subscribe@nutsvolts.com
out of thermal overload (as noted by readers questions satisfactorily.
.R
the author). When working on a Robert Reed SHOW COORDINATOR
AT
supply overheating!
I built a dual bench supply in 1966 ENQUIRY Michael Kaudze
sales@nutsvolts.com
(from a 73 Magazine article), which The Test Bench Power Supply
PRODUCTION/GRAPHICS
UL
has both adjustable voltage and article was wonderful, informative, and
Shannon Lemieux
current, and still use it daily. The the photos were of exceptionally high Michele Durant
adjustable current is a feature I simply quality. Many details are included,
.H
could not do without. I’d like to see a but extremely little is said about the ADMINISTRATIVE ASSISTANT
Debbie Stauffacher
follow-up article by this obviously methods to be used in working the
i2
talented author, which adds current aluminum to form the enclosure. In Copyright © 2007 by T & L Publications, Inc.
adjustment (perhaps another LM317) particular, how do you cleanly cut out All Rights Reserved
.R
and better heat control. the rectangular holes for the meters in All advertising is subject to publisher’s approval. We are not
Paddy Johnson the front panel? responsible for mistakes, misprints, or typographical errors.
O
Judy May Nuts & Volts Magazine assumes no responsibility for the
availability or condition of advertised items or for the honesty
Response: Well, let me see. Where do Union, KY of the advertiser. The publisher makes no claims for the legal-
I start? As to item one, current limiting ity of any item advertised in Nuts & Volts. This is the sole
responsibility of the advertiser. Advertisers and their agencies
and constant current were deleted from Response: Well for starters, like most agree to indemnify and protect the publisher from any and all
design for reasons stated in the article. people who lack a machine shop for claims, action, or expense arising from advertising placed in
The supply was not meant to be a metal work, I did it the slow way. For Nuts & Volts. Please send all editorial correspondence, UPS,
overnight mail, and artwork to: 430 Princeland Court, Corona,
battery charging device, as with today's bending the sheet metal, I jury-rigged CA 92879.
6 May 2007 Continued on Page 35
O
.R
i2 .R
O
E .H
EL i2
.H
RU
M UL
iU OR
.G AT
W A M
W SC
W iO
Page 7
AD
9:35 AM
.R
W
1/11/2007
W
W
Full Page.qxd
Tech2007.qxd 3/29/2007 1:23 PM Page 8
TECH
2007
KNOWLEDGEY
EVENTS, ADVANCES, AND NEWS
■ BY JEFF ECKERT
ADVANCED TECHNOLOGY
COATING MAY IMPROVE reflect no light at all. If used in next- on luggage and biomarkers in urine” to
SOLAR CELLS, LEDS generation solar cells, the coating provide an early warning of diseases.
would allow more light and more The device is a compact mass
PHOTO COURTESY OF E. FRED SCHUBERT AND JONG KYU KIM,
RENSSELAER POLYTECHNIC INSTITUTE. wavelengths to pass through the cell spectrometer that is enhanced by a
W
surface, thus improving its efficiency. technique called desorption electro-
The team also expects that the spray ionization (DESI), developed at
W
films can be used to eliminate reflec- Purdue. Whereas conventional mass
tions that reduce light emissions from spectrometers analyze samples that
W
W
LEDs, so upcoming research will focus are loaded into a vacuum chamber,
on solid-state lighting applications. DESI allows an analysis to be
W
RU
recently developed a new instrument For example, the team has used
that they have likened to the infamous the device to analyze clothes, foods,
AD
“tricorder” from Star Trek. My recollec- and tablets, and it can identify
M
tion is that the fictitious device was cocaine on paper money in less than
iO
useful for everything from analyzing one second. It is likely that the device
EL
the chemical makeup of alien brains to will be commercially available soon,
opening cans of intergalactic Vienna as two companies have already been
SC
chemical analysis tool that they say has These are Prosolia, Inc. (www.proso
i2
promise for detecting “everything from lia.com), and Griffin Analytical
M
A team from Rensselaer Polytechnic cancer in the liver to explosive residues Technologies LLC (www.griffinanaly
.R
Institute (www.rpi.edu) recently tical.com).
AT
NETWORKING
ten times as effective as substances DESI technique.
currently used on sunglasses and com-
puter monitors. Composed of silica POSSIBLE JPEG
UL
method for depositing silica layers onto the familiar JPEG format for
computer chips, but it involves growing digital imaging, especially with
.R
tiers of nanoscale rods that lie at the devices that use a memory
same angle, the precise angle being card for storage. However, if
O
TECHKNOWLEDGEY 20 07
said to offer up to double the the older, slower WiFi capabilities. tachometer, anemometer, humidity
compression efficiency of JPEG with For $149, QuickerTek, Inc. (www. psychrometer, and hygro-thermometer,
fewer damaging artifacts, which quickertek.com), will sell you an all using IR technology.
results in higher quality images that upgrade card or — for $199 — will The thermometers incorporated
are only half as large. In addition, install it for you. into the Extech products feature a
the technology offers increased The cards are made to the same temperature range as low as -58°F
image fidelity, preserving the entire specs as the Apple products and fit (-50°C) to a high of 932°F (500°C),
original image content (i.e., “lossless into the AirPort slot. They work with and a built-in laser pointer allows a
compression”) and enabling improved all 802.11/b/g/n WiFi equipment, user to pinpoint the target area. This is
exposure and color adjustments. including AirPort and AirPort Extreme. particularly useful for small targets and
The format does not seem to have They are compatible with all of the hard-to-reach areas.
generated a great deal of software sup- newer 17-, 20-, and 24-inch iMacs, as The cost isn’t exorbitant, either, so
port so far, but Microsoft has announced well as pre-802.11n MacBooks and you might want to consider the EX470
W
the beta release of a set of HD Photo MacBook Pros, but you’ll need to be multimeter, for example, which sells
plug-ins for Adobe® Photoshop®, devel- running OS X 10.4.8 or later. for about $125. If nothing else, you
W
oped with the help of Adobe Systems, can check the temperature of your
Inc. The plug-ins support both the CS3
CIRCUITS AND beer from across the room with it.
W
W
and CS2 versions of Photoshop software
and will be available for Windows® DEVICES FOUR-IN-ONE MODULE
W
M
I f you thought the World Wide Web
iO
E
audio in one module.
delivers categorized search results
.H
(the galleries) in response to a short
A n interesting new chip from
A
The hakia Galleries cover a range the world’s first four-in-one module
.R
of topics, including diseases, company capable of receiving Internet radio,
AT
I
OR
examples of the hakia Galleries (there f you need to, for example, test a integrates a WiFi, DAB, and FM front
are said to be thousands available high-voltage breaker box or make end with an on-board WiFi antenna,
already) include Anna Nicole Smith, physical contact with an active enabling audio manufacturers to build
UL
Pokemon, Tokyo, Red Sox, cancer, electric motor, it can be pretty handy a new generation of versatile radios
chocolate, Vioxx, cello, and George (and a lot safer) if you can first point for the global market.
Washington. And the engine will keep something at the target area and Based on Frontier’s Chorus 2i
.H
getting better, as the coverage of check for hot spots, given that large processor, the device streams radio
hakia Galleries is slated to expand temperature rises may indicate stations and music files in several
i2
continuously throughout 2007 via an problems with motors and circuits. A formats and protocols, including MP3,
automated “distillation” algorithm. noncontact infrared thermometer WMA, and Real Audio. It provides
.R
would do the trick, but who wants to access to over 10,000 Internet radio
802.11N UPGRADES carry around an extra instrument? stations plus a wide selection of
O
AVAILABLE That’s the basic idea behind a podcasts with only a few key presses,
series of test instruments from Extech accessed through a vTuner Internet
INDUSTRY AND
structure and galaxy evolution.
Registration will run you $350,
THE PROFESSION which includes a reception, coffee
breaks, lunches, and a poster session
NRAO CELEBRATES reception. Also offered (separately)
50TH is a tour of the NRAO Green
PHOTO COURTESY OF NRAO. Bank, WV, facility, which houses —
among other things — the Robert C.
Byrd Green Bank Telescope (GBT),
said to be the world’s largest fully
steerable single-aperture antenna
(see photo).
W
GATES WINS AGAIN
I
W
n case you were worried about it,
rest assured that Bill Gates has once
W
I
W
Symposium June 18-21. Its official The sad news is that Gates’
M
title is “Frontiers of Astrophysics: A buddy Steve Ballmer dropped in rank-
iO
E
• Over 40,000 in Charlottesville, VA. The scientific folks from the electronics industry
.H
Products program has not been announced as include Oracle’s Larry Ellison ($21.5
Stocked
of this writing, but a downloadable billion), former Microsoft guy Paul
A
i2
• Access to over
1.5 million poster mentions such subjects as Allen ($18 billion), and Michael Dell
M
electronic parts cosmic microwave background, dark ($15.8 billion). Steve Jobs, with a pal-
.R
and related
products energy and dark matter, extreme try $5.7 billion, didn’t even crack the
AT
• Installer/Dealer gravity, and the origin of cosmic top 100. Oh, well.
O
pricing program
OR
• Quotation team, fragmentation of broadcast radio stan- micron pixel, 1/2.5 format sensor is
send us your
quotes for quick dards, this has been a difficult goal to said to offer improved image quality,
response achieve — until Frontier introduced the lower noise, and top-notch color
UL
call toll free HiFi tuners sometime in July. an architecture that uses pinned pho-
1-800-543-4330 todiodes and a four-transistor shared
i2
W
W
W and other countries. All other trademarks mentioned herein are property of their respective companies. ©2007, Microchip Technology Inc.
W
W
.G
W
iU
.R
RU
AD
M
Looking to bring the benefits of digital power conversion – including higher
iO
EL
power density, lower cost features and accelerated innovation – to your product?
SC
E
Microchip’s dsPIC® Digital Signal Controllers (DSCs) for Switch Mode Power Supplies (SMPS) and digital power
.H
conversion are designed for applications in AC/DC power supplies, power factor correction, DC/DC converters,
A
uninterruptible power supplies, power inverters, digital lighting and advanced battery chargers.
i2
M
High
and low-cost seminars from Microchip. 10-bit, Speed
Flash 2 MSPS PWM Analog
2. Accelerate your development Device Pins (KB) (CH) (CH) Comparators
UL
Apple® iPod® mobile digital media player 16-bit seminars coming to a city near you!
and even your share of $15,000 in cash
.R
www.microchip.com/SMPS
■ BY PHIL DAVIS
PERSONAL ROBOTICS
UNDERSTANDING, DESIGNING & CONSTRUCTING ROBOTS & ROBOTIC SYSTEMS
W
to allow the changing of those go together to build this device. The You may have noticed that the
variables which are typically used to first of these is, of course, the frame console is no longer white. Jerry —
W
tune or control the robot. For example, which is made out of ‘white board’ who cuts the white board on his
.G
if you have a robot that is designed to and cut on a laser printer. As you can laser (see the Resources sidebar
W
stop four inches from a wall, then you see in Photo 1, there is a hole cut if you need something or this
iU
will probably have a distance sensor for the LCD, a small slot just beneath console cut) — decided to spray
and a variable containing 4 and the bot that for the keypad cable, and a paint it silver. The paint had some
.R
RU
will stop when the distance sensor series of holes for your fingers to get a strange reaction with the white board
matches the variable. However, when good grip. — probably an oil layer — and formed
AD
building your robot you find that due In Photo 2, you can see the an odd textured pattern. I liked it, so
M
to inaccuracies in the distance sensor, front of the console with the LCD I kept it.
iO
your robot actually stops six inches installed and the keypad ‘stuck’ onto Looking at the console from the
EL
from the wall. Typically, the only way to the surface. This particular keypad back in Photo 3, you can see how that
fix this is to edit your code, recompile comes with a self-adhesive back; just various components are arranged. The
SC
E
the program, and download in into the peel off the cover and press in place. LCD is secured in place via screws
.H
robot. You might find you have to do It also has a ribbon cable which plugs through the laser cut holes, however,
A
this many times to get it just right. With directly into the LCD and can the rest of the components are held in
i2
the Hand-Held Console we are build- then be read off the I2C from the place with double-sided tape. There is
M
ing, you will be able to do this on-the- processor board — very simple no real stress on these components
.R
fly, without having to change the code. and easy. Also note on the top left and it saves putting holes through the
AT
the on/off switch and the two white board, especially where the
O
momentary switches for controlling keypad is. The LiPol Battery is held in
PHYSICAL LAYOUT
OR
the functions. Sticking up from the place with Velcro®, allowing removal
In the previous articles, I talked back at the top is the rubber duck for charging.
antenna from the A7 Engineering’s Photo 4 is a quick shot of the
UL
PERSONAL ROBOTICS
PROTOCOL CODE
W
Last month, I discussed the need
to be able to transmit non ASCII
W
code back and forth and still be
able to wrap the data in a packet. ■ PHOTO 5. Embedded Blue from Parallax.
W
W
To do this, I wrote a couple of
small routines to encapsulate the
W
RU
places a header, marker bytes, and trailer in the packet. the console. The
Figure 1 shows this simple piece of code. protocol portions
AD
The code to receive the data is slightly more are symmetrical, however, layered on top of the protocol is
M
complicated because we need to wait for the beginning code that makes the bot respond to the console and, of
iO
of a packet — ignoring everything else — check for course, the console respond to the user and to the bot.
EL
marker bytes and then wait for the end of
the packet, storing everything in between. In ■ FIGURE 2. Code to
SC
E
addition, we only want to wait a finite time. wait for a packet, timing
.H
Consequently, we want to pass a parameter out if not received.
A
range, etc.
OPERATION
UL
■ FIGURE 1. Code
to packetize the
data.
May 2007 13
PersonalRobotics.qxd 4/5/2007 7:23 PM Page 14
W
search for the bot. It does this by
having the Bluetooth module look for
W
RU
Having found the bot, the
console requests that the bot
AD
the name of the bot associated with ■ PHOTO 9. Console displaying an ■ PHOTO 11. Console confirming
EL
the address (the Bluetooth modules uploaded int parameter. parameter change.
allow you to change their ‘name’)
SC
E
and the number of parameters ■ PHOTO 10. Console
RESOURCES
.H
uploaded. See Photo 7. ready for input.
■ Matrix Orbital LCD —
A
www.atmel.com/dyn/products/tools
Toggling the first switch switches to displays the final message of the series _card.asp?tool_id=2725
the next parameter and then by confirming the edit. See Photo 11.
i2
toggling the second momentary So, that’s it. Using the console, ■ Rutherford Robotics can laser-cut
the console for you — http://ruther
switch, the console will allow the user you can flip through the various
.R
ford-robotics.com/laser.html
to change the value of the parameter parameters you have set up to allow
currently displayed. Please see Photos modification and change them on-the- ■ Parallax — www.parallax.com
O
9 and 10. fly. This is not designed to remotely ■ Phil Davis — phild2@charter.net
The user now has the ability to control your robot, but rather to make
key a new value using the keypad and, it easier to program and set up. useful tools I have developed for my
when complete, toggles the second personal robots. It has the potential
momentary switch again. This tells the to save lots of time in the future and
console to send the changed parame-
SUMMARY certainly makes it easier to fine-tune
ter to the bot and wait for a response. I think this is one of the more your robots behavior. NV
14 May 2007
O
.R
i2 .R
O
E .H
EL i2
.H
RU
M UL
iU OR
.G AT
W A M
W SC
W iO
Page 15
AD
.R
2:57 PM
W
4/4/2007
W
W
Full Page.qxd
NutNVolt200705.qxd 4/4/2007 3:03 PM Page 16
.G
3. Private pilots to monitor ATIS and other field traffic during preflight Our #1 Mini-Kit for 31 years!
activities (saves Hobbs time!) Alternately flashes two jumbo red
4. Commercial pilots to monitor ATIS and other field traffic as needed at LED’s. Great for signs, name badges,
W
Cricket Sensor
RU
because they contain a local oscillator that could gen- IF Frequencies: None!
erate interfering signals! Receiver Sensitivity: Less than 2 uV for detectable Senses temperature and
audio changes the chirp according-
AD
We have you covered on that one. The ABM1 has no Audio Output: 700mW, 8-24 ohms ly. Can actually determine
local oscillator, it doesn't, can't, and won't generate Headphone Jack: 3.5mm stereo phone temp by chirps! Runs on
M
any RF whatsoever! That's why our patent abstract is External Antenna: Headphone cord coupled 9VDC battery. Speaker included.
titled "Aircraft band radio receiver which does not radi- Power Requirement: 9VDC battery
ate interfering signals". It doesn't get any plainer than ECS1 Cricket Sensor Kit $24.95
Dimensions: 2.25” x 2.8” PC Board
iO
EL
that! Available as a through-hole hobby kit or a factory 2.5” x 4.6” x .9” Case
assembled & tested SMT version. Weight: 4 oz. with battery
Electronic Siren
Produces the upward and down-
SC
E
ABM1 Passive Air Band Monitor Kit $89.95 ward wail of a police siren.
ABM1WT Passive Air Band Monitor, Factory Assembled & Tested $159.95 Produces 5W output, and will drive
.H
any speaker! Runs on 6-12 VDC.
SM3 Electronic Siren Kit $7.95
Digital Tuned High Performance
A
i2
Aircraft Band Receiver Universal Timer
✔ Rock solid dual conversion PLL receiver!
M
Professional features at a hobbyist price! To begin with, we designed it with the Voice Switch
latest technology, utilizing a rock stable synthesized PLL dual conversion receiver. We gave it Voice activated (VOX) provides a
superb image and adjacent channel rejection to allow you to lock onto the signals you want and not to be switched output when it hears a
bothered by those you don’t! SPECIFICATIONS sound. Great for a hands free PTT
UL
functions. Control of modes and setups is obtained IF Frequencies: 10.7 MHz & 450 kHz
through the front panel controls and confirmed on the Receiver Sensitivity: Less than 1 uV across the band Tone Encoder/Decoder
LCD display. On/Off/Volume and Squelch controls are Image Rejection: Greater than -80 dB
Encodes OR decodes any tone 40
also provided on the front panel. We even gave it a Adjacent Ch. Rejection: Greater than -40dB
i2
the perfect field monitor for a hangar or airport man- output to controller
ager’s office, but for the serious enthusiast. Can it get Power Requirement: 12VDC, 500mA
TD1 Encoder/Decoder Kit $9.95
any better than that? It sure can! External Antenna: BNC female, rear panel
O
W
and neighbors from your music and your passion. (I still
use the original engineering prototype with my SG with
P90’s!)
W
.G
Check your own heart! Control those steppers! Full power, any speed! Whether you use an electric, acoustic electric, or bass gui-
tar, the PGA1 gives you an adjustable volume output to
Provides a visible and audible dis- Build an accurate positioner, X-Y Real pulse width modulation your favorite headphones. Unlike a lot of practice amps,
W
play of your heart rhythm! controller, plotter or even a robot! accurately smoothly controls DC
iU
the PGA1 has a special bass boost to enhance bass guitar
Variable gain, bright “beat” LED, Stepper motors are a dime a motors speed while maintaining use. One practice amp for all your guitars! If you want
and monitor output for display on dozen but controlling them is full torque! Controls DC motors to practice to your favorite music, the PGA1 has a stan-
your scope. Just like the lab! Re- another story. We’ve got that from 3-50V up to 10 amps! Runs dard style audio input to play to your favorite music! Just
.R
RU
usable sensors are included. solved with the popular SMD1C. on 9-15VDC. Order our AC125 plug in your Walkman style CD player, MP3 player, or
Runs on a safe 9VDC battery. Drives any stepper 5-15V. power adapter. even the headphone output on your mixer board and
you'll hear both your music source and your guitar in
AD
ECG1C ECG/EKG Kit 44.95 SMD1C Stepper Driver Kit 34.95 MSC1C Motor Control Kit 34.95
your headphones!
M
20W SubMini Audio Amp Solar Vehicle Charger Code Practice Oscillator The PGA1 uses a powerful LM386 power amplifier to
provide one watt of power to your headphones, or even
a small speaker! It gets even better...use the PGA1 as a
iO
EL
cheap and easy direct inserter box to match your guitar
into an aux input of a stereo receiver amplifier or PA
amplifier! It sounds GREAT! A standard ¼" audio input
SC
Delivers a super clean 20W out- Keep that parked car’s battery We took the ever popular code power-on and relative battery condition. The attractive
i2
put from one SMT package! Ultra charged! Great for extended practice oscillator and made a compact case measures 4.5"H x 2.7"W x 1.1"D.
efficient class D design produces parking at airports, and seasonal simple easy to build kit as a “first
M
no heat. PCB can be snapped cars. Plugs into the cigarette kit” for the Scouts and radio Available in a kit form to “learn as you build” or factory
into a small circle for special lighter jack and includes clubs. A built-in key is included
.R
assembled and tested to get playing right out of the box!
applications. Runs on 18VDC for dash/windshield mounts and bat- and features a tone adjustment.
AT
rated output, use our SPS18 PS. tery clamps. Fully assembled. Runs on a standard 9V battery. PGA1 Personal Practice Guitar Amp Kit $64.95
O
UAM2 20W SMT Amp Kit 34.95 SOL5N Solar Charger 26.95 CPO3 Code Practice Kit 14.95 PGA1WT PGA1 Factory Asmb & Tested $99.95
OR
Did You Know... ✔ It’s impossible to give you full specs on these products MORE than just friendly on-line ordering!
UL
in a 1” space!
✔ A lot of our kits are also available “factory assembled Clearance Specials, Ramsey Museum, User Forums, Dealer Information, FAQ’s, FCC
and tested”, if you don’t want to build them! Info, Kit Building Guides, Downloads, Live Weather, Live Webcams, and much more!
✔ We have over 350 products currently available, and
all those don’t fit here!
.H
Visit www.ramseykits.com
Free Giveaways and ALL the
800-446-2295
.R
■ BY JON WILLIAMS
STAMP APPLICATIONS
PUTTING THE SPOTLIGHT ON BASIC STAMP PROJECTS, HINTS & TIPS
could be made “virtual,” that is, created in code. And when SX/B was developed,
W
the core philosophy was to create a compiler with such clean output that it could
W
.G
be used as a self-teaching guide for those wanting to learn assembly language.
It may have taken me a while to catch on to the assembly stuff, but I think
W
iU
these promises have been met, and this month’s project brings them together
.R
RU
into a neat little device that just might save an old PC from the junk pile.
AD
I think that most regular readers bawdy, adult humor; the kind of stuff what I did. In the process, my goal is
M
know I’m an actor (see www.jon that South Park is made of — and to show you how to combine virtual
iO
mcphalen.com) which means I have a made famous for. peripherals (VPs) when you have a
EL
built-in interest in the movie business. And no, my reaction was not, project than needs more than one
And as much as I enjoy my work in “Hey, I want to do raunchy comedy!” It and, especially, when those VPs must
SC
E
front of the camera, I also love was, “Hey, I want to build a [small] run at different rates.
.H
working with the myriad technical animatronics control system.” If you’ve
A
magicians behind the scenes. Because seen Team America, you know that all
THE SPECS, PLEASE ...
i2
of this, a DVD purchase for me is of the characters are puppets —
M
usually based more on the “extras” marionettes, in fact. What you may not As always, it’s best to know where
.R
material than the movie itself. When I know is that inside each of the puppet’s we’re going before we start on the
AT
was young, my parents had hoped heads were nine mini servos to control journey. The goal for this project was
O
that learning the secrets of Hollywood the facial movement. Imagine that: The to have a PC-driven controller board
OR
movie-making would dissuade me puppet heads were a bit smaller than that could manage eight digital
from my desire to act when, in fact, it the size of a softball and yet they outputs and eight standard servos.
had quite the opposite effect. A tour held nine servos! Servo control was The digital outputs would be buffered
UL
of Paramount Studios when I was a done through a piece of specialized by a ULN2803 so that they can drive
teenager sealed the deal for me and software, originated by Gilderfluke (the lamps, relays, and other moderate-
I’ve known all my life that some how, provider of the servo controllers) and current devices. The servos will be the
.H
some way, I would be involved with heavily modified by the production standard hobby type and will be
movies and television. crew for that enabled real-time control refreshed every 20 milliseconds.
i2
The truth is that unless a movie is when required. In my opinion, the Based on these specifications, the
just horrible, I can completely lose Team America puppets and their hardware design is really simple, and
.R
myself in it and shut off that portion of control demonstrate the tremendous that’s a good thing. This board
my brain that knows how it was done. skills of the craftspeople and engineers becomes somewhat generic and a
O
This goes for all movies — even those at The Chiodo Brothers CBFX unit. change of code gives it a change of
without people. One of those movies So, I have had for some time now personality — always a useful trait in a
that caused me to have a, “I want to the desire to build a small animatron- microcontroller circuit. As you can see
do that ...” reaction was Team ics control board that I could run from in Figures 1 and 2, we have a power
America. Now, this kind of movie is a PC — and I have finally got past a supply, an SX28, a simple RS-232
not for everybody; Matt Stone and learning curve with the SX and done interface, and the ULN — nothing to it.
Trey Parker are well known for their it. This month, I’m going to show you And due to the small parts count, the
18 May 2007
Stamp.qxd 3/29/2007 2:21 PM Page 19
S TA M P A P P L I C AT I O N S
W
Having spent some time
with other control protocols
W
iU
create a protocol for this project
that uses a break in the control transmission as the that will work and we know that our serial data is going to
.R
RU
synchronizing point. The idea is dirt simple: synchronization be solid as we’re actually sampling the receive line twice as
of the packet is achieved by leaving the receive line into the frequently as we need to.
AD
controller idle for at least two byte periods. After that, we In review, we’re going to set the ISR rate to 3.255
M
will expect a nine byte packet; the first byte contains the microseconds and have the serial routines divide that by
iO
state of the digital outputs and the eight bytes that follow eight for proper bit timing, and the servo routine will divide
EL
are the position values for the servos. Figure 3 illustrates the ISR by three to derive its base timing of approximately
the control packet. 10 microseconds. The ISR does a couple other things, too;
SC
E
That all sounds pretty easy, right? It is, mostly, but things here is the list, in order of appearance:
.H
get a little tricky when we start to look deeper into the
A
timing details. The packet structure and code on both ends • Process the delay timer (if running).
i2
is kept clean by using byte values for the servos, suggesting • Update the packet sync timer.
M
the packet while maintaining the servo positions we’d • Refresh the servos.
O
like to have an ISR rate that is 10 microseconds or a nice
OR
fraction thereof. Since most of the work for this project is done in the
And there’s the rub ... You see, we really need to put ISR, that’s were we’ll focus our discussion. Here we go ...
detail into the bit timing of the virtual UARTs so that we
UL
bit period so that means we need to set the ISR period to DEC tix
ENDIF
6.51 microseconds.
.R
servo control, and doesn’t divide evenly into it. What do we IF syncTimer > SyncCount THEN
armed = Yes
do? Well, if we divide the bit period by eight, we get 3.255 syncTimer = 0
microseconds, and that multiplied by three is 9.766 microsec- ENDIF
onds, which is very close to the 10 we’re looking for — we
can live with that. This means, then, that to get the servo The interrupt is declared with a rate of 307,200 times
centered (at 1,500 microseconds) we will use a position value per second; this gives us a period of 3.255 microseconds.
of 154 which actually gives us 1504 microseconds; I’d say And as the SX/B code used in the interrupt doesn’t use any
May 2007 19
Stamp.qxd 3/29/2007 2:22 PM Page 20
of the compiler’s __PARAMx variables, we can use the sampled and the bit timer reloaded with one bit
NOPRESERVE keyword so that those variables — which period. After all bits have been received, the rxReady flag bit
aren’t changed during the ISR — are not saved and restored; is set and the armed flag and packet sync timer are reset.
this just wastes time if we don’t need it to happen.
Receive:
The first VP encountered decrements the delay timer if
ASM
it’s running. Remember, PAUSE will not work properly with JB rxReady, RX_Done
the ISR so we’ll have to use a custom subroutine to handle BANK serial
that — we’ve done that in the last couple projects so I’m MOVB C, RX
sure it’s old hat by now. TEST rxCount
JNZ RX_Bit
Next up is the sync timer. It will be incremented each MOV W, #9
time through the ISR and if it goes past the required idle SC
time bit count (20), a flag will be set that will allow the MOV rxCount, W
foreground process to receive serial data. What you’ll see MOV rxDivide, #Baud1x5
W
up ahead is that this flag and its control timer get cleared at RX_Bit:
the end of a received byte; this forces the program to ignore DJNZ rxDivide, RX_Done
W
serial data for two byte periods after the last packet byte has MOV rxDivide, #Baud1x0
been received. DEC rxCount
W
SZ
W
And now for the receive UART. We’ve actually used RR rxByte
this code a couple times before (see the serial seven- JNZ RX_Done
W
BANK 0
RU
starts in the middle of the first bit) expires, the line is ENDASM
AD
E
be honest, I didn’t create this
.H
code; I “liberated” it from Al
A
■ FIGURE 2. book.
Outputs schematic.
S TA M P A P P L I C AT I O N S
W
that the receive code — the reason is that it’s not waiting on open the SX book and look up instructions so that I could
anything, it’s just doing something. To transmit a byte, we’ll really understand what’s going on. There will come a time
W
load the byte to send into txHi (the output buffer) and set when we have really critical timing requirements and
.G
the bit count, txCount, to 10; we have one start bit, eight using assembly is going to be the way to get there.
W
data bits, and one stop bit. Of course, we don’t want The reason SX/B provides such a clean output is so that
iU
to try to send a byte when we’re in the middle of another, folks like us can learn from it, and for me that promise is
so we’ll check to make sure txCount is zero before sending holding true.
.R
RU
a new byte.
After enabling the transmitter, a start bit is placed on Okay, back to the servo stuff ...
AD
the line and then the bits are sent out, at the specified
M
baud rate, LSB to MSB. You can see the RR (rotate Here’s how the servo processing works. At the
iO
right) instructions in the code that shift the bits of the expiration of a 20 millisecond timer, the first servo,
EL
transmitted byte out one at a time. Note that the STC (set svoFrame, is started and the pulse timer, svoTimer, is
carry) instruction precedes the buffer rotation; what this loaded with the servo value. On subsequent passes
SC
E
does is pad the end of the shifted data byte with 1s so that through the code, the servo pulse timer is decremented.
.H
we have a valid stop bit. If, for example, we wanted to have When that timer expires, the next servo is started and the
A
two stop bits, the only change we’d need to make is to set servo timer value is reset to the appropriate value. After
i2
txCount to 11. the eighth servo is finished, nothing happens until the 20
M
What may not be apparent is that the program can millisecond frame timer expires and the process starts
.R
receive and transmit bytes at the same time because our again. Figure 4 shows what the servo outputs look like in
AT
circuit uses separate RX and TX pins. Yes, you can use the action and in relationship to the frame timer. As you can
O
same pin, but you’ll have to add a bit of check logic in see, only one output is on at a time — this means we only
OR
the TX_BYTE subroutine to make sure that we’re not in need one active servo timer, so this significantly simplifies
the middle of receiving a byte when we want to transmit the program.
one — other than the RX/TX pin definition(s), the ISR code Okay, here’s the bit that handles the frame timer; in this
UL
remains the same. code, you can see that when it expires the first servo port
Okay, now for the really fun bit: the code that handles is enabled and the servo timer is loaded with the Servo 1
the servo control. First things first: We have to divide the ISR timing value.
.H
period by three to get the base servo timing. It’s easier than
you think: Check_Frame_Timer:
i2
Two things of note: 1) We use a value of 2048 for the port (RB, in this case). It is necessary to clear the carry bit
frame as our effective rate is 9.765 microseconds, and 2) before the RL instruction so that previous servo ports get
By devoting the eight contiguous bits for the servos, the turned off.
control and updating of outputs is made very simple. Here’s Whew ... we have just done a whole lot of work in
how it works: the ISR. The payoff? Look how simple the foreground
program is:
Check_Servo_Timer:
TEST svoPin
SNZ Start:
JMP ISR_Exit Outs = %00000000
DEC svoTimer FOR idx = 0 TO 7
SZ pos(idx) = 154
JMP ISR_Exit NEXT
TX = 1
W
Reload_Servo_Timer:
INC svoIdx DELAY_MS 2
CLRB svoidx.3
W
MOV W, #pos Main:
ADD W, svoIdx IF armed = No THEN Main
W
Outs = RX_BYTE
W
MOV FSR, W
MOV svoTimer, IND
FOR idx = 0 TO 7
W
.G
Select_Next_Servo: IF armed = Yes THEN EXIT
CLC pos(idx) = RX_BYTE
W
NEXT
iU
RL svoPin
RU
MOV ServoCtrl, svoPin
At Start, we clear the outputs and center the servos,
AD
ISR_Exit:
set the TX pin and let it idle so that the receiver doesn’t get
M
BANK 0
ENDASM any junk, and then wait for bytes to come in. Again, we
iO
E
so we look at the active servo pin control value, svoPin. If received in a loop with a recheck of the armed
.H
no servos are running, then it will be zero and the routine flag between each; what this does is allow the program
A
will exit. Otherwise, we can decrement the timer for the to escape from that loop if the packet transmission gets
i2
servo that is presently running. interrupted.
M
activated when we write that value to the physical control the schematic and created the board with its companion,
ExpressPCB. Please, please, please ... don’t think you
■ FIGURE 4. Servo pulse outputs. can do boards manually anymore. ExpressSCH will let
UL
22 May 2007
Stamp.qxd 3/29/2007 2:24 PM Page 23
S TA M P A P P L I C AT I O N S
you check for gross errors and between the top pads.
ExpressPCB will link to your
schematic to show you what
connects to what. This is a huge
TESTING THE
timesaver and way to prevent ANIMATRONICS
headaches. A friend of my recently CONTROLLER
skipped the link step and created a
board manually — and then ended up To test the unit, I wrote
sorry for it as he had problems with a simple Visual Basic program,
that board. as shown in
■ FIGURE 6.
One of the latest features of the source code Animatronics
ExpressPCB is the ability to add included in the controller.
a flooded plane to the top or
W
bottom layer of the board. I decided
to use this for ground instead of
W
running traces. When you make
your own boards, it’s usually best
W
W
to lay out the components and
other traces first, then add in Easy Ordering In Nanoseconds
W
RU
Thermal Pad to Filled Plane. For
vias that are not soldered, you
AD
E
where you explicitly tell it not to be
.H
(I removed a couple stranded
A
the pin did not seem damaged. The • NEWEST Products & Technologies
lesson here is to use a clean iron
i2
May 2007 23
Stamp.qxd 3/29/2007 2:26 PM Page 24
1K 299-1K-RC
W
◗ R2, Rf 10K 299-10K-RC
next big question is the
◗ R3-R6 4.7K 299-4.7K-RC PC development lan-
W
RU
◗ U1 SX28AC/DP Parallax; SX28AC/DP run different operating
◗ U2 ULN2803 595-ULN2803AN systems (Mac, Linux,
AD
E
download file on the Nuts & Volts have with VB. Java seems to be the
.H
website (www.nutsvolts.com). It’s leading contender, but if you have
A
very simple: Once a serial port has another suggestion, I’m open to it.
i2
been selected and opened, a timer is Okay, that’s about it. Be sure to
M
started that sends the packet every 20 study the full listing and don’t be
.R
milliseconds. Sending it more concerned if it doesn’t make sense
AT
frequently makes no sense because right away. When it does, a big smile
O
the servo framing timer is 20 millisec- will cross your face and you’ll be off to
OR
onds. It won’t hurt, of course, and you other things. Not too long ago, I helped
can cause the control outputs to a customer in the Parallax SX forum to
change at the packet transmission rate mix VPs for “background” serial I/O
UL
— so long as the transmission rate is and Sony SIRCS decoding, and at the
just over 11 byte periods long. moment I’m working on a serial-
I think that 20 milliseconds is controlled lamp dimmer. Once you’re
.H
probably a useful value for packet used to mixing VPs, you’ll find that
transmission timing considering the you can control virtually anything —
i2
mechanical elements that are to be virtually! Well, until next time, Happy
controlled with the board (servos take Stamping! NV
.R
AD
.R
3:19 PM
W
4/4/2007
W
W
Full Page.qxd
Q&A.qxd 4/5/2007 8:48 PM Page 26
W
there are certainly readers that can set me straight.
Feedback is welcome. — Russ Kincaid
W
iU
A Short Biography of Russell Kincaid:
I became interested in radio while in high school. I saw an ad in Popular Science for a battery-less, tube-
.R
RU
less radio and bought a crystal radio kit. A neighbor, who was a college student, helped me build a short
AD
wave radio and I was hooked. I got a book from the library and built some radios of my own. I talked my
M
parents into sending me to the Commercial Radio Institute, in Baltimore, Maryland, but was drafted and
spent a year teaching basic electronics at the Infantry School, Fort Benning, Georgia. I took advantage of
iO
EL
the GI Bill and went to Rensselaer Polytechnic Institute in Troy, New York, getting an MEE degree. I worked
for 22+ years as an analog design engineer at Sanders Associates and subsequent assigns, and seven
SC
E
years as Manager of hybrid electronics for Sprague Electric. I told myself that I would never retire, but
.H
the demand for analog engineers is greatly diminished, and I found myself out of work at 59 years old, so
A
I retired. I have been retired for 18 years and will never get to the bottom of my to-do list.
i2
M
.R
to be able to generate a current sweep setup that sells or will build a
AT
Marianna, FL
I am using a coil to The resistance that is limiting
A
I designed a three-pole
UL
and in turn, control the 15/8 = 1.9 ohms. The coil is bandstop filter to see what
torque in a clutch. The 1.3 ohms which leaves 0.6 it looked like: check out
current control uses an H-bridge to ohms in the H-bridge, which is perfectly Figure 1. The design is for
.H
apply a PWM dut y cycle. My coil reasonable. You need a better H-bridge perfect inductors; the real thing
resistance = 1.3 ohms, the inductance or more supply voltage. won’t be as good. Note the 1.36 pF
i2
Q
O
8A to flow. I wonder if there’s some Channel 7. One of the area the wires to trim the value. You
power consumption in the PWM DTV signals is on 9, and I will need a sweep generator to
switching semi-conductors? have a severe intermod tune the filter. This equation can
Where can I measure the power problem when I amplify it enough to be used to wind the inductors:
consumption in the PWM circuitry? be useful. L = N 2 (RADIUS/2(9*RADIUS +
It seems to me the junction resistance I haven’t been able to find a 10*LENGTH)). Dimensions are in
is just 1.3 ohms and I am supposed manufacturer — or individual — with a inches, inductance is in micro-
26 May 2007
Q&A.qxd 4/5/2007 8:16 PM Page 27
QU E ST I O N S & A N S W E R S
FISH TANK
TACHOMETER
W
Could you please suggest
W
a pipe? I envision a paddle wheel
with possibly two small magnets
W
outside the housing to sense the file/0643.pdf. It has the magnet on the outside and connect it to a
iU
impulses as it rotates. I am capable of built in so your measuring vanes only frequency-to-voltage converter. The
making up the mechanics of the unit need to be made of ferrous material. maximum spacing between vane
.R
RU
but not capable of designing the The enclosure should be brass, and IC is 0.1 inch, as shown in Figure
electronics. aluminum, or non-magnetic stainless 2. You can use a digital voltmeter to
AD
I have three filters on a fish pond steel. Mount the Hall effect switch read the voltage and calibrate it to the
M
in parallel with a common outlet.
iO
E
into the stream so as to not slow the
.H
output and be sealed in each unit.
A
■ FIGURE 2
.R
O
May 2007 27
Q&A.qxd 4/5/2007 8:17 PM Page 28
has six solenoids wound with five Thank you very much for any help
wraps of 12 gauge stranded copper you can give.
wire on 5/8 x 8 inch mild steel bolts — Frank Lemon
that end in one inch square angle iron
shoes fitting inside the flywheel I assume the shop vacuum
■ FIGURE 4
W
design, but the equations to change bolt through the flywheel center
the maximum RPM are: connecting to the re-magnetizer I’m looking for assistance
Q
W
R1 = 6.26*Voutmax in Kohms. of the factory machine hinted at quizzer for our church
iU
something like this. youth. I’ve made several quiz boxes
The Hall effect IC has a current — Melvin Schallot over the years using SCRs as the
.R
RU
output, 6 mA minimum and 16 mA trigger and latch device per the
maximum. It switches between Any air gap will greatly re- schematic I found in the Feb. 1977
AD
input so that 6 mA times 51 ohms connect the coils in series show which contestant came in first,
EL
will be less than the diode drop for a because you don’t know how the second, third, and fourth in a match
low input; 16 mA times 51 ohms is current divides when in parallel. You with four teams of five contestants
SC
E
more than the diode drop for a high will need 88 volts to drive 27 amps per team (20 total contestants). I’d
.H
input. You could connect the through the six series coils. If you also like to select between individual
A
voltmeter to the LM2917 output, but charge up a 1,000 µF, 100 volt, can mode (where each contestant
i2
I wanted to add the three tach type, high ripple electrolytic capacitor competes against all others) and team
M
signals and the summer inverts the and discharge it through the coils, that mode (where the fastest contestant
.R
signal, so I needed an inverter in should work; although bigger is better. on a team locks out the rest of
AT
front of the summer. The inverter If all the coils are wound identically, his team).
O
also converts the 0-to-6 volt signal then you mount them around the Each contestant will hold
OR
from the LM2917 to a 6-to-0 volts circle; the magnetic fields will cancel a normally open push button to
signal into the summer. unless you reverse every other one. depress when they think they can
That may be the real problem. You only answer the question. This sounds a
UL
Q
i2
Vespa P series flywheels SAWDUST VACUUM light or blink rate identifies if they
that produces a strong I use a table saw with a were the first, second, third, or fourth),
Q
.R
field at all six solenoid core shop vacuum attached. and starts a digital timer. The circuit
ends, or shoes, as I call them. But, It would be more convenient should not have any ties (response
O
the rig doesn’t work on the flywheels. if the vacuum would rate of 0.1 millisecond or faster).
I copied loosely a picture of a come on automatically whenever I It also needs immunity to static
factory machine. The Vespa flywheels start the table saw. I think a electricity since it will used be in a
are about six inches ID. Six 2 x 1.5 current/voltage sensing system carpeted room during the winter
inch magnet faces of alternate may have already been published. with lots of spectators walking around.
polarit y are exposed within the However, would you please recom- I can accept a hardware or software
inside diameter. The re-magnetizer mend such a system? solution. I have some experience
28 May 2007
Q&A.qxd 4/5/2007 8:17 PM Page 29
QU E ST I O N S & A N S W E R S
with the Parallax BS2sx OEM module, line #1 being high, causes IC5A players of the team.
but it has a limited number of I/O output to go low and set Q of
pins and barely meets the response IC1A high. At the same time, Q3
rate requirement. Any help would be pulls line #1 low, locking out
CONVERT 33 1/3 TO CD
appreciated. all other players on the bus. When I have a stack of old 33-1/3
— James Good
W
Initially Q of IC1A is low causing IC4A goes low, making its output probably will need an adapter to plug
Q3 output to be in the high high. The output of the inverter, IC6A, your record player into the sound
W
impedance state. Enable line #1 goes low allowing the lockout bus to card and software. I only did this
.G
is high, being pulled up by R1. go high. The buzzer bus is active once; I believe I used Audio Record
W
When a player pushes his button, when low. Wizard V3.97 (ARWizard3), although I
iU
the output of IC6B goes low Note that the reset, enable, and also have RealPlayer on my computer.
causing IC5B output to go high buzzer bus goes to all 20 players but A Google search may turn up other
.R
RU
which, in conjunction with enable the lockout bus goes only to the five possibilities. NV
AD
M
iO
EL
SC
E .H
A
i2
M
.R
AT
O
OR
UL
.H
i2
.R
O
■ FIGURE 5
May 2007 29
NewProductsAMay07.qxd 4/5/2007 11:00 PM Page 30
NEW
■ HARDWARE
■ SOFTWARE
■ GADGETS
■ TOOLS
P R O D U C T S
use by scientists, engineers, experimenters, and hobbyists. The
NEW ZX MICROCONTROLLER ZX-1281 is a 64-pin TQFP format device targeted to high vol-
W
microcontroller family is based on the
Atmel ATmega1281 MCU. The pri-
W
RU
PWM channels (up to six), and a sec-
ond hardware serial port. The new ZX-
AD
E
ZX-1281 is $49.95. Volume pricing is
.H
available. A ZX-1281 Development
A
30 May 2007
NewProductsAMay07.qxd 4/5/2007 11:03 PM Page 31
■ 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
ing, and undo/redo. The IDE can also be used to perform The ZX-128e and
For more information,
field updates of the ZX-1281’s internal firmware, making it ZX-1281e are also
contact:
simple to upgrade to programmed using
Oak Micros
new firmware releases For more information, contact: the ZBasic program- Web: www.oakmicros.com
as they become avail- Elba Corporation ming language.
able. Web: www.zbasic.net
NEW PROTOTYPING-FRIENDLY ZX
CRYSTAL EAR-PIECE
TRANSISTOR AMPLIFIER KIT
MICROCONTROLLERS
O ak Micros announces two new microcontrollers based on
the ZX microcontroller platform. The ZX-128e and ZX-1281e
A new amp from The Xtal Set Socity is designed specifically
to drive a crystal earphone, which is capacitive. Maximum
gain is set at 14x. The input is capacitively coupled and includes
are based on their namesake Atmel AVR ATmega128 and AT- a 100K pot, ideal as a load for a crystal set and as a volume con-
W
mega1281 devices and include a preprogrammed ZBasic Virtu- trol. All components mount on the 2 x 2-inch PCB, including
al Machine from Elba Corporation. These devices are suitable for nine-volt battery holder and nine-volt clip with wires. Battery and
W
the hobbyist and professional alike and provide a powerful, easy audio cables/connectors are not included. Interconnect wiring
to use platform for scientific and industrial control applications. can be soldered directly to the PCB pads. Assembly time is ~45
W
W
The new ZX-128e/ZX1281e are similar to the successful minutes. Price is $19.95. The XS-EAK Ear Piece Transistor Am-
Oak Micros ZX-24e/ZX-24ae devices and have a prototyping plifier Kit is $19.95 plus $4.95 shipping/handling.
W
and breadboard friendly 40-pin dual in-line format that fea- Orders may be placed via the website catalog.
.G
tures 32 I/O pins, true voltage level RS-232 transceiver, slide
W
switch to choose between RS-232 and logic voltage levels for For more information, contact:
iU
serial channel one, LED monitoring on two I/O pins, and a five The Xtal Set Society
volt regulator and power monitor LED. PO Box 3636, Lawrence, KS 66046
.R
RU
By utilizing the base features of the AVR microcontrollers, Tel: 405-517-7347
these new devices offer a second hardware serial port and four Email: xtalset@sunflower.com
AD
E
devices that used 32K bytes of EEPROM.
.H
A RAM daughter card allows user pro-
A
May 2007 31
Page32.qxd 4/5/2007 9:42 PM Page 32
t o rs Dio
e s is des
R Order PCB
Get FREE parts
T r a Capacitors
t o rs
nsis ec
tors n n
C o
W
O nly $50 for 5pcs 4 " x4 " 2L
W
Free Solder mask and silkscreen !
W
W
FREE
W
.G
With first order
W
iU
.R
RU
Http :// EzPCB . COM
Sales @ EzPCB . COM
AD
M
iO
EL
SC
E .H
A
i2
M
.R
AT
O
OR
UL
.H
i2
.R
O
32 May 2007
Full Page.qxd 4/4/2007 3:21 PM Page 33
WIN
Every week, Jameco is
giving extra discounts on
major brands like these:
• AlcoSwitch • AMP/Tyco
BIG
• Dallas Semiconductor
• Intersil • Maxim
• Microchip • Molex
• Panasonic • AVX
• Fairchild Semiconductor
AN
• Tyco • Aromat
E
TAK
E X T R%A
• Aavid Thermalloy
W
• Atmel • ST Micro
And that’s in
W
15
addition to the
OFF
W
industry-best
W
pricing you
already get
W
.G
EW at Jameco
ON 2 N
M AAJNODRS
every day!
W
iU
You already
know about
.R
RU
BR W E E
Jameco’s
K! best-in-the-
AD
EVERY business
M
low pricing...
iO
EL
Now we’re
out to get a new
SC
message across:
E
Major Brands—at
.H
Jameco pricing!
A
To dramatize the
i2
M
EVERY
you an additional 15% discount on two
.R
• T.I. Semiconductor
AT
SEE
• C&K Switches
everyday discounted pricing!
• Comair Rotron UP
O’S We wanted to make this
THIS WEEK
WH
• Condor • Grayhill so good a deal that you just
UL
WEEK
• Philips • Power-One
E B S
THE W
.H
— —
• Toshiba to the website...
• Vishay Siliconix
AT
.R
www.Jameco.com/NVS
JAMECO
O
Great Products.
Awesome Prices.
May 2007 33
Showcase-ReadFeed May07.qxd 4/5/2007 10:30 PM Page 34
SHOWCASE
5 Amp Smart Battery Charger
For Gel-Cell or Lead Acid Batteries
The Model 155 charger
maintains large batteries:
marine, auto & deep cycle.
Features include a precision
temperature tracking
voltage reference and three
mode charging sequence.
May be left connected, will
not overcharge. If a load
is applied, the charger will
contribute it’s bulk current
to the load. When the load
is removed, charger current will flow into the battery. Not a
switcher! Low RF noise linear charger. Good for Radio Use
See review by W1ZR in MAR 04 QST. Input 120 VAC. Output
13.8 VDC. Weighs 10 lb, 7“W x 8”D x 4 3/4”H. Custom units
and various output cables available, see website for details.
Assembled & Tested (Order #155-ASY) ........ $149.95
CA Residents add 7.75% sales tax. S & H $12.50 to US 48 (insured)
AK, HI and Foreign Orders, please contact us for details
www.a-aengineering.com
W
2521 W. LaPalma #K • Anaheim CA 92801
(714) 952-2114 • FAX (714) 952-3280
W
PP:KLWH
W
W
ZDWHUFOHDU
/('9
W
PFG
.G
$% Evaluation Kits
$299.00
W
iU
VHFRQGYRLFHUHFRUGHUSOD\EDFNPRGXOH OceanServer provides tiny, low-cost digital compass
SUHDVVHPEOHG$ products for uses in precision heading or attitude
.R
E .H
PRINTED CIRCUIT BOARDS
A
* Routing or scoring
* Electrical Testing
* Artwork or CAD data 9901 W. Pacific Ave.
* Fast quotes Franklin Park, IL 60131
* Flex Circuits
UL
Phone 847.233.0012
We will beat any Fax 847.233.0013
competitor’s prices!!!
w w w.pulsar-inc.com • sales@pulsar-inc.com
.H
i2
.R
O
Showcase-ReadFeed May07.qxd 4/5/2007 10:32 PM Page 35
SHOWCASE
FORENSIC LAB
$100 REWARD
We will reduce the invoice of your
next paying recovery case by $100.00
Computer Hard Drive:
>
DATA RECOVERY
>
IMAGING
>
FORENSIC EXAMINATION
Free Confidential Telephone Consultation
(888) 505-2566
W
Member:
I E E E & Institute of Computer Forensic Professionals.
W
W
READER FEEDBACK
W
W
.G
Continued from Page 6
a sheet metal break. I did this with two
W
iU
pieces of wood that have a 45 degree
bevel on one edge (this gives relief clear-
.R
RU
ance when completing the last part of
the bend). Clamp these at the bend line
AD
EL
break! Now pull or push that extended
edge toward you or away from you until
SC
E
you have a 90 degree bend. Check with
.H
a square to be sure. As for rectangular panel firmly in a vise (or whatever) and a chassis/case or use whatever they have
holes, scribe your layout lines directly on file the rest out to the scribe lines. I am on hand that’s close in size, so I didn't
A
i2
the panel and then "hog" out the hole sorry for your trouble, but the article was dwell on that aspect of construction too
M
with a series of the biggest drill that will not meant to be a metal working primer, much — just enough to give some insight
.R
fit inside these layout lines (in my case, as this is a whole different feild.Most on what could be done.
AT
that was a 1/2" drill bit). Then clamp the constructors will look for a good buy on Robert Reed
O
OR
6ISIT /UR
7
HTTPWW EBSITE !T
WELEXPC
OM
-(: 37%%0 $# 0/7%2 3500,)%3 3/,$%2).'