01 - 2007
01 - 2007
01 - 2007
Vol. 5 No. 1
SERVO MAGAZINE
VINNIE INTELS OPEN CV DIVIDERS AND TIMERS SOUNDGIN
Get an HB-25 Two-pack (#29150) for only $79.95
and save $20! The Parallax HB-25 Motor Controller (#29144;
$49.95) provides a simple and dependable motor control system
for your motorized projects. With an efficiently integrated heat
dissipation design, the HB-25 easily manages 12V motors drawing
25A of current! These are sizable motors, as shown in our two
example robots which are both controlled by HB-25s.
robotic kits
Robotic Kits Components...
chassis
...theres something for everyone!
Robotic kits help you and your child to experience and learn about perception and
control using a variety of sensors and actuators. Challenge yourself with Jamecos
servos selection of fun and interactive kits! You or your child can assemble the kits and
then enjoy endless hours of discovery.
Engineers,
.
Weve Got
It All!
motors
I-800-374-576
4
WWW.ROBO
TSTORE.CO M
CATALOG I62
test equipment
WWW.ROBOTSTORE.COM/SRC
I-800-374-5764 Call for your free catalog today!
software
books
Full Page.qxd 12/6/2006 9:56 AM Page 3
SERVO 01.2007 3
TOC Jan07.qxd 12/7/2006 4:59 PM Page 4
Columns Departments
08 Robytes by Jeff Eckert 06 Mind/Iron
Stimulating Robot Tidbits
SERVO Magazine (ISSN 1546-0592/CDN Pub Agree#40702530) is published monthly for $24.95 per year by T & L Publications, Inc.,
430 Princeland Court, Corona, CA 92879. PERIODICALS POSTAGE PAID AT CORONA, CA AND AT ADDITIONAL ENTRY MAILING
OFFICES. POSTMASTER: Send address changes to SERVO Magazine, P.O. Box 15277, North Hollywood, CA 91615 or
Station A, P.O. Box 54,Windsor ON N9A 6J5; [email protected]
4 SERVO 01.2007
TOC Jan07.qxd 12/7/2006 5:05 PM Page 5
34 Exploring Soundgin
by Gordon McComb
Robotics and sound generation
are natural playmates. Use this
Features & Projects
synthesizer to add life to your builds.
39 DARwIn
by Karl Muecke, Patrick Cox, and 57 Beginners Robotics on
$50 a Month
Dennis Hong
Part 2: Parts, wires, and motors.
by Paul Pawelski
44 Hacking Roger
Part 2: Building the CIRC bot.
by Monty Reed
Roger Robot makes a perfect platform
62 Seeing With OpenCV
by Robin Hewitt
for beginning hackers. Part 1: An Introduction to OpenCV
Intels free, open-source computer
52 Robot Safety vision library. Learn where to get it,
by Bryan Bergeron how to set it up on your computer,
A discussion of robot design, and work with the OpenCV interfaces.
68
construction, and operating practices
that can improve the survivability of ROBOGames Prep
your robots and minimize the safety by Dave Calkins
risks to you and bystanders. This month: Tetsujin.
Page 20
SERVO 01.2007 5
Mind-FeedJan07.qxd 12/7/2006 2:31 PM Page 6
Published Monthly By
T & L Publications, Inc.
430 Princeland Court
Corona, CA 92879-1300
(951) 371-8497
FAX (951) 371-3052
Product Order Line 1-800-783-4624
www.servomagazine.com
Mind / Iron Subscriptions
Inside US 1-877-525-2539
by Michael Simpson Outside US 1-818-487-4545
P.O. Box 15277
North Hollywood, CA 91615
Last year, I built a walker robot energized at once. PUBLISHER
for the Robot Fest. I christened this The Face Walker always had to Larry Lemieux
robot Face Walker. It was featured have three legs in contact with the [email protected]
in the August, September, and ground at any one time to support
October issues of SERVO Magazine. the total weight of the robot. Even ASSOCIATE PUBLISHER/
VP OF SALES/MARKETING
My goal was to create a robot that when standing still, a walker will use Robin Lemieux
would catch the attention of the large amounts of power. This is not [email protected]
spectators and hold their interest true with a wheel-based robot.
while I gave my presentation. I The 7.2V 3,000 mAh battery CONTRIBUTING EDITORS
had a nice little speech all planned. pack would power the Face Walker Jeff Eckert Tom Carroll
Gordon McComb David Geer
What I had not planned on was the base for about five minutes before it Pete Miles Kevin Berry
freak factor. needed an hour charge. On a Dave Calkins Bryan Bergeron
What actually happened was that wheeled robot of the same weight, Karl Muecke Patrick Cox
the spectators were so enthralled by you get over an hour of run time on Dennis Hong R. Steven Rainwater
the look of Face Walker, that they the same battery. This makes walkers Paul Pawelski Robin Hewitt
Monty Reed Lawrence Feir
didnt hear a word I said. Many very inefficient for most tasks. Michael Simpson Gerard Fonte
individuals left only to return with However, when it comes to education Bryce Woolley Evan Woolley
friends or family members. What is or studying the human condition, you Aaron Taggart Brian Benson
it that made the Face Walker so cant beat a walker. Adam Wrigley Bradley Hanstad
awe-inspiring? The Face Walker had In order to top last years Robot
CIRCULATION DIRECTOR
what I now call the freak factor. Fest, I have started early on my next Tracy Kerley
I had a chance to review videos robot exhibit. This robot will be a [email protected]
that were taken of the spectators biped walker with 19 servos
while they were watching the Face controlling various limbs, as well as WEB CONTENT/STORE
Walker in action. Almost all of them the neck. Lets call him Kronos. Michael Kaudze
[email protected]
were watching the face. The face Kronos is still in the experimental
would animate and make noises as stage but while he is in the PRODUCTION/GRAPHICS
the robot would move. Individuals sitting position, I added a random Shannon Lemieux
saw this walker robot thingy that movement generator and created
looked something like a spider, but as some routines to simulate breathing. ADMINISTRATIVE ASSISTANT
Debbie Stauffacher
it turned to face them, it would wink The bots chest would simply move in
or say something. Immediately they rhythm and the head would turn Copyright 2007 by
would smile and point. It is when we slightly at random intervals. T & L Publications, Inc.
start to add human characteristics to This was freaky enough, but I All Rights Reserved
machines that we start to evoke wanted to take it a step further and All advertising is subject to publishers approval.
emotions, which can range from added some random fidget We are not responsible for mistakes, misprints,
amazement to outright fear. movements. He started moving his or typographical errors. SERVO Magazine
So, I created a really cool robot, arms or would change the angle of assumes no responsibility for the availability or
but what can it do? This is the kind his legs as though he was trying to condition of advertised items or for the honesty
of the advertiser.The publisher makes no claims
of question I often get when get comfortable. Let me tell you, for the legality of any item advertised in SERVO.
showing walker robots. The power this even freaked me out. Is it This is the sole responsibility of the advertiser.
requirements for a fully articulated memories of Chucky or is it that Advertisers and their agencies agree to
walker are massive. In many cases, we just are not used to human indemnify and protect the publisher from any
you have 12-24 servos that are all attributes on a mechanical device? and all claims, action, or expense arising from
advertising placed in SERVO. Please send all
editorial correspondence, UPS, overnight mail,
Mind/Iron Continued and artwork to: 430 Princeland Court,
Corona, CA 92879.
6 SERVO 01.2007
Mind-FeedJan07.qxd 12/7/2006 2:31 PM Page 7
Dear SERVO:
Thank you for running Paul Pawelski's "Beginner's
Robotics on $50 a month." Sure, it's fun to lust after multi-
jointed 'bots costing four figures, but robotics doesn't have
to be expensive. This series promises to be an excellent way
for newcomers to become acquainted with the field or
hobby without risking a lot of cash. Paul's article affirms that
SERVO Magazine continues to appeal to a broad range of
ages and personal budgets.
K. Bower
Kamloops BC
(&5"3&"--*'&
3FBEZ
TFU
HPy
HFUZPVSESFBNKPC
.BLF
BZFBS
XJUI/0DPMMFHFEFHSFF
SERVO 01.2007 7
Robytes.qxd 12/7/2006 1:30 PM Page 8
re you an avid Internet surfer that of the Demonstrator, but with an arts sake has only one function: to
A who came across something
cool that we all need to see? Are
additional 1,000 lbs (increased to
3,400+ lbs) of payload that can be
fall apart and reassemble itself
autonomously.
you on an interesting R&D group used for increased range, endurance, The chairs operation involves
and want to share what youre or mission hardware. Interestingly, 14 motors, two gearboxes, and
developing? Then send me an Boeing says that the unmanned various other mechanical parts, and
email! To submit related press hardware and paraphernalia devel- a computer uses special algorithms
oped for this program can be adapted to tell the chair how to find missing
releases and news items, please
to any helicopter. components and rebuild itself.
visit www.jkeckert.com
Waxing philosophical, Dean noted
Jeff Eckert that its operation is somewhat like
what we do in our own lives. We
Give em the Chair fall apart and put ourselves back
Unmanned Helicopter together.
Takes Off Maybe it has no utilitarian value,
but it could have significant
entertainment value if you place a
couple of them at the dinner table
and invite the in-laws over. In any
event, the chair will be exhibited in art
shows and museums around the
world and eventually sold to a gallery
or collector.
8 SERVO 01.2007
Robytes.qxd 12/7/2006 1:30 PM Page 9
Robytes Industrial
jobs that you dont really want to do, Pittsburgh. You are invited to nomi-
Strength
such as cleaning up after a party,
taking out the trash, loading the
dishwasher, sobering up Uncle Ralph,
nate your favorite robot at www.
robothallof fame.org/nominate.
php. Only one nomination is allowed
Motor Control
and so on. According to Ng, a
practical maidbot will need to
unite areas of artificial intelligence,
per computer, and (duh!) previous
inductees are not eligible. for All
including speech processing AX2550
navigation, manipulation, planning, AX2850
reasoning, machine learning, and
One for the Gripper
vision into one package, which If your bot is having trouble
poses a substantial challenge. grasping things using rubber-clad fin-
In the present stage of develop- gers or other standard end effectors,
AX1500
ment, the team designed an maybe you should consider grippers
algorithm that allowed STAIR to that are fitted with razor-sharp
recognize familiar features in various needles. Assuming you arent doing a
objects and select the right grasp to pick-and-place operation on hamsters,
pick them up. The robot was trained the operation could be improved with
in a computer-generated environment the GRN needle grippers from SAS
to pick up a cup, a pencil, a brick, a Automation (www.sasgripper.com).
book, and a martini glass. The The company recently upgraded AX3500
algorithm locates the best place for the product to incorporate titanium
the robot to grasp an object, such as needles rather than the previous steel
Get the DC Motor Controllers
a cups handle or a pencils midpoint. ones, thus offering longer production that are at the heart of many of todays
The robot takes a few pictures, life and lower overall replacement worlds most demanding Industrial,
reasons about the 3-D shape of the costs. The needles extend from 3 to 5 Military and Research Robots, and other
object based upon computing the mm from the gripper body and are innovative Motion Control applications.
location, and reaches out and grasps pneumatically activated. The grippers
the object, Ng said. are compatible with the entire - RS232, RC, or Analog input
In tests, the robotic arm picked SAS end-of-arm tooling (EOAT) line - Speed or Position Mode
up items similar to those for which it and come in both 14 and 20 mm - Dual channel output up to 140A
was trained, as well as unfamiliar mounting shaft sizes. Among the - Optical Encoder Inputs
objects including keys, screwdrivers, usual applications are gripping fabric - Intelligent Current Limiting
and rolls of duct tape. Which brings or mesh, insert molding for floor mats - Thermally Protected
- Field Upgradable Firmware
up the question of what STAIR will and other automotive materials,
- Enclosed and Board-Level versions
do with the duct tape after picking it and handling of lightweight porous - and many more advanced features ...
up. Is a Red Green robot in the matting. SV
works?
Model Amps Features Price
AX1500 2x30A B $275
AX3500 2x60A O-R-B $395
Add Your AX2550 2x120A A $495
Nomination AX2550HE 2x140A A $645
AX2850 2x120A O-A $620
AX2850HE 2x140A O-A $770
Just a reminder A=Aluminum Extrusion, B=Board-Level, O=Optical Encoder In,
that the fourth annual R= RC outputs. Qty1 price. Contact us for OEM Qty prices
induction ceremony
for the Carnegie
Mellon Robot Hall of
Fame is scheduled for
this summer (date to The GRN grippers now feature titanium needles. 8180 E.Del Plomo Dr.
Photo courtesy of SAS Automation. Scottsdale AZ USA 85258
be announced) in
(602) 617-3931 - [email protected]
www.roboteq.com
SERVO 01.2007 9
TwinTweaks.qxd 12/7/2006 1:32 PM Page 10
THIS
MONTH:
Mighty
Morphing
Bioloid
for an educational robot, because it Robots in Disguise ... much difficulty. Most of the beginner
allows the Bioloid to achieve true auton- designs can be built in a matter of
omy and interact with its environment. As Other Robots minutes, even for novice roboticists.
The comprehensive kit includes We decided that an effective way Next we tried our hand at an
designs for four impressive robots with to gauge the Bioloids effectiveness as intermediate level robot the spider. We
up to 18 joints. The four advanced an educational tool would be to follow found out that dealing with the pockets
designs are a puppy, a tyrannosaurus the natural curriculum of the kit. With becomes somewhat easier with practice.
rex, the ultra-cool sounding King Spider that in mind, we set out to build the A thin screwdriver is a handy way to pro-
and, of course, the iconic humanoid. simplest model a crossing gate. While vide some extra leverage on the nuts, as
Apart from all of the obviously cool this might seem like an underwhelming long as youre careful not to screw up the
stuff in the kit, there are some final project to build first out of such a cool threads. Intermediate level bots take a bit
touches that we really appreciated. kit, we appreciate the fact that Robotis longer to build more like a few hours
Probably the biggest pleasant surprise has provided a simple way for novice instead of tens of minutes. But once that
was that the Bioloid came with batter- tinkerers to get their feet wet. A curso- spider was finished, it was really exciting
ies included, a phrase practically ry glance at the kit reveals some pretty to see that a ho-hum crossing gate could
unheard of nowadays. And if that intimidating stuff tons of tiny fasten- morph into something so cool.
wasnt cool enough, the batteries are ers, intricate frame pieces, lots of cables After graduating from the interme-
rechargeable, and the kit comes with a of various lengths, and a whole mess of diate level designs, we felt confident
charger. We had been working with the Dynamixel servo modules. With such a enough to tackle an advanced design.
kit for a while before we realized that daunting kit on hand, a painfully simple The puppy seemed like a good choice,
the charger was made for AC outlets, design doesnt look so painful after all. because it would be interesting to see
but adapters are pretty easy to find. The crossing gate did indeed use how this modular robot dog compared
very few parts, but it still provided an to other robots that were designed sole-
Commanding the adequate introduction to the kit and its ly with imitating mans best friend in
Bioloid unique attributes. One such attribute is mind. The advanced designs take many
a component of the Bioloids design, hours to complete, so it might be a good
The programming environment for presumably intended to make construc- idea for roboticists that cannot devote
the Bioloid is an interesting beast, and, tion easier: on every servo module and their undivided attention to the Bioloid
like the kit itself, comes in multiple the CM-5, there are pockets that capture to find a good stopping point in the mid-
forms. The main program editor for the the nuts. This sounds like a nice way to dle. Fortunately, thats pretty easy to do
Bioloid looks like a Frankensteined free up some hands when building the with the Bioloid puppy the limbs are
version of Easy C and Visual Basic, with robot, and it often is. Sometimes, built first, and then everything is
literal blocks of code that encompass though, we think the Bioloid kit falls vic- connected to the body. The synthesis of
familiar commands like if, else, and for tim to a stack up of tolerances. When the limbs into a complete bundle of
loops. Sometimes the written youre dealing with mass produced plas- puppy joy is by far the most difficult step,
commands inside the blocks are accom- tic parts that are already a tight fit, small but the end result is wonderfully enter-
panied by curious pictures perhaps imperfections can stymie even the most taining. All it takes after construction is a
meant to appeal to the more visual tenacious of efforts. Unfortunately, it quick download of a sample program
programmer, but often times we found seems like to us that this might from the CD, and the puppy is ready to
our selves scratching our heads and wish- sometimes be the case with the Bioloid. bring smiles to the faces of young and
ing for a Rosetta stone of programming. It could just be us, but it seems like on old roboticists alike. The robotic puppy
The other programming environ- some of the modules that we could only can scamper along at a brisk pace,
ment is the Motion Editor, something ever get three of the requisite four nuts perhaps not with the agility of other
akin to what most other servo based captured in the pockets. Even so, the
robots have. Individual servo motors crossing gate came together without THE BIOLOID SPIDER.
are assigned values
to move to certain YOU GUESSED IT ... THE CROSSING GATE!
positions. The cool
thing is that a series
of commands in
the motion editor
can be saved in
a block and
implemented in the
behavior control
editor. Synergy is a
beautiful thing.
SERVO 01.2007 11
TwinTweaks.qxd 12/7/2006 1:33 PM Page 12
robot dogs, but its certainly quick and tured nuts hullabaloo was worth some- more traditional robotic designs, so
quirky enough to hold its own. The robot thing when the ear fell off, not a single modular robots are the perfect candidates
puppy can sit, eat from your hand, and piece was lost. The Bioloid, like many for technological mimics. The snake was
even do head stands. And as a testa- other robotics kits, is afflicted with the literally quite straightforward to build, but
ment to the Bioloids interchangeable robotic equivalent of the common cold since there was no example program on
nature, a few modifications to the snout loose screws. Its an inevitable malady the CD, we had to come up with our own.
later we had a passable robot cat, quite unless you use Loctite or Nylocks or some An inchworm-like motion was
effective at mimicking the real thing. All other preventative measure, all of which perfectly suited to a synthesis of the
we had to do was reassign some of the are out of the question for modular Bioloids motion editor and behavior
behaviors in the program to buttons on robots that are disassembled and programming. The motion editor is
the CM-5 (we had removed the sensor reassembled repeatedly. While the folks reminiscent of the classic programming
module to achieve a more cat-like face), at Robotis have not implemented a solu- environments for many multiple servo
and the new robot cat was capable of tion for loose screws in the Bioloid, their based robots. By hooking the CM-5 into
the behaviors characteristic of real cats; somewhat frustrating design elements of your computer, you can dictate the motion
namely eating and sleeping. When one little pockets and such will hold onto the of each individual servo, and you even
of the cats ears fell off, we affectionate- loose pieces for dear life, at least cutting have a cool 3D animation for feedback.
ly nicknamed him Vinnie. down on the frustration of trekking out Programming a snake motion was
Vinnies ear problem actually alerted to your local hobby store to find replace- fairly easy we just had to have our line
us to one of the pleasant aspects of the ments for lost mini nuts and screws. of servos give a passable imitation of a
Bioloids design. Apparently, all the cap- sine wave. Our single pulse of snake
Modular Mayhem motion could then be saved and imple-
SLITHERING ALONG ... mented in the behavior control program-
Once we were thoroughly mer. In many programming environ-
acquainted with the designs ments, a repetitive motion like the one
included in the Bioloid kit, we we wanted for our slithering snake could
were ready to branch out with best be achieved by the brute force
our own creations. A classic method of copy and paste. The Bioloids
guise taken by modular robots software allowed for the much more
is that of a snake. The highly elegant solution of a for loop or some
articulated nature of the slithery similar command. We think this inclusion
reptile is hard to replicate with of real programming in the Bioloid kit is
very important for the Bioloids educa-
THE ALL-TOO-FAMILIAR ROBOT SNAKE. tional goals, because programming in lan-
guages like C is much more common than
the gait tables proffered by most modular
kits. Soon, we had a slithering snake that
was no where near as smooth as the real
thing, but it did indeed move.
Another advantage of modular
design is the prospect of shape shifting
on the fly. Sure, we were able to turn a
crossing gate into a spider into a puppy
into a snake, but each time we had to
12 SERVO 01.2007
TwinTweaks.qxd 12/7/2006 1:33 PM Page 13
completely disassemble and reassemble fly. The best we could do was to add a as it consumes every Dynamixel module
the bot. What would truly be amazing is claw to the end of the snakes tail and available in the kit. After assembling
a robot that could take the shape of a hope that would be enough to keep the beginner and intermediate designs,
crossing gate, spider, puppy, and snake wheel together. Unfortunately, we constructing the limbs of the humanoid
all without human intervention. Thats already had a flat tire because we need- should be a snap for any roboticist, but
right. Were talking about transformers. ed to include the not so sleek CM-5 in our attaching everything to the body is
snake, and the shaky connection made where the real challenge begins. At times
Shape Shifting for a wheel that any unicyclist would we were wishing for more than four
Snake Eyes avoid. Perhaps the time had come to collective hands, but eventually we were
move onto something bigger and better. able to complete the humanoid Bioloid.
If cool factor isnt compelling The humanoid Bioloid is filled with
enough of an argument, there are a The Derivative of personality. With the demo program,
multitude of practical reasons that shape Optimus the Bioloid will fend off obstacles with
shifting robots are a popular quest karate moves, dance, lay down, and of
among roboticists. Simply put, wheels are Advertisements for the Bioloid and course walk all over the place. While
great for smooth terrain, but when the the box of the bot itself are emblazoned perhaps not as agile as other bipedal
going gets rough, legs are more capable. with the iconic form of the humanoid servo walkers that we have worked
So why not always use legs? Because servo walker, so it seems appropriate that with, none of those other servo walkers
wheels are so much faster on smooth ter- the humanoid bot is the final, and could brag that they had been a puppy
rain. A conundrum there seems to be a presumably most difficult, design mere hours earlier. But is the Bioloid the
tradeoff between speed, simplicity, and detailed in the instruction manual. The proverbial jack of all trades, and there-
the ability to grapple with uneven terrain. humanoid design is indeed a challenge, fore master of none? Perhaps the
With shape shifting modular robotics,
there doesnt have to be a trade; you can A PROGRAM!
have it all. There is the possibility of hav-
ing a snake to tackle uneven terrain turn
into a wheel to race across flat ground.
Thats what we were aiming to
achieve with our snake bot a snake
that could curl up into wheel. It seems a
bit underwhelming, but its harder than it
sounds. Real shape shifting modular
robots have ways of reconfiguring on the
fly, something that the Bioloid lacks. Real
shape shifting robots have ways of recon-
necting and disconnecting modules with-
out human intervention, either through
autonomous latches or some other fancy
bit of technology. The only way the
Bioloid modules are connected are
through nuts and screws, so there really
wasnt an easy way to reconfigure on the
SERVO 01.2007 13
TwinTweaks.qxd 12/7/2006 1:34 PM Page 14
S C t
www.YostEngineering.com
icrex.com
cre com
SERVO 01.2007 15
MrRoboto.qxd 12/7/2006 8:21 AM Page 16
Tap into the sum of all human knowledge and get your questions answered here!
From software algorithms to material selection, Mr. Roboto strives to meet you
where you are and what more would you expect from a complex service droid?
by
Pete Miles
DATA
$73 (11001110)
CLOCK
DATA
$73 (11001110)
SERVO 01.2007 17
MrRoboto.qxd 12/7/2006 8:21 AM Page 18
LSB MSB
with both wired and MadCatz (www.madcatz.com) and
wireless controllers. the Lynxmotion controllers require
CLOCK Only one line of faster speeds to keep up with the
code needs to be controllers, whereas the Pelican
changed, depend- (www.pelicanper formance.com)
ing on whether you and Thrustmaster (www.thrust
STANDARD COMMON TIME are using a wired or master.com) have been shown to
PS2 DATA OVERLAP
wireless controller. work with regular BS2 Stamps.
If you are using Logitech (www.logitech.com) has a
a regular wired wireless controller, but I havent heard
WIRELESS
PS2 DATA
controller, set the of anyone successfully interfacing their
Mode to 3, and set controller with a microcontroller.
the mode to 1 for a It is interesting how processor speed
Figure 6. Data signal comparisons between wired and wireless controller. has a significant effect on how well you
wireless controllers with respect to the same clock signal. Figure 6 shows can interface a wireless controller and
the electrical wiring not critical when interfacing with a
the clock signal, the SHIFTINs mode for this circuit. regular wired PS2 controller. For exam-
needs to be changed to LSBPRE (read This doesnt answer the whole ple, a Basic Atom microcontroller doesnt
the LSB before sending the clock signal). question, however. The wireless con- need to read the data in before the clock
The program shown in Listing 1 troller has a much tighter timing require- pulse (LSBPRE mode), whereas the
includes these changes, and will work ment than the regular PS2 controller. If BASIC Stamp does. In fact, the Basic
the Stamp takes too Atom will not even work if you try to
Listing 1 long to process the read the data in before the clock pulse.
data to and from It needs to use the LSBPOST mode in the
{$STAMP BS2px} the controller, the ShiftIn function to properly read in the
{$PBASIC 2.5} wireless controller data. Measurements on the actual clock
This demo program has been shown to work with
BS2p24 and BSpx24, and does not work with regular
will time out for a signal from a Playstation console indicate
BS2 Stamps with the Lynxmotion wireless controller. moment and lose its that its natural clock speed is about 125
wireless connection kHz. Since it is transmitting 21 bytes of
clk PIN 7 Clock Line with the receiver, data, the time required to read in the
att PIN 6 Attention Line
dat PIN 4 Data Line
and only sporadic data from both controller types is about
cmd PIN 5 Command Line information is trans- 0.3 ms. A Basic Atom will read in the
mitted. I have tried data in about 4.5 ms. This speed is prob-
Mode CON 3 1 = Wireless Controller = LSBPRE three different BASIC ably why the Atom syncs up well with
3 = Wired Controller = LSBPOST
Stamps with this pro- the controllers. A BS2px24 takes about
Temp VAR Byte(8) Controller data gram. The BS2p24 13.8 ms to read in all the data from the
i VAR Byte Loop Counter and the BS2px24 are controller. Though the Stamp still works,
fast enough to keep it requires reading in the data in a
Main Wireless Controller loop
up with the commu- different format. A regular BS2 Stamp is
Main: nications with the about six times slower, and does not
GOSUB Wireless_PS2 wireless controller, sync up with the Lynxmotion wireless
GOTO main but the regular BS2 controller. This indicates that the com-
Wireless_PS2: Stamp doesnt work mon overlap time where both systems
Read Controller mode $41=digital, $73=analog because it is too work is not much slower than 14 ms.
LOW att slow. Figure 6 illustrates this. Slowing the clock
SHIFTOUT cmd, clk, LSBFIRST, [$01] I am not the speed increases the common overlap
SHIFTIN dat, clk, mode, [temp(1)]
HIGH att only one that has time, but longer clock times can result in
Read controllerr observed all this. the wireless controllers timing out.
LOW att Read the discussions Interfacing a microcontroller to a
SHIFTOUT cmd, clk, LSBFIRST, [$01,$42,$00] on the Parallax wireless controller is pretty straight-
FOR i = 2 TO 7
SHIFTIN dat, clk, mode, [temp(i)] forums (http:// forward, but it should be done with the
NEXT forums.parallax. faster microcontrollers such as a BS2px24,
HIGH att com/forums/defa Basic Atom, or even the new Propeller
Display Results ult.aspx?f=5&p=5 chip from Parallax. This is kind-of a long
DEBUG CRSRXY, 0, 2,Mode: ,IHEX2 temp(1), , CR
DEBUG CRSRXY, 0, 3,BIN8 temp(2), , BIN8 temp(3), &m=138508) about discussion about wireless controllers in
, DEC3 temp(4), , DEC3 temp(5), , what other people general, I am hoping that it provides you
DEC3 temp(6), , DEC3 temp(7), CR have learned. It enough information to get your controller
RETURN
looks like the to work with your robot. SV
18 SERVO 01.2007
Full Page.qxd 12/6/2006 10:13 AM Page 19
Geerhead.qxd 12/6/2006 11:48 AM Page 20
RoboGeddon It!
Are You Getting It?
You could be getting into RoboGeddon a good-sized scale version
of events like BattleBots or Robot Wars without traveling very far.
The portable robot battle game comes to you via trailer at your
local amusement park or event, as well as being available as a
permanent install at some attractions (mostly in the UK for now).
he mobile or static, High Octane the creators like to say, meaning set operated by a live operator.
T Robotic Combat System brings the
arena and ready-made battle bots
permanently in one place) and four 80
kg robots. The robots can flip each
During game play, you try to score
points by ramming your bot into the
wherever an event or gathering hires other over and get themselves upright other players bump goals, behind
the system and its operators/makers when fallen in battle (with player which the respective players also
to come. Highly successful since assistance by remote) by use of the control their robots. The early
2004 when RoboGeddon debuted at same, single flipper. prototype bumpers on the bots, says
LEGOLAND of Windsor (UK), the game There is also a computerized game RoboGeddon representative Andrew
has gone on to be a highly sought control system with music, a public Cotterell, were made of steel but we
attraction by amusement vendors and address system, and sound effects that discovered that a 80 kg robot traveling
consumers. interact with game play. Robots are at 6 mph into another traveling at the
controlled by radio transmissions. same speed tended to bend the
Part-speak RoboGeddon can be coin-operated bumpers we now use plastic
in stand alone mode (controlled by bumpers with shock mounts.
RoboGeddons parts include the the master computer control system), A winner is decided by highest
Arena (either portable or static as as in a large arcade attraction or be score after a round of two minutes.
A RoboGeddon battle in progress, flippers a-flying! Fully inflated RoboDome surrounds RoboGeddon
while crowds watch.
20 SERVO 01.2007
Geerhead.qxd 12/6/2006 11:48 AM Page 21
GEERHEAD
People Watching
Assessments
Surrounding
RoboGeddon
In actual play, younger
children generally defeat older
kids because they have a much
greater mastery of the joystick
control and a familiarity with it,
according to the RoboGeddon Player console close-up with lots
maker (RobotsRUs) company of colors and buttons. RoboGeddon Raptor robot close-up.
representative Andrew Cotterell.
Likewise, girls generally beat the
boys as they concentrate more on how
ence centers, fair grounds, trade shows,
malls, museums, and go-kart tracks.
Static Install Statistics
to score points and figure that part out RoboGeddons gaming arena is 36 A permanently installed
more quickly. All the boys want to do square meters, topped by an inflatable RoboGeddon can be had cheaper
is flip and bash other bots, says RoboDome. Four Cyber Raptor robots because the cost of the trailer system
Cotterell (not surprising). Sometimes, come with each setup and can be which is not required is subtracted
players will find out they have been manipulated to flip other robots over or from the total cost. Installs of the
watching the wrong robot and wonder out of the way or to put themselves static system are highly customizable
why it isnt responding to the actions upright again once they have been including the size of the arena itself
they take with the controls. flipped. The flipping and repositioning to suit your permanent location.
helps your robot to successfully get to This system is suitable for venues
Back to the Tangibles an opposing robots corner to score. similar to those for the mobile system
Each robot is powered by a rapid and includes piers, zoos, campgrounds,
The mobile version of RoboGeddon recharge cell that can be recharged in and other locations. Multiple game
comes with a trailer system with the charge control system in about 45 formats are available for programmed
hydraulically-operated sides that drop minutes. There are four spare cells so computer-assisted play.
down to form the actual gaming plat- that the robots dont ever have to be Systems also come with four
form. The platform installs in about an without power. player controls/consoles with coin
hour and is quite sturdy and permanent The system also comes with instal- operation mechanisms, score panels,
looking. This is an all-weather gaming lation and maintenance manuals, as and bump goals. Remote score panels
system with a site space requirement of well as training manuals for operation. are also available.
11 meters square. Outside maintenance contracts are RoboGeddon cost around 900,000
The RoboGeddon makers had available from the company, as well as a GBPs (about US $1.7 million) to build
thought that it would take longer to phone number for expert consultation. from initial research to todays product
put up the mobile system in bad
weather, but it actually takes less time ROBOSOCCER UNDER THE MICROSCOPE
as the crew works harder to get it up
and get out of the rain. RoboSoccer involves four players maneuver the soccer ball and other
The trailer system is complete unto and four robots in soccer play in a players around the playing field. The
itself with a foldout crowd barrier space of about 7.5 by 5 meters. actual area that is available for play is 24
This rugged system is designed to feet by 16 feet. There are two goal
system. Ask the company about
be used constantly, so it is protected by stations, two player stations, and each
additional add-on features. In addition impact-resistant barriers and surround- station controls two robots. The game is
to coin-operated and human-operated ed by a crowd-retaining barrier. operated by a computer system that is
game play, RoboGeddon can be set up Its integrated goal system and play- programmed to control cash payments
for free play if you are providing it er control system are each fitted at both to play or free play, as well as the sound
gratis for your family or guests. Game ends of the playing field, where players system for effects and background music
play is computer assisted. stand and manipulate the controls for a and the robots. The robots operate on
The system is appropriate for indoor game of soccer that can last up to four four batteries/power cells one each
and outdoor attractions and anywhere minutes. The game system and equip- and there are four spare cells, as well.
guests or customers may congregate ment can be set up in three hours. You can see RoboSoccer in the UK
The system comes with four robot and via video clip (provided in the
including theme parks, family entertain-
combat vehicles for soccer play that can Resources).
ment centers, hotels, resorts, confer-
SERVO 01.2007 21
Geerhead.qxd 12/6/2006 11:49 AM Page 22
GEERHEAD
over a three-year span. The mobile system worked well for same basic robot builds but no flippers.
events but theme parks and ongoing The game is played on a soccer field
Upgrades venues required the static systems. inside the game arena by two blue and
The robots themselves have been two red robots. Players win by using
Initially, the game format was improved upon many times for reliability. the robots to score soccer goals.
extremely complex, too much so for Improvements to the four robots have The included soccer ball is 14 lbs.
the general public to easily use and included improved drive belts, motor This is a coin-operated game for theme
appreciate. Much of the engineering control, lifter mechanisms, bumper sys- parks and similar venues. The robots
and upgrades went into resolving this tems, crash absorption devices, power run all day with no recharge.
problem. The initial system was only handling, heat control, sound use, playa- RoboDerby is a soon-to-be-released
static, for example, which was too bility, and the ability to use add-ons. robotic horse that can carry an adult.
expensive a system to succeed com- Further planned upgrades include RobotsRUs the company behind
mercially. This led to the mobile system. robot feedback to the control system RoboGeddon, RoboSoccer, and
so it knows how much power the RoboDerby plans to sell sets of four
RESOURCES robots have left. The system will soon robot horses so the new owners can
be able to tell for certain which robots transport them by trailer to events and
www.robogeddon.com/index.asp do the actual flipping over. Right now, run the horses as robot race horses.
RoboGeddon site it only knows when points have been By pulling the tail of the horse in front
scored. The game currently factors of you, you can slow it down by 25
www.Robosoccer.co.uk who has won by the number of points percent and gain the lead on it.
RoboSoccer site given up by other opponents.
www.robogeddon.com/movies/Robo US Availability
soccer_streamer.rm Rock em, Sock em,
RobotsRUs is in talks with many
RoboSoccer Streaming Video RoboSoccer and domestic event promoters who have
www.robogeddon.com/links.asp RoboDerby expressed an interest in involving
RoboGeddon permanent install themselves in bringing the
locations and entertainment providers RoboSoccer has just been RoboGeddon system to the United
launched. This robot game uses the States. Stay tuned! SV
22 SERVO 01.2007
RobolinksJan07.qxd 12/7/2006 9:17 PM Page 23
For the finest in robots, parts, and services, go to www.servomagazine.com and click on Robo-Links.
SERVO 01.2007 23
Jan07NewProd.qxd 12/7/2006 7:55 PM Page 24
New Products
N E W P RO D U C T S
throughout the entire landscape, yet specific sounds at
SENSORS specific locations when the train arrives or passes by.
Perhaps you want to add different sounds to every room
of a dollhouse. Or, add sounds to your robot or animatron-
Brushless Motor RPM Sensor ics character. All this is possible with the SoundPlexer8000.
To measure RPM on a brushless electric plane, heli, Records up to eight one-minute tracks.
car, or boat, just tap one wire from the tiny new sensor
into one motor lead, enter motor parameters to the soft- Built-in LCD display screen with an intuitive menu system
ware, and you are ready to go. The brushless RPM sensor for quick and simple programming, recording, and play-
is compatible with Eagle Trees MicroPower, PowerPanel, back. No computer or host system needed.
Seagull, and Data Recorder products. Using the Brushless
RPM Sensor with Eagle Trees Seagull and Data Recorder Record from either the built-in microphone or line in
products requires firmware level 4.XX or higher, which has from any sound source line out.
been shipping since approximately August 2005.
For further information, please contact: Playback any track through one or all eight speakers
4957 Lakemont Blvd. SE, Ste. C-4, PMB 235
simultaneously.
Eagle Tree Bellevue, WA 98006
Systems Email: [email protected]
Website: www.eagletreesystems.com
Each output is capable of driving an eight-ohm speaker
with one watt of continuous and up to two watts of peak
power.
SOUND PROCESSING
Master volume control.
All New SoundPlexer8000
Eight selectable inputs which are edge triggered. Either
24 SERVO 01.2007
Page 25.qxd 12/7/2006 7:49 PM Page 25
1-800-979-9130
MaximumRobotics.com
SERVO 01.2007 25
CombatZone.qxd 12/6/2006 11:39 AM Page 26
Feature
28 Gone Postal: The Building of
PARTICIPATI N
a 12 lb Robot by Brian Benson First Aid for Bot Builders
by Kevin Berry
Events
29 Results Oct. 14 - Nov. 13
32 Upcoming Jan. and Feb.
B ot builders are famous for
getting minor dings when
building bots, both at home and
seemed to think germs had
the same priorities he did that is,
finishing the bot counted more
in the pits. Every builder should than treating wounds.
Technical Knowledge have a minimal first aid kit around, Some things, such as bleeding
with bandages, peroxide, antibiot- puncture wounds, chest pains, dizzi-
30 Four Bar Lifters in Combat ic ointment, and aloe vera (for ness, and double vision, need imme-
Robotics by Adam Wrigley minor burns). The other thing diate medical attention. A dead bot
builders should have in their kits is builder is good to no one, and by
Product Review a sense of their own vulnerability. the way, cant compete in events (at
Some injuries can be safely treated least in most of them, anyway.) So
32 Astroflight 109 Charger at home, some require medical build safe, and judge well when it
by Bradley Hanstad assistance. A few need immediate comes to injuries and illnesses. To
9-1-1 calls! mangle an expression, the builder
Ive seen a builder, in the who has himself for a doctor has an
absence of proper supplies, poke idiot for a patient. SV
himself in the knuckle with a
power drill, staunch the bleed-
ing with a dirty paper towel,
and slap a strip of duct tape
over the whole enchilada.
Two days later, after finish-
ing the bot and competing
in the event (I won, by the
way), this mystery man
finally treated the wound
with proper supplies, and
amazingly didnt get blood
poisoning. I, er I mean, he,
26 SERVO 01.2007
CombatZone.qxd 12/6/2006 11:39 AM Page 27
SERVO 01.2007 27
CombatZone.qxd 12/6/2006 11:40 AM Page 28
bring all of your parts and tools you have to go hunting for tools from back what you borrow. There is a
will need. It is always important to others. However, do note that many vast amount of information available
have spares, as well as tools and builders will be more than willing to on the Internet, and the best way to
other necessities such as a power- lend you a tool or plug into their get ahead and off on the right foot is
strip so that you dont constantly power strip, but remember to bring to use it to your advantage. SV
GONE P STAL
THE BUILDING OF A 12 POUND ROBOT
by Brian Benson
28 SERVO 01.2007
CombatZone.qxd 12/6/2006 11:41 AM Page 29
FIGURE 6. Gone
Postal prepped and
FIGURE 4. Everything is nearly mounted. ready for battle!
the finished mounts ready for use. shows the robot nearly done! gone four iterations since it was first
Everything was complete except built, gaining spring steel armor over
Finishing Touches for the top armor, the hammer, and the the side UHMW and a titanium
wiring. I made the top armor out of .09 wedge and hammer arm. In each
With the motor mounts com- inch carbon fiber sheet for its strength iteration, it has become a little
plete and sides cut out, all I had left and minimal weight. For this, I used a smaller and a little tougher, but the
to do on the base plate was to cut diamond wet saw, the key word being same core building techniques have
out the holes for the wheels, which I wet. Carbon fiber dust can be extreme- been used each time.
did using a plasma cutter. With each ly harmful and should not be breathed Figure 7 shows Gone Postal in its
subcomponent complete, it was time in under any circumstances. prime. It is ranked historically in 30th
to combine them. I decided to use Through a combination of hav- place out of over 250 robots, racking
10-24 size screws to fasten it togeth- ing water constantly pumping onto up a 35 fight record and known to
er. The motors were mounted, the the cutting edge to eliminate dust many as the bot that just wont die. It
sides were attached to the base and a respirator, I was able to easily has proved to be one of the most fun
plate, and the electronics shock and safely cut the top plate. The ham- bots I have built and competed with,
mounted. Shock mounting is always mer was more fun, for this I found a being cheap, effective, and different.
critical for electrical components. As piece of 1/8 steel and used the Further details on Gone Postal includ-
you can see in Figure 6, the speed plasma cutter to create the hammer ing photos and videos can be found
controllers and relay board were shape I was looking for. To attach the at www.robotic-hobbies.com. SV
shock mounted to an 1/8 sheet of hammer to the drill, I took advantage
polycarbonate, which was then shock of the threaded shaft, clamping the FIGURE 7. Gone Postal
version four with its 1/2
mounted to the frame. The batteries hammer arm between the shoulder diameter titanium arm
and spring steel skin.
must always be easily accessible; to of the shaft and a tightened nut. The
meet this requirement, I chose to use nut and threaded shaft then had an
Velcro straps to secure them. 1/8 hole that a pin went into to
At this point, as you can see in keep the nut from backing off. With
Figure 4 the robot was missing the everything mounted and ready to go,
front half. For this, I chose a wedge I wired the robot up using primarily
to allow me to gain control of other 14 gauge wire. Figure 6 shows Gone
robots to help me use my hammer to Postal at the event ready for battle.
its full effect. After choosing an
angle, I made the wedge and Conclusion
attached it using the same methods
as the rest of the frame. Figure 5 Overall, Gone Postal has under-
EVENTS
RESULTS October 14 - November 13
H ouse of NERC
2006 This
event was held on
Wichendon, MA. Results are as follows:
SERVO 01.2007 29
CombatZone.qxd 12/6/2006 11:42 AM Page 30
There, Wedge, Small Bots. Falls, OH. Results are as follows: follows:
TECHNICAL KN WLEDGE
Four Bar Lifters in Combat Robotics
by Adam Wrigley
30 SERVO 01.2007
CombatZone.qxd 12/6/2006 11:42 AM Page 31
height). Drawing out your four bar in the system gets close to these ratio. A conservative calculation for
system to scale in fully collapsed and values, there will be binding. figuring out your gear ratio is this:
fully extended forms will allow you Powering the front bar leverages
to measure the height difference the other robot in such a way Gear Ratio = 4 * (Torque read from
and angle difference from start to that binding rarely occurs during graph)/(Stall torque of motor)
finish. This will allow you to figure extension of the arm.
out the average torque you will It is important, however, to The gear ratio you use should
need to lift the opposing robot by make sure that your mechanism be read as Gear Ratio:1 and is the
setting the previous two equations does not fully extend, and you ratio going from the motor to the
equal to each other and using the should have a mechanical stop to front arm. Using this equation, you
result: prevent this. If your mechanism fully can also look at the RPM of the
extends, then it could have problems motor and try to figure out how
Average Torque = (Weight * collapsing because of binding. A fast you will extend your arm. A
Height)/Angle front bar powered system only simple equation for time is listed
avoids binding in extension, not below:
Average torque can be useful, retraction.
however, you will probably want to Time = 60*{(Angle/360)/
find the maximum torque. To find Using the Graph [(RPM/2)/(Gear Ratio)]}
the maximum, you would need to for Design
draw many scale drawings of the Time will be in seconds. RPM is
system at many different locations When using the program I the no load RPM of the motor, and
through the trajectory, and do this mentioned earlier, it will show some Angle is the total angle difference
procedure for each set of two forms of binding on the graph. If from start to finish of the front arm.
drawings. After doing this, you you see a spike, then your system is This equation wont be exact, but it
would be able to plot a torque vs. binding. Make sure to have your will give you a good approximation
angle graph. It would also be mechanical stop kick in before the of the time needed.
extremely time consuming. Luckily spike in the graph. The spike should
for you, Ive made a program that be at the end of the motion of the Final Design Ideas
does all of this work without you arm. If it is not, then you should
needing to draw anything. change your design. When trying to You can start typing values into
Go to www.totalinsanity.net/ read off a torque for your design the program I mentioned earlier, but
tut/mechanical/4barfrontbar.php. calculations, there are also some it is always best to start with good
This page has the download link, as other concerns that need to be values at your first iteration. The rear
well as a description of how to run taken into account. bar of the four bar mechanism
the program. The program currently Normally, the highest torque is should always be the shortest. The
only solves systems powered by the at the start of the motion of the bottom bar, which is normally part of
front bar, but you will most likely arm. There is a spike seen at the end the chassis, should be the largest.
want to use a front bar powered of the Torque vs. Angle graph in The top bar, which is part of the arm,
system, anyway. It will output a most systems, but this value should should be the second longest, and
graph showing the trajectory of the not be used, since your mechanical the front bar should be the second
tip, as well as a Torque vs. Angle stop will kick in before this. Also shortest.
graph. The graph can then be used important to remember is that the This is pretty much all you need
to find a relative maximum torque torques shown with this program to know to design your first four bar
to use in calculating your gear or calculated by hand using the mechanism using an electric motor
ratios. same method are the torques to power the front bar. If there is
needed to hold the opposing robot. enough interest, I can provide a
Binding You will want a larger torque value similar explanation for different four
than this if you want to lift the bar systems in future issues. SV
Binding is a problem that opponent with
occurs when any of the joints in the some speed. One FIGURE 3
system gets close to 180 or 0. The last mistake that is
system simply gets stuck, and the commonly made is
forces go through the roof when using the stall
this happens. If no force is applied torque of your
to the system and the front bar is motor when calcu-
rotated, then whenever any angle lating your gear
SERVO 01.2007 31
CombatZone.qxd 12/6/2006 11:42 AM Page 32
EVENTS
UPCOMING January and February
K ilobots X This
event will take
place on 1/20/2007
event in
this annual
series; a
tive at time of publication.
32 SERVO 01.2007
Full Page.qxd 12/7/2006 8:11 AM Page 33
33 SERVO 01.2007
McComb.qxd 12/7/2006 8:24 AM Page 34
ExploringSOUNDGIN
Six Voice Sound/Music/Speech Synthesizer
b y G o r d o n M c C o m b
34 SERVO 01.2007
McComb.qxd 12/7/2006 8:24 AM Page 35
Music Generation
Music is little more than sound
that has certain qualities that we
humans find aurally pleasant. By linking
one tone to another, a musical score is
produced. Soundgin generates music
by setting its oscillators to frequency,
wave shape, and ADSR envelopes to
make piano, organ, and other instru-
ment sounds.
As with general sound production,
the Soundgin Windows control panel can
be used to experiment with music synthe-
sis. In the console window click the
Keyboard icon, and a 49-key keyboard
appears. Use the mouse to click any of
the keys, and its corresponding note is
Example of amplitude patching: the sound making features of the played through the Soundgin chip.
Oscillator 1 produces a steady 1,000 Hz Soundgin is to use its program control Note that the keyboard uses just
tone. Oscillator 2 produces a slow 1 Hz panel, which runs under the Windows one oscillator to produce the sound,
tone, which would ordinarily be below PC environment (see Figure 2). The and you can select which oscillator to
the range of human hearing. By software can be downloaded from the use. This allows you to readily experi-
patching the output of Oscillator 2 into Soundgin website see the Sources ment with different effects. Play around
Oscillator 1, the output changes in vol- box for additional information. The with the ADSR ramps, for example, and
ume once a second. It creates a phas- console graphically depicts Soundgins you change the timber characteristics
ing effect that sounds like something six oscillators, and shows how the of the notes. The sound wave buttons
out of an old science fiction movie. oscillators can be patched together. similarly change the color of the tones.
Example of frequency patching: You also see the ADSR envelopes and Notice, for instance, that a saw tooth
Oscillator 1 again produces a standard other controls by which you can wave makes the sound a lot more
1,000 Hz tone. Oscillator 2 produces a modify the sound effects. reedy, like that from a saxophone.
slow 1 Hz tone, and is patched into the For a great introduction to By combining two or more oscilla-
frequency modulator of Oscillator 1. Soundgin and its capabilities, click on tors to produce separate voices you can
Rather than alter the volume (amplitude) the Presets button in the lower-right create a kind of musical ensemble. The
in this patching, Oscillator 3 changes the corner. You will see a collection of 31 Soundgin Windows control panel can
frequency of Oscillator 1, producing a preset sound effects, as shown in only play one note at a time through
rise-and-fall wailing siren effect. Figure 3, such as Space Drive, Wow, one oscillator at a time, but the
Soundgin provides additional mix- Chopper, and Blip Chatter. Click each Soundgin itself is capable of playing
ing and patching options that greatly one to hear what theyre like. As the multiple notes through multiple oscilla-
increase the variations in the sounds it effect plays on the Soundgin, note the tors, giving you a polyphonic sound
can produce. The options are too action of the oscillators. (If any sound is and music synthesizer.
numerous to mention here, but are too loud, you can adjust the volume by
reviewed in the product documenta- scaling down the Master Volume I Am Tobor, Your
tion. And remember that Soundgin has Control.) Robot!
two fully independent mixers that feed Now try combining two sound
into one final output. The A and B sets effects together. Click Mix A beside the Perhaps the most remarkable
of oscillators can each produce their Presets list, and choose a sound effect. feature of Soundgin is its ability to pro-
own sounds, and can be mixed togeth- Click Mix B, and choose a different duced synthesized voice. Again, its all
er to make overlay effects: a siren on sound effect. Both sounds are now done by cleverly combining the chips
top of a warbler, for instance. combined into the final output of the oscillators to produce the elements of
Soundgin. Play with different combina- speech. When these elements called
Using the Soundgin tions by selecting Mix A or Mix B, and phonemes are strung together, the
Windows Control Panel clicking on a new sound. You can quiet sound is recognized as speech. This all
any mix by selecting preset number 32, appears simple enough, but in reality
Perhaps the best way to play with which is silence. its quite difficult to achieve completely
36 SERVO 01.2007
McComb.qxd 12/7/2006 8:25 AM Page 37
synthesized speech, and still have words. You can enter these same grams like the Soundgin Windows con-
the speech be recognizable. Soundgin phonemes into the Phrase Editor and trol panel, and others to come, promise
does a remarkable job, and the Soundgin will speak them. This is a to make programming the chip easier.
mechanical voice that it makes is good way to experiment with phoneme- To send data to the Soundgin, you
perfect for the average robot. based speech synthesis. You can try send a series of bytes that always begin
The Soundgin Windows control substituting different phonemes to with the Escape character (decimal 27
panel is the easiest way to experiment make different sounding words. In all, or 1B hexadecimal). Program state-
with, and develop, speech synthesis for the SGWords.txt file contains several ments then consist of one or more
your robot. Click the Speaker icon in hundred word definitions, and you can bytes, until all the data has been sent.
the lower right, then click the Phrase add your own, as well as modify exist- Soundgin supports hardware flow
Editor button right above. A Phrase ing ones. You can also load new words control so that the chip requests data
Editor window appears, shown in into the dictionary file by entering them as it needs it. The Soundgin toggles
Figure 4, where you enter the text into the Phrase Editor, but I found one of its pins the CTS line when
and/or phonemes you want the manually editing the file to be easier. its buffer is half empty. In this way
Soundgin chip to speak. there is no interruption in sound
For example, to have the chip say Programming the playback, as long as your PC or
hello, you merely type hello into the Soundgin controller is keeping a watch on the
Say Data box, and click the Say It CTS line. Soundgin regulates the
button. Soundgin responds by saying So far, weve looked at operating playback speed, so your robots micro-
the word. The default voice with its the Soundgin from its Windows control controller can send the data at the
male-like pitch is automatically select- panel. This is a good way to learn required baud rate, then continue with
ed for you. But you can change the about the capabilities of the chip, but it its other chores. In the event of a series
pitch by clicking on one of the Musical is not a practical means of program- of programming commands, such as a
Scale buttons on the left-hand side. ming sounds for your mobile robot. continuous song, the microcontroller
As noted previously, Soundgin Communicating with the Soundgin must listen on the CTS line to see when
works with parts of speech known as is relatively straightforward. It uses a it toggles, and feed data to Soundgin
phonemes. These phonemes are standard serial interface that is sup- before its buffer runs out.
displayed in the Phrase Editor dialog ported by the PC and most microcon- Even the voice synthesis feature of
box. They include the th of this, or trollers. Soundgin supports data rates Soundgin is programmed by sending
the wuh (w) in water. You can play of 2400 or 9600 bits per second. serial bytes to the chip. After setting up
with the various phonemes sounds just When used with the PC, you need the chips registers for voice synthesis,
by clicking on their corresponding a Maxim MAX323 interface chip, or the phonemes are sent one per byte. For
buttons. The sound continues until something similar, in order to convert example, to say hello, the chip receives
you click another phoneme, or hit the the five volt TTL signals required by the the sequence 212, 206, 221, 221, 228.
Shut Up button. Soundgin to RS-232 levels needed by
When you enter an English phrase the PC. Note that the Soundgin Maximizing the Sound
such as hello, the Phrase Editor prototyping board is available with an Output
actually does a lookup to see what optional RS-232 level shifter chip
phonemes are contained in that word. and DB9 connector for hooking up a All sound-making devices are
The dictionary lookup table is stored in standard serial cable. limited by the mechanism that turns
a simple text file in Windows INI Soundgin is programmed by
format. This dictionary file, named setting its various internal registers. Its Figure 4. Use the Speech Phrase Editor
SGWords.txt, is found in the Soundgin not a particularly easy process, but pro- window to produce intelligible speech
output from the Soundgin.
directory on your PC. Looking
up the definition for hello, you
see the phonemes that make it
up are:
SERVO 01.2007 37
McComb.qxd 12/7/2006 8:26 AM Page 38
38 SERVO 01.2007
Hong2.qxd 12/6/2006 2:34 PM Page 39
PART 2:
Parts, Wires,
and Motors
by: Karl Muecke, Patrick
Cox, and Dennis Hong
RoMeLa (Robotics & Mechanisms
Lab) at Virginia Tech;
www.me.vt.edu/romela
L
ast month, we introduced DARwIn (Dynamic
Anthropomorphic Robot with Intelligence) a
humanoid robot capable of bipedal walking
and performing human-like motions. This month, we
will show you how we built DARwIn, including details
on motors, wiring, parts, force sensors, and the fabrication
process. Developed at the Robotics & Mechanisms Laboratory
(RoMeLa) at Virginia Tech, DARwIn is a research platform for
studying robot locomotion and also the base platform for
Virginia Techs first entry to the 2007 Robocup competition. This
article should give you enough information to build your own DARwIn
biped!
Design Considerations
There are a few items to keep in mind when designing a bipedal
robot. You want to design the structure to be rigid and strong so your links
and joints dont break or flex too much. An easy solution to make your
robot rigid would be to design it all out of steel, but this would be
a tremendous amount of weight that your motors probably could not
handle. The goal is to design a robot that is both lightweight and rigid.
Depending on what you want your robot to do, you need to decide
what kind of range of motion you need for each joint. If the biped
is always walking and never has to stand up, you can relax your
requirements for range of motion in certain areas. If youre trying to
make your robot as human as possible, you will need a large range
of motion in many of the joints. This leads to one more design
consideration: human factors. There are certain proportions that
dictate the distance between joints and the overall height in
a human being. If you scale down your robot from a
person, you need to make sure that all the links and joints
are proportional. David Winters Biomechanics and Motor
Control of Human Movement is an excellent resource for
human proportions.
Hong2.qxd 12/6/2006 2:34 PM Page 40
SPECS
CPU PC/104 (Planned)
Height 600 mm legs. It is possible to house hardware in
other cavities in the robot, some such
Mass 4 kg
cavities may be in the leg or foot
Degree of Freedom 21 (depending on the design). Though the
Power 2 Li-poly @ 7.4V batteries are in the chest for the current
design, next year, we plan on placing the
Sensors Rate gyro, force
sensors batteries in the feet of the robot. This
< FIGURE 1/TABLE 1. Here is a photo and placement will make room for our new
statistics table for DARwIn. PC/104 board computer, IEEE 1394 PC
board camera, rate gyro, DC-DC convert-
has a maximum torque of 64 kg-cm er, and protection circuits.
(Table 2). Both have built-in position and
speed controllers. All user control is done Lets Be Honest:
with RS-485 serial communication. Materials and
If you are on a tight budget, regular
R/C servo motors are fairly inexpensive,
Machining
but since you get what you pay for, the Finally, before you start designing
performance may be unacceptable. You the links and joints, determine what
can also use miniature DC motors, but materials you can afford to buy and
you need to design your own position what machining tools you have
feedback controller or purchase one access to (milling machines, welding
such as the allmotion boards, which equipment, etc.). This will dictate how
Select Your Motor can be expensive. Different actuators ornate (or how simple) your robots
have different torque properties and design can be. If you have access to a
One of the biggest decisions you mass properties; so if keeping your four-axis CNC mill and large amounts
have to make when building your bipedal robot lightweight is a must, you may of bar stock aluminum, you have much
robot is what kind of actuators to use. want to put the stronger, heavier motors more freedom in your design than if
We used Robtis Dynamixel servo motors, in the joints that see the greatest load. you only use sheet aluminum.
model DX-117; and will upgrade to the For DARwIn, time constraints and
RX-64 for the next version of DARwIn Kinematic Design availability led us to use sheet alu-
(Figures 2 and 3). The DX-117 has a max- minum for almost the entire structure.
imum torque of 39 kg-cm and the RX-64 Once you pick your actuators, you With some experience under our belt,
TABLE 2. Table of specifications for need to decide on your kinematic struc- were designing and building DARwIn
Robotis Dynamixel DX-117 servo motor. ture this is one of the most impor- 2.0 in half the time and using a four-
tant things to do in the design process! axis CNC mill to create most of our
DYNAMIXEL DX-117 You can make your own or use ours parts. Figure 6 shows a CAD drawing
Mass 66 g (Figure 4). Your kinematic model will of our new hip design. We recommend
Resolution 0.35 determine how you design your joints using aluminum for the structure of the
Angle Range 300
and how you attach the actuators. robot because of its price, weight,
strength, and the ease of machining it.
Voltage 12V-16V
Where to Put Stuff If you have the funds, using rapid pro-
Torque 29 kg-cm 39 kg-cm totyping would be an excellent option.
Next, decide on
FIGURE 2. RX-64 motor. FIGURE 3. DX-117 motor.
a location for your Design
extra hardware: CPU,
batteries, sensors, Now that youve nailed down
etc. We decided to the essentials, youre ready to start
house everything designing the links and joints of your
except for the force robot. You can get as creative as your
sensors in the chest imagination lets you, but if you need a
for simplicity (Figure starting point, here are some tips and
5). One issue with examples from DARwIn.
placing everything
this high is it creates Start Simple The Elbow
a larger torque on A good place to start design is
the motors in the coming up with a simple elbow/knee
40 SERVO 01.2007
Hong2.qxd 12/6/2006 2:35 PM Page 41
joint. They are the simplest joints in the a series of brackets to create kinemati-
entire robot since they are only one cally spherical joints for the shoulders.
degree of freedom (DOF). Figure 7
shows a simple way of designing a A Step Up The Ankle
bracket for the elbow joint. If you are comfortable with design-
ing the arms and knees, try designing
Kinematically Spherical Joint
Design The Easy One
In our opinion, the next easy
joint to design is the kinematically
spherical joint at the shoulder. You
have a lot of freedom when placing the
motors and mounting them for the
shoulders since the shoulders are natu-
rally broad. In order to create a kine-
matically spherical joint, all three axes
of rotation must intersect at the same
point (Figure 8). This is fairly simple in
concept, but getting configuration and
dimensions correct for the design can
be tricky. Figure 7 shows how we used
> FIGURE 8. Photo with lines showing
spherical joints on DARwIn. FIGURE 7. Exploded view of arm.
SERVO 01.2007 41
Hong2.qxd 12/6/2006 2:36 PM Page 42
Force Sensors
Obviously an optional feature for
your robot but important enough for
consideration during physical design
force sensors can be used to give infor-
mation to your CPU to help stabilize
the walking motion of the robot. The
number and placement of the force
sensors can be tricky. We recommend
using four for each foot: one placed at
each corner. Once you place the force
Thank Yous
Thanks to the 2005-2006 senior
design team members that built DARwIn
1.0 (Patrick Cox, Joo Gil, Chris Greenway,
Jeff Kanetzky, Karl Muecke, Patrick Mulliken,
Raghav Sampath, Daniel Zokaites) and to
our advisor Prof. Dennis Hong.
42 SERVO 01.2007
Hong2.qxd 12/6/2006 2:36 PM Page 43
SERVO 01.2007 43
Reed.qxd 12/7/2006 8:05 PM Page 44
Hacking ROGER
I n the basement of North Seattle
Community College (in Seattle,
Washington), there is a Robotics
Club. Members meet in a room
called the TECHTRONS LAB that
resembles a weird science laboratory
from a sci-fi movie. It is a little
cramped, but it is ours! says one of
FIGURE 1. Roger Robot just out of
the box before dissection begins.
The room has been in the control of able, simple project anyone could do. these projects just could not be done
students for three decades, as far as North Seattle Robotics Group (The without his advice and help.
any of the old timers who work in official Robotics Club at North Seattle We have several microcontrollers
facilities can remember. Its great for Community College) is always looking in the lab to choose from and plenty
the students because there is freedom for inexpensive toys to hack into robot of support from advisors, faculty, and
to work on projects without being projects. Roger Robot (Figure 1) from staff. The Parallax BASIC Stamp
graded. For many students, the Lab is Big Lots (www.biglots.com) was microcontroller (see Figure 2) is used
a refuge allowing a few hours to relax $19.95. It is currently available from in classes at NSCC and is a popular
and work on robots or electronics proj- www.eBay.com or other resellers. choice among students. There is a lot
ects, or just have a cup of coffee. For The price is right for students and just of tech support, documentation, and
others, it is a place to ask for help about anyone who wants to learn information available. Most of my
on an electronics project, math, or about robotics and have fun doing it. experience has been with the BASIC
computer programming. All students When considering buying a toy to Stamp, so that was my choice to use.
are welcome. Occasionally, students hack, look for one with a tethered or For this project, I wanted to do as
or visitors from the community drop in wired controller. This way you are not little hacking as possible to make the
just to see what the others are up to. paying for the wireless capability, robot controlled by a microcontroller
We were looking for an afford- advises Doug Bell, a Volunteer and I wanted to also be able to
Community Advisor to North Seattle continue to use it as a tethered remote
Community College Robotics Club control, so I planned for a 25-pin
since the Fall of 2001. He comes to connector to be placed in line with the
the lab twice a week tether from the controller. This way,
FIGURE 2. Parallax
microcontroller to volunteer, helping the microcontroller or the handheld
with the Board students with their remote could be plugged in. To make
of Education. projects. Many of this more sophisticated, you could
add a switch instead of plugging
NOTE: All codes/programs are and unplugging the remote or the
available on the SERVO website at microcontroller. Also for this project,
www.servomagazine.com. we will not install a switch.
44 SERVO 01.2007
Reed.qxd 12/7/2006 8:05 PM Page 45
46 SERVO 01.2007
Reed.qxd 12/7/2006 8:06 PM Page 47
strip a quarter
inch of the insula- FIGURE 9. Tether
with individually
tion off of each of stripped wires.
the wires from the
tether (see Figure 9). Repeat
opening and stripping the
tether for its controller side.
Solder the wires from the
robot tether to the male 25-pin
connector and the wires from
the controller tether to the
female 25-pin connector. When
soldering a lot of wires to a FIGURE 10. Wire and 25-pin connector
being held by the Helping Hands tool
connector, it is handy to have another the back, remove it by loosening the while the solder and soldering iron is
person hold the wires in place while screws. Later, we will install it on the being held by the author.
you solder so you can move quickly back of the project box so you can still
from wire to wire. If you do not have a use the remote mounting bracket. ate screwdriver (philips or standard).
helper available, I recommend the When drilling pilot holes for self- Mount the remote control bracket on
Helping Hands soldering tool from tapping screws in plastic, I like to test the back of the project box (see Figure
Harbor Freight. It has a weighted base the size of the drill bit and the screws 20). You can use the screws that came
and a couple of alligator clips to hold on scrap plastic. Find a local plastics with it or some of the self-tapping
the wire being soldered and the supplier and purchase some scraps by screws.
connector you are soldering to. Solder the pound. These will come in handy
the wires to the 25-pin connector, as for all kinds of other projects, as well. Placing and Cutting
shown in Figure 10. Hold the box on the back of Roger Access Holes
As long as the wire color codes Robot and see where the box touches
you found in your robots controller his back. Pick a spot near each of the Your project box may come with
match the table in Figure 6, the order corners inside the box to place your pre-cut holes
in Figure 11 should be followed in screws. If you have a box like ours, you for the cables. FIGURE 12. 25-Pin
soldering the wires to the connectors. may choose to place your screws If this is the connector in place
If your wire color codes are different, where we did. Measure one-quarter case, use them. showing the male
on the left and the
you will need to create your own chart. inch from the corner and mark the female on the right.
After you have completed solder- hole. You can do this with a wite
ing your male connector, mount it to out type marking pen if you are
the spot you previously selected (see using a black box. You can use a
Figure 12). Sharpie marker if your box is any
Plug in the controller tether and other color. Alternatively, you could
test to see that all of the switches do all place masking tape over the area
of the same functions they did before near the corner, then measure for
you cut the tether. If there are prob- the cut.
lems, troubleshoot now. Refer to the I prefer to drill through the box
chart of functions and wires (Figures 6 into the robot at the same time.
and 11) to see where you may have Some people prefer to measure
gone wrong. When this test is success- and drill the hole in the box first,
ful, continue. then hold the box on
the robot and mark Pin # Wire Color Action/Purpose
Mounting the the robot through the 1 Red (9 VDC)
Project Box holes in the box, then 2
3
White
Blue
(Right Tracks Backward)
(Right Tracks Forward)
drill the holes in the
4 Pink (Left Tracks Backward)
In this phase, you will attach the robot. It is best to tape
5 Yellow (Left Tracks Forward)
project box on the back of the robot. It the box in place on the 6 Brown (Arms Up)
will look like a backpack. Four screws robot and then drill 7 Purple (Arms Down)
will be enough to hold it securely in your holes. 8 Green (Arms Out)
place. You may choose to use Super After the holes 9 Orange (Arms In)
Glue instead. I like to use screws for have been drilled, 10 Gray (The first step of the project )
this so that I can remove the box later drive the self-tapping 11 empty
if I choose to for aesthetics, repairs, or screws into the robot 12 empty FIGURE 11.
13 Black (Ground) 25-Pin
modifications. If your Roger Robot has through the project Connector
14-25 Available for future development.
a bracket for the tethered remote on box. Use the appropri- Wiring Chart.
SERVO 01.2007 47
Reed.qxd 12/7/2006 8:06 PM Page 48
Breadboard Layout
FIGURE 13. Project
box with Dremel Place both of the L293D
cutting the plastic
like a hot knife If you do not leave it that way. motor driver chips (quadruple half
through butter. have precut The best way to cut holes in H drivers). Place the 74HCT164 shift
holes or you plastic that I have found is a Dremel register chip.
want to run cables in a different way, type hand tool with a metal striated Starting at the top of the bread-
follow the hole cutting procedure bit. With the bit spinning at high board, place the first L293D centered
outlined here. Measure and mark the speed, the friction heats the plastic up on the breadboard. The top of the
hole on the bottom of the box. Be and it cuts like a hot knife through L293D (pin 1) should be in the fourth
sure to make the cut big enough for butter (see Figures 13 and 14). row, and be sure the other chips have
the connector to pass through. three holes (rows) between them.
You will want a hole cut for the Mount the BASIC Place the 74HCT164 shift register last
ribbon cable, DB9 connector, and two Stamp and Parallax (see Figure 16). Follow the schematic
switches. I decided to cut the hole for
the ribbon cable on the bottom of the
Board of Education and photos in Figures 15-17 for details
of component placement.
box, the hole for the DB9 on the side, Place the Board of Education
and one on the top and the other on (BOE; see Figure 2) or your microcon- Terminal Block and
the side for the switches. troller board of choice into the project Breadboard Layout
I used a standard cabinet hinge box. Make sure it will fit before you
for the project box. I like to use a start drilling holes. It is best to mark Pick a terminal block that you like
hinge because I know I will return to the holes inside the project box so you and be sure it will fit inside of your
the robot to hack and hack again. If know were to drill before you start. project box. In Figure 18, I used the
you are planning on very little Doublecheck to be sure all of the holes one in the upper right hand corner.
modifications, match up, then start drilling. Use a bit Number the terminal block 1-15.
FIGURE 15. Back of you can use that is smaller than the self-taping Solder the ribbon cable wires to the
Roger showing the the standard screws so the screws will have terminal block according to the Cable
terminal block on
the upper left, screws to close something to grab onto when you Pin Connection Chart in Figure 11. On
breadboard upper the box and tighten them. Place the stand-off the other side of the terminal block
right, and BOE spacers on the holes, place the attach the lead wires for the bread-
lower center.
BOE on the spacers, and drive the board in the order in Figure 19. Use
screws through the BOE and spacer wire markers or masking tape and a
to secure it to the inside of the pen to number the wires near the end
project box. that plugs into the breadboard. My
Inside the box, I mounted a breadboard came with two columns,
standard breadboard on the robots then a space, five columns, a gap, five
right side and a terminal block on more columns, a space, and two more
columns. I used the first two for
the Ground buss (G1 and G2).
For this chart, G stands for
ground and on the breadboard
it is the first and second
column. I numbered the next
10 columns 1-10. The last two
columns are numbered P1 and
48 SERVO 01.2007
Reed.qxd 12/7/2006 8:07 PM Page 49
SERVO 01.2007 49
Reed.qxd 12/7/2006 8:07 PM Page 50
Connect the
Microcontroller
Be sure the switches are in the kill
and off positions. Disconnect the
wired remote at the 25-pin connector
and plug in the microcontroller ribbon
cable. Using nine-inch lead wires,
FIGURE 20.
Kill switch on make a connection from P0 on the
project box. is not near the kill The power switch will be wired BOE to row 32, column 8, from P1 on
switch. The power between the incoming power wire the BOE to row 26, column 2. Connect
switch is in line with the main power from the terminal block (wire number Vdd from the BOE to the power buss
from the battery box in the base of 1) and the power buss. From the row P1 column P41 (see Figure 15).
the robot. power switch, one wire will plug into
Write the
Program or
Parts List 1 Copy and Paste
Qty. Item Supplier
From SERVO
1 Roger Robot Big Lots www.biglotswholesale.com Website
1 BASIC Stamp II Parallax www.parallax.com
1 Board of Education Parallax www.parallax.com Start by loading a
2 L293D motor driver chip Texas Instruments www.ti.com standard blinking LED or
1 74HCT164 shift register chip www.semiconductors.philips.com Hello World program to
1 Breadboard Electronics Goldmine www.goldmine-elec.com be sure the BASIC Stamp
1 Jumper wire assortment All Electronics www.allelectronics.com is connected properly.
1 Ribbon cable 25-conductor All Electronics www.allelectronics.com
These standard programs
18 inches
2 Toggle switch CAT# MTS-5 All Electronics www.allelectronics.com can be downloaded from
1 22 position terminal strip All Electronics www.allelectronics.com the Parallax website.
CAT# TER-220 Once you know all is
2 Resistor 10K ohm RadioShack www.radioshack.com well with the BASIC Stamp
1 Spool of 28-gauge pre-tinned RadioShack www.radioshack.com and your connections, I rec-
insulated wire ommend you try loading
1 Project box 7x5x3 270-1807 RadioShack www.radioshack.com the GoForward program.
1 Machine screws RadioShack www.radioshack.com
Both left and right tracks
#4-40. Pack of 42.#64-3011
1 Self-tapping screws RadioShack www.radioshack.com will move forward. Run it
8 Stand-off Spacers RadioShack www.radioshack.com and then if all is well, load
10 Ceramic capacitor RadioShack www.radioshack.com the Pick Up Cup program.
Catalog #: 272-134. If you are going to do more projects, we recommend you buy the Since we have not
272-801 set of 100 disc capacitors for $4.95 instead of the ones above. added any sensors to Roger
1 Cabinet hinge Home Depot www.homedepot.com Robot yet, he is blind and
Additional items www.eBay.com; he cannot find a cup and
http://stores.eBay.com/They-Shall-Walk-Foundation pick it up so you will need
(Be sure you can solder to these)
to experiment with the
2 25-pin parallel extension cable with male and female connectors or
2 25-pin female connector DB25 Thank Yous
1 25-pin male connector DB25
A special thank you
to the NSCC faculty
Note: You can purchase the machine screws and self-tapping screws at Home Depot or Harbor members who have
Freight (www.harborfreight.com) if it is more convenient or a better deal. been very helpful: Frank
Jump, Lynda Wilkinson,
Project Box We used a spare one that was sitting around the lab. The one from RadioShack has Chris Saunders, Tracy
an aluminum lid and a plastic lid included, and has partial cutouts for both DB-9 or HD-15 comput- Heinlein, and Deborah
Bedford. Thank you to
er connectors and DB-25 connector. This will work better and require less fabrication. Doug and Cecelia for all
you do.
50 SERVO 01.2007
Reed.qxd 12/7/2006 8:07 PM Page 51
location of the cup. Sensors will be added in a future article. Extreme Robot Speed Control!
For the program Pick Up Cup to work, you will need 6 14V - 50V
6 Dual 80A H-bridges 150A+ Peak!
a paper or plastic cup (plastic is better in case the robot 6 Adjustable current limiting
crushes it by squeezing too hard). Place the cup 12 inches in 6 Adjustable speed slew rate
6 Temperature limiting
front of the robot. Turn on the power and push the reset 6 Three R/C inputs - serial option
6 Many mixing options
button so the program will start. Since I did not add any 6 Flipped Bot Input
6 Rugged extruded Aluminum case
sensors, this robot is running blind and requires you to set up 6 4.25" x 3.23" x 1.1 - Only 365g
the environment in a way that the program will function $399
correctly. Watch how the robot and the program work. If the
cup is too far to the left or right, or too far forward or back,
move it so the robot will be able to pick it up.
You can move the cup until you find the right distance
for placement every time. With my robot on my floor, the cup $79.99
$29.99 $119.99
placed 12 inches in front and centered works perfectly. Scorpion Mini Scorpion HX
I then modified the program so the cup could be placed 6 2.5A (6A pk) H-bridge 6 Dual 2.5A (6A pk) H-bridges
Scorpion XL
6 6 Dual 13A H-bridge 45A Peak!
5V - 18V 6 Plus 12A fwd-only channel
two feet directly in front of the robot. 6 1.25 x 0.5 x 0.25 6 5V - 18V 6 5V - 24V
6 6 2.7 x 1.6 x 0.5
Control like a servo 6 1.6 x 1.6 x 0.5
When the program is launched, the robot moves 6 Optional screw term. 6 Four R/C inputs
6 Three R/C inputs - serial option
6 6 Mixing, Flipped Bot Input
forward while the arms go up and out. Then the robot stops, Only 5.5g 6 Mixing, Flipped Bot Input
6 Only 28g
6 Only 22g
the arms go down around the cup, the arms close grasping
the cup, the arms go up lifting the cup (see Figure 21), the OSMC - Monster Power H-bridge
6 14V - 50V and 160A over 400A peak!
robot turns 180 degrees and, moves forward taking the cup. $199 6 3.15 x 4.5 x 1.5
6 Control with Stamp or other Micro
Have fun changing the program to change the directions 6 3 wire interface
Roger Robot will go and the amount of time he will run. 6 R/C interface available
MADE IN
All Robot Power electronic
Troubleshooting products are proudly
THE USA
SERVO 01.2007 51
Bergeron.qxd 12/7/2006 7:51 PM Page 52
ROBOT SAFETY
by Bryan Bergeron
SERVO 01.2007 53
Bergeron.qxd 12/7/2006 7:52 PM Page 54
reach. The simplest solution to stop- threat to eyes, ears, and extremities. area with a fire extinguisher rated for
ping a robot in an emergency is to The simple act of trimming a solder class A (common combustibles), B
install a wireless kill switch that disables joint with a pair of diagonal cutters can (electrical), and C (flammable liquids)
motor drive circuitry when activated. launch a wire with enough velocity to fires. An ABC extinguisher based on
An inexpensive kill switch system is embed it in an eye. Halotron is ideal for robotics work
available from All Electronics Corp., in Unfortunately, not all construction because the hydrochlorofluorocarbon
the form of a keychain remote control safety techniques can be gleaned from is an electrical insulator that doesnt
shown in Figure 5. The $19 system common sense. If youre unsure how leave a residue.
which includes a pair of 27 MHz wire- to do something, then get help.
less key fobs is designed to supply Someone skilled in cutting and bend- Ventilate your work area when
12V to a remote device. However, the ing aluminum sheet can show you safe soldering or using adhesives. Avoid
main board can be reconfigured so techniques that could take years to breathing flux vapors, which can cause
that the contacts of the mechanical master. Given this caveat, some basics permanent respiratory problems.
relay are available for direct or indirect that apply to all robot construction
control of the robot motor system. I projects include: Use leadless solder and components,
purchased several of these units and and wash your hands after handling
modified the solder pads on the boards Wear eye protection when using solder. Children are especially suscepti-
and remotes so that any fob can con- power tools and when cutting wire, ble to lead poisoning.
trol any and all robots with a kill switch plastic, or metal with hand tools.
an especially handy feature when Use multi-strand, insulated wire for
working with multiple, fast-moving Wear ear protection when working connections that require flexibility, and
robots. Line-of-sight range is about 100 with power tools to prevent hearing insulate exposed terminals and wires
feet, and about half of that indoors. loss. The high-pitched whine of a with shrink-wrap tubing or electrical
A major limitation of using a kill Dremel can be muffled with in-ear tape. Solid wire is fine for use with
switch as a remote safety device is that plugs available at most hardware plastic prototyping boards, but more
it requires you to recognize something stores. In-ear plugs, while not as com- flexible stranded wire is generally a bet-
is wrong and then press the off fortable as over-ear protection, offer ter choice for interconnecting batteries,
button to deactivate a robot. An superior sound reduction and protec- sensors, power supplies, and proces-
alternative approach is to use a dead tion from potential hearing loss. sors especially when there may be rel-
man switch, which is roughly equiva- ative movement between components.
lent to a watchdog timer in that an Wear short sleeves when working
active signal is required to keep the with power tools. Similarly, avoid loose Use sealed, leak-proof batteries
robot energized. If the onboard receiv- jewelry and anything else that might whenever possible. In addition, dont
er doesnt detect a signal because you become caught in a power tool. leave batteries in your robots for
released a momentary-contact switch extended periods even if they are
on the remote, the receiver is out of Use clamps with a drill press to avoid leak-proof.
range, the battery is dead, or any a trip to the emergency room to
number of other reasons, the robot reattach your fingers. Clamps are Use secure construction techniques,
can be configured to shut down. especially important when step bits are such as locking pins to secure parts,
Although its hard to beat the form used, because they are more likely to instead of relying on gravity or tape.
factor of the fob shown in Figure 5, the bind than straight bits (See Figure 6).
Parallax 433 MHz transmitter and Operation
matched receiver can be used to create Use a lubricant when drilling to mini-
a relatively compact dead man switch. mize binding and reduce noise. I like to Safe robot operation depends on
As with most Parallax devices, setup is use a few drops of
quick and painless. Other than rubbing alcohol
supplying each device with 5V at 5 mA, when drilling alu-
installation is a simple matter of minum sheeting.
interpreting the analog received
signal strength value with an onboard Smooth freshly
processor or using it to directly control cut edges with a
a solid-state relay. Line-of-sight range is file.
about 500 feet.
Equip your work
Construction FIGURE 6. Use a clamp
not hands to
The process of creating a robot, stabilize items on a
whether from a kit or sheet of alu- drill press especially
minum and plastic, poses a potential with a step bit.
SERVO 01.2007 55
Bergeron.qxd 12/7/2006 7:52 PM Page 56
the type of robot, the operating Charge batteries in a well ventilated robot safety is how much safety
environment, and the purpose of the area and use a charger that guards overhead is enough. In general, the
robot. What constitutes safe operation against overheating and overcharging. greater the safety risk, the more
of a BattleBot engaged in a fight to the safety should be emphasized in robot
death in a BattleBot arena doesnt nec- Affix robot arms and other stationary design. A kill switch and comprehen-
essarily apply to a robot designed to robots securely on a stable platform sive energy management circuitry
explore robot-robot communications. A prior to power-up. generally dont make sense for a slow
few globally applicable safe operation moving, 12 ounce carpet rover.
heuristics are: Establish a safety zone around a However, a highly mobile, 20 pound
robot within which no one may enter robot equipped with an expensive
RESOURCES during operation. sensor array, significant on-board
processing hardware, and a high-
All Electronics Corp. From Here current drive system may dictate a full
www.allelectronics.com suite of safety technologies.
The above safety measures apply The obvious tradeoffs are safety
BattleBot Rules & Guidelines in varying degrees to experimental for increased complexity, weight, cost,
www.battlebots.com robots and those designed for explo- and development time. Increased
ration and assorted tasks. Robots complexity usually translates to a
Crydom, Inc. intended for competition such as greater likelihood of failure because of
www.crydom.com BattleBot-style competitions must an increased number of failure points.
abide by specific safety guidelines. For example, a dead battery in a
Parallax Even if you are not intending to enter remote enable/kill switch can disable
www.parallax.com
your robot in a competition, its a an otherwise operational robot.
Surge Protection Device Handbook. good idea to review safety guidelines However, replacing a battery is a trivial
Cooper Bussman, Inc., 2002. associated with events for ideas on matter compared with replacing an
www.bussman.com/apen/pubs/ how you can improve the safety of expensive video camera because you
spd/index.asp your robot. couldnt stop your robot from
A common question regarding slamming into a table leg. SV
56 SERVO 01.2007
Pawelski2.qxd 12/6/2006 11:51 AM Page 57
PART 2:
Building the
CIRC Bot
Amateur
robotics is FUN.
Amateur robotics
is EDUCATIONAL.
Amateur robotics
is EXPENSIVE!
Last month, you
purchased the basic
hand tools and
supplies you need to
build a robot and
you learned to
solder. This month,
you will be building a
complete robot. This
robot will be more
F
igure 1 shows the complete CIRC a BASIC Stamp for its microcontroller
Bot. The main body of the robot and modified servos for its motors. than just a platform.
is a solderless breadboard on a Both of those choices are made with
plastic frame. If you have been reading It will be mobile,
SERVO for awhile, you have seen other
breadboard bots (and if you have read
sense its environ-
Nuts & Volts since the mid-1990s, you ment, change how
have seen several more). The big
difference between this robot and the it moves based on
others that have been presented is that what it senses, and
it is built to a tight budget. Most of the
time, a beginners robot is shown with FIGURE 1. CIRC Bot. be easily modifiable.
SERVO 01.2007 57
Pawelski2.qxd 12/6/2006 11:52 AM Page 58
and solder it so that it looks like Figure 3. outer cover ends on both
You will probably have to make several ends. On the end with
tries to get the joints between the capac- 1-1/2 inches of the cover
itor leads and the motor case to hold. removed, trim the blue, FIGURE 4.
Just take your time and dont give up. yellow, and red wires so Programming
Repeat this process for the other that only an inch of each of Circuit
Schematic.
motor. them is exposed. Strip one
half inch of insulation from both ends resistor in the cup for pin 4 and take
Making the Programming Cable of all the wires so that the cable looks the third resistor and solder it into the
The simple cable programmer you like Figure 5. cup for pin 5.
will be making is based on a design The resistors and the pin jumpers Lay one of the pieces you trimmed
originally in Sample Electronics which is will be added inside the connector off of the resistors across the solder
also described on the Dontronics web- hood. Because of the short distances cups for pins 18 to 25. Solder it to each
site at www.dontronics.com/dt006_ involved, it will be easier to make of these cups.
programming.html jumpers out of leads trimmed off of The DB25 hood came with several
The only differences between this components than out of the hookup pieces of hardware which are used to
cable and the one on the Dontronics wire. You will have to take your time secure the cable and hold the two
site are the pinout on the end that will while doing this to make sure that pieces of the hood together. The two
connect to the bot and the size of the everything fits. Read the rest of this curved pieces of metal are called cable
resistors. Figure 4 and Table 2 show the subsection several times and lay the clamps. Normally, they go around the
connections. Note that pin 18, 19, 20, pieces out to make sure that you cable where it enters the hood with
21, 22, 23, 24, and 25 of the DB25 understand how everything fits before their concave sides facing each other to
male connector must be connected to you start cutting. form a ring around the cable. However,
each other. To protect your computers Take three 360 ohm resistors and our cable is smaller so we will be
printer port, 360 ohm resistors have trim their leads so that only 8 mm (a lit- placing the two pieces around the cable
been added in series with the MOSI, tle more than a quarter of an inch) is with the curved parts facing the same
RESET, and CLOCK signals. left on each end. Save the pieces you way. Attach the cable clamps around
Cut a four-foot piece of the six trimmed off. The solder cups on the the cable at the end with the 1-1/2 inch-
conductor cable. Cut off one inch of DB25 connector have numbers next to es of exposed wires as shown in Figure
the outside cover from one end of the them. Solder one end of one of the 6. You now need to solder the wires as
cable and 1-1/2 inches of the outside trimmed resistors into the solder cup shown in the photo: the blue wire to
cover from the other end. Trim the for pin 2 (dont forget the rosin paste). the resistor for pin 2, the yellow wire to
white wire so that it ends where the Do the same thing with another the resistor for pin 4, the red wire to the
SERVO 01.2007 59
Pawelski2.qxd 12/6/2006 11:54 AM Page 60
SERVO 01.2007 61
Hewitt1.qxd 12/7/2006 4:55 PM Page 62
OpenCV Overview
O
penCV Intels free, open-source experiment with many standard com-
computer-vision library can puter vision algorithms without having
greatly simplify computer-vision OpenCV is a free, open-source to code them yourself. These include
programming. It includes advanced computer vision library for C/C++ edge, line, and corner detection, ellipse
capabilities face detection, face track- programmers. You can download it fitting, image pyramids for multiscale
ing, face recognition, Kalman filtering, from http://sourceforge.net/proj processing, template matching, various
and a variety of artificial-intelligence (AI) ects/opencvlibrary. transforms (Fourier, discrete cosine,
methods in ready-to-use form. In addi- Intel released the first version of and distance transforms), and more.
tion, it provides many basic computer- OpenCV in 1999. Initially, it required
vision algorithms via its lower-level APIs. Intels Image Processing Library. That High-level computer-vision modules
A good understanding of how dependency was eventually removed, OpenCV includes several high-level
these methods work is the key to get- and you can now use OpenCV as a capabilities. In addition to face-
ting good results when using OpenCV. standalone library. detection, recognition, and tracking, it
In this five-part series, Ill introduce you OpenCV is multi-platform. It sup- includes optical flow (using camera
to OpenCV and show you how to use it ports both Windows and Linux, and motion to determine 3D structure),
to implement face detection, face more recently, MacOSX. With one camera calibration, and stereo.
tracking, and face recognition. Then, exception (CVCAM, which Ill describe
Ill take you behind the scenes to later in this article), its interfaces are AI and machine-learning methods
explain how each of these methods platform independent. Computer-vision applications often
works and give you tips and tricks for require machine learning or other AI
getting the most out of them. Features methods. Some of these are available in
This first article introduces OpenCV. OpenCVs Machine Learning package.
Ill tell you how to get it and give you a OpenCV has so many capabilities,
few pointers for setting it up on your it can seem overwhelming at first. Image sampling and view
computer. Youll learn how to read and Fortunately, youll need only a few to transformations
write image files, capture video, convert get started. Ill walk you through a Its often useful to process a group
between color formats, and access pixel useful subset in this series. of pixels as a unit. OpenCV includes
data all through OpenCV interfaces. Heres a summary of the major interfaces for extracting image
functionality categories in OpenCV, subregions, random sampling, resizing,
version 1.0, which was just released warping, rotating, and applying
at the time of this writing: perspective effects.
FIGURE 2. Selecting
Math routines for image processing, OpenCV header files
computer vision, and image in Windows to place
interpretation into a single include
OpenCV includes math commonly directory.
used, algorithms from linear algebra,
statistics, and computational geometry. experimental code.
However, the sim-
Graphics plest interfaces for
These interfaces let you write text face recognition are
and draw on images. In addition to vari- in this module. The
ous fun and creative possibilities, these code behind them is
functions are useful for labeling and mark- specialized for face
ing. For example, if you write a program recognition, and
that detects objects, its helpful to label theyre widely used
images with their sizes and locations. for that purpose.
FIGURE 3. Example
program that reads an the library path and the names of the
image from a file and static libraries to use. The static libraries
writes it to a second you need to link to are cxcore.lib, cv.lib,
file in a different
compression format. and highgui.lib. Later, for face recogni-
tion, youll also link to cvaux.lib. These
*.hpp. There will be are in OpenCVs lib directory.
lots of matches. You
dont need all of Reading and Writing Images
them. Headers for all Image I/O is easy with OpenCV.
modules except Figure 3 shows a complete program
HighGUI are in listing for reading an image from
separate include file and writing it as a second file, in a
directories inside each different compression format.
module. You can skip To read an image file, simply call
headers in the cvLoadImage(), passing it the filename
src directories for (line 14). OpenCV supports most common
these modules. For image formats, including JPEG, PNG, and
HighGUI, youll need BMP. You dont need to provide format
highgui.h, located in information. cvLoadImage() determines
otherlibs/highgui. file format by reading the file header.
To write an image to file, call
OpenCV modules. Although you dont cvSaveImage(). This function decides
need to do this, I like to gather them
Programming with which file format to use from the file
together into a single include directory. OpenCV: Some Basics extension. In this example, the exten-
On both Linux and Windows, you sion is png, so it will write the image
can locate the headers by searching the More about Headers and Libraries data in PNG format.
install directory and subdirectories for Most OpenCV programs need to Both cvLoadImage() and
filenames that match the pattern *.h, include cv.h and highgui.h. Later, for cvSaveImage() are in the HighGUI
face recognition, module.
well also include When youre finished using the input
cvaux.h. The image received from cvLoadImage(), free
remaining head- it by calling cvReleaseImage(), as on line
er files are includ- 29. This function takes an address of a
ed by these pointer as its input because it does a
top-level headers. safe release. It frees the image struc-
If youve left ture only if its non-null. After freeing it, it
the header files sets the image pointer to 0.
in multiple direc-
tories (default Live Video Input
installation), Capturing image frames from a
make sure your webcam, or other digital video device,
compilers is nearly as easy as loading from file.
include path con- Figure 4 shows a complete program
tains these direc- listing to initialize frame capture, cap-
tories. If youve ture and store several video frames,
gathered the and close the capture interface.
headers into one The capture interface is initialized, on
include directory, line 19, by calling cvCaptureFromCAM().
make sure that This function returns a pointer to a
directory is on CvCapture structure. You wont access
your compilers this structure directly. Instead, youll store
include path. the pointer to pass to cvQueryFrame().
Your linker When youre finished using video
will need both input, call cvReleaseCapture() to
release video resources. As with
FIGURE 4. Example cvReleaseImage(), you pass the address
program that
captures live video of the CvCapture pointer to
frames and stores cvReleaseCapture().
them as files. Dont release or otherwise modify
64 SERVO 01.2007
Hewitt1.qxd 12/7/2006 4:57 PM Page 65
the IplImage you receive from cvQueryFrame()! If you need ers and other high-level constructs. All pixel-level calculations
to modify image data, create a copy to work with: are performed inside OpenCV functions. However, if you
write your own image-processing algorithms, you may need
// Copy the video frame to access raw pixel values. Here are two ways to do that:
IplImage *pImgToChange =
cvCloneImage(pVideoFrame);
1. Simple Pixel Access
// Insert your image-processing code here ... The easiest way to read individual pixels is with the
cvGet2D() function:
// Free the copy after using it
cvReleaseImage(&pImgToChange); CvScalar cvGet2D(const CvArr*,
int row, int col);
Color Conversions
Figure 5 shows code for converting a color image to This function takes three parameters: a pointer to a data con-
grayscale. OpenCV has built-in support for converting to and tainer (CVArr*), and array indices for row and column location.
from many useful color models, including RGB, HSV, YCrCb, The data container can be an IplImage structure. The topmost
and CIELAB. (For a discussion of color models, see The row of pixels is row=0, and the bottommost is row=height-1.
World of Color, SERVO Magazine, November 2005.)
Note that the conversion function, cvCvtColor(), requires The cvGet2D()function returns a C structure, CvScalar,
two images in its input list. The first one, pRGBImg, is the defined as
source image. The second, pGrayImg, is the destination image.
It will contain the conversion result when cvCvtColor() returns. typedef struct CvScalar
{
Because this paradigm of passing source and destination
double val[4];
images to a processing function is common in OpenCV, youll }
frequently need to create a destination image. On line 25, a CvScalar;
call to cvCreateImage() creates an image the same size as the
original, with uninitialized pixel data. The pixel values for each channel are in val[i]. For
grayscale images, val[0] contains pixel brightness. The other
How OpenCV Stores Images three values are set to 0. For a three-channel, BGR image,
OpenCV stores images as a C structure, IplImage. IPL blue=val[0], green=val[1], and red=val[2].
stands for Image Processing Library, a legacy from the The complementary function, cvSet2D(), allows you to
original OpenCV versions that required this product. modify pixel values. Its defined as
The IplImage datatype is defined in CXCORE. In addi-
tion to raw pixel data, it contains a number of descriptive
fields, collectively called the Image Header. These include
SERVO 01.2007 65
Hewitt1.qxd 12/7/2006 4:57 PM Page 66
Resources need to cast the data type. For example, if your image data are
Sourceforge site unsigned bytes (the most common input type), youd cast each
http://sourceforge.net/projects/opencvlibrary value to unsigned char* before assigning, or otherwise using, it.
If youre accessing data from a grayscale (single-channel)
Official OpenCV usergroup
http://tech.groups.yahoo.com/group/OpenCV image, and the data depth is eight bits (one byte per pixel),
youd access pixel[row][col] with
OpenCV Wiki
http://opencvlibrary.sourceforge.net pixel[row][col] = ((uchar*)
(pImg->imageData +
Source code for the program listings in this article are available row*pImg->widthStep + col));
for download at www.cognotics.com/opencv/servo.
In multi-channel images, channel values are interlaced.
void cvSet2D(CvArr*, int row, int col, Heres a code snippet to access blue, green, and red pixel values:
CvScalar);
step = pImg->widthStep;
nChan = pImg->nChannels;
2. Fast Pixel Access // = 3 for a BGR image
Although cvGet2D() and cvSet2D() are easy to use, buf = pImg->imageData;
if you want to access more than a few pixel values, and
blue[row][col] =
performance matters, youll want to read values directly ((uchar*)(buf + row*widthStep +
from the raw data buffer, IplImage.imageData. nChan*col);
Image data in the buffer are stored as a 1D array, in row- green[row][col] =
major order. That is, all pixel values in the first row are listed ((uchar*)(buf + row*widthStep +
nChan*col + 1);
first, followed by pixel values in the second row, and so on. red[row][col] =
For performance reasons, pixel data are aligned, and ((uchar*)(buf + row*widthStep +
padded if necessary, so that each row starts on an even four-byte nChan*col + 2);
multiple. A second field, IplImage.widthStep, indicates the
number of bytes between the start of each rows pixel data. That Finally, if image depth is greater than eight bits (for
is, row i starts at IplImage.imageData + i*IplImage.widthStep. example, IPL_DEPTH_32S), youd need to transfer multiple
IplImage.imageData is defined as type char*, so you may bytes for each value and multiply the buffer offset by
the number of data bytes for your image depth. Its very
unlikely, however, that youll encounter a situation in which
you must access multi-byte pixel values directly.
STEER WINNING ROBOTS
WITHOUT SERVOS! Finding Help
If you have problems installing or using OpenCV, the first
place to turn for help is the FAQ (faq.htm) in your OpenCV
docs directory. The INSTALL file, at the root of your OpenCV
directory, also contains helpful setup and troubleshooting
tips. If these dont answer your question, you may want to
post a query to the official Yahoo! user group. The groups
URL is in the Resources sidebar.
API documentation for each module is in the docs/ref
subdirectory. All reference manuals except the one for
CVAUX are linked from index.htm, in the docs directory.
66 SERVO 01.2007
Events.qxd 12/6/2006 11:23 AM Page 67
Send updates, new listings, corrections, complaints, and suggestions to: [email protected] or FAX 972-404-0269
Happy New Year, robot builders! The 2007 contest in the United States. Expect to see some very
dates are beginning to roll in as more organizations finalize advanced and fast micromouse robots.
their plans for the new year. www.apec-conf.org
Know of any robot competitions I've missed? Is your
local school or robot group planning a contest? Send an
email to [email protected] and tell me about it. Be sure to March
include the date and location of your contest. If you have a
website with contest info, send along the URL as well, so we 3 RoboWars
can tell everyone else about it. Montreal, Canada
For last-minute updates and changes, you can always Sumo and BEAM Solaroller events.
find the most recent version of the Robot Competition FAQ www.robowars.ca
at Robots.net: http://robots.net/rcfaq.html
9-10 AMD Jerry Sanders Creative Design Contest
R. Steven Rainwater University of Illinois at Urbana-Champaign, IL
Check the website for the details of this year's contest.
Januar y 2007 http://dc.cen.uiuc.edu
SERVO 01.2007 67
Calkins.qxd 12/7/2006 1:36 PM Page 68
by Dave Calkins
ROBOGAMES
PREP:
Tetsujin! SERVOs
Original Robot Challenge
T
etsujin the ultimate robot did learn to walk again, but the dream during the first competition, said our
competition. When we build of mechanically assisted walking lives suit cost roughly $2,000. Because of
other robots, were always on. At last years RoboGames, Monty the simplicity of the suit, there were
putting out time, money, and efforts took up not only the weightlifting only three major purchases. These
into the projects. More often than not, challenge of Tetsujin, but also the included the pneumatics, the chromoly
we put our souls into the project. But walking challenge. steel tubing, and an air tank. Clippard
how often do we put ourselves into the To the untrained eye, it appeared Pneumatics sponsored 50% of the
project? I mean that literally. No one as though Monty was just walking pneumatics cost for our team. If a
would enter a combat robot arena, or around the arena with a bunch of high school student can do it, so
risk riding in a Grand Challenge vehicle. metal and tubes surrounding him. Yet can you.
But Tetsujin takes it to the ultimate his stomping and jumping were all The hardest thing about building
man and machine become one. done with the suit. The dream is not far a Tetsujin suit is it requires understand-
And to what end? Is this just some- off! The mechanics of making a ROBO- ing and integrating multiple disciplines
thing that we do as yet another robot one walk and helping the lame walk (mechanical engineering, electrical
competition? Something thats fun and are essentially the same problems engineering, bio-medical engineering)
can win us medals or cash? Or is it the major difference being that the while being extremely careful so that
something more? Something that can bones of the lame become part of the you do not get hurt, said Alex. Most
truly benefit man. support structure along with the metal, of us understand one or two of these,
Not only could the ultimate and the motors are outside the but few are masters at all three. This is
Tetsujin suit make you look like skeleton rather than in it. where team members who comple-
Sigourney Weaver in Alien and help Ah, but whats this got to do with ment your skills come in handy. The
you move those shipping containers RoboGames? Well, its one of the most difficult aspect of building a suit
around the room, but the ultimate premier events! Broken up into three is the control system that commands
Tetsujin suit can truly advance man. stages weightlifting, walking, and the mechanical suit based on your
How many crippled people could get dexterity Tetsujin is SERVOs own movement. The three main choices
out of a wheelchair and back to stand- robot event. for powering a suit are electrical,
ing in line at the supermarket? Much too expensive, you think? pneumatic, and hydraulic. Each one
Running to catch the bus? Thats Well, Alex Sulkowski winner of the has major pros and cons that impact
what Monty Reed of They Shall Walk first $25,000 Tetsujin challenge the control system. On top of that, a
had in mind when he started building bought all the parts for his suit for failure in the control system can result
walking suits. $1,100. Many parts were bought in major damage to your body.
Monty was injured in a parachute cheaply on eBay, says Alex. Thats Bryan adds, Time, money, and
accident, and the threat of never cheaper than the cost of the average knowledge just about sum it up. As I
walking again was very real. Thanks to middleweight combat robot. Bryan recall, I spent only about two weeks
research and hard work on his part, he Hood, who was a high school student actually building the suit and several
68 SERVO 01.2007
Calkins.qxd 12/7/2006 1:46 PM Page 69
]
Not only could the
ultimate Tetsujin suit make
you look like Sigourney
Weaver in Alien and help
you move those shipping
containers around the room,
but the ultimate Tetsujin suit
can truly advance man.
SERVO 01.2007 69
Calkins.qxd 12/7/2006 1:38 PM Page 70
ROBOGAMES Prep
months planning, researching, and ful designing things. The entire project controls, it is very difficult to attain
finding parts. Two weeks to build a was done in my garage with only basic balance which is the biggest problem
suit and here you have six months tools and a Sherline milling machine. I that I faced in the competition, says
to get ready for the June 2007 had just about everything working Brian. My suit lost balance on several
competition. against me and I still believe it was a occasions throughout the competition
As a 17-year-old kid at the time, I miracle that the suit worked at all. But which was a pretty scary experience.
really didnt know what I was doing, it did work! Think what Bryan will be Alex adds, Most people focus
nor did I have a lot of capital available. able to do next time. their attention on the mechanics
All I had was my hobbyist knowledge If youre worried about control, because that is the area they are
and whatever calculus and physics I you should be. Both Bryan and Alex most comfortable with. They ignore
had learned in high school. I had no make the point that balance and the control system which can be very
CAD software so I had to be very care- controls are crucial. Without good complex.
The coolest part of the suit was
that the control system read the
TETSUJIN RULES electrical signals directly from my
muscles and controlled the pneumatic
Suit can be up to three meters (9.84 human operator (e.g., to make the
suit based on these signals. This
feet) in height and cannot exceed 1.5 suit squat, the operator squats; to
resulted in my muscles receiving
meters (4.92 feet) in diameter. lift a load with the suit arms, the
assistance from the suit on demand
operators arms make the necessary
(as my muscles required more
Challenge 1 Ascend stairs in lifting motions). This can be as simple assistance, the pneumatic system
your suit to the lifting platform and as micro-switches and limit switches would deliver more assistance to the
lift a load of from 100 to 1,000 lbs or as complex as closed-loop servo muscles that required it).
from a squatting position to a height control and bio-electric sensors. Like all robots, failures are bound
of at least 24 inches, return the to happen while building your suit.
load to the ground in a controlled All power for the exoskeleton and Although Alex had tested all of the
manner, and descend the stairs. any required support systems must components of the suit, he did
Stair-climbing may be unpowered. be provided by a self-contained not leave enough time to test all
The winner is the competitor who system. The system may incorporate components of the suit together. His
lifts the largest weight. remote components connected via pneumatic hose connections devel-
a tether, wireless link, etc. oped leaks because they were not
Challenge 2 Dexterity. Stack nine properly fastened, and he ended up
concrete cylinders weighing ~70 The tasks(s) must be accom- losing air pressure. This resulted in him
pounds each in a 4-3-2 vertical plished by powered elements not being able to complete the walking
arrangement. The winner is the that are an integral part of the competition at RoboGames 2006.
competitor who arranges the exoskeleton in response to the Start simple and enhance as you
cylinders in the shortest time. operators movements. External succeed. As Alex says, In the original
devices such as winches, support Tetsujin competition and in Robo-
Challenge 3 Walking Race. Walk frames, jacks, etc., are not allowed. Games 2006, I talked to many people
the challenge course carrying a load who were interested in competing.
in the shortest time. A time bonus is The exoskeleton must be able to Most of them had grand ideas that
granted based on the load carried. balance and support itself, the sounded really cool but I have never
operator, and the load without the seen one of them work. Start with
The operator must be inside the use of outriggers, auxiliary braces, small successes and build from there.
suit in order to operate it. etc., other than its own legs and feet. But just building a suit is success
A fixed base is allowed for the in itself. Bryan says, to this day, I con-
The suit must provide sufficient Cylinder Stacking challenge. tribute more and more of my success
articulation in the powered [in life] to the Tetsujin competition. It
components to track the movements Stored mechanical energy devices was amazing to finally get the suit
of the human operator to meet the such as springs, torsion bars, gas working the morning of the competi-
challenge. struts flywheels, etc., are all allowed. tion and to get up on the platform in
front of hundreds of people to perform
Movement of the suits powered The exoskeleton shall have a the lifts. That was the instant success
components must be initiated by removable power link that disables but it was only a taste of what was to
and track the movements of the all operation. come. As I was only a high school
junior at the time of the competition, I
70 SERVO 01.2007
Calkins.qxd 12/7/2006 1:48 PM Page 71
used my Tetsujin experience to help me scholarship also gives me a mentor, have worked out better.
get an internship at KIVA Systems, a which will be very helpful for my future And thats the way it is with all
robotics start-up company in MA which robotic endeavors. Now here at the robots you build. Many people start
is revolutionizing warehouse robotics. I University of Florida, I am working on a out building them to win a
continued working on robotics projects double major in Electrical and competition, but along the way realize
through my senior year. All of this Mechanical Engineering. My experi- that its not just about winning its
resulted in me getting the Lombardi ence in Tetsujin got my foot through about making the best robot you can
Scholarship at the University of Florida. the door and the success keeps build- make. Its about expanding your
This scholarship pays all of my ing on itself. I look back at what I knew knowledge of how both mechanics
expenses and more, as well as sending then and compare it to what I know and electronics work.
me abroad to Mexico, Greece, Japan, now and I realize that I have come such And of course, winning a medal
and South Africa each summer. The a long way. I dont know how it could doesnt suck either. SV
SERVO 01.2007 71
Showcase - Menagerie Jan07.qxd 12/7/2006 10:03 PM Page 72
7KH(VFDSH
8lCYklCgo[gkl 5RERWVEXLOWLQ
PLFURSURFHVVRU
HQDEOHVLWWR
]f[g\]jk^gj WKLQNRQLWVRZQ
G
.65
LUH QJ
TX U L
eglgjkk]jngk
UH ROGH
6
7KHURERWIURJPRYHVIRUZDUG
ZKHQLWGHWHFWVVRXQGDQG
UHSHDWVVWDUWPRYHIRUZDUG!
VWRS!OHIWWXUQ!VWRS!ULJKW
WXUQ!VWRS.65
PP:KLWH
ZDWHUFOHDU
/('9
PFG
$%
VHFRQGYRLFHUHFRUGHUSOD\EDFN
N`]]dNYl[`]j KD
PRGXOH7KHHOHFWUHWPLFURSKRQHLVRQWKH
ERDUG2QHEXWWRQUHFRUGVWKHRWKHUEXWWRQLV
<YkqafklYddYlagf PRPHQWDULO\SUHVVHGWRUHSOD\WKHPHVVDJH
Dg\]dk[gehYlaZd]oal`=mlYZY SUHDVVHPEOHG$
>NJ?al][?gZZa[gk]jngk 7KH9HOOHPDQ3HUVRQDO6FRSH
Yf\eYfqJgdYjZgla[keglgjk LVQRWDJUDSKLFDOPXOWLPHWHU
EXWDFRPSOHWHSRUWDEOH
Lk]kklYf\Yj\o`]]dk RVFLOORVFRSHDWWKHVL]HDQG
;]Y\j][cgfaf_g\ge]ljqklYdd FRVWRIDJRRGPXOWLPHWHU
\]l][lagf[dgk]\dggh[gfljgd +36
QGV
KD 7KRXVD
L WH P VRQ
PRUH
E LWH
V
RXUZH
ooofmZgla[k[ge
Robotics Showcase
Robotics Showcase
THOUSANDS OF ELECTRONIC
PA R T S A N D S U P P L I E S
VISIT OUR ONLINE STORE AT
www.allelectronics.com
WALL TRANSFORMERS, ALARMS,
FUSES, CABLE TIES, RELAYS, OPTO
ELECTRONICS, KNOBS, VIDEO
ACCESSORIES, SIRENS, SOLDER
ACCESSORIES, MOTORS, DIODES,
HEAT SINKS, CAPACITORS, CHOKES,
TOOLS, FASTENERS, TERMINAL
STRIPS, CRIMP CONNECTORS,
L.E.D.S., DISPLAYS, FANS, BREAD-
BOARDS, RESISTORS, SOLAR CELLS,
BUZZERS, BATTERIES, MAGNETS,
CAMERAS, DC-DC CONVERTERS,
HEADPHONES, LAMPS, PANEL
METERS, SWITCHES, SPEAKERS,
PELTIER DEVICES, and much more....
Request a Free Sample Today
O R D E R TO L L F R E E
1-800-826-5432
Ask for our FREE 96 page catalog
Showcase - Menagerie Jan07.qxd 12/7/2006 10:08 PM Page 73
SERVO 01.2007 73
ProgrammableLogic.qxd 12/6/2006 11:59 AM Page 74
Programmable
The goal
of this
bimonthly
column is to
provide a basic
understanding
of the various
Logic:
Dividers and Timers
igital logic depends upon the
by Gerard Fonte
74 SERVO 01.2007
ProgrammableLogic.qxd 12/6/2006 11:59 AM Page 75
FIGURE 2. Simple
divide-by -two
circuits can be
cascaded for
binary division.
This is a divide-
by-eight circuit.
counter is automatically reset when 10 extremely narrow pulse that is related counters discussed the last time.)
counts are registered (note that zero is to the propagation speed of the circuit. With programmable logic devices,
one of the counts). It is also important Often, this pulse is less than 10 nS and the routing of the decode and reset
to realize that many different types of can be difficult to observe. The pulse is lines can cause problems. Not all of the
counters can be used here, but the con- exaggerated in the figure for clarity. bits may be reset properly. In this case,
cept is the same. (Refer to the previous There are several points concerning either use a synchronous counter design
article on counter types in this column.) the decoding of the outputs. An AND or else use a separate reset flip-flop that
The operation is straightforward. gate will function properly without any produces a predictable-length pulse.
The circuit counts normally for 10 glitches as long as it is used to reset the These divide-by-N circuits can also be
counts. At the start of the 11th count, ripple-counter to zero. However, an cascaded to create any integer division.
the output of the AND gate immediate- AND gate used to decode state nine of Figure 4 shows a divide-by-1,005 circuit
ly goes high and resets the counter to a 16 state ripple-counter will show (with a flip-flop reset). The operation isnt
0000. The AND gate output also goes glitches on some state changes beyond as complicated as it first appears. There
to zero when these bits change. In fact, nine. (The ripple delay is not as are three cascaded divide-by-10 counters
the output of the AND gate is an significant a factor as it was for the that are basically the same as Figure 3.
FIGURE 3. Dividing by N is
a matter of choosing the
proper bits to AND together
to reset the counter. In this
case, the counter divides by
10. The reset pulse is greatly
exaggerated. Its really only
a few nS long.
SERVO 01.2007 75
ProgrammableLogic.qxd 12/6/2006 11:59 AM Page 76
This means that the second counter is pulse. Since the counter counts on the and the enable flip-flop are clocked on
actually counting 10s of counts and the negative-going edge of the input clock, a rising edge rather than a falling edge.
third is counting 100s of counts. After the reset to this flip-flop is low when it Unfortunately, the division is a fixed
1,000 counts, the reset pulse turns on a is clocked. It will remain low for half of value. The only way to change this is to
flip-flop that enables the main input clock a full input clock signal. When the main change the reset decoding. This is cer-
to pass through to a divide-by-five count- input clock goes high, the master reset tainly possible but it requires additional
er. This counts five additional pulses past pulse goes low because the controlling resources. Figure 5 illustrates a basic pro-
the already completed 1,000 pulses. flip-flop is reset. The master reset also grammable divide-by-N circuit. The XNOR
After these five pulses are complet- resets all the other counters via the OR (exclusive NOR) gates go high when the
ed, another flip-flip is turned on. This gates. (Each divide-by-10 counter could program input matches the bit output.
generates a controlled master reset have incorporated its own flip-flop When all of the XNOR gates are high, the
reset, if desired.) Also note that the count is correct and the circuit is reset.
FIGURE 4. This circuit uses three delay of the circuit (as measured by the There are many variations on this. In
cascaded divide-by-10 circuits to divide master reset signal) is only the divide- particular, a flip-flip reset would be very
by 1,000. When this occurs, a second
counter is enabled that counts five more by-five circuit. The ripple delays through useful (as shown in Figure 4). Another
main clock cycles and then resets every the divide-by-10 counters are not a fac- point is that all of these divide-by-N
flip-flop. The result is a divide-by-1,005 tor. Note that the master reset flip-flop designs create an asymmetrical output
counter. Note that the reset flip-flip
provides a half-clock pulse.
76 SERVO 01.2007
ProgrammableLogic.qxd 12/6/2006 11:59 AM Page 77
Frequency
Multiplication
The typical method for frequency
SERVO 01.2007 77
ProgrammableLogic.qxd 12/6/2006 11:59 AM Page 78
5 MHz Cycles 3.3333 MHz Cycles MHz Sum Average of Cycles % Error TABLE 1. Making 4.5 MHz from 10 MHz
1 1 8.3333 4.1666 -7.408 using two different dividers. If the
average frequency is too low, add a
2 1 13.3333 4.4444 -1.236 cycle of the higher frequency and vice
versa. Eventually, the result will be as
3 1 18.3333 4.5833 +6.172 close to the proper value as needed. In
3 2 21.6666 4.3333 -3.704 this case, the exact frequency (4.5000
MHz) is achieved.
4 2 26.6666 4.4444 -1.236
5 2 31.6666 4.5238 +0.5289
ed. In theory, this approach will allow
5 3 35.0000 4.3570 -3.178 you to close in on your desired fre-
6 3 40.0000 4.4444 -1.236 quency to whatever accuracy you need.
7 3 45.0000 4.5000 0.0000 This idea is based on the
mathematical principle that any ration-
signal and again, transmission line con- Of course, the tolerances of these com- al number can be expressed by the
siderations will be required. This is not ponents must be considered too. ratio of two integers. In this case, the
too much of a concern with programma- fraction is 2.2222. The easiest available
ble logic chips where the internal path Average Frequency integers are two and three. It becomes
lengths are very short. However, it is very Division clear that it is possible to take a certain
important with discrete designs. number of twos and threes such that
Another problem with this approach Sometimes the instantaneous fre- their average becomes 2.2222.
is the variation of the delay circuit. A quency is not as important as the The quick and dirty way to deter-
temperature shift can cause a significant average frequency. If so, then there is mine the proper ratio is by trial-and-
change in the output if an internal delay another approach that allows fractional error with the two division values that
is used. This is because the internal frequency division to arbitrary precision. bracket the desired value. Start with one
speed of the gates and routing resources Suppose you need a 4.5 MHz clock and of each and determine the average. In
changes considerably with temperature. only have a 10 MHz clock. If you divide this case, 5 MHz and 3.3333 MHz aver-
This is especially true with CMOS circuits. 10 MHz by two, you get 5 MHz. If you age to 4.166 MHz. This is lower than
It is possible that an XOR frequency divide it by three, you get 3.3333 MHz. the target value of 4.5 MHz so add
doubling circuit cannot be guaranteed to What you really need is to divide by another 5 MHz cycle. Two 5 MHz cycles
work over a given temperature range. 2.2222. But its not obvious how to do and one 3.333 cycle average to 4.444
Operation speed also depends upon the that. The solution is to alternate between MHz. If this is not accurate enough,
power supply voltage. However, this is dividing by two and dividing by three. continue adding a 5 MHz cycle if the
usually a second order consideration The value needed is closer to a result is below 4.5 MHz and add a
because most systems today regulate the division by two than a division by three. 3.333 MHz cycle if the result is above
power quite well. But, if batteries are If the 10 MHz signal was divided by 4.5 MHz. The result will dither around
used, this becomes an issue. two twice as often than being divided the value you want. Eventually, you will
The external RC delay can generally by three, what would the result be? reach a value that is as close as you
be made to be reasonably stable over There would be two 5 MHz cycles and choose. As you can see from Table 1, an
temperature. But because of stray one 3.333 MHz cycle. The average exact solution occurs with seven cycles
capacitance, the delay must be relatively frequency of these four cycles is 4.444 of 5 MHz and 3 cycles of 3.3333 MHz.
large. External stray capacitance usually MHz. This is an error of about 1.2%. Figure 7 provides a block diagram
varies more from unit to unit rather than This is certainly much closer to the circuit for the perfect solution. I chose
with temperature and is often in the 10 desired value than is 5.0 MHz (error of to alternate between the different
pF range. Good layout can reduce this to 10%) or 3.3333 MHz (error of 35%). division circuits to
a few pF. Also, because the delay is now This can be further refined as necessary distribute the vari- FIGURE 7. With
off-chip, it is more susceptible to noise. by adjusting the division ratios as need- ations over the full two simple coun-
ters, a frequency
averaging circuit
will allow most
any output divi-
sion ratio. In this
case, the input
frequency is
10.0000 MHz and
the output fre-
quency averages
4.5000 MHz for a
division ratio of
2.2222. The out-
put consists of
seven 5 MHz
cycles and three
3.3333 MHz cycles.
78 SERVO 01.2007
ProgrammableLogic.qxd 12/6/2006 12:03 PM Page 79
SERVO 01.2007 79
BookstoreJan07.qxd 12/6/2006 11:24 AM Page 80
dy
Mind Cany
For Toda t
Roboticis
s The SERVO Store
Practical Electronics SERVO CD-Rom LEGO MINDSTORMS NXT
for Inventors Are you ready for Hacker's Guide
by Paul Scherz some good news? by Dave Prochnow
This intuitive, applica- ! Along with the first Here is an awesome
tions-driven guide to NEW 14 issues of SERVO next-generation collec-
electronics for hobby- Magazine, all issues tion of LEGO MIND-
ists, engineers, and stu- from the 2005 STORMS projects that
dents doesn't overload calendar year are enables you to build
readers with technical now available, as and program a real
detail. Instead, it tells well. These CDs working robot in just
you and shows you include all of 30 minutes! New tech-
what basic and Volume 1, issues 11-12, Volume 2, issues 1-12, nologies and expand-
advanced electronics and Volume 3, issues 1-12, for a total of 26 ed sensor capabilities N E W !
parts and components issues all together. These CD-ROMs are PC make it easier than
do, and how they work. Chock-full of illustra- and Mac compatible. They require Adobe ever to add a level of sophistication to
tions, Practical Electronics for Inventors Acrobat Reader version 6 or above. Adobe robotic and architectural creations. This
offers over 750 hand-drawn images that Acrobat Reader version 7 is included on the cutting-edge guide describes new advances
provide clear, detailed instructions that can discs. $24.95 Buy 2 or more at $19.95 that make LEGO MINDSTORMS NXT such a
help turn theoretical ideas into real-life each! great robotics resource. The book explains
inventions and gadgets. $39.95 the all-new NXT intelligent brick ... the inter-
The Official Robosapien active servo motors with rotation sensors
Hacker's Guide that align speed for precise control ... the
by Dave Prochnow ultrasonic sensor that allows robots to see
Robot Builder's Bonanza The Robosapien robot
Third Edition by responding to movement ... the improved
was one of the most light and touch sensors that let robots detect
by Gordon McComb / Myke Predko popular hobbyist gifts
Everybody's favorite color and feel ... and much more. $24.95
of the 2004 holiday
amateur robotics book
season, selling approxi-
is bolder and better
than ever and now
mately 1.5 million units 50 Model Rocket Projects
features the field's
at major retail outlets. for the Evil Genius
The brief manual by Gavin D. J. Harper
"grand master" Myke
accompanying the Yes, as a matter of fact,
Predko as the new
robot covered only it IS rocket science!
author! Author duo
basic movements and maneuvers the And because this book
McComb and Predko
robot's real power and potential remain is written for the popu-
bring their expertise to
undiscovered by most owners until now! lar Evil Genius format,
this fully-illustrated robotics "bible" to
This timely book covers all the possible it means you can learn
enhance the already incomparable content
design additions, programming possibilities, about this fascinating
on how to build and have a universe of
and "hacks" not found anyplace else. $24.95 and growing hobby
fun with robots. Projects vary in complexi-
ty so everyone from novices to advanced while having run
hobbyists will find something of interest. PIC Basic Projects creating 50 great
Among the many new editions, this book by Dogan Ibrahim projects. You will find a
features 30 completely new projects! $27.95 Covering the PIC detailed list of materials, sources for parts,
!
BASIC and PIC BASIC NEW schematics, and lots of clear, well-illustrated
instructions. $24.95
PRO compilers, PIC
Basic Projects pro-
CNC Robotics vides an easy-to-use
by Geoff Williams toolkit for developing Troubleshooting
CNC Robotics gives applications with PIC Electronic Equipment
you step-by-step, BASIC. Numerous by R. S. Khandpur
illustrated directions simple projects give From cell phones to
for designing, con- clear and concrete medical instruments
structing, and testing examples of how PIC to digital and micro-
a fully functional CNC BASIC can be used processor based
robot that saves you to develop electronics applications, while equipment, this
80 percent of the larger and more advanced projects describe hands-on, heavily illus-
price of an off-the- program operation in detail and give useful trated guide clearly
shelf bot and that insights into developing more involved explains how to trou-
!
can be customized microcontroller applications. $29.95 bleshoot, maintain, NEW
to suit your purposes and repair all types of
exactly, because you designed it. Written by electrical equipment.
an accomplished workshop bot designer/ We accept VISA, MC, AMEX, and DISCOVER The author covers all the essentials such as
builder, this book gives you all the Prices do not include shipping and necessary tools, soldering techniques, test-
information youll need on CNC robotics! may be subject to change. ing, fundamental procedures, and mechani-
$34.95 cal and electrical components. $49.95
80 SERVO 01.2007
BookstoreJan07.qxd 12/6/2006 11:25 AM Page 81
SERVO 01.2007 81
RoboResources.qxd 12/7/2006 8:28 AM Page 82
Shopping the
Electronics General Store
T he general store once formed the
cornerstone of every town in the
country. A single store provided just
nents. In that case, you can save
yourself the costs of shipping and get
what you want immediately. Check
elusive robot parts and kits. If your
design requires you to pull the guts out
of a certain toy thats no longer
about everything: food, clothing, the Yellow Pages under the main made, try finding a used one at a web
hardware, animal feed you name Electronics heading. auction site. The price should be
it, they had it, or could get it for Most of us, however, arent so reasonable as long as the toy is not a
you. Today, the small town general lucky. These days, RadioShack is about collectors item.
store has been all but supplanted by all thats left of the national chain Consider that the Internet is world
large retailers such as WalMart and store for electronics, and of late, the wide, and that some of the sites you
Target, but the idea is the same: company has been closing stores and find may not be located in your coun-
the more the store offers within its revamping their product lineup as they try. Though many Internet businesses
four walls, the more likely its change their focus. ship internationally, not all will do so,
customers will stay there and do all Fortunately, the Internet has or the shipping cost may be prohibitive.
their shopping. taken up the slack from the dearth of Read the fine print of the website to
In the world of electronics, the neighborhood electronics outlet. determine if the company will ship to
Internet mail order has taken over the Its been and will continue to be your country, and note any specific
role of the general store for resistors, a tremendous boost to the art and payment requirements. If a check or
capacitors, integrated circuits, and science of robot building. Through the money order is accepted, the denomi-
other parts for our robots. While no Internet, you can now search for and nation of the check or money order
Internet retailer stocks everything, find the most elusive part for your usually must be in the companys
odds are youll find 80%+ of what robot. Just about all of the major native currency.
you need for your next project in the surplus and electronics mail order
catalog pages of a single electronics companies provide an online electron- Checking Out
retailer. ic catalog. You can visit the retailer at the Wares
In this months Robotics their website, and either browse their
Resources, well take a look at the offerings by category, or use a search Most Internet retailers use shop-
Internet electronics general store: feature to quickly locate exactly what ping cart software running on their site
whats out there, what you can expect you want. to allow customers to browse and
to find, and how to get the most out And, with the help of Google, select items they wish to purchase. No
of them. Yahoo!, MSN, or other web search doubt youve used one such shopping
engines, you can find items of interest cart in the recent past so I wont bore
Start Local, Then from among the millions of websites you with the details except to note
Go Global throughout the world. Search engines that shopping cart software varies
provide a list of possible matches to from site to site, and not every Internet
Before clicking on that mouse, it your search query. You can then visit retailer has an easy-to-navigate store
pays to first check out any stores the web pages to see if they offer what front.
local to you. Depending on where youre looking for. However, just because a retailer
you live, you may be just down the And remember, there are many has an under-average shopping cart
road from the worlds best selection auction websites like eBay for buying doesnt mean you should avoid them.
of inexpensive electronic compo- and selling goodies, including pretty Some general electronics vendors
82 SERVO 01.2007
RoboResources.qxd 12/7/2006 8:29 AM Page 83
have great shopping carts, and some to read through ordering, shipping, When sending a personal check,
are not so great. Youd be surprised payment, and other terms, especially expect the retailer to hold your order
what gems you can find in the the companys policy as it relates to until the check clears.
simplest of shopping carts. Once minimum order amounts and merchan-
youve found a site that offers the kind dise return. If all youre looking for is a Is It New or Surplus?
of wares you want, it pays to be $2 part, but the store imposes a $15
patient and wade through the store to minimum, youll either want to look There has always been a thriving
find the real values. A few extra elsewhere, or wait until you need to market for electronics surplus, parts
minutes of your time may pay off in order something else. that someone else often the govern-
finding just the right part, or saving Be sure you understand the ment or a large manufacturer
dollars off your bill. shipping and handling fees. Some mail thought they needed, and decided not
The better websites will provide a order retailers dont charge shipping, to use. Good thing, too, as some elec-
search feature where you can find spe- but they have to make up for the tronic components can be frightfully
cific products. This is doubly important cost somehow, and usually thats in a expensive when purchased new.
for a general electronics store, as the higher selling price for the products Sometimes the components are used
site may offer tens and even hundreds themselves. When comparing prices (surplus or not), but this is rare for
of thousands of items. Ideally, you will from online shops, be sure to include smaller, general-purpose parts. You are
want to find items by part number and the costs of shipping. more likely to encounter used parts in
also by category. More common is for online retail- the amateur radio, antique radio, and
The search feature at Digikey.com ers to pass on the shipping costs to you similar fields.
which is one of the largest mail as a separate charge. The costs are It is not uncommon for the
order electronics depots is a good either calculated by item quantity or by average general electronics parts
example. If you know precisely what weight, and go up with the more retailer to sell a mix of new and
you want an Atmel AVR ATTINY13 things you buy, or you are charged a surplus goods. Technically, there is
rated at 10 MHz in an eight-pin DIP set amount, usually by order total. little or no difference, except the
package, just enter its standard part Electronics components can often be surplus parts might be a little older.
number ATTINY13V-10PU and the shipped very inexpensively, as they are This could matter if buying
Digi-Key system takes you right to the small and lightweight. For very small something like large electrolytic
parts page where you can place your orders, the parts can be shipped First capacitors, which can leak with age,
order. Conversely, if you dont know Class in a padded envelope, usually for but in general has no bearing on
exactly what to order, you can enter a about a dollar or two. Parcel orders components like run-of-the-mill signal
generic keyword or even partial part via FedEx, US Post Office, UPS, or other transistors, integrated circuits, LEDs,
number. Typing in microcontroller, shippers are typically several times resistors, diodes, and so forth.
for example, will display a list of numer- this amount, even if youre buying a Lastly, most online retailers men-
ous related categories, including books single 14-pin DIP IC. tion if a product is surplus. You will
and CDs, development boards, kits, If your order is more than $20, I want to make note of this, as it could
and, of course, the microcontroller advise making sure insurance is includ- indicate a limited availability. In most
chips themselves. ed in the shipping price. Most shippers cases, when a surplus item sells out, its
Not all websites have shopping include up to $100 in insurance for gone for good, at least from that ven-
cart software. Smaller outfits, parcels at no additional cost. If your dor. If you are designing a new product
especially those that deal with order is over that, request additional that uses surplus components,
the constantly-changing inventory of insurance if the online store doesnt youll want to make a lifetime buy
surplus goods, may simply list automatically add it in. to ensure you have enough to last
what they have on a web page. You Finally, youll want to ensure the you, should there be a shortage down
contact them via phone or email to website accepts the kind of payment the road.
arrange a purchase. Ive seen a few you want to use. Almost everyone
sites publish a weekly or even daily accepts credit cards, though the Sources
inventory in PDF format. You can use selection may be limited to Visa
the search feature in the Adobe and MasterCard. Not all US-based Found here are online retailers that
Acrobat program to locate items of merchants are set up to accept supply general electronics parts, such
interest to you. American Express and Discover. as capacitors, resistors, transistors, ICs,
Increasingly, web merchants accept fuses, switches, connectors, soldering
Know the Details PayPal, ePassport, and other online irons and other electronics tools,
Before You Order virtual payment options. And, of wire, cable, and printed circuit board
course, most still accept checks or makings. These stores are your
Before placing any order, be sure money orders sent through the mail. front-line of defense for collecting the
SERVO 01.2007 83
RoboResources.qxd 12/7/2006 8:29 AM Page 84
electronic components necessary for by manufacturer, part number, or ordering system, complete with links to
your robotics projects. category. datasheets (when available).
As you might guess, no list of
general electronics resources can hope Avnet, Inc. (Avnet Electronics) Electronic Goldmine
to mention everyone. I have selected www.avnet.com www.goldmine-elec.com
from among the companies that have Full line distributor with local Electronic Goldmine sells new and
been around the longest, that I am offices worldwide. Refer to the website used electronic components, robot
personally familiar with, and/or are for locations. items, electronic project kits, and more.
regular advertisers in SERVO and its
sister publication Nuts & Volts. You B.G. Micro Electronix Express
can find even more electronics parts www.bgmicro.com www.elexp.com
outlets on Google, Yahoo!, MSN, or B.G. Micro is a haven for the Electronics parts, supplies, compo-
other search engines. For search electronics tinkerer and robotics nents, hardware, switches, relays, test
terms, you are better off looking for a enthusiast. Much of the stock is gear, tools. New and surplus; large
particular component youre interest- surplus, so it comes and goes, but inventory.
ed in, rather than simply entering while its being offered, it has a good
electronics. price attached to it. Get it while you Fair Radio Sales
can, because someone else surely will. www.fairradio.com
All Electronics Fair Radio Sales primarily caters to
www.allelectronics.com Brigar Electronics ham operators, with their radio sets
All Electronics is one of the primary www.brigarelectronics.com and old gear. But they have plenty of
sources in the United States for new Brigar Electronics sells electronic test equipment and general surplus
and used robotics components. Prices components and parts; new and sur- electronics to tide anyone over.
and selection are good. Walk-in stores plus. Excellent selection of electronics
in the Los Angeles area are located in and mechanical components for robot Farnell
LA and Van Nuys. Product line includes builders everywhere. www.farnell.com
motors, switches, discrete compo- U.K. based electronics mail order.
nents, semiconductors, LEDs, infrared Circuit Specialists, Inc. Will ship most anywhere. Offers a
and CdS sensors, batteries, LCDs, kits, www.web-tronics.com complete line of electronics.
and much more. Specifications sheet Circuit Specialists, Inc. are sellers of
for many products are available at ICs, active and passive components, Findchips
the website. test equipment, tools, microcontrollers www.findchips.com
and programmers, switches, relays, Free search engine for locating
Allied Electronics kits, lab trainers, chemicals, and parts, by part number. Highly
www.alliedelec.com more. recommended.
Allied Electronics is a prime source
for all electronics (components, chemi- Dick Smith Electronics Frys Electronics
cals, tools, you name it), in single or www.dse.com.au www.frys.com
multiple quantities. Their prices are Dick Smith Electronics is Australias Frys Electronics is an electronics
often lower than the competitions. Do biggest electronics retailer, well known superstore chain operating primarily in
note the minimum order amount. for Mr. Smiths head pasted over the West Coast (US West Coast). They
everything though he is no longer offer a subset of products via their
Alltronics connected with the company. For web page, including electronics parts
www.alltronics.com a time, DSE also had stores in the and kits.
Not to be confused with All United States, but they exited the
Electronics in Southern California, this market during the downturn of the late Future Electronics
Northern California electronics retailer 1980s and early 1990s. Stores across www.futureelectronics.com
is known for a good assortment and Oz and New Zealand, and they ship Large electronics distributor.
reasonable prices. New and surplus worldwide. Mostly for industry, but they will also
merchandise. sell to individuals.
Digi-Key
Arrow Electronics, Inc. www.digikey.com Gateway Electronics, Inc.
www.arrow.com Digi-Key is one of the largest mail www.gatewayelex.com
Arrow Electronics, Inc. distributes order retailers/distributors of electronic Gateway Electronics is a general
a full line of electronic components components in North America. They electronics mail order and retailer.
to industry. Products can be located offer a very fast and efficient online Among their products are passive and
84 SERVO 01.2007
RoboResources.qxd 12/7/2006 8:29 AM Page 85
active components, motors, electronic that electronic components super electronics retailer, selling everything
kits, gadgets, books, and tools. Some store, based in the UK. Of course from sound systems to test equipment,
of their goods are new; others are they offer the traditional passive and from stage lighting to electronic
surplus. They operate local stores in and electronics components, relays, components.
St. Louis, MO, San Diego, CA, and connectors, and other prime parts.
Denver, CO. Quickar Electronics
Marlin P. Jones & Assoc., Inc. www.quickar.com
Hosfelt Electronics www.mpja.com Surplus electronics, tools. Good
www.hosfelt.com MPJA sells both new and surplus selection.
General electronics. New and electronic and mechanical products.
surplus. Their assortment of such items as RadioShack
motors is fairly small, but they make up www.radioshack.com
HSC Electronic Supply for it with a wide selection of other These days, The Shack has fewer
www.halted.com common (and some not-so-common) components and other electronics
Mail order, with walk-in retail products. items for sale at each store, but they
stores in Northern California. do carry the basics common value
MCM Electronics resistors, capacitors, switches, solder,
Jameco Electronics www.mcmelectronics.com electronics construction tools, that
www.jameco.com MCM is a mail order retailer of sort of thing. Additional items can
Full service general electronics mail general electronics and repair parts for be ordered through the RadioShack
order. Jameco carries just about every- consumer electronics. online store.
thing you need, and often at a price
less than the other guys. Resistors, MECI Skycraft Parts & Surplus, Inc.
capacitors, ICs, transistors, diodes, and www.meci.com www.skycraftsurplus.com
other active components; connectors New and surplus components, Skycraft is a veritable surplus mall
and more. motors, and more. of accessories, power supplies, transis-
tors, relays, ICs, wire, cable, heat
Jaycar Electronics Mouser Electronics shrink, transformers, motors, fiber
www.jaycarelectronics.com www.mouser.com optics, test equipment, resistors,
Jaycar Electronics carries a wide Mouser Electronics is a mail order diodes, and other goodies.
selection of components, test gear, components distributor, providing a
prototyping, soldering equipment, full line of products for industry and Surplus Sales of Nebraska
and more. hobbyists. All general electronics www.surplussales.com
are carried, including active and passive Surplus electronic parts, including
JDR Microdevices components, wire and cable, hard- connectors, passive and active compo-
www.jdr.com ware, relays, switches, fans, heatsinks, nents, electronics hardware, relays and
JDR is a direct marketer of elec- batteries, component kits, chemicals, solenoids, chemicals, and more.
tronic components to hobbyists and and tools.
the technical engineering communities. Tri-State Electronics
Their catalog is skewed towards PC Newark Electronics www.tselectronic.com
components, but they carry plenty of www.newark.com Distributor/online e-tailer of
general electronics (active and passive Prime-component distributor to passive and active components
components, tools, wire and cable, business and industry; also caters to (resistors, capacitors, transistors, ICs,
etc.), as well. hobbyist market, but minimum orders etc.), batteries, relays, switches, solder
may apply. Sells large quantities, when and soldering stations, tools, and wire
JK Electronics available. and cable. SV
www.jkelectronics.com
JK Electronics carries a complete Nu Horizons Electronics Corp. ABOUT THE AUTHOR
line of resistors, capacitors, relays, www.nuhorizons.com
switches, semiconductors, electro- Nu-Horizons is a full-line electron- Gordon McComb is the author of
the best-selling Robot Builders Bonanza
mechanical, batteries, adhesives, tools, ics distributor, offering the major and Electronics for Dummies. In addition
and lots more. brands and some not-so-major. to writing books, he operates a small
manufacturing company dedicated to
Maplin Electronics Parts Express low-cost amateur robotics (www.bud
www.maplin.co.uk www.partsexpress.com getrobotics.com). He can be reached at
Maplin Electronics is a got-it, have- Parts Express is an all-around [email protected].
SERVO 01.2007 85
Appetizer.qxd 12/7/2006 2:03 PM Page 86
A robot walks into a bar, orders a drink, and lays down a bill.
The bartender says Hey, we dont serve robots! and the
robot says No, but someday you will.
Then NOW
a n d
SHUTTLE REMOTE MANIPULATOR
SYSTEM/CANADARM
b y T o m C a r r o l l
Without a doubt, the most expensive robot system in the world is NASAs Remote Manipulator
System used on the space shuttle and space station and made by a Canadian company Spar
Aerospace. Yet, by many peoples account, it is not a robot at all, but a very expensive teleoperator.
SERVO 01.2007 87
Then&Now.qxd 12/7/2006 8:48 PM Page 88
themselves. Figure 3 shows the Canadarm except for a similar appearance, it did
being tested on an extremely flat floor, operate in a similar manner. I had spent
gliding on a series of pads with a flow of the previous night reviewing an
nitrogen gas into them, much like a bunch operators manual of sorts. To operate
of hover cars. Only a single axis can be on Earth, this arm was far more robust
tested at a time on a single plane, not and powerful than the shuttles RMS.
three planes as in space, but repositioning
the RMS test item to the new plane can The RMS End Effector
effectively test all axes of motion. Much of
the $100 million initial cost of the RMS My task was to snare a simulated
arm went into this type of testing. payload that was nothing more than a
After the RMS was handed over to satellite-shaped cloth-covered helium Figure 6a
NASA and Rockwell to install on the Space balloon with a post grapple fixture on the
Shuttle, the only true test ahead was a live side that looked a lot like a large nail
test on the shuttle itself. Astronauts had head sticking out of a round disk. The
several systems set up to practice future end effector was a unique design that
space operations on at Johnson Space used three heavy steel wires that sur-
Center in Houston, TX. The Weightless rounded the head of the nail and were
Environment Training Facility (WETF) in pulled around it much like the iris petals
Building 29 also known as the Neutral in a camera. Figures 6a through Figure 6e
Buoyancy Lab allowed astronauts to show the sequence of snaring and
float about in water to simulate capturing a payloads grapple fixture. All
weightlessness, and an RMS simulator I had to do was shove the end effectors Figure 6b
was sometimes placed there also for them mouth over the grapple fixtures nail
to interact with simulated payloads, such head (a and b), rotate the inner ring (c
as the Hubble Space Telescope. and d) until the three wires were snug on
Figure 4 shows an astronaut the head, and draw the rings and wires
attached to the end of the simulated down into the end effector (e) until the
RMS in the WETF tank being assisted by grapple fixture was snug against the rim
six divers as he practices with a pay- of the end effector. Easy. Not.
load. This tank works best when the The payload was the same size as a
astronauts are practicing EVAs, but the typical satellite but had only a few pounds
Building 9 High Bay Shuttle RMS Trainer of mass so I always managed to knock it
is what all prospective payload/mission with the end effector so it bounced away.
specialists must spend many hours I had two sets of windows and TV moni- Figure 6c
upon honing their missions skills. tors to watch the action through, yet it
was very difficult. Fortunately the payload
Trying to Snare a was tethered so I finally managed to
Payload Simulator snare the sucker. Judy smiled at my
frustration but Im sure she snickered at
As the engineer in charge of me under her breath and was ready to
developing manipulator systems for take control if I went astray.
Rockwells bid on the Space Station, I Figure 7 shows a fake astronaut on
frequently flew to Johnson Space Center the end of the training RMS arm in
to interface with my NASA counterparts. Building 9. Notice the difference in the
I was fortunate to have Judith Resnik real RMS, the WETF variety, and the
one of the astronauts who died in the Building 9 trainer arm. Figure 6d
Challenger disaster several months later
as my instructor on the RMS trainer in Placing the RMS on
Building 9 one morning. I certainly was- the Space Station
nt overly confident about my abilities
with robotic manipulators but I did have My task was to implement Spar RMS
a bit of self-assuredness about trying my designs for the Space Station and they
skills on the trainer. I had programmed were already at work with their newer
several different industrial robots in configurations. The SS is huge larger
my day so this big arm should be no than a football field so a single RMS,
problem. Wrong! Though the trainer even with a several hundred foot long
arm was nothing like the shuttle arm arm, was impractical. The only solution Figure 6e
SERVO 01.2007 89
Then&Now.qxd 12/7/2006 8:48 PM Page 90
Advertiser Index
All Electronics Corp. .............................23, 72 Lorax Works ..................................................73 Road Narrows Robotics ..............................72
AP Circuits .....................................................79 Lynxmotion, Inc. ...........................................19 RoboteQ .........................................................9
COMBOTS .....................................................33 Maxbotix .......................................................23 Robotis Co. Ltd. ...........................................56
Command Productions .................................7 Robot Power .................................................51
Maximum Robotics ................................23, 25
CrustCrawler ...................................................3 RobotShop, Inc. .....................................23, 43
Net Media .....................................................91
Electronics123 ..............................................72 Schmartboard ...............................................72
NU-BOTICS ....................................................72
Futurlec .........................................................23 Solarbotics.....................................................61
Hitec ..............................................................79 Parallax, Inc. ...................................Back Cover Technological Arts .......................................23
Hobby Engineering ......................................14 Plantraco .................................................23, 72 Vantec ...........................................................66
Jameco Robot Store ................................2, 23 Pololu Robotics & Electronics .....................38 Yost Engineering, Inc. ..................................15
90 SERVO 01.2007
CoverInside.qxd 12/6/2006 1:12 PM Page 2
robotic kits
Robotic Kits Components...
chassis
...theres something for everyone!
Robotic kits help you and your child to experience and learn about perception and
control using a variety of sensors and actuators. Challenge yourself with Jamecos
servos selection of fun and interactive kits! You or your child can assemble the kits and
then enjoy endless hours of discovery.
Engineers,
.
Weve Got
It All!
motors
I-800-374-576
4
WWW.ROBO
TSTORE.CO M
CATALOG I62
test equipment
WWW.ROBOTSTORE.COM/SRC
I-800-374-5764 Call for your free catalog today!
software
books
Cover.qxd 12/7/2006 1:00 PM Page 84
Vol. 5 No. 1
SERVO MAGAZINE
VINNIE INTELS OPEN CV DIVIDERS AND TIMERS SOUNDGIN
Get an HB-25 Two-pack (#29150) for only $79.95
and save $20! The Parallax HB-25 Motor Controller (#29144;
$49.95) provides a simple and dependable motor control system
for your motorized projects. With an efficiently integrated heat
dissipation design, the HB-25 easily manages 12V motors drawing
25A of current! These are sizable motors, as shown in our two
example robots which are both controlled by HB-25s.
0 74470 58285 4