You are on page 1of 92

Vol. 4 No.

12 SERVO MAGAZINE DARwIn • TWIN MOTOR DRIVER • BEGINNER’S ROBOTICS ON $50/MO • INTERFACE YOUR PC TO R/C December 2006
Page 84
12:53 PM
11/10/2006
Cover.qxd
CoverInside.qxd 11/8/2006 2:43 PM Page 2

Perfect holiday gifts for kids of all ages!

robotic kits
Robotic Kits Components...
chassis
...there’s 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 Jameco’s
servos selection of fun and interactive kits! You or your child can assemble the kits and
then enjoy endless hours of discovery.

passives Check out our unique selection of robotic kits at www.RobotStore.com!


. Robot Insects & Animals . Programmable Robots
. Solar Robots . Educational Kits
. Listening, Touching & Seeing Robots . Legged and Wheeled Platforms
optos

. Hackable Robots . OctoBot Survivor Kit


integrated circuits
At Jameco’s RobotStore you can get the world’s most complete robotic offering—
all in one place! You’ll find kits for all ages and experience levels, along with gear
semiconductors boxes, servos and chassis, for those who are ready to take on the extreme.

muscle wires Robotic Kits


and Components...
The World’s
Complete OfMost
fering!
Enthusiasts,
Start Dream
ing...
Gift Givers
,
connectors Take Note..

Engineers,
.

We’ve 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 11/8/2006 2:57 PM Page 3
TOC Dec06.qxd 11/10/2006 12:07 PM Page 4

Columns
08 Robytes by Jeff Eckert
Stimulating Robot Tidbits

10 GeerHead by David Geer


Robot Dinosaurs Come Alive
and Thrive!

14 Lessons From the Lab


by James Isom with Brian Davis
NXT Robotics: Remote Control

19 Ask Mr. Roboto by Pete Miles


Your Problems Solved Here

72 Robotics Resources
by Gordon McComb
Sound Generation Techniques
for Robots

75 Rubberbands and
Baling Wire by Jack Buffington
ENTER WITH CAUTION!
The Great Serial Port Caper 26 The Combat Zone
78 Robotic Trends by Dan Kara
Educational Robotics is the
Smart Choice Page 87
84 Appetizer by Robin Hewitt
Page 10
An Invitation to Computer Vision
with OpenCV

87 Then and Now by Tom Carroll


Bionics — Where Robots Meet
Human Flesh
Page 08

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; cpcreturns@servomagazine.com

4 SERVO 12.2006
TOC Dec06.qxd 11/10/2006 12:07 PM Page 5

12.2006 VOL. 4 NO. 12

Features & Projects Departments


33 Collaborative Robotics 06 Mind/Iron
by Bryan Bergeron
An introduction to collaborative 07 Bio-Feedback
robotics and the key implementation
challenges readers should consider. 18 Events Calendar

40 DARwIn 22 New Products


by Karl Muecke, Patrick Cox, and
Dennis Hong
Part 1: Concept and General 24 Menagerie
Overview of a Dynamic
Anthropomorphic Robot with 48 Robotics Showcase
Intelligence.
81 Robo-Links
44 Interface Your PC to
an R/C Radio 82 SERVO Bookstore
by Michael Simpson
Create a very accurate and reliable 90 Advertiser’s Index
interface to any R/C radio with up
to six channels.

50 PROTOBot: Amoeba!
by Camp Peavy
A complete interactive robot.

57 ROBOGames Prep
by Dave Calkins
This month: Firefighting robots. Page 50
60 Building a Twin Motor
Driver
by Peter Best
Discover a cool twin-motor hardware
design and learn how to code
motion drivers.

67 Beginner’s Robotics on
$50 a Month
by Paul Pawelski
Getting started in robotics doesn’t
have to cost you an arm and a leg.
SERVO 12.2006 5
Mind-FeedDec06.qxd 11/9/2006 5:59 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 Camp Peavy ΠOutside US 1-818-487-4545
P.O. Box 15277
North Hollywood, CA 91615
Failure is the path of least your robot out and demonstrating it, PUBLISHER
persistence. — George M. Van the better it gets. Build, test, and Larry Lemieux
Valkenburg, Jr. (1938- ) demonstrate ... too many folks are publisher@servomagazine.com
trying to learn everything in the world
ASSOCIATE PUBLISHER/
Robot building is hard work. It is before actually doing anything VP OF SALES/MARKETING
an interdisciplinary craft requiring physical. Build, test, and demonstrate. Robin Lemieux
expertise in mechanics, electronics, You learn through your fingers. display@servomagazine.com
and programming; each field deep What’s the next step in your
CONTRIBUTING EDITORS
and wide in and of itself; each has robotic project? Are you in the Jeff Eckert Tom Carroll
that “the-more-you-know-the-less-you planning stage? Are you “finished?” If Gordon McComb David Geer
know” quality ... where every answer so, show it to someone. Be prepared Pete Miles Kevin Berry
creates two new questions and what’s that some might not be impressed Dave Calkins Bryan Bergeron
the point, after all? with your new gizmo, but they are Karl Muecke Patrick Cox
Dennis Hong Brian Benson
Sometimes things turn out better missing the point of the entire journey. Tim Wolter Leonard Ginn
than expected and inspiration builds Others will get a kick out of it no Camp Peavy Randy Hootman
upon inspiration. Other times matter how inane. Start another Jack Buffington Dan Kara
(mostly), things don’t work out as project ... or add to what you have. Robin Hewitt James Isom
Brian Davis Peter Best
planned; both are reasons to have Robot building is an iterative process.
Michael Simpson Paul Pawelski
tried, though (yes, Yoda, there is You build upon what you have built. R. Steven Rainwater
“try”). Otherwise, you wouldn’t know. Another problem ... “The spirit is
When something doesn’t work or willing but the flesh is weak.” Everyone CIRCULATION DIRECTOR
you don’t have the right part, answer, dreams of building a robot but actually Tracy Kerley
subscribe@servomagazine.com
or financing, work on another aspect doing it is too much work. Let me say
of the project. At least you know what this ... robot building is one of the WEB CONTENT/STORE
does not work. Enter a contest! This is most important things you can do in Michael Kaudze
a real motivator. Nothing like a life and has more potential payoff than sales@servomagazine.com
deadline to force you to create. When anything. Enjoy the pastime and find
PRODUCTION/GRAPHICS
I was building “Autonomous Rodney” others with the same interest. Shannon Lemieux
for the 1996 Robot Wars, I couldn’t We have had industrial robots for
get the optical-based passive wheel decades now. The new thing is ADMINISTRATIVE ASSISTANT
Debbie Stauffacher
disc encoder working and was running mobility. We will soon be entering an
out of time (real robot builders work age of smart machines where devices Copyright 2006 by
best under pressure). Then it will know where they are and will T & L Publications, Inc.
happened in the security section of a eventually pick and place in a cluttered All Rights Reserved
RadioShack ... Epiphany — magnets environment with great dexterity. “No
All advertising is subject to publisher’s approval.
and a reed switch! Worked like a way” you say? Let’s pretend we’re in We are not responsible for mistakes, misprints,
charm ... even in the dust at Burning the year 1900 and I was telling you or typographical errors. SERVO Magazine
Man. The point is I had dreamed of about the 1950s ... cars, airplanes, assumes no responsibility for the availability or
building this type of robot for years telephones, etc. “Not possible!” you condition of advertised items or for the honesty
but probably would have never would say. Now let’s suppose we’re in of the advertiser.The publisher makes no claims
for the legality of any item advertised in SERVO.
finished it if I didn’t enter that contest. the 1950s and I’m telling you about This is the sole responsibility of the advertiser.
The best laboratory is the real world technology in the year 2000 with the Advertisers and their agencies agree to
and many times we need a deadline to Internet, cell phones, microwave indemnify and protect the publisher from any
force us to create. The more you get ovens, Global Positioning Systems, etc. 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 12.2006
Mind-FeedDec06.qxd 11/9/2006 6:00 PM Page 7

Dear SERVO:
Regarding a recent Mr. Roboto topic ... I would like to
correct an apparently widely-held misconception about
the transmitted signal of an RC system. The desired servo
position is NOT determined by the duration/width of a
transmitted pulse. The desired servo position is
determined by the position of a constant width pulse.
That is why it is called Pulse Position Modulation. The
transmitted pulse train consists of a start pulse and one
pulse for each channel. A three-channel system has four
pulses in a frame of data. Each pulse is of fixed width,
typically 0.25 ms. In AM systems, the pulse turns the
carrier wave off. Thus, the carrier is on for the majority of
the time, which helps keep the receiver's AGC (automatic
gain control) happy. In FM systems, the pulse may increase
or decrease the carrier frequency depending on the brand
of the radio.
The position of the pulse — which determines the
Katherine Claire Miles was born October 4th position of the servo output — is measured with respect to
to proud parents Pete and Kristina. the previous pulse. The position of the current pulse is the
Weighing in at a healthy 9 pounds, 1 ounce, distance/time between the leading (or trailing) edge of
she was a meager 20-1/4 inches long. the current pulse and the leading (or trailing) edge of the
You done good, Mr. & Mrs. Roboto! previous pulse. The use of pulse position rather than
pulse width minimizes the effect of pulse distortion and
long rise and fall times. The transmitted pulses are not
Did you know that if you’re a paid subscriber text-book square pulses. The rise and fall times are
intentionally increased to meet FCC mandated bandwidth
to SERVO Magazine, you can get the online limits. With long rise and fall times, the pulse is wider near
version for FREE? the base than it is near its top. Thus, the width is
somewhat ambiguous and the measured width may
Go to www.servomagazine.com depend on the signal strength. Since the position of a
pulse is the distance between a point on the current pulse
and the corresponding point on the previous pulse, the
... once again, the inventions seem like science-fiction. shape of the pulse has little effect on the measured
Is the pace of technical development slowing? Do you position.
think there will still be technical obstacles to fully developed The decoder in the receiver separates and converts this
humanoid robots in 50 years? Do you think people won’t PPM pulse train into individual Pulse Width Modulated
need fully developed humanoid robots? Consider the aging (PWM) pulse trains for each servo. In some receivers, the
populations of the developed countries. Who’s going to do decoder is a serial-in parallel-out shift register. Because the
the grunt work of the future? Eventually, the robotics industry transmitted signal is PPM, there is no delay between
will be larger than the computer industry. If you go to the channels. The pulse for channel 2 starts at the same time
“Computer History Museum” in Mountain View, CA (Silicon that the channel 1 pulse ends, no gap. This can be verified by
Valley) and follow the evolution of historical computing displaying adjacent servo channels on a dual channel
equipment, it ends up with robots. There will eventually be a oscilloscope.
robotics age on par with today’s computer age. Will Kuhnle
The end game for robotics is nothing less than a Lavon, TX
humanoid slave. Indeed, it is the origin of the word, as
“robot”comes from the Czech “robota” or forced labor. Writer response:
Robots are our progeny. They are the next stage in
Thanks for the information. This is a bit different from
evolution. By 2050, we will have C3PO type androids ... it
what I have been taught. Thanks for pointing these specifics
is inevitable. If you aren’t building robots today, you are
out. Perhaps you would be willing to put an article together
missing out on all the fun and the other rewards that will
for SERVO to illustrate these specifics so that this widely-held
inevitably follow.
misconception can be corrected. I personally would love to
Mwa-ha-haaa! SV
see it. — Pete Miles
SERVO 12.2006 7
Robytes.qxd 11/9/2006 10:20 AM Page 8

Robytes by Jeff Eckert

re you an avid Internet surfer 35,000 feet, glide autonomously for NASA’s Dryden Flight Research Center
A who came across something
cool that we all need to see? Are
better than 30 mi, and land on a target
with accuracy of about 150 feet. It
(www.nasa.gov/centers/dryden/).
Built on GPS-based relative navigation
you on an interesting R&D group combines adaptive control, flocking/ and an optical tracker, it provides the
and want to share what you’re swarming, and active collision avoidance precise positioning needed to drop a
developing? Then send me an capabilities to allow multiple systems (50 refueling probe into a 32-in basket
email! To submit related press or more) to work simultaneously in the that dangles in the airstream behind a
same airspace and deliver up to 2,200 tanker (in this case, a Boeing 707-300
releases and news items, please
lbs of “mission critical supplies.” operated by Omega Air Refueling
visit www.jkeckert.com
The nature of such supplies can Services) and drains into the F/A-18.
— Jeff Eckert vary, but a hint is that the Onyx is Although the system initially made
routinely referred to as a “smart the connection in only two of six
bomb.” Also demonstrated was a attempts, it safely recovered from
New UAVs Demonstrated scaled-back version of Atair’s Long each flub and completed its mission. In
Endurance Autonomous Powered this demonstration, pilots were on
Paraglider (LEAPP). The Micro LEAPP, board the F/A-18 for safety purposes,
which can function autonomously or but the operation was carried out
via remote control, is designed for without their intervention.
special operations intelligence,
surveillance, and reconnaissance (ISR)
missions that involve up to eight hours
of flight time and a maximum payload
Robotic Weed Killer
of 50 lbs. (Its big brother can spend up
to 55 hours aloft, carry up to 2,400 lbs
beneath its 112-foot wingspan.)

Automatic Refueling
Developed
Thanks to the University of Illinois,
this solar-powered bot will soon be
Also having obvious military impli- controlling weeds in some experimen-
cations is the Autonomous Airborne tal fields. Photo courtesy of U of I.
Refueling Demonstration (AARD)
system, developed by the Defense With the goal of reducing herbicide
Advanced Research Projects Agency use, Lei Tian, an agricultural engineer at
(DARPA, www.darpa.mil) and the University of Illinois (www.
uiuc.edu), has developed a solar-
powered robot that can track
The Atair Onyx (top) and LEAPP
down weeds and then — using a
(bottom) systems. Photos courtesy robotic arm — cut and poison
of Atair Aerospace. them on a close-up and personal
basis. The machine — which moves
UAVs for military operations are at about 3 mph — uses GPS for
becoming ever more common, and Atair navigation, plus it sports two small
Aerospace (www.atairaerospace.com) cameras to give it distance percep-
demonstrated two new ones at the tion. An on-board Windows®
recent Association of the US Army computer allows it to decide what
(AUSA) annual meeting and exposition. is a weed and what is not, and it
First up was the Onyx™ precision guided The AARD system allows autonomous has a wireless Internet connection
parachute system — a parafoil designed refueling of airborne platforms. for communications and an 80-GB
to carry cargo from altitudes up to Photo courtesy of NASA, by Jim Ross. drive for data storage. At present,

8 SERVO 12.2006
Robytes.qxd 11/9/2006 10:21 AM Page 9

Robytes

the robot is used only to combat weed user, and external signal inputs can be
infestation, but in the future, it may used to program automatic profile
be fitted with different sensors and changes. Communication is via a PC/104
cameras that would allow it to examine bus, CANBUS, or serial port. Prices start
soil properties or plant conditions. For at $380 in production quantities.
now, the device will be used on an
experimental basis, moving along crop
rows in fields at the U of I, but commer-
cial development seems feasible.
Care to Clone Yourself?
In a twist that becomes ever more
twisted as you think about it, Hanson
Robotics (www.hansonrobotics.com)
Motion Card Offers and Direct Dimensions, Inc.
Reduced Cost (www.directdimensions.com), are
developing a process through which
they can perform a 3-D laser scan of
someone’s head, create a life-like
reproduction of it, and plunk it down
on top of a humanoid robot. Hanson
has demonstrated robots that show a
range of human expressions, including FaceScan technology will allow robots
to be fitted with heads of yourself,
joy, sorrow, and surprise, so you can loved ones, or famous people. Photo
expect a fairly impressive level of courtesy of Hanson Robotics.
realism. It is suggested that with this
technology, “You can build yourself to nation to picture Heidi Klum fetching a
The Prodigy PC104 provides multiaxis comfort sick loved ones when you are frosty martini, Barry Manilow cleaning
motion control for a range of motors.
Photo courtesy of Performance unable to physically be there or design your bathroom, or Rasputin singing
Motion Devices. yourself for posterity.” Sure, and you “Happy Birthday” to you. Add a little
could also bring back your beloved more imagination, and we probably
Moving back to the component Aunt Hilda to bake cookies for you. don’t want to go there. SV
level, Performance Motion Devices However, it doesn’t take much imagi-
(www.pmdcorp.com) has introduced
the Prodigy PC104 Motion Card for
multiaxis, multimotor control. Available
in one- through four-axis versions, its
features include trajectory generation,
HobbyEngineering
The technology builder's source for kits, components, supplies, tools, books and education.
servo loop closure, quadrature signal
input, motor output signal generation,
performance trace, on-the-fly changes, Robot Kits For All Skill Levels ICs, Transistors, Project Kits
commutation, and other functions for
DC brush and brushless DC, step, and Motors, Frame Components
and Scratch Builder Supplies.
microstepping.
The cards are programmed in
Order by Internet, phone, fax or mail.
C/C++ or Visual Basic and features
include S-curve, trapezoidal, velocity www.HobbyEngineering.com
contouring, electronic gearing, and
Books and 1-866-ROBOT-50
user-generated profile modes. They 1-866-762-6850
Educational K 1-650-552-9925
accept input parameters such as
1-650-259-9590 (fax)
position, velocity, acceleration, and sales@HobbyEngineering.com
jerk from the host and generate a cor- 180 El Camino Real
responding trajectory. Instantaneous BEAM Kits and Components Millbrae, CA 94030
on-the-fly changes can be sent by the Visit our store near SFO!

Most orders ship the day received! World-wide shipping. Convenient payment options.

SERVO 12.2006 9
Geerhead.qxd 11/9/2006 10:25 AM Page 10

by David Geer Contact the author at geercom@alltel.net

Robot Dinosaurs Come


Alive and Thrive!
That’s right, it’s robot dinosaurs plural as UGOBE’s Pleo and
WowWee Robotics’ Roboreptile make ready for arrival.
Pleo its environment with hundreds of
different emotional cues ranging any-
a camera system’s processing, which
accomplishes the bot’s eyes’ image
Pleo — UGOBE’s flagship robot — where from sadness to grumpiness to processing and bus translation.
stands 6.82 inches tall with a width of playfulness and everywhere in between. Pleo also packs four eight-bit
5.84 inches and a length of 18.8 inches. Pleo is the sum of a wide processors that enable low-level motor
Playful, Pleo is capable of responding to assortment of technology including a control for the robot’s servos, as well
32-bit Atmel ARM 7 microprocessor, as feedback for “derived” sensors.
UGOBE reserves the right to which is the delightful dino’s primary Speaking of sensors, Pleo is mighty
change any of the technical details brain. The prehistoric critter uses a 16- sensitive, orchestrating 34 sensors in all
of Pleo at any time. bit sub-processor, which is dedicated to including the camera.

Image of Pleo’s remote control dash board. FROM UGLY DINOSAUR-LING


TO BEAUTIFUL ROBOT PET
During its early stages of
development, Pleo wasn’t always the
handsome little dino-bot you see
before you today. When UGOBE was
developing its motion systems, Pleo
was in a state of … well, you could
say he was having a bad hair month,
but he didn’t even have a head to
have hair on.
In that state, Pleo consisted of
partial body shells and framing with
no skin, some over-used foam and
glue, and a piece of duct tape at the
end of its neck where its head should
have been (the head was being
repaired). As Pleo’s creators put it,
“Pleo, in this state, was about the
ugliest robot you’ve ever seen. But
when it started to play motions and
show curiosity and emotion through
its movements, it transformed from an
ugly duckling into a pet — even as
strange looking as it was. At this
moment, it really hit UGOBE how
powerful motion is to humans.”

10 SERVO 12.2006
Geerhead.qxd 11/9/2006 10:25 AM Page 11

GEERHEAD

Specifically, the total


sensor count includes:

• Four foot switches that


detect footsteps up and down.

• Seven capacitive touch


sensors for the four legs,
back, shoulder, and head.

• A single derived white light


sensor.
Pleo skinned alive with no skin and no toes.
• Two microphones.
• Recognition of and communication
• 14-force sensors (one per servo). with other Pleos (which, of course, you
can only experience if they sell you a
• An orientation tilt sensor. lot of Pleos).

• An IR transceiver for bi-directional Pleo also uses 14 motors (standard,


data communications. low voltage, DC), 150 gears and clutch-
es, a rechargeable NiMH power pack, a John Sosoka of UGOBE with
• Another for detecting objects in USB port and connector, an SD/MMC Pleo prototype.
Pleo’s mouth (guess they knew kids slot, and software and systems pro-
would be sticking something in there!). grammed in a mix of C/C++, Assembly,
and open source scripting languages
What, When, Where,
Additional sensors include those (yet to be announced). Pleo employs and How Much?
used to measure battery temperature USB communications and a standard UGOBE’s Pleo — a new entry in the
and voltage. Most sensors are original file system for the SD/MMC card. robot reptile market — will be available
designs from UGOBE in order to meet the through online pre-orders starting in
specifications for size and compactness. First Ever Robotics the midst of the holiday shopping
Sensors and hardware empower Pleo’s season — depending on your particular
intelligence and behaviors. Through the and Engineering holiday — on December 24th. In
many sensors listed here, Pleo can: Appearing in Pleo March, Pleo will ship to customers who
place these early orders and become
• Recognize objects for avoidance or In Pleo, UGOBE has combined available in specialty retail stores in
interaction. life-like motion with a wide range limited locations. Price tag: $249.
of flexibility of movement, which Hacking Pleo? UGOBE plans to
• Detect motion, light, and changes in correspond with and respond in have a consumer online SDK and a
light level. relation to Pleo’s emotional states and developer SDK — both will be
well-being of the moment. This is available in 2007. They don’t have all
• Detect the edges of objects in its unique in the robotic space. the details yet for hacking Pleo as
environment.
PLEO SEIZES UP!
• Detect sound and its source and
direction. Later in development, UGOBE was a flight the next day to lead the
beginning to put on demonstrations of demonstration. In the middle of the
• Recognize interactions — like being Pleo’s capabilities. As they were demo, where Pleo had just been going
touched on its head, shoulders, back, getting the “motion blending system” through its motions with flawless per-
legs, or feet. up and running to enable Pleo to fection, it went into a series of multiple
perform multiple motions one after simultaneous motions, overloading its
• Recognize body position and spatial another, UGOBE was also preparing joints and making it appear as if Pleo
orientation and abuse via force for another demo. was having a seizure. Sosoka turned
Working through the night, they Pleo off quickly, as even as a robot, its
feedback joints (be nice to your new
were ready for their demonstration. movements were so life-like that it
Pleo, please; he may react if he doesn’t
UGOBE CTO John Sosoka had to catch looked as if Pleo was in genuine pain.
like how he’s being treated!).
SERVO 12.2006 11
Geerhead.qxd 11/9/2006 9:08 PM Page 12

GEERHEAD

Front view of Roboreptile


and its innards. Roboreptile’s remote control in parts. Remote control, whole.

those are still being developed. 12K assembly language codespace, from. The robot even follows the
and 1/2 meg of sound ROM. position of the IR signal with its head.
Roboreptile Roboreptile then jumps down on
Roboreptile its four legs and runs to chase the
Roboreptile is about 80 cm long by Capabilities signal, as if running toward the food
24 cm wide and 15 cm high in four-leg source. When you release the IR
mode. With batteries installed, it All this technology enables remote button, that’s where the robot
weighs in at just under 2-1/2 lbs. Roboreptile to do some interesting, stops to eat. Having been fed, it will
The Roboreptile from WowWee life-like things. In its free-roaming move in a slower, more relaxed fashion,
Robotics is powered by five motors: two mode, it is hungry and angry (missed reacting more calmly to sound input.
for the legs and one for the neck, tail, its night-time feeding, perhaps?). In At this point, you can place the
and jaw. By using “high speed resonant this state, it explores its environment, hood over its head and it will calm itself
locomotion,” Roboreptile can walk in a avoids obstacles on either four legs or further. Then, it can be picked up and
dozen or so different configurations. two, and makes a lot of angry, hungry- petted on the back near its touch sensor.
Roboreptile uses bi-directional like noises. It makes a variety of Roboreptile — WowWee’s fastest
microphones and two IR sensors for its movements that add to the image of and most agile robot to date — exhibits
eyes to detect movement and avoid angry hungry roaming, just like you fast anaerobic-like motions that are
objects. It has a touch sensor to make might expect to see a dinosaur unique to a robotic creation. It is the
it sensitive to being touched on its progress through in a horror flick. fastest walking robot in its size range.
back. Through stereo sound sensors, it Roboreptile reacts to motion Hacking Roboreptile? For those
can react to sounds in its environment. around it as picked up by its IR vision who might want to hack Roboreptile,
A light sensor enables Roboreptile sensor and responds to sounds by chas- all the sensors are in the head and the
to recognize when its hood has been ing whatever is making those sounds. brain is in its spine. All the inputs and
placed over its eyes to “calm him Another method of calming the outputs are color-coded and socketed
down.” The IR radar also detects, Roboreptile is to simulate feeding the for easy use and access. Motors and
tracks, and moves toward an IR “food robot by using the IR remote control. gearboxes are double the speed and
beacon” to simulate eating. The IR radar detects the feed signal strength of earlier WowWee robots.
Roboreptile employs a custom-built and the robot turns to face the This instills quick reaction times into
RISC CPU with 128 bytes of RAM, a direction that the signal is coming the bot. It also has two new types of
gearboxes to keep hackers interested.
Roboreptile with some of his parts bare for the world to see. Thanks to UGOBE, makers of Pleo,
and WowWee Robotics, makers of
Roboreptile for their fine consumer
robots. SV

RESOURCES
UGOBE and Pleo
www.UGOBE.com/pleo/index.html

WowWee Robotics and Roboreptile


www.wowwee.com

12 SERVO 12.2006
Full Page.qxd 11/8/2006 2:52 PM Page 13

SERVO 12.2006 13
LessonsFromTheLab.qxd 11/9/2006 4:18 PM Page 14

// castling bonuses A
bi-month

LESSONS
B8 castleRates[]={-40,-35,-30,0,5};

//center weighting array to make pieces prefer column foly


//the center of the board during the rating routine r
B8 center[]={0,0,1,2,3,3,2,1,0,0}; kids!
//directions: orthogonal, diagonal, and left/right
from orthogonal for knight moves

FROM THE
B8 directions[]={-1,1,-10,10,-11,-9,11,9,10,-10,1,-
1};

//direction pointers for each piece (only really for


bishop rook and queen
B8 dirFrom[]={0,0,0,4,0,0};
B8 dirTo[]={0,0,0,8,4,8};

LABORATORY
//Good moves from the current search are stored in
this array
//so we can recognize them while searching and make
sure they are tested first

NXT Robotics: with Brian Davis


Remote Control by James Isom

T his month, we finish off our Brian Davis series with a look at his remote control. The remote uses the Bluetooth capabilities of
the NXT brick combined with the rotation of a motor to control the power level on the connected robot.

THE CONTROL MODULE


Make this twice.

STEP 1: STEP 2: STEP 3:

Parts:
Parts:
Parts:

Parts: Parts:
STEP 4: STEP 5:

14 SERVO 12.2006
LessonsFromTheLab.qxd 11/9/2006 4:19 PM Page 15

THE FRAME
Parts: Parts:
STEP 1: STEP 2:

Parts:
STEP 3: STEP 4: STEP 5:
Rotate the assembly
180 degrees.

Parts:

STEP 6: STEP 7: STEP 8:

Parts: Parts:
Parts:

STEP 9: STEP 10:


Parts:

Parts:

SERVO 12.2006 15
LessonsFromTheLab.qxd 11/9/2006 4:20 PM Page 16

FINAL ASSEMBLY

STEP 1: STEP 2: STEP 3:

Parts:

Parts:
Parts:

STEP 4: STEP 5: STEP 6:

Parts: Parts:
Parts:

Parts:
STEP 7: STEP 8: STEP 9:
Flip the assembly
over.

Parts:

Congratulations, you’re finished! All that’s left is to connect a wire from each motor into one of
the output ports on top of the NXT. Output ports B and C should be connected to the two controller
paddles. Brian Davis’ program for this little beauty and its counterpart to control Jenn Too can be
downloaded from my website at www.LEGOedwest.com. After you have the programs downloaded
to their respective NXTs, simply establish a Bluetooth connection between the two, run the programs,
throw the paddles forward, and you’re off and running. Have fun! SV

16 SERVO 12.2006
Full Page.qxd 11/8/2006 2:58 PM Page 17

Discover Why the Brightest Minds Think Edmund...


Products That Inspire Science Exploration
NEW! Khet For Over 50 Years, Scientifics has been proud to provide you
Strategy at the speed
of light.
with the latest and best selling, unique science-related items
Combine classic strategy available. From unusual gift ideas, to items you just won't
with the physics of lasers find anywhere else–we have something to make you smile…
and optics to master this and think.Whether you are a teacher, scientist, hobbyist – or
game of skill. Egyptian just love exploring the world around you, our unique collec-
themed pieces with one, tion offers a refreshing alternative.
two, or no mirrored sur-
faces move about the
game board. Each turn
ends by firing a laser
beam (built into the
board) which bounces
from mirror to mirror on a series of pieces. In
maneuvering each piece, the aim is to illumi-
nate your opponent's pharaoh and eliminate
them from the game. Designed for two play-
ers ages nine and up, the game comes with
required batteries.
#P30830-59 $44.95

The IFO 3000 - Magnetic Floating Display


The IFO 3000 takes levitation to new heights. From the impressive floating
gap to the aesthetically pleasing frame design, the IFO 3000 will grace any
home or office. The uniqueness of the Floating Ideas Magnetic Display
makes it the perfect gift. The product is easy to use – the patent pending
technology and the spacer training aid that comes with each kit make sure
that even a complete novice will be floating straight out of the box. The
objects rotate serenely in the magnetic field in either direction. At the flick
of a switch and a flick and a gentle push of the object, watch as the object
slowly rotates forever. The IFO 3000 is supplied with an Earth Globe float-
ing object as standard. Other floating objects are sold separately.
Globe with base #P30369-82 $99.95
Space Shuttle (without base) #P30369-84 $19.95

