Nuts & Volts April 2007
Nuts & Volts April 2007
Nuts & Volts April 2007
qxd
3/8/2007
1:27 PM
Page 108
Vol. 28 No. 4
NUTS & VOLTS
Part #
Pins
SX20AC/SS-G
20
SX28AC/DP-G 28
SX28AC/SS-G
28
SX48BD-G
48
I/O
12
20
20
36
EE/Flash
2K bytes
2K bytes
2K bytes
4k x 12 words
RAM
137 bytes
136 bytes
136 bytes
262 bytes
Qty. 1
$2.79
$2.79
$2.79
$2.79
Qty. 5
$2.51
$2.51
$2.51
$2.51
Qty. 100
$2.23
$2.23
$2.23
$2.23
Qty. 1000
$1.89
$1.89
$1.89
$1.89
If you have not yet tried programming with an SX, this is the time to get started. Parallax offers free
development software, including SX/B, a BASIC language compiler for the SX microcontroller. The SX/B
compiler speeds the programming of SX chips by providing a simple, yet robust high-level language
familiar to Parallax customers designed to help the transition from high-level programming (ie. BASIC
Stamp) to low-level programming (assembly language). For beginners we recommend the SX Tech Tool
Kit PLUS (#45181; $99.95) and a 7.5 VDC 1 Amp power supply (#750-00009; $10.95).
April 2007
Parallax, and the Parallax logo are trademarks of Parallax, Inc. BASIC Stamp
is a registered trademark of Parallax Inc.
We have lowered our quantity pricing on SX chips. Now you can continue to use SX microcontrollers
in your production projects and enjoy even better pricing. Parallax SX microcontrollers are RoHS
Compliant, RISC architecture, high-speed microcontrollers with flash program memory, insystem programming and debugging capability.
U.S.
$5.50
CANADA
74470 89295
$7.00
0 4>
CoverInside.qxd
3/6/2007
2:16 PM
Page 2
C i rcuitSpecialists.com
Ci rcuitSpecialists.com
Ci rcuitSpecialists.com
Stepper Motors
Part #:
42BYGH404
57BYGH207
57BYGH303
57BYGH405
85BYGH350B-03
85BYGH350C-03
Sale
Item# CSI825A++
CPU Controlled
$149.00!
Built-in Vacuum System
Temperature Range:100C to 480C / 212F to 896F
15-Minute Stand-By temperature "sleep" mode
Power:110/120 VAC, 320 W maximum
Motor Frame
Size:
NEMA 17
NEMA 23
NEMA 23
NEMA 23
NEMA 34
NEMA 34
Holding Torque:
Price:
3.4kg.cm/47oz.in
8kg.cm/111oz.in
15kg.cm/208oz.in
20kg.cm/277oz.in
48kg.in/665oz.in
63kg.cm/874oz.in
$17.95
$24.95
$29.95
$34.95
$79.95
$119.95
2 Phase Microstepping
Microstepping
Stepper Motor Driver (Bi-polar & Unipolar Motors)
Part #:
Dimensions:
MicroStep:
Price:
1(200), 1/2(400), 1/4(800),
XCW220 100mm x 61mm
$39.95
x 19mm
1/8(1600)
1/2(400), 1/8(1600)
CW220 99mm x 65mm
$49.95
x 30mm
CW230
115mm x 72mm
x 32mm
CW250
140mm x 94mm
x 45mm
147mm x 97mm
x 30mm
CW860
$59.95
$119.95
$69.95
Only
$69.99!
Powered
Powered Breadboard
Breadboard w/out DMM: $69.00
Protek
ength Analyzers
Protek 2.0 & 2.9GHz Field Str
Strength
Price
Breakthrough!
3290N
Special
4 8 0n e s
i
T V oLl u t i o n
Res
SONY
Super HAD
CCD equipped
cameras feature dramatically improved
light sensitivity
Weather Proof
Signal System: NTSC
Image Sensor: 1/4" SONY Super HAD CCD
Horizontal Resolution: 420TV lines
Min. Illumination: 1Lux/F1.2
Item# VC-805:
$53.95
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.Cs, 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 wont 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
TOC - Apr07.qxd
3/7/2007
12:07 PM
Page 4
APRIL 2007
COLUMNS
32
39
April 2007
08
TECHKNOWLEDGEY 2007
Events, advances, and news
from the electronics world.
12
PERSONAL ROBOTICS
Parameters on the fly Part 2.
19
67
82
89
OPEN COMMUNICATION
MIMO 101.
DEPARTMENTS
06
READER FEEDBACK
28
NEW PRODUCTS
44
NEWS BYTES
60
SHOWCASE
66
ELECTRO-NET
78
CLASSIFIEDS
80
NV BOOKSTORE
93
TECH FORUM
97
ADVERTISERS INDEX
Full Page.qxd
3/6/2007
3:33 PM
Page 5
Link Instruments
PC-Based Test Equipment
Digital Oscilloscopes
2 Channel Digital Oscilloscope
500 MSa/s max single shot rate
1Mpt sample memory
250 MSa/S (Dual channel) 512 Kpts
500 MSa/S (Single channel) 1 Mpts
Advanced Triggering
Only 9 oz and 7 x 3.5 x 1.5
Portable and Battery powered
USB 2.0
Advanced Math
FFT Spectrum Analyzer
Priced at only $950
NEW!
500M
Sa/s
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
Windows Screenshot
$1700
$2350
$2500
$3500
$7500
www.Link-instruments.com
April 2007
ReadFeed Apr07.qxd
3/8/2007
9:38 PM
Page 6
READER FEEDBACK
HOT FOR ANSWERS
ABOUT FURNACE
Kenton Chuns recent article
(Dec 06) was particularly timely and
helpful considering our recent, long,
and cold power outage. During this
period, our house temperature fell to
38 very cold degrees.
I would like to undertake the
project proposed by Kentons article.
However, I have one major concern.
I own a Carrier 58MVP gas-fired furnace. This furnace is very modern and
very efficient. To achieve this, the
furnace does contain some circuit
cards and other components which
might (I am not sure) be considered
sensitive to something less than pure
sine wave inverter output.
Above-all, I do not want to toast
my very expensive furnace in this
process. Nor do I want to purchase
an inverter that will ultimately not
meet my needs for emergency heat in
the future.
So, I wonder (obviously, I know
nothing about all this sorry for any
newbie questions):
(a) How can I tell if my furnace
requires pure sine wave power or
not without taking a risk of doing any
damage in empirical tests? I know that
my furnace can be run via generator
I have been told this by both a local
dealer and read individual accounts
of this being done on the web. Do
generators produce pure sine wave
power?
(b) I read various inverter vendors
speak of their products having clean
power. Is clean power the same as
pure sine wave power? If not, what
does this mean?
(c) If a modified sine wave output
will work, are some forms of
modified sine wave output better
(more clean) than others? How can
I tell? If the vendors publish specs, what
should I look for?
6
April 2007
Subscriptions
Inside US 1-877-525-2539
Outside US 1-818-487-4545
P.O. Box 15277
North Hollywood, CA 91615
FOUNDER/ASSOCIATE PUBLISHER
Jack Lemieux
PUBLISHER
Larry Lemieux
publisher@nutsvolts.com
ASSOCIATE PUBLISHER/
VP OF SALES/MARKETING
Robin Lemieux
display@nutsvolts.com
CONTRIBUTING EDITORS
Chuck Hellebuyck
Jeff Eckert
Peter Best
Jan Axelson
Bill Stiles
Vaughn Martin
Louis Frenzel
Phil Davis
Ray Marston
Michael Simpson
Marvin Mallon
Gerard Fonte
John Stabler
CIRCULATION DIRECTOR
Tracy Kerley
subscribe@nutsvolts.com
SHOW COORDINATOR
Audrey Lemieux
PRODUCTION/GRAPHICS
Shannon Lemieux
Michele Durant
ADMINISTRATIVE ASSISTANT
Debbie Stauffacher
Full Page.qxd
1/11/2007
9:35 AM
Page 7
3/6/2007
11:53 AM
Page 8
TECH
KNOWLEDGEY
BY JEFF ECKERT
2007
Tech2007.qxd
ADVANCED TECHNOLOGY
BUBBLES ARE BACK?
PHOTO COURTESY OF MANU PRAKASH.
April 2007
PHOTO COURTESY OF
J. FRASER STODDART
SUPRAMOLECULAR
CHEMISTRY GROUP, UCLA.
COMPUTERS AND
NETWORKING
ELECTRONIC
PRESCRIPTIONS
ON THE WAY
Tech2007.qxd
3/6/2007
11:53 AM
Page 9
TECHKNOWLEDGEY 20 07
STOP EMBARRASSING
LEAKAGE
CIRCUITS AND
DEVICES
DEVICE COUNTS
PASSENGERS
The PCN-1001
Passenger
Counter is
based on
noncontact
stereoscopic vision
technology. PHOTO COURTESY OF EUROTECH S.p.A.
LOW-COST SERIAL
ANALYZER
PHOTO COURTESY OF MICROCHIP TECHNOLOGY.
Tech2007.qxd
3/6/2007
11:53 AM
Page 10
INDUSTRY AND
THE PROFESSION
POSTHUMOUS AWARD
FOR HYBRID ENGINEER
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 !
CCaattaalloogg!
call toll free
1-800-543-4330
refer to or visit
www.mcminone.com/magazine
April 2007
MOBILE PHONE
HAS MORE
Full Page.qxd
3/6/2007
3:40 PM
Page 11
PersonalRobotics.qxd
3/6/2007
11:47 AM
Page 12
ROBOTICS
PERSONAL
BY PHIL DAVIS
Power
GND pin 1
VCC pin 20
Comms
RX pin 3
TX pin 4
If you look at Photo 2, you can
see how I have connected this up to
my Mega32 board. I basically located
a header on my CPU board which had
GND and VCC and cabled that up to
pins 1 and 20 on the EB500. Since the
serial interface on the EB500 is at TTL
levels, I removed the RS-232 driver
chip on my board and connected pins
3 and 4 from the EB500 directly to
pins 9 and 10 of the Mega32. My
board has a header that exposes these
two pins. Photo 3 shows the EB500
connected to my STK500.
The EB500 has additional pin
output signals such as connection
status and mode control, which I may
use later, but for now, Im just using
power and comms. Note also, the
long single wires can be replaced later
PHOTO 2. Mega32
board hooked up to
an EB500.
12
April 2007
PersonalRobotics.qxd
3/6/2007
11:48 AM
Page 13
PERSONAL ROBOTICS
with a header and some neater wiring.
Since I will be using an identical
Mega32 board at both the console
side and the robot side, the connections and wiring will be identical.
EB500 OPERATION
The EB500 has two basic modes
of operation: Command and Data. In
Command mode, the user can issue
various commands to cause certain
actions. In Data mode, the device acts
like a cordless RS-232 connection
and all input is passed through.
In Command mode, there are
several commands available, though I
will only be using a small subset of
these, namely connect and get
address. There are a number of other
interesting commands and capabilities, most notably the ability to have
encryption and trusted devices.
DATA TRANSMISSION
The whole point of the hand-held
console is to have the robot send its set
of variables to the console and then to
let the user change those parameters
and send them back to the robot. The
data being transmitted may consist of
some ASCII characters as part of the
protocol between the two devices, for
example, respond, var, ready, etc.
However, the data being transmitted
also consists of variables and the variables will contain non-ASCII data, such
as a binary 1 or a binary 2 etc., so special accommodations need to be made
for this type of non-ASCII data. We will
also have to delineate a message. That
is, we will need to build each message
into a packet, with a header and a
trailer; in this case, very simple ones.
To this end, we need a simple
packet protocol and a way to ensure
the transmission of binary data. It just
so happens that my robotics buddy,
Ken Tait, uses such a protocol and
with his permission, I am briefly going
to describe a version of it.
Regardless of what the contents of
the messages sent back and forth are,
we are going to wrap them in a header and trailer. This way, we will know
where the beginning of the message is
and where the end of the message is.
PROTOCOL
Packetizing and sending data
back and forth is not quite enough.
We now need to develop a
simple protocol we can layer on top of
it and use to identify requests and
responses, as well as a standard
method for packing the information.
As an example, these are some of the
commands we will need to pass the
variables back and forth:
respond Sent by the console to
the bot when the console first
powers up and after the EB500s
become connected.
ready Sent by the bot to the
console to acknowledge it is ready
and running. This is in response to
receipt of respond. May be sent
by the console to the bot to
acknowledge it is ready and running.
send Sent by the console to the
bot once communication has been
April 2007
13
PersonalRobotics.qxd
3/6/2007
11:48 AM
Page 14
name[9];
type;
*def;
*var;
MANAGING THE
MESSAGES
Both the bot and the console will
be expecting specific commands at
certain times. For example, when the
console sends send to the bot, the
console will be expecting a var N
command from the bot in return.
This can be easily managed in one
of two ways, both are very similar. The
idea is to have a routine which at a
HobbyEngineering
The technology builder's source for kits, components, supplies, tools, books and education.
www.HobbyEngineering.com
Books and
Educational K
1-866-ROBOT-50
1-866-762-6850
1-650-552-9925
1-650-259-9590 (fax)
sales@HobbyEngineering.com
180 El Camino Real
Millbrae, CA 94030
Most orders ship the day received! World-wide shipping. Convenient payment options.
14
April 2007
SUMMARY
With this more complete set of
tools, we can finish the implementation of the hand-held console. Next
month, I will show the completed
device, discuss how well it works, and
go over any would like to haves.
Also, I should mention that A7
Engineering have just released a more
generic EB module called the EB501
which is not dependent upon the
AppMod and may be easier for me to
use. If I have one of those by next
month, I will talk about it. NV
RESOURCES
Matrix Orbital LCD
www.matrixorbital.com
EmbeddedBlue
www.parallax.com
EmbeddedBlue
www.a7eng.com
FreeRTOS www.freertos.org/
WinAVR http://winavr.source
forge.net/
AVRstudio
www.atmel.com/dyn/products/tools
_card.asp?tool_id=2725
Rutherford Robotics can laser-cut
the console for you http://ruther
ford-robotics.com/laser.html
Parallax www.parallax.com
Phil Davis phild2@charter.net
Page15.qxd
3/8/2007
9:55 PM
Page 15
$399
$119.99
$79.99
$29.99
Scorpion Mini
6
6
6
6
Scorpion XL
Scorpion HX
Dual 2.5A (6A pk) H-bridges
Plus 12A fwd-only channel
5V - 18V
1.6 x 1.6 x 0.5
Introducing Dalf
6
6
6
6
6
6
6
OSMC
6
6
6
6
Monster power!
14-50V 160A!
3.15x4.5x1.5
3 wire interface
$79
6
6
6
6
6-28V 25A!
2.25x2.5 x0.5
3 wire interface
current & temp
protection
MADE IN
www.robotpower.com
THE USA
April 2007
15
NutNVolt200703.qxd
2/2/2007
11:04 AM
Page 16
Mini-Kits...
The Building Blocks!
Tickle-Stick
Laser Light Show
LEDS1C
PGA1
Plasma Generator
64.95
HV Ion Generator
$9.95
Dripping Faucet
Produces a very pleasant, but
obnoxious, repetitive plink, plink
sound! Learn how a simple transistor
oscillator and a 555 timer can make such
a sound! Runs on 4-9 VDC.
EDF1
Dripping Faucet Kit
$9.95
LED Blinky
Our #1 Mini-Kit for 31 years!
Alternately flashes two jumbo red
LEDs. Great for signs, name badges,
model railroading, and more. Runs on 3-15 VDC.
BL1
LED Blinky Kit
$7.95
Generate 2 sparks!
Generates a steady state DC voltage at constant non-pulsed current at 7.5kV DC negative, 400uA.
Thats a LOT of ions! Learn how
modern spacecraft use ions to
accelerate through space. Runs
on 12VDC or our AC125 PS.
ECG1C
PG13
IG7
ECS1
ECG/EKG Kit
44.95
64.95
64.95
Cricket Sensor
$24.95
Electronic Siren
Produces the upward and downward wail of a police siren.
Produces 5W output, and will drive
any speaker! Runs on 6-12 VDC.
SM3
Electronic Siren Kit
$7.95
Universal Timer
20 watts and no heat!
Delivers a super clean 20W output from one SMT package! Ultra
efficient class D design produces
no heat. PCB can be snapped
into a small circle for special
applications. Runs on 18VDC for
rated output, use our SPS18 PS.
BS2C
SG7
Touch-Tone Reader
59.95
$9.95
Voice Switch
Voice activated (VOX) provides a
switched output when it hears a
sound. Great for a hands free PTT
switch, or to turn on a recorder or light! Runs on
6-12 VDC and drives a 100 mA load.
VS1
Voice Switch Kit
$9.95
Tone Encoder/Decoder
Find that transmitter quick!
DDF1
TG2C
SM100
169.95
69.95
89.95
Visit www.ramseykits.com
Free Giveaways and ALL the
information you ever needed!
Encoder/Decoder Kit
$9.95
RF Preamplifier
Super broadband preamp from
100 KHz to 1000 MHz! Gain is
greater than 20dB while noise is less
than 4dB! 50-75 ohm input. Runs on 12-15 VDC.
SA7
RF Preamp Kit
$19.95
Touch Switch
Touch on, touch off, or momentary
touch hold, your choice! Uses CMOS
technology. Runs on 6-12 VDC and drives any
load up to 100 mA.
TS1
Touch Switch Kit
$9.95
NutNVolt200703.qxd
2/2/2007
11:08 AM
Page 17
FM Broadcasters
Passive Aircraft
Airband Monitor
Monitors the entire aircraft band without tuning!
Passive design, can be used on aircraft, no local
oscillator, generates and creates no interference!
Great for air shows
Patented circuit and design!
$199.95
$299.95
Professional Synthesized
Stereo FM Transmitter
Need professional quality features but can't justify the cost of a commercial FM exciter? The
FM25B is the answer!
A cut above the rest, the FM25B features a PIC microprocessor for easy frequency programming without the need for look-up tables or complicated formulas! The transmit frequency is easily set using DIP switches; no need for tuning
coils or tweaking to work with today's digital receivers. Frequency drift is a
thing of the past with PLL control making your signal rock solid all the time - just
like commercial stations. Kit comes complete with case set, whip antenna, 120
VAC power adapter, 1/8" Stereo to RCA patch cable, easy assembly instructions,
and the SMT parts are factory preassembled - you'll be on the air quick!
FM25B
Professional Synthesized FM Stereo Transmitter Kit
$139.95
Tunable FM Stereo
Transmitter
Take a close look! On your left is a multi-function 3 digit digital multimeter. Its
large backlit LCD display can be seen from anywhere on your bench while youre
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.
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
24V low voltage iron features an isolated ceramic 48 watt temperature controlled
element. Front panel control gives you variable tip temperature control from
150C to 450C and LED indication of power-on and heating-on. Runs on 120VAC.
LAB1U
$119.95
3-In-1 Multifunction
Soldering Lab
FM10C
AC125
$44.95
$9.95
Clearance Specials, Ramsey Museum, User Forums, Dealer Information, FAQs, FCC
Info, Kit Building Guides, Downloads, Live Weather, Live Webcams, and much more!
www.ramseykits.com
800-446-2295
590 Fishers Station Drive
Victor, NY 14564
(800) 446-2295
(585) 924-4560
Where
Electronics
Is Always
Fun!
Build It!
Learn It!
Achieve It!
Enjoy It!
Prices, availability, and specifications are subject to change. Not responsible for typos, stupids,
printers bleed, or migraine headaches. Phil didnt see his shadow today, whats up with that!
Robin said this ad should be green. There, its green! Visit www.ramseykits.com for the latest
pricing, specials, terms and conditions. Copyright 2007 Ramsey Electronics, LLC...so there!
Full Page.qxd
3/6/2007
3:50 PM
Page 18
Founding Sponsor
Produced by
Premier Sponsors
Gold Sponsors
www.roboevent.com
GetStartedWithPICs.qxd
3/6/2007
11:50 AM
Page 19
PICs
BY CHUCK HELLEBUYCK
PICAXE
I have to admit when these first
April 2007
19
GetStartedWithPICs.qxd
3/6/2007
11:51 AM
Page 20
BASIC STAMP 2
FIGURE 4
BASIC ATOM
The Basic Atom (Figure 3) takes
the PICAXE/BASIC Stamp programming style a little further in that it
pseudo compiles or combines the
token-style commands with the processing routines and stores them in
a binary .hex file. This binary .hex file
gets programmed into the PICs program memory. This way, the program is retrieving information from
within program memory rather than
EEPROM memory. This is much
faster than EEPROM access but uses
a lot of program memory initially
when it downloads all this to the
PIC.
The Atom is based on the
PIC16F876A and 16F877A both of
which have the capability to self-write
to program memory from within the
software. This is how a bootloader
works and a bootloader is how the
Atom programs itself through a PC
serial connection. This is why an
Atom doesnt need a separate PIC
programmer similar to PICAXE and
BS2 to download the .hex file it
creates.
PICBASIC
FIGURE 5
20
April 2007
GetStartedWithPICs.qxd
3/6/2007
11:51 AM
Page 21
G E T T I N G S TA R T E D W I T H P I C s
PIC Option
FIGURE 6
Measured Time
368 msec
278 msec
68 msec
28 msec
1.76 msec
0.350 msec
TABLE 1
bly language file that gets assembled into a true binary
.hex file. This .hex file can then be programmed into a
blank PIC with a hardware PIC programmer. This is the
is still one of the more popular compilers on the market.
compiler that got me started programming blank PICs in
The PICBasic Pro compiler produces an assembly file that
Basic.
gets assembled into a binary .hex file so it can program just
about any eight-bit PIC out there. I noticed right away when
I had reached a limit with the BS1 and had moved on
I switched from PICBasic to PICBasic Pro that it greatly
to the BS2 when PICBasic arrived on the scene.
reduced the memory size of my programs in the exact
Programming in assembly language just was too time-consame PIC.
suming for me. I was amazed at how easy it was to program
PICBasic Pro isnt limited to 2K like PICBasic, so its
off-the-shelf PICs. The PICAXE and Atom werent around
number of commands is only limited by the program memwhen the PICBasic compiler was introduced, so those
ory space of the PIC you are using. If you use a
werent an option.
PIC18F6722, you get 128K bytes of program space. I rarely
The PICBasic compiler added a few commands to the
use more than 8K, so thats one huge advantage of
BS1 PBasic command set that allowed it to access
PICBasic Pro. How much better it is at speed is really the
registers in the PIC and it also allowed more RAM space
question I want to answer. PICBasic Pro can be set up to
to be used for variables.This was a huge advantage
run at various speeds with a simple DEFINE insert, so this
over BS1 and BS2. PICBasic was the best thing going
allowed me to run the same program at both 4 MHz and
until the PICBasic Pro compiler was released. PICBasic is
20 MHz.
limited to 2K of PIC program memory so even if you have
an 8K PIC, you would have to do some special coding to
get beyond 2K. I thought it was interesting to add
PICBasic to my performance test since I havent used it in
a while and havent even talked about it in this column
Now for the moment weve all been waiting for the
series. I do include both PICBasic and PICBasic Pro in my
speed/performance test. I wanted to create a simple
book Programming PIC Microcontrollers with PICBasic,
program that could be used across all these different
though.
platforms with very little or no modification. I knew I
At $99.95, PICBasic is a pretty good alternative to
wanted it to process several commands in a loop and
programming with PICAXE or BS1 since the commands
also perform some math. I wanted to light an LED so I
are the same and you can use it with blank PICs. PICBasic
could see it working and be able to put an oscilloscope
is also written to run programs at 4 MHz. You can run
on the LED to measure the time it took to change
the PIC faster, but some of the time-critical commands
state. This change in state delay reflects the processing
will be affected. For example, a PAUSE 1000 will delay
time, so by recording that time, I could compare
one second at 4 MHz, but run the PIC at 20 MHz, and
everything running the exact same Basic code. The final
program is below:
that command will only take 200 milliseconds. Some
people use this method to get
higher baud rates out of
C Code
PICBasic Pro Code
PICBasics SEROUT command.
while(1==1)
//loop forever
For the performance test, I ran it {
Main:
at 4 MHz.
unsigned int z, y;
SPEED TEST
RB0 = 1;
// Turn on RC0 LED
for(z=0; z<256; z=z+1)
{
y=y+1;
}
RB0 = 0;
//Turn off RC0 LED
Pause(10); // Pause 10 msec
PICBASIC PRO
The PICBasic Pro compiler
(Figure 5) has been talked about a
lot in this column. It added so
many features to the PICBasic
compiler, it clearly was in a class
by itself when it was released, and
high 1
Set Port 1 High
For x = 1 to 255
y=y+1
Perform simple
next
low 1
Clear port 1 to
pause 10
Stay low for 10
to Light LED
math
turn off LED
milliseconds
goto main
//End while
TABLE 2
April 2007
21
GetStartedWithPICs.qxd
3/6/2007
11:51 AM
Compiler
Page 22
Measured Time
3.6 msec
1.76 msec
TABLE 3
Main:
high 1
Set Port 1 High to Light LED
For x = 1 to 255 Loop 255 times in for-next loop
y = y + 1
Perform simple math
next
End for-next loop
low 1
Clear port 1 to turn off LED
pause 10
Stay low for 10 milliseconds
goto main
RESULTS
// Prototyping functions
void Pause( unsigned short usvalue );
void msecbase( void );
main()
{
PORTB = 0;
TRISB = 0;
while(1==1) {
//loop forever
unsigned int z, y;
RB0 = 1;
// Turn on RC0 LED
for(z=0,y=0; z<256; z=z+1) {
y=y+1;
}
RB0 = 0;
// Turn off RC0 LED
Pause(10);
// Pause 10 msec
}
//End while
}
//end main
//*******************************************************
//pause - multiple millisecond delay routine
//*******************************************************
void Pause( unsigned short usvalue )
{
unsigned short x;
//Loop through a delay equal to usvalue in ms
for (x=0; x<=usvalue; x++) {
msecbase();
// ms delay routine
}
}
//*******************************************************
//msecbase - 1 msec pause routine
//*******************************************************
void msecbase(void)
{
April 2007
GetStartedWithPICs.qxd
3/6/2007
11:52 AM
Page 23
G E T T I N G S TA R T E D W I T H P I C s
several PICs after this and got the
same results. PICBasic Pro was faster
than C in this simple application. To
further understand the results, I
reviewed the .hex files and saw
that PICBasic Pro compressed
the code into a single block of space
that took up 60 words of program
memory.
The PICC-Lite version broke up
the code into two blocks: one at the
top of program memory and one
much further down. This told me that
PICC-Lite had produced code that
possibly jumped around more than
PICBasic Pro. If your assembly code
has more calls or gotos in it, then it
will take more time to process. The
PICC-Lite file took 68 words of
space. This was larger than PicBasic
Pro.
PICC-Lite is a freeware version
and doesnt have all the optimization
layers in place that help compact the
code, so there are improvements
that can be made. Compacting
can sometimes add more calls, so
Im not sure that would help.
Inserting assembly into C helps
speed things up, but you can do that
in PICBasic Pro, as well. All in all,I
was impressed at how well PICBasic
Pro performed against PICC-Lite in
this test.
If you want to become a professional software engineer, then C is still
the most desired language to know.
However, PICBasic Pro can compete
well in applications where you may
need to rely on a simple Basic
language to get a product out the
door quickly. Ive helped many nonsoftware engineers do this using
PICBasic Pro.
CONCLUSION
Based on this brief study, Ive concluded that no matter how you get
started, you end up getting what you
pay for. If you only have a few bucks,
then PICAXE is a great place to start
and you will learn the language that
can later be used with PICBasic Pro.
Basic Atoms and Stamps offer a
smooth upgrade path to PICAXE
and PICBasic/PICBasic Pro offer the
ultimate option for programming
low-cost PICs.
Purchasing a decent PIC programmer and PICBasic Pro will cost a
few hundred dollars, but divide that
up among all the projects you create
with it and it will bring the cost
down. Once you start reading sensors or trying to process large
amounts of data, speed becomes a
priceless advantage. I still do a lot of
work with Atoms because of the
great built-in, in-circuit debugger
(ICD) and I like some of the commands it offers that PICBasic Pro
doesnt.
I hope youve learned something
that will help you decide the best
route to take getting started. If you
have any questions or comments,
send them to me at chuck@elproducts.com or visit my website at
www.elproducts.com for all your
Programming PICs in Basic needs.
See you next month. NV
mouser.com
(800) 346-6873
The NEWEST Semiconductors | Passives | Interconnects | Power | Electromechanical | Test, Tools & Supplies
Mouser and Mouser Electronics are registered trademarks of Mouser Electronics, Inc. Other products, logos, and
company names mentioned herein, may be trademarks of their respective owners.
April 2007
23
Page24.qxd
3/8/2007
8:30 PM
Page 24
$119.95
(with accessories)
RoHS
Compliant
Programs PIC
MCUs including
low-voltage (3.3V)
devices
Pre-Assembled Board
Available for 8, 14, 18, 28,
and 40-pin PIC MCUs
2-line, 20-char LCD Module
9-pin Serial Port
Sample Programs
Full Schematic Diagram
Includes:
Programmer, USB Cable,
ZIF Programming Adapter for 8 to 40-pin DIP,
Software for Windows 98/Me/NT/2K/XP
EPIC Parallel
Port Programmer
starting at $59.95
24
April 2007
$249.95
www.melabs.com
Full Page.qxd
3/6/2007
4:00 PM
Page 25
WIN
BIG
E
TAK
AN
E X T R%A
15
OFF
ON 2 N
EW
And thats in
addition to the
industry-best
pricing you
already get
at Jameco
every day!
M AAJNODRS
You already
know about
Jamecos
K! best-in-theE
E
W
EVERY
business
low pricing...
Now were
out to get a new
message across:
Major Brandsat
Jameco pricing!
To dramatize the
point, were giving
you an additional 15% discount on two
different major brands each week. From
now through the end of May!
And thats on top of our
everyday discounted pricing!
UP
We wanted to make this
OS
WH
so good a deal that you just
O couldnt pass it up.
GO T
I T E So... Want to know which
S
B
E
THE W
two major brands you can
save extra-big on this week? Just head
to the website...
BR
T.I. Semiconductor
Augat/Tyco Bourns
CTS Cypress
C&K Switches
Comair Rotron
Condor Grayhill
Intel Micron
Philips Power-One
Raychem/Tyco
Renesas SanDisk
Toshiba
Vishay Siliconix
Great Products.
Awesome Prices.
EVERY
WEEK
AT
JAMECO
SEE
THIS WEEK
www.Jameco.com/NVS
April 2007
25
Page26.qxd
26
3/8/2007
8:28 PM
April 2007
Page 26
Full Page.qxd
3/6/2007
4:02 PM
Page 27
NewProductsApr07.qxd
3/8/2007
5:47 PM
Page 28
NEW
P
NEW DESKTOP
ELECTROPLATING
SYSTEM
April 2007
DO-IT-YOURSELF
LIQUID COOLING FOR
PC HOBBYISTS
OVERCLOCKING
MULTI-CORE
PROCESSORS
HARDWARE
SOFTWARE
GADGETS
TOOLS
NewProductsApr07.qxd
3/8/2007
5:47 PM
H A R D W A R E
D-Tek Customs
Web: www.dtekcustoms.com
EMBEDDED
COLOR VGA
GRAPHICS
Page 29
S O F T W A R E
G A D G E T S
T O O L S
29
NewProductsApr07.qxd
3/8/2007
5:48 PM
H A R D W A R E
30
April 2007
Page 30
S O F T W A R E
G A D G E T S
Multilabs
Tel/Fax: 949-458-7625
Web: www.multilabs.net
T O O L S
THE
ENERGYSAVER
NewProductsApr07.qxd
3/10/2007
12:06 PM
H A R D W A R E
Nevvus Corporation
Tel: 514-285-2829
Email: info@nevvus.com
Web: www.nevvus.com
SWEEP FUNCTION
GENERATOR
Page 31
S O F T W A R E
G A D G E T S
waveform
generation,
pulse generation (through variable
symmetry), and frequency sweep.
Additionally, the instrument provides
the added convenience of a built-in
frequency counter. Utilizing DDS
technology to produce precise and
accurate waveforms, the unit permits more accurate determination
of output frequency than is
possible with a simple calibrated
dial. Coarse and fine tuning
controls permit the precision
setting of the output frequency.
The heart of the function generator is a VCG (voltage controlled
generator) that produces precision
sine, square, or triangle waves over
the 0.1 Hz to 10 MHz range. This
encompasses sub audible, audio,
ultrasonic, and RF applications. A
T O O L S
April 2007
31
Simpson.qxd
3/6/2007
11:26 AM
Page 32
PROJECTS
THIS MONTHS PROJECTS
An X-10 Interface . . . . . . . . . . .32
Pulse Speed Timer . . . . . . . . . .39
The Magic Box . . . . . . . . . . . . .48
. . . . Beginner Level
C
O
N
T
R
O
L
YOUR WORLD WITH
AN X-10 INTERFACE
Home Automation
. . . . Intermediate Level
. . . . Advanced Level
. . . . Professional Level
Last month, we
looked at interfacing
your PC to various
1-Wire weather
sensors.
This month, we
are going to dive
head-first into
home automation.
I am going to show
you how to use your
and appliances using
32
April 2007
How Does
X10 Work?
PC to control lamps
the X10 protocol.
FIGURE 2
It isnt necessary
to know how the X10
protocol is transmitted over the power
Simpson.qxd
3/6/2007
11:27 AM
Page 33
BY MICHAEL SIMPSON
lines, but a brief overview may help you
to troubleshoot problems. X10 uses a
PLC technology, which stands for Power
Line Carrier. A 1 ms, 120 kHz burst is
transmitted near the zero crossing of
the 60 Hz AC signal. Two crossings are
required to form a single bit. To generate 1, we need a burst at the first
crossing and none at the second, as
shown in Figure 2. Figure 2 also shows
the pattern is reversed for 0; we need
a burst at the second crossing but not
the first. Things would get out of sync
very fast if we did not have some way of
starting the whole data packet. A
special start sequence is used. This
sequence is three 120 kHz bursts at
consecutive crossings followed by no
pulse, as shown in Figure 3.
After the start sequence, the next
nine bits represent the actual data
being transmitted. The first four bits
are the house code. The house codes
are represented by letters on the
actual devices to make it easier on the
consumer as in Table 1.
After the house code, the next
five bits represent the device code or
function to perform as shown in
Table 2. The last bit is actually used to
indicate that the device is to perform
a function if the bit is 1. The complete
message from start to finish is sent
twice for redundancy.
In reality, there are variations to the
above protocol such as sending extended data, but I wont be getting into these
in this article. Lets start to break down
the various RS-232 interfaces. Each has
its own protocol and will translate your
interface data into the
X10 protocol I just talked
about. It isnt necessary
that you understand the
actual details of the X10
protocol, just that you
know how the House,
Devices, and Function
codes are laid out.
All the previous
examples show a single
pulse that is synchronized with the zero
crossing. In reality, the
FIGURE 3
X10 specification
calls for three
pulses to be transmitted to make
the X10 compatible with a threephase distribution
system. The second pulse is sent
2.778 ms after the
zero crossing. The third pulse is sent
5.556 ms after the zero crossing.
FireCracker
(Model CM17A)
1
FIGURE 4
01100
11100
00100
10100
00010
10010
01010
11010
01110
10
11110
11
00110
12
10110
13
00000
14
10000
15
01000
16
11000
0110
1110
00001
0010
All Lights On
00011
1010
On
00101
0001
Off
00111
1001
Dim
01001
0101
Bright
01011
1101
01101
0111
Extended Code
01111
1111
Hail Request
10001
0011
Hail Acknowledge
10011
1011
Preset Dim
101-1
0000
Extended Data
11001
1000
Status On
11011
0100
Status Off
11101
1100
TABLE 1
Status Request
TABLE 2
April 2007
11111
33
Simpson.qxd
3/6/2007
11:27 AM
Page 34
34
April 2007
Simpson.qxd
3/6/2007
11:28 AM
Page 35
FIGURE 7
1132B Reception
Using a free copy of ZeusLite, load up this program:
[PLm1.txt] PowerLinc 1132B interface
func main()
dim x as integer
dim curchar as integer
x=ComOpen(1,baud=9600,port=3) <- Set Port here
print Open Status = ;x
ComBGSuspend(1,1)
loop2:
curchar = ComGetByte(1)
if curchar = -1 then goto loop2
print curchar
goto loop2
endfunc
FIGURE 8
0000 00000000
0000 00100000
0000 00010000
0000 00110000
0000 00001000
0000 00101000
0000 00011000
0000 00111000
0000 01000000
10
0000 01100000
11
0000 01010000
12
0000 01110000
13
0000 01001000
14
0000 01101000
15
0000 01011000
16
0000 01111000
9 On
0100 00000000
9 Off
0100 00100000
10 On
0100 00010000
10 Off
0100 00110000
11 On
0100 00001000
11 Off
0100 00101000
12 On
0100 00011000
12 Off
0100 00111000
13 On
0100 01000000
13 Off
0100 01100000
35
Simpson.qxd
3/6/2007
A
70
B
78
C
66
D
74
E
65
F
73
G
69
H
77
I
71
J
79
K
67
L
75
M
64
N
72
O
68
P
76
TABLE 5
Func 1
Func 2
Func 3
Func 4
Func 5
Func 6
Func 7
Func 8
Func 9
Func 10
Func 11
Func 12
Func 13
Func 14
Func 15
36
11:28 AM
Page 36
FIGURE 11
FIGURE 10
3
4
5
6
7
8
9
10
11
12
13
14
15
16
All Units Off
All Lights On
On
Off
Dim
Bright
All Lights Off
Extended Code
Hail Request
Preset Dim High
Preset Dim Low
Extended Data
Status On
Status Off
Status Request
TABLE 6
April 2007
68
84
66
82
74
90
78
94
70
86
64
80
72
88
65
67
69
71
73
75
77
79
81
87
85
89
91
93
95
0, No New Codes
1, New Device Set
2, Action Received
goto loop2
The
following
code snipit shows
how you can access
the three global
X10 Command
House Code
See Table 5
Unit Code
See Table 6
Function Code
See Table 6
Repeat Code
65
TABLE 7
1132B Transmission
Transmitting to a device is just a little bit
more complicated. The first thing you need
to do is to send the code 02 to start the
transmission. The 1132B will respond with an
ACK consisting of 06 and 13 if it is available, and
21 if its not.
Once you receive the ACK, you are free to
transmit your device code data. Table 7 shows the
sequence of bytes that need to be transmitted. The
Repeat Code shown is 65, which tells the 1132B
that we want to transmit the code one time. The
1132B supports up to 15 transmissions of the
code, which gives this field a range of 65-79. In
most of the code examples, I have hard-coded this
field to 65.
Once you send the data packet, the 1132B
will respond with a data packet that we can
capture and verify. The only
FIGURE 12 difference is that the 120 start
Simpson.qxd
3/6/2007
11:28 AM
Page 37
CM11A Reception
Load up the following program into ZeusLite and run it.
Make sure you set the port that is connected to the DB-9
connector on the CM11A.
func main()
dim x as integer
x=ComOpen(1,baud=4800,port=3) <- Set Port here
print Open Status = ;x
ComBGSuspend(1,1)
BYTE 1
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Dim Amount
Bit 2
Bit 1
Bit 0
Func
Ext
Bit 2
Bit 1
Bit 0
BYTE 2
print curchar
goto loop2
endfunc
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
House Code
Unit/Function Code
TABLE 9
April 2007
37
Simpson.qxd
3/6/2007
11:29 AM
Page 38
38
April 2007
Final Thoughts
All three of the interfaces
presented here have their place. But
for real automation, you should
look into the 1132B or the CM11A.
Its a simple matter to take a very
inexpensive X10 motion detector
and automatically control lights or
other devices upon entry into or exit
from a room.
In many cases, we cant devote
a PC to our home automation
system or weather station, so
starting next month, I am going to
begin the process of migrating
these projects to one or more microcontrollers. The microcontroller
interface will also yield other
advantages such as faster A-to-D
conversion and the ability to
interface to more sensor types.
NOTE: All the example programs,
as well as the source code, are
available for download at www.
kronosrobotics.com/Projects/x10.
shtml. NV
Fonte.qxd
3/6/2007
1:50 PM
Page 39
BY GERARD FONTE
PULSE SPEED
TIMER
Speculation
The elasticity of the arterial walls
means that the pulse wave acts somewhat like a transverse wave. One
characteristic of a transverse wave in
a liquid is that its fairly slow. Ripples
on a pond move relatively slowly.
There is a delay
between when your
heart beats and
when the pulse is
felt at your wrist
(or elsewhere).
This delay depends
upon a number of
physical factors,
including the elasticity
of the walls of the
arteries. This project
will allow you to
measure this delay and
will also provide a
platform for acquiring
some practical
experience with
high-gain analog and
mixed-signal design.
The output of the
project is a digital pulse
with a duration equal to
the difference between
the start of the
heartbeat and
the pulse.
April 2007
39
Fonte.qxd
3/6/2007
1:51 PM
Page 40
40
April 2007
Fonte.qxd
3/6/2007
1:51 PM
Page 41
The Amplifier
I chose the LMC6482 op-amp
because I had it on hand, as well. The
CMRR (Common Mode Rejection
Ratio) and PSRR (Power Supply
Rejection Ratio) are good for the
LMC6482 (at 82 dB). Most single supply amplifiers should work reasonably
well. If you have noise problems with
your amp, these are the characteristics
to compare. The input impedance of
your amplifier should be in the
megohms, at least (the LMC6482 has
>10 teraohm input impedance).
Both amplifiers are the same.
Keep the leads short and close to the
amplifier. If you stand the gain
resistors R7 and R8, R4, and R5
on end like I did (see Photo 2), place
the body of the resistor at the input
pin of the op-amp. This eliminates the
small amount of noise that might
come in from the 1/2 inch of exposed
resistor lead. (Every little bit helps!)
Ordinary point-to-point wiring was
used, but care was taken to keep the
lead dress as short as possible.
The variable resistors (R2, R6) are
used to set the sensitivity of the
amplifiers. The full gain of 1,000 may
not be needed. The input capacitor
(C1, C2) is used to block the DC that
is present at the electret microphone.
The microphone resistor (R1, R5) is
used to supply power and limit the
current to the microphone.
Microphone
Construction
A number of different microphones were tried with various levels
of success. The best all-around
performance came from an ordinary
electret microphone. I used ones I
already had, which are apparently now
obsolete. They are about 0.27 high
and 0.39 in diameter. This appears to
be similar to Jameco 320178CK, but
anything with good low frequency
response (about 20 Hz) should work
fine. I attached the microphones to a
one inch square piece of 0.25 thick
April 2007
41
Fonte.qxd
3/6/2007
1:52 PM
Page 42
PARTS LIST
CAPACITORS (all 25 volts or greater)
C1-C3, C5-C7
C4
0.1 F
10 F
2.4K
1K
100K Potentiometer
1M
5.1K
100K
SEMICONDUCTORS
D1-D5
U1
U2, U3
U4
U5
Red LED
LMC6482 Op-amp
LM78L05; Low Power +5 Volt Regulator
CD40106; Hex Schmitt-Trigger
CD4013; Dual D Flip-Flop
MISCELLANEOUS
SW1
M1, M2
B1
42
SPST Switch
Electret Microphone (see text)
Nine-volt Battery
April 2007
Operation
In theory, the operation is very simple. Attach the pulse microphone to the
wrist to obtain the wrist pulse and attach
the heartbeat microphone to the chest
and measure the output pulse length on
any oscilloscope or with an interval
timer, or just look at the output LED for
a qualitative indication. However, its a
bit tricker than that in practice.
The microphones must be attached
rather than held in place because
the microphones are very sensitive to
any movement. Holding them in place
creates way too much movement noise.
Elastic bands and Velcro works well.
The pulse microphone works best if
placed on the forearm rather than the
wrist for me anyway (see Photo 4). In
fact, an extremely good signal of greater
than 100 mV was obtained from the
microphone directly (measured at TPP).
Few problems occurred here.
The heartbeat microphone was
attached in a similar manner. However,
the signal was much weaker; only a millivolt or two. Different placements yield
different signals and strengths. Posture
can affect the signal. Additionally, the
heartbeat consists of two distinct signals:
Lub-Dub. Sometimes the second signal
was the largest. This occurred well after
Fonte.qxd
3/6/2007
1:52 PM
Page 43
Going Farther
In order to reduce the variability of
the digital conditioning circuit, the
pulse and heartbeat signals need to be
REFERENCE
Aortic Pulse Wave Velocity:
An Independent Marker of
Cardiovascular Risk , Michel Safer
MD, Oliver Henry MD, Sylvie
Meaume MD, 2002 Medscape. www.
medscape.com/viewartile/443202
April 2007
43
NewsBytesApr07.qxd
3/8/2007
1:54 PM
Page 44
NEWS BYTES
HANDS-ON LEARNING
HELPS KIDS EXPRESS
THEMSELVES
April 2007
NewsBytesApr07.qxd
3/8/2007
4:45 PM
Page 45
NEWS BYTES
April 2007
45
Page46.qxd
3/8/2007
8:31 PM
Page 46
46
April 2007
ReadFeed Apr07.qxd
3/8/2007
9:38 PM
Page 47
PINOUTS YES,
iPOD NO
I really like your magazine. Every
issue has something useful. Your last
READER FEEDBACK
issue had an article about iPod
interfacing, which does not interest me,
but the pinouts for USB and the
schematics for the electret preamp and
RS-232 interface were great.
David Murphy
PREFERENCE FOR
PICAXE
Ron Hackett made a compelling case
for the PICAXE in his recent article series.
It comes down to an extremely low cost,
and fast development and prototyping.
Unlike most Stamp-like devices, this one
can be purchased at very low prices,
making it affordable for the very small automation circuits that dont justify a $50
MCU controller. Also, the fact that we
dont have to buy a separate compiler or
hardware programming device makes the
PICAXE a no brainer purchase! By the
way, theres a small typo in the link for
the maker of the PICAXE you need a
hyphen: www.rev-ed.co.uk.
Eric Engler
Continued on Page 92
April 2007
47
Martin.qxd
3/7/2007
5:33 PM
Page 48
THE MYSTERIOUS
MAGIC
BOX
Part 1
Exploiting
Magnetisms
Invisibility
You
embed
each pawns base
with a 1/4-inch
diameter
neo
(neodymium) magnet and conceal it
with a felt pad
FIGURE 2. The
alignment pattern
showing the pawn
numbering sequence.
48
April 2007
Martin.qxd
3/7/2007
5:33 PM
Page 49
FIGURE 3. The
magnets travel
path related to
field strength.
Artwork courtesy of Allegro
Microsystems.
Total Effective
Air Gap or
TEAG). You
can measure
the strength of
the magnetic
field with a
Gaussmeter or
a calibrated
linear Hall Effect sensor. If you plot
field strength (magnetic flux density),
you will discover it is a function of
distance along the intended line of
travel of the magnet (see Figure 3).
The site www.coolmagnetman.
com/magmeter.htm shows how to
use another Allegro Hall Effect sensor
to make your own Gaussmeter. If this
intrigues you, reference Allegros web
page at www.allegromicro.com/
demo/3515-6.htm and you will find a
calibrated Hall Effect sensor that you
can buy online for about $25. This
is an accurate, easy-to-use tool for
measuring magnetic flux densities.
The manufacturer individually cali-
49
Martin.qxd
3/7/2007
5:34 PM
Page 50
50
April 2007
Martin.qxd
3/7/2007
5:35 PM
Page 51
FIGURE 10.
Project schematic.
April 2007
51
Martin.qxd
3/7/2007
5:36 PM
Page 52
52
April 2007
Martin.qxd
3/7/2007
5:36 PM
Page 53
April 2007
53
Martin.qxd
3/7/2007
5:38 PM
Page 55
FIGURE 17. A
Forstner bit.
55
Martin.qxd
3/7/2007
5:38 PM
Page 56
(a)
(b)
56
April 2007
Martin.qxd
3/7/2007
5:39 PM
Page 57
A Multiple
Purpose Pattern
A paper mask placement/sensor
alignment
pattern comes inside the
box included in each kit. The
FIGURE 25. Placing the 0.1 F
or 0.02 F capacitor as closely
as possible to the Hall Effect
sensors supply voltage pin and
ground. Artwork courtesy of
Allegro Microsystems.
April 2007
57
Martin.qxd
3/8/2007
11:33 AM
Page 58
(a)
(b)
PARTS LIST
Q1, Q2
PN2222A
Misc.
S1
TB1
Two #6 stud ring terminals,
22-16 AWG
(Jameco P/N 103684)
9 VDC battery holder
(Digi-Key P/N BH9V-PC-ND)
Six or four pawns with six or four magnets and felt self adhesive pads
Metallic hardware
19 pieces of plastic hardware
Notes
For the six pawn enhanced version, delete R18-R21. For the basic four pawn version, delete
C13-C16, R22-R25, and U13-U15. Both kits, the PC boards alone, or the boxes alone, are
available from the authors at www.zonemasterskits.com.
58
April 2007
More Pointers
In case you have
an overly attentive
observer, as a back-up
plan, you can move the
ball bearing with the
magnet;
refer
to
Figure 30. This tilt
sensor/switch illustration shows the roller
ball bearing inside the
cylindrical case. It
allows
movement
within and activation
Martin.qxd
3/7/2007
5:40 PM
Page 59
occurs at approximately a
15 degree inclination. As
it makes contact with the
two internal terminals, it
completes the circuit and
allows base drive to the
transistor.
If the switch happens to be
in its normal ON position (not
tilted), this gives you an option other
than the tactile tingling to foil trick
busters.
If the tingling sensation in the
tactile method is too intense, there
is a pot to control this. The
words AMPL CONTROL, 10K are
silk-screened on the PCB next to
this pot. It allows you to decrease
the intensity of the tingling. The
LEDs output is in parallel with this
circuit, so you will simultaneously
decrease the LEDs brightness. The
other 100K pot has a RATE
CONTROL,
100K
silk-screen
nomenclature. You use this to control
the speed at which the flashing LED
progresses through the long followed
by four or six short periods minus,
of course, the missing pawns pulse
or pulses.
Proper Component
Insertion
The two largest components are
the transformer and the battery
holder. The transformer has four
terminals on one side and five on the
other, making it impossible to install it
wrong onto the PCB. The battery
holder is also impossible to install
improperly due to its shape and a
silkscreen pattern showing its exact
placement.
Next month, well cover the
projects theory of operation,
assembly, testing, and examine
the Hall Effect phenomenon and
magnetism. NV
FIGURE 32.
The LM317LZ
voltage regulators calculated
voltage extremes.
April 2007
59
Showcase-NewsBytes-Apr07.qxd
3/8/2007
4:42 PM
Page 60
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 its 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, 7W x 8D x 4 3/4H. Custom units
and various output cables available, see website for details.
www.a-aengineering.com
2521 W. LaPalma #K Anaheim CA 92801
(714) 952-2114 FAX (714) 952-3280
PP:KLWH
ZDWHUFOHDU
/('9
PFG
$%
Evaluation Kits
$299.00
VHFRQGYRLFHUHFRUGHUSOD\EDFNPRGXOH
SUHDVVHPEOHG$
7KH9HOOHPDQ3HUVRQDO6FRSH
LVDFRPSOHWH06VSRUWDEOH
QGV
7KRXVD
VRQ
P
WH
L
PRUH
LWH
V
E
RXUZH
10 pcs (3 days)
1 or 2 layers $249
10 pcs (5 days)
4 layers $695
(up to 30 sq. in. ea.)
includes tooling, artwork,
LPI mask & legend
w w w.pulsar-inc.com sales@pulsar-inc.com
Showcase-NewsBytes-Apr07.qxd
3/8/2007
4:43 PM
Page 61
NEWS BYTES
WORLDS FIRST
DISHWASHER SAFE
KEYBOARD AND MOUSE
Site: www.vandvmachy.com
Email: victor@vandvmachy.com or
tesoreria_mtm@prodigy.net.mx
USA Office: Blink Manufacturing
14019 Whispering Palms Dr.
Houston, TX 77066, PH. 281-397-8101 FAX: 281-397-6220
Mexico Plant: Automatizacion, Ensambles Y Cir. Impresos, S.A.C.V.
Alamo 93, 4o. Piso, Sta. Mnica, Tlalnepantla, Edo. de Mxico 54040
PH: 011 52-555 360-3648 & 011 52 555-361-3351
FAX: 011 52-555 361-5996
FORENSIC LAB
$100 REWARD
We will reduce the invoice of your
next paying recovery case by $100.00
>
>
>
(888) 505-2566
Member:
I E E E & Institute of Computer Forensic Professionals.
NEWEST MEMBERS
OF PIC FAMILY
61
Axelson.qxd
3/6/2007
11:30 AM
Page 62
USB
for
Projects on a Budget
by Jan Axelson
FIGURE 1
If you have an idea for a device that communicates with PCs, the chances are good
that the device will connect to the PC via the Universal Serial Bus (USB). Youre
probably well acquainted with USB as the interface used by mice, keyboards,
drives, cameras, and other mass-market peripherals. But USB is also versatile
enough for use in specialized devices produced in single or small quantities.
62
April 2007
Axelson.qxd
3/6/2007
11:31 AM
Page 63
USBforProjectsonaBudget
transfer data for just about any
purpose. If youre familiar with COMport programming or have existing
COM-port code you want to re-use, a
virtual COM port can be a good
choice. The COM-port data travels in
USBs bulk transfers, so transfers are
fast on a bus that isnt busy.
A virtual COM-port device can
use a generic USB-capable controller
chip or a special-purpose controller
designed for use as a virtual COM port.
A
popular
special-purpose
controller is FTDI Chips FT232BM
USB UART. The chip is a USB/
asynchronous serial converter that
manages all USB communications in
hardware. You dont have to know
anything about USB protocols to use
this chip. For experimenting, DLP
Design (www.dlpdesign.com) offers
DIP adapter modules that each
contain a controller chip, USB
connector, and related components.
You can interface the USB UART
to just about any microcontroller or
other CPU that has a UART or USART
for asynchronous serial communications (Figure 1). On enumeration, the
PC assigns FTDI Chips (free) drivers to
the chip. The drivers cause the chip to
appear as a COM port on the PC. You
can set the baud rate and other parameters for the chips asynchronous port
just as you would for an RS-232 port.
When a PC application writes a
byte to the virtual COM port, the USB
UART receives the byte at the chips
USB port and passes the byte to the
chips asynchronous serial port using
the selected port parameters. A microcontroller that connects to the serial
port can read the received byte. In the
other direction, when the microcontroller writes a byte to its serial port,
the USB UART receives the byte as
serial data and passes the byte to the
PC via USB. COM-port software on
the PC can retrieve the received byte.
If you prefer a parallel interface to
your microcontroller, FTDI Chips
FT245BM USB FIFO chip has a
bidirectional parallel interface instead
of a serial interface. PC applications
can access the chip as a COM port
and exchange data with the chips
parallel port. (The baud rate and other
serial-port parameters dont apply.)
Generic Human
Interface Device
63
Axelson.qxd
3/6/2007
11:31 AM
Page 64
USBforProjectsonaBudget
LISTING 2
Every USB device contains a device descriptor with a Vendor ID
and Product ID that identify the device.
Device Descriptor
0x12
0x01
0x0200
0x00
0x00
0x00
0x08
0x0925
0x1234
0x0100
0x01
0x02
0x03
0x01
USB IN BRIEF
Here are some essential facts for anyone who is
designing a device that uses a USB port.
DEVICE CONTROLLERS
The device controller is hardware that can be
embedded in a microcontroller chip or in a separate chip
that interfaces to a microcontroller or other CPU.
Microcontrollers with embedded USB controllers are
available from many sources, including Microchip
Technology, Atmel Corporation, Silicon Laboratories,
and Cypress Semiconductor. Chips that interface to a
microcontroller or CPU are available from Philips
Semiconductors, National Semiconductor, and others.
Every USB device must have the intelligence to
understand and respond to received requests and other
events on the bus. Controller chips vary in how much
firmware support they require for handling the low-level
USB protocols. Most chip vendors provide example
firmware that you can adapt for a specific application.
TRANSFERRING DATA
TRANSFER TYPE
CONTROL
BULK
INTERRUPT
ISOCHRONOUS
REQUIRED BY ALL
DEVICES
yes
no
no
no
ALLOWED AT LOW
SPEED
yes
no
yes
no
SUPPORTS ERROR
CHECKING
yes
yes
yes
no
GUARANTEED
TRANSFER RATE
no
no
no
yes
GUARANTEED
MAXIMUM TIME
BETWEEN TRANSFER ATTEMPTS
no
no
yes
yes
April 2007
Axelson.qxd
3/6/2007
11:32 AM
Page 65
USBforProjectsonaBudget
functions instead of COM-port programming. Some development boards
come with drivers that you can use to
access the controller on the board.
Other drivers, such as Tetradyne
Software, Inc.s DriverX USB, are for
use with any controller chip.
If youre switching to Windows
Vista, you can use the operating
systems WinUSB driver. The driver
provides functions for accessing any
device that doesnt use Windows
class drivers or isochronous transfers.
Learning More
For many projects, one of the
approaches described here can
provide a way to add USB to a device
with minimal expense and hassle. For
AUTHOR BIO
Jan Axelson is author of the
books USB Complete and USB
Mass Storage.
65
ElectronetApr07.qxd
3/6/2007
3:24 PM
Page 66
66
April 2007
InTheSpotlight.qxd
3/8/2007
5:44 PM
Page 67
67
Page68.qxd
3/8/2007
8:43 PM
Page 68
EMBEDDED LINUX
Starter Kit
FEATURES INCLUDE:
BPI-216N
Since 1985
OVER
21
YEARS OF
SINGLE BOARD
SOLUTIONS
April 2007
www.emacinc.com
Full Page.qxd
3/6/2007
4:19 PM
Page 69
the
one onur brand
t
s
ir
f
e
o
Be th et hold of y updated
full
og
block tpanded andjust bursting y
x
's
e
,
It
man
.
w
g
ne
atalo ducts across at
c
r
lo
o
c
it out
ew pro
with n nges. Check
g
ra
m/catalo
ycar.co
www.ja
DC Relay Switch
KC-5434 $8.75 + post & packing
An extremely useful and versatile kit that enables
you to use a tiny trigger current - as low as
400A at 12V to switch up to 30A at
50VDC. It has an isolated input, and is
suitable for a variety of triggering
options. The kit includes PCB
with overlay and all
electronic components
with clear English
instructions.
Order Value
Cost Order Value
Cost
$25 - $49.99 $7.50 $200 - $499.99 $60
$50 - $99.99 $20 $500+
$75
$100 - $199.99 $40
Max weight 12lb (5kg). Heavier
parcels POA. Minimum order $25.
Note: Products are dispatched from Australia,
local customs duty and taxes may apply.
June
Knock Sensor
KC-5444 $10.00 + post & packing
Add this option to your KC-5442 Programmable High
Energy Ignition system and the unit will automatically
retard the ignition timing if knocking is detected. Ideal
for high performance cars running high octane fuel.
Requires a knock sensor interface which is cheaply
available from most auto recyclers.
Kit supplied with PCB, and all electronic components.
Projects include:
Short circuit tester
Magic eye alarm
Police siren
Electronic organ
and many more.
Log on to
www.jaycar.com/catalog
for your FREE catalog!
410+
page
Catalog
1-800-784-0263
(Monday - Friday 09.00 to 17.30 GMT + 10 hours only).
For those who want to write: 100 Silverwater Rd
Silverwater NSW 2128 Sydney AUSTRALIA
All
prices in
USD
www.jaycar.com
www.jaycar.com
Stiles.qxd
3/7/2007
5:21 PM
Page 70
FUSE AND
METER SAVERS
b y
B i l l
S t i l e s
F1
direct
S1A
off
PL1
Lmp1
Lmp2 SO2
lamp
NE1
direct
neutral - white
off
S1B
ground - green
70
April 2007
lamp
Stiles.qxd
3/7/2007
5:22 PM
Page 71
Construction
Each circuit was built in a plastic
project box. A rather large box is
required for Figure 1. F1 is chosen
for the current rating of S1, PL1, and
SO1, but not larger than 15A when
R1 is rated at 40W. I used two 0.2
Ohm, 20W resistors in parallel for
FIGURE 3. AC
Current Adapter.
voltage
to DMM
J1
S2
S1
J2
S2
current
R1
F1
0.1
hot - black
40 W
J1, J2
ground - green
PL1
neutral - white
NE1
R1
SO1
J3
to DMM
J2
R1
0.1
J3
40 W
PARTS LIST
DESCRIPTION
Grounding AC cord and
plug
Banana plug and wire
Grounding AC socket
Two terminal AC socket
Circuit breaker or fuse
40 watt incandescent
lamp (see text)
60 watt incandescent
lamp (see text)
DPDT center-off toggle
switch
SPDT toggle switch
(optional)
Neon pilot lamp
0.1 ohm, 40 watt
resistor (see text)
Tip jacks to accept DMM
probes
Banana jack
April 2007
71
Marston1.qxd
3/8/2007
1:18 PM
Page 72
Understanding Digital
Buffer, Gate, and Logic
IC Circuits
by Ray Marston
April 2007
Marston1.qxd
3/8/2007
FIGURE 2. Useful
variations of the
MIL/ANSI inverter
symbol.
1:19 PM
Page 73
gates in words.
Buffers A
buffer is a non-inverting amplifier that
has an output drive capacity that is far
greater than its input drive requirement, i.e., it has a high fan-out and
gives a logic 1 output for a logic 1
input, etc.
Inverters An inverter (also known
as a NOT gate) is a high fan-out
amplifier that gives a logic 1 output for
a logic 0 input, and vice versa.
AND Gates An AND gate has an
output that is normally at logic 0 and
only goes to logic 1 when all inputs
are at logic 1, i.e., when inputs A and
B and C, etc., are high.
NAND Gates A NAND gate is an
AND gate with a negated (inverted)
output; the output is normally at logic
1 and only goes to logic 0 when all
inputs are at logic 1.
OR Gates An OR gate has an output that goes to logic 1 if any input is
at logic 1, i.e., if inputs A or B or C,
etc., are high. The output goes to logic
0 only if all inputs are at logic 0.
NOR Gates A NOR gate is an OR
gate with a negated output; it has an
output that goes to logic 0 if any input
is at logic 1, and goes to logic 1 only
when all inputs are at logic 0.
XOR Gates An exclusive-OR
(EX-OR) gate has two inputs, and its
output goes to logic 1 only if a single
input (A or B) is at logic 1; the output
goes to logic 0 if both inputs are in the
same logic state.
XNOR Gates An exclusive-NOR
FIGURE 5. Any AND or OR gate can be
used as a non-inverting buffer element.
(EX-NOR) gate is
an EX-OR gate with
a negated output,
which goes to logic
1 if both inputs are
in the same logic
state, and goes to
logic 0 only if a
single input is at
logic 1.
Figure 3 shows
how the functions
of the eight basic
types of gates can
also be presented
in tabular form via
truth tables (which
show the logic
state of the output
at all possible input
logic state combinations) or symbolically via Boolean
algebraic terms.
Note that, by convention, all logic
gate inputs are
notated alphabetically as A, B, C,
etc., and the output terminal is notated as Y (in counters
and flip-flops, etc., the main output is
usually notated as Q).
The actual logic states
may be represented
by 0 and 1, as shown,
or by L (= Low logic
level) and H (= High
logic level). Also note
in the Boolean expressions that a negated
output is indicated by
a negation bar drawn
above the basic
April 2007
73
Marston1.qxd
3/8/2007
1:19 PM
Page 74
it is sometimes still
useful to be able to
think in negativelogic terms, particularly
when designing gates
in which a low state
output is of special
interest. With this
point in mind, Figure 4
presents a basic set of
two-input positive and
negative logic equivalents. Thus, it can be
seen that a negative
logic AND gate action in which the
output is low only when both inputs
are low is directly available from a
positive logic OR gate, and so on.
Practical Buffer
IC Circuits
Digital buffer ICs have two main
purposes:
to act either as simple nonFIGURE 10. Methods of using a
74LS125 element as a normal buffer. inverting, current-boosting interfaces
between one part of a circuit and
another, or to act as three-state switchFIGURE 8. Functional diagram and truth
ing units that can be used to connect a
table, etc., of the 74LS125 Quad three-state
buffer/bus-driver IC.
circuits outputs to a load, only when
required. If you ever need only a few
output symbol; the negated state is
All modern digital logic circuitry
simple buffers, one cheap way to get
called a not state; thus, a negated Y
assumes the use of the positive logic
them is to make them from spare AND
output is called a not-Y output.
convention, in which a logic 1 state is
or OR elements (as shown in Figure 5)
high and a logic 0 state is low. In the
or from pairs of normal or Schmitt
FIGURE 11. Methods of using a 74LS125 early days of electronic digital circuitry,
inverters (as shown in Figure 6).
element as a three-state line-driving buffer.
an alternative negative logic conFigure 7 lists basic details of nine
vention in which a logic 1 state is
popular, non-inverting digital buffer
low and a logic 0 state is high
ICs. When using these ICs, note that
was also in common use, and
all unused buffers must be disabled by
tying their inputs to one
of the ICs supply lines.
In CMOS devices, the
unused inputs can be
tied directly to either
supply line, but in TTL
FIGURE 12. Functional diagram of the 4050B
devices, it is best (for
or 74HC4050 Hex buffer IC.
lowest quiescent current consumption) to tie
all unused inputs high
via a common 10K resistor. If the unused buffer
is a three-state
FIGURE 13.
type, it should
Functional diagram
and truth table of (if it has indethe 4503B Hex pendent conbuffer IC.
trol) be set into
Positive Versus
Negative Logic
74
April 2007
Marston1.qxd
3/8/2007
1:20 PM
Page 75
75
Marston1.qxd
3/8/2007
1:20 PM
Page 76
FIGURE 23. The 74LS244 Quad buffers can be used as (a) simple Schmitt buffers, or as (b) three-state ganged Schmitt buffers.
FIGURE 22. Functional diagram and truth
table of the 74LS244 (or 74HC244) Octal
(dual Quad) three-state Schmitt buffer IC.
CapAnalyzer 88A
LeakSeeker 82B
April 2007
Full Page.qxd
3/6/2007
4:21 PM
Page 77
ALL
ELECTRONICS
C
$ 25
each
PIR DETECTOR
CAT# SOL-102
QUALITY Parts
FAST Shipping
DISCOUNT Pricing
$ 75
each
1175
CAT# IRD-12
Crydom # EZ240D18.
Control Voltage: 3-15 Vdc.
Output: 18 Amps @ 240 Vac.
SCR output, low leakage solid
state relay. 1.72" x 1.5" x 1.02" high including
0.25" QC/solder terminals. Mounting holes on
2.2" centers. UL, CSA, CE.
CAT# SRLY-18
CAT# VC-25
$ 00
10
Shop ON-LINE
50
each
Zenith # ZEV-209.
A simple, inexpensive
CMOS black and white
security camera that plugs
into your VCR, TV monitor
RCA jacks or can be used
with a video modulator on any
television. Built-in microphone
provides audio surveillance as
well. Can be used in baby's room, garage
or outdoors. Camera is weather-resistant.
240 TV lines. 320 x 240 pixels. 0.5Lux @
F1.4. Lens: f=3.6mm, F=2.0. Adjustable
swivel mounting bracket installs with two
screws. Includes 60 feet of wire, wire staples and power transformer. Kit also
includes window security stickers. UL, CE.
each
each
75
10 for 65 each
100 for 50 each
each
CAT# DCTX-121
2785 $675
2995
CAT# JS-6
each
www.allelectronics.com
1-800-826-5432
FAX (818) 781-2653 INFO (818) 904-0524
E-MAIL allcorp@allcorp.com
NO MINIMUM ORDER All Orders Can Be Charged to Visa, Mastercard, American Express or Discover Checks and Money Orders Accepted by Mail
Orders Delivered in the State of California must include California State Sales Tax NO C.O.D Shipping and Handling $7.00 for the 48 Continental United
States - ALL OTHERS including Alaska, Hawaii, P.R. and Canada Must Pay Full Shipping Quantities Limited Prices Subject to change without notice.
MANUFACTURERS - We Purchase EXCESS INVENTORIES... Call, Write, E-MAIL or Fax YOUR LIST.
April 2007
77
ClassifiedsApr07.qxd
3/8/2007
4:34 PM
Page 78
CLASSIFIEDS
COMPONENTS
CONNECTORS/WIRE/CABLE
Call for Specials of the Month
The RF Connection
213 N. Frederick Ave., Ste. 11NV Full Line of Audio Connectors for Icom,
Kenwood, and Yaesu
Gaithersburg, MD USA 20877
$2.50
http://www.therfc.com/ 8 Pin Mike Female
8 Pin Mike Male Panel
$2.50
Complete Selection of MIL-Spec Coax, 13 Pin DIN for Kenwood $2.75
RF Connectors and Relays
8 Pin DIN for Icom
$1.00
UG-21B/U N Male for RG-213/214 .$5.00 8 Pin DIN for Kenwood $1.50
UG-21D/U N Male for RG-213/214 .$3.25
Prices Do Not Include Shipping
N Connectors for 9913/Flexi4XL/9096
Prices subject to change without notice.
UG-21B/9913 .....$6.00 / Pins Only......$1.50
UG-21D/9913 ..$4.00 / Extra Gasket.$0.75
Orders
800-783-2666
UG-176/U Reducer RG-59/8X, $0.25
Info
301-840-5477
or 5/$1.00
FAX
301-869-3680
UG-175/U Reducer RG-58/58A, $0.25
or 5/$1.00
SEE YOU AT THE DAYTON
Silver Teflon PL-259/Gold Pin, $1.00
HAMVENTION!
or 10/$9.00
(Booths 156-157)
T
H
E
New
PLANS/KITS/
SCHEMATICS
uM-FPU V3
32-bit IEEE 754, SPI and I2C interface
10 to 70 times faster than uM-FPU V2
new instructions: matrix, FFT, string,
12-bit A/D, Flash, EEPROM,
callable user-dened functions
2.7V, 3.3V or 5V, with low power mode
18-pin DIP or SMT, RoHS compliant
uM-FPU IDE code compiler, debugger,
user-dened function programmer
Applications: sensors, GPS, robotics,
signal processing, embedded control
See website for full details
R
F
C
O
N
N
E
C
T
I
O
N
ROBOTICS
www.micromegacorp.com
PUBLICATIONS
ARobot Kit from Arrick
Robotics uses the Basic Stamp
II. Quality metal construction.
Easy to assemble and
very expandable.
$235.00
www.robotics.com/arobot
LCDs/DISPLAYS
CNC Book
Easy CNC
G-code
Bit map draw programs
Bit map image converter
Bit map to G-code
CAD - machine drawings
CAM - DXF to G-code
http://www.cncintro.com
S
QUARE 1
SQUARE
www.servomagazine.com
BUSINESS SERVICES
ELECTRONICS
(208) 664-4115
Hayden, ID USA
Stepper Motor
Book
Easy Step'n
Table Of Contents
Ordering Info
On Web Site
http://www.stepperstuff.com
(208) 664-4115
Hayden, ID USA
78
April 2007
ClassifiedsApr07.qxd
3/8/2007
4:35 PM
Page 79
CLASSIFIED ADVERTISING
$50.00 Per Inch No extra charge for color.
Classified ads must be paid in full prior to the closing date or the ad will be
placed in the following issue, at our discretion. Minimum charge is one inch with
half-inch increments. No proofs will be sent. Ads to be typeset by Nuts & Volts
SECURITY
PCB SOFTWARE
must be received by the closing date. Supplied ads must be received by the
artwork due date.
Call 951-371-8497 or email classad@nutsvolts.com for closing dates,
available sizes, and special prepay discount offers.
AUDIO/VIDEO
YOUR COMPLETE
SOLUTION!
PCB Design
PCB Simulation
CAD/CAM Menu
121747, Hobby Vers., $175
121743, Pro. Version, $275
www.nutsvolts.com
www.KELVIN.com
SOLAR PRODUCTS
MICRO
CONTROLLERS
DESIGN/ENG
SERVICES
MicroStamp11
Worlds Smallest 68HC11
Microcontroller Module!
z
telemetry
z
microrobotics
z
smart toys
z
animatronics
z
model railroading
z
home automation
HARDWARE
WANTED
DEC EQUIPMENT
WANTED!!!
Digital Equipment Corp.
and compatibles.
Buy - Sell - Trade
CALL KEYWAYS 937-847-2300
or email buyer@keyways.com
www.technologicalarts.com
Toll-free (USA & Canada):
1-877-963-8996
Visa MasterCard Discover Amex
SATELLITE
FREE Satellite TV Buyers Guide
C-band Ku-band 4DTV FTA
800-500-9275
www.skyvision.com
April 2007
79
BookstoreApr07.qxd
3/8/2007
8:56 PM
Page 80
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
Troubleshooting
Electronic Equipment
by R. S. Khandpur
From cell phones to
medical instruments
to digital and microprocessor based
equipment, this
hands-on, heavily
illustrated guide
clearly explains how
to troubleshoot,
maintain, and repair
all types of electrical
equipment.The
author covers all the essentials such as
necessary tools, soldering techniques, testing, fundamental procedures, and mechanical and electrical components. $49.95
April 2007
PROJECTS
Electronic Circuits
Fundamentals & Applications:
Third Edition
by Mike Tooley
In Electronic Circuits, Mike
Tooley provides all the
essential information
required to get to grips
with the fundamentals of
electronics, detailing the
underpinning knowledge
necessary to appreciate
the operation of a wide
!
range of electronic
NEW
circuits, including amplifiers, logic circuits, power supplies, and
oscillators.The third edition now offers an
even more extensive range of topics, with
extended coverage of practical areas such
as circuit construction and fault finding, and
new topics including circuit simulation,
electronic CAD, and a brand new chapter
devoted to the PIC microcontroller.
$34.95
BookstoreApr07.qxd
3/8/2007
8:57 PM
Page 81
ROBOTICS
SERVO CD-ROM
HOME COMPUTERS
PC Mods for the Evil Genius
by Jim Aspinwall
If you yearn for the
coolest, most crazed
puter around, PC Mods
for the Evil Genius is the
key to the kingdom!
This book shows you
how to supercharge
your PC and create a
jaw-dropping system
that cannot be purchased off any shelf,
anywhere! You get
complete, easy-to-follow plans, clear diagrams and schematics, and lists of parts and
tools, so you know what's needed before
you begin. $24.95
MICROCONTROLLERS
PIC Basic Projects
by Dogan Ibrahim
Covering the PIC
BASIC and PIC
BASIC PRO compilers, PIC Basic Projects
provides an easy-touse toolkit for
developing applications with PIC
BASIC. Numerous
simple projects give
clear and concrete
examples of how
PIC BASIC can be
used to develop electronics applications,
while larger and more advanced projects
describe program operation in detail and give
useful insights into developing more involved
microcontroller applications. $29.95
WE ACCEPT VISA, MC, AMEX, and DISCOVER Prices do not include shipping and
may be subject to change. Ask about our 10% subscriber discount on selected titles.
April 2007
81
DesignCycle.qxd
3/6/2007
11:33 AM
Page 82
THE
BY PETER BEST
DESIGN
CYCLE
April 2007
DesignCycle.qxd
3/6/2007
3:56 PM
Page 83
April 2007
83
DesignCycle.qxd
3/6/2007
11:33 AM
Page 84
April 2007
HERE WE ARE
The concept of the 8051 hasnt
changed but the way the 8051
concept is applied has changed
exponentially. As you might imagine, I
see lots of interesting stuff pass across
the benches at EDTP Electronics. One
of the many variants of the 8051 that
caught my eye was the Silicon
Laboratories C8051F120. Just a cursory glance at Figure 1 speaks volumes.
An 8KB bank of SRAM coupled with a
DesignCycle.qxd
3/8/2007
11:23 AM
Page 85
C8051F120 MEMORY
ORGANIZATION
Even
though
the
Silicon
Laboratories CIP-51 is a proprietary
implementation, it has a standard
8051 program and data address
configuration. A standard 8051
addressing configuration consists of
256 bytes of data RAM, with the
upper 128 bytes being dual-mapped.
Indirect addressing accesses the
upper 128 bytes of general-purpose
RAM, and direct addressing accesses
the 128 byte SFR address space. The
lower 128 bytes of RAM are accessible via direct and indirect addressing.
The first 32 bytes are addressable
as four banks of general-purpose registers, and the next 16 bytes can be byte
addressable or bit addressable. When I first encountered this small segment of
memory, I had to really
think about what was going
on as I was writing my code
in assembler. Dont get too
caught up in the seeming
complexity as the Keil 8051
C compiler well be using
takes care of us in this area.
What you see in Figure 2
describing the C8051F120
256-byte RAM segment
layout is enough for now.
The
Silicon
Laboratories
C8051F120 devices include an onchip 8KB RAM block and an external
memory interface (EMIF) for accessing
off-chip data memory. Using overlapping 8KB boundaries, the on-chip 8KB
RAM block can be addressed over the
entire 64KB external data memory
address range. External data memory
address space can be mapped to allow
the programmer to use only the
on-chip memory or a combination of
on-chip and external memory.
For instance, addresses up to the
8KB boundary can be directed to onchip memory and any addresses
above the 8KB address marker are
directed to EMIF. If youre using
external memory that multiplexes the
address and data lines, the EMIF
can be configured to accommodate
multiplexed address/data lines. Figure
3 is a graphical depiction of the
C8051F120s external RAM space.
The C8051F120s program memory consists of 128KB of banked Flash
memory. As you can see in Figure 4,
the 1024 bytes between addresses
0x1FC00 and 0x1FFFF are reserved.
This memory may be reprogrammed
in-system in 1024 byte sectors, and
requires no special off-chip programming voltage. Notice that there are
also two 128-byte sectors beginning at
address 0x20000 and ending at
address 0x200FF, which may be used
by the programmer for data storage.
Again, this memory map information
is good for the head and is taken care
of for you by a good C compiler.
85
DesignCycle.qxd
3/6/2007
11:33 AM
Page 86
SOURCES
Silicon Laboratories (www.silabs.com) C8051F120;
C8051F120 Development Board
XBR2 = 0x40;
P1MDOUT |= 0x40;
TOOLING UP
When it comes to 8051 C compilers, you will have to
look hard to beat Keils uVision3 8051. The Keil 8051 C
compiler includes native support for the Silicon
Laboratories C8051F120. Just in case youre wondering
why I didnt go into excruciating detail about the
C8051F120s internals and memory areas, Listing 1 shows
an excerpt from the C8051F120 include file (c8051f120.h)
that is part of the Keil 8051 C compiler.
Its pretty obvious that the include file excerpt is a manto-machine mapping of some of the C8051F120s SFRs
(Special Function Registers). I purposely picked out the
Digital Crossbar definitions to give you an idea of how to
address the Digital Crossbars configuration registers. Lets
walk through a very simple example of Digital Crossbar
configuration. Our goal is to enable general-purpose I/O
P1.6 as a push-pull output that will drive an LED. Push-pull
configuration of the general-purpose I/O port means that
when we write a logical 1 to the port pin, the output of the
port pin will go logically high. Conversely, a logical low I/O
instruction from the application will render a logical low at
the targeted general-purpose I/O pin output.
LISTING 1
sfr
sfr
sfr
sfr
sfr
sfr
sfr
sfr
sfr
sfr
86
P4MDOUT
SPI0CKR
P5MDOUT
P6MDOUT
P7MDOUT
XBR0
PCA0CPH5
XBR1
XBR2
EIE1
=
=
=
=
=
=
=
=
=
=
0x9C;
0x9D;
0x9D;
0x9E;
0x9F;
0xE1;
0xE2;
0xE2;
0xE3;
0xE6;
April 2007
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
NEXT TIME
Page87.qxd
3/8/2007
8:46 PM
Page 87
April 2007
87
Full Page.qxd
3/8/2007
11:26 AM
Page 88
Got excess electronic inventory? Send us your list or give us a call, wed be happy to make an offer!
Call 1-800-4-HALTED (1-800-442-5833) to order...
HSC#21183
$24.95
HSC#80849 $27.50
HSC#80821
HSC#21371
$4.95
$4.95
HSC#80822 $14.95
Cushcraft 710 - 750MHz Antenna
Backpack Bantam
Parallel-port external CD ROM
HSC#21153
$12.50
HSC#20972 $19.95
Small DC Gearmotor
6 - 12 VDC, 3 - 6 RPM
$2.50
HSC#80812 $12.95
HSC#19312
HSC#19976
$12.50
$19.95
Belden Blowout!
Genuine Belden Cable at super prices!
Belden 8240 RG-58/U Coax Cable
20 AWG center cond., 95% shield
Black PVC jacket, .193 dia.
1000 Easy Box Dispenser- list $431!
HSC#21381
$19.95
HSC# 20829
$12.50
$149.00
$149.00
HSC#21379
700MHz Transceiver
Hobbyist Special!
HSC#21067
HSC#21380
HSC#21369
HSC#20999 $29.50
Search
Deals @ HSC!
$149.00
Fujitsu PenCentra
Tablet Computer Clearance!
HSC#21154 $95.00
Logitech QuickCam Express
HSC#80842
HSC#21061
$12.50
$19.50
HSC#20794 $39.95
HSC#20529
HSC#21066
$9.95
Step-down Toroid Transformer
240 - 120 VAC 250VA
$2.95
HSC#21058 $35.00
HSC#20724 $34.95
HSC#80815 $19.95
HSC#21001 $65.00
HSC#21118
$2.95
HSC#80813
$24.95
HSC# 80797
$119.00
Since 1964!...
April 2007
seller ID:
hscelectronicsupply
OpenComm.qxd
3/6/2007
11:55 AM
Page 89
OPEN
COMMUNICATION
MIMO 101:
89
OpenComm.qxd
3/6/2007
11:55 AM
Page 90
MIMO IMPROVES
ON DIVERSITY
MIMO (pronounced my mo)
systems use diversity, as well as other
techniques to further improve signal
strength and reliability of reception in
the face of multipath effects. It goes
further, however, in that it also
improves data rate. MIMO makes use
of a minimum of two transmitters (TX)
and two receivers (RX). In many
90
April 2007
WHERE IT IS USED
The first widespread use of
MIMO is in WLANs. It is available in
the wireless access points (APs) and
gateways and inside laptop computers. It is being incorporated in the
latest version of the IEEE 802.11
WLAN standard. The most widely
used current standard is 802.11b and
11g. The 11b version is the oldest,
operates in the 2.4 GHz band with
direct sequency spread spectrum
(DSSS), and gives 11 Mbps at a range
to 100 meters. The 11g standard also
works in the 2.4 GHz band but uses
OFDM and supports data rates to 54
Mbps up to 100 meters. A lesser used
standard is 802.11a which works in
the 5.8 GHz band and uses OFDM to
give up to 54 Mbps.
The IEEE is currently working to
finalize the next version which is
802.11n. A final version is not
expected to be ratified until early
2008. In the meantime, chip vendors
and Wi-Fi equipment vendors are
offering a pre-n or draft-n version of
the standard. The 11n standard
incorporates MIMO. The Wi-Fi
Alliance who certifies 802.11
products for interoperability is even
certifying pre-n versions of the
equipment. The most common
configuration is the 2x3 version with
two transmitters and three receivers.
A typical unit is shown in Figure 2.
OpenComm.qxd
3/6/2007
11:55 AM
Page 91
O P E N C O M M U N I C AT I O N
The final 11n units will deliver a data rate of over 200
Mbps up to 100 meters with greatly improved reliability.
It is this version of the standard that is expected to
be widely used to distribute video in home networks
when Internet Protocol TV becomes available this year
and beyond.
MIMO is also expected to be used with WiMAX. This
is the name of the IEEE 802.16 wireless metro area
network. It is not widely available yet, but is being
built now as a wireless broadband service to provide
high speed Internet service to those in rural areas with
no DSL or cable. Many even expect WiMAX to be
used for wireless voice over Internet protocol (VoIP)
telephone calls that compete with cellular. Some even
see WiMAX as the fourth generation (4G) of cellular, but
that remains to be seen. In any case, WiMAX works in
the 2.4-2.7 and 3.5 GHz bands so its a great choice
for MIMO.
MIMO is more difficult to integrate into cell
phones because they are so small and make antenna
placement and spacing a major problem. MIMO is
used in base stations and that usage will expand in
the future. MIMO will show up in laptops where it
is possible to mount and hide two or more
antennas. MIMO is a great wireless technique and
available now because of the power of digital signal
processing. NV
Dio
rs
o
t
des
is
s
e
R
Order PCB
Get FREE parts
s
T r a Capacitors
r
o
t
nsis
c
e
tors
nn
o
C
O nly $50 for 5pcs 4 " x4 " 2L
Free Solder mask and silkscreen !
FREE
With first order
Http :// EzPCB . COM
Sales @ EzPCB . COM
ReadFeed Apr07.qxd
3/8/2007
9:38 PM
Page 92
READER FEEDBACK
FLYIN HIGH FOR
NEAR SPACE
As an engineer and experimenter,
I have found myself very interested in
Paul Verhages articles. As an excommercial pilot and sometimes almost
daily commercial jet passenger, I am
interested in the regulatory and safety
aspects of his hobby.
His work is very stimulating and it
reminds me of some projects Id like to
tackle if I knew more about how to get
started. I know where to get the helium
and the balloons but late at night, at
FL37, sometimes I think about the
sound of one of Verhages balloons
going through the compressor of a Rolls
or Garrett engine :>).
In all seriousness, I would like to
get much more information about the
safe way to approach this hobby.
Larry Cagle
GETTING
GROUNDED
I was just reading the current
edition and came across the Q&A on
grounds, and why chassis ground is
called chassis ground.
In the days of tube radios and
televisions, most if not all of the
chassis were made of tin or formed
metal; the majority of wiring on those
old tube sets was single wire with the
return path being the chassis. On some
houses, one had to be careful with
the plug because if you plugged it in
upside down, the chassis would be hot.
I have been buzzed numerous times
from a hot chassis.
Earth ground was indeed
referenced to Earth and mostly had to
do with antennas since Earth formed
half of a Marconi or Hertz antenna.
Electrical circuits were not
referenced to Earth in a lot of early
construction; some of the earliest wiring
was floating with either side to Earth at
65 volts and phase-to-phase at 130 volts.
Again a hot chassis, but it would not
shock you since the wiring was not
ground referenced.
If the building had grounded
construction, it would be at the fuse
panel with a ground rod connected to
92
April 2007
STUDENT NEEDS
HELP PICing
I am an electronics student, and,
though Ive been playing around with
stuff since I was about eight years old,
Im just getting started this being my
first post-secondary year. Being a
programmer, I am interested in getting
into PICs, mainly since I found out that
Microchip gives out free samples ;). I
was hoping you could point me to a
cheap programmer for them. It can be
USB or COM, kit or assembled, but not
too hard to build if it is a kit. I would like
to be able (if possible) to program a
range of PIC models. Could you point
me to some products, please?
Jeff MacEachern
Author Response:
I get this question often. There are
lots of choices including programmers
on eBay. I even offer a PIC programmer
kit at my website www.elproducts.com
for $19.95 that is easy to build and is
powered off the serial port of a
computer. But most people want a USB
programmer though, since many
computers dont even offer serial ports
anymore.
Because of that, I wrote a summary on the various USB PIC programmers
in the October 06 Nuts & Volts issue.
If you can get a hold of that, it might
help you make the decision. In the
article, I included the PICkit2 USB
powered programmer from Microchip
at MicrochipDirect.com and after
PATENTED ANSWER
Id like to note some inaccuracies
in the Feb 07 article Open
Communication p.88-89; Julius
Lilienfeld invented and patented the
transistor in the early 1930s:
Pat #1,745,175 Jan 28, 1930
Pat #1,877,140 Sep 13, 1932
Pat #1,900,018 Mar 7, 1933
Reading the patents shows that he
clearly knew what he was doing.
Remember, at that time, the Great
Depression was rolling and funds for
developing a device from an unknown
were not available.
I think that the records show that
Shockley et al. were well aware of those
patents!
Author Response:
Thanks for your input on my Feb
Nut s & Volt s column. You are right
about Lilienfeld being the first to
invent the transistor. In fact, it was
actually a field effect transistor and
not the point contact and BJT that
Shockley and his crew came up with.
But as I have read, Lilienfeld never did
actually build and test one. Nevertheless, I agree that the patents tell the
story. The situation is not unlike the
story I told in the article. Tesla gets the
patents, but Marconi gets all the fame
and money.
I just went with the conventionally accepted wisdom that the transistor
was invented at Bell Labs. Lilienfeld was
certainly first, however. I acknowledge
that. I appreciate you writing.
Lou Frenzel
TechForum.qxd
3/8/2007
1:34 PM
Page 93
TECH
FORUM
All questions AND answers are submitted by Nuts & Volts readers and are intended to promote the exchange of ideas and provide assistance
for solving problems of a technical nature. Questions are subject to editing and will be published on a space available basis if deemed suitable
by the publisher. Answers are submitted by readers and NO GUARANTEES WHATSOEVER are made by the publisher. The implementation of
any answer printed in this column may require varying degrees of technical experience and should only be attempted by qualified individuals.
Always use common sense and good judgement!
>>> QUESTIONS
I would like to know if I can hook
up a Velleman K4003 amplifier to my
speakers directly to increase volume
and what does the circuit wiring entail.
#4071
Paul Kozlowski
Schertz,TX
I'm looking to build a battery
charger that can continuously charge a
battery under load such as you
would find in an online UPS.
I'm not sure how this would differ
from a regular continuous maintenance
charger (i.e., a charger that supplies
a trickle charge, as well as periodic
higher power plate cleaning charges).
Any guidance would be appreciated.
#4072
Don Stahl
via email
I am in the process of restoring an
older Chevrolet truck (1957) and would
like to put in high intensity discharge
(HID) headlights like some of the
high-end automobiles now have. Im
looking for schematics, pointers, and
any other information on the
ballast/control circuit to drive them.
#4073
John Blankenagel
Hillsboro, OR
I've got an older computer (Plll at
500 MHz) and would like to add a
larger hard drive (250 GB @ ATA133 or
93
TechForum.qxd
3/8/2007
1:35 PM
Page 94
>>> ANSWERS
I am new to programming and
need some advice on which assembly
code is better to start out on. What
book (or books) should I get?
#1 If youre new to programming,
there are two types of programming
to choose from. The first is procedural
(which includes assembly); the
second is object orientated. Object
Orientated Programming (OOP) can
easily be learned by downloading
Express Editions of Visual Studio (for
free) from Microsoft; along with
numerous code samples and support
information (from MSDN, also free);
there are a lot of beginning programming books available for this platform.
OOP has the advantage that it is the
standard for corporate development.
Q U E S T I O N S
I have an antique tractor that has a 6 VDC electrical system. Because this tractor is not used like the daily workhorse
it once was, I have to charge the battery every month or so.
I can find 12 VDC float chargers; and, in fact, use these $15
gems to maintain most of my lead-acid batteries. Can you
provide me a circuit that will maintain the voltage of 6 VDC
lead-acid batteries? The circuit would stay plugged into the
110 VAC mains and monitor the battery voltage.
#1 I have an Enerwatt 612-900 that would do what you
ask. It looks like a larger-than-normal wall-wart, and comes
with clamps and ring terminals.
It charges 6 or 12 volt lead-acid batteries with three
stage charging and is designed to be left on the battery
indefinitely.
I paid about $35 (Canadian) for it, and its available
from Prairie Battery (www.prairiebattery.ca).
Andy Fenstad
Winnipeg, Manitoba
#2 I have not built this, but I carefully checked the
ratings. The fuse is 5 X 20 mm and is to be mounted on perf
board using two fuse clips. I chose 315 mA because it is a
size used in meters and is readily available. The transformer
94
April 2007
A N D
A N S W E R S
Figure 1
PARTS LIST
QTY PART
2
FUSE HOLDER
1
FUSE 5x20 MM
1
XFMR
1
BRIDGE
1
R6 1/4W
1
R1 1/2W
1
TIP41
1
R2 1/2W
2
D1, D2
MOUSER PART #
441-EPD203P
504-GDB-315MA
41FG010
627-S1VB20-7000
291-470-RC
293-56-RC
511-TIP41CN
293-0.5-RC
78-1N4148
QTY
1
1
1
1
1
1
PART
PN2222
GRN LED
RED LED
R3 1/4W
R4 1/4W
100 OHM POT
MOUSER PART #
512-PN2222TA
604-WP7104SGD
604-WP63SRD
291-270-RC
291-240-RC
652-3352E-1-101LF
TechForum.qxd
3/8/2007
1:35 PM
Page 95
Q U E S T I O N S
A N D
A N S W E R S
95
TechForum.qxd
3/8/2007
1:46 PM
Page 96
Q U E S T I O N S
A N D
A N S W E R S
96
April 2007
IndexApr07.qxd
3/8/2007
LOOK FOR
10:26 PM
Page 97
SEARCH FOR
FIND
AMATEUR
RADIO AND TV
CYBERCRIME TOOLS
AND SOFTWARE
BATTERIES/
CHARGERS
DESIGN/
ENGINEERING/
REPAIR SERVICES
BUSINESS
OPPORTUNITIES
EZ PCB ................................................91
BUYING ELECTRONIC
SURPLUS
CCD CAMERAS/
VIDEO
CIRCUIT BOARDS
AP Circuits ...........................................61
Blink Manufacturing .............................61
Cunard Associates ...............................60
Dimension Engineering ........................47
ExpressPCB .........................................29
EZ PCB ................................................91
IMET Corporation .................................87
Maxstream ...........................................31
PCB Cart ..............................................68
PCB Fab Express ................................47
PCB Pool .............................................44
Pulsar, Inc. ...........................................60
R4Systems, Inc. ...................................91
Schmart Board .....................................60
COMMMUNICATION
COMPONENTS
COMPUTER
Hardware
ActiveWire, Inc. ....................................60
Earth Computer Technologies .............61
Halted Specialties Co. ..........................88
Microcontrollers / I/O Boards
Abacom Technologies ..........................15
Avcom Tec, LLC ...................................26
Conitec DataSystems ...........................46
EMAC, Inc. ...........................................68
HobbyLab .............................................60
microEngineering Labs ........................24
Net Media ...............................................2
Parallax, Inc. ..........................Back Cover
Pololu Robotics & Electronics ..............30
R4Systems, Inc. ...................................91
Scott Edwards Electronics, Inc. ...........68
DIGITAL EVIDENCE
EDUCATION
EMBEDDED TOOLS
NetBurner................................................7
ENCLOSURES
EVENTS
ROBO Business....................................18
HARDDRIVE DATA
RECOVERY
IP HOME
AUTOMATION
MicroAutomata......................................44
KEYBOARD
EMULATORS
LASERS
AD INDEX
MOTORS
Jameco ................................................25
AP Circuits ................................61
OPTICS
PROGRAMMERS
PUBLICATIONS
RF TRANSMITTERS/
RECEIVERS
ROBOTICS
CrustCrawler ........................................24
Hobby Engineering ..............................14
HobbyLab .............................................60
Jameco ................................................25
LabJack ................................................26
Lemos International Co., Inc. ...............96
Lynxmotion, Inc. ...................................15
Net Media ...............................................2
Ocean Server Technology, Inc. ...........60
Pololu Robotics & Electronics ..............30
ROBO Business....................................18
Robot Power .........................................15
SATELLITE
SECURITY
TEST EQUIPMENT
TOOLS
WEATHER
MONITORING
WIRE, CABLE
AND CONNECTORS
LSI (micon)
MISC./SURPLUS
WIRELESS
PRODUCTS
MicroAutomata......................................44
April 2007
97
Full Page.qxd
3/6/2007
4:31 PM
Page 98
C i rcuitSpecialists.com
PowerSupply1
Any Quantity
$28.99
$15.98
$32.99
$17.69
$38.50
$21.18
$48.99
We are Making room for our new ROHs
Available in
$26.93
compliant versions of these power supplies,
5,7.5,9,12,24,28,36V
take advantage of these great prices WHILE
SUPPLIES LAST. No backorders. These models will be replaced by
HOT
identical models except the new stock will be ROHs compliant and will
SALE!
be sold at our regular prices. Stock levels are available at our web site.
Details at Web Site > Power Supplies > PowerSupply1 Single Output Switching Power Supplies
Model
$34.95!
In Business
CSI-STA
CSI-STATION1A
0-36V
0-72V
5A
90W
3A
108W
1.5A
108W
Programmable
Programmable DC Electronic
Electronic Loads
The CSI 3700 series electronic
loads are single input programmable DC electronic loads that
provide a convenient way to test
batteries and DC power supplies. It offers constant current mode, constant resistance
mode and constant power mode. The backlight LCD,
numerical keypad and rotary knob make it much easier to
use. Up to 10 steps of program can be stored.
Model
Input Voltage
CSI3710A
0-360V DC
CSI3711A
0-360V DC
Input Current
Input Power
0-30A DC
0-150W
0-30A DC
0-300W
Since 1971
Item#
CSITWZ-STA
CSITWZ-STATION
$689.00
As Low As
$93.00!
CSI3003X-5:
CSI3003X-5 0-30v/0-3amp 1-4: $105.95 5+: $99.50
CSI5003X5:
CSI5003X5 0-50v/0-3amp 1-4: $114.95
$114.95 5+: $109.00
CSI3005X5:
CSI3005X5 0-30v/0-5amp 1-4: $119.00
$119.00 5+: $114.00
$114.00
CSI3711A:
CSI3711A: $499.00
and CSI906
Item#
CSI-STA
CSI-STATION2A
$29.00
0-18V
DC Current
Power (max)
CSI3710A: $349.00
DC Voltage
www.Cir cuitSpecialists.com
$49.95
C i rcuitSpecialists.com
C i rcuitSpecialists.com
CSI3003X3:
CSI3003X3 0-30VDCx2 @3A $188.00 5+: $183.00
CSI3005XIII:
CSI3005XIII 0-30VDCx2 @5A $239.00 5+: $229.00
Details at Web Site > Test Equipment > Power Supplies
C i r c u i t S p e c i a l i s t s , I n c . 2 2 0 S . C o u n t r y C l u b D r. , M e s a , A Z 8 5 2 1 0
8 0 0 - 5 2 8 - 1 4 1 7 / 4 8 0 - 4 6 4 - 2 4 8 5 / FA X : 4 8 0 - 4 6 4 - 5 8 2 4
CoverInside.qxd
3/6/2007
2:16 PM
Page 2
C i rcuitSpecialists.com
Ci rcuitSpecialists.com
Ci rcuitSpecialists.com
Stepper Motors
Part #:
42BYGH404
57BYGH207
57BYGH303
57BYGH405
85BYGH350B-03
85BYGH350C-03
Sale
Item# CSI825A++
CPU Controlled
$149.00!
Built-in Vacuum System
Temperature Range:100C to 480C / 212F to 896F
15-Minute Stand-By temperature "sleep" mode
Power:110/120 VAC, 320 W maximum
Motor Frame
Size:
NEMA 17
NEMA 23
NEMA 23
NEMA 23
NEMA 34
NEMA 34
Holding Torque:
Price:
3.4kg.cm/47oz.in
8kg.cm/111oz.in
15kg.cm/208oz.in
20kg.cm/277oz.in
48kg.in/665oz.in
63kg.cm/874oz.in
$17.95
$24.95
$29.95
$34.95
$79.95
$119.95
2 Phase Microstepping
Microstepping
Stepper Motor Driver (Bi-polar & Unipolar Motors)
Part #:
Dimensions:
MicroStep:
Price:
1(200), 1/2(400), 1/4(800),
XCW220 100mm x 61mm
$39.95
x 19mm
1/8(1600)
1/2(400), 1/8(1600)
CW220 99mm x 65mm
$49.95
x 30mm
CW230
115mm x 72mm
x 32mm
CW250
140mm x 94mm
x 45mm
147mm x 97mm
x 30mm
CW860
$59.95
$119.95
$69.95
Only
$69.99!
Powered
Powered Breadboard
Breadboard w/out DMM: $69.00
Protek
ength Analyzers
Protek 2.0 & 2.9GHz Field Str
Strength
Price
Breakthrough!
3290N
Special
4 8 0n e s
i
T V oLl u t i o n
Res
SONY
Super HAD
CCD equipped
cameras feature dramatically improved
light sensitivity
Weather Proof
Signal System: NTSC
Image Sensor: 1/4" SONY Super HAD CCD
Horizontal Resolution: 420TV lines
Min. Illumination: 1Lux/F1.2
Item# VC-805:
$53.95
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.Cs, 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 wont 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
Cover.qxd
3/8/2007
1:27 PM
Page 108
Vol. 28 No. 4
NUTS & VOLTS
Part #
Pins
SX20AC/SS-G
20
SX28AC/DP-G 28
SX28AC/SS-G
28
SX48BD-G
48
I/O
12
20
20
36
EE/Flash
2K bytes
2K bytes
2K bytes
4k x 12 words
RAM
137 bytes
136 bytes
136 bytes
262 bytes
Qty. 1
$2.79
$2.79
$2.79
$2.79
Qty. 5
$2.51
$2.51
$2.51
$2.51
Qty. 100
$2.23
$2.23
$2.23
$2.23
Qty. 1000
$1.89
$1.89
$1.89
$1.89
If you have not yet tried programming with an SX, this is the time to get started. Parallax offers free
development software, including SX/B, a BASIC language compiler for the SX microcontroller. The SX/B
compiler speeds the programming of SX chips by providing a simple, yet robust high-level language
familiar to Parallax customers designed to help the transition from high-level programming (ie. BASIC
Stamp) to low-level programming (assembly language). For beginners we recommend the SX Tech Tool
Kit PLUS (#45181; $99.95) and a 7.5 VDC 1 Amp power supply (#750-00009; $10.95).
April 2007
Parallax, and the Parallax logo are trademarks of Parallax, Inc. BASIC Stamp
is a registered trademark of Parallax Inc.
We have lowered our quantity pricing on SX chips. Now you can continue to use SX microcontrollers
in your production projects and enjoy even better pricing. Parallax SX microcontrollers are RoHS
Compliant, RISC architecture, high-speed microcontrollers with flash program memory, insystem programming and debugging capability.
U.S.
$5.50
CANADA
74470 89295
$7.00
0 4>