Vous êtes sur la page 1sur 100

Cover.

qxd 12/8/2005 9:51 PM Page 100

Vol. 27 No. 1
Micro-Control your

NUTS & VOLTS


World with the
NEW StampWorks
Experiment Kit
Our popular StampWorks Manual
has been revised and rewritten
and is back better than ever!
The StampWorks manual includes
35 experiments based on the
BASIC Stamp® 2 microcontroller

CanadArm • ANALOG SYNTHESIZER • PLAYSTATION ROBOT CONTROLLER


and the amazing Professional
Development Board. StampWorks
gives you the hardware, the
electrical components and, most
importantly, the know-how to
become a confident embedded
programmer. Working your way
through StampWorks you will learn
about efficient embedded design,
connecting circuits and “smart”
sensors to the BASIC Stamp, adding
computer control to your projects,
and “Power PBASIC” programming
techniques.

After you’ve worked your way through


StampWorks you’ll be able to: flash LEDs,
use 7-segment and LCD displays, monitor one
or several push-buttons or switches, add sounds
and sound effects to your projects, build a simple
light-controlled theremin, control servos and stepper
motors, measure temperature, voltage, and so much
more! When you are finished, you will be able to
write your own BASIC Stamp programs to control
your hobby, engineering, and student projects using a
variety of electronic circuits – and you’ll be able to do
it with the confidence.

Name Stock # Price


StampWorks Experiment Kit 27297 $249.00
Ja n u a r y 2 0 0 6

StampWorks Manual 27220 $24.95


CoverInside.qxd 12/7/2005 2:47 PM Page 2

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


Premier Repairing System w/Power Supply 2.9GHz RF Field Str
Strength
ength Analyzer
Microprocessor controlled design that pro-
Fantastic Low
vides stability and precision of temperature The 3290 is a high quality hand-held Price:
and airflow settings during the rework RF Field Strength Analyzer with wide $1899.00!
process. A full digital display of tempera- band reception ranging from 100kHz
•WFM/NFM/AM/SSB modulated signals may
ture and power source make everything to 2900MHz.The 3290 is a compact & be measured.
clear to the user while the unit provides lightweight portable analyzer & is a •Signal Levels up to 160Channels can be
vast flexibilty at the rework station with must for RF Technicians. Ideal for displayed simulaneously on the LCD
the built-in adjustable power supply that provides 0- Item# CSI768 testing, installing & maintenance of •PLL tuning system for precise frequency
15V and 2A of power. Hot air soldering and adjust- Mobile Telephone Comm systems, measurement and tuning
ment of temperature are controlled by a micro chip and
Only Cellular Phones,Cordless phones, pag- •Built-in Frequency Counter
•LED Backlight LCD (192x192 dots)
sensor thus giving tremendous accuracy and reliability. $289.00! ing systems, cable &Satellite TV as
•All fuctions are menu selected.
well as antenna installations.May also •RS232C with software for PC & printer
•Iron Output Voltage: 24V / 35W be used to locate hidden cameras using interface
•Temperature Range: 100-480°C / 212-896°F RF transmissions. •Built-in speaker (Includes Antenna)
•DC Power Supply: 0-15V / 2A Item# 3290
Details at Web Site > Soldering Equipment & Supplies Details at Web Site > Test Equipment > RF Test Equipment

B&W Pinhole Bullet Camera w/ 1/3” CCD LogicPort


LogicPort Logic Analyzer
•Weather Resistant Housing The LogicPort provides 34 sampled channels $369.00!
Item# VC-305CP
•Signal System: EIA including two state-mode clock inputs. It con-
•Image Sensor: 1/3" CCD Bullet Hole $49.00
1-4:$49.00 nects to your PC's USB port for ultimate con-
•Effective Pixels: 510 x 492 $46.00
5+:$46.00 venience and performance.
•Horizontal Resolution: 380TV lines •34 Channels
Details at Web Site •500MHz Timing mode sample rate
•Min. Illumination: 1Lux/F1.2 > Miniature Cameras (Board, Bullet, Mini's, B/W, Color)
> •200MHz State mode sample rate
4 Channel Digital Video Recorder •Real-time Sample Compression
•Multi-level trigger
w/250GB HD Installed •+6V to -6V Adjustable Threshold Item# LOGICPORT
LOGICPORT
•Signal System: NTSC Special Details at Web Site > Test Equipment > Logic Analyzers
•Operation System: Embedded RTOS
•Video Input: BNC x 4
SALE!
•Video Output: BNC x 1 / VCR OUT Plug-In Switching Power Supplies
•Resolution: NTSC 720x480/ NTSC 640x240 These 15W switching power
•Record Frame Rate: 30fps total Item #:VR-214-200G
VR-214-200G supplies are an inexpensive way
•HD Capacity: 250GB to power devices with robust
•Backup: VCR Only regulated power and low ripple
•Alarm In/Out: 4 in NO/NC, 1 Out No $299.00 noise. The low-profile design
Details at Web Site > Miniature Cameras (Board, Bullet, Mini's, B/W, Color) & Security allow you insert them into a
power strip without losing any of the other plugs. Designed
with an energy efficient switching technology, the
Digital Storage Oscilloscope Module Universal AC input works from 90-264VAC with no min-
imum load required and a 100% burn-in test to ensure they
Convert any PC with USB interface to a high will perform as stated right out of the box. They come with
performance Digital Storage Oscilloscope. a 1.8 meter output cord and a 5.5 x 2.1mm female plug. UL
This is a sophisticated PC basedscope adaptor and cUL approved.
providing performance compatible to Item# Description
mid/high level stand alone products costing 3A-161WU05 5 Volts / 2.6 Amps
much more! Comes with two probes. 3A-161WU06 6 Volts / 2.5 Amps
3A-161WU09 9 Volts / 1.70 Amps
Details & Software 3A-161WU12 12 Volts / 1.25 Amps
Download at Web Site SALE! 3A-161WU18 18 Volts / 0.84 Amps
> Test Equipment > Oscilloscopes/Outstanding Prices 3A-161WU24 24 Volts / 0.63 Amps
PC based Digital Storage
Oscilloscope, 200MHz 5GS/s
Each 10+ 25+ 100+
equiv. sampling USB interface Item# 200DSO Only$829.00 $9.95 $8.95 $8.49 $6.95
Details at Web Site > Test Equipment > Power Supplies

SONY Super HAD CCD Color SONY Super HAD CCD™ SONY Super HAD CCD Color
Weatherproof
eatherproof IR Cameras Weatherproof
eatherproof IR Camera
equipped camera’s feature dramatically
•Day & Night Auto Switch
•Day & Night Auto Switch improved light sensitivity •Signal System: NTSC
•Signal System: NTSC •Image Sensor: 1/4" SONY Super HAD CCD
•Image Sensor: 1/3" SONY Super HAD CCD SONY Super HAD CCD Color Camera •Horizontal Resolution: 420TV lines
•Horizontal Resolution: 480TV lines •Min. Illumination: 0Lux
•Min. Illumination: 0Lux
4 8 0n e s Item# VC-819D
i
T V oLl u t i o n Item# VC-827D 1-4:$149.00
$149.00 5+:$139.00
$139.00
R e s 1-4:$89.00
$89.00 5+:$79.00
$79.00
SONY Super HAD CCD B/W •Weather Proof
Weatherproof •Signal System: NTSC SONY Super HAD CCD Mini
eatherproof IR Camera •Image Sensor: 1/4" SONY Super HAD CCD
•Day & Night Auto Switch •Horizontal Resolution: 420TV lines B/W Board Camera
•Signal System: EIA •Min. Illumination: 1Lux/F1.2 •Signal System: EIA
•Image Sensor: 1/3" SONY Super HAD CCD Item# VC-805 1-4:$69.00
$69.00 5+:$65.00
$65.00 •Image Sensor: 1/3" SONY Super HAD CCD
•Horizontal Resolution: 420TV lines •Horizontal Resolution: 420TV Lines
•Min. Illumination: 0Lux •Min. Illumination: .05Lux/F1.2
Item# VC-317D 1-4:$69.00
$69.00 5+:$65.00
$65.00 Details at Web Site Item# VC-103 1-4:$33.00
$33.00 5+:$29.00
$29.00
> Miniature Cameras(Board,Bullet,Mini’s, B/W, Color)

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

38 74 44 08

J A N UA RY 2 0 0 6

PROJECTS ON THE COVER ...


and FEATURES The “Blame it on CanadArm”
near space version
32 AN AUXILIARY RC
CONTROL UNIT of the real thing.
Buddy up on your next flight. Check out the Near Space
■ By Paul J. Weijers
column starting on
38 WEATHER PROJECTS FOR THE Page 84.
ELECTRONIC ENTHUSIAST
Electronic instrument shelters
and rain chimes.
■ By J. Ronald Eyton

44 THE PERCEPTRON CIRCUIT


COLUMNS DEPARTMENTS
Create your very own electronic
analog neuron to impress your 08 TECKNOWLEDGEY 2006 06 READER FEEDBACK
nerdy friends. Events, advances, and news
■ By Christopher McCarley from the electronics world.
30 NEW PRODUCTS
12 Q&A
57 ANALOG MUSIC
Kick off the new year with a 50 NEWS BYTES
SYNTHESIZERS
potpourri of circuits.
A do-it-yourself primer to bridge
the gap between technology
18 STAMP APPLICATIONS 52 SHOWCASE
and art. Playstation robot controller.
■ By Thomas Henry
54 NV BOOKSTORE
24 LET’S GET TECHNICAL
68 DATA PROCESSING USING Why I am glad my computer
SCAM — PART 4 66 ELECTRO-NET
crashed.
Implementing SCAM: Building
the SCAM basic blocks. 84 NEAR SPACE 80 CLASSIFIEDS
■ By Gamal Ali Labib The “Blame it on CanadArm“
robotic arm. 94 TECH FORUM
74 GETTING STARTED WITH PICs
Good news! It isn’t that difficult 90 IN THE TRENCHES
and it doesn’t have to cost a Stress. 97 ADVERTISERS INDEX
bunch of money to get started
with microcontrollers. Nuts & Volts (ISSN 1528-9885/CDN Pub Agree#40702530) is published monthly for $24.95 per year
■ By Chuck Hellebuyck by T & L Publications, Inc., 430 Princeland Court, Corona, CA 92879. PERIODICALS POSTAGE PAID AT
CORONA, CA AND AT ADDITIONAL MAILING OFFICES. POSTMASTER: Send address changes
to Nuts & Volts, P.O. Box 15277, North Hollywood, CA 91615 or Station A, P.O. Box 54,Windsor
ON N9A 6J5; cpcreturns@nutsvolts.com

4 January 2006
Full Page.qxd 12/7/2005 3:48 PM Page 5

Link Instruments
PC-Based Test Equipment

Logic Analyzers
New LA-5000 Series
• 40 to 160 channels
• up to 500 MSa/s
• Variable Threshold
• 8 External Clocks
• 16 Level Triggering
• up to 512K samples/ch
• USB 2.0 and Parallel Interface
• Pattern Generator option

LA5240 (200MHz, 40CH) $1700 USB 2.0/Parallel


LA5280 (200MHz, 80CH) $2350 USB 2.0/Parallel
LA5540 (500MHz, 40CH) $2500 USB 2.0/Parallel
LA5580 (500MHz, 80CH) $3500 USB 2.0/Parallel
LA55160 (500MHz, 160CH) $7500 USB 2.0/Parallel

Small and portable LA-2124 $800


• Small, Lightweight and Portable • 24 Channel Logic Analyzer
• Only 4 oz and 4.75” x 2.75” x 1” • 100MSa/S max sample rate
• Parallel Port Interface to PC • Variable Threshold Voltage
• Trigger Out • Large 128k Buffer

Digital Oscilloscopes

• 2 Channel Digital Oscilloscope • Small, Lightweight, and Portable DSO-2102S $525


• 100 MSa/s max single shot rate • USB or Parallel Port interface DSO-2102M $650
• 32K samples per channel • Advanced Math DSO-2102S(USB) $600
• Advanced Triggering • FFT Spectrum Analyzer (option) DSO-2102M(USB) $725
• Only 9 oz and 6.3” x 3.75” x 1.25”

Link Instruments (973) 808-8990


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

www.Link-instruments.com
January 2006 5
ReaderFeedbackJan06.qxd 12/9/2005 2:06 AM Page 6

READER FEEDBACK method of demonstrating wave


EVERYTHING FOR ELECTRONICS

Published Monthly By
phenomena, and I'm sorry that your T & L Publications, Inc.
reader did not understand the 430 Princeland Ct.
OUT WITH TRENCHES concepts, but it is correct. Also, cost Corona, CA 92879-1300
I just wanted to tell you how is always a primary driver for (951) 371-8497
much I have enjoyed your magazine. products, and a simple cone loud- FAX (951) 371-3052
In fact, I am building the Ultimate speaker is the least expensive audio Product Order Line 1-800-783-4624
Utility Meter now. transducer and is acceptable to most www.nutsvolts.com
One thing that I am a little people, so dominates the market,
Subscriptions
disappointed in is, that I look at you even though the Heil Air Motion
Inside US 1-877-525-2539
being my hobby magazine. The Transformer provides superior
Outside US 1-818-487-4545
section “In The Trenches” is out performance. P.O. Box 15277
of place. I have enough trade It's great that Nuts & Volts has North Hollywood, CA 91615
magazines with that information. I such passionate readers, and I'm
would like to see you stay away from glad that my article received so FOUNDER/ASSOCIATE PUBLISHER
that aspect and be there for the much attention! Jack Lemieux
hobbyist and the professional that Dennis Eichenberg
PUBLISHER
needs to get away from work and Larry Lemieux
learn new skills. Thank you and keep LOVE US publisher@nutsvolts.com
up the good articles. I'm a mail subscriber and I've
Jack Boswell just got my November N&V issue. I ASSOCIATE PUBLISHER/
think it's amazing how much you VP OF SALES/MARKETING
WRITER WRITES BACK have improved the whole magazine Robin Lemieux
display@nutsvolts.com
I authored the article "I Love my design. Congratulations to all that
Heils!" published in the October is- people over there. My favorite mag- CONTRIBUTING EDITORS
sue of Nuts & Volts and would like azine is now even much better. Gerard Fonte TJ Byers
to respond to your reader feedback J.M. Gomez Jeff Eckert Jon Williams
Paul Weijers Gamal Labib
on my article. The information in the
J. Ronald Eyton Christopher McCarley
article stating that Dr. Oskar Heil LOVE US NOT James Antonakos Thomas Henry
is the inventor of the field effect In reference to the Reader Feed- Paul Verhage Chuck Hellebuyck
transistor and that he patented it in back "Format Folly" in the Dec. issue,
1934 is correct. Please see http://en. I fully agree with Len Taddei. The CIRCULATION DIRECTOR
Tracy Kerley
wikipedia.org/wiki/Transistor. The pa- new format is a mess!!! I don't like subscribe@nutsvolts.com
per demonstration is a typical it!!!
Continued on page 53 SHOW COORDINATOR
Audrey Lemieux

WEB CONTENT/NV STORE


Michael Kaudze
sales@nutsvolts.com

PRODUCTION/GRAPHICS
Shannon Lemieux
Michele Durant

Copyright © 2006 by T & L Publications, Inc.


All Rights Reserved

All advertising is subject to publisher's approval. We are not


responsible for mistakes, misprints, or typographical errors.
Nuts & Volts Magazine assumes no responsibility for the
availability or condition of advertised items or for the honesty
of the advertiser. The publisher makes no claims for the legal-
ity of any item advertised in Nuts & Volts. This is the sole
responsibility of the advertiser. Advertisers and their agencies
agree to indemnify and protect the publisher from any and all
claims, action, or expense arising from advertising placed in
Nuts & Volts. Please send all editorial correspondence, UPS,
by J. Shuman overnight mail, and artwork to: 430 Princeland Court, Corona,
CA 92879.
6 January 2006
Full Page.qxd 12/7/2005 3:16 PM Page 7

8-bit Microcontrollers

Freescale Semiconductor, a global appliances, remote control, lighting and

leader in 8-bit microcontrollers, is security systems.

committed to providing the most Get higher resolution with our 8-channel,

comprehensive portfolio that delivers 10-bit ADC. Communicate with SCI, SPI

market-driven features at competitive and I 2C. Choose from 4K and 8K

pricing. All backed by our industry-leading reprogrammable Flash options. Plus these

CodeWarrior™ Development Studio with devices offer an on-chip, in-circuit emulator

It’s how you get higher


value at the low end.
Processor Expert™ technology, affordable (ICE) and background debug module to
MC9S08QG
8-pin DFN hardware development tools and support reduce development time and cost.
4mm x 4mm
services that make your design effort easier. Test drive our support tools via our virtual

Our 9S08QG Family is a great example lab capability or get started now with our

of our 8-bit leadership. This tightly 9S08QG8 demo board, priced at $50* (US).

integrated 8-bit solution combines levels You get a fully functional board, powered

of performance, packaging and low-power over the USB cable, eliminating the need for

consumption that external power supplies.

redefine the We offer the products,

low end. Making it service and support to

ideal for a variety of help you add value and get

applications like home to market quickly and efficiently.

$50* demo board at freescale.com/low8

Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. This product incorporates Super
Flash technology licensed from SST. *All quoted pricing is MSRP. ©Freescale Semiconductor, Inc. 2005.
Tech2006.qxd 12/9/2005 1:35 AM Page 8

2006
■ BY JEFF ECKERT
TECH KNOWLEDGEY
EVENTS, ADVANCES, AND NEWS

ADVANCED TECHNOLOGIES
INVENTION USES LASER captured RNA is then labeled with

PHOTO COPYRIGHT EUROPEAN SPACE AGENCY, USED BY PERMISSION.


SCANNER FOR VIRUS ID another complimentary sequence that
also contains a fluorescent dye, and
erhaps just in time for the looming such “hits” light up when the chip is
P bird flu pandemic, a device has
been developed at the University of
inserted into a laser scanner.
The Flu Chip also should be able
Colorado at Boulder (www.colorado. to recognize mutations that might
edu) that can determine the genetic occur in avian flu H5N1, which has
signatures of specific influenza strains been spreading rapidly from bird to
from patient samples quickly. Tests by bird in Asia, Russia, and parts of
the Centers for Disease Control and Europe. The ultimate goal is to shrink
Prevention have verified that the the concept down to a cheap,
CU-Boulder Flu Chip can determine hand-held device that can be mass
the genetic makeup of types and sub- produced and taken into remote loca-
types of the flu virus in about 11 hours. tions where medical labs don’t exist.
The chip fits on a microscope slide ■ Artist’s impression of Venus
and contains an array of microscopic VENUS PROBE ON Express orbiting Venus.
spots, each of which is about 0.001 ITS WAY
inches in diameter. Genetic bits of the hurricane force winds that perma-
information that are complimentary to y the time you read this, the nently encircle the planet, (3) why
known individual influenza strains are
“spotted” robotically in an array such
B European Space Agency’s Venus
Express should have already left a
Venus rotates backward and so slowly
(just one revolution every 243 Earth
that each row of three spots contains a launch pad in Kazakhstan, having been days), (4) the mysterious ultraviolet
specific sequence of “capture” DNA. lifted into space by a Soyuz rocket, and absorption features at an altitude of
The microarray is then immersed in a be on its way to Earth’s “evil twin,” about 80 km (5), the planet’s mysteri-
wash of influenza gene fragments Venus. The spacecraft, carrying seven ously weak magnetic field, and (6) the
obtained from the fluid of an infected scientific instruments for studying the way particles from the sun interact
individual. RNA fragments from the planet, is a honeycombed aluminium with the upper atmosphere. Slated to
infected fluid bind to specific DNA panel box within which all the systems arrive near the end of April, Venus
segments on the microarray like a key and the payload are fixed. It measures Express’ mission will last for about
in a lock, indicating both a match and 1.5 x 1.8 x 1.4 m, excluding the solar 1,000 Earth days, after which it will run
that the virus signature is present. The panels, and weighs in at 1,240 kg, out of fuel. For details, and to keep an
including 93 kg of payload and 570 kg eye on its progress, visit www.esa.int
■ Professors Robert Kuchta and of fuel. With the solar panels extended,
Kathy Rowlen display a scanner and
the Flu Chip.
the unit measures about 8 m across. QUANTUM PHYSICS
The basic mission, which DISPROVEN?
comes at a cost of about 220
million euros, is to make the erhaps even farther out than Venus
first global examination of the P is a concept from Black Light
PHOTO COURTESY UNIVERSITY OF COLORADO AT

Venusian atmosphere, which is Power, Inc., of Cranbury, NJ. The


very hot and dense and appears company claims to have developed a
BOULDER, OFFICE OF NEWS SERVICES.

to be completely different from working prototype of a power source


the one around Earth. Existing that unleashes substantial latent
meteorological models fail to energy in hydrogen atoms, allowing it
predict the behavior of Venus’s to generate as much as 1,000 times as
thicker blanket of gases. much heat as conventional fuels. The
In particular, the probe will process involves creating a new form of
investigate (1) the choking hydrogen atom, called the “hydrino,” in
greenhouse effect on Venus, (2) a process that causes the atom’s elec-
8 January 2006
Tech2006.qxd 12/9/2005 1:35 AM Page 9

TECHKNOWLEDGEY 20 06

tron to move to a lower orbit around second (teraflops) on the industry how it is done, it is known that two
the proton. This generates power in the standard LINPACK benchmark. Purple, approaches have been demonstrated
form of heat, light, and plasma. The the other half of the most powerful by researchers at the University of
energy released from the process is supercomputing pair on Earth, is capa- Missouri-Rolla over the past few years.
claimed to be hundreds of times ble of 100 teraflops as it conducts sim- One is to use the pipeline as a
greater than that needed to start it, and ulations of a complete nuclear weapons microwave waveguide, and the other is
the by-product would constitute an performance. In a recent demonstration to use the metal pipe as a conductor;
entirely new class of chemistry referred of its work capability, BlueGene/L ran both methods were shown to be feasi-
to as hydrino hydride compounds. The a record-setting materials science ble. According to Nethercomm, their
only problem is that the rules of quan- application at 101.5 teraflops sustained technology “requires no modification
tum mechanics tell us that electrons’ over seven hours on the machine’s to existing natural gas distribution
orbits are strictly defined and cannot 131,072 processors. Working together, infrastructures and can carry enormous
be changed, thus indicating that the the machines can generate an astound- amounts of data by simply making use
Black Light process is impossible. ing half a petaflop, or 0.5 quadrillion of the entire spectrum buried within
Is this a breakthrough or just operations per second. the existing natural gas pipelines. The
another incarnation of room-tempera- BlueGene/L will move into classi- technology delivers connectivity over
ture fusion? Time will tell. In the fied operation in February to address the last mile of broadband networks
meantime, there are some very inter- critical problems of materials aging. without interference or degradation of
esting graphics and animations on the The machine is primarily intended for other wireless transmissions.
company’s website, so you might want stockpile science molecular dynamics By not consuming or sharing costly
to visit www.blacklightpower.com and and turbulence calculations. Purple spectrum, and not requiring installation
make your own assessment. consists of 94 teraflop classified and of last mile cable or fiber, Nethercomm
six teraflop unclassified environments. is prepared to make broadband sub-
COMPUTERS AND The machine’s architecture, with large
memory, powerful processors, and
stantially more affordable while
increasing end-user bandwidth to
NETWORKING massive network bandwidth, is unprecedented levels.” And if a report
NEW SUPERCOMPUTER designed for running newly developed from West Technology Research
PERFORMANCE RECORDS 3D weapons codes needed to simulate Solutions (www.westtechresearch.com)
complete nuclear weapons perform- is correct, BiG will be connected to as
ate last year, the National Nuclear ance. The insights and data gained many as 18 million homes by 2010. This
L Security Administration (NNSA)
officially dedicated two new supercom-
from materials aging calculations to
be run on BlueGene/L will be used for
is theoretically possible, given that
something like 70 percent of homes
puters to ensure that the US nuclear the creation of improved models and 35 percent of businesses in the US
weapons stockpile remains safe and designated for future full weapons have access to gas lines. Weird concept
reliable without nuclear testing. The performance simulations on Purple. perhaps, but anything that can provide
IBM machines are housed at Lawrence an alternative to your local monopoly
Livermore National Laboratory (LLNL; IF YOU THINK CABLE cable company can’t be all bad.
www.llnl.gov) and are the culmination STINKS NOW ...
of a 10-year campaign to use supercom-
puters to run three-dimensional codes t may sound strange, but
CIRCUITS AND
at lightning-fast speeds to achieve I Nethercomm Corp. (www.nether DEVICES
much of the nuclear weapons analysis comm.com) has come up with a SOLAR-POWERED
that was formerly accomplished by technology that may soon bring you SENSOR ELIMINATES
underground nuclear testing. One of television, telephone, and Internet BATTERIES
the machines, BlueGene/L, performed communications through existing
a record 280.6 trillion operations per natural gas pipelines. The technology nOcean (www.enocean.com), a
has been dubbed,
appropriately
E German company specializing
in energy-harvesting wireless tech-
enough, broadband- nologies, has introduced the STM250
in-gas (BiG). While solar-powered radio frequency (RF)
the company’s press magnet-contact sensor. Its claim to
release didn’t provide fame is that it eliminates a major
the specifics about deficiency of wireless security systems:
their dependence on batteries. By
■ BlueGene/L, with doing away with the burdens of battery
its distinctive eight
monitoring and replacement, the
slanted-front cabinets,
hits 280.6 trillion oper- new magnet contact theoretically can
PHOTO COURTESY OF LLNL, BY JOSEPH MARTINEZ. ations per second. operate for years without mainte-
January 2006 9
Tech2006.qxd 12/9/2005 1:36 AM Page 10

PHOTO CO
URTESY
OF ENOCEA
N GMBH
.

INDUSTRY AND THE PROFESSION


MICROSOFT MOVES INTO VOIP BUSINESS
n November, Microsoft Corp. (www.microsoft.com) announced it has agreed to
■ EnOcean’s STM250
sensor is designed for wireless security
I acquire media-streams.com AG, a Zurich-based company that develops com-
munications applications based on voice over Internet protocol (VoIP) technol-
systems.
ogy. Microsoft plans to apply media-streams.com’s technology, employees, and
nance, using only ambient indoor or intellectual property to create a unified communications package that brings
together various modes of communication (e-mail, instant messaging, short
outdoor light. The amount of light typ-
message service, voice/telephony, and audio, video, and Web conferencing).
ically available in homes or offices is
The media-streams.com technology will help Microsoft develop an improved,
sufficient to both operate STM250 con-
integrated VoIP product based on the Microsoft® Office Real-Time Collaboration
tinuously and to store energy for up platform, Microsoft Office Live Communications Server. In the announcement, a
to six days’ use in total darkness. The Microsoft representative noted, “With this acquisition, Microsoft aims to extend
unit’s embedded RF transmitter will VoIP to communications solutions to improve productivity and business process-
send a signal across 300 m outdoors es, creating new opportunities for Microsoft Real-Time Collaboration customers
and 30 m indoors, through walls. and partners.”
Because the entire signal transmission
is completed in about 1/1,000 of a COMPANY BUYS CELL PHONES
second, the power drain is minimal.
f you’re thinking about tossing away the old cell phone, wait. CellForCash.com
The sensor can be used either as a
ready-to-install switch for security sys- I has bought more than 200,000 of them since it started up in 2002, and you just
might be able to turn yours into cash. The company pays you cash, pays the
tem contractors or as an OEM-level
product for integration into doors and shipping, and then recycles and resells the units all over the world, currently to
windows. It can even be permanently the tune of 75,000 units per month. To find out how much your clunker is worth,
embedded inside impossible-to-reach just visit the site.
places, such as between panes of
window glass. STM250s are available (www.nkkswitches.com) has introduced VDC. The inductive load rating is 5A @
in OEM quantities for about $30 each. a somewhat nifty new design, the LW 125 VAC. While nonilluminated ver-
series. The snap-in mount, rocker sions are available, the more interest-
DOUBLE-ILLUMINATED devices are double pole and available ing ones offer dual-faced illumination.
ROCKER SWITCH in many circuit options, including You can create various lighting
maintained and momentary action. effects by choosing to use either white
f you need to employ rocker switches They are rated at a resistive load of 10A or clear rocker caps, with multiple col-
Iin your next project, NKK Switches @ 125 VAC, 6A @ 250 VAC, or 6A @ 30 ored filters or lamp covers. In addition,
different colors can be specified on each
side of the rocker. Available with either
incandescent lamps in several voltages
or neon bulbs, the light sources operate
independently. Optional accessories
include a decorative bezel, available in
several different colors. NV

■ NKK’s LW series switches feature


dual lamps that operate independently.
PHOTO COURTESY OF NKK SWITCHES.

10 January 2006
Full Page.qxd 12/7/2005 3:20 PM Page 11
Q&A.qxd 12/8/2005 11:45 AM Page 12

■ WITH TJ BYERS
QA & WHAT’S UP:
APPLICATIONS
Kick off the new year with a
potpourri of circuits.

✓ UV photometer, a clock heater, and



In this column, I answer questions about all a vacuum tube filament supply.
aspects of electronics, including computer
hardware, software, circuits, electronic theory,
troubleshooting, and anything else of interest
✓Solutions for the deceased MM5369

to the hobbyist. clock chip and a new 15-minute timer.

✓ Plus, a power transformer tutorial


Feel free to participate with your questions,
comments or suggestions. ●
You can reach me at: TJBYERS@aol.com and how to prevent PA feedback.

+V
VDC = 0.9 VAC
+

into saturation and ceases to ondary at a time — which results in an


IDC = 0.28 IAC
function properly. This is output voltage that is one-half (0.45, to
especially important when be exact) the full voltage across the
Half-Wave the transformer has more secondary, but takes advantage of the
+V
than one secondary winding. full 10 amps your transformer has to
The resistance of the primary offer. The full-wave bridge rectifier out-
+

VDC = 0.45 VAC and secondary windings also puts a voltage that is 0.9 percent that
IDC = 1.0 IAC
influences the amount of of the transformer voltage, but can only
current a transformer will use 0.62 percent of the transformer’s
handle because increased re- current. To achieve the desired DC load
Full-Wave Center-Tapped sistance and higher current current, the transformer current should
makes heat — heat that must be 1.6 times higher. For example, to get
+V be dissipated. Your particu- 10 amps of DC, you need to have 16
lar transformer has a rating amps available to the rectifiers.
+

VDC = 0.9 VAC


IDC = 0.62 IAC of 240VA which means it will Why? Because of the surge cur-
deliver 10 amps at 24 volts. rent required by the filtering capaci-
But I don’t think this is tor. Transformers are not ideal and
Full-Wave Bridge ■ FIGURE 1 the answer you’re looking have an internal impedance or “regu-
for, because I assume you lation” characteristic. As the load
want to turn this AC into DC. The DC increases, the output voltage decreas-
TRANSFORMER current output is determined by the es. Consequently, the transformer
RATINGS configuration of the rectifier circuit — current must be sufficient enough to
of which there are three: overcome the extra current imposed
I have a power transformer by the charging capacitor. A way to

Q with the following specifica-


tions: 24VCT (12 - 0 - 12) 10A.
If the center-tap terminal is
not used — and we used it as a 24-volt
transformer — then will its rating remain
1. Half-wave (single diode)
2. Full-wave center-tapped (two diodes)
3. Full-wave bridge (four diodes)

Refer to Figure 1 for the following


eliminate this requirement is to insert
a filter choke in series with the line to
the filter cap. Doing this will let you
use the full potential of the trans-
former’s current rating — at the cost
at 10A or will it be half of that value (5A)? discussion. The advantage of half-wave of an extra inductor and added space.
B.Bill rectification is in its simplicity — one
diode and a capacitor. They are gener-
Transformers are rated in volt ally viable only for power supplies of
UV-C MONITOR

A
12
amps (VA). It defines the
limit of the magnetizing field
inside the transformer. If this
limit is exceeded, the transformer goes
January 2006
one-half watt or less, and require more
filtering than full-wave rectification.
The full-wave center-tapped rectifi-
er uses only half the transformer sec- Q
Could you suggest a circuit for
measuring the UV output of a
mercury vapor fluorescent type
bulb? This type of bulb is used
Q&A.qxd 12/8/2005 11:23 AM Page 13

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

■ FIGURE 3
10M
Range UV-C Photometer
1M +9V
DVM
100K
100pF DC Volts
CAL 1K
500 +
+

PDU-S101 LMC662 LMC662

500 1K

■ FIGURE 2

for germicidal lamps, as well as photo the photometer for about a year if you This is a common request that
resists for printed circuits. My particular
application is for aquarium purification.
After so many hours of use, the UV falls
off and there is no indication of bulb
degradation until fish start getting sick.
power up the instrument only as
needed. For 24/7 monitoring, you’ll
need a 78L09 regulated power supply.
The Range switch is used to give a
reading on the voltmeter; the 10M
A I’ve addressed in past columns
(e.g., May 2004), but one that’s
too frequent to ignore. So here
is this year’s take on the 15-minute timer.
This time, I’ve replaced the analog timers
The bulbs are very expensive — typical- position is the most sensitive with the with a 4060 ripple counter (Figure 4).
ly $45 — and the end-of-life varies from 100K position the least sensitive. The 4060 includes an RC oscillator whose
one to another. The ability to monitor the Once a suitable range is found, use frequency is set by two resistors and a
UV output would save lives and money. the CAL pot to obtain a voltmeter single capacitor. (You may recognize this
Charles Forman reading that makes sense to you. For design from past columns, where I use
example, if you calibrate the output two NAND gates to create a square-wave
These lamps emit UV in the for one volt with a fresh lamp, then a oscillator.) When the oscillator’s

A 200 nm to 300 nm range —


that portion of the UV spec-
trum called UV-C. Also known
as “short-wave” UV, this spectrum in-
cludes the target germicidal wavelength
reading of 0.5 volts means the lamp
has lost half its light output. You don’t
have to physically mount the photodi-
ode next to the UV lamp — in fact, I
warn against it. Instead, I’d use an
frequency is 18.2 Hz, the Q14 output (pin
3) will toggle on and off every 15 minutes;
the 100K pot fine-tunes the timer.

TUBE AMP POWER


of 254 nm. An optical sensor sensitive optical fiber to channel the light from
to this wavelength — typically a PIN the lamp to the photodiode. Just make REGULATION
diode — is expensive to fabricate and sure it’s UV rated, otherwise your sig-
runs $20 and more. Fortunately, Digi-Key nal will be lost. Shielding the photodi- I'm looking to eliminate/
(800-344-4539; www.digikey.com) stocks
the PDU-S101 from Advanced Photon-
ics ($20.17) that matches the UV-C spec-
trum to a tee (Figure 2). It comes in a
rugged TO-46 hermetically sealed met-
ode from ambient light would also
be a smart move; black shrink wrap
tubing is a good solution.

15 MINUTES, ■ FIGURE 4
Q +9V
minimize fluctuations in crit-
ical voltages in a guitar tube
amp. The particular amp has

al can with a UV transmitting window.


PIN photodiodes are current gen- AGAIN AND
erators, where the output current is a AGAIN
linear function of light intensity. The 16
brighter the light, the greater the cur- I am looking for

Q
1N4001 9 volts
400 ohms
rent. Because it’s easier to monitor a 15-minute 4.7M 11
voltage than current, the first thing timer, but can’t 4060 3 1K
2N3904
we’ll do is convert the current to a find what I what. .068
9
voltage using a simple op-amp. The I need a timer that’s
second op-amp in Figure 3 is a powered from a nine-volt 100K
voltage follower that buffers the source and toggles a relay 330K 10
current/voltage converter and pre- for 15 minutes on and 15
vents loading of the voltage converter. minutes off. I’ve looked all 12 8
The output of the UV lamp can now be over the Internet and can’t
monitored using a simple voltmeter. find one. Can you help?
A single nine-volt battery will power via Internet 15-Minute On/Off Timer
January 2006 13
Q&A.qxd 12/8/2005 11:23 AM Page 14

on time, I need to compensate for


22uH
4A 50WQ03F
temperature variations inside the clock
BRIDGE 10,000uF (2) +6.3V
case. I would like to mount a power
7 5 resistor in the case and use it as a
6.3VAC 2 LM2588- controlled heater element to keep the
ADJ 3 6.19K temperature at a constant 78 degrees

+
100uF 1.91K Fahrenheit. Could you suggest a 12-volt

+
1.5K 1000uF circuit that would maintain this
0.47 4 COM constant case temperature?
Edward J. Wilk
■ FIGURE 5 6.3 Volts DC, 3A
What you need is something
two EL34 power tubes and utilizes a
solid-state rectifier; the output of the
rectifier is 430 volts. My AC mains can
fluctuate substantially, being 121 VAC
one day and 127 VAC the next, and I
step-up switching regulator — like the
LM2588. The EL34 (a.k.a., 6CA7) needs
about 1.5 amp filament current at 6.3
VAC. Toss in an ECC83 (12AX7)
preamp/driver, and the total load is a
A that doesn’t disturb the air
inside the cabinet so as not
to upset the swing of the
pendulum or dry out the wood. In
other words, a gentle heat with no
have noticed that plate and bias volt- tad over three amps. For this design, I circulating fan. The circuit in Figure 6
ages change 10 volts at the plates and went to the National Semiconductor has been around forever and can eas-
one volt at the grid bias — depending website (www.national.com), selected ily maintain the temperature to within
on the day — which can result in Power under WEBENCH Design Tools, three degrees Fahrenheit. The power
several watts output variation. Is there and entered the operating parameters. resistor should be mounted on an
a simple way to either regulate the AC What popped up on the screen was the aluminum heatsink and placed at the
supply into a power transformer or reg- circuit in Figure 5. bottom of the case where convection
ulate the DC output from the rectifier? The design also includes a Bill of will draw the heat up the column. You’ll
Alan Mihalko Materials (BOM) that lists parts by man- have to experiment with the placement
ufacturer number and specs. Circuit of the thermistor — a NTC (negative
A Sola ferroresonant trans- simulation and analysis are also part of temperature coefficient) device with a

A former can regulate the AC


input — kinda. Basically, it
provides a constant output
voltage using a saturated core trans-
former. Unfortunately, this arrangement
the design features, and an optional
custom prototype kit for some designs.
If you haven’t taken advantage of this
National Semiconductor service, there’s
no better time than the present.
resistance of about 2K at 80°F — for
best results.

GHOST OF A
“flattens” the top of the sine wave so it MM5369 CLOCK
more closely resembles a square wave.
Being a tube guy myself, I find that the
ALL-PURPOSE I am looking for a MM5369
temperature (voltage) on the filament
has more influence on the output
power than the plate voltage.
THERMOSTAT
I am in the process of con- Q chip that uses a color-burst
crystal to generate a 50-Hz
or 60-Hz timebase. I have
I would change the AC filament
voltage into DC (which reduces hum),
then regulate the DC voltage using a

■ FIGURE 6
Q structing a clock using an old
master clock movement and
pendulum. To keep the clock

+12V
been told that this chip is no longer
available, but heard that you can make
a substitute using two chips and a
crystal. Have you seen this design?
Craig Kendrick Sellen
Carbondale, PA
78L05
OUT IN
ELM Electronics (www.elm

A
0.33 COM 0.1 1N4002
5K 1K 1K
electronics.com) makes an
12V ELM440 IC that does exact-
ly what you ask (Figure 7);
1K
LM339 Heater the ELM446 is a 50-Hz version. Both
LM339 10K eight-pin devices are based on
2N3904
Thermistor the 12C5xx family of devices from
2k @ 80F Microchip Technology, Inc., and are
available in two sizes — either the
1K
General Purpose standard DIP package, or in the
smaller SOIC surface mount version.
Thermostat ELM has no minimum purchase (the
14 January 2006
Q&A.qxd 12/8/2005 11:23 AM Page 15

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

+5V ■ FIGURE 7 +5V


60Hz Clock 1 Second
Generator Timebase 16
0.1
1 S 1 Hz Out
27pF 3 J Q
2 10pF 4060 CP _
7 60Hz Out K Q
11
ELM440 R
3.58MHz 32.768kHz
3 74HC112
15M
27pF 10
8 5 330K
39pF 12 8

■ FIGURE 8

ELM440 sells for $8.00 CDN) and prices are the same no or attenuation, then move the controls — one at a time —
matter where in the world you are. All sales are on-line until you eliminate the unwanted frequency (be sure to
using major credit cards. return them to neutral before going on to the next filter). I’d
However, it’s been my experience that most circuits start with the mid-frequencies first.
reduce the 60 Hz down to 1 Hz before the clock is used. A guaranteed solution is to install a feedback
If this is your intent, it can be accomplished using the eliminator. These units have a microprocessor in them
cheaper 4060 ripple counter and a 32.768 kHz watch crystal that searches for the distinctive feedback fingerprint,
(Figure 8). The 4060 divides the 32 kHz crystal frequency by determines the offending frequency, and engages a notch
16,384, resulting in a 2-Hz output. This is further divided filter to eliminate it. The number of filters range anywhere
by the 74HC112 J-K flip-flop to produce a pulse once every from 10 to 80, with the price increasing with the number of
second. filters. A good buy is the Behringer DSP 110 Shark — with
variable audio delay and 12 notch filters — which sells on
the street for $80. NV
ELIMINATING PA FEEDBACK
I just installed a new PA amplifier, Pyramid

Q #PA1000X, at the company where I work. The amp


works great, but since the installation, we have had
problems with feedback whenever anyone tries
to page using a cordless phone. I’ve tried reducing the
speaker volumes somewhat, and although it does help, it is
not a cure. Is there a preamp buffer circuit that I could build
that would allow me to tune out the feedback and also lim-
it the input volume level (ALC), so some of the loudmouths
in the company don’t overdrive the amp?
Dan Elliott

If you have an equalizer laying around, it can be

A used to filter out the feedback frequency. Of


course, you will have to experiment with different
settings. Start with everything set with no boost

COOL WEBSITES!
Find a sample of the nearly 100 new words
and senses that have been added to the 2005
Merriam-Webster Dictionary.

www.m-w.com/info/new_words.htm

Confused by the new digital TV alphabet soup?

http://nl.internet.com/ct.html?rtr=on&s=1,20up,1,
7uj2,bvii,3qmh,cu1s

January 2006 15
Page16.qxd 12/9/2005 1:26 AM Page 16

16 January 2006
Full Page.qxd 12/7/2005 3:25 PM Page 17

Down town, down under in Sydney Australia!


We sell a massive range of goodies through our FREE 400 page
catalog. Hop on line and purchase from us 24/7/365 through our
secure encrypted system. Post and Packing charges are modest so
you can have any of 8000+ unique products delivered to your
door within 7-10 days of your order! What are you waiting for?
Hop on line to www.jaycarelectronics.com.
You'll be glad you did!
Smart Card Programmer Kit Theremin Synthesiser Kit
KC-5361 $34.95 + post & packing KC-5295 $34.95 + post & packing "Clock Watcher’s"
Program both the microcontroller and The Theremin is a weird musical instrument that was LED Clock Kits
EEPROM in the popular Gold, Silver and invented early last century but is still used today. The KC-5416(blue) $110.25 + post & packing
Emerald wafer cards. Cards need to conform Beach Boys' classic hit "Good Vibrations" featured a KC-5404(red) $82.95 + post & packing
to ISO-7816 standards, which includes the Theremin. By moving your hand between the antenna These clocks are hypnotic!
ones sold by Jaycar. Powered by 9-12VDC and the metal plate, you can They consist of an AVR driven clock circuit, that also pro-
wall adaptor or 9V battery. Instructions outline create strange sound effects. Kit duces a dazzling display with the 60 LEDs around the
software required which is freely available on includes a machined, silk screened, and perimeter. It looks amazing, but can't be properly explained
the Internet. Kit supplied with PCB, wafer card pre drilled case, circuit board, all here. We have filmed it in action so you can see for yourself
socket and all electronic components. electronic components, and clear on our website www.jaycarelectonics.com! Kit supplied with
PCB measures: 141 x 101mm English instructions. double sided silkcreened plated through hole PCB and all
Jaycar cannot accept 9VDC wall adaptor required board components as well as the special clock housing!
responsibility for the operation (Jameco #252751 $10.95). Available in Blue (KC-5416) and Red (KC-5404).
of this device, its related
software, or its potential to be Universal High Energy Ignition
used in relation to illegal KC-5419 $55.25 + post & packing
copying of Smart Cards in A high energy 0.9ms spark burns fuel
Cable T.V. set top boxes. faster and more efficiently to give you
more power! This versatile kit can be
Wafer Card connected to conventional points,
ZZ-8800 $2.25 + post & packing twin points or reluctor ignition
systems. Includes PCB, case and all New &
This is a multi-chip 'smart card' based Improv
on the PIC 16F84A and is coupled with electronic components. ed
a 24LC16B EEPROM, compatible with
most reader/programmer High Performance Electronic Projects for Cars
units available including BS-5080 $14.95 + post & packing
the programmer above. Australia's leading electronics magazine Silicon Chip, has developed a range of projects for performance
cars. There are 16 projects in total, ranging from devices for remapping fuel curves, to nitrous controllers.
The book includes all instructions, components lists, color pictures, and circuit layouts. There are also

We Stock...
Electronic Components,
chapters on engine management, advanced systems and DIY modifications. Over 150 pages! All the
projects are available in kit form.
High Range Adjustable
Sub-Assemblies & Electronic Kits Smart Fuel Mixture Display Temperature Switch with LCD
KC-5374 $17.95 + post & packing KC-5376 $44.50 + post & packing
Power Products
This new ‘smart’ version has a few additional touches such as, Heat can be a major problem with
& Accessories auto dimming for night driving, emergency lean-out alarm, any car, especially modified and
Audio & Visual Equipment and better circuit protection. Another great feature, is the performance cars. The more power,
& Accessories ‘dancing’ display which operates when the ECU is operating the more heat, so you need to ensure
in closed loop. Kit supplied with PCB and all electronic you have adequate cooling systems in
Computer & Telecoms
components. place. This temperature switch can be r
Accessories Ideal fo aust &
• Car must be fitted with air flow and EGO sensors (standard set anywhere up to 2192°F, so it is h
ring ex
Burglar Alarms & on all EFI systems) for full functionality. extremely versatile. The relay can be monito mperature -
k e te E!
Surveillance Equipment used to trigger an extra thermo fan on bra RANG
2192°F
an intercooler, mount a sensor near your
Lighting Products turbo manifold and trigger water spray cooling,
& Accessories or a simple buzzer or light to warn you of a high
Recommended box temperature. The LCD displays the temperature
Gadgets & Unique Gifts all the time, which can easily be dash mounted.
UB3 $1.95 each

Post and Packing Charges: Log on to


400+ page Order Value Cost www.jaycarelectronics.com/catalog
Catalog $25 - $49.99 $7.50
$50 - $99.99 $20 for your FREE catalog!
$100 - $199.99 $40 1-800-784-0263
$200 - $499.99 $60
(Monday - Friday 09.00 to 17.30 GMT + 10 hours only).
$500+ $75 For those who want to write:
Max weight 12lb (5kg) - heavier parcels 100 Silverwater Rd Silverwater NSW 2128
POA. Minimum order $25. Sydney AUSTRALIA
Stamp.qxd 12/8/2005 11:55 AM Page 18

■ BY JON WILLIAMS
STAMP APPLICATIONS
PUTTING THE SPOTLIGHT ON BASIC STAMP PROJECTS, HINTS & TIPS

PLAYSTATION ROBOT CONTROLLER


The other day my boss, Ken, pointed out that I have written over six years’ worth of columns
for Nuts & Volts. Wow. Aren’t you guys tired of me yet? (Okay, don’t answer that question!)
For all the columns I’ve written, clearly one of the top three in reader interest was called
“PlayStation Control Redux” (September 2003) where we delved more deeply into the
PlayStation controller protocol work started by Aaron Dahlen. Well, between then and now,
Parallax released the SX/B compiler for the SX micro and the speed issues we dealt
with when using a BASIC Stamp are no longer issues. That, and Ken is building a cool new
treaded robot that might need a full-featured control device — let’s hack a PlayStation
controller for him and let him drive that dude around, shall we?

D uring a recent conversation with


a Parallax EFX customer, I was
asked how difficult it is to learn SX
Why did I use SX/B? Well, I’m part
of the SX/B development team so I’m
really comfortable with it and —
think so; it is what it is: an inline (some
call “macro”) compiler. The code we
write gets compiled inline as it appears
assembly language — my friend is here’s the kicker — I still haven’t in the source file. If, for example, we
interested in building custom taken the time to commit to learning have two consecutive PAUSE instruc-
accessory devices for his props and enough assembly programming to tions, the code to execute PAUSE will
holiday displays using the SX28. He write full-blown applications. What it be expanded twice — and this does use
was actually quite surprised to learn actually comes down to is a lack of more code space. This is not a problem
that, to date, all of the EFX accessory patience on my part, and with SX/B I if we understand and design around it,
products (RC-4, DC-16, AP-8) that use really don’t need to be; I can write and that’s really what I’m going to focus
the SX are actually programmed in very PBASIC-like code that gets com- on in this month’s column.
SX/B — I know because I’m part of the piled. I get the benefits of high-level If you look at enough of my SX/B
team that designed those products programming with the execution programs, you’ll notice that they are
and wrote a few of the programs speed of assembly language. all similarly structured and, in fact, I
myself. That said, SX/B is not a compiler reuse a lot of the same subroutines.
in the terms that we typically think The reason is this: By keeping my code
■ FIGURE 1. PSX timing about, that is, SX/B doesn’t consistent, I can follow my own pro-
optimize and automatically grams and get back into them more
remove redundant code. quickly after a break and — here’s
Why not? The reason is that the real important part for SX/B — by
Parallax created SX/B so putting “big” (lots of assembly code
that those interested in required) instructions into a subrou-
assembly could learn from it tine, those instructions only get
— that’s very tough to do expanded once and I’m able to con-
when one looks at the serve code space. The additional ben-
assembly output of an opti- efit to putting these commands into
mized compiler. With SX/B, subroutines is that we can add our
you can see the assembly own (even optional) features to the
output from your high-level routines. We’ll see how just a bit later.
code (which gets included in
the comments) and see how
the various instructions
PLAYSTATION
work “under the hood.” CONTROLLER PROTOCOL
So does that mean SX/B
is inefficient? No, I don’t It turns out that the PlayStation
18 January 2006
Stamp.qxd 12/8/2005 11:55 AM Page 19

S TA M P A P P L I C AT I O N S

controller is actually very easy


to connect to a microcon-
troller — in fact, it behaves
just like a big shift register.
The difference is that it has ■ FIGURE 2. PSX exchange
separate data in (called Command) and data out (called
Data) lines. When we used the BASIC Stamp SHIFTOUT WAIT_US SUB 1,
2
and SHIFTIN were used, but this created a problem with WAIT_MS SUB 1, 2
the last bit of data when using an analog controller. What RX_BYTE SUB
we ended up doing was synthesizing a routine that could TX_BYTE SUB 1
send and receive bytes at the same time, but in PBASIC, TX_OUT SUB 1, 2
READ_PSX SUB
that’s a little on the slow side. Not so with the SX, in fact, PSX_SHIFTIO SUB 0, 1
we now have to consider speed for the other side so that
we don’t do things too quickly. Here’s a secret: Only the last two subroutines are
Figure 1 shows the signal timing and relationships specific to this project; all the others form the core of most
between the host and the PlayStation controller. of the serial accessory projects I developed using the SX.
Communication is initiated by bringing the PsxAttn (atten- Looking at the code you’ll see that each subroutine has a
tion) pin low. After a 20 microsecond delay, the bits are name, followed by the keyword SUB, and then information
clocked in and out, with everything happening based on on parameters used by each subroutine. Notice that not
the falling edge of the clock signal. every subroutine requires parameters sent to it (like
From a programming standpoint, we need to put a bit RX_BYTE) and most actually have a variable number of
(starting with the LSB) on the PsxCmd pin before pulling parameters. WAIT_US (a shell for PAUSEUS), for example,
the clock line low. After the clock has been pulled low and requires one parameter and can take two.
we allow a bit of setup time, we can read a bit from the With the subroutines defined, we can jump into the main
PsxData pin. We’ll get into the specific code mechanics a body of the program. As with similar devices, the PlayStation
little later. Helper chip is going to wait on a specific command header
Figure 2 shows the relationship of input and output from the host and respond as instructed. We’re going to use
bytes. The host transmits $01 (start) and $42 (get data), the open-baudmode style serial communications with this
PlayStation controller sends back its type, $5A (ready), product so that it’s compatible with other serial accessories.
then two (digital controller) or six data bytes (analog By doing that, we could connect this device to a BASIC Stamp
controller). Note that the controller transmits its type while using the same serial line that commands a Parallax Servo
the host is sending the $42 byte. What we’re going to do as Controller (PSC). With a BASIC Stamp, a PSC, and the
we develop this program is create a routine that does the PlayStation Helper you could put together a very cool robot.
equivalent of SHIFTOUT and SHIFTIN — but at the same The Parallax AppMod
time. ■ FIGURE 3. PSX packet bits

THE TAO OF SX/B


Okay, I know that’s a bit of a cheeky sec-
tion title, since almost every programming
language can be manipulated in any way by
an experienced programmer. So this is my Tao
of SX/B, at least for serial accessory devices.
Let’s start at the top.
One of the features I like best about SX/B
is the ability to define subroutines with
the SUB keyword. This serves two important
functions: 1) It causes the compiler to create
a jump table that lets us put the subroutine
code anywhere in memory (remember, in the
SX, subroutines usually have to be in the top
half of a code page unless a jump table is
used); and 2) It lets us tell the compiler how
many parameters are used by the subroutine.
This allows the compiler to do syntax checks
on our custom routines — very handy! Here
are the subroutines used in the PlayStation
Helper module:
January 2006 19
Stamp.qxd 12/8/2005 11:55 AM Page 20

protocol is really more of a configuration than a defined proto- one of the changes in SX/B as it has matured and
col — as I just stated, it uses open-baudmode communica- developed an expanding customer base, specifically the
tions and a text header that starts with the “!” character. For ability to return a value to the subroutine caller. As we saw
example, when we want to send a command to the PSC, we use in the compiled code above, the W register is used as the
the header “!SC” at the beginning of each command message. mechanism for handling the return value.
Let’s be logical, shall we, and use “!PSX” as the header for our Let me emphasize one final time the reason for this
PlayStation Helper. Okay then, let’s wait for the header: subroutine: SERIN is a complex statement that requires
Main: several lines of assembly code. If we were to use SERIN
char = RX_BYTE every place in the program that required serial input, we
IF char <> “!” THEN Main would use a lot of code space with redundant code. And, by
char = RX_BYTE
IF char <> “P” THEN Main
encapsulating SERIN in a subroutine, we’re able to add the
char = RX_BYTE lowercase-to-uppercase conversion feature.
IF char <> “S” THEN Main Now that we have the header, the next step is to
char = RX_BYTE process receive and process the command byte sent by the
IF char <> “X” THEN Main
host controller:
You see, I told you it was simple. We grab one charac-
Get_Command:
ter at a time, compare it to the header sequence, and jump char = RX_BYTE
back to Main if anything is out of whack. Now, if you’re new IF char = “V” THEN Show_Version
to SX/B you’re probably wondering how this can work, that IF char = “T” THEN Get_Type
is, having a comparison between incoming serial bytes. IF char = “S” THEN Get_Status
IF char = “B” THEN Get_Buttons
This works fine because the SX is running assembly IF char = “J” THEN Get_Joysticks
language and even at the 4 MHz clock we’re using each IF char = “C” THEN Config_IoPort
instruction only takes 0.25 microseconds! At 38.4k baud, IF char = “W” THEN Write_IoPort
IF char = “R” THEN Read_IoPort
each bit is 26 microseconds long so there is plenty of time GOTO Main
during the stop bit to get the comparison done. Remember,
this code gets compiled to assembly language. Here’s a After receiving the command byte, the program simply
small section of the compiled code: compares it to the list of commands available to the program.
You may think that LOOKDOWN and BRANCH would be more
Main: efficient, but in practice, it doesn’t use any less code (after
CALL @__RX_BYTE
MOV char, W being compiled) and it’s not quite as easy to follow in my book.
CJNE char, #”!”, @Main The first command is “V” for version; this is a good idea
to include in your designs, especially if you’re selling them
The first line calls the RX_BYTE subroutine — note as products and making incremental improvements.
that @ is used so the subroutine call can cross code pages. Providing a version number allows the end user to design
On return, the value that was received is retrieved from the around the features available in the product he has. On
W (working) register; this takes one cycle. The comparison receiving the “V” command, the PlayStation Helper will send
is just one line of assembly code, but is a compound state- back a three-byte version string. Here’s the top level code:
ment that takes either four or six cycles, depending on the
comparison result. Still, in the worst case, we’ve only Show_Version:
WAIT_MS 1
consumed seven cycles — 1.75 microseconds — during the TX_OUT Version
26 microsecond window between bytes. I’m not suggesting GOTO Main
we go crazy and try to squeeze a whole lot more (in actual
fact a few more cycles are consumed with the call to and There’s no big mystery here; the only thing you may
return from the RX_BYTE subroutine), but I want you to wonder about is the WAIT_MS 1 line. This inserts a one mil-
rest easy that when compiled, we can do the comparison as lisecond delay before returning the version string so that
shown without any fear of missing the next serial byte. the BASIC Stamp can load up its SERIN instruction to
Okay, speaking of serial bytes, let’s look at the code receive the data from the SX. Here’s the code for WAIT_MS:
that handles that:
WAIT_MS:
RX_BYTE: temp1 = __PARAM1
SERIN Sio, Baud, temp1 IF __PARAMCNT = 1 THEN
IF temp1 >= “a” THEN temp2 = 1
IF temp1 <= “z” THEN ELSE
temp1 = temp1 - $20 temp2 = __PARAM2
ENDIF ENDIF
ENDIF IF temp1 > 0 THEN
RETURN temp1 IF temp2 > 0 THEN
PAUSE temp1 * temp2
This subroutine actually serves two purposes: it ENDIF
receives the serial byte and if the byte is a lowercase letter, ENDIF
it gets converted to uppercase. This subroutine points out RETURN

20 January 2006
Stamp.qxd 12/8/2005 11:55 AM Page 21

STA M P A P P L I C AT I O N S

This is a subroutine that can handle a variable number ally quite easy to do as the Z flag will be set (to 1) when we
of parameters (one or two). The first parameter is required increment the offset from 255 to 0 — all we have to do is add
and is the base delay time in milliseconds. If a second the Z bit to the base after incrementing the offset. In most
parameter is provided, this is used as a multiplier, other- cases, the Z bit will be zero but when we have a roll-over, it
wise the multiplication factor is set to one. The internal will be set to 1 and the base will be updated properly.
variable, __PARAMCNT, is used to check the number of Note that TX_OUT calls the TX_BYTE subroutine. This
parameters sent to the subroutine, and as you can see, it one is really easy; it simply makes a copy of the byte passed
gives us a lot of flexibility. Finally, we check to see that nei- to it and then transmits it with SEROUT on the specified
ther parameter was set to zero and do the delay using the port at the program baud rate:
version of PAUSE that uses the multiplication of two bytes.
TX_BYTE:
After the delay, we send the version string back to the temp1 = __PARAM1
host with TX_OUT. Let’s look at that code: SEROUT Sio, Baud, temp1
RETURN
TX_OUT:
temp3 = __PARAM1 In actual fact, TX_OUT started as TX_STR (transmit
IF __PARAMCNT = 2 THEN string) and always required two bytes. It was a simple mat-
temp4 = __PARAM2 ter to update the subroutine to handle one byte or two so
DO the main code only ever needs to call TX_OUT. Yes, we
READ temp4 + temp3, temp5
IF temp5 = 0 THEN EXIT could use TX_BYTE, but if we made a change from sending
TX_BYTE temp5 a byte to sending a string we’d also have to change which
INC temp3 subroutine gets used. By only using TX_OUT in the main
temp4 = temp4 + Z
LOOP body of our program we never have to worry about that.
ELSE So far the program has been pretty generic — and
TX_BYTE temp3 that’s the point. What I’m suggesting is that we can use this
ENDIF
RETURN framework for a whole host of serial accessories that
are useful for BASIC Stamp (and other microcontroller)
TX_OUT is quite flexible in that it can be used to trans- projects. As I indicated earlier, this framework runs in the
mit a single byte or multi-byte strings (stored as z-strings). RC-4, DC-16, and AP-8 products that are part of the Parallax
Again we use __PARAMCNT to determine the behavior of EFX line; you can do it too.
the subroutine. When a single byte is passed, there will Let’s get into the PlayStation-specific code. Remember
only be one parameter. When a string is passed to the sub- that the PlayStation controller acts like a big, smart shift
routine, two parameters are required due to the 12-bit size register, and it can receive and transmit data at the same
of the string address. In the case of returning the version to time. Since SHIFTOUT and SHIFTIN do only one thing each,
the host, two parameters will be passed to the subroutine: let’s create a subroutine that handles the full-duplex nature
the base and offset address values of that string. of the controller.
It’s important to note that strings can be handled in
PSX_SHIFTIO:
two ways. For the version string, we’re going to store it in a IF __PARAMCNT = 1 THEN
DATA statement like this: temp3 = __PARAM1
ELSE
Version: temp3 = 0
DATA “0.1”, 0 ENDIF
temp4 = 0
When we use a stored string like this we must append FOR temp5 = 1 TO 8
PsxCmd = temp3.0
the zero terminator ourselves and we’ll pass the string label temp3 = temp3 >> 1
to the subroutine — this gets resolved by the compiler to the PsxClock = 0
base and offset memory locations. The nice thing about this WAIT_US 5
temp4 = temp4 >> 1
subroutine is that it also lets us send inline strings like this: temp4.7 = PsxData
PsxClock = 1
TX_OUT “Nuts & Volts rocks!” WAIT_US 5
When we pass an inline string, the compiler adds the NEXT
RETURN temp4
zero-terminator for us. Note that if we’re going to send the
same string more than once then the most efficient This is definitely the trickiest subroutine in the program
method is to store the string in a DATA statement. in that it can send a byte to the controller, it can get a byte
Getting back to TX_OUT we see that it uses a DO-LOOP from the controller, and it can do both at the same time. We’ll
construct to transmit the string. READ is used to retrieve each see all three uses of the subroutine’s capabilities in just a bit.
character from memory and if it’s zero, we’re done (hence the When the subroutine is called with an output parame-
use of EXIT). Remember that SX/B variables are bytes only ter, that value is copied into temp3 — if not provided,
but we’re using a 12-bit address for the string characters. temp3 is set to zero as this is the output byte to the con-
What this means is that when we increment the offset value, troller. Before entering the transmission loop, temp4 gets
we need to update the base value on a roll-over. This is actu- cleared; this is the input byte from the controller and will
January 2006 21
Stamp.qxd 12/8/2005 11:56 AM Page 22

be passed back to the caller. A FOR-NEXT loop is used to The READ_PSX subroutine shows the flexibility that
send and receive eight bits, and the transmission — in we built into the PSX_SHIFTIO routine. We start by sending
PBASIC terms — is LSBFIRST. The first step is to put the $01 — notice that we don’t care about anything that gets
LSB (temp3.0) onto the PsxCmd pin and then pull the clock returned so there is no assignment. The next line, however,
line low to output that bit. Note that we shift the next bit sends $42 (get data) with PSX_SHIFTIO and assigns the
right before the clock to add a bit of timing delay before the return value to psxId. This tells us what kind of controller is
clock change and to have the next bit in place for the next connected; it will usually be $41 for digital controllers or
iteration of the loop. $73 for analog controllers. After the ID byte, the controller
After the clock line goes low, the controller will output transmits a packet header of $5A. After this, header
a data bit (LSBFIRST) onto the PsxData pin. Here’s where controller sends two bytes of button data and, if in analog
things can look a little confusing at first. We start by mode, four bytes of joystick data.
shifting temp4 to the right by one bit and then placing the I happen to have a Sony analog controller that can be
data line bit into temp4.7. We have to do this because we set to digital or analog mode. I made a decision for
ultimately want the first bit read to end up in temp4.0 — this subroutine to stuff the joystick bytes with $80 if the
this will, in fact, happen after eight iterations of the loop. controller is digital or set to digital mode. The value $80
One thing of note is the clock timing. I don’t actually represents the center position of each joystick axis and
have a PlayStation console but I met a guy named Jim in allows me to simplify my BASIC Stamp programs. If we
the Parallax user forums who happened to borrow one from don’t include this conditional code, then each joystick
his nephew. He connected a ‘scope and told me that the value will be set to $FF (extreme right or down position)
high and low timing of the clock line was about five when in digital mode, and in my mind this is not the best
microseconds. That’s what I’ve been using and have never value to return to the host.
had a problem — I suspect it’s probably a bit on the Finally, the subroutine inverts the button bits so that a
generous side, but I see no need to push it. At this speed it pressed button bit has a value of 1 when sent back to the
takes just about five milliseconds to get the entire packet BASIC Stamp.
from the controller. Okay, now that we can read the controller, the
And here’s the code that does just that: command sections that handle the various requests for
data are a breeze.
READ_PSX:
PsxAttn = 0
WAIT_US 20 Get_Status:
PSX_SHIFTIO $01 WAIT_MS 1
psxId = PSX_SHIFTIO $42 READ_PSX
psxStatus = PSX_SHIFTIO TX_OUT psxThumb1
psxThumb1 = PSX_SHIFTIO TX_OUT psxThumb2
psxThumb2 = PSX_SHIFTIO TX_OUT psxJoyRX
IF psxId = $73 THEN TX_OUT psxJoyRY
psxJoyRX = PSX_SHIFTIO TX_OUT psxJoyLX
psxJoyRY = PSX_SHIFTIO TX_OUT psxJoyLY
psxJoyLX = PSX_SHIFTIO GOTO Main
psxJoyLY = PSX_SHIFTIO
ELSE Get_Buttons:
psxJoyRX = $80 WAIT_MS 1
psxJoyRY = $80 READ_PSX
psxJoyLX = $80 TX_OUT psxThumb1
psxJoyLY = $80 TX_OUT psxThumb2
ENDIF GOTO Main
PsxAttn = 1
Get_Joysticks:
psxThumb1 = ~psxThumb1 WAIT_MS 1
psxThumb2 = ~psxThumb2 READ_PSX
RETURN TX_OUT psxJoyRX
TX_OUT psxJoyRY
TX_OUT psxJoyLX
This routine starts by pulling the PsxAttn line low to TX_OUT psxJoyLY
activate the controller. According to Jim, the PlayStation GOTO Main
console waits 20 microseconds before transmitting the
start byte ($01) so I’ve put that into my code. For those of As you can see, all of this code is very straightforward
you that have used the BASIC Stamp to connect to the and gives us the ability to request from the PlayStation
PlayStation controller, we need to keep in mind that it Helper module just what we need. Figure 4 shows the
takes at least 100 microseconds to load each instruction so output from a simple BASIC Stamp controller that retrieves
there’s a lot of built-in delays. Since we’re dealing with and displays the controller values (it’s included in the
compiled code we have to manually put those delays in. download files).
The WAIT_US subroutine is identical to the WAIT_MS Since this is designed to be a robot controller, let’s
routine that we looked at earlier, the difference being that take advantage of those spare pins on the SX28. By using
it uses PAUSEUS instead of PAUSE. the “C,” “W,” and “R” commands, we can configure, write,
22 January 2006
Stamp.qxd 12/9/2005 2:10 AM Page 23

STA M P A P P L I C AT I O N S

and read the RC port. Just one caveat: the SX uses 0 to indi-
cate an output bit, and 1 to indicate an input bit — this is
exactly opposite of what we do in the BASIC Stamp (DIRS
register). Knowing this, we will send BASIC Stamp style
data to the PlayStation Helper module and invert the
bits before assigning the configuration value to the TRIS
register. Here’s the code for handling the extra I/O port:
Config_IoPort:
char = RX_BYTE
PlpIO = char
char = ~char
TrisIO = char
GOTO Main

Write_IoPort:
IoPort = RX_BYTE
GOTO Main

Read_IoPort:
WAIT_MS 1
TX_OUT ~IoPort
GOTO Main
■ FIGURE 4. PSX helper test output
One of the things that you’ll notice about the PsxData lines to see
Config_IoPort section is that the SX pull-ups are activated exactly what happens when the motors are activated.
on any pin that is made an input. Now this means that Unfortunately, my friend Jim doesn’t have a multi-channel
inputs will be active-low, so we’ll invert the bits sent back logic analyzer and couldn’t do that for me — and it’s not
to the BASIC Stamp to make them look active-high — just something that can be done with a two-channel scope; one
as we did with the controller button bits. needs to know what the console and controller are doing
and in relation to each other.
I tell you what ... if you have a console and are able to
WHAT ABOUT FORCE FEEDBACK? do that analysis for me, I will send you a shiny new Parallax
To be honest, I was really hoping to conquer the force Professional Development Board. Here’s the offer: the first
feedback motor control before using the SX with the person that sends me working code, or enough information
PlayStation controller; sadly, every one of my attempts has that I can add working code (that is, independent motor
failed. I have scoured the Internet for information and control through the seria link) to this project wins the PDB.
while there is some information out there, it is usually Until next time — Happy Stamping! NV
incomplete and not documented. What I’m going to be
forced to do, I think, is rent or borrow a console and con- The PSX Helper Schematic can be viewed at the
nect a logic analyzer to the PsxAttn, PsxClock, PsxCmd, and Nuts & Volts website at www.nutsvolts.com

January 2006 23
LetsGetTechnical.qxd 12/8/2005 7:06 PM Page 24

LET’S GET

■ BY JAMES ANTONAKOS
TECHNICAL
ELECTRONIC THEORIES AND APPLICATIONS FROM A TO Z

WHY I AM GLAD MY
COMPUTER CRASHED
Twice, But Who’s Counting?
IN MY ROLES AS AN EDUCATOR, AUTHOR, AND COLUMNIST, I utilize my
computer extensively. There are many specialty software applications I use for
drawing schematics, writing code, creating graphics, and working with images.
I also use common applications such as Word, Excel, Email, and Internet Explorer.

R ecently, I had two major prob-


lems. One turned out to be bad
memory, which intermittently cause
and here I am using the basement
computer shared by my four
children and roughly 600 pieces of
Since the length of the Data field
is variable, the total length of an
Ethernet frame varies from 72 bytes to
havoc, resulting in many fatal crashes spyware. 1,526 bytes. If you add the lengths of
involving dumping physical RAM to Since I do not have my usual all fields except for the Data field, you
the hard disk. I brought a brand-new tools, this will not be a usual column. get 26 bytes. No matter how many
computer home to use while I worked I am holding off on my Z8 Encore XP bytes of data are contained in the
on the old one. followup column till next time, where frame (46 to 1,500), there are always
The new computer failed today I will be able to announce the winners 26 bytes of additional field informa-
(today for me being Monday, of the design contest (recall that I am tion. Switching to units of bits, we
November 15, 2005). It appears to be giving away 10 Z8 Encore XP develop- have 26*6 = 156 bits of field informa-
a magnificent failure at first glance, as ment kits). tion in each frame.
the only thing you hear when power is Instead, I offer the following The way Ethernet is designed,
applied is the sound of fans. No beep thoughts about several different top- there is always an idle time period
of any kind from the speaker (indicat- ics. I hop across boundaries between after each transmitted frame. This is
ing POST is not running) and nothing computer science, electrical engineer- called the interframe gap, and it
on the display. Of course, it worked ing, physics, and other areas. corresponds to 96 bits’ worth of time.
just fine a few hours ago. However, my So, when transmitting an Ethernet
humidifier is not working yet and it frame, we use 156 bits for field
has been cold lately, so there is
IF I HAD A NICKEL FOR information and 96 bits (96 bit
more static electricity in my home EVERY WASTED BIT times) for the interframe gap,
than usual. Maybe I blasted the CPU giving 252 bits. Let us call
with a few thousand volts of static The format of an this the “overhead.”
discharge. Ethernet frame consists If we transmit nothing
Well, the main thing I learned of seven fields: but 72-byte, minimal-
when my first computer crashed was length Ethernet frame for
that I need a second computer. Not 1. Preamble, seven bytes an entire second, we will
because my first one crashed, but it 2. SFD, one byte be able to clock out 14,880
is useful to have a second computer 3. Destination MAC Address, complete frames using 10 Mbps
for things like testing client-server six bytes Ethernet (100 nanoseconds per bit).
network applications. Anyway, now 4. Source MAC Address, six bytes Now, imagine how many bits are
my second computer has also 5. Type, two bytes involved when we multiply 14,880
crashed. So, it looks like my second 6. Data, 46 to 1,500 bytes frames by the overhead of 252 bits per
computer needs a second computer, 7. FCS, four bytes frame. Specifically, we are talking
24 January 2006
LetsGetTechnical.qxd 12/8/2005 7:10 PM Page 25

LET’S GET TECHNICAL

about 3,749,760 bits. That is 37% of clocked once every 15 nanoseconds. packs or upgrades. In other words, the
our 10,000,000 bit bandwidth. That This means we can change the inputs computer looked very attractive to
leaves almost 6,300,000 bits for carry- every 15 nanoseconds, instead of someone looking for a computer to
ing data each second. every 30. We also get a new result at break into.
But hold on a minute. If we are the output every 15 nanoseconds, The initial infection took less
exchanging data between a UDP or instead of every 30. The pipeline can than 24 hours and the winner was the
TCP application, the Data field of the be operated two times faster than the Nachi worm, a nasty bandwidth
Ethernet frame will contain two or original circuit. hogger as it seeks other computers to
more encapsulated protocols, such as If we divided the six gates into infect. The honeypot went live on a
IP carrying UDP, or IP carrying TCP car- three groups of two gates each, the Friday afternoon, and Monday
rying HTTP. Either way, the protocol pipeline would have three stages, morning my ISP was on the phone
headers take away another chunk of with each stage clocked once every informing me of the infection. I asked
bits, leaving us with even less bits for 10 nanoseconds. The circuit can be the ISP technician how he discovered
carrying data. operated three times faster than the my computer was infected. He replied
On top of all that, we have original circuit. So, maybe you see that my system was a “top talker” on
assumed a perfect Ethernet network why I say “less is more.” the network, and his laptop monitors
with no collisions. Any collisions will On the other hand, suppose we top talkers.
cause retransmission of the affected have a group of gates that perform a Even more interesting than that
frames (after a random idle period), particular arithmetic operation for was what happened after the first
wasting even more of our precious bit us, such as signed addition. Whether attacker identified my honeypot as
budget. the gates are pipelined or not, the a vulnerable host. Within an hour,
In short, when you think of 10 circuit takes a certain amount of time several ‘buddies’ had joined in the
Mbps Ethernet, be aware that all to do its job. If we add a second fun, with probes coming from lots of
those bits are not being used as data group of gates (another copy of the different IP addresses and networks. I
bits. original circuit), it would appear that can only imagine that once the
performance would suffer. After all, machine was penetrated, word got
there are now two circuit delays out as one attacker told another and
LESS IS MORE, instead of one. The trick, however, is the party got started.
MORE IS MORE to operate the two circuits in parallel. I ran a network sniffer program on
Thus, there is still only one circuit the honeypot while it was being
As any digital electronics stu- delay, but now two results are avail- attacked and captured many
dent may recall, the more logic able instead of one. We change the attempts. I shared the capture files
gates you have in a circuit, the inputs on both circuits at the same with my computer security and foren-
longer the propagation delay time, wait one circuit delay, and then sics students so they can analyze
between the inputs and outputs. For read the results from the outputs of them and discover what happened
example, a circuit with six gates both circuits. More logic leads to themselves.
connected in a series fashion, with more performance when parallelism
one gate’s output feeding the next is exploited. This is why I say “more is
gate’s input, will have a cumulative more.”
CONCURRENT VERSUS
propagation delay equal to the sum SIMULTANEOUS
of the individual gate delays. If we
THE SOCIAL LIFE INSTRUCTION
pretend that each gate has an iden-
tical delay, say five nanoseconds, OF A HONEYPOT EXECUTION
then the entire circuit has a delay of What is the difference between
30 nanoseconds. The significance of One summer, I set up a honey- instruction execution being concur-
the gate delay is that we must wait pot in my college office. A honey- rent or simultaneous? First, consider
for 30 nanoseconds after changing pot is a computer connected to a single processor system, with the
the inputs before we can change the Internet that is deliberately processor containing a single instruc-
them again. vulnerable to attacks. There is tion execution unit. Concurrent exe-
By reorganizing the circuit so no firewall to protect it, no cution means two or more threads of
that the gates function as a router to hide its presence code are executed over a period of
hardware pipeline, we might via NAT, no anti-virus or time, taking turns at the execution
put three gates in each of two anti-spyware software unit. To execute the two threads
stages. This means that each running. The operating simultaneously, the processor would
stage has a delay of only 15 system on the computer need to have a second execution unit,
nanoseconds. By putting was a freshly-installed or you would need to add a second
latches between the logic copy of Windows NT processor. Newer Intel CPUs provide
gates, each stage can be Server with no service both concurrent execution (via its
January 2006 25
LetsGetTechnical.qxd 12/8/2005 7:10 PM Page 26

Hyperthreading technology) and pole to South pole, or North pole to went through almost 35 years
simultaneous execution (via multiple North pole, you know the force of knowing the law of attraction and
pipelines). repulsion can be very strong. repulsion, without ever stopping to
Applying this concept to the atom, think: what keeps the protons togeth-
the negatively charged electrons in er in the nucleus? They have the same
SOMETHING SMALL orbit around the nucleus stay as far charge, so what are they doing next to
TO THINK ABOUT away from each other as possible. each other in the tiny, little nucleus?
They do not leave the atom’s orbit Well, they are pushing away from each
Have you ever heard the state- because they are attracted to the other like crazy. But they are held
ment “like charges repel, unlike positively-charged protons inside the close together in the nucleus by the
charges attract?” If you have ever tried nucleus. Strong force, one of the four
to push two magnets together, South There is the problem right there. I fundamental physical forces in the
Universe. The Strong force only acts
across short distances, namely the
distance across the nucleus.
HobbyEngineering So, the protons are there to stay,
unless radioactive decay occurs. Then
The technology builder's source for kits, components, supplies, tools, books and education.
many strange things happen.
Otherwise, the only changes the atom
Robot Kits For All Skill Levels ICs, Transistors, Project Kits may experience would be gaining or
losing an electron from its orbit.
Motors, Frame Components
Adding energy to an atom causes the
and Scratch Builder Supplies.
electron orbits to increase in distance,
moving the electrons farther and
Order by Internet, phone, fax or mail.
farther away from the nucleus, and
www.HobbyEngineering.com
lowering the attraction to the protons.
Books and 1-866-ROBOT-50 Eventually, by adding enough energy,
Educational K 1-866-762-6850 an electron gets far enough away to
1-650-552-9925 break free and begin roaming around
1-650-259-9590 (fax)
sales@HobbyEngineering.com as a free electron. Since electricity is
180 El Camino Real the flow of free electrons from one
BEAM Kits and Components Millbrae, CA 94030 location to another, we must be able
Visit our store near SFO!
to produce a lot of them to sustain the
current in a circuit. Fortunately, there
Most orders ship the day received! World-wide shipping. Convenient payment options. is enough heat energy in our everyday
environment (even in the middle of
the coldest winter) to create plenty of
free electrons in copper, gold, silver,
The Standard for checking Locate shorted or leaky and other conductors.
Capacitors in-circuit components or conditions What happens when there are too
Good enough to be the to the exact spot in-circuit many of these high-energy electrons
choice of Panasonic, Still cutting up the pcb, moving through a wire? The wire gets
Pioneer, NBC, ABC, Ford, and unsoldering every hot and possibly melts. Such power-
JVC, NASA and thousands part trying to guess at ful results from such a little thing.
of independent service where the short is?
technicians. $199
Inexpensive enough to pay for itself in just Your DVM shows the same shorted reading all
I REALLY AM GLAD
one day’s repairs. At $199, it’s affordable. along the pcb trace. LeakSeeker 82B has the THEY CRASHED
resolution to find the defective component.
And with a 60 day trial period, satisfaction Touch pads along the trace, and LeakSeeker So, yes, I am glad my computer
guaranteed or money-back policy, the only beeps highest in pitch at the defect’s pad. Now (computers) crashed. The crash
thing you can lose is all the time you’re you can locate a shorted part only a quarter of (crashes) allowed me to walk a
currently spending on trying to repair all an inch away from a good part. Short can be different way for a change, and I like
those dogs you’ve given up on. from 0 to 150 ohms variety, surprises, and challenges.
CapAnalyzer 88A LeakSeeker 82B Plus, now that my column is finished,
Available at your distributor, or call 561-487-6103 I can begin troubleshooting crash #2.
Electronic Design Specialists www.eds-inc.com But only after getting my humidifier
running for the winter. NV
26 January 2006
Page27.qxd 12/8/2005 11:24 PM Page 27

Amazing Devices OVER 5000 UNIQUE OPTICAL PRODUCTS


www.amazing1.com
WITH 5,000,000 IN STOCK!
Laser Modules
All laser modules operate from 3 volts and include built in optics
providing a parallel beam of 1mr or less. Includes instructions on
safety requirements for FDA full compliance
EXPERIMENTAL &
Red - Class IIIa
LM650P3 - 3mw 650 nm12 x 45 mm ........ $14.95 COMMERCIAL
LM650P5 - 5mw 650 nm 12 x 45 mm ....... $24.95
LM630P3 - 3mw 630 nm 10.5 x 45 mm .... $34.95
Red - Class IIIb
GRADE LENSES
LM650P10 - 10mw 650 nm 12 x 51 mm ... $99.95 • Start Up
LM650P30 - 30mw 650 nm 12 x 51 mm . $249.95
Green - Class IIIa • Prototype • Research
LM532P5 - 5mw 532 nm 12X45 mm ........ $49.95 • Single Unit Applications
Infrared - Class IIIb
LM980P30 - 30mw 980 nm 12X30 mm ..... $49.95 • Educational Applications
Laser Diode Visible Red - Class IIIb • Initial Run Requirements
LD630-P10 - 10mw 635 nm 5 mm diode .... $29.95

High Voltage Capacitors


Ceramic capacitors for voltage multipliers, etc.
22/6KV - 22 pfd 6kv .28” x .17” ................. $.35
50/6KV - 50 pfd 6kv .325” x .18” ................ $.45
100/6KV - 100 pfd 6kv .46” x .17” .............. $.65
200/3KV - 200 pfd 3kv .3” x .25” ................ $.45
270/3KV - 270 pfd 3kv .3”d x .25” .............. $.45
470/10KV - 470 pfd 10kv .35”d x .25” ......... $.75
1000/20KV - 1000 pfd 20kv .5”d x .37” ..... $2.25
.01/2KV - .01mfd 2kv .63” x .13” ............... $.50
Energy Storage Capacitors
Electro-kinetics,wire exploding, can crushing, emp, etc. ANCHOR
25M/5KV - 25 mfd 5 kv 312J 10 x 4 x 3 can ...... $100.00 optical surplus
32M/4.5KV - 32 mfd 4.5 kv 324J 9 x 4 x 2 can ... $170.00
10002M/2KV - 1000 mfd 2 kv 2K J 4 x 8 x 7 can $299.00 a division of Edmund Optics
1.3M/100KV - 1.3 mfd 100 kv 6500J case ........ $750.00 A Catalog Devoted to Optics... New 84 page color catalog!
High Voltage Transformers ANCHOR OPTICAL SURPLUS www.AnchorOptical.com/nv
Includes circuit schematics on how to use.
28K089 - 7kv 10ma 30 khz 9-14v 1”cube . $19.95 Dept. B061-X960, 101 E. Gloucester Pike, Barrington, NJ 08007-1380
28K074 - 4kv15ma 30 khz 9-14v 1”cube . $17.95 Tel: 1-856-573-6865 • Fax: 1-856-546-1965 • E-mail: nv@AnchorOptical.com
28K077 - 2kv 10ma 30 khz 7-9v .7x1.25 .... $9.95
CD25B - 20 kv trigger pulse 1 x 1.25 ...... $16.95
CD45 - 40 kv trigger pulse 1.25 x1.25 .... $18.95
TRAN1035 - 10 kv35 ma bal output ........ $39.95
FLYLABURN - 10 kv 60 ma end grd ...... $49.95
FLYEXP - 4 misc flybacks ................... $24.95
FLYHP - High power large flyback ........ $34.95

High Volt/Freq Modules


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

High Volt DC Modules


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

Parts for Tesla Coils


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

January 2006 27
Page28.qxd 12/8/2005 11:03 PM Page 28

Robotics and Automation


Electronic Speed Controller $34.95
Our fully protected PicoESC Controls a DC
brushed motor using R/C, Analog
or serial ports. Operates from 6 to
24v @ 7A continuous (30A surge).
User adjustable on-board pot con-
trols the ramping speed for smooth
starts and stops which prolongs the life of gear
motors.
Fail-safe functionality on the R/C input, dis-
ables the motor when R/C signal is lost.

R/C Servo and I/O Controllers


From $39.95
We have the largest selection of
R/C and I/O controllers on the
planet. These are the most fea-
ture-rich controllers money can
buy.
With the addition of many of our
other modules, you can control the
world using your PC and any
programming language that can
send and receive serial data. No
new and complicated languages to
learn. Just set it and forget it.

Stepper motor Controller $39.95


Our PicoStep is small in size and price but not
in power and versatility. Controls
one bipolar motor @2.5A for
voltages up to 30 volts.
This is a micro-stepping, current
chopping controller that allows
maximum speed and torque using
any stepper motor.

CNC Controller $500


Our PicoCNC can control 4
bipolar steppers and is an ideal
device to convert an ordinary
milling or lathe machine into a
full-blown CNC system.
We have everything you need to
convert an inexpensive Mill or
Lathe into your own CNC system.

Custom Designs
Our main business comes from custom
designs and consulting. We design and
build all of our controllers. As such,
we can sell them for lower prices than
most companies.
If you have a specific need and can not
find the design you’re looking for,
send us an email with your require-
ments and we can quote you
a price for a custom job.
We have designed many new
products for others. Maybe
we can design one for you?

PicoBotics.com
(819) 246-5048
28 January 2006
Page29.qxd 12/8/2005 11:04 PM Page 29

January 2006 29
NewProductsJan06.qxd 12/9/2005 12:22 AM Page 30

■ HARDWARE

AV SERIES
NEW
P R O D
plated contacts, and nickel plated
brass bushings.
U C
■ SOFTWARE
■ GADGETS
■ TOOLS

T S
or fiber data lines you have in place
now for USB devices,” said Fahrion.
PUSHBUTTON “The fiber conductor models
For more information, contact: bring an added benefit to the table,”
SWITCHES APEM Components, Inc. continued Fahrion. “Since fiber is
63 Neck Rd., PO Box 8288 inherently immune to electrical and
Haverhill, MA 01835 radio interference, the fiber models
Tel: 978-372-1602 give you surge protection and optical
Web: www.apem.com/gr isolation. Many customers will
purchase this product strictly for the
isolation feature.”
B&B Electronics has copper
CONNECT media models for USB Type 1.1 with

A PEM Components, Inc. — a


leading manufacturer of high
quality miniature and industrial switch-
USB DEVICES
OVER A QUARTER
ranges of 50 meters and 100 meters. A
50 meter version for USB Type 2.0 is
also available. If fiber optic is your
es — introduces its new AV Series MILE APART media of choice, there are 10 meter
pushbutton switches with an overmold and 500 meter versions available.
actuator. Complementing APEM’s line
of pushbutton switches, the AV Series
is ideally suited for applications per-
T he USB
stan-
dard calls for
For more information, contact:
B&B Electronics
taining to security panels, public kiosks, a maximum 707 Dayton Rd., PO Box 1040
Ottawa, IL 61350
vending machines, ATM machines, range of five
Tel: 815-433-5100
handicap access control panels, and meters (16.4 feet), Fax: 815-433-5109
heavy hydraulic lift equipment. but you can stretch this useful proto- Web: www.bb-elec.com/ulinx
APEM’s highly secure AV Series col to over 100 meters using standard
pushbutton switches feature a stain- UTP cabling, or as much as 500 meters
less steel actuator with thermoplastic (1,640 feet) by using fiber cable. This
overmolding, available in a variety magic is made possible through the 5 MHz DUAL CHANNEL
of colors. Actuator styles include use of the new Ulinx™ USB Extender
illuminated ring or illuminated ring Modules from B&B Electronics. HAND-HELD
and disc models.
Electrical and general specifica-
“We’re not fudging on the USB
Standard,” says B&B Electronics
OSCILLOSCOPE
tions include power ratings of 50 mA
maximum at 24 VDC resistive load
and an electrical life of one million
Director of Marketing (and past
Director of Engineering) Mike
Fahrion. “These are fully compliant
E xtech Instru-
ments, a major
supplier of test and
cycles at full load. AV Series switches with the USB specification. They measurement equip-
have an initial contact resistance of deliver all of the benefits of USB, ment for the indus-
100 milliohms maximum and a including remote device powering, trial marketplace,
dielectric strength of 500 Vrms mini- plug and play operation, and cross- now offers a new 5
mum (50 Hz minimum between termi- platform flexibility.” MHz Dual Channel
nals and 2.000 Vrms, 50 Hz minimum Ulinx USB extenders are com- Hand-Held Oscillo-
between terminals and bushing). posed of two separate units: the local scope with built-in
Operating temperatures range from - extender and the remote extender. digital multimeter. Easy to operate and
30°C to +70°C. Additionally, the AV The user supplies up to 100 meters of carry, the Model 381295 is micro-
Series is available in both solder lug Cat 5 cable or 500 meters of fiber processor driven, features dual inputs
and straight PC terminals. optic cable to connect the modules. with internal and external triggering,
Material specifications include “It may even be able to use an existing and allows the user to measure and
brass or gold plated terminals, gold cable, allowing you to use the copper graphically view two signals at the

30 January 2006
NewProductsJan06.qxd 12/9/2005 12:22 AM Page 31

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

same time. The 381295 is soft key menu eight relay printed circuit board TIMED EVENT
driven and comes with Windows®
compatible software that enables the
assembly designed to allow micro-
controller and other logic circuits to
CONTROLLER
user to display a live waveform on their control high current loads. It features (TEC)
computer screen and to control the eight single-pole double-throw “Form
operation of the meter remotely.
In addition to waveforms, the
381295 also allows the user to quickly
C” relays with 10 amp contacts, and
includes convenient terminal block
connections, on-board back EMF sup-
P CS (Powerline Con-
trol Systems, Inc.),
a Northridge, CA based
and conveniently view true RMS pression diodes, and LED indicators manufacturer of lighting
AC/DC voltage, resistance, continuity, for each relay circuit. control products, an-
frequency, RPM, pulse width, and per- The RIO-8 printed circuit board is nounces a new product
cent duty cycle. Advanced functions physically arranged in two sections of addition called the TEC to its Pulse-
include the ability to store and recall four relays each, and each section has Worx™ product line. The TEC, a
up to 16 waveforms, freeze and hold a independent connections to its own programmable timer to automatically
reading, and view DC voltage shifts in terminal blocks, as well as connec- control PulseWorx lighting devices at
the slow roll mode. tions between the two sections. This preset times provides lighting automa-
Ideal for electrical, HVAC, electron- arrangement allows the board to be tion without the need for an expensive
ic, and automotive applications, the separated into two relay boards, if home management system.
381295 features a super-twist, two-level desired. “For consumers who simply want the
display. The viewing screen of the The board can be powered by 10 convenience of having certain lights
381295 is backlit for easy viewing and to 14 volts DC regulated or unregulat- come on at different times of the day, the
has a “window freeze” function that ed, and requires only enough current TEC is the answer,” explains Stan Mann,
locks waveforms on it. Serving a variety to power the relays to be operated PCS VP and Director of New Business
of applications — such as sensor test- plus their LED indicators. Development and Licensing. “It provides
ing — it can also switch into “roll The new version of the an affordable automated lighting control
mode” for slow repetition waveforms. RIO-8 allows the relay circuits to be solution for people who don’t need a
It has a sampling time of 25 MS/s for configured with convenient jumper full-fledged home automation system.”
dual channel and 50 MS/s for single plugs for one of two circuit configura- The TEC is part of PCS’s PulseWorx
channel. tions, and no longer needs to be line of residential lighting control prod-
The 381295 comes complete with ordered hardwired to a particular ucts that utilize the patented UPB™
four test leads, four alligator clips, a configuration. (Universal Powerline Bus) technology.
protective holster, a Ni-MH battery The jumpers allow the circuits to The TEC can be programmed with 20
pack, an AC adaptor/charger, an RS- be individually configured in one of individual events which can occur
232 cable, Windows compatible soft- these two ways. between once a day to once a year. Based
ware, and a carrying case. First, the “open collector” config- on geographic location, a built-in astro-
uration is used where the relays are nomical clock can automatically adjust
For more information, contact: operated by sinking the relay current for sunrise/sunset, leap year, and daylight
Extech Instruments to ground. This type of operation is savings. All programmed data is
Tel: 781-890-7440
typical of devices that have open protected by non-volatile memory and
Web: www.extech.com
collector transistor outputs. can only be changed or deleted by
Second, the “logic level” configu- reprogramming, regardless of power out-
ration is used with devices that have age durations. A computer is used to
RIO-8 EIGHT RELAY logic level output signals. These sig- program the TEC but scheduled events
OUTPUT nals operate transistors on the RIO-8 can easily be disabled from any UPB
that sink the relay current to ground. transmitter. All PulseWorx products are
BOARD Complete information and docu- sold through authorized PulseWorx
mentation on Industrologic’s entire dealers, wholesale distributors, and
REDESIGN line of products is available at their professional integrators. These repre-

I ndustrologic, Inc., announces the re-


design of their popular RIO-8 Relay
Board to allow jumper selectable con-
website. sentatives sell, install, and support Pulse-
Worx products to residential customers.
For more information, contact:
figuration of the relay circuit options. Industrologic, Inc. For more information, contact:
The Industrologic RIO-8 is an 3201 Highgate Ln. Powerline Control
St. Charles, MO 63301 Systems, Inc.
Tel: 636-723-4000 19201 Parthenia St., Ste. J
Fax: 636-724-2288 Northridge, CA 91324
Email: info@industrologic.com Tel: 818-701-9831
Web: www.industrologic.com Web: www.pulseworx.com

January 2006 31
Weijers.qxd 12/8/2005 6:34 PM Page 32

PROJECTS ●●●●
■ THIS MONTH’S PROJECTS
Auxiliary RC Control Unit . . . . . .32

Weather Projects . . . . . . . . . . . . .38

The Perceptron Circuit . . . . . . . .44


ARCUCONTROL
XILIAUNIT
RY
■ LEVEL RATING SYSTEM
To find out the level of difficulty A n obvious solution would be to
use a second transmitter/
receiver system on a different
gear, etc. The solution here is to
replace control of the last two
channels in either a six or eight
for each of these projects, turn
frequency. At our field, this is not channel system with signals from
to our ratings for the answers. a viable solution because only a an auxiliary unit. For the purpose of
limited number of units are allowed this discussion, we will use a six
●●●● . . . . Beginner Level to be airborne at the same time. channel system. The auxiliary con-
Most RC systems have a trainer trol unit achieves this with a simple
●●●● . . . . Intermediate Level connection on the transmitter. Two but elegant circuit without resorting
transmitters are connected via this to the use of a microprocessor. It
umbilical cord. The student’s trans- should be noted that this scheme is
●●●● . . . . Advanced Level mitter provides only the modulat- limited to systems using pulse
ing signal to the main transmitter. A position modulation (PPM).
●●●● . . . . Professional Level switch on the main transmitter
allows the instructor to connect or Tools and Circuit
disconnect the trainee. The only Board
requirement here is that both units
use the same number of channels The unit can be built using
The challenge and the same type of modulation.
However, it is all or nothing. Either
standard tools. It may be wire
wrapped, point-to-point wired, or on
the instructor controls all the chan- a printed circuit board. I used a pre-
seemed simple: nels or the student has full control. printed board which worked very
The primary channels, i.e., the well. The only other tool required is
have an assistant first four channels are typically a dual channel oscilloscope.
ailerons, elevator, throttle, and rud-
control a camera der. The remaining two or more Prepare the
channels are used for flaps, landing Connecting Cable
or other piece of ■ FIGURE 1. Buddy box connector You will need a six pin male
rear of transmitter
connector to match with the
equipment on a connector on the back of the
transmitter. Use a shielded cable
remote controlled with at least three wires. Pin 1
is +9.6 volts, battery negative
connects to the shield of the
model aircraft connector; pin 2 is the PPM signal
from the transmitter; and pin 3 is
while the pilot the PPM signal returning to the
transmitter. Note that the power for
concentrates on the ACU (auxiliary control unit) is
supplied by the transmitter. Figure
flying the model. 1 shows the connector as seen on
the back of the transmitter.

32 January 2006
Weijers.qxd 12/8/2005 6:35 PM Page 33

BY PAUL J. WEIJERS

Signal Check
Use your oscilloscope and
check the PPM signal from the
transmitter. Use a voltmeter and
■ FIGURE 2. Six-channel PPM signal
check the presence of the battery The Missing Pulse
voltage, typically 9.6 volts. The PPM Detector the hex inverter are not needed. Make
signal for a six channel system is sure to ground their respective inputs
shown in Figure 2. The first section starts with a dou- to avoid unwanted oscillations. The 0.3
The pulses P0 to P6 are negative ble-pole single-throw switch. Because millisecond pulse from IC1B resets
going in some systems, in others they the trainer switch on the transmitter will the counter. Run a test with the oscil-
may be positive going. The time slots, be permanently set to the trainee loscope to make sure we have got this
T0 to T5, will vary from one to two position, the ACU operator must be able right. Check the stages Q0 through Q5
milliseconds. As an example, if the to relinquish full control immediately to for a six channel system, or Q0 through
aileron control, T0, goes to maximum, the pilot. The switch has two functions: Q7 for an eight channel system.
T0 will be two milliseconds and all the it connects the battery supply to the
pulses in the frame move up, but the ACU circuit and connects pin 2 to pin 3. The Trigger Stage
time intervals T1 to T5 remain the This has the same effect as the trainer
same. After the last pulse, we see switch on the pilot’s transmitter. IC4, CD4093 is a quad two-input
an extended period with no pulse You can now wire in IC1, a CD4538. NAND Schmitt trigger. IC4A is used as
present. This period is at least four This IC contains two re-triggerable mul- an AND gate. One input is from IC2, Q5.
milliseconds or more. tivibrators used as the missing pulse This signal goes high at the fifth pulse
detector. R1, 6.8K ohm protects the in the pulse train. The second input is
The Building Process input of IC1A. R2 and C1 are the timing the clock pulse for IC2. The output of
elements causing the multivibrator IC4A goes high for the duration of the
The easiest way to approach this UC1A to output a pulse of approxi- clock pulse and provides the trigger for
circuit is to build it in sections. Since mately 2.2 milliseconds — slightly the PPM regenerator, to be described
there is no feedback in the system you longer than the longest timeslot in the later. The last stage of the trigger
can build a section, test it, and then pulse train. However, if a trigger pulse section is a differentiator C3 and R5.
go on to the next section. Use Figure comes along before the multivibrator The positive pulse from IC4B produces
5 as a guide to check your signals. times out, the timing sequence starts a positive pulse coincident with the
Note that everything is referenced again. Pin 7 of IC1A will show a nega- start of the pulse and a negative pulse
to the input signal on pin 2 of the tive pulse slightly longer than the total coincident with the trailing edge of the
connector. See Figure 3 for the pulse train. During the rest period in pulse. IC4C inverts the negative pulse
complete schematic of the ACU. the pulse train (see Figure 3), pin 7 into a positive pulse for the next stage.
will go positive again. This causes the
Select a Box second multivibrator, IC1B, to trigger.
JUST A LITTLE NOTE
Its timing is controlled by the R3,C2
To understand why IC7 acts as a
Of course, we need a box to pair causing a positive output pulse of non-inverting comparator and IC8 as
contain the circuit board and the 300 microseconds on pin 10 of IC1. an inverting comparator consider the
controls. I used an old single stick following statements:
transmitter and removed everything The Decoder Stage 1. Current will flow through the open
except the stick assembly. The poten- collector when the voltage at the PLUS
tiometers on this assembly were IC2 is a divide by 10 counter, input is lower than the voltage at the
MINUS input.
5K ohm. Because of the limited CD4017, used as a serial to parallel
movement of the stick, we have a converter. IC3 is a hex inverter, a 2. Current WILL NOT flow through the
range of about 1K ohm. With a slight CD4049. The PPM pulse train is used as open collector when the voltage at the
PLUS input is higher than the voltage at
adjustment of the potentiometers, a clock signal for the counter which we the MINUS input.
we have a minimum resistance of 1K use to decode the pulse train, i.e., find
ohm and a maximum resistance of 2K the pulse we need to split the pulse I am indebted to Ron Paisley for this
concise and illuminating statement. His
ohm. The reason for this will become train in two sections. Because the clock website has some excellent explanations
clear when we get to the regeneration pulse must be positive, we invert the of comparators and operational ampli-
stage. The photo in Figure 4 shows PPM signal with one stage of the hex fiers. You’ll find him at http://home.cogeco.
ca/~rpaisley4/circuitindex.html
the assembly I used. inverter. The remaining five stages of

January 2006 33
Weijers.qxd 12/9/2005 1:05 AM Page 34

■ FIGURE 3

34 January 2006
Weijers.qxd 12/8/2005 6:36 PM Page 35

An Auxiliary RC Control Unit

FOR THOSE WHO BOLDLY GO


and wish to do things a little differently ... IC3 is a hex inverter. I
was not sure whether I would need more inverters downstream.
As it turns out, one was enough. If the pulses are positive going,
you can leave out the inverter stage or use two stages in series.
Or you can use a LM311 for the inverter stage. The PPM regener-
ator stage uses the NE558. You could use four 555s or two
556s. Just remember that these devices produce negative going
pulses so you need to rework the output stage, as well. Whatever
you do, build it as shown or a variation of it, like it or dislike it, let
me know. I’ll be glad to hear from you. You can reach me at
pjw.rc.solutions@globetrotter.net

The Output
Switching
Stage
IC5B is a D type flip
flop. With the clock and
data inputs grounded,
it becomes a simple set-
reset circuit. The output
of IC1B is a positive
pulse indicating that the ■ FIGURE 4. Hybrid arrangement
missing pulse detector has found the positive pulse of
end of a pulse train and the beginning 300 microsec-
of the next pulse train. This pulse sets onds. The nega-
IC5B forcing the Q output to go positive tive going edge
and Q\ to go negative. The trigger pulse of this pulse
from IC4C to the reset input of IC5B triggers IC6C, ■ FIGURE 5. ACU waveforms
forces Q to go negative and Q\ to go another one to two millisecond delay.
positive. To sum this up, the Q output The last stage, IC6D, outputs again a and another positive pulse again
of IC5B is positive and Q\ negative 300 microsecond pulse. To sum it up, delayed by the requisite one to two
for the first five pulses of the original we have a positive pulse one to two milliseconds. These two pulses are
signal from our transmitter. Conversely, milliseconds delayed with respect to combined, or to put it properly, they
Q will be negative and Q\ positive for pulse five of the original pulse train are OR’ed via R18 and R19. Diodes D1
the remainder of the pulse train.

The PPM PARTS LIST


Regenerator Stage All resistors are 1/4 watt, 5% tolerance, and are available from
any of the usual suppliers. For C1 through C7, use non-polarized,
IC6 is an NE558 quad timer. 1% mylar or ceramic types. These are part of the timing sequences and should be quite
There are four independent stable. C8 is an electrolytic used for bypassing the battery voltage.
stages inside the NE558. The out-
The integrated circuits are CMOS. This choice is dictated by the fact that the nominal
puts are open collector. The first supply voltage from the transmitter is 9.6 volts. The same functions can be obtained with
timing element is IC6A. It is trig- TTL but it would require the use of a five volt regulator and would put considerably more
gered on the negative going edge demand on the transmitter’s battery. Note that in North America these CMOS devices
of the trigger produced by IC4A. are CD**** but in Europe, notably the same devices from Philips are named HEF****.
Timing components are (R6+R7) All of the data sheets for the ICs can be found on the Internet.
x C4. R6+R7 are either a total of
QTY LOCATION DESCRIPTION DATA SOURCE
1K ohm or 2K ohm. Combined ❑1 IC1 CD4538 Retriggerable multivibrator Fairchild
with C4, this stage produces a ❑1 IC2 CD4017 Divide by 10 counter Fairchild
positive output pulse with dura- ❑1 IC3 CD4049 Hex inverter Philips or RCA
tion of one to two milliseconds. ❑1 IC4 CD4093 NAND Schmitt trigger National
The next stage, IC6B, is triggered ❑1 IC5 CD4013 D type flip-flop RCA
by the negative going edge of this ❑1 IC6 NE558 Quad timer Fairchild
❑2 IC7,8 LM311 Voltage comparator Texas Instrument
pulse. The timing RC combina- ❑1 X! PP0308 Six-pin line plug Jaycar Electronics
tion of IC6B, R8 x C5, gives us a

January 2006 35
Weijers.qxd 12/8/2005 6:36 PM Page 36

and D2 are necessary to prevent IC6D to trigger IC6B. stage is made up of two LM311 Integrated circuits. Although
they appear on the schematic as operational amplifiers, they
The Output Stages are, in fact, differential comparators. The output of a com-
parator is an open collector or open emitter stage. This allows
IC7 and IC8 form the output stage of the ACU. The output us to combine two or more outputs into a single output.
The LM311 has another interesting feature. Normally,
pins 5 and 6 are part of the balancing circuit. This can be
used to offset small differences in supply lines or input
circuits. In our case, by tying pins 5 and 6 together, we can
switch both input and output of the LM311 on or off. To
effect this switching, we connect a 2N3904 transistor from
pins 5 and 6 to ground. For example, pin 13 of IC5B is high
during the first five pulses of our signal. Transistor T1 is
fully turned on and IC8 is therefore turned off. At the same
time, pin 12 of IC5B is low, transistor T2 is not conducting
and IC7 is operating as a normal amplifier. Build IC7 and all
its components first and check that the output only shows
the first five pulses of the original signal. Build IC8 and its
components; its output will be the two pulses from the
regeneration stage. You can test this stage first by
connecting a 1K ohm resistor from pin 7 to V+. If you are
satisfied, remove this temporary resistor and connect pin7
of IC7 to pin 7 of IC8 to combine the signals.
When building the output stage, note the subtle differ-
ence between the two LM311s. The input to IC7 is a string
of negative pulses, but the input to IC8 is a string of two
positive pulses. IC8 therefore must invert these pulses. NV

ACKNOWLEDGEMENT
It has been said that no man is an island. As a corollary, no
project is without external sources and stimulants. To that end,
my thanks go to Krishna Blake of the West Island Aeronautics
Club for suggesting the project and lending assistance whenev-
er necessary. To the manufacturers of electronic components
whose websites are a wealth of useful information and to all the
individuals who find the time to fill their website with whatever
I seem to require at any particular moment.

6ISIT/UR
7
HTTPWW EBSITE!T
WELEXPC
OM
-(:37%%0 $# 0/7%2 3500,)%3 3/,$%2).' 34!4)/.
&5.#4)/.'%.%2!4/23 /3#),,/3#/0% -/$%, (9 n $)')4!, $)30,!9 2/4!294//,+)4
"%343%,,).'  
7AVEFORM&UNCTIONS )NT%XT
#OUNTER LINLOGSWEEP
-/$%,'/3  6ARIABLEOUTPUT  6$#  !MP 
 34!4)/.
 

$UAL#HANNEL 6ARIABLESPEEDTOOL 


-/$%,&'  -/$%,&'  -/$%, (9  n 42)0,% /54054 -/$%,7,# 20- WITHACCESSORYKITINA
.O$IGITAL$ISPLAY $IGIT$ISPLAY n -(:

  
 
4WO 6$#  !MPVARIABLEOUTPUTS 
).#,5$%3 02/"%3 PLUS6!lXED$IGITAL$ISPLAY  67,#
HARDPLASTICCARRYCASE
6$2
"%.#( $-- 7)4( 23 ).4%2&!#% $)')4!, -5,4)-%4%2 !,,)'!4/2 ,%!$3 ()'( 0%2&/2-!.#%
 7)2% )2/.
-/$%,$-2
4RUE2-3 DIGITALANDBAR
2ANGESn $IGIT 3%4/&   6
 

-/$%,-9  
 
GRAPHDISPLAY !#$##AP 2ES 3/5.$ 3%.3/2 #!2 $)')4!, -/2%
FREQUENCYFUNCTIONS)NCLUDES !#$#6OLT#URRENT 2ES#AP 2%15)2%33/,$%2).' -5,4)-%4%2  
SOFTWARE !#OR$#OPERATION

 
 &REQUENCY2UBBER(OLSTER)NCLUDED 2EVERSES 350%2  
,OW 0RICED
DIRECTION
)TEMS)N/UR
37)4#(%3     %#/./-9
   0/4%.4)/-%4%23
#ERMET 3433ERIES `` ` WHENEVERIT &2%%
0/3$)0 6$)033    -/$%,"
-ULTITURN -443ERIES `` ` DETECTSNOISE
4OGGLE-INI30$4 64/'3$ -   
     0AGE
4OGGLE-INI$0$464/'$$ -   
0ANEL-OUNT 0-!3ERIES `` `
OBSTACLE

ORTOUCHESAN       #ATALOG
3TANDARD6ALUES!VAILABLE
6$-" 6
4%2-3-IN SHIPPING3CHOOL0URCHASE/RDERS 6)3!-# -ONEY/RDER 0REPAID./0%23/.!,#(%#+3 ./#/$.*2ESIDENTS!DD3ALES4AX

)N .*     "LAIR 2OADs!VENEL .*   HTTPWWWELEXPCOM
  
&!8   
EMAIL ELECTRON ELEXPCOM
36 January 2006
Full Page.qxd 12/7/2005 3:55 PM Page 37

m
3m
0 x2
Small in size but packed with powerful RabbitCores From 5 x3
70 0: 7
$22 qty. 1000 M3
features, Rabbit Semiconductor’s RC

low-cost RabbitCore modules give


designers a complete package for
custom embedded control and
communication applications.

RCM3750 RabbitCore
New!
Powerful networking core module
• 10/100 Base-T Ethernet
• 1MB Serial Flash
• 33 Digital I/O

RCM3365 RabbitCore
Removable memory core module
• `Hot-swappable’card socket Kits From

New!
• 16 MB NAND Flash $129
• 52 Digital I/O
Rabbit development kits
RCM3600 RabbitCore provide a complete embedded
Low-cost & compact core module design system in a low-cost package. Each
• 22.1 MHz clock kit contains a RabbitCore, a full-version
• 2.10” x 1.20” x 0.62” of Dynamic C®, a development board,
• 33 Digital I/O documentation and programming tools.

Free Design Book With Kit $49


It’s easy to get started with a complete development kit Value
that includes a RabbitCore and development tools. For a Free
limited time get a FREE Rabbit design book with your kit. Book
www.GetItDoneWithRabbit.com 2932 Spafford Street, Davis, CA 95616 Tel 530.757.8400
Solutions That Work
Eyton.qxd 12/8/2005 7:19 PM Page 38

●●●●
Two easy undertakings
for individuals who like
electronics and who
also like to watch the
weather are presented
in this article.
WEATHER
PROJECTS FOR
Essentially, they THE ELECTRONICS
are “nuts” and ENTHUSIAST
mostly no “volts”
projects. T wo easy undertakings for
individuals who like electronics
and who also like to watch the
indoor listening of the amplified
sound of falling raindrops on the
equivalent of a sheet metal roof.
weather are presented in this arti-
cle. Essentially, they are “nuts” and Easy to Build
mostly no “volts” projects. The first Instrument
■ PHOTO 1. Basic ingredients. involves constructing an Transmitters Shelter
outdoor weather instru-
ments shelter suitable for Like most weather aficionados, I
housing wireless ther- have a number of wireless electronic
mometer and hygrometer thermometers and wireless electronic
transmitters that are used weather stations scattered around
in conjunction with tem- the house with the associated instru-
perature and humidity ment transmitters attached to the
readouts placed in the railing on the back porch. This
home. The second is for arrangement doesn’t work very well,
building a simple rain as the back porch catches direct sun-
“chime” that allows for the light during some point during the
day, sending the sensors into over-
■ PHOTO 3. Completed shelter.
drive. An elegant cure is to build a
simple version of a weather instru-
ment shelter called a Stevenson
■ PHOTO 2. Close-up of plastic lawn Screen. This can easily be
furniture side tables. constructed from a two-pack of
open-louvered fiberglass shutters,
two outdoor plastic lawn furniture
side tables, some two-inch plumb-
ing parts, and several dozen stain-
less steel nuts, bolts, and washers.
Photo 1 shows the basic
ingredients before cutting. The two
14” x 35” fiberglass shutters were
cut to produce the four 14” x 17.5”
sides of the shelter, and were then
bolted together and then bolted to
one of the plastic side tables used
as the base. Two different side

38 January 2006
Eyton.qxd 12/8/2005 7:20 PM Page 39

BY J. RONALD EYTON

■ PHOTO 4. Transmitters’ mounting ■ PHOTO 5. Shelter placed in the yard next to a digital rain gauge.
assembly.
Electronic Rain Chime element with an indoor amplifier and
tables (Photo 2) were involved in the speaker (Photo 7). I also used Electronic
construction of the shelter. I used the If you like the sound of rain falling Goldmine’s Megaphone Kit PA (C6746),
table shown to the left in Photo 2 for the on a sheet metal roof, then this project which is comprised of a high gain elec-
base because the large scalloped cor- will satisfy that desire — even if you live tric microphone coupled to an IC audio
ners allowed for better air circulation. in a house with a shingle-covered amplifier, in a second rain chime that
The other table (with the less scalloped wooden roof. The electronic rain chime works as well as, if not better than, the
corners) was used (minus the legs) as shown in Photo 6 consists of a ceramic ceramic microphone used in the proto-
the roof of the shelter. microphone element (Electronic type. Construction details are given in
Because this shelter is intended Goldmine at www.goldmine-elec.com, Figure 1, and a photograph of the inside
for transmitters only, no door is need- G5098) mounted beneath an inverted of the “chime” head is presented in
ed to access instruments on a daily stainless steel bowl that has been Photo 8. The PVC connectors I used to
basis; instead, entry is gained through attached to a four-inch PVC pipe mount the head to two-inch PVC tubing
the roof, which was attached to the coupling using four-inch standoffs. were parts I happened to have on hand.
fiberglass shutter assembly using two RG-6 coaxial cable buried in the ground Much easier coupling arrangements are
bolts, washers, and wing nuts. Photo 3 was used to connect the microphone possible, as indicated in Figure 1. The
shows the completed unit and Photo
4 shows the transmitters mounting ■ PHOTO 6. Completed rain chime. ■ PHOTO 7. Mini amplifier and speaker.
assembly fabricated from two-inch
plumbing parts cemented to the plas-
tic side table base. A 12-inch long PVC
plastic pipe was fitted with a PVC gen-
eral-purpose area drain to act as the
base of the unit. (I used the PVC drain
because I couldn’t find a two-inch PVC
flange.) A two-inch to four-inch PVC
coupler was attached to the other end
of the pipe and provided the mount-
ing surface for the transmitter holders.
I bolted the entire shelter to a 2’ x 2’ x
2” concrete garden pad placed in my
backyard (Photo 5). It’s functional, not
bad to look at, and best of all, is made
of non-weathering parts.

January 2006 39
Eyton.qxd 12/8/2005 7:21 PM Page 40

■ PHOTO 8. Oblique view of the inside of the


“chime” head.
■ FIGURE 1. Construction details of the rain chime.

■ PHOTO 9. View of the cement garden block


mounting arrangement.

entire assembly, “chime” head, and column


were mounted via a flange to a 1’ x 1’ concrete
garden block (Photo 9). When it rains, I turn on
the amplifier to listen to the metallic “plink,
plink” of raindrops hitting the steel bowl.
When it pours, the noise is thunderous. Those
more electronically gifted than I should be
able to figure out a way to turn these “sounds”
into calibrated rainfall rates. NV

Order online at: Development Tools for PICmicro ® MCUs Phone: (719) 520-5323

microEngineering Labs, Inc.


Fax: (719) 520-1867
Box 60039
www.melabs.com Colorado Springs, CO 80960

Serial Programmer LAB-X Experimenter Boards BASIC Compilers for PICmicro®


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

40 January 2006
Page41.qxd 12/8/2005 11:00 PM Page 41

Explore PIC Programming Made Easy!


Proton+ PICBASIC Development Suite
Java Robotics!
Robotics Tutorials
Online!
Next Generation IDE
Proton IDE is a professional
and powerful visual Integrated
Development Environment (IDE)
which has been designed specifically
for the Proton Plus compiler. Proton
IDE accelerates product development SAVE TIME WITH
in a comfortable user environment END TO END
without compromising performance, INTEGRATIONS
flexibility or control.
NEW IDE - New IDE makes
• Code Explorer development using Proton+
• Compiler Results even faster and more intuitive!
• Programmer Integration COMPILER - The popular
• Integrated Bootloader FREE Proton+ compiler has
enhanced support for I2 C,
IntelliBrain -Bot • Serial Communicator
• Online Updating
DOWNLOADABLE
DEMO SPI, Dallas 1-wire bus, RS232,
X10, Compact Flash
• Plugin Architecture
Memory Cards and USB.
• Real Time Simulation Support VIRTUAL SIMULATION -
Visit www.r4systems.com to see Simulate your project in
RealTime using the integrate
our latest Proton+ projects
www.ridgesoft.com Proteus Virtual PIC Boards.

RidgeSoft and IntelliBrain are trademarks of RidgeSoft, LLC. Java and all Java -based marks are trademarks
or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. The Complete
Electronics
Design System

EMBEDDED LINUX EASY TO USE


CAD TOOLS AT
Starter Kit Schematic and PCB Layout
FANTASTIC PRICES!
FEATURES INCLUDE:
! Linux 2.4 Kernel • Powerful and flexible schematic capture.
! 486-133 MHz based SBC • Auto-component placement. • Rip-up and Retry PCB routing.
! 10/100 Base-T Ethernet • Polygonal gridless ground planes.
! 16MB DOC Flash Disk • Library of over 8000 schematic and 1000 PCB foot prints.
! 32MB RAM • Bill of materials, DRC reports and more.
! Power Supply Mixed Mode SPICE Circuit Simulation
! Carrying Case • Berkeley SPICE3F5 simulator with custom extensions for true
! Starting at $399.00 mixed mode and interactive simulation.
! X-Windows (option) • Six virtual instruments and 14 graph based analysis types.
! RealTime Linux (option) • 6,000 models including TTL, CMOS and PLD digital parts.

I
• Fully compatible with manufacturers’ SPICE models.
magine running Embedded Linux on a Single
Board Computer (SBC) that is 4.0" x 5.7" and ProteusVSM- Co-simulation & debugging for popular Micro-Controllers
boots Linux from a Flash-Disk. No hard drives, • Supports PIC16 & PIC12, AVR, 8051, HC11 and ARM micro-controllers.
no fans, nothing to break. Now your hardware • Latest version includes 40 new PIC18's.
can be as reliable as Linux! If your application • Co-simulate target firmware with your hardware design.
requires video output, the X-Windows upgrade • Includes interactive peripheral models for LED and LCD displays,
option provides video output for a standard switches, keypads, virtual terminal and much, much more.
VGA monitor or LCD. Everything is included; • Provides source level debugging for popular compilers and
Ready to Run Linux! assemblers from HiTech PICC, Crownhill, IAR, Keil and others.
Since 1985 PCB AutoRouting
OVER
• Proteus PCB design includes an interface to the Electra Gridless
20 autorouter.
YEARS OF
SINGLE BOARD FREE DOWNLOADABLE DEMO! Save Time. Save Money.
SOLUTIONS EQUIPMENT MONITOR AND CONTROL Proteus Starter Kit – $199 • Complete Systems from $499
Phone: (618) 529-4525 · Fax: (618) 457-0110 · www.emacinc.com “This is clearly superior in every respect.”
Tel: 905•898•0665
R4 SYSTEMS INC. www.r4systems.com info@r4systems.com
NutNVolt200601.qxd 12/7/2005 3:35 PM Page 42

Mini-Kits...
The Building Blocks!
Tickle-Stick
For The kit has a pulsing 80 volt
New006 Passive Air Band tickle output and a mischie-
2 Aircraft Monitor vous blinking LED. And who
can resist a blinking light! Great
✔ Monitors the entire aircraft band without tuning! fun for your desk, “Hey, I told you not to touch!”
Monitors The Entire ✔ Passive design, can be used on aircraft, no local Runs on 3-6 VDC
Band For Activity... oscillator, generates and creates no interference! TS4 Tickle Stick Kit $12.95
Without Any Tuning! ✔ Great for air shows
✔ Patented circuit and design!
Super Snoop Amplifier
For decades we have been SPECIFICATIONS
known for our novel and Frequency Range: 118 MHz to 136 MHz
Super sensitive amplifier that will
creative product designs. pick up a pin drop at 15 feet! Full
Receiver Type: Patented Passive Detector
Well, check this one out! 2 watts output. Makes a great “big
IF Frequencies: None! ear” microphone. Runs on 6-15 VDC
An aircraft receiver that Receiver Sensitivity: Less than 2 uV for detectable
receives all nearby traffic audio BN9 Super Snoop Amp Kit $9.95
without any tuning. It gets Audio Output: 700mW, 8-24 ohms
better... there is no local Dripping Faucet
oscillator so it doesn't pro- Headphone Jack: 3.5mm stereo phone
duce, and can't produce, External Antenna: Headphone cord coupled Produces a very pleasant, but
any interference associated Power Requirement: 9VDC battery obnoxious, repetitive “plink, plink”
with all other receivers with Dimensions: 2.25” x 2.8” PC Board sound! Learn how a simple transistor
an LO. That means you can 2.5” x 4.6” x .9” Case oscillator and a 555 timer can make such
use it onboard aircraft as Weight: 4 oz. with battery a sound! Runs on 4-9 VDC.
a passive device! And EDF1 Dripping Faucet Kit $9.95
what will you hear? The closest and strongest traffic, mainly, the one you're sit-
ting in! How unique is this? We have a patent on it, and that says it all!
LED Blinky
This broadband radio monitors transmissions over the entire aircraft band of 118-136 MHz. Our #1 Mini-Kit for 31 years!
The way it works is simple. Strongest man wins! The strongest signal within the pass band of the radio will Alternately flashes two jumbo red
be heard. And unlike the FM capture effect, multiple aircraft signals will be heard simultaneously with the LED’s. Great for signs, name badges,
strongest one the loudest! And that means the aircraft closest to you, and the towers closest to you! All with- model railroading, and more. Runs on 3-15 VDC.
out any tuning or looking up frequencies! So, where would this come in handy?
BL1 LED Blinky Kit $7.95
1. At an air show! Just imagine sitting there listening to all the traffic as it happens
2. Onboard aircraft to listen to that aircraft and associated control towers Cricket Sensor
3. Private pilots to monitor ATIS and other field traffic during preflight activities (saves Hobbs time!)
4. Commercial pilots to monitor ATIS and other field traffic as needed at their convenience Senses temperature and
5. General aircraft monitoring enthusiasts changes the chirp according-
ly. Can actually determine
Wait, you can't use a radio receiver onboard aircraft because they contain a local oscillator that could generate temp by chirps! Runs on
interfering signals. We have you covered on that one. The ABM1 has no local oscillator, it doesn't, can't, and 9VDC battery. Speaker included.
won't generate any RF whatsoever! That's why our patent abstract is titled "Aircraft band radio receiver which ECS1 Cricket Sensor Kit $24.95
does not radiate interfering signals". It doesn't get any plainer than that! Available as a through hole hobby
kit or a factory assembled & tested SMT version. Electronic Siren
ABM1 Passive Air Band Monitor Kit $89.95
ABM1WT Passive Air Band Monitor, Factory Assembled & Tested SMT Version $159.95 Produces the upward and down-
ward wail of a police siren.
Produces 5W output, and will drive
For any speaker! Runs on 6-12 VDC.
New006 High Resolution Air Pressure SM3 Electronic Siren Kit $7.95
2 And Elevation Sensor
✔ Pressure resolution greater than 0.0001kPa!
Universal Timer
Measures
✔ 128 x 64 pixel graphical display! Build anything from a time delay
Elevation To ✔ Shows realtime elevation & pressure changes! to an audio oscillator using the
A Third Of An ✔ USB computer interface for easy data transfer! versatile 555 timer chip! Comes
Inch & Air ✔ 13,824 samples of FLASH storage available! with lots of application ideas. Runs on
Pressure In ✔ Special pilots menu 5-15 VDC.
9 Formats! ✔ Multiple built-in alarms UT5 Universal Timer Kit $9.95

We really did it this time! The UP24 is one of our most advanced kits to date, and an absolute MUST for any- Voice Switch
one serious about the environment around us! But the applications only begin there. The unique design Voice activated (VOX) provides a
allows unprecedented super high resolution measurements and display of absolute atmospheric air pressure. switched output when it hears a
The UP24 senses ambient air pressure and critically calculates elevation with unheard of precision! Using a sound. Great for a hands free PTT
highly sensitive sensor and 24-bit A/D converter in a special noise-immune design, less than 1/3" of an inch switch, or to turn on a recorder or light! Runs on
of elevation resolution is achieved! YES, we said 1/3 of an inch! This high accuracy and resolution opens the 6-12 VDC and drives a 100 mA load.
door to a host of sophisticated environmental air pressure monitoring applications.
VS1 Voice Switch Kit $9.95
Unlike your normal run-of-the-mill barometer, air pressure is sensed in Pa's or kPa's. What are those you may
ask? Pascals or KiloPascals. However, don't be afraid, for your convenience, and to fit any application you Tone Encoder/Decoder
may have, it is also displayed in millibars, bars, PSI, atmospheres, millimeters of mercury, inches of mercury,
and feet of water! Take your pick! The range of the UP24 is 15kPa to 155kPa. Encodes OR decodes any tone 40
Hz to 5KHz! Add a small cap and it
We've talked about air pressure, now let's talk about elevation! The incredibly precise 24 bit A/D converter in will go as low as 10 Hz! Tunable with
the UP24 looks at the air pressure and converts it to elevation above sea level. In both graph and text, the a precision 20 turn pot. Runs on 5-12 VDC and
elevation is displayed to a resulution of 1/3”! Yes, I said 1/3 of an inch! The applications for the super accu- will drive any load up to100 mA.
rate elevation meter are endless. From watching and recording elevations during hiking trips to measuring TD1 Encoder/Decoder Kit $9.95
and recording the wave heights on boats! Let your imagination take over from there!

What if you're in the field and you want to save data captured in your UP24? The built-in FLASH storage pro-
RF Preamplifier
vides 13,824 samples of storage. Then you can transfer your data to your PC with a standard USB interface. Super broadband preamp from
100 KHz to 1000 MHz! Gain is
While the UP24 is small enough to be kept in your coat pocket it boasts a large 2.78" x 1.53" 128x64 pixel greater than 20dB while noise is less
LCD display screen making viewing easy. Display modes include both realtime pressure and elevation graphs than 4dB! 50-75 ohm input. Runs on 12-15 VDC.
as well as pressure and elevation statistics. There are 12 user selectable sample rates from 1/10th of a second SA7 RF Preamp Kit $19.95
all the way up to every 15 minutes.

Needless to say, you cannot put all the specs and screen shots in the limited space of this ad! Visit our web- Touch Switch
site at www.ramseykits.com for full specs and information. If you're looking for the finest air pressure and ele- Touch on, touch off, or momentary
vation sensor, check out the UP24, truly a marvel in the industry! Available in a ready-to-build kit or a factory touch hold, your choice! Uses CMOS
assembled and tested version. Check our website at www.ramseykits.com for more information! technology. Runs on 6-12 VDC and drives any
UP24 High Resoultion Air Pressure/Elevation Sensor Kit $239.95 load up to 100 mA.
UP24WT High Resolution Air Pressure/Elevation Sensor, Factory Assembled & Tested $299.95 TS1 Touch Switch Kit $9.95
NutNVolt200601.qxd 12/7/2005 3:38 PM Page 43

FM Broadcasters Audio/RF DDS


Signal Generator
Where YOU become the DJ! ✔ DDS and SMT technology!
✔ Frequency range 0 Hz to 5
MHz with 0.1Hz resolution!
Digital FM Stereo ✔ 0 to 10V peak to peak output
Transmitters level
✔ Sine, Square, or Triangle
✔ Rock stable PLL synthesized waveform output!
✔ Front panel digital control and ✔ Non-volatile memory DC to 5 MHz...In 0.1 Hz Steps!
display of all parameters! ✔ Factory assembled and tested
✔ Professional metal case
✔ Super audio quality! Following in the footsteps of our world famous SG550, we are proud to introduce
✔ 25mW and 1W models! the SG560, the next generation signal generator!

For nearly a decade we’ve been the leader in hobbyist FM radio transmitters. To begin with we increased the frequency range all the way up to 5MHz and all
Now for 2005 we introduce our brand new FM30 series of FM Stereo the way down to 0Hz (yes, we mean zero...or DC!) in continuous 0.1Hz steps
Transmitters! We told our engineers we wanted a new technology transmitter across the entire range! Then we gave it a variable output level all the way up to
that would provide FM100 series quality without the advanced mixer features. 10V peak to peak in either Sine, Square, or Triangle waveforms! You can also pro-
They took it as a challenge and designed not one, but TWO transmitters! vide a DC offset to the output to recreate TTL, 4000 series logic levels, low voltage
logic levels, AC waveforms with a DC component, or just plain AC signals!
The FM30 is designed using through-hole technology
and components and is available only as a do-it- The SG560 contains a 10 bit DDS and filtering for a low noise, accurate low dis-
yourself kit, with a 25mW output very similar to our tortion output. The output stage utilizes the latest technology in digital modems
FM25 series. Then the engineers redesigned their and high power, high bandwidth DSL modems and is capable of a direct output
brand-new design using surface mount technology of 2.5W! You can even generate carrier signals in the AM band for testing AM
(SMT) for a very special factory assembled and tested receivers and circuits. A jumper option for zero ohm output impedance allows for
FM35WT version, with 1W output for our export mar- true output terminal metering. But watch out, 2.5 watts is enough to damage
ket! Both are designed around an RF tight vinyl clad incorrectly connected circuits!
metal enclosure for noise free and interference free
operation. All settings are done through the front Surface mount technology is used throughout the SG560 making it extremely reli-
panel digital control and LCD display! All settings are able and accurate. Frequency is entered directly on the sealed membrane key-
stored in non-volatile memory for future use. board and adjusted with a precision rotary encoder with an oversized knob. Both
frequency and output level are displayed on a high contrast, two-line LCD display.
Both the FM30 and FM35WT operate on 13.8 to 16VDC and include a 15VDC
plug-in power supply. The stylish metal case measures 5.55"W x 6.45"D x 1.5"H The SG560 operates on 8 to 16VDC and includes a standard 110VAC power
and is included. If you are looking for the latest and the greatest in FM stereo adapter. Because of the surface mount design the SG560 is only available factory
broadcasters, the FM30/35 series is your answer. Designed for the hobbyist’s wired and tested. If you are looking for a lab quality signal generator at a super
budget with the broadcasters specifications! (Note: The end user is responsible price, the new generation SG560 fits the bill... and a whole lot more!
for complying with all FCC rules & regulations within the US, or any regulations of SG560WT Audio/RF Signal Generator, Factory Assembled $329.95
their respective governing body and complying with export certifications).
FM30B Digital FM Stereo Transmitter Kit, 0-25mW, Black $199.95
FM35BWT Digital FM Stereo Transmitter, Assembled, 1W, Black $299.95 Handheld Digital Scope With DVM Readout
✔ Digital waveform and measurement display!
Professional Synthesized ✔ 10MHz and 40MHz sample rates!
✔ Backlit LCD display
Stereo FM Transmitter ✔ RS232 output (40MHz model only)
✔ Fully synthesized 88-108 MHz for ✔ Charger, case, probes included
no frequency drift We’ve seen a lot of portable scopes and scope/meters, and we’ve
✔ Line level inputs and output also seen the price tags! They have always been way out of the
✔ All new design using SMT technology reach and budget of the hobbyist. No more! Now for close to
the price of a good DMM you can have a personal scope that
Need professional quality features but can't jus- also has DVM readout for dBm, dBV, DC, and True RMS!
tify the cost of a commercial FM exciter? The Frequency readout is also displayed on the screen through
FM25B is the answer! markers, plus the scopes have two memories for digital storage.
A cut above the rest, the FM25B features a PIC microprocessor for easy fre- The 40MHz model also includes an RS232 output and serial inter-
quency programming without the need for look-up tables or complicated formu- face to capture the screen display on your scope to your PC at the
las! The transmit frequency is easily set using DIP switches; no need for tuning mere push of a button! These scopes run on 5 standard AA
coils or “tweaking” to work with today's “digital” receivers. Frequency drift is a Alkaline batteries (not included) which provide up to 20 hours of
thing of the past with PLL control making your signal rock solid all the time - just use. You can also use rechargable AA NiMH batteries instead and
like commercial stations. Kit comes complete with case set, whip antenna, 120 they’ll be charged with the optional power supply. Both units come with a cus-
VAC power adapter, 1/8" Stereo to RCA patch cable, easy assembly instructions, tom foam lined high impact carrying case, set of high quality scope probes, AC
and the SMT parts are factory preassembled - you'll be on the air quick! power adapter and a comprehensive user’s manual. If you’re working with elec-
FM25B Professional Synthesized FM Stereo Transmitter Kit $139.95 tronic circuits, automotive applications, audio and stereo applications or other
applications, the personal scope is for you...at a price that can’t be beat!
Tunable FM Stereo HPS10SE Personal Handheld 10MHz Digital Scope $229.95
HPS40 Personal Handheld 40MHz Digital Scope w/RS232 $299.95
Transmitter
✔ Tunable throughout the FM band,
88-108 MHz
✔ Settable pre-emphasis 50 or 75 µSec
for worldwide operation MORE than just friendly on-line ordering!
✔ Line level inputs with RCA connectors Clearance Specials, Ramsey Museum, User Forums, Dealer Information, FAQ’s, FCC
The FM10C has plenty of power to cover your home, back Info, Kit Building Guides, Downloads, Live Weather, Live Webcams, and much more!
yard, or city block. You'll be amazed at the exceptional audio
quality of the FM10C. Tunes through the entire 88-108MHz band. Re-broadcast
your favorite music commercial free and with the dynamic range the musician
intended, without all that nasty compression the big boys use to make their sta-
tion sound louder than the competition. Compression produces a noticeably
www.ramseykits.com
muddier and less dynamic sound. Runs on an internal 9VDC battery, external 5-
15VDC, or our FMAC AC power adapter.
FM10C
FMAC
Tunable FM Stereo Transmitter Kit
110VAC Power Supply for FM10C
$44.95
$9.95 800-446-2295
Just Off The Press! Where ✦ Build It!
590 Fishers Station Drive Electronics ✦ Learn It!
Get the 2006 Ramsey Hobby Catalog!
104 value packed pages of the neatest Victor, NY 14564 Always Means ✦ Achieve It!
(800) 446-2295
goodies around with over 150 new (585) 924-4560
Holiday Fun! ✦ Enjoy It!
items! Order yours today on line or Prices, availability, and specifications are subject to change. Robin gave me a few more days to
get this ad done! She’s cool in my book (my schedule book!) Visit www.ramseykits.com for the
give us a call. Or download the PDF! latest pricing, specials, terms and conditions. Copyright 2006 Ramsey Electronics, Inc...so there!
McCarley.qxd 12/8/2005 11:14 AM Page 44

●●●●

This article will show THE


you how to build your
very own electronic
analog neuron, named
the “Perceptron.”
Creating a single
PCIRCUIT
ERCEPTRON
neuron may not seem
T he Perceptron circuit provides
a hands-on way to demonstrate
have? Essentially one, not
counting some special processors
earth shattering in the the principles of neuron operation, in the video card and other
and also allows you to explore peripherals.
grand scheme of basic Boolean logic functions. Last
but not least, it is a cool gadget to Ready, Aim ... Fire!
things, considering have sitting on your desk to
impress your hacker and/or nerdy A neuron receives one or more
that your brain has friends. input signals and produces an
Whether biological, electron- output signal (Figure 1). What
over 1010 of them! ic, or software, the basic happens in between comprises the
operation of a neuron is fairly fundamental properties of a neuron
simple at a high level. Of course, a — Neuron Property #1 and Neuron
However, a neuron biological neuron is quite a Property #2.
bit more complicated than the The activation function, which
is the fundamental others. But relatively speaking, is also called a “squashing” function
whether we are talking about a in neural network jargon, is usually
brain or neural network program, nonlinear and also serves as a
building block of the basic concept is that the limiting operation to keep the
processor is simple by itself, but output signal in a bounded range.
intelligence. when combined with many others Mathematically, the neuron’s
they collectively perform a operation is represented as:
complex computation. Compare
this to the computer on your desk a = squash(∑(iiwi))
— how many processors does it where:
• ii is input i to the Perceptron
• wi is the weight for input i
• a is the activation (output)
• and:
squash(x) = 1; if x > threshold
= 0; otherwise

In English, the weighted sum


is computed by multiplying each
input by a weighting factor (simply
called a weight), which dictates
the importance of that input to
the neuron’s computation. A small

■ FIGURE 1. Neuron Model.

44 January 2006
McCarley.qxd 12/8/2005 11:14 AM Page 45

BY CHRISTOPHER McCARLEY

weight means that input is not as


important as an input that has a NEURON PROPERTY #1:
larger weight. The weight may also
be negative, which means that the
A neuron computes a weighted sum of its inputs.
input tends to inhibit the output of
the neuron. By summing all of these
individual multiplications, we get an NEURON PROPERTY #2:
output that depends on how big the A neuron performs an activation function
inputs are and how important each
input is (as dictated by its weight).
on the weighted sum.
The second operation is to
perform a squashing function on the dual-color LED. Inside, an analog tery. However, the circuit needs both
sum that was calculated in the first amplifier chip and a handful of other positive and negative voltages to
step. Neural network researchers components perform the computa- represent positive and negative
experiment with different types of tion. A single 9V battery is used to weights. Therefore, a single-supply
squashing functions, but they gener- supply power. divider consisting of R13 and R14
ally do two things. is used to create a virtual ground
First, they limit the range of the Circuit Operation and simulate positive and negative
output value, and second, jump voltages.
suddenly between states. A simple The schematic for the This is a common op-amp tech-
but useful type of squashing function Perceptron is shown in Figure 2. The nique, but it is normally advocated
is a simple threshold. If the sum is circuit is based on an LM324 quad for AC signals only. However, by
above a certain value — the threshold op-amp (IC1), which was chosen for carefully referencing all appropriate
— the function jumps to the its tolerance to supply voltage used. signals to the virtual ground, the
maximum value, otherwise it jumps A basic design goal was to have the technique works fine for DC signals.
to the minimum value. Perceptron run off a single 9V bat-
Decades ago it ■ FIGURE 2. Perceptron Schematic.
was realized that in
order to perform inter-
esting computations
in a neural network,
the neuron needed to
exhibit this nonlinear
behavior.
Our electronic
Perceptron is
designed to perform
this two-step compu-
tation of weighted
sum plus threshold
operation. We will see
how this can imple-
ment simple, but
interesting, functions
including simple
Boolean logic.
From the outside,
the Perceptron con-
sists of two inputs
each of which is
controlled by a switch
and a potentiometer
knob. The output is
indicated by a single

January 2006 45
McCarley.qxd 12/8/2005 11:14 AM Page 46

neuron. Since the amp operates in


open loop mode, the high gain will
drive the output of the amp to the
positive supply if the positive input
is above the threshold voltage, and
toward the negative supply voltage
if it is below. In this mode, it acts
mostly as a hard step function,
although there is some “play”
around the zero voltage point. The
LED — with its limiting resistor at
the output — indicates whether the
output is high or low. The bidirec-
tional LED given in the Parts List
results in a green or red signal,
which is more interesting than a
single-color LED.
This is all that is needed to
implement the basic neuron opera-
tion. To make things a little more
■ FIGURE 3. Circuit Board in Enclosure. interesting, a third op-amp IC1D
potentiometers R2 and R3 are from the LM324 is configured as an
The first part of the circuit connected across the full supply analog inverter and can be used to
handles the inputs and weights. range. If the pot is turned toward feed back the inverted output as an
Since our input signals — as the positive supply rail it represents input to the neuron. This can be
represented by the two toggle a positive weight, and a negative used to realize a simple oscillator,
switches — are binary (either on or weight when turned toward the which will be covered later in the
off), we can use a simplifying trick to negative supply. When the pot is in article.
simulate the weighting operation. the center of its range, it represents
To represent each input weight, a zero weight. Each toggle Construction
switch is used to simply
indicate whether an input A printed circuit board pattern is
is active (binary 1) or provided on the Nuts & Volts website
PARTS LIST not (binary 0) by connect- (www.nutsvolts.com) if you want to
SEMICONDUCTORS ing/disconnecting its create a PCB along with the parts
❑ IC1 LM324N quad op-amp corresponding pot. layout. But you don’t have to take
❑ LED1 T1 3/4 dual color red/green, two-lead LED The first op-amp IC1A this approach — the circuit can be
is configured as a constructed using simple perfboard
RESISTORS (all 1/4W, 5%) non-inverting summing and soldered wires. If you are not
❑ R1,R7,R8,R10-R12 100K circuit, to sum the volt- very good at soldering, you should
❑ R5 470Ω ages from the two inputs. consider using a 14-pin socket and
❑ R6 1M Resistor R12 is used to tie place the chip in after you are done
❑ R9 220K the summing point to soldering. If you use a socket, it is
❑ R13,R14 1K ground in case of no easier to solder this in first — other-
❑ R2-R4 10K linear pot inputs. That takes care of wise you can save soldering the IC for
Neuron Property #1. In later in order to minimize the risk of
CAPACITORS
❑ C1 1µF 16V ceramic or other nonpolarized
order to implement heat damage.
Neuron Property #2, we Next, solder the resistors and
ADDITIONAL PARTS AND MATERIALS need the squashing func- capacitor to the board, followed by
❑ SW1 SPDT center off submini toggle switch tion. To realize this, the the 9V battery clip. You don’t have to
❑ SW2-3 SPST submini toggle switch output of summer IC1A is be paranoid about too much when
❑ Knobs (to fit potentiometers), case (PacTec HM- fed into op-amp IC1B, soldering but as always, you should
9VB 4” x 2 1/2” x 1” or similar), LED holder, 9V bat- which is configured as a try to make good solder connections.
tery connector, PCB or perf board, 14-pin socket, comparator. The third pot The rest of the components —
ribbon cable or other hookup wire, 9V battery R4 on the negative input switches, pots, and LED — will be
sets the threshold of the soldered using insulated wire. I like

46 January 2006
McCarley.qxd 12/8/2005 11:15 AM Page 47

The Perceptron Circuit


to use hookup wire scavenged from a center lead to the nega-
ribbon cable. The wires are thin and tive supply voltage and
flexible and I can peel off as many clockwise to connect to
conductors as I want for the particu- the positive supply. If
lar component I am connecting. you have a multimeter,
However, feel free to use single you can easily verify this
insulated wires or multiconductor by varying the knob and
hookup wire. checking the voltage on
It is always good to double-check the center lead. Without
the supply and ground connections using a meter, you will
on the chip and battery connections, have to experiment a bit.
especially if you are using perfboard. First (since we are
The Parts List includes a case using a dual color LED), if
with a battery compartment that the the power switch is on
circuit can be built into. Figure 3 and all battery and power
shows the completed circuit board connections are good, the
inside its enclosure. For the case list- LED should show some
ed in the Parts List, it was necessary color. Next, as a simple
to remove some material from two of test, put all knobs in the
the corners of the PCB. Figure 4 shows middle of the range. Now
the completed Perceptron. vary the threshold knob
back and forth — it
Testing and Using should cause the LED to
the Perceptron change between green
and red.
■ FIGURE 4. Finished Unit.
The inputs of the Perceptron Now, set the threshold knob in
are controlled by a switch and a the middle of its range. Set input 5. In Perceptron terms, the output
potentiometer (knob). Each knob switch SW1 to its middle position. will be on (green) if either input is
controls the weight on its corre- Now vary the input 2 knob. If nothing on. To configure the Perceptron for
sponding input. Clockwise is changes, then the input switch SW1 is this operation, set the threshold
intended to be positive and off. Switch it the other way and vary knob to a little over halfway and each
counterclockwise is negative, with the knob. If you do not see a change weight knob well over halfway. Now
the middle of the range being now, then you should go back and try the switches in different combina-
approximately zero or “no weight.” check your wiring. Next, tTurn the tions. With either switch on, you
The switches are used to indicate if input 2 switch back off and try the should see a strong green light. Now
the input is “on” or not. You may same thing with input 1. Another try a NAND gate configuration. For
have to experiment with the switch- thing to check is the polarity of the this function, set the threshold knob
es to get them in the right polarity. LED — a positive output is intended most of the way counterclockwise
There is also an important note to show as green. and set the weight knobs a little
on the switch for input 1. You prob- The Perceptron can be used to more clockwise than the threshold.
ably noticed that it is a different type emulate simple Boolean logic gates. The idea is that the threshold is
of switch. This switch actually has First we will try an OR gate, which strongly negative and each weight is
three positions: the center is “off” has a truth table as shown in Figure
and when you move the toggle ■ FIGURE 5. Boolean Logic Tables.
either way, it selects one of two
inputs. The first input is the normal
input and the second is a feedback
signal from the output, which we
will talk about later. The third knob
is the threshold knob, which —
amazingly — sets the threshold of
the neuron.
You will want to make sure your
potentiometers are connected in
the right polarity. You want full
counterclockwise to connect the

January 2006 47
McCarley.qxd 12/8/2005 11:16 AM Page 48

somewhat negative. In this way, there will be a positive A Neural Oscillator


output unless both inputs are on and combine to drive
the sum below the threshold. Now, let’s talk about the third setting of switch
SW1. Our Perceptron is a highly idealized model of a
real biological neuron, and it would take some complex
electronics to model all of its functions. However, the
Perceptron does include one additional behavior, which
brings us to an interesting fact — Neuron Property #3.

NEURON PROPERTY #3:


A neuron has a built-in time delay.

A neuron’s operation is a complex function of time, but


for our purposes we will consider a simple time delay.
As with all real world devices, a neuron cannot instanta-
neously produce an output and, in fact, operates quite
slowly (on the order of milliseconds) compared to
electronic circuits (nanoseconds). But as we will see short-
ly, time delays are actually useful in the same way that
clocking functions are critical to digital circuit operation.
One of the extra amps on the LM324 chip has been
used to create a second neuron. This neuron only has
a single input which is the output of the first neuron. But
it also has a time delay, which is implemented by the
EZ+%9EZ6)$EZ-/53% combination of C1 and R6. When switch SW1 is moved to
its third position, it connects an inverted version of the
first neuron’s output back as an input to itself. However,
because of the delay circuit, this doesn’t happen until
after about a second. Since the signal is inverted, it
causes the first neuron to change its state, and then keep
switching back and forth about once a second. The result
is a simple oscillator that has been created using only
neurons.

Wrapping Up
NanoCore12™ for best performance and price!
9S12C microcontroller modules starting at $45! If you are new to the concept of
neurons and neural networks, the
NanoCore12™ Features: Perceptron offers a practical hands-
• on-board RS232C interface
on introduction to a neuron’s
• up to 33 I/O lines, with multi-
property programmability
operation. If you are a seasoned
(e.g. direction, pull-up/pull-down, pro, I think you will find it to be an
reduced drive, invert polarity, etc.) entertaining diversion that is simple
• up to 8 key wake-up interrupt to build, and makes a fun accessory
inputs, with digital filtering
for your desk. NV
y • SCI • SPI • CAN
ntl
enie tible ® • 8-channel 10-bit ADCs
nv a 2
Co comp tamp 3 • multiple PWM channels
ABOUT THE AUTHOR
i n- C S $ 2 • 4-channel timers, supporting
p I
B AS : from 45
h ) $ input capture/output compare, ■ Christopher McCarley is currently a
wit M (1K from
event counting, gated time
OE ngle: software architect at Viziqor Solutions.
Si accumulation, and simple PWM
• 32K multi-sector Flash • 2K RAM
He has done postgraduate research in
• operates up to 48MHz via PLL VLSI analog neural network design and
www.technologicalarts.com • 3.3 V or 5 V operation has 20 years experience developing a
Toll-free: 1-877-963-8996 • advanced CISC architecture variety of technologies including mid-
(USA & Canada) • on-chip Serial Monitor dleware, robotics, and laser systems.
™NanoCore12 is a trademark of Technological Arts, Inc. • supports BDM debugging
® BASIC Stamp is a registered trademark of Parallax, Inc.

48 January 2006
Full Page.qxd 12/7/2005 3:43 PM Page 49

ALL
QUALITY Parts
FAST Shipping

ELECTRONICS
DISCOUNT Pricing
CALL, WRITE, FAX or E-MAIL
for a FREE 96 page catalog.
C O R P O R A T I O N Outside the U.S.A. send $3.00 postage.

RECHARGEABLE NIMH AA CELL, LI-ION PRISMATIC CELL 50 MM PIEZO ELEMENT


1600 MAH (COSMETIC BLEM) SPECIAL Murata 7BB-50-1A10
Larger than usual, 50mm (2”)
Great price for 1.2 V 1600 mAh nickel- Polystor #340948. 3.7 Volt,
diameter, piezo element.
hydride AA batteries. These are new 1200 mAh lithium-ion cell.
6” color-coded leads.
cells, removed from packaging. Many Low-profile, high-density
rechargeable cell, ideal for
CAT# PE-50
have adhesive tape residue which is
easily removed. 100% guaranteed.
CAT# NMH-1600B
applications where space is a
factor. 1.35” x 0.34” x 1.89”.
Can handle up to 2 Amp discharge rate.
75¢ each
10 for 65¢ each
300 for 45¢ each

4 for $ 00
each 6 100 for $1.20 each
Built-in shutdown separator and rupture
vent. Spec sheet including charge and
discharge rates on our web site. UL.
SCR 2N5062
0.8A 100V CAT# 2N5062
DPDT (ON) OFF (ON)
TOGGLE SWITCH
Arcolectric #3972BA. D.P.D.T.,
each
CAT# LBAT-43

$ 002 10 for $1.75 each


100 for $1.25 each
4 for $ 00
each1 100 for 15¢ each
1000 for 10¢ each

center-off, momentary both 24 VDC DIP RELAY, DPDT


directions. Standard 11/16" long
AC/DC MOTOR GI CLARE # LM44E00. 24 Vdc,
bat handle. 15/32" threaded bush-
1450 Ohm coil. DPDT contacts rated
ing mount. Rated 16 Amps/ 277Vac, Thermally
2 Amps. 0.795” x 0.385” x 0.492” high.
10 Amps / 72 Vdc, 1HP 250 Vac. 1/2HP 125 Vac. protected, plastic
Pins fit 16 pin DIP footprint.
Screw-clamp terminals. UL, CSA.
CAT# STS-25 $ 004
encased brush-type
each motor operates
well on both
CAT# RLY-464
25 for $1.00 each
$ 20 1
each

RUBBERIZED MAGNET STRIP 120V AC and


1/2" x 30” flexible rubberized DC voltage above 1 FARAD 5.5 VOLT “SUPER CAP”
magnet strip with adhesive 18 Volts. Rated 120 Vac, 60 Hz, 50W, 0.42
1 Farad, 5.5 Volts. High-capacitance,
backing. Easy to cut with Amps. 14,000 RPM @ 120 Vac. 3,500 RPM
memory back-up capacitor. Slowly
knife or scissors. Sticks to @ 30 Vdc, 240 mA (no-load). 6mm (0.24"
releases its charge to provide back-
locker, refrigerator or tool box. dia.) x 1.5" long flatted shaft. Motor case is
up power in temporary shut-down

1
2.93" x 2.43" x 3.45" long with two tapped
CAT# MAG-98
$ 50
per 30” roll
mounting holes in motor face. 6.5" leads. UL
situations. 0.78" diameter x 0.30" thick.
PC leads on 0.2" centers. CAT# CBC-17
CAT# DCM-258
WHITE LED, 5MM
Special purchase, limited supply.
10 for $4.00 each
4
$ 50
each
3
$ 50
each
10 for $3.25 each
100 for $2.75 each
High-brightness white 5mm diameter LED.
Water clear in off-state. CAT# LED-115 NEW REDUCED PRICING 24 X 1 LCD
1N914 SWITCHING DIODE
$ 101
each
100 for 95¢ each
1000 for 75¢ each
We are able to offer these 1N914 diodes at
Wintek# WDC2401P-1GNNA.
Module size:
4.25" x 0.79" x 0.3"
ULTRABRIGHT BLUE LED, 5MM a great price because we have a large
Display size:
Blue in off-state. Actually brighter and wider 3.5" x 0.4"
quantity on 10,000 piece reels. We will cut
viewing angle than our regular ultrabright Built-in driver.
the reels into 100 piece units (100 piece
blue LED. Opaque blue-tinted package with 14 pin male header, pins on 0.05" centers.
minimum order). CAT# 1N914TR Includes hook-up diagram.
no flange at base. CAT# LED-117 100 for $2.00 • 500 for $5.00 CAT# LCD-111
$ 1 00
each
10 for 85¢ each
100 for 65¢ each
1,000 for $7.00 • 5,000 for $30.00
10,000 for $40.00 10 for $1.50 each $ 851
each

Shop ON-LINE www.allelectronics.com


ORDER TOLL FREE 1-800-826-5432
MAIL ORDERS TO: FAX (818) 781-2653 • INFO (818) 904-0524
ALL ELECTRONICS CORP.
14928 OXNARD ST., VAN NUYS, CA 91411-2610 E-MAIL allcorp@allcorp.com
NO MINIMUM ORDER • All Orders Can Be Charged to Visa, Mastercard, American Express or Discover • Checks and Money Orders Accepted by Mail •
Orders Delivered in the State of California must include California State Sales Tax • NO C.O.D • Shipping and Handling $6.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.
January 2006 49
News BytesJan06.qxd 12/8/2005 7:01 PM Page 50

NEWS BYTES Innovation Robotics (www.


■ NEWS ■ I N N O VAT I O N S ■ IDEAS

INNOVATION ROBOTICS innovationrobotics.com) unveiled its


UNVEILS ROBOTIC latest prototype science exhibit last
CRANE November at the North Carolina
Science Teachers Association annual
meet at the Koury Convention Center
in Greensboro.
The exhibit featured a computer
controlled working robotic crane
capable of stacking blocks and other
items in complex patterns — both ver-
tically and horizontally — completely
on its own with no human interven- system while working in a 3D space,
tion. The crane can also be operated as well as the basic principles of
manually to challenge visitors to use automation and robotics.
their hand and eye coordination skills The new exhibit was joined by
to construct creations of their own. another very popular exhibit from
The exhibit demonstrated a Innovation Robotics, the Ring Vortex
variety of scientific principles and Generator. The device thrilled visitors
hopes to make leaning about comput- of all ages as they marveled at the
ers and automation fun. It teaches the giant rings of vapor moving across the
principles of the Cartesian coordinate convention center.

"We are truly saddened by the emerging technologies and often


APEC 06 MOVES TO hurricane's devastating impact on New controversial subjects. Another
DALLAS; CONFERENCE Orleans and the whole gulf coast increasingly popular event is APEC's
& EXHIBIT SLATED FOR region. At the same time, we're famous annual "Micro Mouse" team
MARCH 19-23 grateful for the support that the city of competition to design the winning
Dallas and the Hyatt Regency Dallas robot that will successfully negotiate
Hurricane aftermath forces move have shown in accommodating our the contest maze in the shortest
from New Orleans; 2006 Dallas event conference needs on such short notice," elapsed time.
promises to be bigger Parmenter added.
and better than ever "The region's many leading APEC 2006 conference topics
producers, consumers, designers and slated for presentation in Dallas will
The Applied Power Electronics distributors of power electronic include:
Conference (APEC), the premier products and components make the
global event in power electronics Dallas/Ft. Worth area an ideal venue. • AC-DC power supplies — single
(www.apec-conf.org), has been As in previous shows, this year's event phase and multiphase AC-DC power
rescheduled to the week of March in Austin saw conference participation supplies, power factor correction,
19-23, 2006 and relocated to the Hyatt climb with 328 peer-reviewed papers multi-level active front end conver-
Regency Hotel in Dallas, TX. The presented by speakers from 28 sion
conference is jointly sponsored by the countries, a growth trend we fully
Institute of Electrical and Electronic expect to meet and exceed next year • DC-DC converters — low voltage to
Engineers (IEEE) Power Electronics in Dallas," he said. low voltage conversion, high voltage,
Society (PELS), the IEEE Industry Now in its 21st year, APEC's high power (kW to MW), microproces-
Applications Society (IAS), and continuing popularity is due in large sor power (VRMs)
the Power Sources Manufacturers measure to its unique combination of
Association (PSMA). high-quality technical presentations • DC-AC inverters — DC to single
"The devastating effect of and the collegial, informative atmo- phase, DC to multiphase, multilevel
Hurricane Katrina on the city of New sphere in which a broad spectrum of inverters
Orleans has made it necessary for the manufacturers can exhibit their latest
APEC executive steering committee to product innovations. • Motor drives for induction machines,
secure an alternate venue for next Popular with conference atten- permanent magnet machines,
year's conference and exhibition," said dees, lively "rap sessions" feature switched reluctance machines
Kevin Parmenter, publicity chairman panelists and audience members
for APEC 2006. engaging in lively exchanges about • Power semiconductors, energy
50 January 2006
News BytesJan06.qxd 12/8/2005 7:01 PM Page 51

storage components, and sensors double the size of its existing facility, building. More than 52,000 SF of new
according to Mouser Electronics office space will accommodate offices,
• Energy storage components includ- President and CEO, Glenn Smith. "We conference and meeting facilities, an
ing magnetics, capacitors, batteries and started planning the addition to the expanded customer service call center,
chargers facility as soon as we saw that we and a new data center. The data
needed it," he said. "By the time we center will connect to multiple power
• Mechanical components including had the planning and all the sources and to three dedicated fiber
connectors, bus bars, substrates, approvals in place, we had already communications lines to ensure
thermal management grown to the next level." uninterrupted Internet operations, a
The addition will add more than core component of Mouser's global
• Physical design and packaging 229,000 SF of space to the existing sales operation. NV
topics including thermal management,
integration of design tools, physical
design, packaging, EMI, and EMC

• Modeling, simulation and control of


power supplies, electric machines and
drives, power systems

• Business issues such as marketing,


manufacturing, quality, test, power
electronics business issues, DFx,
standards, and regulations

For more information, editors are


invited to contact: Kevin Parmenter,
APEC 2006 Publicity Chair, Fairchild
Semiconductor, 480-633-5678;
Kevin.parmenter@fairchildsemi.com

MOUSER ELECTRONICS
BREAKS GROUND ON
NEW FACILITY
Electronics Distributor Plans
402,000 SF Headquarters/
Warehouse Building

Mouser Electronics, Inc., the


fastest growing electronics distributor
in the industry, has broken ground on
a 229,000 SF expansion of their 173,000
SF Mansfield, TX headquarters facility.
A privately-held company, Mouser
Electronics is the fastest growing
electronics distributor in North Amer-
ica. A sign of the company's aggressive
focus on customer service, Mouser
is the only catalog distributor of
electronic components to publish a
new 1,600+ page print catalog every 90
days. The company's online store at
www.mouser.com now offers more than
550,000 products, as well.
Because of Mouser's fast growth
and expanding product selection, the
company needed to more than
January 2006 51
ShowcaseJan06.qxd 12/9/2005 1:25 AM Page 52

SHOWCASE
Extreme Motor
Speed Control!
$349 6 14V - 50V
6 Dual 150A+ Peak H-bridges!
6 Current/Temp limiting
6 R/C inputs - serial option
6 Extruded Aluminum case
6 4.25" x 3.23" x 1.1”

1.6“ x 2.7“
$104.99
1.25“x .5“ 1.6“ sq Powerful!
$29.99 $79.99
Scorpion Mini - Single 6A H-bridge - R/C interface
Scorpion HX - Dual 6A H-bridge +12A Aux - R/C
Scorpion XL - Dual 30A H-bridge - R/C or serial

www.robotpower.com
Phone: 253-843-2504  sales@robotpower.com

Site: www.vandvmachy.com
email: victor@vandvmachy.com

USA Office: Blink Manufacturing 14019 Whispering Palms Dr.


Houston, TX 77066, PH. 281 397 8101, Fax. 281 397 6220.
Mexico Plant: Marketing Tech. De Mex. SA de CV. Alamo 93
Cuarto Piso, Santa Monica, Tlal. Edo. De Mexico, 54040
Tels. 011 52(555) 314 5325 & 011 52(555) 360 3648
Fax. 011 52(555) 361 5996.

PRINTED CIRCUIT BOARDS


QUALITY PRODUCT 10 pcs (3 days)
FAST DELIVERY 1 or 2 layers $249
COMPETITIVE PRICING 10 pcs (5 days)
4 layers $695
* UL approved (up to 30 sq. in. ea.)
* Single & Double sided includes tooling, artwork,
* Multilayers to 8 layer LPI mask & legend
* SMOBC, LPI mask
* Reverse Engineering
* Through hole or SMT
* Nickel & Gold Plating
* Routing or scoring
* Electrical Testing 9901 W. Pacific Ave.
* Artwork or CAD data Franklin Park, IL 60131
* Fast quotes Phone 847.233.0012
We will beat any com- Fax 847.233.0013
petitor s prices!!! Modem 847.233.0014
yogii@f lash.net • f lash.net/~yogii

www.nutsvolts.com
ShowcaseJan06.qxd 12/9/2005 12:42 AM Page 53

READER FEEDBACK Continued from page 6

The little pictures and things take GONE ASTRAY old issues
up half the space. There is no need I think you folks have really gone much more
for it!! You have to try and read around astray with your latest issue. I already than what you
the photos. I don't know where subscribe to Popular Science so I put out now.
you are going but it is in the wrong really do not want to see the kind of Please do not go away from real
direction!! I don't really like your thick stuff you put in this last issue. electronics and microcontroller type
paper insert but it is the only one. Take a look at several of your projects. I believe your subscriber
If you start putting in those cards issues from 2001, 2002 (I have been base is electronics hungry and
then you can count me out as a doing just that, today). that is what will get you more
customer. I have enjoyed NV over the Those issues contain real hobby subscribers.
years. And, for the record, it's the only electronics and robotics, I enjoy those Dwight Merkley
magazine I get. Please go back to the
old format, before November.
Gary Stutts

NEW! HIDmaker FS for Full Speed FLASH PIC18F4550


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

DOWNLOAD the HIDmaker FS Test Drive today!


www.TraceSystemsInc.com
301-262-0300
January 2006 53
BookstoreJan06.qxd 12/9/2005 12:25 AM Page 54

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

The Nuts & Volts Hobbyist BOOKSTORE


Starting Electronics Construction Programming and Customizing
AUTOMOTIVE by Keith Brindley the OOPic Microcontroller
50 Awesome Auto Projects This practical electronics by Dennis Clark
for the Evil Genius book explains how to select If you’re a robotics
the right tools and compo- professional or hob-
by Gavin D J Harper nents for the job, use a byist, here’s the one
The Evil Genius format soldering iron, etch a printed
is the perfect "vehicle" book you’ll need to
circuit board, and mount the keep your work on
for 50 incredible auto- finished product in a case.
motive projects that the leading edge —
While most electronics texts Programming and
are compatible with focus on theoretical knowl-
any car, no matter Customizing the
edge, Keith Brindley presents OOPic Microcontroller.
what make, model, or a genuinely 'practical' bench guide and
year. Focusing on low- This is the official
reference for electronics experimenters. OOPic Handbook,
cost, easily obtained The straightforward, interactive style of
components, 50 fully endorsed by
this book makes it ideal for home electron- Savage Innovations, the world’s only manu-
Awesome Auto Projects ics work and particularly suitable as an
for the Evil Genius lists facturer of OOPic microcontrollers. As the
introduction to university lab courses for first book of its kind, this volume is des-
the items needed to complete each project students who are not familiar with hands-
along with a troubleshooting and repair tined to become the standard against
on electronics construction. $24.95 which all other OOPic books will be
section. $24.95
judged. $39.95 SAVE 10% $35.95
Introduction to Fiber
ELECTRONICS Optics — Third Edition Programming and Customizing
by John Crisp the PICAXE Microcontroller
PSP Hacks, Mods, Optic fiber and light — a by David Lincoln
and Expansions brilliant combination.What This beginner-friendly
by Dave Prochnow makes the light stay in the guide from IT pro and
Packed with the fiber? The choice of frequen- PICAXE expert, David
mother lode of geek cy, propagation of light along Lincoln, shows you just
tweaks, tricks, and the fiber, decibels, losses in what Revolution
upgrades, award-win- optic fibers, dispersion and Education's PICAXE
ning how-to writer our attempts to prevent it, can do — and helps
Dave Prochow's real cables, connecting optic you make it do it!
PSP™ Hacks, Mods, fibers — the problems, fusion splicing, Packed with ready-to-
and Expansions gives mechanical splices, connectors, couplers, build projects for all
you everything you light sources and detectors, testing a sys- the flavors of PICAXE,
need to morph your tem, system design — or, will it work?, the
! the guide provides step-by-step help that's
Sony PlayStation® NEW transmission of signals, designing an optical ideal for those just starting out with micro-
Portable into the system and selecting components, LANs controllers but also takes more experi-
hottest handheld on the planet.You can't and topology, some final thoughts, glossary, enced programmers where they need to
find more PSP fun, finesse, and future- and quiz time answers. $29.95 go fast. Using plenty of examples,
features anywhere! To make the whole trip Programming and Customizing the PICAXE
more gratifying, Dave smoothes the way Microcontroller clarifies this versatile chip's
for those who merely aspire to geekdom. basics and coaches you through sophisti-
Within this book’s covers, you'll find MICROCONTROLLERS cated applications. $39.95
complete, goof-proof, illustrated, insider's SAVE 10% $35.95
guidance. $24.95 Programming & Customizing
PICMicro Microcontrollers
by Myke Predko Programming and Customizing
MORE Electronic Gadgets This book is a fully the 8051 Microcontroller
for the Evil Genius updated and revised by Myke Predko
by Robert E. Iannini compendium of PIC Myke Predko's
This much anticipated programming informa- Programming and
follow-up to the wildly tion. Comprehensive Customizing the 8051
popular cultclassic coverage of the Microcontroller puts
Electronic Gadgets for the PICMicros' hardware you in control of the
Evil Genius gives base- architecture and soft- 8051's architecture
ment experimenters 40 ware schemes will com- and instruction set —
all-new projects to tin- plement the host of and even supplies a
ker with. Following the experiments and proj- baker's dozen of
tried-and-true Evil ects making this a true "learn as you go" ready-to-build exam-
Genius Series format, tutorial. New sections on basic electronics ple applications, pro-
each project includes a and basic programming have been added for grams, and circuits.
detailed list of materials, sources for parts, less sophisticated users, along with 10 new Best of all, the included CD-ROM supplies
schematics, documentation, and lots of projects and 20 new experiments.The CD- source code for the book's experiments
clear, well-illustrated instructions for easy ROM contains all source code presented in and applications, a demonstration cop
assembly. Readers will also get a quick the book, software tools designed by of the "UMPS" integrated development
briefing on mathematical theory and a sim- Microchip and third party vendors for appli- environment (IDE), and data sheets for
ple explanation of operation along with cations, and the complete data sheets for the Dallas Semiconductor and Atmel 8051
enjoyable descriptions of key electronics the PIC family in PDF format. $49.95 compatible devices. $44.95
topics. $24.95 SAVE 10% $44.95 SAVE 10% $40.45
54 January 2006
BookstoreJan06.qxd 12/9/2005 12:26 AM Page 55

CALL 1-800-783-4624 today!


Or Order online @ www.nutsvolts.com
The PIC Microcontroller: Your CNC Robotics SERVO CD-Rom
Personal Introductory Course by Geoff Williams Starting with the
by John Morton Written by an first SERVO issue
Assuming no prior knowledge of micro- accomplished workshop — November
controllers and introducing bot designer/builder, 2003 — all of the
the PIC Microcontroller's CNC Robotics gives you issues through the
capabilities through simple step-by-step, illustrated 2004 calendar
projects, this book is ideal directions for designing, year are now
for electronics hobbyists, constructing, and testing available on a CD
students, school pupils, and a fully functional CNC that can be
technicians.The step-by-step robot that saves you searched, printed,
explanations and the useful 80% of the price of an and easily stored.
projects make it ideal for stu- off-the-shelf bot — and can be customized This CD includes all of Volume 1, issues 11-
dent and pupil self-study.The revised third to suit your purposes exactly because you 12 and Volume 2, issues 1-12, for a total of
edition focuses entirely on the re-program- designed it. $34.95 SAVE 10% $31.45 14 issues.The CD-Rom is PC and Mac
mable Flash PIC microcontrollers such as compatible. It requires Adobe Acrobat
the PIC16F54, PIC16F84, and the extraor- Reader version 6 or above. Adobe Acrobat
dinary eight-pin PIC12F508 and PIC12F675 Reader version 7 is included on the disc.
devices. $26.95 HOME COMPUTING $29.95 SAVE 10% $26.95
Winning Results with USB Complete, Third Edition
Google AdWords by Jan Axelson
ROBOTICS by Andrew Goodman In USB Complete, Jan
The Official Robosapien Don’t get lost in the Axelson shows how to
digital haystack! With design and program
Hacker's Guide thousands of links for
by Dave Prochnow devices that use USB to
every search, the communicate with PCs.
The Robosapien robot chances of your prod-
was one of the most Learn how to select a
ucts being found online USB controller chip that
popular hobbyist gifts are slimmer than a
of the 2004 holiday fits your project and
needle. But there’s budget, how to write
season.The brief man- good news — you can
ual accompanying the program code to man-
pinpoint your market- age USB communica-
robot covered only ing message with help
basic movements and tions in your device, and how to write
from Winning Results with Google AdWords. Visual Basic .NET and Visual C++ .NET
maneuvers — the You'll discover AdWord essentials, how to
robot's real power applications that exchange data with your
bid for and win the keywords you want, devices. Explore how the interface works
and potential remain how to track your results, and much more.
undiscovered by most owners — until from the ground up and learn how to cre-
Create a profitable ad campaign using ate devices that communicate reliably with
now! This is the official Robosapien guide online marketing, paid search, targeting, and
— endorsed by WowWee (the manufactur- all PCs. $49.95 SAVE 10% $44.95
leveraged branding. $24.99
er) and Mark Tilden (the designer).This
timely book covers all the possible design Embedded Ethernet and
additions, programming possibilities, and Nuts & Volts CD-Rom Internet Complete
"hacks"not found anywhere else. $24.95 Here’s some good by Jan Axelson
news for Nuts & Learn how to design
Mechatronics for the Evil Genius Volts readers! and program devices
by Newton C. Braga Starting with the that host Web pages,
If you're fascinated January 2004 send and receive e-
by electronics and issue of Nuts & mail, and exchange files
mechanics, this hands- Volts, all of the using FTP. Put your
on tour of the junction issues through devices on the Internet
where they meet will the 2004 calendar and monitor and con-
bring you hours of fun year are now trol your devices from
and learning. Noted available on a CD across town or around
electronics author that can be searched, printed, and easily the world. Create pri-
Newton Braga's stored.This CD includes all of Volume 25, vate, local networks that enable your
Mechatronics for the issues 1-12, for a total of 12 issues.The devices to share information, send com-
Evil Genius guides you CD-Rom is PC and Mac compatible. It mands, and receive alarms and status
step by step through requires Adobe Acrobat Reader version 6 reports. Plus: learn about Ethernet con-
25 complete, intriguing, yet inexpensive or above. Adobe Acrobat Reader version 7 trollers, hardware options for networks,
projects developed especially for this book. is included on the disc. $29.95 networking protocols, and more $49.95
You will build your own mechanical race SAVE 10% $26.95 SAVE 10% $44.95
car, combat robot, ionic motor, mechatron-
ic head, light beam remote control, and 20
other entertaining learning projects that WE ACCEPT VISA, MC, AMEX, If you don’t see what you need
take you to the heart of mechatronics. and DISCOVER here, check out our online store
Each experiment builds on those before it Prices do not include shipping and
so you develop a hands-on, practical under- may be subject to change. at www.nutsvolts.com for a
standing of mechatronics.You don't need to Ask about our 10% subscriber complete listing of the titles
know electronics or mechanics to get discount on selected titles. available.
started. $24.95
January 2006 55
Page56.qxd 12/8/2005 11:18 PM Page 56

Unique cutting-edge products!


EASY ORDERING IN NANOSECONDS
Data Loggers RS232 - RS422/485

ADC212/3- The ADC-212/3 balances res- Send your serial signals hundreds of
olution, sampling rate, and cost to make feet using differential RS422 or
an ideal general purpose oscilloscope. tristate/addressable RS485 units.
With a 12-bit resolution, 3 MS/s sampling
speed and 32 KB waveform buffer, ADC- CS-428 - 9pF-TB $49
212/3 an ideal solution for high speed data CS-428AT above with autoturn $59
acquisition using a PC's parallel port WCS232 RS232-bluetooth $149
PP083 from $569 K3 - 9pF-9pF isolated $139
For USB connection, use the 8-bit 20MS/s KD485-STD DINrail mount $159
PicoScope2202 at $359.00 KD485-ADE Autodrive version $299

With a 1,600+ page catalog of the USB PC Scopes But Wait...There’s More!
NEWEST information 4 times a year, and
daily updates to over half a million prod- USB to 24 I/O lines..................$69
ucts on-line, you can depend on Mouser USB to 8 Thermocouples............$475
for easy ordering in nanoseconds!
NEW Products USB to 11 x A/D ch..................$181
NEW Technologies USB 2ch 100MHz scope................$1139
NEW Suppliers
mouser.com (800) 346-6873 CANbus, VME, cPCI, etc.......$300+
easyRadio modules.....................$40
USB-RS422 1/2/4ch...................$48+
The NEWEST Semiconductors | Passives | Interconnects | Power | Electromechanical | Test, Tools & Supplies
Stepper Motor Controller...........$89
Logic Analyzers 8/16-ch (USB)......$222/333
Mouser and Mouser Electronics are registered trademarks of Mouser Electronics, Inc. Any other product and company names men- These impressive adapters are
powered from PC's USB port - USB Bus Analyzers...................$999
tioned herein are trademarks of their respective owners.

turns your PC into a digital - USB surge protectors..................$32


scope/FFT/meter. Laser i.r. thermometer gun.............$149
CAN-USB adapter w. s/w.............$299
Stingray: 250kHz 2-ch + sig-gen $220 USB-serial ic's with FTDIchip rocksolid
Swordfish: 10MHz scope-in-a-probe $275 drivers from.......................$2 (10K qty)
PS2202: 2MHz 8-bit 2-ch $359 Motion detector ic/module for video...$40/156
PS3424: 1MHz 12-bit 4-ch $1293
PS3206: 50MHz 2-ch + sig-gen $1518 www.saelig.com/seeour.htm

USB-Serial Adapters FREE COFFEE

Gives serial to PCs that do not


have one. Update old RS232 Call 1-888-7SAELIG
products with stable FTDI chip
drivers.
Mention Offer# SBW
USB-COM-S 47" USB-9pD $25 to get a free
USB-COM-25 36" USB-25pD $25
USB-COM-SI-M Isol metal box $99 STARBUCKS Card
with your order!
Also: 1, 2, 4, 8, and 16-channel
USB-422/485 converters. (Not available with any other offers)
“I received the USB kit today, and 5 Saelig Co. brings to USA unique, easy-to-use con-
trol and instrumentation products from overseas.
min later I was up and running with Customers include: Intel, Philips, NEC, Kodak,
my USB test program. That was Nokia, US Military, Microsoft, Dell, Xerox,
Universities, T.I., Harris, Sony, J&J, Thomson,
easy!” (J.C.) Sandisk, General Dynamics, H-P/Compaq, etc.

888-7SAELIG
www.saelig.com
info@saelig.com

56 January 2006
Henry.qxd 12/8/2005 1:39 PM Page 57

b y T h o m a s H e n r y

T
here is no doubt that synthesizers have changed the face of music
over the past 30 years. Synthesizers’ initial impact was in the
area of “academic” music, since their almost brutish size,
extreme complexity, and exorbitant cost fairly much confined them to
university settings. But as interested experimenters became more
familiar with the concepts of electronic music, and the linear
integrated circuit revolution kicked into high gear, homebrew
analog synthesizers started to pop up.
And so this versatile instrument made the transition from
“new” music to popular music; there’s hardly a song on the radio
today that doesn’t feature it. But literally, it’s thanks to thousands of
amateurs toiling away in their home workshops and studios that the
electronic music synthesizer was propelled into the mainstream.
Would you like to join in on the fun? Well then, the purpose of this
article is to explain how you can get started in the fascinating field of
electronic music synthesis. As a reader of this magazine, you already
have an interest in and knowledge of electronics. But perhaps the
principles of electronic music circuitry and what it takes to make
a truly useful performance instrument are new to you. This
article will help bridge that gap between technology and art.

January 2006 57
Henry.qxd 12/8/2005 1:40 PM Page 58

over three decades ago on analog waveform in Part (b) is about


machines far less sophisticated than half that of the reference waveform.
what you can build yourself today. If this were an audio signal we were
If this all sounds exciting to you, listening to, we’d say that the sound is
then let’s tuck in and see how to learn softer or less loud. Notice in this case
about analog music synthesizers. that the frequencies of the reference
waveform and Part (b) are identical; it’s
THE THREE ASPECTS only the amplitudes which differ.
OF SOUND Finally, the third aspect of sound
can be referred to as harmonic
Analog music synthesizers depend content. An easy way to understand
upon the rather simple concept that this is by trying a simple experiment.
any sound (musical or otherwise) can Sing the following vowel sounds in
be described by three parameters only: one long, drawn out phrase, “ooooh ...
frequency, amplitude, and harmonic ahhhh ... eeeee.” Slur the sounds
content. The basic notion is that if together, but don’t alter the pitch or
we can analyze a sound into its three volume at which you sing them. Even
constituents, then by reversing the though you’ve held two of the param-
steps we should be able to synthesize eters fixed, something is obviously
it from scratch, as well. Let’s look at changing. This is the harmonic
these three aspects in more detail. content, called timbre by musicians.
Frequency is a measure of how Electronically, it corresponds to
■ FIGURE 1. Three parameters of sound. often a waveform repeats in a given an oscillator generating different wave
interval. Refer to Figure 1. Comparing shapes or perhaps a filter modifying
The emphasis here is on learning the waveform in Part (a) with the refer- those shapes somehow. Refer one
about analog music synthesizers. Not ence waveform, we see that it is twice final time to Figure 1 and notice how
only are their circuits perhaps more the frequency. In loose terms, the fre- the signal in Part (c) has the same
accessible to beginners, but they’re quency of an audio signal corresponds frequency and amplitude as the refer-
also imbued with a certain warmth of to what a musician calls pitch. For the ence, but the shape is clearly different.
sound that is unequaled. And lest you two triangle waves illustrated, the By the way, an oscillator that puts out
think analog technology is too feeble second one is an octave higher (twice a triangle wave will sound rather pure
to be useful in this digital day and age, the frequency) than the reference. and flute-like compared to the raspier,
keep in mind that some amazing The second parameter of sound is violin-like timbre of a ramp wave.
music, like Walter Carlos’ famous that of amplitude. Again, refer to Figure If we can come up with the means
Switched On Bach, was created 1. Here we note that the height of the to manipulate the frequency, ampli-
tude, and harmonic content of an
electronic waveform, then in theory we
should be able to synthesize just about
any sound we desire. A traditional
musical instrument is pretty much
stuck in a rut; its ability to change all
three parameters is somewhat limited
in scope. But with a synthesizer, many
more combinations are possible
including those never before heard!

WHAT’S INSIDE AN
ANALOG SYNTHESIZER?
While the fundamental concept is
quite simple, coming up with a com-
plete circuit to usefully manipulate all
three parameters of sound can be
daunting. The only reasonable way to
proceed is by divide and conquer. That
is, rather than thinking of a synthesizer
■ FIGURE 2. Block diagram of a typical sin-
gle voice analog synthesizer arrangement.
58 January 2006
Henry.qxd 12/8/2005 1:40 PM Page 59

as a single entity, break it down into


logical units or modules. Not only is it
easier to design and build this way, but
you’ll find troubleshooting to be much
simpler, as well. And then, of course,
there’s the business of upgrades. If you
should happen to come up with an
improvement, it’ll be simpler to swap
out the old module and replace it,
leaving the rest of the instrument
intact. So let’s think modular.
Refer to Figure 2 which shows a
■ FIGURE 3. Block diagram of an
block diagram for a typical analog cups his or her hands around the analog keyboard arrangement.
music synthesizer. Don’t let the alpha- instrument to create a “wah-wah” effect.
bet soup there worry you, for we’ll soon So the VCF is also modulated by an you can easily construct to make a
sort out what the various acronyms additional control voltage coming from complete analog synthesizer. Let’s
mean. As an overview, let’s take a quick an ADSR envelope generator. More begin with the keyboard. You have two
run around the figure. Afterwards, we about that module in just a moment. basic approaches available: analog and
can concentrate on what you should We’ve seen so far how the frequen- an analog/digital hybrid. Take a look at
know about the specific modules. cy and harmonic content are manipulat- Figure 3 which depicts the former.
The heart of a synthesizer is the ed in the instrument by the VCO and A constant current source drives a
voltage controlled oscillator (VCO) VCF circuits. The remaining parameter string of resistors. When a key is
which produces a stable source of is modulated by the voltage controlled depressed, a switch underneath clos-
waveforms. Voltage control is what amplifier (VCA). The amplitude of the es, dumping the voltage correspon-
makes it so useful, allowing other audio signal passing through it (from ding to that part of the resistor string
circuits to easily change its operating the VCF) is boosted or attenuated, once onto a bus. Note, then, that each key
frequency. This is a key notion in the again under control of the ADSR enve- will produce a different voltage since
design of analog synthesizers. lope generator. The letters here stand each one selects a differing number of
The control voltage (CV) output of for Attack-Decay-Sustain-Release. resistors. The bus carries that voltage
a musical keyboard puts the VCO These represent the four components on to a sample-and-hold. It’s the duty
through its paces. (By the way, in Figure making up a cycle of a musical note, of this circuit to “remember” that volt-
2, vertical arrows represent control beginning from silence, on up to full age until the next key is struck. By the
voltages while horizontal ones indicate volume, back down to silence again, way, the gate and trigger circuitry isn’t
the audio path.) As you tap out various and awaiting the start of the next note. shown here; typically these are gener-
notes on the keyboard, switch closures Observe that the keyboard — in ated with additional switch buses. And
are somehow translated into different addition to putting out the control volt- if it isn’t clear, the focus is on a mono-
voltages which causes the VCO to age mentioned earlier — also generates phonic system (playing one note at a
change frequency accordingly. Notice gates and triggers. These two signals time); you can worry about polyphony
that the VCO can also be modulated by tell the ADSR when to do its thing. We’ll once you get your design chops down!
an LFO or low frequency oscillator to get more detailed later, but for now just Such an analog controller inter-
impart a vibrato to the waveform, think of the gate and trigger as indicat- face is quite easy to design and build.
analogous to the effect produced by a ing when a key has been pressed. The problem is usually finding a raw
violinist wiggling his or her finger Figure 2 has illustrated just one keyboard sporting a switching bus.
against a string being held down. simple “patch.” But in a full-fledged Thanks to their popularity in combo
The audio output of the VCO is analog synthesizer, hundreds, if not organs, 20 years ago these were a
routed to the VCF, or voltage controlled thousands of other arrangements are dime a dozen, even showing up on the
filter. The purpose of this module is to possible. Since each module sports a surplus market. Nowadays, however,
modify the harmonic content of the variety of jacks, one need merely they’re far less common.
waveform. You’ll note one of its control rearrange the interconnecting patch But there is a reasonable alterna-
sources comes from the keyboard, too. cords to effect a new circuit configura- tive for our present age. Consider the
This is done so that the VCF “tracks,” tion. Both audio and control voltage hybrid arrangement shown in Figure 4.
ensuring that the harmonic content interconnections can be made. In this case, you use any MIDI enabled
doesn’t change as we move from note unit. Virtually all modern electronic
to note, up and down the keyboard. MODULES FOR pianos, organs, synthesizers, and so
But most traditional musical MUSIC SYNTHESIS forth come with a MIDI out jack. This
instruments do in fact change their even includes most bargain basement
timbre over the duration of a single With this overview out of the synths available at department
note; think of a how a harmonica player way, we can focus on modules that stores. You simply feed the output
January 2006 59
Henry.qxd 12/8/2005 1:40 PM Page 60

quite straightforward other percussive effects, in addi-


to design oscillator tion to nonmusical things like gun-
modules to generate shots, explosions, and windstorms.
all of these, and many Voltage controlled filters come in
different circuits for many different flavors. But for most
them have appeared musical work, a four pole lowpass
over the years. type works well. A number of good
The tricky part designs have appeared over the years
isn’t the output, but using discrete transistors; other
what happens at the versions exploit the CA3080 or
control voltage input. LM13700 transconductance op-amps.
Most analog music As mentioned earlier, it’s a good thing
equipment today if the VCF tracks the VCO, so again
follows what’s called a you’ll want to build one which follows
1V/octave response. In the industry standard of 1V/octave.
plain language, each VCAs are quite a bit easier to design
one-volt increment and build, since they’re most useful if
■ FIGURE 4. Block diagram of a hybrid
keyboard arrangement. causes the VCO to double in frequen- the control input obeys a simpler linear
cy or to create a sound exactly one response. About the only point to look
of the keyboard to a MIDI-to-CV con- octave higher. Due to this doubling out for is the business of control voltage
verter and take the control voltage, phenomenon, the response is, in fact, rejection. There’s no need to get real
gate, and trigger signals from it instead. a base-2 exponential. This is quite technical here, but essentially a unit
You may protest that the cost or different from the linear VCOs you with poor control voltage rejection
complexity of this hybrid approach is may have seen before. Refer to the tends to “thump” if it goes from low gain
too much to bear. Well, in fact, Nuts & table in Figure 6 which compares the to high gain rapidly. Luckily, this isn’t
Volts Magazine published just such a responses for two hypothetical units. much of a problem nowadays with the
do-it-yourself version several years One advantage of going with the ready availability of better linear chips.
ago placing it well within reach of 1V/octave control input is that the By the way, voltage controlled amplifiers
most budgets. See the Resources resistors appearing in the keyboard are generally configured around opera-
sidebar for details. diagram of Figure 3 (or the D-to-A con- tional transconductance op-amps such
Let’s consider the VCO next. A verter implicit in Figure 4) can be equal as those mentioned above.
versatile VCO should put out a variety valued. Pondering Figure 6, you’ll soon The ADSR module is employed to
of signals. Refer to Figure 5 which realize that if you went with a linear create envelopes. The envelope is
shows some typical synthesizer wave- response VCO, the resistors would generally imparted to the amplitude
forms. From top-down these are: sine, have differing values and probably very (by means of the VCA), but could also
triangle, ramp, square, and pulse. It’s non-standard ones at that. In fact, they modulate either the VCO or VCF for
would all no doubt have to be trimpots other musical effects. An ADSR is
■ FIGURE 5. Some typical analog just so the thing could be properly essentially a timing circuit. It accepts
synthesizer waveforms. tuned to avoid sour notes. Ugh! two digital signals — the gate and
By the way, the bottom waveform trigger — and generates a (typically)
in Figure 5 is of noise. This isn’t creat- slowly moving control voltage output
ed by the VCO, but rather by a separate in response. Front panel potentiome-
noise generator circuit. A good noise ters let you adjust the timing and
source is essential in a synthesizer. It level of the resulting envelope.
can be used to create instrument Refer to Figure 7 which shows the
sounds like drums, hand claps, and relationships among the various signals.
Starting from the left, a gate and trigger
occur simultaneously in response to a
key being depressed. Now the trigger
(perhaps 1mS wide) will always be
generated when a key is struck; in fact, if
you sweep your hand down all the keys
of the instrument domino style, you’ll

■ FIGURE 6. The frequency in Hz of a


linear VCO increases by a fixed amount
for each 1V increment in control
voltage. A base-2 exponential VCO
doubles in frequency for each step.
60 January 2006
Henry.qxd 12/8/2005 1:41 PM Page 61

■ FIGURE 7. Here’s the output of an ADSR


envelope generator derived from gate
and trigger inputs. Notice the righthand
portion; although the gate remains steady,
a new trigger restarts the attack cycle.

get a trigger for each note. But the gate


only lasts as long as a key is held in
place. The combination of a gate and
trigger tells the ADSR to begin its
cycle. A capacitor will charge in the
usual exponential manner during the
attack phase. As mentioned, a front
panel potentiometer lets you adjust
the amount of time this will take. lope generator enters the release called retriggering and most musi-
When it reaches the apex (+5V on phase. The output voltage will drop at cians deem it a very desirable feature.
most modern synth gear), the decay the rate set by yet another front panel ADSRs are extremely easy to design
phase begins. The charge on the cap potentiometer until it hits zero. and build. Essentially, all it boils down
will bleed off in the amount of time set Now consider the right half of to is being able to route some currents
by a second pot. The voltage will drop Figure 7. It begins the same way, with to and from a timing capacitor at the
to an intermediate level indicated by the attack and decay phases. But right moments. There are no critical
the sustain pot and remain there as notice that a second trigger has come components, no high frequencies, and
long as the key is still depressed (and along. In other words, another key has no temperature drift to worry about.
the gate is still present). been struck while the first one is still As for the LFO, these are even
When the key is finally let go and held down. The ADSR enters new easier to make. The common Schmidt
the gate signal evaporates, the enve- attack and decay phases. This is trigger/integrator type of function gen-

RESOURCES
While there are lots of schematics and plans for synthesizer Music from Outer Space
circuits kicking around, many are disappointing. Finding well www.musicfromouterspace.com/analogsynth/vco.html
worked out, high quality designs suitable for a pro quality instru-
ment can be quite a challenge. To point you in the right direction, ■ ADSR
here are some recommended books, articles, and websites to The first design here is one of mine that seems to keep pop-
turn to, broken down by category. A number of the items listed ping up on the Web after two decades, but it’s still a good one.
here appeared in Nuts & Volts Magazine. If you’re missing one, The second is an interesting and more modern alternative. Both
be sure to go to www.nutsvolts.com to locate back issues. sites include free downloadable printed circuit board artwork.
■ Front Panels A golden oldie
Thomas Henry, “Secrets of Making Attractive Rack Panels,” www2.charlielamm.com/synth/adsr.php3
Nuts & Volts Magazine, December 1998, pp. 72 – 75.
Yves Usson’s ADSR
■ Power Supply wwwtimc.imag.fr/Yves.Usson/personnel/SDIY/Modular/EN/ADSR/
Thomas Henry, “Power Supplies for Electronic Music,” Nuts
& Volts Magazine, January 1998, pp. 7 – 11. ■ VCF
Here’s Ray Wilson again with an excellent design for a
■ Keyboard four pole low pass filter. Then the second website shown offers
If you’ll be using an analog switching bus keyboard, refer several discrete versions emulating some of the classic VCFs
to the first entry below. In any event, Hutchins’ collection is from the past.
essential reading for the serious electronic music synthesizer
builder. See the Electronotes URL below. The second article Ray Land’s VCF
shows how to build an inexpensive interface if you’ll be taking www.musicfromouterspace.com/analogsynth/vcf.html
the MIDI keyboard approach
Synthesizer DIY pages of René Schmitz
Bernie Hutchins, Electronotes Builder’s Guide and Preferred www.uni-bonn.de/~uzs159
Circuits Collection, (Ithaca, New York: Electronotes, 1980), no
page numbers shown. ■ VCA
It’s pretty easy to create a high quality VCA using the NE570,
Thomas Henry, “Build Your Own MIDI-to-Synthesizer CA3080, or LM13700 chips. Here is a good source on how to do it.
Interface,” Nuts & Volts Magazine, December 1997, pp. 52 – 56.
Ray Marston, “Understanding and Using OTA Op-Amps,”
■ VCO Nuts & Volts Magazine, April 2003, pp. 58 – 62, and May 2003, pp.
Again, refer to the Hutchins’ collection mentioned above for 70 – 74.
a number of superior VCO designs. For more recent circuits, visit
the two websites listed here. Fritz was one of the early guys in ■ Noise Generator
electronic music synthesizers and has come up with an extremely Thomas Henry, “Build a Tunable Noise Generator,” Nuts &
precise VCO, giving a detailed analysis of its tuning and tempera- Volts Magazine, November 1999, pp. 25 – 27.
ture characteristics. Ray Wilson’s Music from Outer Space site is
very friendly and chock full of synth circuits and tips. He’s even
included free printed circuit board artwork for his VCO circuits. The N&V articles, by Thomas Henry, mentioned here are
Ian Fritz’s Electronic Music Site: available as PDF downloads from www.nutsvolts.com
home.earthlink.net/~ijfritz/sy_cir2.htm

January 2006 61
Henry.qxd 12/8/2005 1:41 PM Page 62

■ FIGURE 8. Here’s a large analog use it for testing new circuits


synthesizer built completely from as you progress on your system.
scratch by the author. DIY rack panels By the way, it’s a smart idea to plan on
serve as faceplates, and the whole
thing is housed in homemade rack having +5V and bipolar ±15V outputs
cabinets made of 1 by 10 lumber. available. The +5V one is good for TTL
and any microprocessors, while the
to find some of the circuit designs bipolar ±15V supply can handle the
mentioned in passing here. linear circuitry. And make them with
enough “oomph” so you can power up
1. Decide on the physical configura- a quantity of modules. A minimum of
tion first. For example, you could 500 mA per output would be wise.
build your synthesizer in a travel
erator works very well and is inex- case or make it a desktop unit suitable 3. Take care of the keyboard next. If
pensive. There are other for studio use. And how about the you can lay your hands on an old
analog synthesizer modules pos- faceplates? A good choice might be switching-bus type of raw keyboard,
sible, too, but the ones described industry standard rack panels. It’s not great. Then you can build the analog
above will get you started nicely. And only easy to make handsome ones, but style illustrated in Figure 3. In the
since you’re going modular, you can they’re physically compatible with more likely event you can’t locate one,
always add, subtract, or swap later on! most other pro gear. See Figure 8 for an invest in an inexpensive MIDI output
example of what a person can do by keyboard and build a MIDI-to-CV
BUILDING A SYNTH — hand just in the home workshop. converter as depicted in Figure 4.
FIRST STEPS Even though you don’t have any other
2. Consider constructing the power modules yet, you can still check that
If you’ve got a feel for what you’d supply first. You’ll need one in any its output gives the required 1V/octave
like your system to have, then here’s a event, and it’s just as well to get this response using a digital multimeter.
suggested plan of attack. Remember, important (if distinctly non-sexy)
the Resources sidebar indicates where module out of the way. Plus, you can 4. Now comes the VCO. In many ways,

6XUSOXV6DOHVRI1HEUDVND
7UDQVLHQW9ROWDJH6XUJH6XSSUHVVRUY6LQJOH3KDVH 7DFKRPHWHU
/RZ (/( /:;;& 075 3'&
3ULFH $EVROXWHO\WKHEHVWVXUJHVXSSUHVVRUPRQH\FDQEX\,WKDVWZRYHU\KLJKHQG6XUJH%OR[ 5HGLQJWRQ&RXQWHUV
,QF 7DFKRPHWHU
 6XSSUHVVRU0RGXOHV#-RXOHVRU029SHUSKDVH 3HDN$PSV9ROW&ODPS 
7KHGHVLJQXWLOL]HVVLOLFRQDYDODQFKHGLRGHV 6$'V RUPHWDOR[LGHYDULVWRUV 029V LQHDV\ &RXQWV    YGF
WRUHSDLUDQGXSJUDGHPRGXODUGHVLJQV$&'DWD6\VWHPVPDQXIDFWXUHURIWKH6XUJH%OR[ SXOVH  UHYROXWLRQV
VWDWHVWKLVDVVHPEODJHRIIHUVUHGXQGDQWSURWHFWLRQWRSUHYHQWGDPDJHIURPUHSHWLWLYHYROWDJH 7KLVFRXQWHULQGLFDWHV
VSLNHV JHQHUDWHG E\ UHFXUUHQW RXWDJHV RU E\ WKH WXUQLQJ RQ DQG RII RI RWKHU PHFKDQLFDO DQG GLYLGHG RU PXOWLSOLHG
HOHFWULFDOHTXLSPHQWDVZHOODVIURPRVFLOODWRU\GHFD\LQJWUDQVLHQWVJHQHUDWHGE\OLJKWQLQJ QXPEHU RI LQSXW
SXOVHV ,QWHUQDO VZLWFK DGMXVWPHQWV VHWXS 
3DWHQWHG3&ERDUGWUDFHVDUHPRQLWRUHGE\WKHDODUPDVVHPEO\WRDOHUW\RXRILQGLYLGXDO029ORVVDQGWRSURYLGHUHOLDEOHKLJK
GLYLGHGPXOWLSO\IXQFWLRQ
VXUJHFXUUHQWFDSDFLW\DQGORZOHWWKURXJKYROWDJH029SURWHFWLRQ2QHE\RQHLQGLYLGXDOO\IXVHGDQGDODUPHG029VDUHUHPRYHG
IURPWKHVXSSUHVVLRQV\VWHPZKHQGHJUDGHGDQGGDPDJHG
3RZHUUHTXLUHPHQWV WRYGF
1HPD; FOHDUSODVWLFKHUPHWLFDOO\VHDOHGOLG ¿EHUJODVVFDELQHW$GHGLFDWHGWZRSROHGLVFRQQHFWRUEUHDNHU DPSYROW
^SUHIHUUHG`RUDPSYROW LVUHTXLUHGIRUWKLVVXSSUHVVRU QRQIXVHG 8QLWUHJXODUO\VHOOVIRU%UDQGQHZLQWKHER[ HDFK     

3OHDVHYLVLWRXUZHEVLWHZLWKRYHUSDJHVDQGLPDJHV‡ZZZVXUSOXVVDOHVFRP
+,0DQXDOVVRIUDGLRPLOLWDU\DQGWHVW 9DFXXP7XEHV2YHUYDFXXP 5HVLVWRUV:LUH:RXQG&DUERQ0HWDO
HTXLSPHQWPDQXDOVRQKDQG WXEHVLQVWRFN )LOP6XUIDFH0RXQW

(QFORVXUHV5DFN&DELQHWV%XLOGHU%R[HV 0LQL&LUFXLWV$PSOL¿HUVDWWHQXDWRUV
)UHTXHQF\6RXUFHV)URP.+]WR*+]
6KLSSLQJ&RQWDLQHUV OLPLWHUVSRZHUVSOLWWHUVDQGPRUH

9DULDEOH&DSDFLWRUV$LU0LFD9DFXXP %DOODQW\QH%RGLQHSURMHFWRUPRWRUV $QGUHZ&RQQHFWRUV

7DSH)LEHUJODVV3RO\LPLGH0\ODUŠ /DPS6RFNHWV0DQ\YDULHWLHV6RFNHWV )DQV %ORZHUV2YHU,Q6WRFN


3RO\HVWHU)LOP ZLWK$&SOXJVOHDGVVZLWFKHVHWF 0XI¿Q6TXLUUHO6SLUDO

)HUULWH5RGV VOHHYHVLQPDQ\VL]HV &ROOLQV3DUWV)RU$PDWHXUDQG0LOLWDU\ )HHGWKUX(\HOHWV2YHUVL]HV

1LFKRODV6WUHHW2PDKD1(‡)D[‡HPDLOJULQQHOO#VXUSOXVVDOHVFRP‡9LVD0DVWHUFDUG$PHULFDQ([SUHVVRU'LVFRYHU
&DOORUHPDLOIRUVKLSSLQJDQGWRWDOFKDUJHV$OO63(&,$/6LQWKLV$GRQO\JRRGIRUGD\DGYHUWLVLQJF\FOH1RH[FHSWLRQVSOHDVH
9LVLWRXUZHEVLWH#
ZZZVXUSOXVVDOHVFRP  ‡ 
62 January 2006
Henry.qxd 12/9/2005 2:08 AM Page 63

this will be the most sophisticated dation of an even more complex instru-
SUPPLIERS OF KITS, PARTS,
circuit in your synthesizer, so first spend ment; it’ll be easy to add on new mod-
some time looking over the various ules as you design and build them. And AND PLANS FOR SYNTHESIZERS
options pointed out in the Resources the pride you’ll feel performing on a ■ Blacet Research
sidebar. Decide if you’ll go with an synthesizer you’ve constructed with www.blacet.com
expensive “one-chip” type of music VCO your own two hands is immense. But ■ Electronotes
or a more traditional approach. When most importantly, if you’ve made it this electronotes.netfirms.com
you complete construction of the VCO, far, then you will have started to really
■ PAiA Electronics
you can test it with the power supply learn the ins and outs of electronic www.paia.com
and keyboard interface finished previ- music synthesizer design — one of the
ously. You won’t have any control over most exciting and fascinating aspects ■ Synthesis Technology
www.synthtech.com
the envelope yet, so it’ll just squawk at of hobby electronics! NV
you full volume like an organ, but at
least you can check its tuning accuracy.

5. Next, consider building the ADSR.


This should be a quick, one-weekend
project. If you like, you can test it
roughly on an oscilloscope or even an
analog voltmeter. Patch in the gate and
trigger signals from the keyboard and
monitor the ADSR’s output. As you
depress a key you’ll be able to follow
the changes in output voltage, and see
the timing effects of the various pots.

6. Then continue on to the VCA. After


wrapping up this module, you’ll final-
ly be able to hear some truly musical
results. Patch the VCO to the audio
input of the VCA, and the ADSR to
the control voltage input. Now
when you play some notes on the
keyboard, it’ll seem like a real instru-
ment. It’s the variable amplitude
envelope that makes the unit much
more than just a simple organ.

7. The VCF comes next. There are so


many types to choose from, you prob-
ably ought to spend some time poring
over the literature first. As mentioned,
the four pole low pass VCF is a good
choice, but don’t hesitate to try some-
thing simpler just to get going. Even
the humblest of filters when patched
into the audio chain begins to give
you some remarkable sounds.

8. If you’d like, try your hand at an


LFO and then a noise generator. The
tunable noise generator which was
published in Nuts & Volts previously
Complete Machining Center
is particularly effective, and yet is
inexpensive and easy to build. Precision Laser, Waterjet, and Plasma Cuttings

At this point you’ll have a good


www.iitmetalfab.com
basic system in place to form the foun-
January 2006 63
Page64.qxd 12/8/2005 11:02 PM Page 64

64 January 2006
Full Page.qxd 12/7/2005 3:29 PM Page 65

The World’s Most


Complete
Robotic Offering!
1,500 New Products
Recently Added!
We’ve expanded our product line so you can get
the most complete offering of robotic products—
all in one place!
Almost every product category has new items
to choose from, so be sure to venture out and explore.
We’ve also added two new categories—
3D Puzzle Robots & RF Radio Controllers.

Visit us online at

www.RobotStore.com/NVL
or call us

1.800.374.5764
ElectronetJan06.qxd 12/9/2005 12:31 AM Page 66

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


1/2+.'4#&'
It’s how you get higher :%.75+8'.;(14 &XVWRP&RPSXWHU
value at the low end. —
See page 7
  5
3,&ŠLVDUHJLVWHUHGWUDGHPDUNVRI0LFURFKLS
6HUYLFHV,QF
H[W
FFV#FFVLQIRFRP
7HFKQRORJ\,QFLQWKH86$DQGLQRWKHUFRXQWULHV ZZZFFVLQIRFRPSLFF

66 January 2006
Full Page.qxd 12/7/2005 3:58 PM Page 67

Cleverscope CS328
PC oscilloscope and logic analyzer

Cleverscope CS328 is a new USB- connected PC


based mixed signal oscilloscope which brings benefits
to the user that are unavailable from traditional
stand-alone oscilloscopes and most scope-
adapters. This innovative approach delivers an
unbeatable combination of affordability, ease of use • Scaling and offsetting to view 50mV full scale offset to any value between
–8 and +8 V.
and documentation of test results with the simple • Gain automatically set from 20mV to 800V full scale.
• Offset automatically set from 0 to ±4 or 40V in 10/100 mV increments
"Copy and Paste" simplicity. Display analog, real-time (e.g. 20 mV superimposed on 3V DC).
math-modified, and digital signals together! • Analog triggering to 1% of display ht, with LP, HP or noise filter.
• Ext. trigger, adjustable from 0 to ±20V in 40 mV increments.
• Simultaneous 8 x digital inputs sampling at 100 MSa/s (threshold 0 to 8 V;
10 mV increments)
• 2 x 10-bit, self-calibrating A/D channels - • Hardware trigger on rising or falling edge on any input signal, digital input
100 MSa/s simultaneously! combination and a min or max duration.
• A rear panel I/O connector with a 100 Mbit/s bi-directional LVDS/RS422
• 8 digital inputs - 100 MSa/s simultaneously! link, and three RS422 outputs defaulting to sampling started, trigger received
• Huge 4M Samples storage per channel – drill and sampling stopped.
• Each channel (two analog, trigger and 8 digital) includes 4M samples of
deep! storage, providing up to 40 ms of simultaneous storage for all channels, with
• Simple "Copy and Paste" into other applications 10 ns resolution.
• The sample storage may be allocated as between 2 to 1000 frames
such as Word, Excel varying in size from 2M to 4000 samples. These may be used as a
history store for reviewing previously captured signals, or to capture
• Highly flexible mixed-signal triggering, scope up to 1000 trigger events with a minimal 2 µs inter-frame delay, while
and spectrum display. maintaining time relative to the first trigger for all succeeding frames.
• 25 MHz 5th order Anti-alias filter for improved Spectrum Analysis performance.
• View small ac signals on large ac or dc offset • Triggered LED and Power LED on the front panel.
• Built-in math capability - multiple display: • Input power range from 6 ~ 12V, 5W provided by a universal mains adaptor.
• Low jitter (1 ps rms) sampling clock for 70 dB spurious free dynamic range.
A-B, invert, differential, integrals, etc. • Self calibration to ensure DC performance specifications is met.
• Includes all probes cables power supply, s/w, • An optional plug-in signal generator, 0-10MHz, sine, square or triangle; sweep.

manuals.
Cleverscope software resources include:
• Optional Signal/sweep generator CS700 • Separate, freely moveable and resizable windows to display the signal,
Sine, Square: 0.2Hz–10MHz a zoomed signal view, and the frequency spectrum of the signal, and
Triangle: 0.2Hz – 1MHz - control panel.
• Spectrum analysis with conditioning windows - log or linear.
Frequency Shift, Phase Shift - great for filter, • Signal averaging (exponential, block and peak hold) and LPF.
amplifier testing! +$199.00 • Math calc including + - / * sqrt, integral, differential, and filtering.
• Signal msmt, including Pk-Pk, RMS, DC, pulse width, T and F.
• Copy and Paste graphic or data to other applications.
“CS328 is absolutely wonderful, I’m thrilled to
• Save and Open from disk.
bits with it. The software is light-years in front • User defined units, signal names and scaling (offset and gain).
of that (other PC scope). The Math function • Text annotation of each graph.
• Web server for remote viewing of LAN connected unit.
makes me almost believe I’m using a LxCxxx.”
Roger – EFE Ltd

CS328 - usually $1045 - only $999!


Austronics AEEMA
'2005 Best New Product' award!

Saelig Company, Inc. 1160-D2 Pittsford-Victor Rd., Pittsford, NY 14534


Tel: 585-385-1750 Fax: 585-385-1768 Email: info@saelig.com
See our latest products at: www.saelig.com
Labib4.qxd 12/8/2005 6:40 PM Page 68

DATA
In this article, I present
the logic circuit design of
the building blocks of the
SCAM device using
ispLEVER professional

Processing design tools.

Using

SCAM(4)
IMPLEMENTING SCAM:
Building the SCAM Basic Blocks

SCAM HIERARCHICAL controller (SCAMC), the data repository (SCAMD), and the
DESIGN REALIZATION response block (SCAMR), as described in the first article of
this series.
The SCAM is composed of three main blocks: the In order to realize my design, I used ispLEVER
Schematic Editor to prepare the logic circuit schematics
for the building blocks of the SCAM. The process
started with designing the basic cell types representing
the bottom of the hierarchy. Figure 1 illustrates
those hierarchy cells denoted by "cam_cell,"
"delimiter_cell," "tag_cell," and "control_cell." A symbol
(representing a virtual logic device) was created for each
cell type using the ispLEVER Project Navigator process,
"Generate Symbolic Symbol" (see the right pane in
Figure 1).
The next level of the hierarchy is a compilation of
those cell types into blocks of cells. I used those symbols
to create a 10-bit SCAMC block named "complete_
control," representing the SCAMC. I also produced
"cam_element," representing a complete data word
composed of a
■ FIGURE 1. The SCAM Building SCAMD and
Blocks in ispLEVER Project Navigator. SCAMR string of

B y G a m a l A l i L a b i b
68 January 2006
Labib4.qxd 12/8/2005 6:41 PM Page 69

■ Table 1. Input Signals Signal Description External Internal


Legend for the SCAM Chip
Building Blocks. Forward input from the data bus to Comparand cells
SC of this bit slice √ --
eight bits of data, one clk Master SCAM module clock √ --
Structure cell, one
Forward input from the data bus to Mask cells of this
Element cell, and one SM bit slice √ --
Tag cell.
In order to build a D, Di Input from computer data bus to SCAMC module √ --
SCAM device, I used
the ABEL language to B Input from computer data bus to control cell symbol √ --
assemble SCAM blocks CMP Compare Command signal √ --
with multiple data words to
form the final device. The clr Clear Command signal to all cells in the SCAMC √ --
next and final article will Aggregated state of this bit slice from previous SCAM
discuss the ABEL module READi module or from previous words in current SCAM √ √
module
in detail.
Word Select signal from Tag cell to each delimiter and
WS -- √
SCHEMATIC Data cell of this word
MODULES Accumulated state output of Tag cells of previous words
RESULTi propagated to next word √ √
Included here are four Inverted state of Element delimiter cell input to Tag cell
schematics of the logic
QEi of current word -- √
circuits of the control cell, ST Forward input from the data bus to Tag cells √ --
the element delimiter cell,
the structure and data cells, Realizes forward navigation in conjunction with LNW.
Sets Tag cell of next word to 1 if current Tag is set to 1
and the tag cell. Tables 1 FSETi [operating in Parallel Mode (MODE=1) or current Tag is √ √
and 2 describe the input the top most set cell]
and output signals of each
Realizes backward navigation in conjunction with LPW.
schematic. Sets Tag cell of previous word to 1 if current Tag is set to
Figure 2 shows the BSETi 1 [operating in Parallel Mode (MODE=1) or current Tag is √ √
control cell logic. It is the top most set cell]
composed of one flip-flop LNE Link activity to next element √ --
for a Mask bit (denoted by
I12) and another for a State of forward navigation line of current word linked
to next word and is used to link activity to the next
Comparand bit (denoted by QFi element delimiter word. It is disabled if current word √ √
I13). Data input to either is an element delimiter word
flip-flop is controlled by
State of backward navigation line of current word linked
"SM," "SC" signals. Masked to previous word and is used to link activity to the
Comparand data appears as QBi current element delimiter word. It is disabled if current √ √
signal "C" and negated as word is an element delimiter word
"Cn." Those signals are LPE Link activity to previous element √ --
passed on to all data bits in
the SCAMD block for com- SET Set all Tag bits to 1 √ --
parison with data stored in 1=Operate on all SCAM words in parallel
the block. The Mask, MODE 0=Operate on currently selected word only √ --
Comparand, and data prop- 1=No matching found in previous words
agated from other SCAM NSi 0=At least one matching word found in previous words √ √
devices ("READi" signal) are
passed on, as well as LNW Link activity to next word √ --
"READo." The symbol for LPW Link activity to previous word √ --
the SCAMC block cell is
Accumulated Mismatch results of previous bits to this
shown in Figure 3, while the Mismatchi bit in current word -- √
complete block symbol is
shown in Figure 4. Masked Comparand cell state outputs to this bit slice
of the SCAMD
Figure 5 shows the C, Cn [0,0] No comparison in this bit slice is done -- √
logic circuit of an Element [0,1] Compare cells in this bit slice with 1
delimiter cell. It is [1,0] Compare cells in this bit slice with 0
January 2006 69
Labib4.qxd 12/8/2005 6:43 PM Page 70

Signal Description External Internal ■ Table 2. Output Signals


Legend for the SCAM Chip
1=No matching word found in previous words' Tag cells Building Blocks.
NSo 0=At least one matching word found in previous words' √ √
Tag cells
comprised of a single flip-
State of backward navigation line of current word linked flop and a few gates for
to previous word, and is used to link activity
QBo to the current element delimiter word. It is disabled √ √ matching its state with the
if current word is an element delimiter word masked Comparand. The
Word Select signal out of the Tag cell to each result of the matching is
WS delimiter and Data cell of this word -- √ passed on via "Mismatcho"
State of forward navigation line of current word linked to the next cell in the data
to next word, and is used to link activity to word. The negated state of
QFo the next element delimiter word. It is disabled if √ √ this cell, "QEn," is passed
current word is an element delimiter word
on to the Tag cell of
Realizes forward navigation in conjunction with LNW. the same word to control
Sets Tag cell of next word to 1 if current Tag is set to 1
FSETo [operating in Parallel Mode (MODE=1) or current Tag √ √ information propagating
is the top most set cell] from the next word or from
Realizes backward navigation in conjunction with LPW.
the previous word through
Sets Tag cell of previous word to 1 if current Tag is set to an Element delimiter word.
BSETo 1 [operating in Parallel Mode (MODE=1) or current Tag √ √ The symbol for the Element
is the top most set cell] delimiter cell is shown in
Masked Comparand cell state outputs of this bit slice of Figure 6. Figure 7 shows the
the SCAMC logic circuit of Structure and
C, Cn [0,0] No comparison in this bit slice is done -- √ Data cells. Its design is simi-
[0,1] Compare cells in this bit slice with 1
[1,0] Compare cells in this bit slice with 0 lar to that of the Element
Aggregated state of this bit slice from SCAMC to the delimiter cell and adds
READo first word in SCAMD or to next SCAM module or to √ √ some logic for passing on
next words in current SCAM module the accumulated matching
Accumulated Mismatch results out of this bit in result "Mismatchi" of previ-
Mismatcho current word -- √
ous cells in the data word to
QEn Inverted state of Element delimiter cell of current word -- √ the following cell (signal
■ FIGURE 2. Control Cell
schematic generated
by ispLEVER Schematic
Editor.
■ FIGURE 3. Control
Cell symbol generated
by ispLEVER Project
Navigator.

■ FIGURE 4. 10-Bit
SCAM Controller symbol
generated by ispLEVER
Project Navigator.
70 January 2006
Labib4.qxd 12/8/2005 6:44 PM Page 71

■ FIGURE 5. Element
Delimiter Cell schemat-
ic generated by
ispLEVER Schematic
Editor.

"Mismatcho"). The
symbol for Structure
and Data cells is
shown in Figure 8.
Figure 9 shows
the logic circuit of
the Tag cells. This is
the most complicat-
ed cell type in
the SCAM, since it
controls navigation
within the SCAM
and it collects the
final matching result
of the data word and
passes it on to the
next and previous
words' Tags. Input
signal "QEi" repre-
sents the "QEn" sig-
nal of the Element delimiter cell that shown in Figure 10. (see Figure 12) is be our last step in
controls navigation in the SCAM. Finally, we assemble the previ- building schematics hierarchy. Next
"FSETo, QFo" and "BSETo, QBo" rep- ous data word cells into a data month, I will demonstrate the fruit-
resent the propagated accumulated word, as depicted in Figure 11. It is fulness of this symbol in replicating
state of the previous and the next Tag clear at this stage that using virtual data words to the required SCAM
cells ("QBi," "QFi") to the next and the symbols for cell types makes it capacity. NV
previous Tags respectively, upon acti- easier to concatenate 11 cells alto-
vating the navigation signals "LNW" gether in a single schematic sheet. ■ FIGURE 7. Structure and Data Cell
and "LPW." The symbol for Tag cells is Creating a symbol for the data word schematic generated by ispLEVER
Schematic Editor.

■ FIGURE 6. Element
Delimiter Cell symbol
generated by ispLEVER
Project Navigator.

■ FIGURE 8. Structure
and Data Cell symbol
generated by ispLEVER
Project Navigator.

January 2006 71
Labib4.qxd 12/8/2005 6:45 PM Page 72

■ FIGURE 10. Tag Cell symbol


generated by ispLEVER Project
Navigator.

■ FIGURE 12. SCAM Data Word


Symbol generated by ispLEVER
Project Navigator (top).
■ FIGURE 9. Tag Cell
schematic generated by
ispLEVER Schematic
Editor.

■ FIGURE 11.SCAM data word design in ispLEVER Schematic Editor (left).

72 January 2006
Full Page.qxd 12/7/2005 4:01 PM Page 73

CALL OR WRITE
CALL TOLL-FREE
TO ORDER C&S SALES FOR OUR
FREE
(800) 292-7711 www.cs-sales.com CATALOG!
Elenco® Digital Multimeters Elenco® Snap Circuits
Model M-1750 Model LCM-1950 Model M-2795 Elenco’s new Snap Circuits make learning electronics fun and easy. Just follow
the colorful pictures in our manual and build exciting projects, such as: FM radios,
$
24.95 $
59.95
$
44.
• AC/DC voltage
95
digital voice recorders, AM radios, burglar alarms, doorbells, and much more! You
• Current
can even play electronic games with your friends. All parts are mounted on plastic
11 Functions:
• Large 1” 3 3/4 Digit
LCD
(10A max.) modules and snap together with ease. Enjoy hours of educational fun while
• Beeper
• Freq. to 20MHz • Autoranging Freq. • Frequency to learning about electronics. No tools required. Uses “AA” batteries.
• Cap. to 200µF to 4MHz
15MHz
• AC/DC Voltage • Cap. to 400µF
• Inductance to 40H
• Capacitance to
200µF
6 versions available. Great
• AC/DC Current
• Beeper • Res. to 4,000MΩ • Transistor test Build up to 750 projects! Gift
• Diode Test • Logic Test • Diode test
• Transistor Test • Diode & Transistor • Logic test As low as $29.95 Idea!
• Meets UL-1244 Test • Data hold
safety specs. • Audible Continuity
Test
• Free
holster
Quantity
Discounts
Elenco® Handheld Frequency Counters Available

1MHz - 3GHz F-2850 10Hz - 3GHz


F-2800 • 10 digit LCD display • 10 digit display
• 16-segment RSSI bargraph • 16-segment RSSI bargraph
• Resolution to 1Hz • Resolution to 0.1Hz Create
• Hi-speed (300MHz) direct • Four selectable gate speeds Your Own
count
• Hi-speed (300MHz) direct count Exciting Experiments
• Includes NiCd charger and
• Includes NiCd charger and
antenna
antenna
$
99 $
185 4 Educational Models Available
Elenco® Quad Power Supply Elenco® RF Tracer 1MHz - 3GHz SC-750 - Extreme Version, contains over 80 parts to build over 750 experiments. Includes everything from
Model F-2700 SC-500 plus experiments in solar, electromagnetism, vibration switches, and 70 computer interfaced
Model XP-581
4 Fully Regulated Power Supplies in 1 Unit
NEW


195
$
Pocket-size, easy-to-use
experiments. $119.95
SC-500 - Pro Version, contains over 75 parts including voice recording IC, FM radio module, analog meter,
• Speaker/earphone/vibrate alerts transformer, relay, and 7-segment LED display. Build over 500 experiments.
• 5-segment RSSI bargraph $89.95
• Low power consumption SC-300 -Deluxe Version, contains over 60 parts. Build over 300 experiments. $59.95
$
75 • Includes NiCd, charger,
and antenna
• Tells you if your room is bugged.
SC-100 - Snap Circuits, Jr., contains over 30 parts. Build over 100 experiments. $29.95

4 DC Voltages: 3 fixed; +5V @ 3A, +12V @ 1A, Elenco® 5MHz Sweep Function iBOTZ Hydrazoid Kit
1 variable; 2.5 - 20V @ 2A • Fully regulated & short
protected • Voltage & current meters • All metal case
Generator w/ built-in 60MHz Model MR-1004 Elenco® Educational Kits
Frequency Counter
Model GF-8056 Walks and Model RCC-7K Model AM-780K Model M-1006K
Elenco® Oscilloscopes makes sounds Radio Control Car Kit Two IC Radio Kit DMM Kit
Probes included • 2 year warranty

S1330 30MHz Delayed Sweep $459


$
27.95 • 18 Ranges
• 3 1/2 Digit
LCD
• Transistor
S1340 40MHz Dual Trace $469
225
$ Test

*Special
329
* S1345 40MHz Delayed Sweep $549
$749
Generates square, triangle, and sine waveforms,
and TTL, CMOS pulse.
$
29. 95 • 7 Functions AK-870
(non-soldering) $
9.95
AM/FM-108K
AM/FM version
• Diode Test

$ S1360 60MHz Delayed Sweep


GF-8046 - 3MHz w/ counter $199
• Transmitter
Included $27.95 $29.95
$
18.95
S-1325
30MHz S1390 100MHz Delayed Sweep $999 GF-8025 - without counter $99.95 non-soldering Visit our website www.cs-sales.com to see our assortment.

Elenco 4-Functions-in-1 Instrument


®
Deluxe Soldering Irons Electronic Science Lab
Model MX-9300B Weller Low Cost
® Maxitronix 500-in-1 Electronic Project Lab
$
495 Soldering Iron
Model WLC100
Model MX-909
Everything you need to build 500 exciting projects!
• Learn the basics of electronics. 500
different electronic experiments, special
lighting effects, radio transmitter and
Ideal for labs, production lines, R&D
and hobbyists!
$
39.95 receivers, sound effects, cool games and
MORE!
• Includes built-in breadboard and an LCD.
Sweep Function Generator Digital Multimeter • Explore amplifiers, analog and digital
circuits plus how to read schematic
• 0.2Hz to 2MHz • 400mV - 400V AC/DC diagrams.
• Sine, square, triangle, skewed • 20A max. AC/DC current • Includes 11 parts.
sine, ramp, pulse, TTL level square • Resistance to 40MΩ • Lab-style manual included.
• VCF voltage 0 to 10VDC • Requires 6 “AA” batteries.
Frequency Counter • Variable power control produces 5-40
Digital Triple Power Supply • 1Hz to 2.7GHz watts. MX-908 - 300-in-1 Lab $69.95
• Output #1: 0-30VDC, up to 2A • 7-digit display MX-907 - 200-in-1 Lab $49.95
• Output #2: 5VDC, up to 2A • Ideal for hobbyists, DIYers and students.
• Selectable time base
• Output #3: 15VDC, up to 1A • Complete with 40W iron.
MX-906 - 130-in-1 Lab
EP-50 - 50-in-1 Lab
$39.95
$18.95
$
169
Guaranteed Lowest Prices C&S SALES, INC. 15 DAY MONEY BACK GUARANTEE
UPS SHIPPING: 48 STATES 7% (Minimum $7.00)
150 CARPENTER AVENUE • WHEELING, IL 60090 2 YEAR FACTORY
OTHERS CALL FOR DETAILS
IL Residents add 8.5% Sales Tax (847) 541-0710 FAX: (847) 541-9904 WARRANTY
SEE US ON THE WEB www.cs-sales.com PRICES SUBJECT TO CHANGE WITHOUT NOTICE

January 2006 73
Hellebuyck.qxd 12/8/2005 6:27 PM Page 74

⇒ A Primer for Beginners


by Chuck Hellebuyck

⇒ BACKGROUND M icrochip PICs have


invaded most of the
⇐ FIGURE 1.
16F876A Microchip
electronic design going on PIC Microcontroller.
I’ve written several articles in the world. The best part
about PICs and even published is, as hobbyists and part time profes- electronic components. They created
my book Programming PIC sionals (working from your basement a family of eight-bit microcontrollers
Microcontrollers With PicBasic. lab), we have access to all the tools we and called them PICs (some say short
Feedback has been tremendous. need to create the designs our creative for Peripheral Interface Controller).
Many readers have thanked me minds come up with. These PICs could be programmed to
for helping them get started pro- Through a series of articles, I perform an infinite amount of
gramming PICs with PicBasic. I hope to pass on Microchip PIC design functions but you might be asking,
also get many readers that were notes that will help you learn “What is a microcontroller?”
old TTL hardware guys left electronic design. By focusing on Everybody reading this has proba-
behind by the micro-age and my Microchip PICs for the hardware core bly used a computer run by a micro-
book/articles helped them get and Basic Compilers for the software processor. The PC’s central microproces-
back in the game. core with some assembly inserted sor has several support items that allow
here and there, I hope to get more it to function. First is the memory, where
A third category of feedback people involved and having fun. programs are stored, also known as a
involves readers that have little In this article though, I’m going to hard-drive or ROM. Second is the RAM,
or no electronics background and focus on the beginner and start off by or temporary memory, used by programs
with all the different program- showing how to put together your running in the PC’s microprocessor. And
mers, compilers, microcontroller own complete Microchip PIC develop- third, the interface to the outside world,
choices, software options, etc., ment set-up for under $50. Let’s first through input and output ports also
they are confused and afraid they cover the basics. known as the BIOS (Basic Input Output
would waste a bunch of money System) or I/O.
and still not get what they want. WHAT IS A MICROCHIP PIC Through the I/O, the PC sends infor-
I’m here to tell you it isn’t that AND HOW DOES IT WORK? mation to be displayed on the screen
difficult and it doesn’t have to you read, or the printer you might send
cost that much to get started. Microchip is a company that man- documents to. The I/O also reads the
ufactures microcontrollers and other keyboard and mouse position. Basically,
74 January 2006
Hellebuyck.qxd 12/8/2005 6:27 PM Page 75

everything the PC does with a useful properly, you can make the PIC’s I/O ⇒ FIGURE 2.
PicBasic Pro
purpose to humans runs through the turn on and off to control electrical cir- Basic Compiler.
I/O. What if you could shrink all those cuitry connected to the PIC’s I/O pins.
components: microprocessor, ROM, That circuitry could be a simple relay We know what
RAM, and I/O, into a single integrated that turns a light on during the night it takes to
circuit? It can be done and it’s called a and off during the day. It could be more develop the
microcontroller (Figure 1). complex and control the motors of a software. But
There are various companies that robot while reading an obstacle sensor how do we get
make these small microcontrollers to make the robot drive around a maze. the code (1s
and each has a unique personality. All you need to do is write this series of and 0s) into the
Microchip PICs are, in my opinion, the binary code, which is the software. PIC? We do that
best in the business but don’t just with a PIC programmer.
take my word for it. Microchip has BASIC COMPILER A PIC programmer is a custom
become the number 1 seller of designed module that generates the
eight-bit microcontrollers in the Arranging 1s and 0s properly was electrical signals the PIC’s ROM mem-
world. Microchip did this by offering a made easier by the development of ory requires. The programmer stores
whole family of PICs with various I/O assembly language. Microchip devel- these signals, in proper order, in the
features that industry wanted. oped an assembly language for the PIC Microchip PIC. The PIC programmer
The best part is you can use that is a series of crude acronyms, each requires software for the PC that will
Microchip PICs the same way industry with a specific task. The acronyms are take the compiled/assembled file of
does without laying out a load of converted into the 1s and 0s by means 1s and 0s and send it out the PC’s
money. All you need is software for of a PC software program called an serial port to the PIC programmer.
the PC to write the binary code and a assembler. Even though this is easier Figure 3 shows my version of an
means to burn that code into the PIC. than coding directly in 1s and 0s, it’s extremely low cost serial port pow-
A popular version of the PICs is the still very cryptic. To resolve that ered PIC programmer based on the
16F876A shown in Figure 1. These can problem, several companies developed JDM Programmer hardware design at
be purchased from various sources for higher-level languages that use www.jdm.homepage.dk/newpics.htm
under $10. easy-to-understand words. Each of the You don’t have to rely on my pro-
words represent a function and are grammer, either. There are other JDM
HOW DOES A PIC WORK? converted into assembly language. style programmers available from var-
When these higher-level programs ious sources. Do a Google search and
A microcontroller or PIC requires a are converted into assembly language, you’ll find several. This programmer is
series of coded electrical signals in its they are said to be “compiled.” There driven with the “free” software devel-
ROM to tell it what to do. This is known are several different compilers out oped by Bonny Gijzen that you can
as software or code. When a microcon- there with names such as “C” language download at www.ic-prog.com
troller is said to be programmed or have or Java language and my favorite, Basic. Because this programmer is seri-
code burned into it, it is getting these The PicBasic Pro compiler (Figure al port powered, it doesn’t work with
coded electrical signals stored into its 2) is very easy to use and a great most laptop computers because the
ROM. To run the program, the microcon- language for someone just getting serial port voltage levels are lower on
troller then needs a way to select each started. It uses the same format as the many laptops. It also won’t work with
command from ROM, one at a time, popular BASIC Stamp modules but USB to RS232 adapters. Despite these
which is known as running a program. produces a binary file so you can limitations and the free soft-
The microcontroller has a clock program blank, lower cost PICs. ware, you would be amazed
oscillator, controlled by an external The PicBasic Pro compiler has at how reliable this JDM
crystal or resonator, which sends a con- advanced over the years to become style programmer is.
tinuous pulse to the microcontroller’s just as powerful as any other Bonny Gijzen has kept
central circuitry when it is powered up. “professional” compiler. You can the software updated to
It’s like the heart of the microcontroller download a free sample version work with the latest PICs. I
sending clock signals that control all of the PicBasic Pro compiler, have used it for over a year and
functions, similar to the way our heart which is more powerful than never once had a problem
pulses our blood through our body you might think. programming a PIC from my
making all our functions work. On each desktop computer. This is a great
pulse of the clock, the PIC retrieves a PIC PIC programmer design to start with.
new command code from ROM to exe- PROGRAMMER In fact, I’m turning my design into a kit
cute on the PIC I/O. These coded elec- form so the hobbyist
trical signals are in the format of 1s (five Okay, we’ve now ⇐ FIGURE 3. can solder it together
volts) and 0s (ground) or binary code. covered what a Serial Port as a first project and
Powered PIC
By arranging these binary codes Microchip PIC is. Programmers. then use it for all future
January 2006 75
Hellebuyck.qxd 12/8/2005 6:28 PM Page 76

⇐ FIGURE 4. 31 COMMANDS! WHAT


Hardware Schematic. CAN I DO WITH THAT?
are all supported. You may be wondering, what
This gives you plenty good is all this if you only get 31 com-
of PICs to work with. mands to work with? The PicBasic Pro
The serial port compiler is so efficient to write code
PIC programmer with, you really can do many simple
shown in Figure 3 can home projects with a single PIC chip
be obtained from my and less than 31 lines of code.
website for $24.95. For example, I’ll build a simple LCD
The kit form will be controller out of a 16F876A PIC chip. It
cheaper and hopeful- will simply display the message “Hello
ly available by the World” but can be expanded in the
time you read this at future and still use the sample version
elproducts.com of the PicBasic Pro compiler because I’ll
PIC projects. You can later upgrade to I also recommend the Microcode do this with far less than 31 commands.
various professional programmers that Studio IDE software from To do this, first download all the
will work on a laptop or USB port. www.mecanique.co.uk/code-studio free software and install the Microcode
It’s also a free download and was Studio software and link it to the
SO WHAT DOES ALL designed to work with the PicBasic PicBasic Pro compiler. You’ll have to
THIS COST? Pro compiler. It makes writing follow the MCStudio instructions, but
PicBasic code so much easier. You in most cases, it will find the PicBasic
This is where you might be also will need a few minor Pro compiler automatically when you
shocked. A 16F876A Microchip PIC components to make the PIC run, install it. After these steps, you are
will cost around $10. The PicBasic Pro such as the clock resonator ready to program your first PIC.
compiler shown in Figure 2 comes in mentioned earlier and you will need The project schematic is shown in
a limited sample version that can be some type of 5V power source along Figure 4. All the connections are
downloaded for free from www. with a few resistors. This can all be straightforward. The PIC 16F876A has a
melabs.com It is limited to 31 com- built on a standard breadboard. 4 MHz resonator connected to the OSC1
mand lines, but that is more than Since I stated all this could be and OSC2 pins. Two 20 pF capacitors
enough to get started. It is also limit- done for less than $50 and we’ve are connected to the OSC1 and OSC2
ed to certain Microchip PICs: designated $10 for the PIC and $25 for pins to ground. You can get a 4 MHz res-
16F627(A), 16F628(A), 16F84(A), the programmer, you have $15 for onator with the capacitors built in from
16F870, 16F871, 16F872, 16F873(A), the breadboard, wiring, and other companies like Digi-Key. The PIC also
16F874(A), 16F876(A), and 16F877(A) components. Not bad right? needs a 1K resistor connected from 5V
to the MCLR pin. The MCLR pin is the
reset pin so you want this tied high.
Pulling this low will reset the PIC, so
adding a momentary push button from
MCLR to ground is an optional.
The LCD is a parallel version with
a Hitachi 44870 driver chip inside. This
is a common LCD available all over the
place for under $15 and usually less
than $10. Connect the LCD per the
schematic including the 1K pull-up
resistors to 5V. These help guarantee a
proper voltage level between the PIC
and the LCD. After this, the project is
ready to be programmed. The hard-
ware is shown assembled in Figure 7.

SOFTWARE
The software is quite easy to
⇐ FIGURE 5. Microcode Studio
Window with Software.
76 January 2006
Hellebuyck.qxd 12/8/2005 6:29 PM Page 77

understand. Just type the code


Listing 1:
shown in the code listing into
DEFINE LCD_DREG PORTB ‘Define PIC port used for LCD Data lines
the MicroCode Studio editor DEFINE LCD_DBIT 4 ‘Define first pin of portb connected to LCD DB4
window as shown in Figure 5 DEFINE LCD_RSREG PORTB ‘Define PIC port used for RS line of LCD
and save it as LCD.bas. (The DEFINE LCD_RSBIT 3
DEFINE LCD_EREG
‘Define Portb pin used for RS connection
PORTB ‘Define PIC prot used for E line of LCD
LCD.bas code listing is available DEFINE LCD_EBIT 0 ‘Define PortB pin used for E connection
on the Nuts & Volts website; DEFINE LCD_BITS 4 ‘Define the 4 bit communication mode to LCD
DEFINE LCD_LINES 2 ‘Define using a 2 line LCD
www.nutsvolts.com) After DEFINE LCD_COMMANDUS 2000 ‘Define delay time between sending LCD commands
saving it, verify that the little DEFINE LCD_DATAUS 50 ‘Define delay time between data sent.
window in the MCStudio screen
shows the 16F876A PIC. If not, select Listing 2:
it from the list. Now click on the com- Pause 250 ‘ Delay for LCD to power up
pile icon or just press F9. The program
will be compiled and assembled into Start:
lcdout $fe, 1 ‘ Clear LCD
a file named LCD.hex. Find that file lcdout $fe, 2 ‘ Position cursor at home
on your hard drive because we need it
for the next step. ‘***** Send “Hello World” to first line of LCD ******

HOW IT WORKS lcdout “Hello World” ‘ Send “Hello World” to the LCD

The beginning of the code listing jumps back to the “start” label using mentioned earlier, using the default
shows a list of DEFINEs. These set up the “Goto Start” command line and connections gives us more code
the LCD connections and establish the repeats the process. space. I’ll probably use the defaults in
communication. There are default val- Notice we did all that in three future projects for that reason.
ues for these which define the connec- main LCDOUT commands, but the
tions to the LCD using PortA. Using DEFINES at the top along with the PROGRAMMING THE PIC
the default connections would reduce “Start” label, PAUSEs, and GOTO
the lines of code counted in the 31 commands all count toward the 31 Now that we have written the
limit because we could skip these def- limit. As written, this program uses 17 program and successfully compiled
initions. I decided to use them for now, command lines leaving 14 for and assembled it resulting in a binary
but in future LCD projects, I’ll rewire it additional commands or labels. LCD.hex file, the next step is to start
to save code space (see Listing 1). Variables do not count towards the up the PIC programmer software as
The main loop of code is below the 31 so there are more things we can seen in Figure 6. Make sure the soft-
“Main Code” title block (see Listing 2). do with 31 total commands. As ware is set up to the proper COM port
We have to slow down the PIC by
pausing 250 milliseconds. This allows
the LCD to get ready to receive
command data. Some LCDs need
this, others don’t. After the pause, the
LCDOUT command sends command
control data to the LCD. Sending the
“$FE” first tells the LCD to accept the
next value as a command code. The
“1” is the command code to clear the
LCD screen. The “2” is the command
code to position the LCD prompt at
the first line, first character position.
This sets up the LCD to receive the
data we want to display.
The following LCDOUT command
sends the letters between quotes
(Hello World) as ASCII characters to
the LCD. The LCD will immediately
display that data as “Hello World”
starting at the first character block.
The program then pauses for one
second (PAUSE 1000) and finally
⇒ FIGURE 6. PIC Programmer Software.
January 2006 77
Hellebuyck.qxd 12/8/2005 6:30 PM Page 78

⇐ FIGURE 7. Hardware tools. From here, you can add a


Circuit With Programmed PIC. sensor to read temperature or light
and display the value on the LCD. In
Click yes and the PIC fact, I’ll do that in the next project
programmer LED will light article to demonstrate how to use
indicating your PIC is Analog-to-Digital converters that are
being programmed. The built into the PIC16F876A.
software will display a
message when the PIC is CONCLUSION
successfully programmed
with your code. I hope I helped you learn to pro-
and you’ve chosen the JDM program- gram PICs without fear of spending
mer per the ICPROG directions. RUN YOUR PROGRAM too much time or money. In future
Install a blank PIC16F876A in the 28 articles, I’ll show how to interface the
pin socket and select that PIC in the After programming the PIC, PIC to the outside world using these
software’s PIC selection window. Also remove it from the programmer and same tools and along the way, I’ll
make sure the oscillator window insert it into the breadboard and introduce more. The world of PIC pro-
shows XT mode and the LVP box is power up the circuit. The set-up I gramming is so vast with new ideas
not selected in the fuses area. You’re used is shown in Figure 7. When arriving every day from some creative
ready to load the file. powered up, the LCD should show mind somewhere in the world. This
Load the LCD.hex file from where “Hello World.” just means I can probably write about
it was saved (usually in the PicBasic this stuff forever. If you have a project
Pro directory). Press the “Program All” NEXT STEPS idea you would like me to try and
icon (the one with the lightning bolt) make with the PIC, shoot me an email
and the programming process will You have now learned how easy it at chuck@elproducts.com Maybe I’ll
begin. ICPROG will ask you if you are is to program PICs in Basic and used make it the topic of one of my future
sure you want to program this PIC. some very low cost and free software articles. NV

78 January 2006
Full Page.qxd 12/7/2005 4:15 PM Page 79

Logon to our website for secure shopping cart, powerful


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

Silicon Valley’s Electronics Marketplace


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

Electro-Hobbyist Alert -- HSC is your source! Outlets by the foot!


Even before there was a place called “Silicon Valley”, HSC was the favorite stop of hardware hackers,
techno-tinkerers, entrepreneurs and engineers on a budget! We have been buying and selling the Valley’s
excess inventory for 40 years now, and our collection is second-to-none! We are also factory-authorized
distributors for many fine lines of parts, tools, equipment and accessories, so we feel we should be your first
stop when shopping for electronic basics. Give our ever-expanding website a try and see what we mean!

Trimble GPS Antenna -- Mag Mount


Very strong magnets!
HSC#80732 $3.95 ♦ TrippLite PS6010-20T Outlet strip
Peltier Cooling Module ♦ 5 ft. long, extruded aluminum housing
♦ 10 Standard AC receptacles (US)
HSC#CAP052 $14.95 ♦ 15 ft. 12ga cord, 20A twist-lock plug
PCI Internet Phone card Iomega Ditto 2GB PIO backup ♦ Perfect for test benches, rack units!
HSC#80790 $9.95 ♦ Regular factory price over $90.00!
HSC#80789 $24.95 ♦ We sell reg. AC plugs, 8515PB, $2.95
♦ New, factory boxed, with brackets

CMC MDCX16012 Servo Amplifier CompuMotor OEM010 HSC#20794 $39.95


Stepper Motor Indexer/Driver
HSC#20850 $75.00 (pdf on HSC Website) Special! 3/$99.00!
Sharp Color 10.4” LCD Panel
HSC#20851 $29.50
Monochrome 10.4” LCD panel
HSC#20784 $14.95
PCMCIA Goodies!
HSC#20792 $9.95
DVD/MPEG-2 PC Card!
Clamp-on Ferrite filter ♦ Margi Systems DVD to Go
♦ High Quality 720 x 480 Resolution
HSC#20718 $1.75 ♦ Full-screen 30 fps on older laptops!
♦ PCMCIA Type II Zoomed Video card
Solenoid 24VDC Weller WLC100 Solder Station ♦ Win 95/98 ready (not reliable in XP)
40 Watts, Reg. $49.00 ♦ NTSC & PAL Compatible
HSC#18911 $4.50 ♦ S-Video, composite video, stereo ports
HSC#WEL021 $39.00
Toroidal Transformer, 70VCT, 1A HSC#20829 $12.50
HSC#20691 $14.95
12VDC 1Amp AC adaptor

HSC#20677 $6.25 TIL-311 Hexadecimal LED Display


Stantron 6U rack cabinet HSC#20219 $5.95
HSC#80788 $49.95 20829 20830
Small DC Motor, 9 - 24VDC
Firewire PC Card!
HSC#19669 $1.95 ♦ Margi Systems 1394 to Go
♦ Dual IEEE 1394A Firewire ports
Phihong switching power supply ♦ Dual 400 Mbps Non-powered conns.
100-240 VAC in, 5VDC, 6A out -- small! Parallax Basic Stamp II
♦ Type II PCMCIA Cardbus format
HSC#20659 $17.50 Jennings Vacuum Capacitor, 12pF, 20KV Reg. $49.00
♦ Sony i-Link compliant
HSC#20134 $45.00 HSC#PAR012 $39.00 ♦ Compatible with most camcorders
♦ Plug & Play (drivers also on web)
♦ Free cable #20831 with purchase
12VDC Motor, worm gear reduction HSC#20830 $12.50
2 speeds, 40 & 106 RPM -- Hi torque!
Wireless Video System!
Ultrasonic Range Sensor HSC#20554 $19.95 3/4” 9V camera, transmitter, receiver Rack Mount Power!
Fixed distance (but hackable?) Swiss-made DC gearmotor HSC#80748 $49.95 ♦ Pulizzi Engineering 1559C
HSC#19833 $9.95 5VDC to 15VDC, approx. 60 RPM
♦ Rack-mount power distribution unit
HSC#20774 $12.50 ♦ Dual 20 A EMI/RFI Filtering
♦ 190 - 240 VAC input, 105 - 135 AC out
♦ Perfect for server rack units!
♦ Dual 20 A circuit breakers
Vexxta Stepper Motor, PK243-02AA
♦ 12 115 AC outlets, indicator lamp, fan
Hands-free Cellphone headset 2 phase, 1.8 degree/step Fisher speaker, 5 dia. (5 1/2” mtg. holes)
Sound Activated Neon ♦ 2U height, 3.5” x 17”, 65 lbs. weight
Fits Nokia, many others HSC#20000 $14.95 Light for your PC! Fabric suspension (no rotten foam!) ♦ Heavy 9’ cord with twist-lock plug
HSC#20248 $3.95 HSC#20441 $9.95 HSC#20790 $6.95
HSC#20828 $125.00

Since 1964!...
Silicon Valley’s BEST place to shop for Electronics!
Three Retail Stores to serve you! Order Toll-Free: 1-800-4-HALTED (442-5833)
Look for us on...
Main Office - Mail Orders... or...ONLINE AT: www.halted.com
3500 Ryder St., Santa Clara, CA 95051 Terms: Some quantities limited; all items are subject to prior sale. Minimum order: $10.00
Santa Clara 1-408-732-1573 seller ID: plus shipping. Orders under $30.00 subject to $3.00 handling fee, in addition to shipping.
Sacramento 1-916-338-2545 hscelectronicsupply All orders shipped by UPS Surface unless otherwise specified. $7.50 UPS charge added
for COD. Visit our website for detailed information on domestic and international shipping.
Rohnert Park 1-707-585-7344

January 2006 79
ClassifiedsJan06.qxd 12/8/2005 11:59 PM Page 80

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

F
E
N
E
C Gaithersburg, MD USA 20877 High Density PE Foam dielectric,
MicroStamp11 T
I
O
N
http://www.therfc.com/ stranded center cond. and Duobond
III Jacket $0.80/ft or $76.00/100ft
World’s Smallest 68HC11
Microcontroller Module! Complete Selection of MIL-Spec Coax, Also New: 9092, RG8X with Type II Jacket.
RF Connectors and Relays Intro Price ............$23.00/100ft
telemetry
z
microrobotics
z
UG-21B/U N Male for RG-213/214 .$5.00 Call for Specials of the Month
smart toys
z UG-21D/U N Male for RG-213/214 .$3.25 Full Line of Audio Connectors for Icom,
animatronics
z N Connectors for 9913/Flexi4XL/9096 Kenwood, and Yaesu
model railroading
z UG-21B/9913 .....$6.00 / Pins Only......$1.50 8 Pin Mike Female $2.50
home automation
z UG-21D/9913 ..$4.00 / Extra Gasket.$0.75 8 Pin Mike Male Panel $2.50
z tiny (1 by 1.4 in.), light-weight (0.5 oz.) Amphenol 83-1SP-1050 PL-259 $0.90 13 Pin DIN for Kenwood $2.75
zon-board 5V reg., crystal, & reset chip UG-176/U Reducer RG-59/8X, $0.25 8 Pin DIN for Icom $1.00
zchoice of 8K or 32K EEPROM or 5/$1.00 8 Pin DIN for Kenwood $1.50
z or 32K RAM + 32K EEPROM (64K version)
z SCI, SPI, Output Compare and Input UG-175/U Reducer RG-58/58A, $0.25 Prices Do Not Include Shipping
Capture channels, timer, pulse accumulator or 5/$1.00 Orders 800-783-2666
z all 14 I/O lines and 2 interrupt lines Silver Teflon PL-259/Gold Pin, $1.00 Info 301-840-5477
brought out to versatile 20-pin connector
zprogram in BASIC, assembler, or C or 10/$9.00 FAX 301-869-3680
zeasy code-loading with Docking Module
z Starter Packages:*
 z 8K EEPROM (#MS11SP8K).......$49


z 32K EEPROM (#MS11SP32K)...$77
z 32K EE/32K RAM (MS11SP64K)$90 SPEAKERS
* includes MicroStamp11, manual, PC soft-
ware (assemblers, SBASIC compiler,
MicroLoad utility, and sample programs),
serial cable, Docking Module, & accessories.

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

Get your next PIC


project up and running AMATEUR
FAST! using Smart RADIO
 

 Plug-In Modules from


S
Sppeeccttrro
oTTE
ECCH
     

 
 
  
  
 
H
 
   www.spectrotech.net

 
  

 
 
!"  
 
    #"    $% 
 

   
 & #  
 
 PIC Microcontroller
'()*) 
  CONSULTING
  
  
    



 +      
Books

 
 ',
 -(./! % 01 23
2  
 3
4 Titles
 #" 4
' 
 Beginner to Advanced
.11 5
/1
  
 Table Of Contents
.11 5
-13 Ordering Info
6.78 On Web Site


 

http://www.sq-1.com
     

(208) 664-4115
Hayden, ID USA

SECURITY

consumer
consumertrtrtronics
onics .net
onics.net
Hi-Tech Survival Offers!
Electronics, security, energy,
computers, Net, phones, medical,
legal, financial,weird. Cat.$1
80 January 2006
ClassifiedsJan06.qxd 12/8/2005 11:51 PM Page 81

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

COMPONENTS DESIGN/ENGINEERING SERVICES

FREE 120 Pg CATALOG

Electronic components, kits,


test equipment, tools, and sup-
plies for hams, hobbyists, and
businesses. Many hard-to-find
items like variable capacitors,
vernier dials, coil forms, magnet
wire, and toroids.
Ocean State Electronics
www.oselectronics.com

PUBLICATIONS

CNC Book
Easy CNC
G-code
Bit map draw programs
Bit map image converter
Bit map to G-code
Floating Point Coprocessor CAD - machine drawings
I2C to 400 kHz
SPI to 4 MHz
CAM - DXF to G-code
32-bit IEEE 754
32-bit integer http://www.cncintro.com
Pre-defined functions
User-defined functions
8-pin DIP or SMT
New! uM-FPU IDE
SQUARE 1
SQUARE
• Generates uM-FPU code from ELECTRONICS
traditional math expressions
• Built-in debug support
• Programs user-defined functions
www.micromegacorp.com
(208) 664-4115
Hayden, ID USA
www.servomagazine.com
MILITARY SURPLUS BUSINESS SERVICES
ELECTRONIC MILITARY SURPLUS 2000 WATT SOLA REGULATOR
Sola CVS 2000 Watt Constant Voltage
Radios - Test Equipment - Tubes - Antennas

Transformer provides a very well regu-


lated sinusoidal waveform that is iso-
lated from variations and disturbances
in the input voltage. Also provides
isolation and step-up/step-down to
allow for various input/output voltages.
Input 95-130/175-235/190-260/380-520
60Hz. Output 120/240VAC 60Hz
2000VA. 17.8x11.4x9.6, 115 lbs sh. Unused, $300

WHEATSTONE BRIDGE
ZM-4 Wheatstone Bridge used

FAIR RADIO SALES to measure DC resistance.


Resistance measurement
range 1 ohm to 1,011 M ohms
+/-0.15%; As a resistance sub-
WEBSITE: fairradio.com stitution box it is adjustable in
1 ohm steps from 0-10110
E-MAIL: fairradio@fairradio.com ohms. The current limit of the
PHONE: 419-227-6573 resistors is 16-500ma depend-
ing on setting. Galvanometer indicates balance in test
FAX: 419-227-1313 circuit. Requires three “D” batteries. Also 22.5 to 200
VDC for more accurate readings above 1000 ohms.
2395 St Johns RD - Box 1105 5.8x7.3x8.8, 12 lbs sh. Used Reparable, $34.50
Lima, OH 45802 Used Checked, $49.50; Manual repro, $12.00

VISA, MASTERCARD, DISCOVER Allow money for shipping on merchandise.

Address Dept. N/V SEND FOR OUR LATEST CATALOG !!

January 2006 81
ClassifiedsJan06.qxd 12/8/2005 11:48 PM Page 82

CLASSIFIEDS
COMPUTER SATELLITE ANTIQUE RADIO LCDs/DISPLAYS
HARDWARE 4DTV • C-band • Ku-band
WANTED MPEG-2 • DISH • DIRECTV
We carry a full line of systems,
upgrades, replacement parts, more!
DEC EQUIPMENT
WANTED!!! Get it all with just one call!
Digital Equipment Corp. 800-500-9275
and compatibles. FREE Satellite TV Buyer’s Guide
Buy - Sell - Trade
CALL KEYWAYS 937-847-2300 ROBOTICS
or email buyer@keyways.com www.skyvision.com

5 &6

9
,&

7
,
7


2

2
%

0
2

,/
7
5

)
,0

1
1

,
$

'
(
6
8
0ROFESSIONAL

6
$
3ERVO#ONTROLLERS
ATAPRICE
YOUCANAFFORD

WWWAMATICOMAU

gatewayelectronics.com
(Electronically Speaking,
Gateway’s Got It!)
MAIL ORDERS CALL TOLL-FREE
1-800-669-5810

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

%HDJOH%RDUG
:RUOG¶VPRVWIOH[LEOHGHYHORSPHQWERDUG
IRUHOHFWURQLFVDQGURERWLFV

/DUJHEUHDGERDUGDUHD
PXOWLSOHPRGXOHV
‡3,&0LFURDQGSLQ
‡3RZHUVXSSO\9$
‡/&'DQGVZLWFKLQWHUIDFH
‡ELWORJLFSUREH
‡56 '&(RU'7( LQWHUIDFH
‡3XOVHJHQHUDWRU+]± 0+]
‡6WHSPRWRUFRQWUROOHUGULYHU
‡'&PRWRUFRQWUROOHUGULYHU

%5%HDJOH5RERWLFV//&
7RROVIRUURERWLFVDQGHOHFWURQLFVHQWKXVLDVW

ZZZEHDJOHURERWLFVFRP

82 January 2006
ClassifiedsJan06.qxd 12/8/2005 11:55 PM Page 83

AUDIO/VIDEO

PRINTER
SUPPLIES

“Now With 5x More Products!”


Take a look
at some of our
We’ve added thousands of money saving popular name
Jameco ValuePro™ and Jameco ReliaPro™ products. brands:
These products are manufactured for us and shipped Abbatron Grayhill
Alcoswitch Hellerman
directly to you, eliminating costly supply chain layers. Alpha Wire Intel
AMD Lexar
We’re also finding unique ways to help you save even more on name-brand AMP LittelFuse
products. Rather than print unneeded information in our catalog, we’re printing just Amphenol Molex
Avery Dennison Neutrik
enough information to let you know what we offer and where to find it on our web site. Belden P&B
C&K Panduit
Less space means less paper, less postage, less waste and less costs. CDE Raychem
Chemtronics SanDisk
big savings we can
A simple and potentially Cherry Seasonic
Cinch Sparkle
pass on to you! Corcom Speco
Crydom Switchcraft
Etasis Tech Spray
Fluke Tyco
General Cable Volex
Giga-Byte Zynet
Great Products. Awesome Prices.

Call 1-800-831-4242 for your free catalog—Or go directly to www.Jameco.com/NVK

January 2006 83
NearSpace.qxd 12/8/2005 7:12 PM Page 84

NEAR

■ BY L. PAUL VERHAGE
SPACE
APPROACHING THE FINAL FRONTIER

THE BLAME IT ON CanadArm*


AS YOU KNOW,THE SPACE SHUTTLE often
carries an extraordinary robotic arm in its
payload bay.The arm, called the CanadArm
in recognition of its origin, is Canada’s
contribution to the Space Shuttle program.
In my near space program, I often attempt
to design near space versions of real space
items. So, in recognition of the CanadArm,
I have developed my version, the “Blame
it on CanadArm.” In this article, I’ll describe
how I constructed this arm.

T he near space arm mounts to the


exterior of the near spacecraft.
Since it was design for amateur televi-
link in the list of customer applica-
tions. While you’re there, check out
the other near space applications
ters can be found at PC Electronics.
They’re online at www.hamtv.com
The antenna I recommend for ATV
sion use, the Blame it on CanadArm Parallax has put online. Before is the mini-wheel. The antenna is
(BioCA) carries a small CCD imager at constructing the BioCA, I want to give made by Dave Clinger of Olde
its tip rather than an end effector like you a little information on amateur Antenna Labs and you can order it
the Space Shuttle’s CanadArm. The television. from PC Electronics.
BioCA is designed to point its CCD Your best source for up-to-date
camera in any direction in front of the information on ATV is Gene Harlan’s
near spacecraft (the near spacecraft
A BRIEF BACKGROUND magazine, ATV Quarterly. You can find
blocks the view behind it). The arm TO AMATEUR information for this magazine at
can point its camera to the ground, TELEVISION (ATV) www.hampubs.com
horizon, or the balloon itself. It can If you live near south central
even monitor experiments during a There are two kinds of amateur Idaho, you have a great source of ATV
near space mission. television in use today: fast scan and information in Lee Kelly (K6ZVA) in
It takes a flight computer slow scan. Fast scan sends 24 frames Twin Falls.
onboard the near spacecraft to oper- per second and slow scan requires —
ate an arm like this. In my book (Near depending on the transmission type
Space Exploration With the BASIC — a few seconds to over 30 seconds
BACKGROUND ON MY
Stamp), if you’ll read Chapter 3, you’ll to send a single frame. Fast and slow AIRFRAMES AND QUAD
learn about the flight computer I’m scan require a camera, radio transmit- PANELS
currently using to control an arm like ter, and antenna. However, slow scan
this. The first few chapters of my book also requires a microcontroller to The BioCA is designed for my
are available as a free download from capture a CCD image. The BioCA can near space fleet. So let me briefly
Parallax (www.parallax.com). Click on be used for either type of television describe how I build an airframe. I
the Resources tab, then Customer transmission. build it out of 3/4 inch thick
Applications, then the Near Space A great source of ATV transmit- Styrofoam, the kind used for house
84 January 2006
NearSpace.qxd 12/8/2005 7:12 PM Page 85

N E A R S PA C E

insulation. I cut Styrofoam


panels with an Exacto knife and
hot-glue them into a box. The
box becomes an airframe after
it’s covered in multi-layer
insulation and a fabric jacket.
Three sides of the airframe have
square openings where experi-
ments are mounted. The
openings are all the same size
(a standard for my near space ■ FIGURE 2. The Styrofoam measures 5-1/4
inches across and the plywood six inches
program) and are called access
across.
ports.
An experiment is bolted to an camera’s pitch servo. It rotates the
access port with a quad panel. A CCD imager left and right so it can
quad panel is a 3/4 inch thick view objects just beyond the BioCA’s
Styrofoam square epoxied to a 1/8 range.
inch thick plywood square plate. The To reduce the workload on the
Styrofoam square measures 5-1/4 flight computer, a Scott Edwards SSC
■ FIGURE 1. The access ports on this
inch on a side and fits snuggly into a II controls the three servos in the arm. airframe measure 5-1/4 inches SQUARE.
access port. The plywood square With the SSC-II, the flight computer
measures six inches across. While an can control the BioCA through a sin- The reinforced block is epoxied to the
experiment is permanently attached gle I/O connection. plywood face of the quad port. The
to a quad panel, the quad panels can The weight of the camera com- servo slides into its pocket in the
be moved to any of the access ports bined with its distance from the ser- block and is held in place with two
in the airframe. In addition, since vos places some torque on the servos. bolts. Figure 4 shows a diagram of the
every one of my airframes has same To keep the torque at a minimum and block I designed.
size access ports cut into it, I can to reduce the drain on the battery, the Now that the yaw servo is
also move experiments between rest of the arm is built to be attached to the quad panel, we can
airframes. lightweight. A large portion of the attach the rest of the arm mechanism.
A quad panel bolts to an access torque is counteracted with a rubber The next piece is the rotation base.
port with four bolts. The bolts pass band. As you will see, the arm is con- The rotation base holds the pitch
through the inside corners of the structed from Styrofoam for lightness servo, which raises and lowers (pitch-
Styrofoam square and to a thin plastic and thin plywood for strength. es) the arm. The rotation base is
plate interior to the airframe. The The quad panel is the first item to
quad panel remains on the airframe build. Cut a 5-1/4 inch by 5-1/4 inch ■ FIGURE 3. An x-ray view of how a
quad panel bolts to an access port.
because the sides of the airframe are square of 3/4 inch thick
sandwiched between the quad panel Styrofoam and a 6 x 6
and the interior plastic plate. inch square of 1/8 inch
Using quad panels makes thick model plywood.
reconfiguring a near spacecraft a Center and epoxy the
breeze. This brief description should Styrofoam to the
be enough for you to construct a quad plywood. Drill four 1/8
panel. inch holes through the
plywood at the corners of
the Styrofoam. The
MAKING THE BIOCA Styrofoam side of the
The BioCA is mounted to a quad quad panel is the interior
panel just like any other experiment. face and the plywood
The BioCA uses two standard 42 side is the side with the
inch-ounce servos and one micro- arm.
servo to move its CCD camera The yaw servo
around. The first servo is the yaw attaches to the quad
servo and it rotates the arm’s base to panel with a shaped
the left and right. The second servo is Styrofoam block. The top
the pitch servo and it raises and and bottom face of the
lowers the arm. The final servo is a block is covered in thin
micro-servo and it’s the CCD plywood for strength.
January 2006 85
NearSpace.qxd 12/8/2005 7:13 PM Page 86

an axle at the top


of the rotation
base. The rotation
block is kept from
falling over by the
rotation servo at
the bottom and a
bracket at the top.
The axle is a
1/8 inch diameter
wooden dowel.
Drill a 1/8 inch
diameter hole
through the top of
the rotation base.
Drill this carefully,
as you want the
dowel to be as
■ FIGURE 5. The rotation base looks centered and
like a horseshoe on its side and IS vertical as possible
mounted to the wide base.
with respect to the
shaped block of servo horn on the bottom of the
Styrofoam and rotation block. Drill the hole about
covered in thin one inch deep. Cut a piece of dowel
plywood for 1-1/2 inches long. Epoxy the dowel
strength. The into the hole and let it set. You’ll trim
pitch servo is and round the top of the dowel after
■ FIGURE 4. The shaped Styrofoam block for the yaw servo. In
this diagram, it’s already epoxied to the face of the quad panel. bolted into an making its support bracket.
opening that’s The support bracket bolts to the
pressed on to the rotation servo. cut into the rotation base. Cutting a quad panel and holds the top axle of
When the rotation servo yaws left and block out of the rotation base will the rotation base.
right, it turns the rotation base and weaken it structurally, so the opening The support bracket is made from
the arm attached to it. is reinforced with 1/16 inch thick ply- 1/8 thick plywood and is basically a
The rotation base is made from a wood. Not only does the reinforce- right angle bracket reinforced with
ment keep the rotation more plywood. There are three holes
block from breaking in the support bracket: two to bolt the
where it was cut for the bracket to the quad panel and the
servo, but it’s also a other for the axle at the top of the
place to bolt the pitch rotation base. I drilled two 1/8 inch
servo. diameter holes for the #6-32 bolts
A servo horn is that attach the support arm to the
bolted to the center of quad panel. The diameter of the hole
the bottom face of the for the axle is slightly larger than 1/8
rotation block. This is inch so the axle in the top of the rota-
the servo horn that tion base can spin inside of it without
snaps into the rotation binding.
servo in the quad Now it’s time to build the arm
panel. A vertical axis itself. The arm is made from 3/4 inch
runs through the rota- thick Styrofoam and laminated with
tion base. At its thin plywood on its top and bottom
bottom is the center of surfaces. There’s a servo horn
the servo horn. The attached to the base of the arm, a
axis extends above the micro-servo to its mid-section, and
top of the rotation the camera platform to its end.
base where it creates The first step to making the arm
is to cut the Styrofoam to shape.
■ FIGURE 6. A side view
Notice in Figure 8, that there’s a
of the quad panel and
rotation base. cutout in the arm large enough to
86 January 2006
NearSpace.qxd 12/8/2005 7:14 PM Page 87

N E A R S PAC E

■ FIGURE 7. Your dimensions will vary,


since your BioCA will probably not BE
exactly the same size as mine.
hold a micro-servo. After cutting out
the arm, laminate the 3/4 inch thick
sides in thin plywood (use epoxy as
the adhesive). For increased
strength, use 1/16 inch thick plywood
for this lamination. Next, epoxy 1/8
inch thick plywood panels to the
sides of the arm that will cover the
micro-servo cutout (there’s no need
to cover the entire sides of the arm in
plywood since there’s very little
sideways force acting on it). The 1/8
inch thick plywood forms the sides of
a pocket for the micro-servo. The
plywood also strengthens the arm
where the micro-servo cutout has
weakened it. The weight of the CCD camera on and drill a 3/16 inch diameter hole.
Now mount a servo horn at the the end of the arm means the pitch Then, epoxy the square to the end of
bottom of the arm for the pitch servo. servo has a lot of torque to work the dowel in the end of the arm.
Before the horn can be mounted to against. This downward torque is The rubber band that’s pulling on the
the arm, the end of the arm must be counteracted by a rubber band rubber band knob needs an anchor in
reinforced. Cover both sides of the pulling the arm up. The pull of the the rotation base. I epoxied a short
arm where the servo horn will be rubber band is not strong to lift the length of basswood strip to the
attached with thin plywood. Use arm, it’s just strong enough to coun- rotation base for the anchor. With
epoxy and 1/8 inch thick plywood. teract the arm’s weight. A convenient some additional plywood reinforce-
After the epoxy sets, hold the servo way to attach the rubber band to the ment on the rotation base, I believe a
horn up against the plywood side arm is with what I call the Rubber small eye hook could also be used as
and mark the location of the servo Band Knob. an anchor.
horn’s center and the four outer Drill a 3/16 inch diameter hole in Next, add the camera platform
holes in the horn’s arms. Drill holes the end of the arm. Make the hole and the platform shelf to the top of
through the plywood reinforced arm about two inches deep. Then, cut a the arm. The platform is epoxied to
at these locations. The center hole 3/16 inch diameter wooden dowel the arm and the shelf is bolted to the
needs to be 1/4 inch in diameter, about three inches long. Epoxy and shelf with a single bolt. The bolt is
because the servo mounting screw push the dowel into the hole until loose enough that the platform can
goes through this hole. The holes in only one inch of the dowel protrudes. rotate like a lazy Susan. Cut a 1-1/2
the ends of the servo horn arms are To keep the rubber band from slip- inch length of 1/4 inch by 3/4 inch
drilled for the mounting hardware ping off, you’ll epoxy a stop to the basswood strip. Epoxy the shelf to the
you’ll use to bolt the servo horn to end of the dowel. Make the stop from top end of the arm so that it extends
the arm. I used small screws, but I a 1/4 inch thick stick of basswood. Cut about 1/2 inch beyond the end of the
recommend using something like #1 a small square shaped piece of bass- arm. After the epoxy sets, drill a 3/32
bolts and nuts. wood. Find the center of the square inch diameter hole through the shelf

■ FIGURE 8

January 2006 87
NearSpace.qxd 12/8/2005 7:14 PM Page 88

■ FIGURE 9. A top view of my camera


platform. The base of the tiny CCD
imager mounts to the center of the
platform.
camera platform. In Figure 10, you can
see that I used a strip of basswood for
the servo horn extension. The horn’s
extension is held to the servo horn
with epoxy and some wire, but you
should use small bolts in place of the
wires. Snap the servo horn (and its
extension, if it was needed), to the
micro-servo and rotate the servo to its
at the center of its extension beyond #2 bolt through the hole. Place wash- mid position. Remove the servo horn
the arm. A #2 bolt goes through this ers on the bottom and push the bolt and place it back onto the micro-
hole and acts as the axle for the lazy through the hole in the camera shelf. servo and bolt it down.
Susan platform for the camera. Use a locking nut (a nut with a nylon Measure the distance between
The camera platform is made insert) to hold the lazy Susan to the the arms of the servo horn and the
from a 1/16 inch thick sheet of shelf. Tighten the locking nut enough wings of the camera platform. Cut two
hard modeling plywood. Do not use to take the slack out of the axle, but pieces of stiff piano wire to the same
the light ply as it’s likely to break not so tight as to restrict its rotation. length plus an additional inch. Insert
from stress. Cut the platform large Attach the CCD imager to the lazy the piano wires into the holes in the
enough for your imager and two wing Susan according to the design of your servo horn and camera platform and
extensions. imager. Be sure the lazy Susan can bend the ends over to keep them from
Drill a small hole in each platform still rotate freely after the camera has falling out. Test the rotation of the
wing near the ends of the shelf. Piano been attached. camera platform by twisting the horn
wires from the micro-servo connect to Now insert a micro-servo at the of the micro-servo. The camera
these holes in the wings. So when the midpoint of the arm and screw it in platform must rotate without binding
micro-servo rotates, the camera’s lazy place. I only used two screws (on up. If all the servos rotate without
Susan platform also rotates. diagonally opposite corners of the binding, the exterior portion of the
Drill a 3/32 inch diameter hole micro-servo) since there is very little BioCA is complete.
through the platform’s center. Push a force trying to lift the micro-servo out Now bring the servo and camera
of its pocket in the arm. wires inside the quad panel. I drilled
■ FIGURE 10. A top view of the arm. Add a horn to the micro-servo two holes into the quad panel. I don’t
The rotation base is at the bottom, the
and compare the width of the horn to think you can get by with just one
micro-servo in the middle, and the
camera platform at the top. Note the the wings on the camera’s lazy Susan. pass-through hole without the arm’s
pair of piano wires connecting the I added an extension to my servo horn rotation base binding up on wires.
extended arms of the micro-servo to to make it the same width as the Since the SSC II is mounted inside the
the camera platform. quad panel near the bottom, I drill my
two holes about halfway up from the
bottom of the quad panel.
After drilling the hole(s), epoxy a
shelf inside of the quad panel that’s
large enough to hold the SSC II. I used
1/8 inch thick light ply for the shelf
and used a bit of Styrofoam as a
brace. After the epoxy sets, hold the
SSC II in place and mark the location
of its mounting hole in the shelf. Drill
the holes and bolt SSC II to the shelf.
I only used two of the mounting holes
because there isn’t much force trying
to pull the SSC II off its shelf.
Pass the servo cables through the
holes in the quad panel and connect
them to the SSC II. You may have to
extend the length of the cables to get
them to reach. I extend servo cables
88 January 2006
NearSpace.qxd 12/8/2005 7:15 PM Page 89

N E A R S PAC E

by cutting the servo cable in half near


the middle and solder extension
wires between the ends of the cut
cable. Be sure to slide heat shrink on
each wire before soldering it to the
servo cable. After the servo cables,
pass the camera cable into the quad
panel.
Use wire zip ties to keep the
cables under control. Without them,
there’s a possibility of a servo cable
getting pinched and stopping arm
movements. I tied cables to the mid
point of the arm and left some cable
slack near rotation points in the
BioCA. To reduce the chances of
video interference from servo signals,
route the video cable away from
servo cables. You don’t want servo
commands showing up as snow on
the video signal.
The last item to make is the plas-
tic panel that helps hold the quad
panel to the access port. Cut a sheet
of 0.03 inch thick styrene plastic into
a six inch square. Drill four holes near
its corners that correspond to the
holes in the BioCA’s quad panel. The
holes for the servo and camera cables
and the shelf for the SSC II will pre-
vent a flush fit between the plastic
panel and the quad panel. So cut a
hole in the styrene panel just large
enough for these protrusions. Now
insert the quad panel into the air-
frame. Add the first bolt and add the
plastic panel. Use a washer and nut to
hold the quad panel and plastic panel
in place. Repeat this with the other
three holes.
Well, that does it for the BioCA.
I’ve only had a chance to test it on the
ground and display it in my presenta-
tion at a recent hamfest. The audi-
ence loved it. From my experience, I
now see that it’s important that the
servo movements be slow and
smooth. So, move the servos slowly
by sending intermediate positions to
the SSC II, rather than slamming ser-
vos to their new position. Also, use a
lightweight CCD imager to keep the
inertia of the arm low.
Onwards and Upwards,
Your new space guide NV

* No, I’m not a fan of the show, but


I do like the title of the song.
January 2006 89
InTheTrenches.qxd 12/8/2005 7:16 PM Page 90

IN THE

■ BY GERARD FONTE
THE BUSINESS
OF ELECTRONICS TRENCHES
THROUGH PRACTICAL DESIGN AND LESSONS LEARNED

STRESS — OH NO!
IT'S CLEAR TO ANYONE IN THE ENGINEERING FIELD that stress is a part of the job. Whether
it's making impossible deadlines, working long hours, finding invisible bugs, or interfacing
with difficult people, engineering is a very high-stress profession. Coping with stress
requires understanding what it is and what it does to you. Some stress you can control,
some you can't. And there are some simple methods that can help you manage it.
adrenaline to be released, too. This the body remains in that state for an
WHAT STRESS IS compound increases the heart rate extended period of time. That's not
Sometimes stress is defined as and blood pressure while reducing good. It's like increasing the voltage to
that "overwhelming desire to pound the "smooth muscle" activity (typically a motor in an emergency to get more
living daylights out of something." digestion). Basically, it's preparing power. It works, but the motor wasn't
Unfortunately, stress isn't explained the body for the "fight or flight" designed to run at the higher voltage or
that easily. Stress certainly includes response. speed for long periods of time. It wears
frustration and anger. But it's also pres- In cave-man times, the fight or out faster.
ent when you get married or divorced, flight response was used with much Chronic stress (over four weeks)
get a new job or lose your present one, more regularity than today. And the rarely has a direct effect on the body.
and even when you play video games. ability to battle harder or run faster Instead it aggravates existing condi-
Sometimes stress is good. Sometimes was certainly helpful then. However tions or lessens the body's ability to
it's physical and other times it's nowadays, there are few fist-fights in defend against other situations.
emotional. There are many different the board-room and employees gen- Chronic stress can lead to stroke,
types and causes of stress. erally don't physically run away from a heart-attack, kidney failure, stomach
The technical definition of stress tough assignment. Fundamentally or intestinal ulcers, increased suscep-
is anything that causes the adrenal that's the basic problem of stress: the tibility to infections, headaches,
glands (located at the top of the body is ready for action fatigue, indigestion, and on and on.
kidneys) to release adrenaline but no action happens Truthfully, almost anything can be
(sometimes called epinephrine) or is allowed to related to stress. Again, this is
into the blood stream. Now we happen. because the defenses of the body are
can see why good things, like get- So, the adrenaline reduced. This makes it easier for any
ting a new job or get- circulates and the component of the body to fail. And
ting married, also heart rate increases the weakest component varies from
cause stress. and the blood person to person and from time to
Excitement pressure rises. time. Additionally, chronic stress
over some- And because engages a cortisol response. This has
thing new there is no a number of subtle effects ranging
causes action, from poor sleep to increased fat
production to increased peripheral
vision awareness. (This last effect can
cause great difficulty in concentrating
on things in front of you.)
Generally, there are three basic
immediate and direct responses
to very intense stress levels:
head, heart, and gut. The head
responders faint, the heart
responders have palpitations
or worse, and the gut respon-
ders need a new pair of pants. All
90 January 2006
InTheTrenches.qxd 12/8/2005 7:16 PM Page 91

IN THE TRENCHES

three types are well represented in amount. The big difference was that Conquering adversity does give you
movies or books. However, since the first monkey could control the confidence and experience. But
these levels of stress rarely occur in shocks through his behavior and the chronic stress is more like the
normal engineering environments, second one couldn't. The result was Chinese proverb, "running water
we'll only look at the chronic stress that the second monkey showed wears away the strongest stone."
that's more typical. significant health problems. In short, By far, the most common form of
the ability to control the stressful sit- stress in the engineering arena is
uation is very important in controlling emotional stress. Most typically
GOOD STRESS, the amount of stress. this comes from management's
BAD STRESS schedules. It seems that there is
never enough time allotted to
There is one extremely good form
PHYSICAL AND properly perform any task. The result
of stress. It's called exercise. This is EMOTIONAL STRESS is never-ending time pressure to
good since it burns up (simplistically design, debug, test, document, and
stated) the adrenaline in your sys- We can see that some stress is manufacture a product. And, of
tem. It's doing exactly what the body the result of physical actions. course, once there is a problem in one
needs to do. And it is indeed stress. Arguably, the most extreme form of facet of the system, the whole system
This is because as you start to work physical stress is torture. However, is affected. We see that stress can be
out, the adrenal glands release the most likely forms of physical a communicable corporate disease.
adrenaline and the heart beats faster stress in the workplace come from The second common form of
and your blood pressure rises. The overwork and lack of sleep. Pushing stress comes from working with "diffi-
two special things about exercise are: yourself beyond your typical cult" people. Perhaps you don't like
the stress level is completely con- capabilities requires the body to your boss or he doesn't like you.
trolled by you and excess adrenaline, compensate. It does so by releasing Clearly, that makes the work environ-
from other causes, can also be adrenaline/cortisol to keep you awake ment stressful. Sometimes you have
burned up. Doctors recommend exer- and functioning. This is not too bad if to work with someone who is annoy-
cise for everyone who is physically it happens occasionally. However, it ing or has habits that you find dis-
able. Obviously, exercise has many is bad if this is a chronic situation. It tasteful. Other times you may be on a
other healthful benefits, as well. The is also very important to remember team where not everyone is doing his
overall benefits of proper exercise are that different people have different share. That means more work for you.
difficult to overstate. capabilities. Working 70-80 hours Lastly, you may be forced to do
It is critically important to recog- each and every week may be easy for work that you dislike. Or more simply,
nize the control factor in stress. It's Bob, but impossible for George. you no longer like your job. It's true
usually overlooked but it's often at Simply because one person can that many people have jobs that they
the root of bad stress. Let's look at accomplish this doesn't mean that don't like (although most engineers
two people. The first one chooses to you are less of a person if you can't. like their profession). The level of
jog a mile during his lunch break for Additionally, management must rec- dissatisfaction is directly related to
exercise. That's good stress. The sec- ognize this, as well. It is fundamen- the amount of stress that occurs. It's
ond one is forced to do exactly the tally wrong and stupid to assume that important to realize that stress is a
same thing because his boss needs a everyone can perform to the very personal condition. Each situa-
new stapler. Obviously, this isn't as maximum physical ability of the best tion creates a particular stress level
good because anger and frustration person in the department. If that was for each person. And this level is
are present to create stress. In fact, a truly the case, then Mr. Manager, you subjective. There is no easy way
classic study was done many years should easily polish off an Iron-man to measure how much stress any
ago that demonstrated this directly. Triathlon every week. particular person is experiencing.
This experiment used groups of Some people think "that which Worse, the same stress level has
paired monkeys. The first monkey of doesn't kill me makes me stronger." different effects for different people.
the pair was taught to perform a task There certainly is some truth to this,
and received a small electrical shock but only under certain situations. One
every time the task was performed way to improve yourself is to push
COMPENSATION
improperly. The second monkey was yourself beyond your limits. There are many, many ways to
separated from the first and
was free to do whatever mon-
keys do. However, this second “Coping with stress requires understanding
monkey also got shocked
whenever the first monkey got what it is and what it does to you. Some
shocked. Both monkeys got stress you can control, some you can't.”
shocked exactly the same
January 2006 91
InTheTrenches.qxd 12/8/2005 7:17 PM Page 92

compensate for stress. You'll find and concentration. You might also try remains into a vacant field. The
dozens of books ranging from racquetball or tennis. These are whole procedure took about two
aerobics to Zen. All of them work for somewhat less effective and more hours and was very cathartic. Later,
somebody. None of them work for complicated because you have to find at work, when the boss asked where
everybody. Remember that stress is a partner/opponent and locate a place the animal was, my friend just
intensely personal. Additionally, to play. There are many other related smiled and said, "It's found its
certain compensation methods work ideas. Splitting firewood for example. proper place here and there around
better for certain types of stress. You But be very careful with the maul! the house." (A new job eliminated
will have to find what is best for you. Anger and frustration can make you that stressor for good.)
The only way to find out is to try them careless. If you are stressed from overwork,
and see what happens. One very effective technique is a nap at lunch can be very helpful.
Anger and frustration are often "totem-destruction." A friend had a Ideally, the nap should be away from
purged with physical activity of some boss who was, by all standard meas- the workplace, if practical. A quick
sort. One method that I have found ures, not rational. Working for him bag-lunch and a 30 minute nap in
very useful (and others who have tried was like doing a polka in a hammock your car can be effective. Car seats are
it agree) is to hit golf balls. It's quick, — impossible and painful. However, much more comfortable that your
easy, fairly inexpensive, and effective. a few years earlier he had given desk chair and you aren't likely to be
Simply imagine the ball as being the everyone in the department a large interrupted. Naturally, be careful
stressor and hit it as hard as you can. ceramic animal. We took this ceram- where you nap. If you live close to
After 50 or 100 whacks at the driving ic monstrosity and made a totem where you work, a nap at home is very
range, you will find most of the anger out of it. Adorned with rubber restful.
and frustration has dissipated. cement, spray paint, gobs of cat hair, Exercise, as noted before, is
Pounding the living daylights out of and lighter fluid it was first set on extremely useful in reducing general
something is very good at relieving fire (safely). Then the sledgehammer stress. Jogging to lunch, instead of
anger and frustration. was employed. First into large driving, works. Any exercise or ener-
You can try hitting baseballs in a pieces and then into smaller ones. getic sport is beneficial. Lunchtime is
batting cage. But that takes more skill The baseball bat whacked the good because it's always available

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


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

• 3.2 x 1.4 in. supertwist LCD


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

• 3.2 x 2 in. backlit LCD


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

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


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

• 3 x 2 in. supertwist LCD


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

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


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

92 January 2006
InTheTrenches.qxd 12/8/2005 7:17 PM Page 93

IN THE TRENCHES

(that's the law!). After work is better that there is no release of adrenaline. neering environments. But that does-
because you have more time. But it's Because if you had a load of adrena- n't make it good. Stress has been
often not practical because of other line dumped into your system, the shown to contribute to many health
necessities. It's best to exercise away last thing you would want to do — or issues. Reducing stress improves
the stress while the stress is there. be able to do — is go to sleep. If employee productivity and reduces
But, exercise is useful anytime. you've ever been in a car accident, or absenteeism and turnover. The three
Laughter is also a good method other life-threatening event, you know basic methods for reducing stress are
of reducing general stress. There is a the feeling. adaption, elimination, and compen-
Catch-22 here. The more stressed-out sation. Everybody's response to
you are, the less funny humor is. And stress is different. Finding the proper
the less you laugh, the less reduction
CONCLUSION methods that work for you is an
in stress there is. So when you get Stress is a common factor in engi- important personal decision. NV
home, watch the Three Stooges rather
than Engineering Disasters.
It should be noted that
cigarettes, drugs, over-eating, and
Atmel AVR based Micro64/128
alcohol don't really do much to Embedded Controller Module
relieve stress. Rather, they cover it up.
Worse, these things usually create 8-Channel Analog to Digital Convertor
additional physical stress. Real Time Clock/Calender
29 Digital I/O
SPECIAL SPI & I2C Bus
CONSIDERATIONS Two Serial Ports
Serial Boot Loader
There is a common source of RS-232, 422 or 485
stress that is not yet qualified (to my Selectable Baud
knowledge). This is video games. It is
clear that intense playing causes
Rates up to 250 Kbps
physical stress. The heart rate Only 1.5 Cubic Inches
increases and blood pressure rises Supports Assembly, Starting at Only
and there appears to be a release of BASIC and C Prog. Languages
adrenaline (however this last point
has not been well-documented). The
Inexpensive CodeVision C Compiler $119 - Single Qty

question is if this is good stress or


bad stress. It appears to be good
stress in that you have complete Start Developing
control over it. Like exercise, you The Micro6/128 Development
decide when to start and stop. Board takes the Micro64/128 I/O
However, there is no physical pins and expands them out to
activity associated with it to burn off solder pads and headers for ease
the adrenaline. So, that would make of connection when developing.
it bad stress. It also connects USART1 to RS-232
It seems to me that this would be drivers or directly to screw
a useful question to answer. There are terminals for RS-422 or RS-485
many people who play video games communication. USART0 is also
for three or more hours per day. This connected to RS-232 drivers. The
is a major activity for them. Being at RS-232 drivers are connected to
such a high level of stress for that two DB9 connectors. This board
long, day after day, would appear includes a prototyping area so the user can add external
likely to have some impact on the circuitry. There is an onboard voltage regulator for powering the
body. But is it good or bad? Micro64/128 and additional circuitry. The Micro64/64A/128/128A
Bad dreams do not appear to be development system comes complete with a Micro64, Micro64A,
stressful. This suggestion is based Micro128 or Micro128A, a Micro64/128 Development Board, and a
upon observation rather than docu-
power supply.
mentation. Simply, if you have a bad
dream you wake up, roll over, and go
VISIT WWW.MICROMINT.COM FOR MORE
back to sleep. This strongly suggests INFORMATION or Call 1-800-635-3355
January 2006 93
TechForumNew.qxd 12/9/2005 1:17 AM Page 94

TECH This is a READER-TO-READER Column.


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

All questions and answers should


be sent by email to forum@nuts
volts.com All diagrams should be
>>> QUESTIONS
computer generated and sent with your custom chips in them, then I guess
submission as an attachment. my idea is dead, but if one of them
has something like a generic PIC in it,
QUESTIONS
To be considered, all questions should relate I have six six-volt batteries wired in then maybe I could get something
to one or more of the following: series to achieve 36 volts. I have going. What can you tell me about
❶ Circuit Design tapped the neg to the pos across two them?
❷ Electronic Theory batteries and got 12 volts. #1063 ■ Mark Mickelsen, via Internet
❸ Problem Solving Can I wire all three (sets of two)
❹ Other Similar Topics
■ Be brief but include all pertinent informa-
and get 12 volts with lots of amps
and run a large inverter? That would
>>>> ANSWERS
tion. If no one knows what you're asking, you be running series and parallel in one [#11052 - November 2005]
won't get any response (and we probably operation. I would have to be using I have a Proview Technology
won't print it either). both sources at the same time. color-monitor model 986 N. To repair
■ Include your Name, Address, Phone Num-
Maybe switches would work? it, I need two ICs — TDA 9536 video
ber, and email. Only your Name, City, and
State will be published with the question,
I had my hip replaced last week and amplifier and TDA 9210 video
but we may need to contact you. am working on projects to complete pre-amp. Does anyone know where I
■ No questions will be accepted that offer after rehabilitation. could get these chips at a reasonable
equipment for sale or equipment wanted to #1061 ■ Greg Nenni, via Internet price?
buy.
■ Selected questions will be printed one I have searched the world over After an extensive search on the
time on a space available basis. for the Data Sheet on the TI's Internet I was able to locate the ICs
■ Questions are subject to editing. TMS9916NL chip. Any help would be that Mr. Eddy needs. If he goes to the
appreciated. site www.noahtec.com/xcart/cus
ANSWERS #1062 ■ Brent Lamb, via Internet tomer/home.php?cat=253&page=11
■ Include in the subject line of your email,
he can order the two TDA ICs he
the question number that appears directly
I just got a digital caliper for the needs; TDA9210 and TDA9536 both
below the question you are responding to.
■ Payment of $25.00 will be sent if your an-
first time and I love it, mostly. I would cost $4.50 plus shipping and
swer is printed. Be sure to include your mail- like it to display measurements in a handling. Any questions he has he
ing address or we cannot send payment. third way besides inches and millime- can e-mail the company directly.
■ Only your Name, City, and State, will be ters. I would like to know if there are The data sheets on the TDA9210
printed, unless you say otherwise. If you any digital calipers out there that have and TDA9356 can be found at the
want your email address included, indicate generic microcontrollers in them that following websites:
to that effect. could possibly be reprogrammed or www.romstore.ru/pdf/TDA9210.pdf
■ Comments regarding answers printed in replaced with one with my own www.romstore.ru/pdf/TDA9536.pdf
this column may be printed in the Reader programming in it. If they all have ■ Ralph J. Kurtz, Old Forge, PA
Feedback section if space allows.
94 January 2006
TechForumNew.qxd 12/9/2005 1:18 AM Page 95

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

[#11053 - November 2005] RadioShack 273-1380 (1K ohm to 8 power supply (I assume AC or DC
I'm trying to improve WWVB ohm) — and it seems useful at 60 will work).
reception here in Southern New kHz. My question is, will something I tried an off-the-shelf standard
Hampshire. The problem seems to like this work, or is there something home dimmer, carefully setting it
be that the internal antenna (tuned better? Thanks for any help or ideas. (low) to 12V-15V, but it just blew
ferrite rod) in the clock can't be the bulb.
oriented properly where I want the Have you tried a few loose turns
clock located. I'm thinking along the of wire around the ferrite rod and Sounds like you had a bad or old
lines of a larger, 0.5 X 7.5 inches, running the wires out at different bulb. Running the 28 volt light is no
tuned ferrite rod feeding a FET op- angles? This method might capture different than running a 12 volt light
amp, maybe an LF356. Drive a small and couple more field to your clock, on the old six volt tractors and cars;
audio transformer with the op-amp and it’s a lot simpler than a powered it should just be dimmer than at the
output to provide something like an amp. Also check out www.select full voltage, kind of like when the
eight ohm output to feed a twisted atenna.com for ready-made signal batteries are going dead in your
pair feedline. At the clock, use boosters. flashlight. However, normally air-
another transformer and connect it ■ Bob Lindstrom, Broomfield, CO plane landing lights are only used for
to an added winding on the original a couple minutes during the landing.
clock antenna rod. This would allow [#12052 - December 2005] The bulb you have is a 600,000
placing the antenna in correct orien- I have some 4559 aircraft land- candle power and the rated average
tation, as well as allow selection of ing lights, they are 28 volt 600 watt. life in the lab is only 25 hours. I think
a better antenna location. With the I was hoping to use them for some you should probably look for a better
carrier at 60 kHz, it would seem that concert lighting I do. But, I haven't light. You also ask if AC or DC
audio components could be used. come up with a way to power them, matters, this is a DC only bulb.
I've checked the transformer — a being that I need a 28 volt 21.5 amp ■ Dennis Matthews, Cameron, NC

[#11055 - November 2005] #2 Ten minutes is a long, long time for a 555 timer, but
I’m looking for a way to temporarily turn off an a CD4541 programmable timer can do it easily. The
aquarium water pump during the feeding of my fish. schematic below shows how I think it would work but I
I need a circuit where the AC water pump (rated at have not built it, so there is no guarantee.
120VAC@40W) can turn off for about 10 minutes, then
turn back on again automatically. Ideally, I’d like a
momentary switch that would turn the pump off for
about 10 minutes. I was thinking of using a relay with
NC contacts and perhaps a battery-powered 555 circuit,
but do not know how to design this.

#1 Here is a simple 555 timer circuit, that when you


push the button, it will energize a relay for about 10 min-
utes. The timing formula is T=1.1 x R1 x C1, so 600 sec-
onds = 1.1 x 1000000 ohms x .000554 farads (554mfd).
The 555 chip that I was working with has a supply volt-
age range of 5V to 16V, so a 12V wall wart would power
it nicely. You will need a SPDT relay based on the voltage ■ Russ Kincaid, Milford, NH
you pick. I think the schematic provided says the rest.
#3 To temporarily turn off an air pump or filter for
an aquarium, an On-Delay relay such as Dayton 6X601
(60-900sec delay) or a 5B396 (36-3600sec delay) can be
used. This is in an octal based package and so a base
(part number 5X852) is needed to mount and connect
the relay.
Place the pump and/or filter on the leads indicated
"LOAD," and place a double pole momentary contact
push button across the input (115V power source). When
the relay is first powered up, the time delay period
begins. When the time delay period is done, the relay
■ Brandon Spivey, Nashville, TN allows the load to be powered up. The load remains

January 2006 95
TechForumNew.qxd 12/9/2005 1:18 AM Page 96

powered up until the input power is interrupted, at #7 This circuit will interrupt the power
which point the delay period becomes active again. Load to your aquarium pump for approximately
rating for the relay is 1/3HP @115V (seven amps) so it 10 minutes. When you press S1, C1
should be able to handle a number of devices such as a charges very rapidly to +12 volts. The charge on C1
power head and a filter or air pump. biases Q1 (an NPN Darlington) on and the relay is ener-
■ Tom Pace gized, interrupting power to the pump. The specified
S-S Electric Repair Shop relay requires only 220 mW, well within the Q1 rating of
Buffalo, NY 625 mW, and its contacts can handle up to eight amps.
The relay will
#4 I had the same problem with my fishtank forgetting remain ener-
to reconnect the filter pump after feeding my fish. There gized (keep-
are many solutions to remedy the problem, but the sim- ing the pump
plest I found is a delay on release timer from Amperite off) until C1
P/N 120ACR600C. Newark Electronics (800-4-Newark) discharges to
can supply this timer. Only additional component about 1.2
needed is a momentary NO pushbutton switch. volts, and the
■ Frank Kretkowski, Jersey City, NJ time taken
depends pri-
#5 May I suggest a universal start/stop timer kit made marily on the
by Velleman Kits. It is available at MCM Electronics for size of C1 and
$15.95. www.mcminone.com/ part #80-2855. You can R2. You could
put the timer/relay in line of an inexpensive extension use a one
cord. The kit requires 12VDC which can be from meg pot in
batteries or a small wall transformer. place of R2 if
■ Bob Lindstrom, Broomfield, CO you want the timing to be adjustable. Any 12 volt DC
wall wart will power the circuit.
#6 A very simple solution would use a low cost Parts List:
mechanical appliance timer. These are available at C1 - 1000 uF 25V
hardware stores for under $10. Just set the "Off" time to D1 - 1N4001
midnight and the "On" time 15 minutes later. Whenever K1 - Omron G6RN-1-DC12 (Mouser P/N 653-G6RN-1-
you feed the fish, spin the timer wheel around until the DC12)
pump turns off. Fifteen minutes later, it will turn back on. Q1 - 2N6427 NPN Darlington (Mouser P/N 512-2N6427)
If the fish are fed at least once a day, then the pump will R1 - 3.3 K
never turn off by itself. But, if it should, it will not be a R2 - 680 K
big deal since it will only be off for a few minutes. S1 - Push button momentary switch
■ Thomas B., Folsom, CA ■ Ed Schick, Harrison, NY

96 January 2006
IndexJan06.qxd 12/9/2005 12:15 AM Page 97

AD INDEX
Abacom Technologies ............92 CrustCrawler ..........................96 Halted Specialties Co. ............79 Maxstream ..............................64 QKITS......................................52
ActiveWire, Inc. ......................52 Cunard Associates .................52 Hobby Engineering..................26 microEngineering Labs............40 R4Systems, Inc. ......................41
All Electronics Corp. ...............49 DesignNotes.com, Inc. ............29 Industrial Ventures .................82 Micromint ................................93 RABBIT Semiconductor ..........37
Anchor Optical Surplus............27 Diskology.................................53 Information Unlimited .............27 Mouser Electronics .................56 Ramsey Electronics, Inc. ...42-43
Atlantic Int’l Institute, Inc. ........56 Earth Computer Technologies ..16 Integrated Ideas & Tech. ....10, 63 Multilabs .................................48 RidgeSoft ................................41
Atomic Time ............................89 Electronic Design Specialists ..26 Jameco..............................65, 83 MVS ........................................36 Robotics Group ......................16
BalBots.com ............................83 Electronix Express ..................36 Jaycar Electronics ...................17 Net Media ..................................2 Robot Power ...........................52
EMAC, Inc. .............................41 Parallax, Inc. ............Back Cover
Bellin Dynamic Systems, Inc. ..52 ExpressPCB ...........................29 LabJack ...................................16 PCB Cart ................................89 Saelig Company, Inc. ........56, 67
Blink Manufacturing ................52 EZ PCB ..................................64 Lemos International Co., Inc. ..15 PCB Fab Express ...................53 Scott Edwards Electronics, Inc. ..92
C & S Sales, Inc. ....................73 Flextron Circuit Assembly .......52 Link Instruments .......................5 PCB Pool ................................51 Surplus Sales of Nebraska .....62
Circuit Specialists, Inc. ......98-99 Freescale Semiconductor..........7 Linx Technologies ..................28 Picobotics ...............................28 Technological Arts ..................48
COMFILE Technology ..............3 Front Panel Express LLC ........63 Lynxmotion, Inc. .....................64 Pico Technology Ltd. UK.........78 Trace Systems, Inc. ................53
Command Productions ...........27 GME Technology.....................53 Madell Technology ..................23 PolarisUSA Video, Inc. ............11 XGameStation ........................52
Conitec DataSystems .............53 GreenChip ...............................52 Matco, Inc. ..............................52 Pulsar, Inc. .............................52 Zagros Robotics .....................51

COMFILE Technology ...................................................3


AMATEUR RADIO & TV Conitec DataSystems...................................................53
EMAC, Inc. ..................................................................41 PROGRAMMERS
Freescale Semiconductor .............................................7
Atomic Time ................................................................89 microEngineering Labs ...............................................40 Conitec DataSystems...................................................53
PolarisUSA Video, Inc. ................................................11 Micromint .....................................................................93 microEngineering Labs ...............................................40
Ramsey Electronics, Inc. .......................................42-43 Multilabs ......................................................................48
Surplus Sales of Nebraska ..........................................62 MVS ............................................................................36
Net Media.......................................................................2
PUBLICATIONS
BATTERIES/CHARGERS Parallax, Inc. .................................................Back Cover
R4Systems, Inc. ..........................................................41
Mouser Electronics ......................................................56
Scott Edwards Electronics, Inc. ...................................92
Cunard Associates ......................................................52
Technological Arts .......................................................48 RF TRANSMITTERS/
Trace Systems, Inc. ....................................................53
BUSINESS XGameStation .............................................................52 RECEIVERS
OPPORTUNITIES DESIGN/ENGINEERING/ Abacom Technologies .................................................92
Linx Technologies .......................................................28
EZ PCB .......................................................................64 Matco, Inc. ...................................................................52
REPAIR SERVICES
BUYING ELECTRONIC Blink Manufacturing .....................................................52 ROBOTICS
ExpressPCB ................................................................29
SURPLUS EZ PCB .......................................................................64 BalBots.com ................................................................83
Front Panel Express LLC ............................................63 COMFILE Technology ...................................................3
Earth Computer Technologies .....................................16 GME Technology ........................................................53 CrustCrawler ...............................................................96
GreenChip ...................................................................52 PCB Cart .....................................................................89 Hobby Engineering ......................................................26
Jaycar Electronics . ......................................................17 PCB Pool .....................................................................51 Jameco ..................................................................65, 83
Pulsar, Inc. ..................................................................52 LabJack .......................................................................16
CCD CAMERAS/VIDEO R4Systems, Inc. ..........................................................41
Trace Systems, Inc. ....................................................53
Lemos International Co., Inc. ......................................15
Lynxmotion, Inc. ..........................................................64
Net Media ......................................................................2
Circuit Specialists, Inc. ...........................................98-99 Picobotics ....................................................................28
Matco, Inc. ...................................................................52
PCB Fab Express ........................................................53
EDUCATION RidgeSoft ....................................................................41
Robotics Group ...........................................................16
PolarisUSA Video, Inc. ................................................11 Atlantic Int’l Institute, Inc. ............................................56 Robot Power ...............................................................52
Ramsey Electronics, Inc. ......................................42-43 BalBots.com ................................................................83 Zagros Robotics ..........................................................51
Command Productions ................................................27
CIRCUIT BOARD EMAC, Inc. ..................................................................41 SATELLITE
Hobby Engineering ......................................................26
ASSEMBLY RidgeSoft ....................................................................41
Lemos International Co., Inc. .......................................15
XGameStation .............................................................52
Flextron Circuit Assembly ...........................................52
ENCLOSURES SECURITY
CIRCUIT BOARDS Information Unlimited ..................................................27
Integrated Ideas & Technologies, Inc. ...................10, 63
Blink Manufacturing .....................................................52 Linx Technologies .......................................................28
Matco, Inc. ...................................................................52
Cunard Associates ......................................................52
ExpressPCB ................................................................29 KITS & PLANS PolarisUSA Video, Inc. ................................................11
EZ PCB .......................................................................64
Flextron Circuit Assembly ...........................................52
Maxstream ..................................................................64
C & S Sales, Inc. .........................................................73
DesignNotes.com, Inc. ................................................29
TEST EQUIPMENT
Micromint .....................................................................93 Earth Computer Technologies ....................................16 Bellin Dynamic Systems, Inc........................................52
PCB Cart .....................................................................89 EMAC, Inc. ..................................................................41 C & S Sales, Inc. .........................................................73
PCB Fab Express ........................................................53 Hobby Engineering ......................................................26 Circuit Specialists, Inc. ...........................................98-99
PCB Pool .....................................................................51 Industrial Ventures ......................................................82 Conitec DataSystems...................................................53
Pulsar, Inc. ..................................................................52 Information Unlimited ..................................................27 DesignNotes.com, Inc. ................................................29
R4Systems, Inc. ..........................................................41 Jaycar Electronics ........................................................17 Electronic Design Specialists .......................................26
Saelig Company, Inc. ............................................56, 67 QKITS ..........................................................................52 GME Technology ........................................................53
RABBIT Semiconductor ...............................................37 Jaycar Electronics ........................................................17
COMPONENTS Ramsey Electronics, Inc. .......................................42-43
Scott Edwards Electronics, Inc. ...................................92
LabJack .......................................................................16
Link Instruments ............................................................5
XGameStation .............................................................52 Madell Technology ......................................................23
Bellin Dynamic Systems, Inc. ......................................52 Pico Technology Ltd. UK..............................................78
Electronix Express ......................................................36 Saelig Company, Inc. ............................................56, 67
Front Panel Express LLC .............................................63
Jameco ..................................................................65, 83
LASERS Trace Systems, Inc. ....................................................53
Lemos International Co., Inc. ......................................15 Information Unlimited ..................................................27
Linx Technologies .......................................................28
Maxstream ..................................................................64
TOOLS
Micromint .....................................................................93 MISC./SURPLUS C & S Sales, Inc. .........................................................73
Pulsar, Inc. ..................................................................52 GME Technology ........................................................53
All Electronics Corp. ....................................................49 Madell Technology ......................................................23
COMPUTER Front Panel Express LLC .............................................63
GreenChip ...................................................................52
Halted Specialties Co. .................................................79 VIDEO
Hardware Surplus Sales of Nebraska ..........................................62
ActiveWire, Inc. ...........................................................52 Multilabs ......................................................................48
COMFILE Technology ...................................................3
Diskology .....................................................................53 MOTORS WIRE, CABLE
Earth Computer Technologies ....................................16
Halted Specialties Co. .................................................79 Jameco ..................................................................65, 83
PCB Fab Express ........................................................53 & CONNECTORS
Surplus Sales of Nebraska...........................................62
OPTICS DesignNotes.com, Inc. ................................................29
Microcontrollers / I/O Boards Flextron Circuit Assembly ...........................................52
Abacom Technologies..................................................92 Anchor Optical Surplus ...............................................27 Jameco ..................................................................65, 83

January 2006 97
Full Page.qxd 12/7/2005 2:46 PM Page 98

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

PowerSupply1 Switching Power Supplies Programmable DC Power Supplies


New to CircuitSpecialists.com are these Highly The CSI 3600 Series
Reliable, Universal AC input/full range single output Programmable DC Power
power supplies. Choose between various 40, 60, 100 & Supplies are equipped with a
150 Watt versions. They have the approval of UL and back-lit LCD display, number
C UL and come 100% full load burn-in tested and are keypad and a rotary code
protected with overload/over and voltage/short circuit. switch for ease of use & quick
Also included is a 2 year warranty. programming. Voltage, Current & Power can all be displayed on the
LCD or computer screen (with optional RS-232 interface module). It can
PowerSupply1 Qty 1 Qty 10 Qty 25 Qty 100 Qty 500 Qty 1000
be operated at constant current mode, constant voltage mode & constant
40W Series power mode. It also can be set with maximum limits for current &
Available in $28.99 $26.09ea $24.53ea $21.95ea $15.98ea $13.79ea
5,12,15,24,48V power output. Ideal instruments for scientific research, educational labs
60W Series
or any application requiring a sophisticated DC-power source.
Available in $32.99 $29.69ea $27.91ea $25.95ea $17.69ea $15.49ea Model CSI3644A CSI3645A CSI3646A
5,12,15,24,48V
100W Series DC Voltage 0-18V 0-36V 0-72V
W!
Available in $38.50 $34.65ea $32.57ea $29.99ea $21.18ea $18.49ea DC Current 5A 3A 1.5A
3.3,5,7.5,12,15,24,48V NE
150W Series Power (max) 90W 108W 108W
Available in $48.99 $44.09ea $39.00ea $37.50ea $26.93ea $23.49ea
5,7.5,9,12,24,28,36V Only $199.00 Each!
Programmable
Programmable DC Electronic
Electronic Loads
www.Cir cuitSpecialists.com The CSI 3700 series electronic
loads are single input program-
mable DC electronic loads that
Circuit Specialists Soldering Station $34.95! provide a convenient way to
w/Ceramic Element & Seperate test batteries and DC power
Solder Stand supplies. It offers constant current mode, constant resist-
•Ceramic heating element for more accurate ance mode and constant power mode. The backlight LCD,
temp control numerical keypad and rotary knob make it much easier to
•Temp control knob in F(392° to 896°) & use. Up to 10 steps of program can be stored.
C(200° to 489°)
•3-prong grounded power cord/static safe tip In Business Model CSI3710A CSI3711A
•Seperate heavy duty iron stand Input Voltage 0-360V DC 0-360V DC
W!
•Replaceable iron/easy disconnect Item# NE Input Current 0-30A DC 0-30A DC
•Extra tips etc. shown at web site Rapid Heat Up! Input Power 0-150W 0-300W
CSI-STA
CSI-STATION1A
CSI3710A: $349.00 CSI3711A:
CSI3711A: $499.00
Also Available w/Digital Display SMD Hot Tweezer
& MicroPr
MicroProcessor
ocessor Controller
Controller Adaptor Fits CSI Bullet Style
Style B/W Camera
Stations 1 & 2, and
also CSI906 •Weather Proof
Item#
CSI-STA
Since 1971 •Signal System: EIA
CSI-STATION2A $29.00 •Image Sensor: 1/3" LG CCD
$49.95 Item# •Effective Pixels: 510 x 492
CSITWZ-STA
CSITWZ-STATION •Horizontal Resolution: 420TV lines
Details at Web Site •Min. Illumination: 1Lux/F1.2
> Soldering Equipment & Supplies > Soldering Stations Item# VC-305
Details at Web Site 1-4:$49.00
$49.00 5+:$46.00
$46.00
Heavy Duty Regulated Linear > Miniature Cameras (Board, Bullet, Mini's, B/W, Color) & Security
Bench Power Supplies
W!
NE •Multi-loop high precision voltage regulation High Capacity Nickel Metal Hydride
•Automatic voltage & current stabilizing conversion Rechargeable Batteries
•Automatic radiant cooling system
•Over-heating protection
CSI5030S 0-50v/0-30amp
CSI5030S: $595.00
Item# 1+ 10+ 100+
CSI12005S 0-120v/0-5amp
CSI12005S: $595.00
Details at Web Site AA2500mAH “AA” cell 2500mAH $1.45 1.25 1.09
CSI20002S 0-200v/0-2amp
CSI20002S: $595.00 AAA850MAH “AAA”cell 850mAH $0.99 0.65 0.51
> Test Equipment > Power Supplies
C3500MAH “C” cell 3500mAH $2.99 2.30 2.09
D11000MAH “D” cell 11000mAH $6.95 5.55 4.39
Dual Output DC Bench Power Supplies 9V220MAH “9V” cell 220mAH $3.69 3.29 2.99
High stability digital read-out bench power supplies Details at Web Site
featuring constant voltage and current outputs. Short- As Low As
> Batteries & Accessories > NiMH Batteries
circuit and current limiting protection is provided. $93.00!
SMT PC boards and a built-in cooling fan help ensure Triple Output Bench Power Supplies
reliable performance and long life.
with Large LCD Displays
•Source Effect: 5x10-4=2mV Output: 0-30VDC x 2 @ 3 or 5 Amps
•Load Effect: 5x10-4=2mV HOT & 1ea. fixed output @ 5VDC@3A
•Ripple Coefficient:: <250uV ITEM! Source Effect: 5x10 -4=2mV
•Stepped Current: 30mA +/- 1mA Load Effect: 5x10 -4 =2mV
*All 3 Models have a 1A/5VDC Fixed Output on the rear panel* Ripple Coefficient: <250uV
CSI3003X-5 0-30v/0-3amp 1-4: $97.00 5+: $93.00
CSI3003X-5: Stepped Current: 30mA +/- 1mA
Input Voltage: 110VAC
CSI5003X-5 0-50v/0-3amp 1-4: $107.00 5+: $103.00
CSI5003X-5: CSI3003X3 0-30VDCx2 @3A $179.00 5+: $169.00
CSI3003X3: W!
CSI3005X5 0-30v/0-5amp 1-4: $119.00
CSI3005X5: $119.00 5+: $115.00
$115.00 CSI3005XIII 0-30VDCx2 @5A $219.00 5+: $209.00
CSI3005XIII: NE
Details at Web Site > Test Equipment > Power Supplies Details at Web Site > Test Equipment > Power Supplies

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

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


Premier Repairing System w/Power Supply 2.9GHz RF Field Str
Strength
ength Analyzer
Microprocessor controlled design that pro-
Fantastic Low
vides stability and precision of temperature The 3290 is a high quality hand-held Price:
and airflow settings during the rework RF Field Strength Analyzer with wide $1899.00!
process. A full digital display of tempera- band reception ranging from 100kHz
•WFM/NFM/AM/SSB modulated signals may
ture and power source make everything to 2900MHz.The 3290 is a compact & be measured.
clear to the user while the unit provides lightweight portable analyzer & is a •Signal Levels up to 160Channels can be
vast flexibilty at the rework station with must for RF Technicians. Ideal for displayed simulaneously on the LCD
the built-in adjustable power supply that provides 0- Item# CSI768 testing, installing & maintenance of •PLL tuning system for precise frequency
15V and 2A of power. Hot air soldering and adjust- Mobile Telephone Comm systems, measurement and tuning
ment of temperature are controlled by a micro chip and
Only Cellular Phones,Cordless phones, pag- •Built-in Frequency Counter
•LED Backlight LCD (192x192 dots)
sensor thus giving tremendous accuracy and reliability. $289.00! ing systems, cable &Satellite TV as
•All fuctions are menu selected.
well as antenna installations.May also •RS232C with software for PC & printer
•Iron Output Voltage: 24V / 35W be used to locate hidden cameras using interface
•Temperature Range: 100-480°C / 212-896°F RF transmissions. •Built-in speaker (Includes Antenna)
•DC Power Supply: 0-15V / 2A Item# 3290
Details at Web Site > Soldering Equipment & Supplies Details at Web Site > Test Equipment > RF Test Equipment

B&W Pinhole Bullet Camera w/ 1/3” CCD LogicPort


LogicPort Logic Analyzer
•Weather Resistant Housing The LogicPort provides 34 sampled channels $369.00!
Item# VC-305CP
•Signal System: EIA including two state-mode clock inputs. It con-
•Image Sensor: 1/3" CCD Bullet Hole $49.00
1-4:$49.00 nects to your PC's USB port for ultimate con-
•Effective Pixels: 510 x 492 $46.00
5+:$46.00 venience and performance.
•Horizontal Resolution: 380TV lines •34 Channels
Details at Web Site •500MHz Timing mode sample rate
•Min. Illumination: 1Lux/F1.2 > Miniature Cameras (Board, Bullet, Mini's, B/W, Color)
> •200MHz State mode sample rate
4 Channel Digital Video Recorder •Real-time Sample Compression
•Multi-level trigger
w/250GB HD Installed •+6V to -6V Adjustable Threshold Item# LOGICPORT
LOGICPORT
•Signal System: NTSC Special Details at Web Site > Test Equipment > Logic Analyzers
•Operation System: Embedded RTOS
•Video Input: BNC x 4
SALE!
•Video Output: BNC x 1 / VCR OUT Plug-In Switching Power Supplies
•Resolution: NTSC 720x480/ NTSC 640x240 These 15W switching power
•Record Frame Rate: 30fps total Item #:VR-214-200G
VR-214-200G supplies are an inexpensive way
•HD Capacity: 250GB to power devices with robust
•Backup: VCR Only regulated power and low ripple
•Alarm In/Out: 4 in NO/NC, 1 Out No $299.00 noise. The low-profile design
Details at Web Site > Miniature Cameras (Board, Bullet, Mini's, B/W, Color) & Security allow you insert them into a
power strip without losing any of the other plugs. Designed
with an energy efficient switching technology, the
Digital Storage Oscilloscope Module Universal AC input works from 90-264VAC with no min-
imum load required and a 100% burn-in test to ensure they
Convert any PC with USB interface to a high will perform as stated right out of the box. They come with
performance Digital Storage Oscilloscope. a 1.8 meter output cord and a 5.5 x 2.1mm female plug. UL
This is a sophisticated PC basedscope adaptor and cUL approved.
providing performance compatible to Item# Description
mid/high level stand alone products costing 3A-161WU05 5 Volts / 2.6 Amps
much more! Comes with two probes. 3A-161WU06 6 Volts / 2.5 Amps
3A-161WU09 9 Volts / 1.70 Amps
Details & Software 3A-161WU12 12 Volts / 1.25 Amps
Download at Web Site SALE! 3A-161WU18 18 Volts / 0.84 Amps
> Test Equipment > Oscilloscopes/Outstanding Prices 3A-161WU24 24 Volts / 0.63 Amps
PC based Digital Storage
Oscilloscope, 200MHz 5GS/s
Each 10+ 25+ 100+
equiv. sampling USB interface Item# 200DSO Only$829.00 $9.95 $8.95 $8.49 $6.95
Details at Web Site > Test Equipment > Power Supplies

SONY Super HAD CCD Color SONY Super HAD CCD™ SONY Super HAD CCD Color
Weatherproof
eatherproof IR Cameras Weatherproof
eatherproof IR Camera
equipped camera’s feature dramatically
•Day & Night Auto Switch
•Day & Night Auto Switch improved light sensitivity •Signal System: NTSC
•Signal System: NTSC •Image Sensor: 1/4" SONY Super HAD CCD
•Image Sensor: 1/3" SONY Super HAD CCD SONY Super HAD CCD Color Camera •Horizontal Resolution: 420TV lines
•Horizontal Resolution: 480TV lines •Min. Illumination: 0Lux
•Min. Illumination: 0Lux
4 8 0n e s Item# VC-819D
i
T V oLl u t i o n Item# VC-827D 1-4:$149.00
$149.00 5+:$139.00
$139.00
R e s 1-4:$89.00
$89.00 5+:$79.00
$79.00
SONY Super HAD CCD B/W •Weather Proof
Weatherproof •Signal System: NTSC SONY Super HAD CCD Mini
eatherproof IR Camera •Image Sensor: 1/4" SONY Super HAD CCD
•Day & Night Auto Switch •Horizontal Resolution: 420TV lines B/W Board Camera
•Signal System: EIA •Min. Illumination: 1Lux/F1.2 •Signal System: EIA
•Image Sensor: 1/3" SONY Super HAD CCD Item# VC-805 1-4:$69.00
$69.00 5+:$65.00
$65.00 •Image Sensor: 1/3" SONY Super HAD CCD
•Horizontal Resolution: 420TV lines •Horizontal Resolution: 420TV Lines
•Min. Illumination: 0Lux •Min. Illumination: .05Lux/F1.2
Item# VC-317D 1-4:$69.00
$69.00 5+:$65.00
$65.00 Details at Web Site Item# VC-103 1-4:$33.00
$33.00 5+:$29.00
$29.00
> Miniature Cameras(Board,Bullet,Mini’s, B/W, Color)

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

Vol. 27 No. 1
Micro-Control your

NUTS & VOLTS


World with the
NEW StampWorks
Experiment Kit
Our popular StampWorks Manual
has been revised and rewritten
and is back better than ever!
The StampWorks manual includes
35 experiments based on the
BASIC Stamp® 2 microcontroller

CanadArm • ANALOG SYNTHESIZER • PLAYSTATION ROBOT CONTROLLER


and the amazing Professional
Development Board. StampWorks
gives you the hardware, the
electrical components and, most
importantly, the know-how to
become a confident embedded
programmer. Working your way
through StampWorks you will learn
about efficient embedded design,
connecting circuits and “smart”
sensors to the BASIC Stamp, adding
computer control to your projects,
and “Power PBASIC” programming
techniques.

After you’ve worked your way through


StampWorks you’ll be able to: flash LEDs,
use 7-segment and LCD displays, monitor one
or several push-buttons or switches, add sounds
and sound effects to your projects, build a simple
light-controlled theremin, control servos and stepper
motors, measure temperature, voltage, and so much
more! When you are finished, you will be able to
write your own BASIC Stamp programs to control
your hobby, engineering, and student projects using a
variety of electronic circuits – and you’ll be able to do
it with the confidence.

Name Stock # Price


StampWorks Experiment Kit 27297 $249.00 $5.50 $9.25
Ja n u a r y 2 0 0 6

U.S. CANADA
StampWorks Manual 27220 $24.95 0 1>

0 74470 89295 3
www.nutsvolts.com

Vous aimerez peut-être aussi