Nature's Fire™
• Brilliant Moving Sculpture
NEW! Cube World Created by Physicists
• The coolest new toy of the year! The dynamics of bringing earth,
Discover the distinct personalities and habits of stick figures Slim, fire and water together are
Scoop, Dodger, and Whip. These animated stick figures live inside reflected in this amazing kinetic
their own colorful cubes, where they play, think, and sleep. Slim uses a sculpture. Bejeweled lava con-
stick to do pull ups and martial arts. Dodger bounces a ball. Scoop tinuously erupts from the under-
plays keep away with his pet dog. And, Whip jumps rope. Watch one water volcano and soft, hypnot-
cube separately and play games with an individual figure or connect ic lights enhance the lava's
the cubes for more interactive fun. Surprisingly, stick figures in connect- movement in multi-colored pat-
ing cubes will wave to each other and transfer themselves between terns. Lighting is provided by
cubes to fight, play, and even high five. Cubes connect in any horizon- LED, so there are no bulbs to
tal or vertical pattern through magnetic sensors on the cube's sides. replace. It measures 9.7" L x 7.3"
Once connected, the possibilities are endless. W x 2.5" D and includes a 120V
Slim/Scoop #P30830-47 $29.95 or 220V power adapter.
Whip/Dodger #P30840-23 $29.95 #P31025-28 $34.95

Contact Us Today For A Free Catalog

Over 2,000 Items For Science Gift Giving!


Reference Code
CO69-WW12

1-800-728-6999 • www.scientificsonline.com
Events.qxd 11/9/2006 10:15 AM Page 18

Send updates, new listings, corrections, complaints, and suggestions to: steve@ncc.com or FAX 972-404-0269

We’ve come to the end of another year of robot Penn State Abington, Abington, PA
competitions, but the dates for 2007 are beginning to roll Autonomous robots pick up foam balls and shoot
in. I expect next year to bring more competitions than or dunk them in a basket.
ever as the interest in robots continues to grow. Enjoy the www.ecsel.psu.edu/~avanzato/robots/
holidays and perhaps you can use the extra free time to start contests
building robots for next year.
Know of any robot competitions I’ve missed? Is your
local school or robot group planning a contest? Send an Januar y 2007
email to steve@ncc.com and tell me about it. Be sure to
include the date and location of your contest. If you have a 16-19 Singapore Robotic Games
website with contest info, send along the URL as well, so we Republic of Singapore
can tell everyone else about it Lots of events including wall climbing, pole
For last-minute updates and changes, you can always balancing, Micromouse, sumo, legged robot races,
find the most recent version of the Robot Competition FAQ robot soccer, and more.
at Robots.net: http://robots.net/rcfaq.html http://guppy.mpe.nus.edu.sg/srg

— R. Steven Rainwater 20 Robot Sumo in DC


Washington, DC
December The name says it all. This is a robot sumo contest
held in Washington, DC.
1-2 Texas BEST Competition www.societyofrobots.com/sumo_robots_in_
Moody Coliseum, SMU, Dallas, TX DC.shtml
In the Texas BEST Competition, students and
corporate sponsors build robots from standardized 26-28 Techfest
kits and compete in a challenge that is different Indian Institute of Technology, Bombay, India
each year. Micromouse and two other events with the intrigu-
www.texasbest.org ing names of SNAP and Full Throttle: Afterburn.
www.techfest.org
2 LVBots Challenge
Las Vegas, NV
Line following, line maze solving, and mini sumo, F e b ru a r y
all for autonomous robots.
www.lvbots.org 1-4 Robotix
IIT Khargpur, West Bengal, India
8-9 South's BEST Competition A national-level competition. Events include
Beard-Eaves Memorial Coliseum, Fastrack Manual, Fastrack Auto, and Softandroid.
Auburn University, Auburn, AL http://gymkhana.iitkgp.ac.in/robotix
Regional BEST teams from multiple states compete
in this regional championship. 1-4 Pragyan
www.southsbest.org National Institute of Technology, Trichy, India
Events include TrailBlazer and EyeRobot.
9 ROBOEXOTICA www.pragyan.org
Museumsquartier, Vienna, Austria
A competition for “cocktail robots” that includes 26 APEC Micromouse Contest
events such as serving cocktails, mixing cocktails, Anaheim, CA
bartending conversation, and lighting cigarettes. One of the best-known micromouse competitions
www.roboexotica.org/en/acra.htm in the United States. Expect to see some very
advanced and fast micromouse robots.
9 Penn State Abington Robo-Hoops www.apec-conf.org

18 SERVO 12.2006
MrRoboto.qxd 11/9/2006 10:38 AM Page 19

Our resident expert on all things


robotic is merely an Email away.
roboto@servomagazine.com

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
As a recap, in the October 2006
issue Eric posed a question asking
why so many sensors output a high
signal when it is not detecting
anything, and then goes low when it
when it detects a sensor state change
and how the system will respond if the
sensor fails. Everyone designs their
systems considering the first case, but
too many people forget about the
Q . I bought a few of the Sharp
GP2Y0D340K infrared object
detection sensors because of
your article in the September ‘06 issue
of SERVO Magazine. I managed to get
detects something. second case. They assume the sensor one apart, but I trashed the adjustable
will always work the way they want it lens. I want to use these to detect
to. Unfortunately, in the real world, trains on a model railroad because I

Q . I believe the reason that many


sensors go low when detecting
something is for safety reasons.
Many sensors are used to help in control-
ling and limiting an automated process. It
sensors fail to work as desired. They are
either being used in an application they
weren’t designed for, they malfunction,
or there is a wiring problem between
the sensor and the main processor.
know that they will be quite reliable. I
built the circuit and it works just fine.
Also, the one I destroyed the lens in
will still work because I plan to set
these in the track. I can leave the other
can be really almost anything from When working out the wiring logic, ones alone because the detector will
machine tools to mixing chemicals to one should consider what happens if be looking up and will work as sold. I
detecting particular proteins. If the task the sensor fails to work. If the output is have G gauge so I have plenty of room.
being done has limits that must not be normally high, how should the system Now, my question — how can I
exceeded, then the controller needs to respond if there is an electrical failure modify the circuit to turn a five-volt
always know that the sensor is operating. that causes the signal to go low? If the relay on and off when there is a train
It does this by having the sensor com- sensor’s output is normally low, how present? I am a connect-the-dots guy
plete a circuit. If the circuit is broken by should the system respond if it fails to go when it comes to electronics.
either the limit being detected or a fault high when it detects something? As — John L. Deming
in the circuit, the controller stops and the in your limit switch example, if the
reason for the low state is investigated.
Of course, the above method isn’t
perfect, but it is simple and cheap and
is good enough for many uses because
the sensor is never supposed to actu-
controller loses communication to a limit
switch in a machine tool (i.e., it opens
when it is not mechanically triggered),
the machine better shut down for safety
reasons. But on the flip side, if a sensor’s
A . Sorry to hear that you broke one
of the sensors. One would think
that if Sharp would advertise that
these sensors are adjustable, they
wouldn’t use such a strong glue. A little
ate. For example, limit switches at the output goes low when it detects some- pressure is usually all that is needed to
extreme travel of a machine tool axis. thing, it will go low if the wiring breaks. break the glue, but some parts may
Just an FYI in case you’re curious. If a combat robot is designed to attack have a lot more glue than others.
— Eric R. Snow when it detects something, a broken sen- Adding a five-volt relay is pretty
sor would put it into a permanent attack straightforward. Figure 1 shows how the

A . Eric, you bring up some


excellent points here. Safety and
reliability need to be considered
when wiring sensors into a system. The
two things that need to be considered
mode which is, in itself, dangerous.
Because there are so many ways a
sensor can be wired into a system,
most industrial sensors have both
normally open and normally closed
circuit in the September ‘06 issue was
modified to control a relay. All you need
to do is add a second general-purpose
NPN transistor, Q2, and a diode, D2. The
diode is operating as a flyback diode to
in determining which way to wire a sen- contacts so the same sensor can be protect the transistor from the reverse
sor are: how the system will respond used in either configuration. voltage spike that occurs when the
SERVO 12.2006 19
MrRoboto.qxd 11/9/2006 10:39 AM Page 20

relay’s coil is de-energized. In this circuit, direction back to the browser. I’m is heavily based on vision recognition
I have moved the location of the LED, currently using Visual Basic as the and navigation capabilities. They have
D1, to provide a visual indication that the master control software. In addition, I developed a set of software tools
sensor is detecting something. The relay would also like to send streaming video for vision-based applications that
will be energized when the LED lights. from the bot back to the browser using work with the Microsoft development
The LED and its current limiting resistor, a standard webcam. Any ideas? software, which is quite impressive,
R4, are optional. They can be removed — Don Peterson especially with their object recognition
from the circuit and it will still operate as Pleasanton, CA capabilities. If vision capability is your
intended. The relay can be either a single main goal, then take a serious look at
pole or a double pole relay, it doesn’t
really matter. Hope this circuit will help
with your model train project. A . This sounds like an exciting and
challenging project. The software
part of your question is going to
be the harder one to answer, so I will
the Evolution Robotics software.
The Microsoft Robotics Studio is a
new product under development by
Microsoft, and it is currently available

Q . I have been an avid reader of


both Nuts & Volts and now
SERVO for quite some time. I
have several types of bots and am
currently working on my masterpiece.
address a couple software packages that
may fit your needs first. Since you are
currently working with Visual Basic, I
would suggest that you take a look at the
Microsoft Robotics Studio http://msdn.
for download free of charge. The
Robotics Studio is designed for control-
ling and communicating with robots,
either directly, remotely, or via
web-based controls. Several robotics
This one uses a PC/104 main computer microsoft.com/robotics/ software, and companies such as Kuka Robotics
talking to various Atmel controllers. the ERSP software from Evolution (www.kuka.com) and White Box
I am trying to find either the soft- Robotics www.evolution.com. Both of Robotics (www.whiteboxrobotics.
ware or the tools to create a program these software packages are designed com) are offering the Robotic Studio as
that will allow me to send control and for PC-based robotic applications, and one of the software development
status signals via the Internet from any work with Microsoft Visual Studio pro- options for their products. The
remote browser to the robot. Once the gramming languages such as Visual Basic Robotics Studio also has demonstration
control signals are received by the bot, and C#, and the .Net environments. applications for working with LEGO
I would then need to be able to use You mentioned that you would like Mindstorms RCX and NXT bricks
these in my control software. Status to use streaming video with your robot. (ht tp://mindstorms.lego.com/),
signals would be sent in the reverse The software from Evolution Robotics Parallax BoeBot (www.parallax.com),

Figure 1. Sharp optical sensor controlled relay.


+5V

PIN 6 COM
SHIELD 470 ohm R4

R1
PIN 2 PIN 1 D2
LED_FB Vcc SPDT RELAY
D1
1 ohm IN4001
LED
GP2Y0D340K

N.O. N.C.

PIN 4 470 ohm R3


GND

Q2
2N3904
C1 2N3904
R2 Q1
PIN 5 PIN 3
REG Vout
1 uF 470 ohm

PIN 6
SHIELD

20 SERVO 12.2006
MrRoboto.qxd 11/9/2006 12:17 PM Page 21

and the Lynxmotion 6 axis arm (www.lynxmotion.com). Many


of these robots are controlled via serial or wireless controls.
With your PC104 computer, you are going to need
software that can run either Windows CE or Windows XP
Embedded (http://msdn.microsoft.com/embedded/). I
don’t know the specifics about your hardware, but the
PC104 hardware developed by WinSystems (www.win
systems.com) has the software for running both Windows
CE and XP Embedded. You will have to check with your hard-
ware manufacturer to see if they support these operating sys-
tems and if they are compatible with either the Evolution
Robotics software or the Microsoft Robotics Studio software.
Both of these software packages — along with just about any
other software package — will work with sending control data to
the robot and receive status data from the robot. This can be
done via a wired serial communication line or via wireless connec-
tion hardware such as the ZigBee wireless modules from
Maxstream (www.maxstream.com). Since you would like
streamless video from your robot using a standard webcam, I
would suggest that you take a look at the wireless webcams from
D-Link (www.d-link.com) and Linksys (www.linksys.com).
Hopefully, the information provided here can get
you pointed in the right direction in developing your PC-
controlled robot. When you get your robot up and running,
put an article (or two) together for SERVO on what you did
to get it working. Many of our readers would love to know
how you did it, including myself. SV

SERVO 12.2006 21
Dec06NewProd.qxd 11/9/2006 10:06 PM Page 22

New Products

N E W P RO D U C T S
the most popular features of the original IntelliBrain
CONTROLLERS & PROCESSORS robotics controller and the IntelliBrain expansion board on
a single circuit board. RidgeSoft has also updated the
IntelliBrain-Bot Deluxe educational robot to include
The Tini2131™ the IntelliBrain 2 robotics controller and an ultrasonic

T he newTini2131™ from
New Micros, Inc.,
comes in the popular Tini
range sensor.
The IntelliBrain 2 robotics controller is designed
specifically for educational robotics applications. Students
pinout format and is based program their robots using true Java™ programming —
on the Philips ARM not a Java-like language or other esoteric programming
LPC2131. The LPC2131 language. Tutorials and a course outline — which are
has 32K Flash and 8K available online — facilitate easy integration into computer
RAM. It has on-board regula- science or engineering curriculum.
tion, reset circuitry, RS-232 The RoboJDE™ robotics software development
conversion, and three user programmable indicator LEDs. environment, which is included with the IntelliBrain 2
The Tini2131 has 16 of the best I/O pins of the LPC2131 robotics controller, includes dozens of example programs
brought out, and separate I2C connections for networking. and tutorials covering everything from basic sensing to
The 16 shared I/O pins include two 32-bit timers, PWM, programming advanced robotic intelligence.
and two serials which can be UARTS, I2C, or SPI. There are The IntelliBrain 2 robotics controller’s design makes
up to eight channels of 10-bit A/D. This device can be it easy to interface with many popular sensors and
developed in GCC using Eclipse in the same way as the effectors including hobby servos, DC motors, infrared
original TiniARM, as well as having leading software tool sensors, sonar sensors, wheel encoders, vision sensors,
chains from companies like Keil Software. compasses, GPS devices, speech synthesizers, and
Its small size — 1” x 1.3” — allows it to be a tightly many more.
integrated solution to robotics, motion, automotive, and The robotics class library included with RoboJDE
industrial control, as well as the capability of being used in provides an easy-to-use, object-oriented programming
networking and data logging applications. interface to all of the IntelliBrain 2 controller's
The Tini2131 features a 60 MHz, LPC-2131 32-bit features, as well as software support for many sensors
ARM CPU. The popular ARM processor has wide third- and effectors, and an assortment of robotics classes to
party language support, free development tools like the provide a foundation for programming intelligent
Eclipse development environment using GCC, and a demo robots.
version of the Keil compiler, as well. Other languages soon The IntelliBrain 2 robotics controller includes the
to come from New Micros are IsoMax/Forth and StatiC for following features:
the ARM. As an introductory offer, New Micros will
include a free Keil demo CD upon request. • Java programmable
A Tini2131 development kit with the serial cable, • Two DC motor ports
power supply, and proto-development board is available. • Five servo ports
For further information, please contact: • Seven analog/digital input ports
1601 Chalk Hill Rd.
• 13 digital input/output ports
New Micros, Inc. Dallas, TX 75212 • Two RS232 serial ports
214•339•2204 Fax: 214•339•1585 • Five I2C ports
Website: www.newmicros.com
• Six program-controlled LEDs
• 38 kHz infrared transmitter
• 38 kHz infrared receiver
The IntelliBrain™2 • 16 x 2 LCD display buzzer thumbwheel
• Two pushbuttons
Robotics Controller • Atmel ATmega128 CPU

R igeSoft has just released the IntelliBrain™


2 robotics controller — its second genera-
tion robotics controller — which incorporates
• 132 KB RAM
• 128 KB Flash
• 4 KB EEPROM

22 SERVO 12.2006
Dec06NewProd.qxd 11/9/2006 10:06 PM Page 23

New Products

The IntelliBrain-Bot Deluxe educational robot includes: model. Custom products can be engineered.
For further information, please contact:
• IntelliBrain 2 robotics controller 627 Lake St.
• Two servo motors AMETEK Technical & Kent, OH 44240
Industrial Products 330•673•3452 Fax: 330•678•8227
• Two wheel encoder sensors Website: www.ametektip.com
• Two line sensors
• Two infrared range sensors
• Ultrasonic range sensor
• Chassis, wheels, and required hardware
RADIO CONTROL
The IntelliBrain-Bot Deluxe educational robot kit can
be purchased either assembled or unassembled. Control Your R/C Vehicle or
For further information, please contact:
Robot From Your PC
PO Box 482
RidgeSoft, LLC Pleasanton, CA 94566
Email: info@ridgesoft.com
Website: www.ridgesoft.com
E ndurance R/C
offers an inter-
face system called
the PCTx. This
device allows a
MOTORS user to control a
radio control vehi-
cle or robot via a
Brushless DC Motors PC. The PCTx was
developed with the intention of providing users with a low

D urA-Tek® brushless
DC motors available
from AMETEK® Technical
cost means to achieve wireless control via a PC. Also, by
utilizing hobby transmitters, no modifications to the vehi-
cle or robot are necessary in order to achieve PC control.
& Industrial Products The software required to operate the PCTx has
feature integrated drive been openly released on their website. Endurance R/C
electronics enabling feels this allows for a greater level of innovation and
enhanced motor con- also allows many new applications to be developed
trollability in a smaller, around the system.
lighter package. Their The PCTx requires a radio transmitter with a buddy
3.0-inch outside motor diame- box/trainer port and a Windows PC with USB port.
ter and standard two-wire electrical hookup further allow A universal version for pistol grip style transmitters is
them to replace similarly sized brush-commutated DC currently in the works. PCTx technical specs include:
motors while delivering relatively higher performance and
extended service life. • Supports up to an eight channel radio system
These motors ideally suit demanding high- • Buddy box/trainer port enabled radio required
duty cycle applications for equipment used in the • Pulses refreshed at 50 Hz
transportation industry. Applications expand into • Independent servo control on all channels
HVAC, chemical, mining, medical/biotech, data • C++ software API available, VB coming soon
storage, semiconductor processing, automation, and • Upgradeable firmware
other industries that can benefit from compact • USB 2.0 compatible
and rugged motor construction. For harsh
environments, these motors have been designed to For further information, please contact:
resist hot-water spray, rain, humidity, salt, fog, shock,
and vibration. Endurance R/C Website: www.endurance-rc.com

“Smart” onboard motor controls and advanced


electronic design deliver key features, including
multi-speed operation, over-current control, locked- Show Us What You’ve Got!
rotor protection, reverse polarity protection, Is your product innovative, less expensive, more functional, or
transient over-voltage protection, and over-temperature just plain cool? If you have a new product that you would like
shutoff. us to run in our New Products section, please email a short
These 12V/24V brushless DC motors can achieve description (300-500 words) and a photo of your product to:
continuous torque from 19.7 oz.-in. to 55 oz.-in. and newproducts@servomagazine.com
speeds from 2,927 RPM to 4,400 RPM, depending on the

SERVO 12.2006 23
MenagerieDec06.qxd 11/9/2006 11:34 AM Page 24

Halloween Robot Terror 2006

The first ever Halloween Robot Terror is over and I fought them for the best of two out of three:
everyone had tons of fun. There were two brand new teams
competing in their first ever event. Team Bad Bots with their • First Place — Change of Heart from Team Misfit driven by Kevin
bot Black Wedge is from Palo Alto, CA. The second new • Second Place — Atom Bomb from Team Misfit driven by Dan
team is un-named as of yet with their bot Screamer, a
modified BB toy. Also Team Misfit has a new builder/driver, In the Ant Weights, I had seven bots competing:
Dan, driving a flea weight named Atom Bomb. Welcome to
the sport guys! Hope you have as much fun as the rest of us. • First Place — Fire Eagle from Team Misfit driven by Kevin
The costume contest was a great success and had nine bots • Second Place — Stumpy from Team DMV driven by David W.
compete. I kept hearing a lot of builders saying “next year I’m • Third Place — Pooky from Team ICE driven by David L.
going to do ...” so I will be doing the Halloween Robot Terror
again next year. The winners of the Bot Costume contest are: In the Beetle Weights, I had three robots competing, so
I ran them round robin.
• First Place — Stumpy from Team DMV
• Second Place — Front Kick from Team Kick-Me • First Place — Toe Poke from Team Kick-Me driven by Hugh
• Third Place — Scream (the brand new team that’s un-named • Second Place — Unknown Avenger from Team ICE driven by
for now) David L.
• Third Place — Itsa from Team Bad Bot driven by Mike
Photos are posted on the CIB website at www.cal
bugs.com. Dave Wiley
In the Flea Weights, there were only two competitors, so Bot Gauntlet Baron

24 SERVO 12.2006
MenagerieDec06.qxd 11/9/2006 11:36 AM Page 25

Continued on Page 84

Costume Contest Winners.

Rosie has gotten a LOT of use at several


events by people from the audience and
it’s easy to get a line of people wanting a
This is team
turn to drive her around. This helps keep
DMV Ant Weight
the fighting surface very clean.
Stumpy in
costume. The
eyes light up
and the head
turns left and
Third place
right. Also, the
costume winner
handle bars turn
Screamer driven
when Stumpy
by Gabriel. His
turns left and
team is so new
right. This
its not even
costume took
named yet.
first place.

SERVO 12.2006 25
CombatZone.qxd 11/9/2006 9:53 AM Page 26

Featured This Month


Participation
26 Introduction to Arenas
by Kevin Berry

28 Weapon Safety by Brian Benson

Feature
28 Voyagers Robotics
by Tim Wolter
PARTICIPATI N
Introduction to Arenas
Events ● by Kevin Berry
30 Results — Sep. 12 - Oct. 13
32 Upcoming — Dec. and Jan. T he subject of arena design is
always good for a discussion,
debate, and (usually) a disagree-
pound “lightweight.” An insect
arena for ants and beetles should
be able to contain a Mantis or
Technical Knowledge ment. One thing no one even Hobbyweight weapon. This
disagrees on, however, is that the is above and beyond whatever
31 Radio Systems arena is the first and last line of safety factors are built into the
by Leonard G. Ginn, Teampyramid safety between hard, sharp bots basic design.
and soft, squishy people. Despite Most arenas are built from a
Product Review a few close calls over the years, combination of polycarbonate
32 DuraTrax IntelliPeak AC/DC the arenas built and used in (“Lexan” is a commonly used
Mini Pulse Charger Combat Robotics have a sterling commercial term for this), along
by Kevin Berry record of protecting people from with steel, aluminum, and wood.
harm. Insect class arenas need at
The first rule of arena design least 1/4” poly, and big bot
is to assume it must contain boxes range from 1/2” to 1”
the next class The Battle Beach arena being set up. Note the steel
bigger than floor, kick plates, and suspended wooden ceiling.
you’re planning
to fight in it. So,
if you’re build-
ing for the 30
pound “feath-
erweight”
class, your
arena should
be able to
withstand
the weapon
loadout of a 60

26 SERVO 12.2006
CombatZone.qxd 11/9/2006 9:54 AM Page 27

Inside the Combots arena, showing


bumpers designed to keep bots away from
Inside the Battle Beach box. Back walls the walls. Spinning weapons just a few feet
are steel; railroad ties keep bots off the from spectators require lots of thought
polycarbonate. Overhead lights help with Combots arena showing drivers stations. Roof
structure is built with trusses. Spanning large into a safe design.
visibility. Photo is from perspective of
drivers behind protective window. arenas is sometimes a difficult design feature.

depending on design and weight take two days.


class. Insect arenas run from a tight Another design factor is mainte-
4’ x 4’ to a roomy 8’ x 8’ in size, nance. After almost every event,
while large bot boxes are 12’ x 12’, some sheets of poly need to be
up to 32’ square. They tend to replaced. Also, floors take a beating.
run in 4’ increments due to the Even during events, parts of the
availability of polycarbonate in 4’ x arena may need to be repaired
8’ or 4’ x 12’ sizes. Ceiling heights or replaced. Other factors include “Toad Tank” showing roof support
are generally 4’ for insect bots, lighting, ventilation (especially if and steel box beam bumpers.

and 8’ in large boxes, for the same internal combustion engine (ICE) The new SECR Florida insect box
reason. bots are allowed), audience visibility, being assembled. This arena was built
using 80/20 aluminum products,
Keeping the bots off the walls driver visibility, and what type of 1/4” polycarbonate, and a plywood floor
with sacrificial hardboard overlay.
is a key design feature, and most surface the arena will be used on.
arenas incorporate either fixed or Setting up a box on a concrete slab
“loose” barriers such as “I” beams is a much easier task than on dirt
or railroad ties to do this. Ceilings and grass!
are often plywood, sometimes This brief overview isn’t
covered with moving blankets or intended to take the place of a
other debris absorbing media. thorough design discussion on
Doors can be a weak point, since current or new arenas. However, as
they must be opened and a recurring topic on forums and
closed twice for each fight, but bulletin boards, it’s obviously an
they still need to provide the same important one. Maybe it’s time
level of protection as the rest of each organization in the sport took
the box. a look at their arenas, along with
Setup, teardown, and trans- the “arms race” of increasingly
portation also figure into the powerful weapons, and ask
design equation. Insect boxes can themselves some pointed safety
(usually) be set up in a couple of questions, like “is our box still safe
hours, while large arenas might enough?” SV
Team Whyachi’s arena has small boxes to The WarBots arena has a classic setup, with The TC Mechwars arena features a clear roof
allow testing the next match’s bots while drivers platforms and a ramp in between. to increase visibility in large venues.
fighting happens in the main box.

SERVO 12.2006 27
CombatZone.qxd 11/9/2006 9:55 AM Page 28

Weapon Safety
● by Brian Benson

W eapon safety locks are one of


the best ways to stay safe
around combat robots. They provide
freely, is one more second where a
fatal mistake or error could occur.
designed into the spinning weapon
along with a matching hole in the
frame for a pin to drop into. Another
the last element of protection When it’s Necessary option is to put two holes on either
between you and the robot when side of the weapon so that inserted
precautions fail or mistakes occur. A weapon lock is necessary pins will prevent motion in both
The purpose of a weapon lock is to every time a robot is turned on; directions. An excellent example of a
prevent the motion of any weapon regardless of the situation. Why? weapon lock is shown in Figure 1.
with the capability of dangerous Mistakes can and do happen and For every case, there is a different
movement. when it’s yours or other people’s best way to secure your weapon. The
safety on the line, it’s worth the task then is to simply use common
Three Basic Criteria extra effort. sense and find that best way that
For example, when testing the satisfies the three basic criteria.
A weapon lock should meet lifting arms on my 30-lber, I checked
three basic criteria. It must: prevent the radio settings and turned the What to Avoid
dangerous movement of the robot on. The arms instantly
weapon; be clearly visible in shape, activated as a result of plugging the Many builders leave the weapon
size, and color; and be able to be motor into the wrong receiver port, lock as a last thought, something to
removed and inserted quickly and causing dangerous unexpected figure out after all the “important”
easily. The removal or insertion of the movement. Remember, always use stuff is correct. However, this often
weapon lock is the most important your safety lock! results in locks that do not function
criteria aside from effectiveness and safely. Improper examples of
is the last action that should be Techniques/Methods weapon locks include attachments
performed before leaving the arena that require they be clamped, bolted
and the first when reentering the While every robot is different, on, or screwed in before they
arena. Every second that is wasted the most effective and easiest become effective. A perfect example
while trying to remove or insert the weapon lock is a simple pin or bar. of what not to do is shown in Figures
lock, leaving the weapon to move Spinners often use a hole that is 2 and 3. SV
FIGURE 1. Ziggy of Team CM Robotics uses FIGURE 2. This is a spinning weapon FIGURE 3. Even small bots need thought put
a steel bar to secure their system in the being held only by a clamp — exactly into weapon restraints. This Mantisweight
extended and retracted (not shown) position, what should not be done. restraint is definitely not safe!
preventing any dangerous motion. The weapon
can output a force of 14,100 lbs, so they use a
bar capable of handling 80,000 lbs of force.

VOYAGERS ROB TICS ● by Tim Wolter

W hen my son Karl was still in


fifth grade, we started building
combat robots together. It just
and who got a sledge hammer for
his third birthday.
We had a lot of fun with this, so
after-school program with an offer. I
said, “Hey, I am willing to teach a
class where we let hyperactive sixth
seemed like a natural progression for when he was in middle school, I graders build heavily-armed remote
a kid whose first word was “broken,” went to the organizers of the local control juggernauts.”

28 SERVO 12.2006
CombatZone.qxd 11/9/2006 9:55 AM Page 29

They thought that was an Assorted three pound


competitors. The hammerbot
absolutely appalling notion, but in the foreground actually
after some discussion, we com- wields a stone arrowhead!

promised on a smaller scale ven-


ture that has been running with
success for the last five years.
We take classes of 24 kids
at a time and have them each
build an R/C combat robot of
one or three pound size. The
“final exam” for each class is an Frantic battery charging.
all-out tournament where the
students employ their engineering few machines that go into battle To do a class of this sort, it is
and driving skills to try and reduce equipped with little more than necessary to break the group up into
their opponents to smoking rubble. a good paint job and ill founded two groups of 12 students each.
And we do this with a near zero confidence. That is about the maximum number
budget and a high level of safety. To The cost of the program is low; of adolescent goofballs that can be
accomplish this, we “freeze” the each student pays a $20 class fee, contained in one place and watched
technology level so that it is which we waive for financial need. while they use tools. Each class gets
affordable, and so that all students Hitec servos — usually HS-311 or HS- about eight sessions of roughly 1.5
compete with similar equipment. 325HDs — run about $8-$10 each. hours of build time. Interestingly,
The most basic machine utilizes An excellent source for these can be while my classes have been
two Hitec servos which the kids found at www.servocity.com. I also about 95% male, the girls who do
“hack” for 360 degree excursion and usually have a few donated machines participate always build outstanding
couple to drive wheels. These can be or wreckage left over from previous machines.
hooked to a standard R/C receiver class sessions for kids who want to So far, the middle school has
and a six-volt NiCad or NiMH try a four-wheel version. I have con- been supportive. We get a tech ed
battery to make a basic “pusher” or nections that provide me with Lexan classroom to work in, a certain
wedge robot. scrap that comes in handy. And for amount of storage space, and a
Most students want to build the electronics, I have been gradually chance to do our end-of-class tourna-
something just a bit fancier. With a accumulating transmitters, receivers ment at the school on a Saturday
bit of soldering, a four-wheeled and batteries off of eBay, from afternoon. Teacher participation has
machine can be built by coupling two donations, and from various low cost been helpful but intermittent, so the
servos per side. And active weapons sources, such as www.battery show is usually run by myself, my
can be added using 9.6 volt R/C car space.com. Tom’s RC (www.tti-us. son, and various parent volunteers.
drive packs connected to motors com) has some good electronics, as Since the school shop is usually
driving spinning bars or discs. does the Robot Marketplace not available, we bring our own
Weapon control is via a micro servo (www.robotmarketplace.com). As tools, which include a soldering iron,
that closes a circuit as a simple the world of combat robotics is cordless drill, small drill press, and a
mechanical relay, or with low-cost heavily populated with, well, techno- sheet metal shear for cutting Lexan.
airplane electronic speed controllers. nerds, it is not surprising that the Each kid brings a shoebox to contain
I make a point of encouraging Internet is the necessary glue that his work in progress.
far out designs. Other than the links the community together. Our school has a strict no
weight classes, the only rules are: There are also many useful weapons policy that probably bans
components to be found for free. I everything beyond plastic forks, so I
1. No flame throwers. generally have one session I call “junk have kids bring any dubious items
2. No hand grenades. day” where kids are encouraged to directly to the class storage area. So
3. No live animals. bring power tools, toys, small appli- far, nobody has had any problems on
ances, and such to be cannibalized. I the bus to school.
So, we have had robots built hope that these are non-functional The goal of the class is to have
from old Nintendo controllers, items, and that parental permission fun, but along the way, we do
sponges, wood, and mixing bowls. was granted! It has become neces- manage to teach the kids a bit about
They have featured armament sary to specify no VCRs; with the design, use of materials, radio
ranging from six inch circular saw advent of the DVD player, there are frequencies, wiring circuits, and use
blades, to a hammer bot wielding a piles of these sitting around, and of some basic tools. With close
stone arrowhead, and more than a they yield few useful components. attention to safety glasses and a ban

SERVO 12.2006 29
CombatZone.qxd 11/9/2006 9:57 AM Page 30

Emergency repairs. Picachu — a surprisingly effective machine A possible world record for percentage
fashioned out of old RC car bodies. composition of duct tape.

board with audience volunteers, award of all is the coveted “Golden


which are never in short supply. Dumpster,” given for most effective
We are not yet at the point use of junk materials. We live in a
where we have 24 sets of time when hands-on tinkering is less
electronics, so hard-working volun- common than it once was, and I
teers continuously swap receivers believe in encouraging kids to
and batteries from one machine to scavenge and experiment as much as
another using Velcro and plenty of possible.
on unsupervised weapon activation, duct tape. Local R/C enthusiasts and With the generally declining cost
we have had no injuries worth combat builders from the Twin Cities of electronic components, the class is
mentioning. We apply about one Mechwars group have always been in some ways getting easier to run
band aid a year, usually to some there to pitch in. over time. But looking ahead I
part of me. We usually weld up trophies suspect that I will at some point give
The tournament is a major from whatever junk is lying around in to the temptation to have the
undertaking. I have a 6’ x 6’ Lexan the workshop, and award them for class start building more advanced
enclosed arena with a plywood first through third in each of the machines, perhaps with antweight
floor. Arena hazards vary with my weight classes. There is also a special controllers such as the Scorpion, or
whims, but usually include a saw and award for best design, by which even 12 to 15 pound machines for
a grinder, along with a trap door. I mean most innovative, not neces- one of the several competitions that
Arena hazards are run off a control sarily most successful. The highest run in our area. SV

EVENTS
RESULTS — September 12 - October 13
Featherweight
F all W.H.R.E
’06 was held
9/16/2006 in
• — 1st:
“Pyromancer,” wedge/flamethrower,
Killerbotics.
“Nano Falcon,” drum, Whyachi; 4th:
“Wykydtron,” spinner, Delta Strike
Force 2001.
Dorchester, WI.
Results are as follows: • Hobbyweight — 1st: “Ricochet,” • Fairyweight — 1st: “Kankle Killer,”
wedge, Whyachi; 2nd: “Shroom of spinner, Whyachi; 2nd: “Destroyer
• Heavyweight — 1st: “Ty,” plow, Doom,” wedge, Delta Strike Force of Grass.”
Bobbing For French Fries; 2nd: 2001.
“Brick,” wedge, Whyachi.
• Beetleweight — 1st: “Firefly,”
• Middleweight — 1st: “Falcon,”
drum, Whyachi (RFL Ranked
wedge, Booyah; 2nd: “Jeepy Jeep”;
3rd: “3A,” spinner, Whyachi; 4th:
R obothon Robot Combat 2006
was held 9/30/2006 in Seattle,
WA. Results are as follows:
#1); 2nd: “Maxo,” spinner, “Celebrity Lunchbox,” ram, LovBots.
RoboRednecks. • Hobbyweight — 1st “Shear Terror,”
• Antweight — 1st: “Underwhere?!,” spinner, Sparkle Motion; 2nd:
• Lightweight — 1st: “Goosfraba,” spinner, Hazardous Robotics; 2nd: “Fiasco,” spinner, Velocity; 3rd:
wedge/flamethrower, Killerbotics. “ANTI,” spinner, 564 Robotics; 3rd: “Scratch,” clamp, Gausswave.

30 SERVO 12.2006
CombatZone.qxd 11/9/2006 9:57 AM Page 31

• Beetleweight — 1st: “Hurty Gurtie,” Results are as “Unblinking Eye,” spinner, Hammer
drum, Death By Monkeys; 2nd: follows: Bros.
“Creepy Crawler,” wedge, X-Bots;
3rd: “Altitude,” spinner, Velocity. • Antweight — • Fairyweight — 1st: “Microdrive,”
1st: “The Bomb,” drum, Misfit; 2nd: lifter, Misfit; 2nd: “Hulk Hogan,”
“Emsee Fry Pants,” drum, clamp, Fatcats; 3rd: “Crisp,”

M arin Ant Wars VI was held


9/30/2006 in Tiburon, CA.
Burntpopcorn.net; 3rd: “MC Pee
Pants,” drum, Fatcats; 4th:
flamethrower, Offbeat; 4th: “Catch
22,” drum, Hammer Bros. SV

TECHNICAL KN WLEDGE
Radio Systems
● by Leonard L. Ginn, Teampyramid

S o, you are going to build a


combat robot. One of the most
important things to think about is the
Trigger Style — Futaba
Magnum Sport FP-T2PB,
two channel.
Twin Stick — Futaba T9CAP radio and receiver
with PCM and PPM, nine channels.

type of radio system that you are


going to need. If you are building a
large bot class (more than six lbs.),
you will need a PCM (pulse code
modulation) type radio system or
better. For the small Insect robot
class (six lbs. or less), you may use a
PPM (pulse proportional modulation),
or you may get by with a toy radio conventional channels that your not need a different radio to change
system. This may also depend on the radio won’t even recognize the channels; you can simply change the
rules of the events you plan to attend existence of the other bands. crystal in the transmitter and receiv-
with your bot. So check before you The 50 MHz radio is a problem er. You will, however, need to check
invest. The radio system has two because it requires you to have an with the radio manufacturer on this.
parts: the transmitter, which you hold amateur radio license from the FCC. The 75 MHz radio system
in your hands; and the receiver, which The 72 MHz systems are for aircraft comes in three different bands:
goes in the bot. The radio can be a use only, and are not allowed for AM (amplitude modulation), FM
trigger style or twin stick. combat robots. The toy radio systems (frequency modulation) and FM
Most electronic speed controls for are 27 MHz and 49 MHz. With 27 PCM. The AM radio range is extreme-
combat robots only have two or three MHz, you may have a choice of
channels, with sometimes a fourth different channels from A1 to A6, Spektum DX6 six-channel DSM 2.4 GHz
system from Robot MarketPlace.
“invert” function. The twin sticks and 49 MHz has only one usable
radio’s have two or more channels (up channel. There are also many higher
to 6-8), depending on the type. With quality 27 MHz systems used for R/C
the twin stick system, you can drive cars and boats. The 75 MHz system
the robot with tank turn steering. uses channels 61 through 90. You do
Typically, radio systems can come in
five different frequencies. They are:
27, 49, 50, 72, and 75 MHz.
The new radio system on the
block now is the 2.4 GHz. This unit,
when first activated, searches 80
channels in the 2.4 GHz band. When
the radio locates the best clear
channel, it will lock on to that
channel. The 2.4 GHz frequencies
are so much higher than those of Tower Hobby two channel AM radio.

SERVO 12.2006 31
CombatZone.qxd 11/9/2006 9:58 AM Page 32

ly limited and has a lot of better FM radios have what is called from noise than PPM. The best way
interference. It should never be PCM which is a digital system. The to find out the type of radio that
used on a bot that has a weapon. FM-PPM radio can also have PCM. would work best for you is to talk to
FM radios are better than AM — The difference between the two is in other combat robot builders. With a
your radio will have less interference. how the signal is encoded. PCM good radio choice in the beginning,
The middle range FM radios are PPM signals are encoded digitally and you will definitely be able to use it in
which is an analog system. The give a higher degree of immunity more than one robot. SV

PRODUCT REVIEW — DuraTrax IntelliPeak


AC/DC Mini Pulse Charger
● by Kevin Berry

T his was the first charger I


bought after I got into the
sport, at the recommendation of a
provides seven amps. This has come
in handy, both as a quickie bench
supply, and the provided alligator
I can recommend this as a good
starter setup if you can buy it used
or on eBay. If you are buying new,
mentor who came up through the clips from the charger itself lets me there are many options in this price
R/C car racing side of things. Priced charge packs from a small sealed range, so keep in mind that a lot of
new at $64.99, I picked it up on lead acid battery in the van on the comparison shopping might be
eBay for about $35. I’ve found it to way to events. needed. SV
be a very dependable, basic charger The Mini Pulse can charge up to
that’s handled my NiMH and NiCad three amps for up to eight NiMH
charging needs very well. cells. NiCads can be charged at up
The model DTX4110 Mini Pulse to 4.5 amps. There is a two-amp
charger comes with a handy, constant discharge function which,
detachable, 12V power supply that to be honest, I’ve never used since
my packs get
discharged in
driving practice
or competition.

EVENTS
UPCOMING — December
and January

C omBots Cup 2007 — This event will take place on


1/14-15/2007 in Oakland, CA. There is a $10,000
Heavyweight prize and a $3,000 Middleweight prize.
Visit www.robo
games.net for
more details.

B ay Area Robot
Fights — This event
will take place on
1/27/2007 in St.
Petersburg, FL. It is the
fourth event in this
annual series — a conventional insect battle run by some
very unconventional people. Fun for the whole family.
This event data is tentative at time of publication. SV

32 SERVO 12.2006
Bergeron.qxd 11/9/2006 10:03 AM Page 33

CollaborativeROBOTICS
The normal course of human social and cognitive development begins
with total dependence at birth and progresses to the semi-autonomy of
adolescence. Most successful adults advance to a stage of collaborative
interdependence that acknowledges the benefits of working with others
toward a common goal. This social evolution is reflected in robotics,
where there is increased interest in developing robots that can not only
work with each other, but work collaboratively with humans.

b y B r y a n B e r g e r o n

T he promise of collaborative robot-


ics is a new breed of machines that
are freed from the role of obedient
collaborator in authority. Collaboration
is often fostered if collaborators can
predict or anticipate the needs of other
[1]. The goal of the organization is to
develop a team of fully autonomous
humanoid robots that can win against
automaton or tele-robot in need of collaborators, either by task assign- the human world soccer championship
constant supervision. Instead, they can ment or through experiential learning. team by 2050.
engage in a dialogue with humans, ask Collaboration isn’t necessarily a Developments in the more
and answer questions, and resolve good thing or even desirable in every challenging frontier of human-robot
differences in order to achieve shared situation — there are instances where a collaboration are represented by
goals. As a result, humans are free to single, autonomous individual of action NASA’s Robonaut [2] and, to a lesser
focus on more important tasks, only is preferable to a committee of indeci- extent, DARPA’s BigDog [3]. Robonaut
occasionally interrupted by robots in sive decision makers. However, there is NASA’s attempt to create a robotic
need of assistance to compensate for are numerous examples of situations in astronaut capable of working side-by-
their limited autonomy. which efficiency and effectiveness side with astronauts in the International
In practice, creating robots capable gains can be realized through collabo- Space Station. DARPA’s BigDog — a
of collaborating with humans is no ration, such as hunting in a pack, team robotic replacement for pack animals
mean feat. For example, not only must sports, warfare, and firefighting. that is capable of carrying a 100-pound
a collaborative robot have the ability to The most publicized example of payload over rugged terrain — shares
act autonomously, but it must be able robot-robot collaboration is the annual characteristics of both traditional ‘slave’
to modulate the level of autonomy to RoboCup competition, which is an robots and collaborative robots.
suit the situation. Furthermore, there is international proving ground for collab- Collaborative robots typically rely
the human element to consider. It will orative robotics and related AI topics on multiple, powerful computer
take time for people to accept the idea
of working with — or even for — a robot.
FIGURE 1. Two autonomous robots with a
This article introduces collaborative common goal of acquiring a ball. A lack
robotics and discusses several key of communications and an established
implementation challenges that read- hierarchy results in interference.
ers should consider as they explore this
frontier of robotics

Collaboration
A working definition of collabora-
tion incorporates the concept of two or
more entities working together to
achieve a shared goal more efficiently
and/or effectively than would be possi-
ble by working independently. A com-
mon feature of collaboration includes
either explicit or implied rank or status
and a corresponding deference to the
SERVO 12.2006 33
Bergeron.qxd 11/9/2006 10:04 AM Page 34

heavy, power-hungry, and costly sen-


sors, while the retriever can be outfit-
ted with fewer and less costly sensors.
Role assignment, while seemingly
straightforward, has a number of
dependencies. The first is task
decomposition which, in turn, defines
necessary robot competencies. A robot
tasked with scouting for possible tar-
gets may spend most of its time roam-
ing, following walls, entering doorways,
and perhaps periodically notifying the
other robot of its position. The most
important scout robot competencies
are related to spotting targets from a
significant distance, mapping the area,
and communicating the target coordi-
nates — and perhaps even the most
FIGURE 2. efficient route — to the retriever.
Simplified In contrast, the retriever might
robot profile spend most of its time in an energy-
(not to scale).
saving mode, awaiting a signal from
the scout before activating its drive sys-
processors and algorithms. Even so, yellow dome detects the ball at about tem and navigation sensors. Its primary
biological organisms suggest that the same time, but it has a more ardu- competencies involve receiving and
heavy iron isn’t a prerequisite for robot ous task to get into position. It moves interpreting communications from the
collaboration. Ants, bees, and many through the doorway and heads toward scout, following the suggested path to
other insects rely on distributed or the target. However, neither rapidly- the target from its current location,
swarm intelligence to accomplish moving robot is adequately equipped and efficiently acquiring the target.
collaborative feats that researchers with sensors or programming to sense The competencies of both robots
have only begun to approximate [4]. the other robot in time. The result is a must be supported by the appropriate
collision that may damage both robots. sensors, effectors, hardware platform,
Robot-Robot How could the collision have been and operating system. Borrowing a
Collaboration avoided? More importantly, how can the technique from game development, it’s
robots work collaboratively to acquire helpful to create a robot profile for
The simplest form of collaborative balls as effectively as possible? One solu- each robot, as in Figure 2. The profile
robotics is collaboration among two tion is communications. Given adequate should contain graphical and tabular
robots. However, achieving a true collab- robot-robot communications, the first data on sensor range and function and
orative relationship is far from simple. To robot to locate a ball can signal the other basic physical capabilities of each robot.
appreciate the challenge of designing a robot that it is preparing to capture the In this simplified profile, the robot is a
pair of robots capable of collaborating ball. The second robot would then be modest wheeled robot, relatively low to
on a straightforward task, consider the free to search for other balls and avoid the ground, and equipped with an
interaction depicted in Figure 1. Each interfering with the first robot. This very omni-camera, IR laser rangefinder, as
robot is equipped with a typical suite of loose collaboration consists primarily of well as discrete US and IR sensors.
autonomous features, including the robots staying out of each other’s way.
ability to avoid obstacles, locate objects Another solution involves enhanc- Tight Collaboration
by color or shape, manage energy ing the sensors so that robots can
stores, and navigate. Furthermore, each detect each other from a significant In the previous example of a loose
robot is programmed to roam and distance and establishing one robot collaboration, robots needn’t ever
acquire balls that come into sensor as the ‘alpha’ robot. Given potential come in close proximity to each other,
range. That is, they have an identical — competition over a target, the second except by accident. In contrast, with
but not shared — goal. robot defers to the alpha robot. tight collaboration, robots work interac-
Returning to Figure 1, assume the Collaboration can also be enabled tively to achieve a shared goal. Consider
robot with the green dome is first to by assigning different roles to each the scenario depicted in Figure 3, in
detect the ball. It establishes a direct robot. For example, one robot is which a pair of robots collaborate in
path to the target and, as it approach- assigned the role of scout, and the hunting down a human player in a
es, it monitors the robot-wall distance other the role of retriever. Role assign- game of laser tag. The shared goal is to
and robot-ball distance with ultrasonic ment often has an associated cost ben- pursue, trap, and neutralize the human
and IR sensors. The robot with the efit. In this case, the scout can carry the shooter while avoiding being tagged.
34 SERVO 12.2006
Bergeron.qxd 11/9/2006 10:05 AM Page 35

As demonstrated by say, the pursuit FIGURE 3. Snapshot


of a deer by a pair of wolves, collabora- of collaborative team
sensor coverage
tive pursuit is a complex, carefully profile. To reach the
choreographed interaction in which the target, robots must
smallest mistake on the part of the pred- pass into the room
through a doorway.
ator can shift the advantage to the prey.
Whereas a single predator may approach
its prey from behind and at a slight angle
to encourage the prey to follow an
inefficient arc in an attempt to escape,
two predators have many more options.
One predator can wait in ambush, while
the other predator maneuvers the prey
into position. Alternatively, one predator
can distract the prey while the other
predator takes up a superior position.
The two predators could opt to simply
surprise and confuse the prey by appear-
ing at the same instant.
In each case, the coordinated
behaviors require planning, communi-
cations, and the ability to predict not
only how the prey will respond to a
threat, but how the collaborating robot
will respond to changes in prey behav-
ior. Prediction is an important capabili-
ty, and one not easily satisfied without
an internal model of how collaborating
robots will react to potentially novel
situations. Predicting human prey
behavior is particularly challenging. Human-Robot years limited to the realm of science
In a tight collaboration scenario, Collaboration fiction — is the real frontier of robotics. In
the robot profiles are crucial for under- addition to the capabilities required for
standing the interplay of the robot Human-robot collaboration — for robot-robot collaboration, the human
sensors with the environment, the
target, and the sensor signals from
collaborating robots. For example, the
two robots approaching the entrance
of a room holding the hostile in Figure
3 are painting each other with ultra-
sound and IR signals. Even though the
ranging distance might be limited to a
meter or two, the transmitted IR and US
signals travel hundreds of meters and
reflect off of walls and other structures.
The result is an increase in the noise
floor, which appears as random varia-
tion in distance measures. Furthermore,
if the ultrasound sensors are receptive
to reflected signals, a sensor on one
robot can be triggered by the direct
or reflected signal from another
transducer. As the number of robots
increases, so does the noise and risk of
sensor saturation and false triggering.
FIGURE 4. Human-robot collaboration
in a game of laser tag involving
coordinated entry into a room with
a hostile (blue shirt).

SERVO 12.2006 35
Bergeron.qxd 11/9/2006 10:05 AM Page 36

FIGURE 5. Velocity one of two other robots. Furthermore,


 plot associated with
+XPDQ
a collaborative communications can be broadcast to
5RERW
human-robot team the other two robots or, given the
5RERW
walking in formation proper communications equipment, a
 toward a target. robot can be singled out to receive a
private message. Robots must also con-
9HORFLW\PV

tend with the noise and interference



from three robots in close proximity
generating audio, RF, US, and IR noise.

Let’s explore the challenge of
walking in formation toward the room
entrance. An autonomous robot simply
 contends with following the wall, identi-
       
6HFRQGV fying the entrance, and turning into the
doorway as soon as the edge of the
entrance is recognized. Moving in for-
mation requires a new set of behaviors
and competencies related to leading,
following, robot-robot and robot-human
spacing, and velocity modulation.
As shown in Figure 5, one scenario
element demands new ways of thinking autonomous robots. As in two-robot is for the team leader — in this case, a
about robots and of human relationships. collaboration, role assignment, task human — to initiate the approach. The
Figure 4 depicts a scenario in decomposition, and modeling collabora- first robot (green dome) reacts to this
which a team of three robots and one tor and prey responses are critical. movement by accelerating toward the
human (white shirt) are playing a game Simply adding a third robot to the leader, and the second robot (red
of laser tag against another human team increases complexity exponential- dome) similarly reacts to the move-
(blue shirt). At first glance, neutralizing ly. For example, consider what’s ment of the first robot. However,
the outnumbered hostile is simply a involved in expanding intra-team depending on the acceleration charac-
matter of entering the room, identify- communications from two to three teristics of the human and robots,
ing the hostile, and firing. robots. With two collaborating robots, response time of sensors, and target
However, on closer examination, there is no need for a robot to identify spacing, the formation can move in
not only is entering the room without itself or the intended recipient of a unison, like an oscillating slinky, or the
creating a pileup in the doorway a high- message. With three robots, there is first robot could ram into the ankle
ly complex maneuver, but simply assem- message ambiguity without a means of of the lead human and the second
bling in an orderly fashion outside the identifying the source of each message robot follow up by crashing into the
door is beyond the capabilities of most because messages can be generated by first robot.
The velocity plot shown in Figure 5
illustrates a responsive first robot that
FIGURE 6. 2D IR laser
rangefinder plot tracks human velocity with a lag of
of a person standing about one second. It both over-and
in an open doorway, under-shoots the human’s velocity. The
similar to the scenario second robot responds poorly to the
in Figure 4. Created
with a Hokuyo URG- first robot’s movements, and has
04LX mounted on a difficulty maintaining a constant
robot about 15 cm robot-robot distance. The solution
above ground level.
might involve equipping the second
robot with a more capable quad
encoder and PID configuration and
perhaps replacing brushed motors with
a more predictable brushless design.
Designing robots capable of
supporting human-robot collaboration
is especially challenging when the team
is intended to interact with humans. A
human target in the laser tag game
introduces the concept of friend versus
foe recognition. The first step is to
identify the humans in a room. This
36 SERVO 12.2006
Bergeron.qxd 11/9/2006 10:05 AM Page 37

www.orteches.com www.orteches.com www.orteches.com www.orteches.com www.orteches.com www.orteches.com

www.orteches.com www.orteches.com www.orteches.com www.orteches.com www.orteches.com www.orteches.com


www.orteches.com www.orteches.com www.orteches.com www.orteches.com www.orteches.com www.orteches.com
N EW ! ELEXOL
may require reinterpreting, augment-
ing, or completely replacing sensors.
For example, the IR laser used to
Ether I/O 24
UDP/IP controlled digital input/output module featuring three 8-bit ports with 5V level
identify the human target in the robot- signal lines. Each of the 24 lines can be independently programmed as either an input
robot collaboration example (Figure 3) or an output. Connects to any TCP/IP protocol network.
is inadequate for differentiating • Supports ARP, BOOTP, DHCP, ICMP and UDP/IP protocols
between the human team member • Standard 10BaseT Ethernet Interface; RJ45 connector
and the human hostile. • 24 independently programmable signal lines with configurable CMOS,
TTL or Schmitt Trigger thresholds and programmable pull-ups per line
As shown in Figure 6, a human
• Easy connection by three 10-way box headers
friend or foe facing a relatively short • On-board 50MIPS flash micro-controller may be reprogrammed to suit
robot equipped with an IR laser specific applications
rangefinder appears as two shadows — • Integrated switch-mode voltage regulator allows power supplies from
8-32VDC
one for each leg. It’s even more chal- • User 5V 500mA output to power external interface boards or sensors
lenging to identify a human standing • Compact module – 72 x 72 x 24mm
perpendicular to the robot, since the
Great range of I/O-24 peripherals, too...
legs produce only a single shadow. In
either case, differentiating friend from
foe based on leg shadows alone isn’t
possible. One solution is to configure
the omnidirectional camera to recog- CONNECTOR/LED BOARD OPTO INPUT BOARD RELAY OUPUT BOARD SWITCH/PUSH
nize colors, assuming the hostile Provides screw terminal Provides 8 Opto isolated Provides 8 isolated relay BUTTON BOARD
connections plus optional either inputs for each of the I/O-24 contact outputs suitable for a Provides 8 switch/push buttons
and team member consistently wear pull up or pull down resistors and pins with LED indications. variety of loads. with LED indicators showing the
LED port status indication.
blue and white shirts. Fusing the IR status of the I/O pin.

laser rangefinder and color data could Visit our website www.orteches.com
provide a more accurate indication of Ortech Education Systems
friend and foe position. 1119 - 9th Ave. S. • Moorhead, MN 56560
Another challenging task is track- 218.287.1379
ing the lead human in the initial lineup www.orteches.com www.orteches.com www.orteches.com www.orteches.com www.orteches.com www.orteches.com
prior to entering the room with the
hostile. The laser rangefinder used to
create Figure 6 provides a 240 degree robotic surgical assistants now routine- every robot. For now, collaborative
field-of-view, updated at 10 Hz. While ly assist surgeons performing prostate robotics is a practical goal that is well
this refresh rate may be sufficient for surgery in hospitals throughout the US. within the reach of every enthusiast
mapping purposes, it is inadequate for The caveat is that the relationship is the willing to take up the challenge. SV
tracking the rapidly moving feet of the typical master-slave relationship of old
lead human, especially if the human — which makes sense, given that
stops or turns unexpectedly. surgeons aren’t likely to invest in
REFERENCES
There is also the issue of team technology intended to replace them — [1] Nardi, D., M. Riedmiller, et al., eds.
communications. Candidates for a fear highlighted by Ellison’s classic RobCup 2004: Robot Soccer World Cup
VIII. 2005, Springer: New York.
human-robot communications range short story Wanted in Surgery [5].
from a simple, multi-button RF signal- This fear of robots empowered [2] Ambrose, R. Robonaut. 2006 [cited
ing device to more computationally with collaborative leadership qualities is 2006 June 13]; Available from: vesu
intensive gesture or voice recognition. being addressed head-on by research in vius.jsc.nasa.gov/er_er/html/robonaut
Performance constraints are also the area of sociable robotics. Although /robonaut.html.
critical in human-robot collaboration. limited to research experiments,
[3] Hambling, D. Robotic ‘pack mule’
Although the relationship will eventual- sociable robots have demonstrated the
displays stunning reflexes. 2006 [cited
ly evolve, current performance value of robots that can understand 2006 May 15]; Available from: www.new
standards are imposed by humans. A and relate to humans in a personal scientist.com/article.ns?id=dn8802.
human can travel and respond faster to way.
visual cues than any commercial robot. One of the best known sociable [4] Tarasewich, P. and P. McMullen,
In an operation such as depicted in robots — MIT’s Kismet [6] — illustrates Swarm intelligence. Communications of
Figure 4, the robots limit the pace of the limitation of current technology. the ACM, 2002. 45(8): p. 62-7.
the operation. Kismet is more animatronic than
[5] Ellison, H., Wanted in Surgery, in If.
robotic, in part because it relies on a 1957, Quinn Publishing Company:
From Here network of 15 PCs to enable it to exhib- Buffalo, NY. Audio version available on
it a modicum of social intelligence. In Audible.com.
Collaborative robotics is beginning time, multi-core parallel processing and
to appear in military and even some new algorithms will bring socially [6] Breazeal, C., Designing Sociable
commercial offerings. For example, intelligent, collaborative behaviors to Robots. 2002: MIT Press.

SERVO 12.2006 37
Full Page.qxd 11/13/2006 11:45 AM Page 38

38 SERVO 12.2005
Page39.qxd 11/13/2006 11:43 AM Page 39

Extreme Robot Speed Control!


6 14V - 50V
6 Dual 80A H-bridges 150A+ Peak!
6 Adjustable current limiting
6 Adjustable speed slew rate
6 Temperature limiting
6 Three R/C inputs - serial option
6 Many mixing options
6 Flipped Bot Input
6 Rugged extruded Aluminum case
6 4.25" x 3.23" x 1.1” - Only 365g
$399

$29.99 $79.99 $119.99


Scorpion Mini Scorpion HX Scorpion XL
6 2.5A (6A pk) H-bridge 6 Dual 2.5A (6A pk) H-bridges
6 6 Dual 13A H-bridge 45A Peak!
5V - 18V 6 Plus 12A fwd-only channel
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”
6 6 Three R/C inputs - serial option
Optional screw term. 6 Four R/C inputs
6 6 Mixing, Flipped Bot Input
Only 5.5g 6 Mixing, Flipped Bot Input
6 Only 28g
6 Only 22g

OSMC - Monster Power H-bridge


6 14V - 50V and 160A over 400A peak!
$199 6 3.15“ x 4.5” x 1.5”
6 Control with Stamp or other Micro
6 3 wire interface
6 R/C interface available

MADE IN
All Robot Power electronic
products are proudly
THE USA

Introducing Dalf
Advanced dual motor
drive with closed-loop
STEER WINNING ROBOTS control functions

WITHOUT SERVOS! Only $250


Embedded Electronics, LLC along with our exclusive reseller Robot Power are
proud to introduce a feature rich, customizable Dual Motor Controller: Dalf.
Designed to work out of the box or to host your application specific code; Dalf
makes it simple to create a complete turn-key “brain” for your application with
full-closed-loop motion control. Just take a look at these features!
Motion Control Functions Application Support
Drives all sign-magnitude brushed DC motor 6 PIC18F6722 CPU running at 40MHz
drives such as the OSMC 6 60k+ FLASH available
6 Serial bootloader, no programmer needed
Closed-Loop Features 6 Serial command/monitor in both terminal
6 Closed-loop control of two motors and high-speed binary API mode
6 Full PID position loop 6 I2C slave command interface
6 Trapezoidal path generator 6 Firmware implented in C andASM
6 Adjustable slew rate for smooth transitions 6 C source for main loop and utility routines
6 Non-volatile storage of PID parameters provided free
6 Step-Response PID motor tuning support 6 Linkable device driver function library

P
6 Quadrature encoder support for each motor provided for building custom applications
erform proportional speed, direction, and steering with 6 Terminal mode for interactive tuning and 6 Extensive documentation with Owner’s
only two Radio/Control channels for vehicles using two debugging
6 Windows GUI under development
Manual and Getting Started Manual
provided on CD
separate brush-type electric motors mounted right and left Open-Loop Features
6 Custom code development services
with our mixing RDFR dual speed control. Used in many 6 Two R/C command modes (3 input
available (contact EE)

successful competitive robots. Single joystick operation: up channels)


6 Two open-loop pot control modes
I/O Connections
goes straight ahead, down is reverse. Pure right or left twirls 6 Interactive terminal control of motors 6 Two RS-232 serial ports
6 36 GPIO
6 Adjustable slew rate
vehicle as motors turn opposite directions. In between stick 6 I2C master and slave ports (2 ports)
6 Two motor drive outputs
positions completely proportional. Plugs in like a servo to 6 Two quadrature encoder inputs
For more Dalf information visit
your Futaba, JR, Hitec, or similar radio. Compatible with gyro 6 Two Hall-effect current sensors inputs
www.embeddedelectronics.net 6 Six 10-bit A/D
steering stabilization. Various volt and amp sizes available. 6 Two channels of cooling fan control
6 Standard ICD connector
The RDFR47E 55V 75A per motor unit pictured above.
www.vantec.com Also from Robot Power
Kits, parts, schematics
Order at Planetary gearmotors
www.robotpower.com
(888) 929-5055 Phone: 253-843-2504  sales@robotpower.com

SERVO 12.2006 39
Hong-edited.qxd 11/9/2006 11:01 AM Page 40

PART 1:
Concept and
General Overview
by: Karl Muecke, Patrick
Cox, and Dennis Hong
RoMeLa (Robotics & Mechanisms
Lab) at Virginia Tech;
www.me.vt.edu/romela

D
ARwIn (Dynamic Anthropomorphic Robot
with Intelligence) is a humanoid robot
capable of bipedal walking and performing
human-like motions. 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 Tech’s first entry to the
2006 Robocup competition (Figure 1). First started as a design
project for seniors in the department of mechanical engineering
at Virginia Tech, the general goal in designing DARwIn was to
create a bipedal robot with human proportions; suitable to be a research
platform capable of dynamic walking. The 600 mm tall, 4 Kg robot has
21 degrees-of-freedom (DOF) with each joint actuated by coreless DC
motors via distributed control with controllable compliance. Using a
computer vision system on the head, rate gyros in the torso, and multiple
force sensors on the foot, DARwIn will be able to implement human-like
dynamic gaits while navigating obstacles and traverse uneven terrain while
implementing complex behaviors such as playing soccer.
This three-part series will describe the design and fabrication process
for the first version of DARwIn’s hardware, highlight the salient features,

< FIGURE 1.
Robocup 2006
participants
(DARwIn not
pictured).
Photo
courtesy of
Messe
Breme www.
robocup
2006.org.

40 SERVO 12.2006
Hong-edited.qxd 11/9/2006 11:02 AM Page 41

and briefly discuss some of the > FIGURE 2. Four-legged


research issues related to creating the division of Robocup
2006. Photo courtesy of
walking gait and control algorithm for Messe Breme www.robo
the robot. cup2006.org.

Robocup 2006 motors are great for


their price, power, and
For those of you unfamiliar with size, but are only
Robocup, it is an international soccer capable of one degree-
competition between many classes of of-freedom axial rotation. Even with pick up our foot and walk forward,
robots, including a four-legged league this limitation, three motors arranged we actually fall forward and catch
(Figure 2) and a humanoid league so that all three axes always intersect ourselves as we step.
(Figure 1). By 2050, the organizers of at a single point are kinematically Unlike humans, most bi-pedal
Robocup hope to have fostered a team equivalent to a true spherical joint robots walk using the static stability
of humanoid robots that can defeat (Figure 3). In this configuration, the criterion, which always keeps the COM
the human World Cup champions in robot’s joints are kinematically identical over the support polygon — the area
soccer (www.robocup.org)! to a human’s ball and socket joint. formed by connecting all of the outer
The challenges in the last Why have a spherical joint? If all of most points of the robot (usually the
humanoid league Robocup were: a the axes did not intersect at the same foot/feet) in contact with the ground.
two-on-two soccer game, a penalty point, the offsets would cause the link The robot stands on one foot and
shootout, uneven terrain navigation, to change its effective length as the moves the other while keeping the
passing, and dribbling. There are two joints move. For example, in the case of COM over the grounded foot by
divisions within the humanoid league: the hip joint, certain rotations of joints constantly adjusting its posture. When
teen size and kid size. The size is could cause the overall length of the both feet are on the ground, the robot
defined as the smallest number leg to increase or decrease. In “general can shift its COM over the forward
between the robot’s height to the top robotics,” this is normally handled foot. The robot repeats this process for
of its head and 2.2 times the center of easily by the forward and inverse each step. We hope to have DARwIn
mass height: kinematic equations. walk as humans do — dynamically.
However, for a dynamic walking Dynamic walking is generally a faster
H = min (HTop,2.2 x HCOM) robot where the inertial forces of the and much more efficient mode of
moving links have a great effect on walking. However, implementing a
For 30 cm ≤ H ≤ 60 cm, the robot the overall motion and stability of the dynamic gait with a bipedal robot is
is kid size and for 65 cm ≤ H < 180 cm, robot, having kinematically spherical no easy task.
the robot is teen size. We plan to have joints not only allows for
DARwIn compete in the kid size simpler kinematic modeling,
competition of the humanoid league of but also significantly simplifies
Robocup and be the first US team to the dynamics and control,
even compete in the humanoid division which is essential for the
of Robocup. onboard computer to process
in real time.
Imitating a Ball
and Socket Joint Dynamic vs.
Static Walking
Since the design and construction
of humanoid robots is still in its infancy, In addition to imitating the
a robot with superior structural and structural design of humans, we
kinematic design, even with moderate are also looking into how
AI, would prove to be a very formida- humans walk. Humans walk in a
ble opponent in Robocup. With this in dynamic fashion, a state of
mind, we designed a feature rarely constant falling, where our
seen in humanoid robots — kinemati- center of mass (COM) is not
cally spherical joints. A human’s always over our foot. When we
shoulder and hip (among other joints)
are ball and socket joints, which allows > FIGURE 3. Close view of hips with
for three degrees of freedom in lines through axes of rotation to
show that they all intersect at the
rotation about a single point. Servo same point for both hips.
SERVO 12.2006 41
Hong-edited.qxd 11/10/2006 12:06 AM Page 42

< FIGURE 4. Screen shots of the in-house


developed code for LabVIEW (top) and
C++ software.
record and playback motion and has
an OpenGL model of the robot, which
is a 3-D representation of the robot
on the laptop screen shown in real
time. Using LabVIEW for the software
makes it very easy to program and
implement various control strategies
due to its easy interface and graphical
programming approach. However,
LabVIEW’s overhead for the computer
is high.
On the other hand, using C++
code for the software makes it much
CM-2 Board, C++, and motions and playing them back to more efficient, but the lengthy devel-
LabVIEW generate the walking gait, but
seriously lacked computing power and
opment time and steep learning curve
could be problematic for beginners.
The method of controlling memory space to implement real-time Both programs use the syntax provided
DARwIn’s walking and sensing has control. To enable DARwIn to walk in the motor’s documentation to poll
gone through a few iterations. Initially, dynamically, the computation require- all of the motor’s positions. The
DARwIn used Robotis Co.’s CM-2 ments became higher for processing positions are stored and based on a
controller board to control the DX-117 all the input from various sensors and speed or time step; the velocity for
motors, from the same company. The implementing complex algorithms. each motor can be calculated as
DX-117 motors are special servo Thus, we developed our programs
motors that use Maxon’s efficient using both C++ and LabVIEW (Figure V(k) =(Position(k+1)-Position(k))/Ts
Re-Max DC motors and a RS-485 serial 3) running on a laptop tethered
network for distributed control. We will to DARwIn. Using the velocities calculated and
describe more about the use of these In the next version of DARwIn, an the positions stored, the program
motors in our next article. onboard PC/104 single board sends all of the motors position and
The CM-2 board, which uses an computer will replace the laptop with velocity information so that all of
Atmel ATMega 128 microcontroller, the tether. Currently, each platform the motors move to position(k+1) at
was great for prerecording the robot’s performs successful walking using velocity(k), and then repeats the
process after time step Ts. Our current
version of the software does not
implement acceleration control.

Zero Moment Point


DARwIn needs a more powerful
hardware platform than the CM-2
board because it needs to solve many
equations in order to determine the
location of the zero moment point
(ZMP). The ZMP is where all of the
moments in a body sum to zero. It can
be calculated by

∑ m (− &x&z + (&z& + g ) x ) − J
i i i i i θ&&
iy iy
xZMP = i

∑ m (&z& + g )
i
i i

where mi is the mass of each link of

< FIGURE 5. Diagram of a bipedal robot.

42 SERVO 12.2006
Hong-edited.qxd 11/9/2006 11:03 AM Page 43

Industrial
> FIGURE 6. Diagram showing the ZMP at
reaction point P.
the robot; xi is the x position of the
Strength
COM of each link; zi is the z position
of the COM of each link; g is gravity;
Jiy is the moment of inertia about
Motor Control
the y axis of the COM of each link;
and θi is the angular position of each
link in Figure 5. When at least one leg
for All
is in contact with the ground, the AX2550
ZMP exists at the Center of Pressure AX2850
(COP) seen in Figure 6. By keeping
the ZMP within the support polygon
of the robot, we can maintain
stability with the COM outside of
AX1500
the support polygon and allow for
dynamic walking.

Moment of Inertia
One of the trickiest parts of
developing a bipedal robot that can
walk dynamically is determining the can determine the MOI of each part. AX3500
moment of inertia (MOI) of each link
of the robot. One of the terms in Next Month ... Get the DC Motor Controllers
the ZMP equation is J, or the MOI of that are at the heart of many of today’s
the link. This value is needed to You’ve seen DARwIn’s kinemati- world’s most demanding Industrial,
calculate the ZMP, which is critical in cally spherical joints, higher-level Military and Research Robots, and other
achieving stable dynamic walking of control approaches, and some theory innovative Motion Control applications.
the robot. To determine the value of for dynamic walking that will be
MOI, we built a device that allows us used. Next month, you will see how - RS232, RC, or Analog input
to calculate the MOI of each link we built DARwIn, including details - Speed or Position Mode
(Figure 7). on motors, wiring, parts, force - Dual channel output up to 140A
The device consists of a sturdy sensors, and the fabrication process. - Optical Encoder Inputs
stand, three equal lengths of Read next month’s article to find out - Intelligent Current Limiting
string/cord, and a strong lightweight how you can build your own bipedal - Thermally Protected
- Field Upgradable Firmware
platform to place the part on. By robot. SV
- Enclosed and Board-Level versions
placing the part on the plat- - and many more advanced features ...
form, the period of oscillation
of the device changes accord-
ing to what the MOI of the Model Amps Features Price
part is. So, by measuring the AX1500 2x30A B $275
new period of oscillation, we AX3500 2x60A O-R-B $395
AX2550 2x120A A $495
AX2550HE 2x140A A $645
Thank Yous AX2850 2x120A O-A $620
Thanks to the 2005-2006 AX2850HE 2x140A O-A $770
senior design team members A=Aluminum Extrusion, B=Board-Level, O=Optical Encoder In,
R= RC outputs. Qty1 price. Contact us for OEM Qty prices
that built DARwIn 1.0
(Patrick Cox, Joo Gil, Chris
Greenway, Jeff Kanetzky, Karl
Muecke, Patrick Mulliken,
Raghav Sampath, and Daniel
Zokaites) and to our advisor, 8180 E.Del Plomo Dr.
Prof. Dennis Hong. Scottsdale AZ USA 85258
(602) 617-3931 - info@roboteq.com
> FIGURE 7. Picture of test setup
to measure moment of inertia. www.roboteq.com
SERVO 12.2006 43
Simpson.qxd 11/9/2006 7:24 PM Page 44

Interface
Your PC to
an R/C Radio
by Michael Simpson

Recently, I built a couple of projects where I interfaced a PlayStation controller to a


microcontroller. While this works fine in many situations, there are times when you want
to use an R/C radio for its extended range or reliability. In this article, we are going to
create a very accurate and reliable interface to any R/C radio with up to six channels.
To perform this interface, we will create a coprocessor using a microcontroller. Once
complete, we can then connect other devices or even a PC to this interface.

THE RC RADIO troller uses to determine its position or to six channels.


speed. On average, the pulse will range 2) Must cover the pulse range from 1,000
An R/C receiver has multiple from 1,000 to 2,000 microseconds. µS to 2, 000 µS at a resolution of 10 µS.
connectors that allow you to connect The neutral or center position is at, or 3) The interface must support the PC and
to servos or speed controllers. Each of close to, 1,500 microseconds. microcontrollers.
these connectors has three leads. Two As you change the positions of the
of the leads provide power and the joysticks or knobs on the transmitter, Since the pulse repeats once every
third is a signal lead. The signal lead the pulse width will change in propor- 20 milliseconds, you will never be able to
provides a positive pulse once every tion to the amount of movement. When measure the pulses any faster than that.
20 milliseconds. It is the width of it’s all said and done, it is these pulse If we take the time to measure each
this pulse that each servo or speed con- widths that we are going to measure pulse independently one after another,
with our interface. it would take as long as 120 milliseconds
to measure six pulses. This is much too
THE slow. What we have to do is measure all
OBJECTIVE the pulses at once. We need a real fast
chip to do this. This is where the DiosPro
When I started comes in. In order to obtain the resolu-
the interface proj- tion we need for six channels, we need
ect, I came up with to use assembly language. The DiosPRo
a list of objectives: chip supports inline assembly language
with the KRAssembler.
1) Must support one The DiosPro chip also has a built-in
UART so we can
FOR YOUR INFO add a serial inter-
face that just about
Zeus is a simple Windows program-
any chip, device, or
ming environment that specializes in
interface design. A free version of the PC can talk to.
software called ZeusLite is available at Figure 1 shows
www.KRMicros.com. The actual compiled the minimum chip
applications are also provided for those configuration in
Figure 1 who don’t want to play with the code. order to measure
44 SERVO 12.2006
Simpson.qxd 11/9/2006 12:03 PM Page 45

Figure 3

Figure 2 Figure 4

the pulses. To program the chip, you will We use a couple of high-level Dios Note that even if we are only
also need to connect an EZRS232 driver. commands to set things up then measuring one port we still cycle
This driver can also be used to convert the jump into the KRAssembler with the through all six. This keeps the numbers
serial TTL levels for connection to a PC. startasm command. and timing consistent.
Take a look at Figure 2. Here, I The bulk of the program takes The baud rate is set to 115200,
have piggybacked a small four-channel place within a very tight and controlled 8N1. A slower baud rate can be used if
receiver and the whole thing weighs loop. During each iteration, we test you plan on connecting a microcontroller
less than 20 g. While our final goal is to each of the six ports and if it is high, that does not support speeds that high.
create the smallest payload possible, I we increment a counter. Once a chan- To load the firmware into the
recommend starting your interface with nel goes high, we set a corresponding DiosPro chip, you have two choices.
a larger board to allow easier prototyp- bit in the flag variable called f0. You can use the free Dios compiler soft-
ing and perfecting of your program. During the loop, we take a peek at ware available on the Kronos Robotics
The Dios Workboard Deluxe the UART to see if any data has been website or you can use the ZeusPro
shown in Figure 3 is a perfect way to loaded. If it has, it is quickly removed software to program the precompiled
prototype this project. It contains a and loaded into the tcmd variable ZPU file. You will need an RS-232 driver
built-in regulator and RS-232 interface. which we will use later. This small peek or a Dios Workboard, as well.
The built-in interface can be used to is carefully timed so that the same
program the DiosPro, as well as to amount of time is spent whether we CONNECTING THE RC
provide an interface to the PC. If you receive data on the UART or not. RECEIVER
have a sizable junk box, you may want Once the UART is checked, the
to build your own Dios Workboard. For program then checks the flag variable f0 The connections from the Dios chip
that I have made the PCB available as to see if all the pulses on the indicated to the RC receiver will make or break your
well. (See Sources sidebar.) channels have been measured. If all the project. The following is the most reliable
channels have been measured, we check method I have found in doing this.
THE FIRMWARE to see if the tcmd variable contains a You will need several three-pin
value of 128. If one was made, we jump headers — one for each channel. These
The program that we program into a to the appropriate routine to transmit are created by snapping (cutting) off
microcontroller is often called firmware. the indicated measurements. We then the appropriate number of pins from a
The firmware for this project is called clean up and wait for all the ports to go 36-pin header, as shown in Figure 4.
RCRadio.txt. It is available — along with to a low state before we re-enter the Connect one of the end pins to a
the other source and executables — from main loop and start measuring again. length of wire. Add a bit of 1/16” heat
the Kronos Robotics website
(www.kronosrobotics.com).
Figure 6
The RCRadio.txt program gives
a range of 10 µS to 2,550 µS in 10
µS units. It will return a reading of
150 for a radio pulse of 1,500 µS.
The actual accuracy is within the 20
µS we specified earlier, with an accu-
racy of 10 µS being more typical.
Due to space considerations,
the code won’t be presented here,
but there are plenty of comments if
you want to make modifications to
Figure 5
the code.
SERVO 12.2006 45
Simpson.qxd 11/9/2006 12:04 PM Page 46

some heat shrink to that as TESTING WITH A


GOING FURTHER shown in Figure 5. You will need
one of these for each channel
MICROCONTROLLER
I wanted to take the PC test program a step
further. In the program RCRadioTestForm.txt, I dis- on the radio you are going to To test the interface with a microcon-
play the actual joystick positions as shown in Figure connect to the DiosPro. troller, I will use another Dios and a pro-
1. This program requires ZeusPro, but I have also If your receiver has a separate gram called ReadRCRadioTest.txt shown
included a compiled .exe of the program, as well.
battery connector, you will need in Program 1. The program simply opens
In the August issue of SERVO Magazine,
there was an article called FaceWalker. to attach two leads to a header as a port, sends the request command,
FaceWalker used a DiosPro to interface to a shown in Figure 6. Note than reads the six channels, and displays the
wireless Playstation controller. It would be a some receivers use BEC only and results. The output is shown in Figure 7.
very simple task to replace that interface with you must connect the power to Notice the tight loop. This is where
the one presented here. Simply replace the one of the servo connectors. Refer you would actually process the received
UART interface to one that tests port 14. to your receiver’s user manual. data and use it to control your world.
Once your connectors have You might be asking, “Why not just place
shrink as reinforcement. At the other been created, it is a simple matter to any processing in the same chip that is
end of the wire, attach a single pin connect the appropriate connector to the measuring the pulses in the first place?”
pulled from a male header, then add Dios or Dios Carrier. You will need to refer The answer is quite simple. The DiosPro
to you receiver’s manual runs at 40 MHz and at 10 MIPS, and we
to determine the appro- need almost 100% of this to accurately
PROGRAM 2 priate connector. You can measure the six pulses from the receiver.
func main() also look at one of the By offloading the processing of the
dim x as integer
servos that came with receiver data, we not only get accurate
your radio. The red wire is readings, we also divide and conquer.
x=ComOpen(1,baud=115200,port=1) +, the black wire is –, and Once the interface chip has been
print “Open Status = “;x
ComDTR(1,0) the white wire is the sig- debugged, we no longer have to worry
pause(50) nal lead for the servo. On about any of the complexities of this RC
ComSettings(1,Timeout = 1,Priority = 10) this Futaba radio shown radio interface and can concentrate sole-
‘ComBGSuspend(1,0)
here, there is a small key ly on our application. It’s the hardware
pause(50) slot for each connector. equivalent to modular programming.
‘Tell RCRadio Chip we want 6 channels The key is located next to Notice that just after we have
ComOutput(1,chr(6))
pause(50)
the signal lead. opened the port we send the command:

Loop: PROGRAM 1
getreadings() DiosPro
pause(10) func main()
goto Loop
hsersetup baud,HBAUD115200,txon,start,inwait,25
pause 50
endfunc
hserout 6 ‘Set the number of channels
pause 50
‘——————————————————
‘ Get 6 readings Loop:
‘—————————————————— getreadings()
func getreadings() pause 100
goto Loop
dim a,b,c,d,e,f,cmdidx
ComPurge(1) endfunc
doevents()
ComOutput(1,chr(128)) func getreadings()

dim a,b,c,d,e,f
cmdidx = -1 hsersetup clear
Loop: hserout 128
ComGetPacket(1,Loop,Timeout,50,cmdidx,a,b,c,d,e,f)
print a,” “,b,” “,c,” “,d,” “,e,” “,f hserin timeout,a,b,c,d,e,f
print a,” “,b,” “,c,” “,d,” “,e,” “,f
exit()
exit
TimeOut:
print “TimeOut” timeout:
exit() print “Timeout”
endfunc endfunc

46 SERVO 12.2006
Simpson.qxd 11/9/2006 12:07 PM Page 47

hserout 6
SOURCES
This tells the radio interface I have provided the part numbers for the carrier PCBs,
that we want all six channels. If you as well as the EZ232 PCB. This way, you can build your
only want two or four channels, you own kits. For a list of the parts needed to build your
will need to change this command, own kits, just download the manuals for the appropri-
as well as the hserin command. ate board. These can be found on the website.
One thing to keep in mind is
KRMicros — www.krmicros.com
that if you request six channels, you • ZeusLite:
must have six channels connected www.krmicros.com/Development/ZeusLite/
to the radio. If a requested channel ZeusLite.htm
has no data, then no data will be
Figure 7
transmitted until signal returns. For Kronos Robotics — www.kronosrobotics.com
this reason, the host program should test be used for programming • DiosPro28 Chip #16169
for a timeout. If no data is received after or as an interface. Refer to • DiosPro40 Chip #16168
20 ms, then the transmitter is off or a the Dios Workboard manu- • DiosCarrier1 #16170
• Carrier1 PCB #16151
connection is broken. als for setup instructions. • Dios Workboard Basic #16453
For the best reliability, you should The program called • Dios Workboard Deluxe #16452
tie the unused channels to Vss. RCRadioTest.txt shown in • Dios Workboard PCB #16454
Program 2 is a Zeus • 36-Pin Female Header #16291
TESTING WITH A PC program. This program will • 40-Pin Male Header #16290
work with the free version of • EZRS232 Driver #16167
In order to connect a PC or Pocket ZeusLite. Notice that this • EZRS232 PCB #16149
PC to the interface, you will need an RS- program, while not identical, • Dios Compiler:
www.kronosrobotics.com/downloads/
232 driver chip. The Dios Workboards is very similar to the Dios pro-
DiosSetup.exe
all have built-in RS-232 drivers that can gram presented earlier. SV

Wiring Robot Controller


· 43 Digital I/O Pins
· 8 Analog Inputs Grand
· 8 External Interupts Opening Sale!
· 6 PWM Channels 15% off your
· 2 Serial Ports including first order!*
Bi-Directional USB
· 128k Memory
· The Wiring Programming Language

The Wiring language provides a simplified


subset of C or C++ that hides more advanced
concepts like classes, objects, pointers (while still
making them accessible for advanced users). You get
the power of C or C++ with the ease of a language like
Basic. Programs written in Wiring are translated and
then run as C++ programs on the Wiring I/O board.
$69.95 Only $59.46 after discount!

*Use code go15percent. Offer expires 12/15/2006

1-800-979-9130
MaximumRobotics.com
SERVO 12.2006 47
Showcase.qxd 11/9/2006 11:46 PM Page 48

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....

O R D E R TO L L F R E E
1-800-826-5432
Ask for our FREE 96 page catalog

48 SERVO 12.2006
Showcase.qxd 11/9/2006 11:48 PM Page 49

8lÛCYkl›ÛCgoÛ[gklÛ
]f[g\]jkÛ^gjÛ
eglgjkÛ¬Ûk]jngk›

N`]]dNYl[`]j KD

ÝÛ <YkqÛafklYddYlagf
ÝÛ Dg\]dkÛ[gehYlaZd]Ûoal`Û=mlYZY•Û
>NJ•Û?al][Û¬Û?gZZa[gÛk]jngkÛ
Yf\ÛeYfqÛJgdYjZgla[kÛeglgjk
ÝÛ Lk]kÛklYf\Yj\Ûo`]]dk
ÝÛ ;]Y\Ûj][cgfaf_•Ûg\ge]ljq•ÛklYddÛ
\]l][lagf•Û[dgk]\¤dgghÛ[gfljgd
KD

ooofmZgla[k[ge

Robotics Showcase
7KH(VFDSH
5RERW¶VEXLOWLQ
PLFURSURFHVVRU
HQDEOHVLWWR
³WKLQN´RQLWVRZQ

G 
.65 
LUH QJ
TX UL
UH ROGH
6

7KHURERWIURJPRYHVIRUZDUG
ZKHQLWGHWHFWVVRXQGDQG
UHSHDWVVWDUW PRYHIRUZDUG !
VWRS!OHIWWXUQ!VWRS!ULJKW
WXUQ!VWRS .65 
PP:KLWH
ZDWHUFOHDU
/('9
PFG
$% 

VHFRQGYRLFHUHFRUGHUSOD\EDFN
PRGXOH7KHHOHFWUHWPLFURSKRQHLVRQWKH
ERDUG2QHEXWWRQUHFRUGVWKHRWKHUEXWWRQLV
PRPHQWDULO\SUHVVHGWRUHSOD\WKHPHVVDJH
SUHDVVHPEOHG  $ 
7KH9HOOHPDQ3HUVRQDO6FRSH
LVQRWDJUDSKLFDOPXOWLPHWHU
EXWDFRPSOHWHSRUWDEOH
RVFLOORVFRSHDWWKHVL]HDQG
FRVWRIDJRRGPXOWLPHWHU
+36 
QGV
7KRXVD
WH P VRQ
PRUHL
EVLWH
RXUZH

SERVO 12.2006 49
Peavy.qxd 11/9/2006 4:22 PM Page 50

by Camp Peavy
and Randy Hootman

A Complete Interactive Robot


T he basic concept behind the
PROTOBot is that of a solder-
less breadboard on wheels.
Any breadboard will do, but I like the
“Experimentor 350” from Global
rotation; which is a good exercise if
you haven’t done it before or if
standard servos are all you have. There
are plenty of websites that describe
this process; just Google “modify
$50, which might be cost-prohibitive
for some hobbyists.
Enter the Ameoba! The idea
behind Amoeba is to offer a complete
interactive robot kit for $75
Specialties; they’re sold through servo.” Otherwise, Parallax sells contin- that teaches basic electromechanical
RadioShack as #276-175. (A bigger uous rotation servos as #900-00008. techniques and can be upgraded to
one will allow you to add more Last year, I wrote an article for the BASIC Stamp II (BS2) or any other
sensors later.) After the solderless SERVO Magazine called “Introducing processor at a later time. The original
breadboard, the next major compo- the PROTOBot” (October ‘05). In that Stamp-based PROTOBot costs ~$125.
nent is the continuous rotation hobby article, I described how to build an The cost of the PIC-based Amoeba
servo. Hobby servos (as opposed to inexpensive Stamp-based educational is ~$50; due mainly to the price
industrial servos) are generally limited robot. I still believe the Stamp reduction of the microcontroller. The
to 180 degrees of motion; for the microcontroller from Parallax is one of advantages of the BASIC Stamp are
rest of this article, we will use the the best ways to get started in the PBASIC development environment
term “servo” to mean “hobby servo.” robotics and suitable for more is free and the Stamp is easy to
Originally, you had to modify the advanced applications, as well. program in circuit. Ease of use means
standard servo for continuous However, Stamps cost approximately fun and entertainment ... which
50 SERVO 12.2006
Peavy.qxd 11/9/2006 4:23 PM Page 51

STEP 4: Cut the servo leads to 4”


STEP 3: Carefully stick the
STEP 1: Lay the continuous rotation STEP 2: Put a square of double-stick and strip 1/4” insulation off the ends;
solderless breadboard to the two
servos back-to-back with gears foam tape towards the front and spread the wires apart. We’ll be
servos aligning the servos with the
facing outward. center of the two servos. soldering 22-gauge solid-core wire to
front edge; press firmly. the ends creating breadboard “plugs.”

STEP 5: Twist the stranded servo STEP 7: Cover the solder joints with STEP 8: You should end up with
wire around one end of the 1.5” heat shrink tubing; otherwise, the six breadboard pins: one positive,
22-gauge solid-core wire with 1/4” STEP 6: Solder the six servo leads. wires will short. If you don't have one negative, and one signal on
stripped off each end. Consider heat shrink tubing, use electrical each servo.
doing the wires one at a time. tape or duct tape.

STEP 11: Drill four small holes (1/16”)


STEP 9: Plug the servo wires into STEP 10: Prepare the wheels. for the servo horn. Use the servo
the solderless breadboard; this is Drill out a center bore to 1/4”. horn as a template; this makes it STEP 12: Attach wheel to servo
just temporary until we wire up If you don't do this, the servo much easier to thread the screw. with servo screw.
the rest of the system. screw will not fit! If you don't have a 1/16” drill bit,
the screws can be driven manually.

makes you more apt to work with it. the basic Amoeba actions takes only tape has great functionality because
The PIC, on the other hand, requires 25 lines and could be compressed there’s literally no wait time and the
an IC programmer (the EPIC program- further. Again, if you want to burn hold-strength for tabletop robots is
mer from microEngineering, for your own chips for the Amoeba, you’ll good enough.
example) and unless you’re fluent in need a programmer (EPIC ~$60). We begin this process by building
assembly language and/or C, the Amoeba kits and pre-programmed the body (Steps 1-18). First, lay the con-
software isn’t free; $90 for PICBasic PIC16F628 chips are available through tinuous rotation servos back-to-back
and $250 for PICBasic Pro. (Both are www.camppeavy.com. with the gears facing outward (Step 1).
from microEngineering Labs at www. Another Amoebic discovery ... Much of Amoeba’s construction
microengineeringlabs.com.) The double-stick foam squares (Ace involves simply soldering 22-gauge
good news is one can actually get #91644 — $3.49) designed to hang solid wire onto stranded wire thereby
an easy-to-use Basic language up to two pounds on the wall making breadboard “plugs” which
compiler for the PIC chips and (pictures, decorations, etc.). In the can then be interfaced with the
microEngineering Labs does have a previous article, I waxed poetic microcontroller.
free trial download version of PICBasic about the virtues of an adhesive Stick the protoboard to the two
Pro; the limitation is 31 lines of code. called “E60000.” I still like servos (Steps 2-3). Cut the two servo
Fortunately, the code that goes into adhesives, but foam double-stick leads to 4” and strip 1/4” insulation
SERVO 12.2006 51
Peavy.qxd 11/9/2006 4:24 PM Page 52

STEP 13: Cut the right-angle top STEP 16: Put a double-stick foam
from the PC-slot cover. You will have STEP 15: Shape the PC-slot cover square on the bottom of the
to use a pair of “dikes” (diagonal STEP 14: Trim it up so it looks nice. so it’s the proper height and angle solderless breadboard where
cutters); you may have to bend it for a tail skid. you want to mount the tail skid.
back and forth to break it.

STEP 18: Plug the servo pins into STEP 20: Solder one end of the
any of the tie-points or “holes” in the STEP 19: Cut four lengths of 6” 22-gauge solid-core wire to
STEP 17: Mount the tail skid. breadboard. The body is now ready 22-gauge solid-core wire to 6” and each terminal on the #E61
for action! At this point, you could strip 1/4” insulation from each end. snap-action switch and cover
use whatever processor you like. with heat-shrink tubing.

STEP 22: Shrink the 3” whiskers STEP 23: Cut a double-stick foam STEP 24: Carefully place one switch
over the snap-action lever. If you square in half and place it on one on top of the other facing the
STEP 21: Cut two lengths of 3/16” don't have a heat shrink gun or of the whisker-switches; be sure opposite direction so the levers
heat shrink tubing for “whiskers.” blow-dryer, you can shrink the and not allow the tape to affect go out radially like whiskers;
tubing with a soldering iron. the “snap-action.” when straight, press firmly.

off the end (Step 4). Wrap the three productivity because you are able to the old computer in the garage.
stranded wires from each servo try more things. In the original These are the “covers” that you
around the end of one 1.5” piece of PROTOBot article, we glued the servo would remove as you added in PC
22-gauge solid wire (Step 5). Solder horns; this time, we screw them in cards to the computer. To start with,
the six wires (Step 6). Cover the solder because it is quicker (#2 x 1/2” wood cut off the end of the bracket with
joints with heat shrink tubing or screws) (Step 11); but before you do the 90 degree angle (Step 13). You’ll
electrical tape (Step 7). You should that, you’ll want to drill out the center need a pair of diagonal cutters. This
end up with six breadboard “pins” 1/4” or you will not be able to put flat piece of metal can be used for the
that you can plug into the protoboard the servo screw through (Step 10). Put tail skid (Step 15). Stick the tail skid to
(Step 8). Use this technique with any the wheel on the servo and screw it the solderless breadboard with a
sensor or output device. Just solder in (Step 12). double-stick foam square like you did
22-gauge solid wire and plug it For the original PROTOBot, I used with the servos (Step 17). Shape it so
in! Plug the Amoeba’s servo pins a nice tail wheel which I still suggest it balances the robot. Now that
into its body; anywhere for now for improved mobility but it costs you’ve completed the Amoeba body
as this is a temporary place to plug it $10. For the Amoeba, we’ve gotten ... it’s time for the guts (Mwa-ha-
in until we wire up the rest of the more practical and will use a PC slot haaa!), er electronics.
system (Step 9). cover (Jameco #11754 — $1.79). You In PROTOBot, I used a tri-shaped
In prototyping, quickness results in probably have a half-dozen or so in 2.75” wide bumper made from matt
52 SERVO 12.2006
Peavy.qxd 11/9/2006 4:26 PM Page 53

STEP 27: Carefully position the 3”


STEP 26: Stick a square of double- STEP 28: Stick a 1/2” double-stick
STEP 25: Cut a jumbo craft stick stick foam tape to the front and cut craft stick to be centered and foam square on the end of the
to a length of 3”. center of the two servos. protrude 2” beyond the front of jumbo craft stick.
the servos; press firmly.

STEP 30: Place red tape on one STEP 31: Next, we’ll build the power
STEP 29: Stick the whisker array on rail and black tape on the other. cable. Cut the leads on the nine-volt STEP 32: Solder the red solid-core
the end of the craft stick and plug If you don’t have tape, a red and battery snap to 3” and cut two extension to the end of the red
the wires into the protoboard ... black marker will do the job. pieces of 1.5” solid-core wire to power lead and the black solid-core
anywhere, for now. At the least, mark the negative 1.5”; one red, one black. Strip the extension to the black power lead.
rail with a black mark. ends of the solid-core wire 1/4”.

STEP 35: Place the two 7805 voltage STEP 36: Now plug the positive
STEP 33: You’ll need to put STEP 34: Put one side of the regulators in front of the Velcro on (red) wire from your nine-volt battery
heat-shrink tubing around the adhesive Velcro perpendicular opposite sides of the breadboard’s snap into pin 1 on the right-hand
solder joint, otherwise the two and to the rear of the solderless center gap. Notice the orientation 7805. For now, plug the negative
conductors will touch and cause a breadboard. The other side will of the chips with heatsinks facing left. lead (black) into a hole two or
short circuit (not good!). adhere to the nine-volt battery. Be aware the heatsinks will get hot! three above the 7805.

board. This is actually a better design the sides (columns) which carry posi- included a brief description or you can
because it is broader, but for the tive (+) and negative (-) connections Google “solderless breadboard” to
Amoeba, we’ve chosen simplicity over and perpendicular rows of five yield numerous useful results.
functionality. I’ve simplified the design tie-points or “holes” isolated from The first thing I like to do as I set
into two 3” long whiskers. The idea is each other by a 1/16” gap. This gap is up the power system is to place red
to get you to an interactive robot as usually straddled by a DIP (Dual Inline tape on one rail and black tape on the
quickly as possible. Package) chip such as the PIC or the other. If you don’t have tape, a red and
Steps 19-29 are concerned with Stamp. One should understand black marker will do the job. At the
the whisker sensors, Steps 30-38 the solderless breadboards and electronic least, mark the negative rail with a
power system, and Steps 39-45 the diagrams as you take on the rest of black mark (Step 30).
brain. After building the body and the Amoeba project. If you’ve never Next, we’ll build the power cable.
installing the whiskers, it is time to set used a solderless breadboard, you Cut the leads on the nine-volt
up the power system. As we delve should research the subject before battery snap to 3” and cut two pieces
into the electronics of the system, proceeding as understanding the of 22-gauge solid wire to 1.5”; one red,
it is important to understand how basic layout of the solderless bread- one black. Strip the ends of the solid
solderless breadboards actually work. board is critical. wire 1/4” (Step 31). As with the
Usually protoboards have rails along The original PROTOBot article servos and whiskers, much of the
SERVO 12.2006 53
Peavy.qxd 11/9/2006 4:27 PM Page 54

STEP 38: Connect the center pins


STEP 37: Jumper pin 1 of the 7805 (pin 2) on the two 7805s, then
on the right to pin 1 of the 7805 on connect the center pin on the STEP 39: Take the PIC16F628; orient STEP 40: Plug the 4 MHz resonator
the left with a 1.5” (preferably red) 7805 on the left to your negative it with the notch up on the package. into the first three rows of the
piece of 22-gauge solid-core wire rail which we’ve marked with black Pin 1 should be up and to the left. solderless breadboard.
stripped 1/4” off each end. tape on the left side.

STEP 42: Pin 7 — 10K ohm resistor to STEP 44: Connect the two negative
STEP 41: Pin 4 — 10K ohm resistor +5 volts and one wire from the right STEP 43: Pin 10 — white wire or black wires from the servos to the
to +5 volts; pin 5 — ground snap-action switch; pin 8 — 10K ohm from left servo; pin 11 — white negative rail (black). Connect the two
(2” 22-gauge solid wire; black; resistor to +5 volts and one wire from wire from right servo. positive or red wires from the servos
stripped 1/4” at each end). the left snap-action switch. to the positive rail (red).

STEP 46: Pin 15 — connect to pin 1 STEP 48: Plug in the wire switch
of resonator; pin 16 — connect to STEP 47: Attach other side of between the nine-volt black wire and the
pin 3 of resonator. Connect center adhesive Velcro to nine-volt battery; negative rail (look at the schematic).
STEP 45: Pin 14 — output (red pin of resonator to the ground rail. press onto solderless breadboard Your robot should spring to life; to
wire) from right-hand 7805. Connect the two remaining wires and attach battery snap. turn him off, remove the wire. Later,
from the snap-action switches Nothing should happen yet. you might want to get a real SPST
(whiskers) to the negative rail. switch; glue or tape it to the side.

construction consists of soldering You’ll need to put heat shrink plan on experimenting with the
22-gauge solid wire to whatever sensor tubing around the solder joint, Amoeba for an extended length
or actuator you want to include in otherwise the two conductors will of time — or robotics in general —
the system. Solderless breadboards touch and cause a short circuit (not consider investing in rechargeable
are good enough for many hobbyist good!). If you don’t have a heat-shrink batteries and a charger. There are two
applications. gun or hair blow-dryer, you can voltage regulators in the system ... the
Solder the red solid extension to shrink the heat shrink tubing with your popular “7805.” They look like three-
the end of the red power lead and the soldering iron. If you don’t have heat legged black Chicklets. Place the two
black solid extension to the black shrink tubing, use electrical tape or 7805 voltage regulators in front of
power lead (Step 32). The color, of duct tape (Step 33). the Velcro on opposite sides of the
course, doesn’t really matter but as Put one side of the adhesive breadboard’s center gap. Notice the
long as you’re taking time to do it, you Velcro perpendicular and to the rear orientation of the chips with heatsinks
may as well observe the color codes. of the solderless breadboard (Step facing left (Step 35).
Besides, it makes it more educational 34). The other side will adhere to the Now, plug the positive (red) wire
and easier to troubleshoot in the nine-volt battery. You’ll get ~30 from your nine-volt battery snap into
future. minutes from one battery so if you pin 1 on the 7805 on the right (Step
54 SERVO 12.2006
Peavy.qxd 11/9/2006 4:27 PM Page 55

Schematic for the


PROTOBot: Amoeba.

36). Pin 1 is the 7805’s input. Pin 2 is


ground and pin 3 is the output ... in
Here, I want you to
plug it into an empty
Pin Connections for the PIC16F628
this case, five volts; just right for row just above the • Pin 1 — No connection
driving servos and running microcon- 7805 (Step 36). The last • Pin 2 — No connection
trollers like the PIC! Normally one thing we’ll do is add a • Pin 3 — No connection
would use only one 7805 voltage wire switch which • Pin 4 — 10K ohm resistor to +5 volts
• Pin 5 — Ground (2” 22-gauge solid-core wire; black;
regulator but the servos generated so connects the battery’s
stripped 1/4” at each end)
much electronic noise that I had to negative terminal to • Pin 6 — No connection
split the power supply into two ground and your robot • Pin 7 — 10K ohm resistor to +5 volts and one wire
separate regulators: one for the ser- will be “on” its way. To from the right snap-action switch
vos and one for the microcontroller. turn him off, remove • Pin 8 — 10K ohm resistor to +5 volts and one wire
Amazing things these 7805s ... put in the wire. Later you will from the left snap-action switch
between seven and 35 volts (like our want to get a real SPST • Pin 9 — No connection
nine-volt battery) and out comes five (Single Pole Single • Pin 10 — White wire from left servo
• Pin 11 — White wire from right servo
volts regulated! This means that the Throw) switch. • Pin 12 — No connection
voltage will stay consistent (+5 volts) Connect pin 1 of the • Pin 13 — No connection
regardless of the current draw: be 7805 on the right to pin • Pin 14 — Output (red wire) from right-hand 7805
aware the heatsink on the voltage 1 of the 7805 on the left • Pin 15 — Connect to pin 1 of resonator
regulators will get hot! After with a 1.5” piece of 22- • Pin 16 — Connect to pin 3 of resonator
connecting the positive lead of your gauge solid wire stripped • Pin 17 — No connection
battery, connect the negative lead. 1/4” off each end (Step • Pin 18 — No connection

SERVO 12.2006 55
Peavy.qxd 11/9/2006 4:28 PM Page 56

Complete Parts List positive or red wires from


the servo to the positive rail
THE BODY (Step 44).
• Solderless Breadboard: RadioShack #276-175 — $8.39 For Pin 15 — connect to
• Continuous Rotation Servos: Parallax #900-00008 (2 x $6.95) — $13.90 pin 1 of the resonator (with 3”
• Double-Stick Squares: ACE #91644 — $3.49 jumper wire); connect pin 16
• 2 x 1/2” Wood Screws: ACE #1889 (8 x .09) — .18 to pin 3 of the resonator.
• Drive Wheels: Dave Brown Products Lite Flite Wheels (pair) #WH35-5535 — $6.25 Connect the center pin of the
• Tail Skid: PC Slot Cover Jameco #11754 — $1.79 4 MHz resonator to the
ground rail (use 3” black
WHISKER SENSORS jumper wire). Connect the
• 3/16” Heat Shrink Tubing: Tech-Tron TT-100 3/16” RED (4’) ($1.39) two remaining wires from
• One Jumbo Craft Stick: www.chenillekraft.com or Haagen-Dazs — $1.95 the snap-action switches
• Two Snap-Action Switches (Cherry #E61-00R): Jameco #456382 (2 x $4.85) — $9.70 (whiskers) to the negative
rail (Step 46). Note that the
POWER SYSTEM
microcontroller has been
• Heavy Duty Nine-volt Battery Snap: RadioShack #270-324 — $2.59
removed for programming.
• Two 7805 Voltage Regulators: RadioShack #276-1770 (2 x $1.59) — $3.38
Attach the other side of
• 1” Sticky Back Velcro (1 hook, 1 loop): ACE #5006036 — $1.50
the adhesive Velcro to the
nine-volt battery; press onto
THE BRAIN
the solderless breadboard and
• PIC16F628 Microcontroller: Jameco #193447 — $3.49
• Three 1K 1/4 Watt Resistors: RadioShack #271-1321 — 5 for .99 attach the battery snap.
• One three-pin 4 MHz Ceramic Resonator: www.glitchbuster.com #CR-4 — .44 Nothing should happen yet
(Step 47).
WIRES AND HEAT SHRINK TUBING Plug in the wire switch
• 22-Gauge Solid Wire (five colors): Philmore Wire Kit #12-2276 — $5.99 between the nine-volt black
• Black 1/8” Black Heat Shrink Tubing: Tech-Tron TT-100 1/8” BLK (4’) — $1.39 wire and the negative rail. Your
• Red 1/8” Red Heat Shrink Tubing: Tech-Tron TT-100 1/8” RED (4’) — $1.39 robot should spring to life
• Yellow 1/8” Yellow Heat Shrink Tubing: Tech-Tron TT-100 1/8” YEL (4’) — $1.39 (Step 48). If nothing happens,
unplug the wire switch and go
PROGRAMMER back and doublecheck your
• EPIC Plus — microEngineering Labs — $60 (www.microengineeringlabs.com) wiring to the circuit diagram.
To turn off your robot, remove
SOFTWARE the wire switch.
• PICBasic Pro Compiler — microEngineering Labs — $249
WRAP-U
UP
37). Be sure the two 7805s are facing end into anything yet. Is this the end or just the
the same direction with their metal Doublecheck your wiring with the beginning? Consider replacing the
heatsinks to the left. The nine-volt posi- schematic shown here. pre-programmed PIC chip for an
tive connection (red wire) goes nowhere Take the PIC16F628; orient it with easy-to-program BASIC Stamp II. For
but the two pin 1s on the 7805s. the notch up on the package. Pin 1 information on how to do this, look
Connect the center pins (pin 2) will be up and to the left. Plug the chip for the first PROTOBot article at
on the two 7805s, then connect into the solderless breadboard (strad- www.camppeavy.com/ar ticles/
the center pin on the 7805 on the left dle the center gap; Step 39); leave at protobot.pdf and the Ultimate
to your negative rail which we’ve least three rows in the front for the 4 TABLEBot at www.camppeavy.
marked with black tape on the left MHz resonator <queue sci-fi music>. com/articles/ultimate.pdf. Or,
side (Step 38). No other wires should be connected order the back issues from the SERVO
The 7805 on the left will be to the rows at this time. Plug the 4 Magazine website at www.servo
powering the servos ... put a MHz resonator into the first three magazine.com.
1.5” piece of 22-gauge solid wire rows of the solderless breadboard The PROTOBot design gives a lot
(red) into pin 3 on the 7805 and the (Step 40). of flexibility on a low-cost platform. If
positive rail (the column of holes Okay, now we’re going to work you want to continue with the PIC, get
along the left side); it will supply five around the CPU (Steps 41-45). Refer to the EPIC programmer and have at it!
volts to the servos and switches. the sidebar “Pin Connections for the Robot building is a fascinating hobby
The 7805 on the right side will be PIC16F628” and the schematic. and PROTOBots are a great way to get
dedicated to powering the PIC-chip; Connect the two negative or started. They’re also a fun and easy
put a 2” piece of red 22-gauge solid black wires from the servo to the project if you’re an experienced
wire into pin 3. Do not plug the other negative rail. Connect the two builder. SV
56 SERVO 12.2006
Calkins.qxd 11/9/2006 5:48 PM Page 57

by Dave Calkins

ROBOGAMES PREP
Firefighting Robots:
One of the Toughest
Robot Challenges

F
ourteen years ago, Dave Ahlgren for smoke and flames. When it detects Your score is based on how fast
of Trinity college started the a fire, it immediately launches itself you can complete the event, but you
Firefighting robot contest. The from its station, finds the fire, and get three chances. The lowest score
rules have evolved, but the goal extinguishes it. among all competitors is the winner.
remains the same: find a fire and Sure, you’re going to have to Penalty points are taken off your score
put it out. replace the couch, but isn’t it better to for sliding along the walls and/or
Unlike most robot contests — save the rest of the house? That’s the touching the candle.
soccer, combat, magellan, sumo, etc. — goal of firefighting robots. Put out the Sound simple? It’s not. The hard-
firefighting robots have a real-world fire before it gets too big. The people est problem is detecting the candle
humanitarian goal: to save lives. You who perfect the firefighting robot are amidst all of the bright spots from
can now buy a robot that will vacuum going to make millions. And thus, we ambient lighting. Most robots use a
your living room automatically. You go have Trinity. Hamamatsu UVTron fire detector
to bed, and while you’re asleep, your So, how do you build one? Well, (so much so that is should be
living room is magically vacuumed. first and foremost this is an counted as standard equipment). The
While this is certainly a time-saver, I autonomous robot. Like building a Hamamatsu is the heart of a good
don’t think it will save any lives (unless RoboMagellan bot, you’ve got your firefighter. If you don’t have a
the UPS guy is violently allergic to the work cut out for you. You not only good fire detector, you’re just wasting
dog hair on your rug). have to build a robust platform that time. This will significantly reduce the
Firefighting robots, on the other can go up and down stairs and around frequency of false-positives.
hand, can definitely save lives. What tight corners, you’ve got to make it But it cannot be the only sensor
about smoke detectors, you ask? Well, smart enough to go through multiple you use. Three-time gold medal winner
smoke detectors only detect smoke — rooms, with sensors smart enough to Tony Pratkanis’s robot Solenopsis
they don’t attack the smoke or the avoid colliding with the walls and to tell invicta uses two Sharp GP2D12s to
fire causing it, they only alert you to it where the fire is (in the case of the follow the walls, IR sensors and
(presuming you remembered to competition, a burning candle is used). bumpers to navigate, and a line
change the batteries). But where The candle is randomly placed in detector to figure out where the rooms
there’s smoke, there’s fire. Wouldn’t it the corner, edge, or center of one of are and where the white area under
be great if that fire never made enough the scale rooms within the roofless the candle is. All of this is controlled via
smoke to set off the alarm? “house.” The house is a 2.43 meter the Grandar ASM robot base.
Let’s say you leave your laptop on square maze with four unique rooms Start with a robust platform —
the couch, and the battery decides to separated by hallways (just like a real Octobot from the Jameco Robot Store,
go kaboom after you’ve gone off to two-bedroom house). There is an the ASM from Grandar, or the 4WD1
bed. When the smoke detector goes “island room” in the house, so simple from Lynxmotion are all excellent
off, you run out of the house and wait wall following won’t get you into every platforms, although any R/C truck
for the firetrucks. But isn’t it better if room. The candle sits on a white sheet would work. There’s no sense in
the firetruck is sitting in your home? A of paper, and your robot has to find reinventing the wheel. Work on your
firefighting robot could be constantly the candle and blow it out while on the software’s ability to find the flame and
charging and monitoring your home white area. put it out, then start expanding into
SERVO 12.2006 57
Calkins.qxd 11/9/2006 5:49 PM Page 58

[ “

]
Fourteen years ago,
Dave Ahlgren of Trinity
college started the
Firefighting robot contest.
The rules have evolved,
but the goal remains
the same: find a fire and
put it out.
” Photo 1

Photo 2 Photo 3 Photo 4

Photo 5 Photo 6

PHOTO 1. Going down stairs can be a problem


for many robots.

PHOTO 2. Ted Larson looks on as his robot tries


to find the candle.

PHOTO 3. Three-time gold medalist, Solenopsis


invicta.

PHOTO 4. Three-time gold medal winner Tony


Pratkanis watches his robot, Solenopsis invicta.

PHOTO 5. FlameOut went on to take the Bronze


medal at ROBOlympics 2004.

PHOTO 6. Tryclops, an omni-wheeled firefighter.

PHOTO 7. The layout for the current Firefighting


Photo 7 contest.

58 SERVO 12.2006
Calkins.qxd 11/9/2006 5:50 PM Page 59

ROBOGAMES Prep
better or customized platforms. • Exclusive use of dead-reckoning robot will probably move slower on
Mark Whitney of Acroname has (measuring the course and carpet than on linoleum. If your robot
several tips for helping to ensure you rogramming your robot to follow the uses motions that are based purely on
do well. His full set of tips can be found measurements) for navigation will timing, you will need to test it with
at http://trinity-fire.notlong.com. require you to make a full replica of different power levels and floor surfaces.
the house for serious testing.
• A multi-spectral approach for candle • Keep it simple. Many of the most
detection is quite effective. Lighting • Test your candle detection and successful robots rely on a simple
conditions can easily spoof a system candle extinguishing systems at the design, simple software solution, and
that relies solely on infrared or visible minimum and maximum possible straightforward mechanics. A basic
light. It’s much harder to spoof a heights of the candle (15 cm to 20 cm design that can navigate the maze,
system that combines UV, visible, and off the floor). Test them with your find the candle reliably, and put it out
IR sensors. In addition to UV-IR sensors, robot as close to the candle as it can will always score well if it can succeed
the Eltec Pyroelectric sensor provides get. Test them at the maximum legal three tries in a row.
true heat-sensing capability. However, extinguishing range (30 cm). Make
it is a heat differential sensor, so it sure it can blow out the candle at Expect changes to the environ-
must sweep for best results. The signal all extremes. ment. Almost all problems are followed
processing for its analog output can by the entrant saying “that doesn’t
be as simple as a window comparator • As batteries are used up, motors happen in my lab/school/basement.”
circuit. slow down and robot timing changes. The most common problems are
In the Expert Division, the floors in the changes in lighting, including cameras,
• Use a fan if you want things to be rooms have different textures. Your or other forms of interference. SV
simple and reliable. Turn it on and blow
out the candle. Water, CO2, balloons,
etc., are nice ... but when you use FIREFIGHTING RULES
them up, you’re toast. You can blow ● Once turned on, the robot must minutes. After five minutes, the trial
a fan as many times as you want, be autonomous — in other words, it will be stopped. The maximum time
repositioning the robot if necessary must be self-controlled without any for the robot to return to the Home
until you put the flame out. human intervention. Circle in the Return Trip mode will be
two minutes.
• Do not underestimate the horrifically ● Robot must be able to fit in a box
harsh lighting conditions at the 31 cm long by 31 cm wide by 27 cm ● Any robot that slides along a wall
contest: blinding gym lights, moving high. If the robot has feelers to sense will have an additional penalty point
shadows, candle reflections on bright an object or wall, the feelers will be (one point equals one second)
white walls, flash bulbs reflecting on counted as part of the robot’s total added to its time score for each 2 cm
black floors, IR from camcorders and dimensions. of wall it touches as it slides along.
cameras, etc. You will use light for
nearly everything — candle detection, ● The robot must not use any ● Any robot that touches the candle
obstacle detection, line detection. To destructive or dangerous methods or its base with any part of its body
test, turn on every light in your testing to put out the candle. It may use or feeler, either deliberately or
area, and then some. Try pointing your such substances as water, air, CO2, accidentally while the candle is lit,
TV remote at your robot. Take some etc., but any method or material that will have 50 penalty points
flash pictures while its moving. Bring in is dangerous or will damage the (seconds) added to its Actual Time
bright flashlights and make shadows. If arena is prohibited. score each time the candle is hit.
your robot passes these tests and
laughs at your futile attempts to fool ● It will be permissible to put out ● In order to make the contest
him or her, then you have a chance at the candle by blowing air or other realistic and to encourage the
the contest. oxygen-bearing gas. However, this is creation of smart robots, we have
not a practical method of extinguish- deliberately added uncertainty into
• If you are using a compass to help ing a fire in the real world. So, robots the contest. The robot does not
your robot navigate, be aware that the that do not use air streams to blow know in which of the four rooms the
magnetic field can be distorted by out the candle will receive a 15% candle has been placed. Sometimes
nearby pipes and other metal objects. time reduction. a robot gets lucky and the candle is
In fact, compass readings can vary in the first room it searches and
● The maximum time limit for a sometimes the candle is in the fourth
noticeably from one arena to the next
robot to find the candle will be five room searched.
at the contest site in Hartford.
SERVO 12.2006 59
Best.qxd 11/9/2006 10:44 AM Page 60

Building a
TWIN MOTOR DRIVER
Robots come in all sizes. So, you may not
need a 100A motor driver to move your
latest mechanical creation about. There
will also be occasions when a couple of
loosely coupled small motors are all you
need to garner some motion from other
articulated parts of your steel cowboy.
by Peter Best

T
o that end, for the last couple of bridges with each independent H- turned off and both of the H-bridge’s
weeks, I’ve been slinging wires bridge having the capability of support- sink drivers being turned on. All of an H-
between a PIC microcontroller and ing a bidirectional ±650 mA motor bridge’s drivers can be disabled by
a dual full-bridge PWM motor driver load. The maximum motor voltage that applying a logic high level to both of the
that can put on the brakes. I would like can be applied to the A3968 is 30V. H-bridge inputs. Thermal and crossover-
to share my little twin-motor hardware Motor winding current is controlled by current protection is done in the A3968
design with you and at the same time an internal fixed-frequency PWM hardware eliminating the need for any
show you how to code motion drivers current control module. The use of this external protection circuitry.
for the Allegro A3968 Dual Full-Bridge PWM-based current control circuitry is Figure 1 is a representation of one
PWM Motor Driver with Brake, on optional. We will use it in this design. of the H-bridges contained within the
which my twin-motor driver is based. Don’t confuse the A3968’s internal A3968. Note the two inputs and pro-
While we’re yaking and hacking, current control PWM with the speed tection logic are integrated within the
I’ll also show you how to implement a control PWM that we will apply via the A3968’s control logic circuitry. Before
motor speed control using the PIC’s PIC’s PWM engine. all is said and done, we will hang a
analog-to-digital converter in conjunc- The A3968’s peak load current is resistor and capacitor (RT and CT in
tion with the PIC’s PWM module. As determined by a combination of a Figure 1) from the A3968’s RC pin,
Larry of the famed Three Stooges reference voltage and a pair of current complete each of the H-bridge sense
would say, “Cut it out fellas. We’ve got sensing resistors. The pulse duration of circuits with a precision sense resistor
work to do.” the A3968’s internal fixed-frequency mounted between the A3968’s SENSE
PWM current control module is set pin and ground, provide a voltage
An A3968 Primer using a simple external RC network. reference via a precision voltage divider
The capacitor in the RC network I just to the A3968 REFERENCE pin, and add
The A3968 can be had in a pair of mentioned also enables a blanking a load supply bypass capacitor across
packages. To make this project easier function to prevent false triggering of the H-bridge’s VBB power input pin.
to realize, I’ve decided to go with the the A3968’s current control PWM As you have already ascertained,
A3968SA, which is the DIP version of during switching transitions. the hardware assembly will be a piece
the dual-motor driver. The A3968 is A pair of inputs (INPUTA and of cake. Let’s move on and determine
also available in an SOIC package and INPUTB) determines the load current the values of the very few components
is specified as A3968SLB. If you polarity (fancy words for motor shaft we will be parking around the pins of
really need a small dual-motor driver direction) by selecting the proper pair of the A3968 DIP package.
package, go with the SOIC version. source and sink drivers within the H-
Every nuance of the A3968 DIP design bridge. The brakes are applied when A3968 Arithmetic
I’ll present in this text applies directly to both of the INPUTA and INPUTB inputs
an identical and much smaller A3968 are presented with logic low levels. As I alluded to earlier, the A3968’s
SOIC design. Braking is the result of both of the internal current-control PWM circuitry
The A3968 comprises a pair of H- selected H-bridge’s source drivers being controls the load current to each of the
60 SERVO 12.2006
Best.qxd 11/9/2006 10:44 AM Page 61

motors that are attached to the A3968 FIGURE 1. Note the


H-bridge outputs. When the A3968 H- absence of
MOSFETs.
bridge outputs are turned on, current The Allegro folks
will begin to flow in an increasing man- call these special
ner through the motor winding. The transistors
Satlingtons as they
load current is sensed by the H-bridge’s combine the low
Current-Sense Comparator by way of voltage drop of a
that precision current sense resistor we saturated transistor
will be installing on the A3968 SENSE and the high peak
current capability of
pin. Take another look at Figure 1. a Darlington.
When a comparator is employed,
you’ll usually find a reference voltage half. Performing
somewhere in the mix. The reference the substitu-
voltage in this case is supplied by a pair tions requires
of precision resistors that make up a the sense resis-
precision voltage divider that taps in tor value to be
through the A3968 REFERENCE pin. 0.50Ω to end
When the Current-Sense up with a maxi-
Comparator input voltage gleaned mum load cur-
from the SENSE pin causes the Current- rent trip point
Sense Comparator to trip, the output of of 1A with a
the Current-Sense Comparator resets reference volt-
the source-enable latch, which turns off age of 2.0V.
the H-bridge source driver. At this point, The closest I
the current will recirculate through the could come to
H-bridge sink driver and ground-clamp 0.50Ω in a half-
diode. As the load current recirculates, watt SMT pack-
it decreases allowing the A3968’s age was 0.51Ω,
internal clock oscillator to override the which is close
Current-Sense Comparator’s output enough. I know, I know. I said this is Applying our mathematical known
and set the source-enable latch when not an SMT project. However, I like to values to our ITRIP formula results in a
the comparator’s output falls below trip use SMT passives when I do point-to- maximum current trip point value of
level. When the source-enable latch is point wiring projects as it saves space 484 mA for the physically measured
set, the H-bridge source drivers again and time so I don’t have to stop and reference and power supply voltage
turn on, allowing load current to cut leads every time I mount a diode, values and 488 mA if we use the
increase and the cycle to repeat. resistor, or capacitor. theoretical calculated reference and
The maximum reference voltage The next step is to put a reference power supply voltage values.
that can be applied to the A3968 REFER- voltage as close to 1.0V as possible at The A3968 datasheet saves us
ENCE pin is 2.0V. The load current trip the A3968 REFERENCE pin. With an some computational time with respect
voltage is related to the reference volt- ideal source voltage of +5.0V, a to the RC network values. RT and CT
age and sense resistor value as follows: 40K/10K voltage divider combination have datasheet recommended values
would be perfect. This is not a perfect of 56K and 680 pF, respectively. This
ITRIP = VREF/(4RS) world as 40K is not a standard 1% combination of values results in a nom-
value and I doubt if I can generate inal oscillator frequency of 25.4 kHz.
where: exactly +5.0V from my regulated power The turning on of an H-bridge
ITRIP = Desired Maximum Load Current supply circuit. So, the next best thing is source driver produces a current spike
VREF = Reference Voltage applied to a standard 40.2K 1% resistor and a 10K that can trip the Current-Sense
A3968 REFERENCE Pin 1% resistor in my reference voltage Comparator and reset the source-
RS = Sense Resistor Value in Ohms precision voltage divider circuit plan. enable latch at the wrong time. To
Applying good old Ohm’s Law prevent this from happening, the
To be conservative, I’ll keep the gives a voltage drop of 0.996V across Current-Sense Comparator output is
maximum load current value around the 10K resistor, which is tapped into blanked for a period of time when the
500 mA. The easy thing to do here is the A3968 REFERENCE pin. Jumping source driver is activated. The blanking
determine the sense resistor value that into the future, I measured my actual time is determined by the capacitor CT.
will give us 1A with the maximum logic supply voltage at 4.97V, which Without getting into the simple math
reference voltage of 2.0V. Then we can theoretically yields 0.990V at the involved, the 680 pF capacitor in our
simply cut the reference voltage in half, REFERENCE pin. I physically recorded RC network blanks the comparator
which should cut the ITRIP value in 0.987V at the REFERENCE pin. output for 1.3 µS. A 1.8 µS blanking
SERVO 12.2006 61
Best.qxd 11/9/2006 10:44 AM Page 62

VBB
JP1
6 VR1 +5VDC + C11
6 5 PGC 47uF@35WV
LM317
5 4 PGD
4 3 +5VDC VIN VOUT
3 2 + C9 R9

ADJ
2 1 R8 220uF 470
1 R1 220uF@35WV C8
+ 240
ICSP 10K R10 R11
D2 PWR LED
10K 10K

1N5819 C4 R7 MOTOR1
715
.1uF
U1

1 2
MCLR RA0/AN0 3 U2A
RA1/AN1 4 1 U3
RA2/AN2 5 3
RA3/AN3 6 2 6 MOTOR2
RA4/T0CLK 7 15 VCC 3
RA5/AN4 PWMA 16 INPUT1A VBB C10
74HCT00
+5VDC 21 U2B 10 INPUT1B .22uF
RB0 22 4 9 INPUT2A
C3 20 RB1 23 6 INPUT2B 14
VDD RB2 24 5 OUT1A 2
RB3 25 OUT1B 11
.1uF 8 RB4 26 +5VDC OUT2A 7
74HCT00
VSS RB5 27 PGC OUT2B
19 RB6 28 PGD
VSS RB7 U2C R2 R5 .51/0.5W
9 40.2K 1 R6 .51/0.5W
8 SENSE1 8
13 10 4 SENSE2 12
RC2 14 C6 5 VREF GND 13
C1 18pF RC3 PWMB RC GND
Y1 15 74HCT00 R3
9 RC4 16 U2D 680pF 10K
OSC1 RC5 17 12 A3968SA
RC6 18 11
C2 18pF RC7 13
10 R4 C7
OSC2 56.2K 680pF
74HCT00
10MHz
+5VDC
C12 20pF Y2
11
RC0 C5
.1uF
C13 20pF NOTES:
12 ALL RESISTORS 1% UNLESS SPECIFIED OTHERWISE
RC1
CAPACITOR C5 IS BYPASS CAP FOR U2
32.768KHz
ALL CAPACITORS RATED AT 16WV UNLESS SPECIFIED OTHERWISE

PIC18F252 SCHEMATIC 1

period is automatically generated by the components that are supporting also control the motor speed via I2C or
the A3968 itself when the load current U3 in Schematic 1. So, let’s talk about RS-232 as the interface pins for those
changes polarity. If you need more the logic woven by U1 and U2 that sup- communications interfaces are open.
blanking detail, please check out the ports the A3968. If you’ve ever done a The PIC is clocked at 10 MHz in
A3968 datasheet. PIC project before, you can see that this design. I chose 10 MHz for the
I’m sorry, but that’s all of the math I there’s nothing remarkable about the base system clock because you can put
can offer up right now. I guess we’ll just PIC18F252 configuration. The standard the PIC into HSPLL (High Speed PLL)
have to build up some hardware now. Microchip ICSP programming/ clock mode and run at 40 MHz, if you
debugging configuration consisting of would like. Remember that the clock
Three-DIP Wonder JP1, R1, C4, and D2 is tied to the speed directly affects the PWM period
PIC18F252’s MCLR pin. I’ve tied in a and faster may not be better, depend-
You’re already up to speed with couple of 10K potentiometers to feed ing on your choice of motors. The
two of the five possible analog- 32.768 kHz crystal drives the real-time
to-digital converter channels. The clock, which I’ll show you how to set
pots are optional and will act as up and use when we talk about the
physical speed controls for A3968 motor driver firmware.
MOTOR1 and MOTOR2. You can All of the logic within U1, U2, and
U3 is powered by a +5.0V regulated
PHOTO 1. All you need is a Moto power supply. The resistor combination
Tool, some wirewrap wire, and
a soldering iron to assemble of R7 and R8 forces the output of the
something similar to my A3968 LM317 variable voltage regulator very
driver board. I used the Moto close to the ideal +5.0V level. If you
Tool to ream out the holes to want precise voltage control, you may
allow the screw terminal posts
to feed through the perfboard. substitute a potentiometer for R7,
62 SERVO 12.2006
Best.qxd 11/9/2006 10:45 AM Page 63

which will allow you to tweak the PHOTO 2. It may be ugly, but it works.
LM317 output. Capacitors C8 and C9 You can easily identify the sense resistors
in this shot. The precision voltage divider
perform power supply noise filtering and the RC network are all stuffed into
duty while filter capacitor C11 is dedi- the center among the A3968 pins.
cated to the VBB load supply input of
the A3968. I chose the LM317 because on U2B pin 6. Thus, the output of U2B
it can easily handle the maximum 30V will remain high no matter what.
load supply voltage and still perform its That’s what our truth table tells us we
+5.0V regulation duty. need to see.
To independently control the We need both input pins of U2A to
behavior of the motor pair requires go high to get a low on the U2A output
both of the PIC’s PWM modules. If you pin. So, we will drive pin 1 of U2A high
take another look at Figure 1, you’ll see using RB0. When the PWM signal driv-
a truth table that defines the input ing pin 2 of U2A goes high, the output
sequences needed to move and brake pin of U2A will go low, supplying
the motors. The first rule we must power to MOTOR1. When the PWM
make — which we will call Rule #1 — is swings low on U2A pin 2, the load
to never allow the PWM to apply the current applied to MOTOR1 will be terminal to the far right. The two sets
brakes. To do that, we must make sure removed as the output of U2A will be of four pins you see in Photo 1 are tied
that one of the inputs is always in a in a high state. A look at the truth table to the inputs and outputs of the
logical high condition. Having both shows that if both INPUTA and INPUTB NAND gates. You don’t see any glue
inputs go high at the same time is not go high, the load current to the motor components other than the filter
a bad thing as it only disables the is removed. When the PWM swings caps in this shot as all of the passive
motors for that part of the PWM cycle. high, INPUTA goes low while INPUTB circuitry is SMT and is mounted on the
We never want the PWM input and the remains high; this allows load current to other side of the perfboard.
associated input to be low at the same pass through the motor winding. The 0805 SMT components fit well
time as that puts on the brakes To drive MOTOR1 in Reverse, we between the .1-inch-center plated-
between PWM cycles. simply swap the logic levels at U2A pin through holes of my custom plated-
So, Rule #2 says that in the Forward 1 and U2B pin 5. The same forward/ through hole perfboard. What you see
and Reverse truth table entries, we will reverse motor drive logic I’ve just in Photo 2 are the passive components
always apply the PWM to the input that walked through applies to the U2C and that make up the precision voltage
is defined at a low level. Doing so will U2D NAND gates driving the A3968’s divider and the RC network used by the
drive the motor when the PWM signal is MOTOR2 inputs. A3968. As you can see in Photo 2, I
low and disable the motor when the Applying the brakes to MOTOR1 is used standard wirewrap wire and point-
PWM signal is high. Now that we the act of driving the outputs of U2A to-point solder techniques to assemble
have determined how we must drive and U2B low simultaneously. To do my version of the A3968 driver board.
the motors using a PWM signal, let’s that, we must apply a logic high to
examine the logic implemented by the both U2A inputs and both U2B inputs. A Logical View of the
74HCT00 NAND gates. This is accomplished by disabling A3968 Driver
Suppose we want to drive PWMA and driving the RC2 pin high,
MOTOR1 forward. According to the while at the same time driving RB0 and I’m going to use a very nice tool
truth table and our Rule #1, we must RB1 high. Again, the same brake logic called the Cleverscope to help me show
drive INPUTB high and apply the PWM applies to U2C, U2D, and MOTOR2. you the relationship between the
to INPUTA. If you’re not familiar with This is a good place to show you A3968 twin-motor driver firmware and
how a NAND gate works, it takes both the actual hardware. Photo 1 shows the A3968 twin-motor driver hardware.
NAND gate inputs to be high for the my A3968 twin-motor driver layout. The Cleverscope is a high-quality
output of the NAND gate to go low. The load supply voltage enters via the oscilloscope and function generator
Otherwise, the output of the NAND removable two-position screw terminal that interfaces via USB to a standard
gate is high. So, to force U2B to always in the upper left of the shot. The RJ-11
PHOTO 3. This is a look at my
show a high at its output, we feed its ICSP jack is mounted bottom left. Cleverscope’s front panel. The logic
pin 5 with a low from PIC port pin RB1. Output to the motors is provided by level probes you see in Photo 4 use a
If the pin 4 PWM signal at U2B swings the four-position removable screw flat cable to mate with the RJ-45 digital
high, the output at pin 6 of U2B will input jacks on the left.
remain high, as a high on U2B pin 4 is
NANDed with a U2B low on pin 5.
When the PWM applied to U2B pin 4
swings low, both of the U2B inputs are
low, which results in a high-level output
SERVO 12.2006 63
Best.qxd 11/9/2006 10:45 AM Page 64

PHOTO 4. The Cleverscope is the raw PWMB signal used by


comes standard with a MOTOR2. I attached the Cleverscope’s
pair of high-quality scope
probes and a couple of eight data probes to the inputs and
the four-input digital input outputs of the NAND gates. Note that
modules you see in the shot. the Cleverscope Control Panel allows me
A3968 flows through the to give each of the probes a meaningful
PIC and NAND gates. name in the upper left corner of Photo
Photo 5 is a Cleverscope 5. Let’s examine the digital logic levels
screen capture. I’ve posted and see if we can figure out what the
the Cleverscope Control motors are doing.
Panel and the Signal Let’s start at the top. RB0 is low
Information windows out and RB1 is high, which means INPUT1A
front so you can see them should see a high logic level from the
and get a feel for what the output of U2A. Sure enough, if you
Cleverscope can do. For look at the INPUT1A digital capture, it
personal computer. The front panel of instance, the Signal Information window is showing a “1” for INPUT1A. Recall
my Cleverscope is shown in Photo 3. A tells us that the period of the PWM that Rule #2 says that we always toggle
pair of very nice compensated scope signals measured by the standard scope the truth table’s low input with the
probes comes as standard equipment probes on the Cleverscope’s Channel A PWM signal. In this case, that would be
with the Cleverscope. In addition, two and Channel B is 1.64 mS. It also INPUT1B, which is toggling in step with
digital input modules capable of moni- informs us that the pulse length is 819 the scope’s PWMA waveform.
toring four digital inputs each are also µS and the duty cycle is 50%. If you are According to the truth table, with
included with the Cleverscope pack- interested in voltages pertaining to the INPUT1A held at a high logic level and
age. (Now you know why I put those pulse train, those values can also be INPUT1B toggling, MOTOR1 is rotating
eight pins on my A3968 twin-motor gleaned from the Signal Information in the reverse direction. A quick look at
driver board.) A representation of the window. The top scope trace (Channel INPUT2A and INPUT2B reveals that
Cleverscope scope probes and digital A) is the raw PWMA signal coming into INPUT2B is held high while INPUT2A is
input modules can be seen in Photo 4. the NAND gates from the PIC for toggled by PWMB. Another look at the
I described how the logic for the MOTOR1. The bottom trace (Channel B) truth table and we see that MOTOR2 is
spinning in the forward
direction. Another clue
that MOTOR2 is
spinning opposite of
MOTOR1 is the oppo-
site NAND gate
arrangement of the
logic levels of RB0/RB1
versus RB2/RB4.
Photo 6 is a
Cleverscope view of
what happens when
we slam on the brakes
to stop MOTOR2. The
truth table tells us to
apply a logic low level
to both of the A3968
inputs to kick off the
braking action in the
PHOTO 5. The Cleverscope
is a wonderful tool that
allows me to show you
waveforms and digital
logic levels on the printed
page. I am very impressed
by the Cleverscope’s ease
of use and accuracy. I
have to beg my Tek scope
to give me data that
Cleverscope just lays out
there for all to see.
64 SERVO 12.2006
Best.qxd 11/9/2006 10:46 AM Page 65

PHOTO 6. This
Cleverscope screen shot
shows that MOTOR2 has
no PWM and all of
the A3968 inputs that
control MOTOR2 are held
in a logic low state.
MOTOR2 is not spinning
the shaft at this point.
However, MOTOR1 is
humming right along.
H-bridge. Since we’re
muxing our PWM sig-
nals with NAND gates,
we must pump a high
logic level to all of the
NAND gates involved
with MOTOR2 to get
low logic levels on the
A3968 inputs. As you
can see in Photo 6, RB2
and RB4 are at a logic
level of “1” and the
PWMB signal has been
disabled to MOTOR2
and a high logic level is
present on what was
the MOTOR2 PWMB
pin. The result is shown
in the digital capture as
INPUT2A and INPUT2B
are both showing low logic levels. Trust some very simple real-time clock motor driver are available from many
me. The motor stopped on a dime. I’ll driver code in the package. Basically, of the vendors in this magazine. To
bet you can figure out what MOTOR1 TIMER1 is configured to overflow make things easy, I’ll offer a complete
is doing by the signal levels presented once per second and generate an kit of parts for the A3968 driver on the
to you in the Cleverscope MOTOR2 interrupt. My little real-time clock NERDVILLA website at www.nerd
brake shot. Pretty “clever,” huh? driver simply counts the overflows villa.com. And, don’t worry. I won’t
Well, the driver firmware is just as and converts the accumulation of make you type in all of the A3968
clever. I’ve laid out all of the code nec- TIMER1 interrupts to seconds, twin-motor driver source. The source
essary to move and brake a motor minutes, hours, and days. I show code is available from the SERVO
shaft in the Motor Functions area of you how to use the forever- website (www.servomagazine.com)
Listing 1 (available on the SERVO incrementing secs_timer variable in and www.nerdvilla.com.
website at www.servomagazine. the APPLICATION AREA of Listing 1. I’ve got a lot more motor control
com). The code is very easy to follow If you include the speed function gadgets I want to show you. However,
and directly associates with the in your application loop, you will be I’ve motored right through my page
forward/reverse/brake motor control able to change the speed of each allocation. So, until next time, have fun
logic flow I described earlier. So, I motor independently by adjusting the with your A3968 twin-motor driver
won’t go into detail as to how it works. motor’s associated potentiometer. board. SV
You can always send me a note with The speed function code kicks off an
any questions you may have;
peter@nerdvilla.com. My original code
analog-to-digital conversion that reads
the voltage at the wiper of the select- SOURCES
was compiled using the HI-TECH PICC- ed pot. The 10-bit voltage value is • A kit of parts for the A3968 motor
18 C compiler. I’m sure you will be able then placed in the duty cycle register driver board is available from
to convert my C source to your favorite of the selected PWM module. www.nerdvilla.com.
language quite easily. Remember that the A3968 drives • The Cleverscope is available from
the motors on the low side of the Saelig at www.saelig.com.
Timed Out PWM signal. So, your duty cycle will
be based on the low-going PWM • The HI-TECH PICC-18 C compiler can
In addition to the A3968 twin- pulse time. be purchased from HI-TECH Software
motor driver firmware, I’ve provided All of the parts for the A3968 at www.htsoft.com.

SERVO 12.2006 65
SERVO Xmas AD Nov06.qxd 11/9/2006 5:30 PM Page 66

m o nthly
T he gazine
ma e nex t
for th rat ion
gene bot ics
of ro menters
ri
expe

Gift Subscription
Gift From:
Print Name ________________________________________________________________________
Address ____________________________________________________________________________
City _________________________________________________________________________________
State ___________ Zip _______________________________________________________________
Phone ______________________________________________________________________________
Email________________________________________________________________________________

Gift To: ❑ 1 Year ❑ 2 Year ❑ 3 Year U.S. Prices:


Print Name ________________________________________
1 Yr $24.95
Address ____________________________________________
2 Yr $45.95
City _________________________________________________
3 Yr $65.95
To order, photocopy this page
State ___________ Zip ________________________________ and mail to:
Phone ______________________________________________ SERVO Magazine
Email ________________________________________________ Po Box 15277
North Hollywood, CA 91615
Gift To: ❑ 1 Year ❑ 2 Year ❑ 3 Year For faster service,
❑ Payment Enclosed subscribe by phone
Print Name ________________________________________
U.S. dollars drawn on a U.S. bank only or online
Address ❑ Bill Me (U.S. Orders Only!)
877-525-2539 (toll fre e)
____________________________________________
❑Visa/MC/Amex/DiscoverCard
City _________________________________________________ 818-487-4545 (outside US)
State ___________ Zip ________________________________ __________________________________ w w w.servomagazine.com
Card # Exp. Date
Phone ______________________________________________
__________________________________ When ordering, use promotion
Email ________________________________________________ Name on card code Y6FXMS
Pawelski-edited.qxd 11/9/2006 10:58 AM Page 67

Amateur
robotics is FUN.

Amateur robotics
is EDUCATIONAL.

Amateur robotics
is EXPENSIVE!
The sad fact of the
matter is that the two
easiest ways for a
beginner to get into
robotics are both very
expensive. The most well-
supported tools for the
beginning roboticist are
the LEGO Mindstorms and
Parallax BASIC Stamp
BoeBot. Both of them are
used extensively for
teaching robotics in
schools and have literally
thousands of websites

U
devoted to using them. In
nfortunately, either a Mindstorms “someday.” Whether it is a mini grand
set or a complete BoeBot kit will challenge racer to tear around the local addition, nearly any
cost just under $200. This is a BMX track or a 20-degree-of-freedom robotics club will have
significant amount of money to come up biped walker, there is something in the
with at one time for many people. back of your mind that is your goal. one or more persons in it
Whether you are a teenager on an Odds are that it is complex enough that has experience with
allowance or an adult trying to make that you will need to use something
house payments, car payments, student other than a BASIC Stamp or LEGO
these systems. You will be
loan payments, etc., it is hard to allocate RCX microcontroller to control it. At able to get plenty of help
that amount of money at one time. some point, you will have to learn how if you start with either
Then there is the problem of your to use another microcontroller.
dream bot. The bot you plan to build You could start from the beginning of these systems.
SERVO 12.2006 67
Pawelski-edited.qxd 11/9/2006 10:58 AM Page 68

Beginner’s Robotics on $50 a Month


with a PIC or AVR microcontroller and descriptions. A site might list a 1,000 RadioShack, Fry’s, or some other
build a bot from scratch. Many people µF capacitor. Is it axial or radial? Mylar electronics supply store within driving
have and a lot of them have posted or electrolytic? 100V or 16V? It is only distance. Get to know the local
details of what they did on the web a good deal if you get what you need. suppliers. Even with the recent closure
including parts lists. You could base If the price is really good, you might try of many stores, RadioShacks are easy
your work off of their designs. This has emailing for more information; other- to find in the US, but there may also be
the advantage of allowing you to buy wise, look for another supplier. other suppliers in your community.
your parts a few at a time to keep the Comparison shopping on the net is Stop in at a local TV repair shop and
monthly cost low, even if the cost for made more difficult by the dreaded ask them where they go for parts (after
the whole project is more than you can shipping and handling monster. Some letting them know that you are not
afford at one time. However, you then companies charge S/H based on going to be working on TVs).
have to face looking at a slowly weight, some charge based on total If you are really lucky, you will find
growing mound of parts for months component cost, some by distance, stores in your area that sometimes even
instead of a working robot. It is hard to and a select few even offer a flat rate. beat the cost you would pay on the net
keep motivated when you don’t have Except for the flat rate and part cost for an item. For example, the local
something up and running. based shippers, you will never know Harbor Freight store had a sale recently
The goal of this article series and the actual cost of an item until you are where multimeters were only $4.
its related online material (www. most of the way through checkout. Often the best deal is to find some-
servomagazine.com) is to get you This is why I tend to use sites that have one who has put together a kit that
started in robotics for $50 a month — a fixed shipping charge. does what you want. Wright Hobbies
about the cost of a new video game. There are times when you will get (www.wrighthobbies.net) has put
During the first month, you will buy the a better deal from a company with together a kit of parts to go with each
tools and supplies that every roboticist variable shipping charges. For example, article in this series. You can hunt
should have and you will learn how to Circuit Specialist (www.web-tronics. around for lower cost suppliers, but you
solder (don’t worry, it is easy once you com/webtronics/index.html) sells will be hard pressed to get all the parts
see the trick). I will also show you some LEDs in bags of 100 for $1.50 and bags listed for a lower price. Since Wright
of the tricks to buying parts that will of 1,000 same value resistors for Hobbies bought parts in bulk for 50 to
save you money. Next month, you will $3.00. I use them when I am getting 100 kits at a time, they got a much
build a complete, easily programmable, supplies for a soldering class because lower cost on parts than you will get
easily upgradeable robot. It will move, the per-component savings adds up to buying just the parts you need to do
sense the environment, and react to more than the extra shipping cost. the project. This allows Wright Hobbies
what it senses. In the third installment, The point is, you will have to take to sell the complete kit at a lower cost
we will add IR, a LCD display, and your time at first and research many and still make a profit. In addition, your
bump sensors. In the fourth month, suppliers. After a while, you’ll get a feel shipping cost is less since there is only
we’ll add a second microcontroller, for who has the best deals and you will one package to be shipped.
learn about microcontroller-to- develop a list of favorite places you go
microcontroller communications, and to first. Three of the companies at the The Tools Every Beginning
add servo positioned sonar. top of my favorites list are All Roboticist Should Have
Electronics (www.allelectronics.
Buying on the Net com), Solarbotics (www.solarbotics. There are certain tools and sup-
and in the Stores com), and The Mark III Robot Store plies that will come in handy no matter
(www.junun.org/MarkIII/Store.jsp). what type of robot you are building.
Even if you are lucky enough to live All Electronics has flat rate shipping. The tools and parts that are provided in
somewhere like Dallas, TX or Seattle, Solarbotics has flat rate for anything the kit that goes with this month’s arti-
WA where “electronics supply store” they can fit in a padded envelope. cle are listed in the Parts List. These are
means something more than the back Mark III bases shipping on the total all hand tools and common supplies
third of RadioShack, you will probably component cost, but has the same cost that can be purchased from many
end up buying a lot of your components for any purchase up to $49.99. sources. As a kit, the items cost just
over the Internet. Remember two things: There are occasions when saving under $50 including shipping. Bought
Google is your friend, shipping costs and time is more important than saving separately from multiple sources, the
vague descriptions are you enemies. money. At 10:00 AM on a Saturday, best deal I could manage for them was
Online stores range from such you may discover that you can’t do any- around $55 including shipping.
well-known places as Jameco, to guys thing that you had planned for the Many people will recommend that
who made bulk purchases and are weekend because you ordered 10Ω you look at tools as an investment and
trying to sell off the excess. Google resistors instead of 10K ohm resistors buy the best tool that you can afford.
helps you find them all. A problem with from your favorite Internet supplier. In This makes sense if you are buying
many of the smaller sites is vague this case, you’ll be happy that there is a something like a milling machine. A
68 SERVO 12.2006
Pawelski-edited.qxd 11/9/2006 10:58 AM Page 69

Beginner’s Robotics on $50 a Month


cheap tabletop milling machine can be The next tool you need is a wire will want to upgrade as you get into
purchased for $350 and will last maybe cutter/stripper. The $2.50 one listed in more complex projects. However, an $80
10 years in light use. A high-quality the parts table can be adjusted to strip Weller variable temperature iron would
milling machine will cost at least $1,100, various sized wires using a stop screw. break the $50 a month goal of this
but will last 40 years and make more This is a bit of a pain if you are using series, so we’ll start with the cheap iron
accurate cuts than the cheaper machine. wires of many sizes, but for the most — 30- or 40-watt with a very narrow tip.
In terms of dollars per year, the high- part, you will be working with one size A cheap iron will not have thermal
quality milling machine is the better deal wire to begin with. Twenty-two gauge feedback control. Its temperature will
since you will only need to buy one. solid copper wire can easily handle two drop quickly when you touch it to a
However, the items on this list are so to three amps constant current without component. This is not a bad thing for
useful that most people who have been damage. It will fit into breadboard a beginner since it will get you into the
into amateur robotics for a long time sockets and is fairly easy to solder. habit of not loitering while making your
have multiple copies of each item. For Small pliers are a necessity as are solder joints. Spending too much time
now, concentrate on getting serviceable regular and small screwdrivers. Flat when soldering a joint is bad because it
items. Later, if you stay in the hobby, you nose, needle nose, and bent nose pliers gives the heat time to transfer from the
can get higher quality versions for your can be bought for around $2.50 a joint to the components you are trying
workbench and these serviceable tools piece. For the same price you can get to connect. Many electronic compo-
will become the ones you take with you various cutters — such as flat, chain, nents are heat sensitive. An electrolytic
when you go to competitions or club and angled — that come in handy for capacitor or a microcontroller can
build nights. Remember, the more you trimming components. A set of four flat easily get fried if you waste too much
spend on tools, the less you will have for nose and Philips screwdrivers only cost time soldering one of their leads.
robot parts! about $1 at WalMart and many other Soldering requires more than a
The most useful tool you can have general merchandise stores. A set of soldering iron. You want a holder for
is a multimeter. No matter how careful precision (i.e., small) screwdrivers will your iron so that you don’t put the hot
you are when building a bot, you will cost about $2.50. Most stores will also tip on your table. You also want some
make mistakes. You will put the batter- carry electrical tape and small hobby sort of holder for the items you are
ies in and it won’t run, or it will just knifes. Each should cost under $1. soldering and a sponge to keep the tip
turn left, or any of a dozen other sur- Finally, you will need a soldering iron of the iron clean. The kit for this article
prises will happen. The multimeter will and its related supplies. There is a signif- from Wright Hobbies includes a nice
be the first tool you will reach for to icant difference between the lowest cost little all-in-one holder for your iron,
debug the problem. Using the ohmme- irons and the mid-range irons, but with a your work, and a sponge. You will also
ter function of a multimeter, you can little work you can get the cheap iron to need some toothpicks (about $1), as
easily check each trace to look for loose work for you. It will be all right for light well as solder and the beginning
connections or bad solder joints and duty work. This will be the first item you solderer’s best friend — rosin paste.
see whether the sensor you hooked up
just fried. Using the voltmeter function,
you can make sure your components
PARTS LIST
are getting the right voltage, the I/O DESCRIPTION QTY. EST. PRICE
port is actually sending a signal, and • Multimeter 1 $9.99
the batteries have some juice left. • Wire Cutter/Stripper 1 $1.99
This isn’t precision work and any • Combination Pliers 1 $1.99
digital multimeter will do. The Harbor • Bent Nose Pliers 1 $1.99
Freight meter mentioned previously will • Closecut Diagonal Pliers 1 $1.99
• Sand Paper 1 $1.00
meet your needs for now. Even when it
• Soldering Iron w/Helping Hands Holder 1 $9.95
is not on sale, Harbor Freight sells them • Flux Paste 1 $2.00
for $10 and All Electronics has them for • Solder 60/40 0.03” dia. 1 $2.00
$7. The only thing that this low-cost • 9V Battery Connector 1 $0.25
meter doesn’t have that would be • 40 Pin Header 1 $0.50
useful to the beginning roboticist is an • LEDs 10 count pkg. 1 $1.29
audible continuity tester. The continuity • 360 ohm Resistors, 10 count pkg. 1 $1.89
tester produces a tone when there is a • Multipurpose PC Board 1 $1.49
low resistance path between the test • Screwdriver Set 1 $2.50
probes. This allows you to check paths • Precision Screwdriver Set 1 $2.50
without having to look at the readout • Electrical Tape 1 $1.00
of the multimeter. The meter included • Toothpicks 1 $1.00
in the kit for this month’s article
includes a continuity tester. TOTAL (before S/H) $45.32

SERVO 12.2006 69
Pawelski-edited.qxd 11/9/2006 10:58 AM Page 70

Beginner’s Robotics on $50 a Month


There are many different sizes and needed to build a robot!
varieties of solder that you can buy. I Soldering Next month, we will build a
won’t go into the differences here, but complete robot. This robot will be
I will recommend that thinner solder is The online material that goes with more than just a platform. It will be
better for electrical work, especially this article can be found at www. mobile, sense its environment, change
when using a cheap iron. Since a cheap wrighthobbies.net/guides/, as well how it moves based on what it senses,
iron will cool fast when it touches any as on the SERVO website at www. and be easily modifiable.
item that either absorbs or conducts servomagazine.com. It contains The robot will be programmed
heat, melting a big, thick piece of instructions for a project that will teach using BASCOM-AVR from MCS
solder is hard to do. In addition, begin- you how to solder and how to Electronics. You can download a free
ners have a tendency to use too much troubleshoot your circuits if they do not version of BASCOM-AVR complete with
solder. Using thinner solder will help work right the first time. The project manual from www.mcselec.com/
avoid that tendency. A small tube of consists of making multiple copies of a index.php?option=com_content&ta
60/40, 0.03” solder will cost under $2. simple LED circuit. The instructions sk=view&id=14&Itemid=41. BAS
Now, you need some items to use were placed online so that we could go COM runs on Windows 95 or newer
while practicing soldering. You need to into more detail than would be possi- PCs. The programmer we will be
get a 10 count package of LEDs ble in the limited space available here. building uses the parallel (printer) port
($2.59), 10 360 ohm resistors ($2), a so you will need to have a PC available
9V battery holder with wire leads Conclusion with a parallel port. If you do not
($.89), and a multipurpose PC board already have one, you can often pick up
($1.61). All of these things are in the By the time you have made five to an older PC at a computer repair shop
kit and are also available at 10 iterations of the circuit described in or a second-hand store for less than
RadioShack. You will also need a 40 pin the online instructions, you should be $50. Just make sure that the comput-
header ($0.50) which is in the kit or fairly comfortable with soldering and er’s operating system is Windows 95,
can be ordered from many online elec- bad joints should be rare. You now 98, 2000, NT, or XP. Until next month,
tronics stores such as All Electronics. have the basic tools and the basic skill have fun with your project! SV

70 SERVO 12.2006
Full Page.qxd 11/8/2006 3:02 PM Page 71
RoboResources.qxd 11/9/2006 10:08 AM Page 72

Tune in each month for a heads-up on


where to get all of your “robotics
resources” for the best prices!

Sound Generation
Techniques for Robots
O f our five senses, we use sight and
sound the most in order to survive.
Often, what we can’t see we can hear
“canned” sound module, typical in
such products as greeting cards or
musical ornaments. Most are pro-
alarms, such as the type that are hung
on a doorknob in a motel room. If the
doorknob is turned when the alarm is
— a train coming around a corner, for grammed with a song, though a few — armed, it emits a shriek through its
instance. Though we may not be able like the electronic whoopee cushion — built-in piezo speaker.
to see the train’s approach, we can are meant to emit a sound effect. These siren and warning modules
hear its engine, and probably its Most sound modules are com- are sometimes available surplus, but it’s
warning horn. It’s enough that we pletely self-contained, including a small more common to just pull the whole
know to stay clear of the tracks. speaker (piezo or dynamic magnet), a sound-making module out of the alarm,
We rely on visual and aural cues button battery, and some means to set and reuse it on a robot. Assuming you
throughout our daily lives. Consider the it off, usually a small pushbutton are needing your robot to act as a secu-
average outing in the car: Stop signs switch. You can salvage the sound rity guard, the main benefit of a siren
change colors to tell us when to stop and module from a greeting card or other module is the volume it produces.
when to hit the gas pedal. A crossing product and reuse it in your robot. Ordinary programmed sound modules
guard may use a whistle to get our atten- Craft stores are a good source of new like those described above have fairly low
tion. The flashing lights and wailing siren sound modules that can be added to volume levels — you need to be no more
of an ambulance get us to pull over so homemade ornaments. than a few feet away to hear it. With a
they can pass and attend to the injured. Controlling a sound module from siren module from a portable alarm, you
So, it should be the same with our your microcontroller or PC involves trig- can hear it from 100 to 300 feet away.
robots. We can use cues of various gering the module by electrical signal, Connecting the alarm electronics
types to help us understand the robot’s rather than by using its mechanical to your robot depends on the design of
current condition, or to notify us of pushbutton. Depending on the design the alarm. Some use a mechanical
some impending danger so we can of the module, you may be able to trig- tilt or mercury switch, so the same
intercede, and possibly prevent ger it simply by pulsing it with a short interfacing requirements are encoun-
mechanical damage. LEDs and LCD five-volt signal; with others, you may tered as with a preprogrammed sound
displays are commonly used for visually need to wire a small reed relay across module. Those that are triggered by an
annunciating a robot’s status; so too the switch terminals, then activate the electric pulse — from an optical tilt
can sound be used to help the robot relay from your controller or computer. switch, for instance — can usually be
communicate with us. When operating external devices, it’s directly interfaced to a controller or PC
In this month’s Robotics always a good idea to use a buffer IC without arcane means such as a relay
Resources, we’ll take a look at afford- on any output to prevent damage to (but still use a buffer IC in between).
able sound generation techniques for your controller or PC.
robots, from simple noise makers to Sound Effects Kits
sophisticated voice synthesizers. Siren and Other
Warning Devices Apart from the venerable blinky
Preprogrammed lights, sound effects kits are among
Sound Modules Similar to the programmed sound the most popular, because when
module are siren or warning devices constructed, they “do something.”
At the bottom of the sound food used with small personal security items. Several companies manufacture and sell
chain is the preprogrammed or These are found in battery-operated sound effects kits that you can use as self-
72 SERVO 12.2006
RoboResources.qxd 11/9/2006 10:08 AM Page 73

contained modules in your robot projects. ry, and play it back through
For example, the light-sensitive Theremin an on-board MP3 decoder.
Kit from Electronic Goldmine produces One way to add MP3
distinctly different sound effects by playback to your robot is to
altering the amount of light falling on hack an inexpensive MP3
two sensors. The company also sells a player. This is fine for a
10 note sound kit and several others. module that merely plays
Most sound effects kits are background music, but is
designed to be self-contained. That insufficient if you’re wanting
means they come with an amplifier, if the robot to play certain
they need one, and a speaker. music, voice, or effects
Controlling them on a robot requires under program control. The Rogue Robotics uMP3 all-in-one
interfacing the selector buttons to the There are a number of MP3 MP3 player development board.
outputs of your microcontroller or PC. development boards avail-
Fortunately, most kits come with a able that you can interface to your module can be used as a simple play-
schematic and you can more easily robot — depending on the power and back unit with special programming of
determine the voltage levels and cur- capabilities of the microcontroller or the board’s EEPROM.
rent draw through the switch inputs. computer operating your bot.
For example, the uMP3 from Voice Synthesis
Digital Sound Rogue Robotics is a fully self-contained Chips and Modules
Recording Modules MP3 playback development board. It
includes an onboard MP3 decoder chip The most elaborate type of sound
Thousands of projects have been (specifically the VS1011), low-power making device is the voice synthesizer.
built around the ISD ChipCorder series of amplifier (you can use an external These have been available in chip form
sound recording modules (now manufac- amplifier if you need more volume), on and off for the last couple of
tured and sold by Winbond). You can still and a Secure Digital connector for decades. The venerable General
purchase these chips from some direct connection to an SD Flash card. Instrument SP0256 speech chip is still
electronics distributors, such as Jameco The product supports SD cards sold by a few surplus outfits (see
(www.jameco.com). You can also find formatted with DOS FAT and FAT32 sec- SpeechChips.com in the sources sec-
them — or similar products — in ready- tors, so you can prepare your music and tion), and for many years this product
made products that you can salvage. I’ve other sound effects on your PC, then was about the only affordable alterna-
found inexpensive digital sound record- transfer them to the SD card for use tive to quality speech generation.
ing and playback modules in everything with the uMP3. Playback is controlled New products have been intro-
from picture frames to talking flowers. via a serial or parallel port. In addition to duced over the last few years, especial-
Recording time varies, but is MP3 files, the uMP3 will play files in ly with the emergence of robotics as a
usually five to 30 seconds. You can WAV format, and will produce simple bona fide hobbyist market. These
record your own voice or sound effect tones without the use of recorded files. include the Devantech SP03, Parallax
for later playback. The module has its Along similar lines, but without all EMIC, Magnevation SpeakJet, and the
own amplifier and speaker, or you can the features, is the MP3 breakout board Savage Innovations Soundgin. The lat-
add one. As above, if the playback from Spark Fun Electronics. It’s mostly a ter is a complex six voice sound synthe-
button is fully mechanical, you’ll need breakout board for the surface mount sizer, in addition to being a voice chip.
to experiment with the best means MP3 decoder chip; if you want a com- All of these solutions are designed to
of interfacing the device to your pletely self-contained sound-making be connected directly with a host
microcontroller or computer. apparatus for your robot, you’ll need a controller or PC, either via a serial or a
means to send MP3 data to the chip. A parallel port. Serial interfacing is perhaps
MP3 Recordable common method is to read data from a the easiest as it requires just two or three
Sound Modules Flash card, and send it to the decoder. wires. A parallel interface needs ground
Spark Fun sells a microSD Flash card plus up to eight connections to provide a
Sound units built around the breakout board, as well. full byte-wide port. If your microcon-
ChipCorder and similar products have a There’s also the MP3 module from troller or PC doesn’t support the interface
relatively limited recording/playback Olimex, which contains both the MP3 you need to work with the speech
time. Sound quality is also somewhat lim- decoder chip, SD media holder, and synthesizer of your choice, you can
ited to an 8 kHz monophonic range. That headphone amplifier. Playback is always use a parallel-to-serial or serial-to-
limits the devices to basic voice playback. intended to be controlled by a parallel chip to convert one to the other.
MP3 modules let you store voice, sound microcontroller; a 10-pin connector is These chips are low cost, but they do add
effects, and even music on Flash memo- provided to interface to a host. Or, the to the complexity of the overall design.
SERVO 12.2006 73
RoboResources.qxd 11/9/2006 10:08 AM Page 74

Most of the speech products — at selection is from a larger library of voice versions.
least the chip-level ones — are not effects. You can create your own sound
self-contained, meaning at the minimum effects from the many sound effects CDs Quasar Electronics
you need to add an amplifier and that are for sale. Though copyrighted, www.quasarelectronics.com
speaker. And the chip-level speech you are generally free to use the sound Do-it-yourself kits. See their section
synthesizers typically need a crystal, volt- effects for your own personal and non- of audio and sound effects kits.
age regular, and additional components. commercial use. Check the license agree-
The sellers of these products provide ment that comes with the CD to be sure. The Recordist
schematics for typical hookups. If you’re www.therecordist.com/pages/
interested in the GI SP0256, Speech Sources downloads.html
Chips.com sells a handy circuit board Free sound effects for games (and
that makes construction easy. They also Arrick Robotics robots!).
sell the oddball 3.12 MHz crystal that www.robotics.com
the SP0256 design specs call for. Sells a speech synthesis module Rogue Robotics
for the company’s Trilobot robot, www.roguerobotics.com
PC-based Sound adaptable to most any robot design. Makers and sellers of the uMP3
Generation Software self-contained MP3 development board.
Carl’s Electronics
Finally, if your robot uses a PC or www.electronickits.com Spark Fun Electronics
laptop, you can turn to software-only Do-it-yourself kits, including several www.sparkfun.com
solutions to generating sound. On the sound effects kits. Developers and sellers of several
Windows side, for instance, are all sorts unique sound-based products ideal for
of sound editing and playback pro- Devantech Ltd. robotics, including an MP3 breakout
grams that you can make use of. Need www.robot-electronics.co.uk board and a Flash media card adapter
to play the Star Trek theme when your Makers of the SP03 speech synthe- (holds data for the MP3 decoder chip).
robot enters the room? No problem! sizer module.
Get a recording of the song, and store SpeakJet
it on the hard drive. To play back the Electronic Goldmine www.speakjet.com
song, load it into a sound program, and www.goldmine-elec-products.com Main home for the Magnevation
play it through the PC’s sound card. Sound effects kits including a light SpeakJet speech processing IC.
A few websites provide free or near- Theremin, 10 tone organ, and chirp- Available through dealers, which are list-
ly free WAV recording/editing utilities chirp kit. ed on the website (includes Acroname,
and prerecorded sounds that you can SuperDroid, HVW Tech, and others).
use in your robot creations. For example, Electronix Express
the Sound Effects Generator program www.elexp.com SpeechChips
from Windows Games lets you generate Variety of kits, including the Sound www.speechchips.com
sounds by setting various controls. The Effects Generator (includes speaker). Sellers of a variety of speech-
full version of the program costs $10. related products, including surplus
There’s also a bevy of free recorded FlexiMusic — FlexiMusic General Instrument SP0256 speech
sounds, in MP3 file format, at the Generator chips, construction board for the
recordist.com. Most are short effects www.fleximusic.com/generator/ SP0256, and the SpeakJet.
intended for things like games, but they overview.htm
are equally adaptable for robotics. The Windows-based utility for creating Soundgin
musical and non-musical sound effects. www.soundgin.com
ABOUT THE AUTHOR Main home of the Savage
Olimex Innovations Soundgin complex sound
Gordon McComb is the author of www.olimex.com/dev/mod-mp3. generator and speech synthesizer. Sold
the best-selling Robot Builder’s html through dealers. Check the website
Bonanza, Robot Builder’s Sourcebook, Makers of an MP3 development for details.
and Constructing Robot Bases, all from board based on the VLSI VS1000 series
Tab/McGraw-Hill. In addition to of MP3 integrated decoders. Windows Games
writing books, he operates a small www.windowsgames.co.uk/
manufacturing company dedicated
Parallax, Inc. effects.html
to low-cost amateur robotics
(www.budgetrobotics.com). He can
www.parallax.com Example of freeware/shareware
be reached at robots@robotoid.com. Sellers of the EMIC speech sound generation software for
module. Available in male and female Windows. SV
74 SERVO 12.2006
Rubberbands.qxd 11/9/2006 10:17 AM Page 75

by Jack Buffington

The Great Serial Port Caper


How to Communicate With Your
Project Using USB

Itpasthas couple
been slowly happening for the
of years. They were
that genuinely support the robotics
and electronic hobbyist community.
DSR (Data Set Ready), DTR (Data
Terminal Ready), RI (Ring Indicator),
disappearing, one by one, until they Both Sparkfun and Parallax sell a and DCD (Data Carrier Detect). These
can hardly be found any more. You module based on the FTDI FT232R pins helped to keep buffers from
were minding your own business, chip. Sparkfun also sells a module overflowing back in the days when
working contentedly on your projects, based on the CP2102 chip by Silicon computers did their thing at very low
and didn’t notice. Recently, you Laboratories. Parallax and Sparkfun sell speeds. Although it was not verified
purchased a new computer and were the chips that they are using on their for this column, these pins may be
shocked to find that it lacked a serial modules individually, so if you develop useful again because these chips are
port. How could this happen? Your something that needs to be smaller or capable of speeds much higher than
trusty friend the serial port, that let you mass-produced, you can just buy the your computer’s serial port. The FTDI
communicate with all of your projects, chips by themselves. chip is capable of up to three
had disappeared. megabaud! That is 26 times as fast as
Serial ports have slowly been Available Features your old serial port could manage. The
disappearing over the past few years Silicon Laboratories chip tops out at
and are being replaced by the USB These two chips are largely the one megabaud. That is still plenty fast
port. In many ways, this is great same in the features that they offer. for nearly anything that you would
because it makes people’s experience Both of them have all of the I/O that a need to do with your robotic projects.
using their computers nicer. For a standard serial port has. Almost no Both of these chips can run under
hobbyist though, it can be a nightmare one uses anything but RX and TX either USB power or external power.
... or at least it was in the past. This anymore, but there are pins for RTS Internally, they run at 3.3 volts and
month’s column will take a look at a (Ready To Send), CTS (Clear To Send), can supply some power to external
couple different ways to transfer data
to and from your robotic project. CP2102 FT232R
Price for Quantity 1 $3.62 $4.10
Options for Data
USB Version 2.0 2.0
Transfer Internal — can be brought out
Clock Internal
The first way is to use a store- at 6, 12, 24, or 48 MHz
bought USB-to-serial converter. You Baud Rates Standard rates up to one Standard and nonstandard
could go to Office Depot or Best Buy megabit rates up to three megabits
and find one that spits out true RS-232 Buffer Sizes 567 byte RX, 640 byte TX 256 byte RX, 128 byte TX
data, but there are a few problems Package MLP28 28SSOP or QFN-32
with that. You are going to spend
Voltage Output 3.3V at up to 100 mA 3.3V at up to 50 mA
around $40 for the device, it will be in
a big plastic shell, and you’ll have to Drivers Available For Mac, Windows, Linux Mac, Windows, Linux
have a level shifter on your robot to Internal EEPROM 1,024 bytes 128 bytes
convert the +10V to -10V signal into Can also use four of its pins as
something that is actually useable. general-purpose I/O or eight
Other
Luckily, you can avoid those troubles by of them if you don’t use it as a
using modules made by Parallax or serial port
Sparkfun. Both are great companies Table 1. A comparison of the FT232R and CP2102 chips.

SERVO 12.2006 75
Rubberbands.qxd 11/9/2006 10:17 AM Page 76

Rubberbands and Baling Wire

enumeration, the The most important thing to set in


USB device tells the MProg is the amount of power your
computer what device will draw from the USB port.
type of device it is, The USB spec allows up to 500
various things like milliamps to be drawn from the USB
its name and serial port. This current can be split up
number, and among any number of devices. The
maybe most impor- computer will keep track of how much
tantly, how much power each device draws and if a
power it will draw device attempts to connect that would
at its maximum. draw too much power, the computer
For the will refuse to connect to it.
FT232R chip, there The FT232R chip has the ability to
is a utility called signal external devices when it is okay
MProg that allows to start drawing larger amounts of
you to change and power. When a device is connected, it
upload these set- is allowed to draw a maximum of 100
tings into the chip. milliamps. Once it has successfully
Figure 1. The MProg configuration utility. MProg is a little enumerated, it can draw up to the
quirky but does the amount that it reported to the host
circuitry. Both have an internal clock, job for you. The way that you can computer.
but the FTDI chip lets you bring it out adjust the settings that are in a chip is The FT232R chip has five pins that
to drive your processor with. That is to first go to the File menu and select can be used to signal various events.
pretty handy. There are a bunch of New. This will give you a blank slate to They can be used to drive LEDs to show
other minor differences between these work with. Since FTDI has several chips that a receive or transmit is happening
two chips. Table 1 shows a comparison that this program works with, the first or they can signal that they can draw
of the capabilities. thing that you will need to do is select their full amount of power. You can get
the type of chip that you are going to a 6, 12, 24, or 48 MHz clock signal
Custom Options and program. Now adjust all of the other from any of these pins.
Comparisons settings to match what you want. The Finally, you can set up this chip to
product description is what will show be able to use four of these lines as I/O
Let’s look at the customizations up in a little balloon on your desktop lines if you use a special driver. You will
that you can perform with the FT232R when you connect the chip to your still be able to do serial communication
and CP2102 chips. The most obvious computer for the first time. It is cool to through the chip at the same time.
thing that you can do with both is that see the name of your robot or other Alternately, you can set the chip into a
you can change some of the data that device that you may be working on mode where it stops being a serial chip
the chip sends to the host computer show up when you connect it. (The and instead drives the serial pins as an
when it ‘enumerates.’ Enumeration is a name you use doesn’t matter. The eight-bit I/O port. This also requires a
process that happens when you plug computer will still see the chip as a special driver.
an USB device into a computer. During USB-to-serial.) As you can see, the FTDI chip is
pretty cool. One drawback — at least
for the hobbyist — is that the chip is
pretty tiny. Unless you are fairly
advanced, you will probably want to
use one of the modules sold by Parallax
or Sparkfun.
Let’s take a look at the CP2102
chip’s configuration.
Silicon Laboratories, which pro-
duces the CP2102, has a program
called CP210xSetIDs.exe which lets you
set up various things about the chip
such as how much power it will be
drawing from the host computer, serial
number, and its product string. This
program is very straightforward and
Figure 2. The interface for CP210xSetIDs. easy to use. Simply plug in your device,
76 SERVO 12.2006
Rubberbands.qxd 11/9/2006 10:18 AM Page 77

Rubberbands and Baling Wire

hit the Update Device List button, the serial port directly. A good program difficult thing to figure out what is
select your chip, change the settings, to use is called serialterm. You can find going on with a robot when it is doing
and hit Program Device. Silicon this program online for free. It runs in higher level processing. Having it spit
Laboratories gives away a library of a command prompt so it definitely isn’t out short strings with a variable value
functions that you can call from your fancy, but it does a good job for simple or that tell you what routine it is
own software that will let you set all of serial communications. To use serial- currently running can be a huge help. It
the things that you can enter in term, just type from within a command is also handy to be able to chart data
CP210xSetIDs. One notable difference prompt: over time. By sending a number or two
between this chip and the FT232R is every once in a while to a PC, you
that when you connect this chip, your serialterm <com port> <port speed> can take that data and display it in
computer won’t play the USB connect ex: serialterm com4 9600 programs such as Microsoft Excel to
tones and won’t show the little balloon get a graphical idea of what is going
that tells you what it is that was Where To? on inside of your robot.
connected. Your device manager will One final advantage of USB serial
see the device, though. One thing that hasn’t been devices is that they can communicate
For this column, the drivers that covered is how do you know where at higher speeds than traditional serial
were available on Sparkfun’s website your USB port showed up? If you are ports. This means that you can start to
were used. If you want your running Windows, you can go into transfer image data or other large
device manager to show the device as your Device Manager and take a look blocks of data back and forth with your
something other than “SFE USB to at the ‘Ports (COM & LPT)’ section. robot with relative ease.
RS232 Controller,” you will need to Your serial port will show up there. For What will you do with these
compile your own drivers. This isn’t as example, it may look like ‘SFE USB to chips? SV
bad as it sounds. Silicon Laboratories RS232 Controller (COM4). In that
provides code that you can use to do example, you would know that you RESOURCES
just that. need to communicate with com 4
You might be wondering which when you want to communicate with Sparkfun
chip is better. If this column were to devices that are connected to your www.sparkfun.com
make a recommendation, it would be converter chip.
to use the FT232R for everything Parallax, Inc.
www.parallax.com
except extremely cost-sensitive Wrap-up
applications. It is nice that this chip
causes Windows computers to Being able to communicate with Serialterm
www.download.com/SerialTerm/
announce that they have a new USB your robot using a serial port is a very
3000-2094_4-10426540.html
device connected. You can rename handy thing. It can sometimes be a
the USB device to be whatever you
want without having to recompile the
drivers, and finally, you can achieve
triple the speed of the CP2102. Both
are good chips, however. If one is out
of stock, there isn’t any reason that
the other wouldn’t work just as well
for your robot, unless you need more
than one megabaud.

Test Time
Once you have your drivers
installed, you will probably be itching
to test these chips. A quick way to test
them is to simply put a jumper
between the RX and TX pins. Use a
terminal program to send data out of
the serial port. Windows comes with a
program called HyperTerminal. This
program works, but is a pain to use
since it expects you to use it with a
modem instead of just connecting to
SERVO 12.2006 77
RoboticTrends.qxd 11/9/2006 10:11 AM Page 78

by Dan Kara

Educational Robotics is the Smart Choice


Following in the footsteps of computers and computer science,
robotics will become part of grade school, high school, and
university level educational curricula across the industrialized world.

A
short press release came across that seeks to inspire an appreciation of robotics kits to each public high
my deck recently that would science and technology in young school. Students in the program will
at first blush seem of little con- people through a variety of robotics build robots that will compete in FIRST
sequence to the robotics community competitions. These competitions competitions. FIRST and Rhode Island
and even less to the world at large. But include the FIRST Robotics Competition will monitor the progress of the
upon further examination, the piece and FIRST Vex Challenge for high initiative and make adjustments as
portends a great deal for roboticists, school students, the FIRST LEGO necessary. The program is designed to
both of the professional and hobbyist League for children nine to 14 years engender an interest in science and
varieties, along with everyone old, and the Junior FIRST LEGO League engineering using “robotics” as the
concerned with improving educational for six- to nine-year-olds. hook. As such, the initiative is a win-
systems. For entrepreneurs looking for This unassuming press release win for FIRST and the State of Rhode
a sure thing, educational robotics is announced that Rhode Island will be Island, whose goals are to increase
a godsend. the first state in the nation to offer a high school science and engineering
The press release in question was FIRST program, specifically the FIRST proficiency at the national and state
put out by the Rhode Island Science Vex Challenge, in all of Rhode Island’s (Rhode Island) levels, respectively.
and Technology Advisory Council 67 public high schools, charter schools,
(STAC), the Business Innovation and career and technical centers. Educational Robotics
Factory, a state run Rhode Island Central to the project objectives are Proliferates
business development group, and plans to integrate the Vex Challenge
FIRST. I am sure many of you have into the state’s new standards for The Rhode Island/FIRST robotics
heard of FIRST, but for those who have science, technology, mathematics, and initiative is interesting as it stands, but
not, FIRST is a New Hampshire based engineering (STEM) education. when you start parsing through the
non-profit organization founded by The Rhode Island program ramifications of the announcement, it
Dean Kamen (inventor of the Segway) involves the dissemination of VEX really gets exciting. For example, it is
78 SERVO 12.2006
RoboticTrends.qxd 11/9/2006 10:11 AM Page 79


Formal inclusion of robotics in educational curricula
at all levels worldwide — across multiple disciplines,
including ‘robotics’ itself — is an opportunity that is
simply too massive to be missed.”

no secret that robotics classes are No Matter How You Cut It curricula and employed as educational
popping up at school districts across adjunct for any number of subjects.
the United States and throughout the It could be argued that the formal Employment (and purchase) decisions
industrialized world. Educators in these incorporation of robotics within school for classroom computer systems were
school districts, like the FIRST and age and university level curricula could made at the department, school, state,
Rhode Island governmental officials, take time. That is true. It is equally true, and even national level.
understand the fascination all things however, that the inclusion will eventu- In my lifetime, “computer science”
robotic have for students, and that this ally occur. Also, while formal programs as a classroom subject has moved from
appeal can foster interest in other are being developed, robotics will con- graduate school to preschool. You
engineering and scientific disciplines. tinue to be added to school curricula in would be hard pressed to find a school
What differentiates the Rhode an unstructured, organic manner. district in the US that does not
Island program is that they are embrac- Regardless of how it takes place, the offer some type of computer class.
ing robotics at the state level. How end result will be that robotics will This changeover differs from simple
long will it be before other states take become part of grade school, high technological advancement, say, the
the lead from “little Rhody” and initiate school, and university level curricula introduction of PC systems, or when
similar programs? Massachusetts, across the industrialized world. slide rules gave way to calculators, or
California, and Pennsylvania all consid- overhead projectors were replaced by
er themselves leaders in the robotics Personal Computers their LCD counterparts. Computer
field, and all, like every other state in Provide an Example science replaced nothing. It is has
the US, are looking for ways to increase become a “field” — like mathematics or
interest in science and technology The growth and expansive employ- biology — and similarly it is part of the
among their students. Word travels ment of new technology as a teaching educational curricula at the graduate,
fast among business development tool is not unprecedented. Many of us, undergraduate, and K-12 levels
professionals, as well as between those and I am dating myself here, can throughout the world.
chartered with developing educational remember a time when personal com- From a historical perspective,
curricula at the district, state, and puters and computer science classes computer science then became a
national levels. Taking the Rhode were not found in K-12 schools (or at separate discipline, but typically part of
Island/FIRST press release to its logical the university level). an engineering or computer sciences
endpoint, robotics will become central Initially, it was the technology — department. Finally, computer science
to educational systems across the “computers” — and not the subject — became recognized as a core
United States. “computer science” — that made curriculum item worthy of its own
It gets even better. Remember, the inroads into school systems. For those department.
fascination with robotics transcends of you old enough to remember, recall
national boundaries. Children in that it was individuals that began to Now For Robotics
Germany, Japan, Korea, India, and bring computers into school environ-
Great Britain all are equally captivated ments, often as a novelty. Educators So much for computers and
by robotics systems. In countries across soon found that computer systems computer science. Now consider
the world, those responsible for edu- made excellent educational facilitators “robotics.” Here, we see the same pat-
cating the future workforce — a work- and used them as such at the class- tern emerging. Consider the following:
force that must compete in an interna- room, departmental, and school level.
tionalized economy where science and For example, the statistical analysis • Organic Growth — Robots and
engineering acumen of workers can of tree populations in the biology robotic technology are introduced in
mean the difference between main- department became much more the individual classroom or school as a
taining standards of living or falling interesting and fun when computers novelty item and teaching tool.
behind — robotics is rightly viewed as a were used in place of pad and paper
key enabler and educational tool. In techniques. Eventually, computer • Robotics as an Engineering and
these countries, like the US, robotics systems (primarily PC systems) spread Science Education Facilitator — Robots
will become a mainstay of educational from department to department and robotic technology are introduced
curricula at all education levels. becoming formally incorporated into at the school, district, and state level as
SERVO 12.2006 79
RoboticTrends.qxd 11/9/2006 10:11 AM Page 80

an inducement and facilitator to • Robotics as a Core Curriculum Item — nations, looking to increase science
increase science and engineering Robotics becomes a core curriculum and engineering proficiency of their
proficiency. item unto itself with its own students (and future workforce). With
department. the Rhode Island/FIRST statement,
• Robotics as an Engineering and along with similar announcements
Science Educational Adjunct — Robots Already we are witnessing the first made in other industrialized nations,
and robotic technology become two stages of the educational robotics it is clear that the first wave of
incorporated into multiple disciplines lifecycle, and a handful of universities unstructured, organic incorporation of
and departments, including those have reached the other stages. It is robotics into school systems is giving
outside of science and engineering. clear that we are at the Early Adaptor way to more formalized approaches.
stage of the educational robotics Ultimately, the call for robotics to be
• Robotics as a Separate Discipline — adoption lifecycle (to borrow a phrase included in curricula will be made at
Robotics is recognized as a separate from the Information Technology the state and even national level.
educational/engineering discipline, but market). The implication, however, is For entrepreneurs and those
incorporated within other departments clear. Robotics — like the computers looking to robotics as a profession,
(computer science, engineering, etc.). and computer science before it — will educational robotics represents a
become an integral part of educational massive market in the earliest stages of
Dan Kara is President of Robotics Trends, systems throughout the world, even growth. The FIRST/Rhode Island press
the producer of the RoboBusiness to the point of becoming a distinct release gives little outright indication of
(www.robobusiness2006.com) and discipline. the market potential, but with a little
RoboNexus (www.robonexus.com) imagination and forethought, the
conferences, and publisher of Robotics Educational Robotics opportunity is made plain. Formal inclu-
Trends (www.roboticstrends.com), an Everywhere sion of robotics in educational curricula
online news, information, and analysis at all levels worldwide, across multiple
portal covering the personal, service, The use of robotics as a teaching disciplines, including “robotics” itself, is
and mobile robotics market. He can be tool and facilitator is the smart choice an opportunity that is simply too
reached at dk@roboticstrends.com
for educators, along with states and massive to be missed. SV

MOTION
MOTION CONTROL MIND
IN THE PALM OF YOUR HAND
DC MOTOR CONTROLLER
6VDC-36VDC MOTORS POSITION CONTROL
25A PEAK 9A CONTINUOUS VELOCITY CONTROL
ANALOG CONTROL LIMIT SWITCHES
BUTTON CONTROL ENCODER INTERFACE
R/C PULSE CONTROL RS232 OR TTL COMMUNICATION
SERIAL CONTROL ASCII OR BINARY PROTOCOL

3
Solutions 3.6” x 2.4” $75/UNIT
SOLUTIONS CUBED PHONE 530-891-8045 WWW.MOTION-MIND.COM

80 SERVO 12.2006
RobolinksDec06.qxd 11/9/2006 8:23 PM Page 81

Electronic Parts & Supplies


Since 1967

For the finest in robots, parts,


and services, go to
www.servomagazine.com
and click on Robo-Links to hotlink
to these great companies.

SERVO 12.2006 81
BookstoreDec06.qxd 11/9/2006 10:58 PM Page 82

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- s Along with the first Here is an awesome
tions-driven guide to
Ship 6 14 issues of SERVO next-generation collec-
.0
11.21
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 NEW 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 you’ll need on CNC robotics! may be subject to change. ing, fundamental procedures, and mechani-
$34.95 cal and electrical components. $49.95
82 SERVO 12.2006
BookstoreDec06.qxd 11/9/2006 10:59 PM Page 83

To order call 1-800-783-4624 or go to our Mind Cand


For Today y
website at www.servomagazine.com Roboticis ’s
t
Nuts & Volts CD-Rom Teach Yourself Electricity and 123 Robotics Experiments
Here’s some good Electronics — Fourth Edition for the Evil Genius
news for Nuts & by Stan Gibilisco by Myke Predko
Volts readers! Learn the hows and If you enjoy tinkering in
Along with all 12 whys behind basic elec- your workshop and
issues of Nuts & tricity, electronics, and have a fascination for
Volts from the communications with- robotics, you’ll have
2004 calendar out formal training. The hours of fun working
year, the 2005 best combination self- through the 123 experi-
issues are now N E W ! teaching guide, home ments found in this
available, as well. reference, and class- innovative project
These CDs include all of Volumes 25 and 26, room text on electricity book. More than just
issues 1-12, for a total of 24 issues (12 on and electronics has an enjoyable way to
each CD). These CD-ROMs are PC and Mac been updated to deliver the latest advances. spend time, these
compatible. They require Adobe Acrobat Great for preparing for amateur and com- exciting experiments also provide a solid
Reader version 6 or above. Adobe Acrobat mercial licensing exams, this guide has been grounding in robotics, electronics, and pro-
Reader version 7 is included on the discs. prized by thousands of students and profes- gramming. Each experiment builds on the
$24.95 – Buy 2 or more at $19.95 each! sionals for its uniquely thorough coverage skills acquired in those before it so you devel-
ranging from DC and AC concepts to semi- op a hands-on, nuts-and-bolts understanding
Robot Builder's Sourcebook conductors and integrated circuits. $34.95 of robotics — from the ground up. $25.00
by Gordon McComb
Fascinated by the
world of robotics, PIC Microcontroller Project Book Linux Robotics
but don’t know how by John Iovine by D. Jay Newman
to tap into the incred- The PIC microcontroller is If you want your robot
ible amount of infor- enormously popular both to have more brains
mation available on in the US and abroad. The than microcontrollers
the subject? Clueless first edition of this book can deliver — if you
as to locating specific was a tremendous success want a truly intelligent,
information on robot- because of that. However, high-capability robot —
ics? Want the names, in the four years that have everything you need
addresses, phone passed since the book is right here. Linux
numbers, and websites of companies that was first published, the Robotics gives you
can supply the exact part, plan, kit, building electronics hobbyist market has become step-by-step directions
material, programming language, operating more sophisticated. Many users of the PIC for "Zeppo," a super-smart, single-board-
system, computer system, or publication are now comfortable shelling out the $250 powered robot that can be built by any
you’ve been searching for? Turn to Robot for the price of the Professional version of the hobbyist. You also get complete instructions
Builder’s Sourcebook — a unique clearing- PIC Basic (the regular version sells for $100). for incorporating Linux single boards into
house of information for that will open This new edition is fully updated and revised your own unique robotic designs. No pro-
2,500+ new doors and spark almost as many to include detailed directions on using both gramming experience is required. This book
new ideas. $24.95 versions of the microcontroller, with no- includes access to all the downloadable
nonsense recommendations on which is programs you need, plus complete training
better served in different situations. $29.95 in doing original programming. $34.95
JunkBots, Bugbots, and
Bots on Wheels
by Dave Hrynkiw / Mark W. Tilden
$ 2 0o fe ach
From the publishers f if y o u
1 5 % t w o oror
of BattleBots: The buy
Official Guide comes mo r
or e .
this do-it-yourself
guide to BEAM
(Biology, Electronics,
Aesthetics,
Mechanics) robots.
They're cheap, sim-
ple, and can be built
by beginners in just a
few hours, with help from this expert guide From HomoSapien to RoboSapien Before R2D2 there was R1D1
complete with full-color photos. Get ready
for some dumpster-diving! $24.99 SERVO Magazine T-Shirts
Get your very own limited-edition SERVO Magazine T-shirt. Shirts come
Check out our online bookstore at in sizes S, M, L, and XL, and are available in either black or white.
www.servomagazine.com for a complete
listing of all the books that are available. All shirts are 100% pre shrunk cotton.

SERVO 12.2006 83
MenagerieDec06.qxd 11/9/2006 11:40 AM Page 84

Continued from Page 25

2006 SEATTLE ROBOTICS SOCIETY ROBOTHON

Winning Entry of the 2006


RoboMagellan Contest.

84 SERVO 12.2006
MenagerieDec06.qxd 11/9/2006 11:41 AM Page 85

WANTED: US DISTRIBUTORS AND DEALERS


For EUROPE’s No.1 (Educational) ROBOT KITS

ETI robot kit INCLUDING


Walking robot, programmable in C. LINU
With many extension kits. ASURO Educational b SO
ASURO robot kit
Developed by DLR (www.
Programmable in C.

SO
Ideal for beginners!

OUR ROBOTS ARE ALSO ROBBY RP-5 robot kit


AVAILABLE AS CHASSIS KITS Europe’s most advanced robot!

WWW.AREXX.COM & WWW.AREXX.NL


More information or interested in distributing these exciting robot bestsellers in the USA?
AREXX Engineering, Nervistraat 16, 8013 RS Zwolle – The Netherlands,
T: +31 38 4542028, F: +31 38 4524482, E: info@arexx.nl, www.arexx.com
SERVO 12.2006 85
Appetizer.qxd 11/9/2006 10:52 AM Page 86

An Invitation to Computer
Vision With OpenCV
by Robin Hewitt

I attended my first hobbyist robotics


club meeting at the Robotics
Society of Southern California in 2003.
taken me back to college, as well. I’m
fortunate to live near UC San Diego,
home to several substantial research
been possible without another resource:
free, public software. SodaVision was
developed with the help of two free
I wasn’t sure if I’d enjoy building programs in computer vision, robotics, software packages: OpenCV for com-
robots as a hobby, but I knew I want- and computational intelligence. puter vision, and ANN for data retrieval.
ed to try something new, and the idea Through an extended studies program, (URLs for both are listed in the Links
of making robots was intriguing. The courses at UCSD are open to the gen- box.) The basic video input, face detec-
meeting opened with a presentation eral public as well as to regular stu- tion, and face recognition capabilities in
about the challenge of implementing dents. The opportunity to participate in SodaVision were implemented with
visual processing for an entry in the computer-vision research, and to come functions that are included in OpenCV.
2004 DARPA Grand Challenge. From into contact with the bright young stu- OpenCV is rapidly becoming a
that moment, I was hooked. I knew dents working on these projects, has standard toolkit for computer-vision
immediately that this was something I been a stimulating experience for this research and development at many
wanted to be doing! middle-aged, mid-career programmer. universities, as well as at UCSD. A
Three and a half years later, I’m One of the projects I encountered number of graduate students use it in
glad, and grateful, for that serendipitous at UCSD was SodaVision. Now here’s a their projects, and professors use it in
first exposure to computer-vision and to wild and crazy idea: Let’s give a soda- their courses – at both the graduate
the challenge of creating vision capabili- vending machine the ability to identify and undergraduate levels.
ties for autonomous robots. During the people who use it by visual face No vehicles completed the 2004
intervening period, enabling robots to recognition. Let’s also give customers Grand Challenge I’d heard about dur-
see the world around them grew from the option of setting up an electronic ing my intitial introduction to hobby
my weekend hobby into a passion that’s account that the soda machine can robotics and computer vision. But the
re-invigorated my career as a profession- automatically debit. If it “knows” you, it following year, several did. The team at
al programmer and engineer. gives you your drink and pays for it out Stanford University that built Stanley —
It brought me this past summer to of your account. Too bizarre to be true? the winning entry in the 2005 Grand
Idealab in Pasadena, CA where I was Well, guess what ... In fact, see for Challenge — also used OpenCV for
privileged to work with the industry yourself at http://sodavision.com. computer-vision development.
innovators at Evolution Robotics. It’s Sure, there are more practical What about you? Would you like to
projects one might choose to tackle. incorporate computer-vision capabilities
LINKS But hey, this was fun. It also attracted into one of your robotics projects? If so,
media attention for the students who I invite you to join me in 2007 as I take
Robotics Society of Southern California worked on it. It was featured in you through a five-part introduction to
http://rssc.org
Slashdot and on the local news. using OpenCV, starting in January, right
SodaVision If you look at the contributors’ here in SERVO Magazine. I’ll pass on
http://sodavision.com page, you’ll also see me listed. Those the experience I gained from working
weird-looking views of users’ faces on on SodaVision, and show you how to
OpenCV the project’s home page were my doing. use OpenCV to detect and track faces,
http://sourceforge.net/projects/
opencvlibrary They’re the output of a pre-processing and even to recognize individuals.
step to improve recognition quality. Wishing you joy on all your
ANN In addition to volunteer and stu- robotics projects and fun beginnings
www.cs.umd.edu/~mount/ANN dent labor, this project might not have in 2007! SV
86 SERVO 12.2006
Then&Now.qxd 11/9/2006 6:02 PM Page 87

Then NOW

a n d
BIONICS — WHERE ROBOTS
MEET HUMAN FLESH
b y T o m C a r r o l l

“Steve Austin, astronaut. A man barely alive. Gentlemen, we can rebuild him.
We have the technology. We have the capability to build the world’s first bionic man.
Steve Austin will be that man. Better than he was before. Better, stronger, faster.”

F or those of us who were around


in the mid-70s, or who like to
watch re-runs of old sci-fi shows,
(however strong that is).
Of course, all us technical types
ripped apart the mechanics of how
mal left arm when he did certain
feats? We really didn’t care one iota;
we just eagerly looked forward to one
these words still ring in our ears. Austin was rebuilt, wondering just episode after another as our hero,
These words are from the television what type of power source he had Steve Austin worked for the OSI
series The Six Million Dollar Man, within his body to supply this tremen- (Office of Scientific Intelligence) as a
in which the main character, dous energy. Dr. Frankenstein’s secret agent. Hey, it was just fiction,
ex-astronaut Steve Austin is referred monster of old was strictly biological right? We knew that even six billion
to as a bionic man (see Figure 1). replacement of human parts so we dollars wasn’t enough to create such a
This is the source that most people didn’t have any trouble enjoying man or cyborg. The field of medical
who are not into robot experimenta- those early horror movies. Nuclear bionics was the stuff of doctor’s
tion usually recall hearing the term power was referred to but we all science fiction dreams.
bionics. know that modern nuclear power We didn’t have the technology
The TV series was based upon the plants just use decaying uranium in back then, but do we actually have it
science fiction novel Cyborg by Martin the place of coal or oil to boil water in now? We certainly don’t have any
Caidin. The opening credits of the the same old way to turn a turbine. sort of motors and actuators that fit
show featured actual NASA 1967 Also, how could
footage of a real-life accident of the he withstand Figure 1. Courtesy 1974 Figure 2. Monty Reed
Northrop M2-F2 lifting body tumbling the acceleration ABC TV files. and his life suit.
down a runway. Bruce Peterson of running and
piloted the un-powered “lifting body” jumping? How
precursor to the space shuttle and did he control
he actually survived reasonably these amazing
unscathed, although he lost an eye devices hooked to
due to an infection acquired while in his fragile body?
the hospital. What type of
Austin supposedly was a bit more internal structure
injured and had both legs, an arm, did he have inside
and an eye replaced by “modern his body to
technology.” The replaced left eye had transfer the forces
a 20.1-1 zoom lens and night vision. from the “bionic”
The legs allowed Steve to run 60 mph arm to his legs?
(at least that’s what the opening How did he pre-
credits scene shows on a speed vent his powerful
measuring device). The replaced right right arm from
arm had the strength of a bulldozer crushing his nor-
SERVO 12.2006 87
Then&Now.qxd 11/9/2006 6:03 PM Page 88

robotics becoming part of the more modern prosthetic arms and


us? In medicine, bionics legs that have spring-loaded movable
means the replacement joints and re-positionable joints do not
or enhancement of organs qualify. It was the advent of small,
or other body parts by efficient, battery-powered electric
electro-mechanical systems. motors that made true bionic limbs
It has also been called possible.
biomimetics, biognosis,
biomimicry, or bionical Artificial Hearts
creativity engineering (that’s
Figure 3. Artificial Figure 4. Jarvik-7 a mouthful). Some have said However, some of the most
arm with a hook. artificial heart. it is a short form of biome- noteworthy bionic additions to
chanics and others say, “no, humans were not appendages but
in a human-sized arm yet have the it is bio-electronics.” replacements for failing or failed
power of a Caterpillar bulldozer. The Zachary Sterne supposedly coined human organs. Artificial hearts are the
same goes for a set of human-sized the term at a conference in Oakland, most prominent of these devices, as
legs that can approach cheetah CA in 1960. Sounds a lot like the they are lifesaving implants within the
speeds. Emergency rescue units have controversy about the definition body, not just life-enhancing additions
“the jaws of life” hydraulic cylinders of the word “robot,” doesn’t it? How such as arms and legs. Prototype
that can rip apart mangled cars but do these things differ from typical pros- artificial hearts were first developed
they have a separate gas engine theses? Bionic implants or additions back in the mid-1950s when Dr. Paul
driving a hydraulic pump for power. differ from prosthetics by mimicking Winchell first patented his artificial
These devices cannot fit inside a the original appendage or organ heart.
person’s body. In previous issues of function very closely or even surpassing The best known artificial heart is
SERVO, I have discussed how people its capabilities. the Jarvik-7 named after its designer,
have become intimate with robots American physician Robert K. Jarvik
and how we have shared some Replacement and was first used in the early 1980s
distinctly human characteristics with Human Parts (Figure 4). It functions much like a
our mechanical brethren. They move natural heart and has two pump
about our house doing chores for us, The replacement of parts of the sections like our own ventricles that
can care for us when we are disabled human body with non-living parts is pump the blood from the inlet to an
or ill, and can see, hear, and speak, certainly not new. Legs have been lost outlet valve. Seattle dentist, Barney
so how much more intimate can in battles for millennia and wooden Clark survived on the Jarvik-7 for 112
they be? legs have been attached to the body days in 1982. He died because of
The August ‘05 issue of SERVO with various types of straps to give the medical complications, not because
featured a friend of mine from wearer a certain degree of mobility. his artificial heart had failed. A later
the Seattle Robotics Society, Monty For centuries, glass eyes, teeth carved patient, William Schroeder, lived for
Reed and his Lifesuit — a robotic from bone and ivory, and arms with 620 days.
exoskeleton that he fits over his body hooks have also been attached to the This type of artificial heart had
to allow him, or another person body after loss. What would we have two major drawbacks: the need for an
who is disabled, to walk like you or I called Captain Hook without his arm external air compressor to drive the
(Figure 2). Is this bionics? No, not prosthesis? heart and the formation of blood
really as it is external to the body and Figure 3 shows a slightly more clots within the heart. The human
does not replace a missing appendage modern artificial arm with a hook. heart is a powerful muscle that
or organ. None of these bodily additions can requires a lot of energy to pump
Well, if something like an qualify as bionics as they were just blood throughout our bodies, a big
exoskeleton is not bionics, how about non-moving add-ons to the body. Even task for a mechanical replacement.
We generally think of blood as a red
Figure 5. The AbioCor Figure 6. The Utah Arm. liquid like any other liquid, but it is
artificial heart. composed of many types of fragile
cells that are easily damaged by
mechanical devices. It is this damage
that causes stroke-causing clots.
Although about 90 people received
the Jarvik-7, it was these problems
that caused these types of artificial
hearts to only be used as temporary
life-sustaining devices until an organ
88 SERVO 12.2006
Then&Now.qxd 11/9/2006 6:03 PM Page 89

transplant became available. water or similar action. The arm still play on the title of the three decades’
Figure 5 shows a second type of had to be positioned by the wearer’s old TV series. It focused on the future
artificial heart — the AbioCor — which other natural hand for the best application of bionics and the rehabil-
became available in 2001. Unlike the location of the artificial hand. Even itation of people who had lost limbs
Jarvik-7, the AbioCor is powered by an some of the newer types of powered in accidents. One of the featured
internal electric motor and has no prostheses with multiple axes of topics was the control of prosthetic
connections outside the body, thus motion could only operate one joint arms by thought, not movement
reducing the risk of an infection. It has at a time. of muscles to produce control
an internal backup battery to drive the signals. The Rehabilitation Institute of
heart and that is kept charged by two The Utah Arm Chicago’s (RIC) Neural Engineering
inductive coils, one just under the skin Center for Artificial Limbs (NECAL)
and the other outside the body to One of the first artificial arms has developed such an arm prosthe-
transfer the energy to keep the heart controlled by electrical signals from sis. Jesse Sullivan is touted as the
pumping and the internal battery muscles was the Utah Arm and Hand world’s first “Bionic Man,” according
charged. developed in 1981 at the University of to the Rehabilitation Institute of
An external battery pack is worn Utah by the Center for Engineering Chicago and his doctors describe him
on a belt or suspenders and enables Design led by Dr. Steve Jacobsen. In as “the first amputee with a thought-
the patient to be mobile. No artificial 1987, the Salt Lake City company, controlled artificial arm” (Figure 7).
heart design has yet been able to Motion Control, released the Utah In May 2001, Sullivan lost both
use the body’s own natural biological Arm 2 “with entirely re-engineered of his upper extremities as a result of
energy. The ideal energy source would electronics that made the Utah a power line accident. What every
be an internal biological fuel cell that Arm one of the most durable and lineman fears is not a fall from a
would convert glucose into power for dependable myoelectric arms tower or pole but coming in contact
the artificial heart. available,” according to the company. with tens of thousands of volts at
There are several patients who This arm is controlled by muscle many amps. Both of his arms were
have been kept alive for several years (myo-) electrical signals derived from burned beyond repair and what was
with the AbioCor. A related device — sensors attached to the skin near the left of them was amputated. After a
the ventricular assist device (VAD), or stump of an amputated arm. The Utah period of recuperation, RIC began
artificial ventricle — is an internally Arm 3 was released in December of working with Sullivan to apply their
implanted pump designed to aid a 2002 that had electric elbow, hand, amazing thought-controlled arms to
person with a failing left ventricle. It and wrist functions. Five units were his body.
does not require the removal of the placed into field trials on every-day He can now climb a ladder at his
patient’s heart as would be with a wearers of a transhumeral (higher house in Dayton, TN, and apply a
“typical” artificial heart. level) electric arm prosthesis (Figure 6). fresh coat of paint with a paint roller.
By early 2004, a total of 27 Beta units He can also use a weed-whacker,
Motor-Driven of the Utah Arm 3 had been placed
Appendages and fitted to regular users. The Figure 8. Body bracing for the
newest version can allow users to “bionic” arm.
There are many other types of simultaneously control both elbow and
“additions” to the human anatomy hand motions.
that have enhanced people’s lives over In early April of this year, a
the years. The cochlear implant within special panel discussion at the
the ear to allow the deaf to hear Experimental Biology 2006
is another of the more dramatic Conference in San Francisco was
developments. Artificial retinas, titled “The Six Billion Dollar Man,” a
kidneys, pancreas, and heart-lung
machines are some of the others, Figure 7. Jesse using his bionic arm.
but it is the electrically movable
appendage that interests the
robotics experimenter the most.
The earliest motorized
appendages were arms that had
manually controlled, electrically
driven hands and wrists. These
devices allowed users to grasp
objects with the prosthetic hand
or claw and to rotate the wrist
to allow pouring of a glass of
SERVO 12.2006 89
Then&Now.qxd 11/9/2006 9:20 PM Page 90

sensed via surface electrodes and grasp a banana just by thinking about
carried through to the mechanical the “simple” task. “The first time
arm, causing the arm to move. Today, I peeled a banana one-handed, I cried.
Sullivan is able to do many of the rou- I use it to help with cooking, for
tine tasks he took for granted before holding a laundry basket, for folding
the accident like “putting on socks, clothes — all kinds of daily tasks,” she
shaving, eating dinner, taking out the says. This new arm is “absolutely
garbage, carrying groceries, and amazing” touts the press.
vacuuming.” Yes, the arms are a bit Going from what we had “then”
unwieldy and robot-like with motors — wooden legs and arms that did not
Figure 9. Claudia Mitchell. and wires protruding, but for move at all — to life-like arms with
someone with no ability to manipulate mind and microprocessor control
bending his elbow and rotating his objects, it’s “a gift from Heaven.” It that we have “now,” well, we’ve
forearm to cut weeds and grass. And will be dramatically improved in come a long ways. Yes, we have
most of all, he is overjoyed to be able the future. quite a bit of improvement ahead
to hug his grandchildren. Sullivan can The whole assembly weighs just of us and I foresee a few SERVO
think, “Close my hand,” and electrical 5.5 kg although body bracing is readers involved in this research and
signals sent through nerves that have still required as it cannot yet bolt development.
been surgically re-routed make it successfully into the existing bone As with all my articles, this is just
happen. It is a variation of what structure (Figure 8). It does suffer from “the tip of the iceberg.” I encourage
is called a muscle reinnervation slow speed and poor durability, you to dig deeper on the Internet to
procedure that takes an amputee’s but progress is being made and a get to the bottom of each subject
own nerves and connects them to commercial version is expected to be that I cover. There are literally millions
a healthy muscle. ready by 2008. of links that cover the subject of
Four of Sullivan’s nerves were Sullivan is not the only person to artificial limbs and bionics. Look
dissected from the shoulder and make use of this new technology. back at the November ‘05 issue of
transferred to the muscles of his chest. Figure 9 shows Claudia Mitchell — SERVO to David Geer’s article on
Thought-generated nerve impulses are a woman who lost her arm at the “The Shadow Dexterous Hand
shoulder in a motorcycle accident and Knows” for a great piece on an
ABOUT THE AUTHOR has become the fourth person (and artificial hand. Also, look at a copy of
first woman) to become the recipient one of the “Evil Genius” series of
Retired from Rockwell and NASA of the thought-controlled arm. An books entitled Bionics for the Evil
projects, Tom Carroll is a space ex-Marine, her accident was not Genius by Newton Braga. It covers a
robotics engineer. He's authored service related but turned her life lot on a bionic ear, vision, and smell
numerous articles on combat upside down. She first had to get used sensing, through more sensory than
robots, lives on an island in the to using a standard “hook” type of robotic manipulative appendages. It
Pacific Northwest with his wife, Sue, prosthetic arm, and now she is looking is a fun and inexpensive way to learn
and enjoys robotics, kayaking, and
forward to having a new generation bionics via 25 complete projects.
hiking. He can be reached at:
arm that will allow her to feel objects. There’s also some good biology
TWCarroll@aol.com
Like Sullivan, she can reach out and information. SV

Advertiser Index
All Electronics Corp. ..............................48, 81 Homebrewed Robots ..................................81 RidegSoft, LLC ...............................................81
AREXX Engineering ...............................81, 85 Jameco Robot Store ................................2, 81 RoboteQ .......................................................43
BEST Robotics Competition ........................71 Lorax Works ............................................48, 81 Robot Power ................................................39
Budget Robotics ..........................................77 Lynxmotion, Inc. .............................................3 RobotShop, Inc. .....................................48, 81
COMBOTS .....................................................38 Maxbotix .......................................................81 SCIENTIFICS....................................................17
Maximum Robotics ................................47, 81
CrustCrawler .................................................13 Scon Technologies .................................49, 81
Net Media .....................................................91
DynoMotion .................................................81 Snail Instruments...........................................81
NU-BOTICS ....................................................49
Electronics123 ..............................................49 Ortech Education Systems .........................37 Solarbotics.....................................................21
Futurlec ..........................................................81 Parallax, Inc. ...................................Back Cover Solutions Cubed ...........................................80
Hitec ..............................................................21 Plantraco .................................................49, 81 Technological Arts .......................................81
Hobby Engineering ........................................9 Pololu Robotics & Electronics .....................70 The Robot MarketPlace .........................32, 81
HobbyLab .....................................................49 RCATS ............................................................49 Vantec ...........................................................39

90 SERVO 12.2006
CoverInside.qxd 11/8/2006 2:43 PM Page 2

Perfect holiday gifts for kids of all ages!

robotic kits
Robotic Kits Components...
chassis
...there’s 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 Jameco’s
servos selection of fun and interactive kits! You or your child can assemble the kits and
then enjoy endless hours of discovery.

passives Check out our unique selection of robotic kits at www.RobotStore.com!


. Robot Insects & Animals . Programmable Robots
. Solar Robots . Educational Kits
. Listening, Touching & Seeing Robots . Legged and Wheeled Platforms
optos

. Hackable Robots . OctoBot Survivor Kit


integrated circuits
At Jameco’s RobotStore you can get the world’s most complete robotic offering—
all in one place! You’ll find kits for all ages and experience levels, along with gear
semiconductors boxes, servos and chassis, for those who are ready to take on the extreme.

muscle wires Robotic Kits


and Components...
The World’s
Complete OfMost
fering!
Enthusiasts,
Start Dream
ing...
Gift Givers
,
connectors Take Note..

Engineers,
.

We’ve 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
1 2>
$7.00

4
CANADA

74470 58285
$5.50
U.S.

0
Vol. 4 No. 12 SERVO MAGAZINE DARwIn • TWIN MOTOR DRIVER • BEGINNER’S ROBOTICS ON $50/MO • INTERFACE YOUR PC TO R/C December 2006
Page 84
12:53 PM
11/10/2006
Cover.qxd

You might also like