Sei sulla pagina 1di 84

Cover.

qxd 1/12/2006 5:45 PM Page 84

Vol. 4 No. 2
SERVO MAGAZINE
Parallax

Motor Size:
Motor Supply:

ROBOT SOCCER CHAMPION LASER POINTER ROBOSAPIEN V2 SERVO CONTROL


Logic Supply:
Load Current:
St

Pulse Input:

Modes:

Fault Reset:
Indicators:
Fuse:
Cooling:
Terminals:
Weight:
Size:
Mounting:
Included:

Februar y 2006
February 2006

www.servomagazine.com
CoverInside.qxd 1/10/2006 11:07 AM Page 2

The One-Stop Source For


All Your Robotic Needs... Whats the difference?

Now, More Products


Than Ever!
The internets first and best robotics source
is back with hundreds of new products
that make our selection better than ever!

Were adding hundreds more new robotics


products every month. Plus well continue
to supply favorites like Muscle Wire,
Passives
the OctoBot Survivor Robot and more.

Interconnects
Be sure to visit us online at

www.RobotStore.com/SR8 Price! Power Products


or call us

1.800.374.5764 Semiconductors

Electromechanicals

Test, Tools & Supplies

Yo u r e c o r r e c t , t h e o n e o n t h e r i g h t c o s t s We feel so strongly, we guarantee to beat any lower are in stock and ready for delivery today. So
10% less because its from Jameco! As with most print catalog price by 10%, down to our cost. So, if whether you need one or one thousand pieces,
components from trusted distributors, the only youre not shopping at Jameco yet, its worth your youll get your order fast. And since weve
difference is the price. And if you are like most time to check out Jamecos great products at increased our product offering 60% in the last year,
folks that want the best prices, its time you give awesome prices. you can be sure youll find more of what you need
Jameco a click or call. We offer the lowest prices at Jameco.
youll find from any major catalog distributor Jameco is a 30-year-old full line catalog distributor
including Digi-Key, Newark, Allied and Mouser. of electronic components. Over 99% of our products

Jameco. Great Products, Awesome Prices!

Click or call today for a FREE Jameco Catalog Visit www.Jameco.com/SR7


and start benefiting from Jamecos Awesome Prices! Call 1-800-831-4242
Full Page.qxd 1/11/2006 12:43 PM Page 3
TOCFeb06.qxd 1/12/2006 7:18 PM Page 4

SERVO
24 Hack a Laser Pointer
Features & Projects
by Jim Miller
42 The Robosapien V2:
Get on and off control for your Bigger and Better
laser pointer. by Jamie Samans
Meet RSV1s big brother.
27 Intermediate Robots
by Dave Shinsel 47 Using Interrupts to
Building a Laptop- or PDA-based
Robot Part 2.
Control Servos
by Sam Christy
Stop what youre doing and start
33 Serial Communication
interrupting!

Without a Serial Port 51 KIT KOLLEGE by Dave Prochnow


by Paul Kafig Lecture 7: JoinMax Digital Quadruped.
Explore bit banging fundamentals.
57 Space Elevator
by Roger Gilbertson
37 2005 VEX Challenge Building a robotic highway to the stars.
by Lester Davis
Team #8s FIRST experience with
RadioShacks VEX.
Jasper the 3D Movie Bot

Coming 03.2006
RISCBOT

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. APPLICATION TO MAIL AT PERIODICALS POSTAGE RATE IS PENDING 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 02.2006
TOCFeb06.qxd 1/12/2006 7:20 PM Page 5

02.2006 VOL. 4 NO. 2

Departments Columns
06 Mind/Iron 08 Robotics Resources by Gordon McComb
Exploring Robotics Construction Sets
07 Bio-Feedback 12 GeerHead by David Geer
A Fearsome Foursome of Recon Flyers
23 New Products
15 Rubberbands and Bailing Wire
by Jack Buffington
40 Brain Matrix Inverse Kinematics

55 University Store 18 Robytes by Jeff Eckert


Stimulating Robot Tidbits

56 Events Calendar 20 Ask Mr. Roboto by Pete Miles


Your Problems Solved Here
70 SERVO Bookstore 72 Lessons From The Lab
Guest Hosted by Marc Helfman
75 Robotics Showcase Electronic Stopwatch for Races

74 The Assembly Line by James Antonakos


79 Robo-Links Uno and the Rise of the Phoenix

81 Advertisers Index 76 Appetizer by Erik Hagman


The Problem With R2D2

82 Menagerie 78 Then and Now by Tom Carroll


Surgical Robots Come of Age

ON THE COVER
64 2005 Robot Soccer
Championships
by Dave Calkins
Part 1 RoboCup Osaka

SERVO 02.2006 5
Mind-FeedFeb06.qxd 1/12/2006 2:22 PM Page 6

Published Monthly By
T & L Publications, Inc.
430 Princeland Court
Corona, CA 92879-1300
(951) 371-8497
FAX (951) 371-3052

Mind / Iron Product Order Line 1-800-783-4624


www.servomagazine.com

by Michael Simpson Subscriptions


Inside US 1-877-525-2539
I have been building robots of hobbies, I have found that online Outside US 1-818-487-4545
some sort or another for as long as I communities allow you to experience P.O. Box 15277
can remember. I have purchased your hobby like you never could North Hollywood, CA 91615
nearly every robotics book that has before. Sure you can join a robotics
been printed. There is an unbelievable club; but many of us live in areas PUBLISHER
amount of satisfaction in seeing the where these just dont exist. Larry Lemieux
robot you have been working on for Lets take a look at a possible publisher@servomagazine.com
the last few months come to life and scenario: Youre browsing through a
navigate around an obstacle or wall, magazine or surfing the web and you ASSOCIATE PUBLISHER/
even if it happens to go through see a great project you would like to
VP OF SALES/MARKETING
the wall. Many of you have seen the build. It looks interesting and might
Robin Lemieux
on-board camera video of my Duct be the perfect project for you and
display@servomagazine.com
Bot do a face dive into the plenum of your son (or daughter) to build
my furnace. Very cool. together. One problem: you have not
We have come a long way in the built a project of this magnitude and CIRCULATION DIRECTOR
last 20 years or so. For one, we have feel it might be a bit overwhelming. Tracy Kerley
the Internet. The Internet has now Now suppose the magazine or subscribe@servomagazine.com
made it easier than ever to research website has an online forum that
any aspect of the hobby. I cant count encourages discussions on its various WEB CONTENT/STORE
the number of times I have been able projects or articles. You take a look at Michael Kaudze
to cut countless hours off my research a few of the forums and see many sales@servomagazine.com
by a few simple searches on the web. levels of discussion ranging from
You will even discover complete beginner to advanced. Great! PRODUCTION/GRAPHICS
projects on the Internet, and they can You check out that project to see
Shannon Lemieux
be found on both private and what you need. Oh no! Another
Michele Durant
commercial websites. The Internet problem! You notice that one of the
also allows us to purchase many of key components is a motor assembly
the products we would not otherwise from a 67 Mustang windshield wiper. Copyright 2006 by
have access to. In my day, this was There is no way you are going to find T & L Publications, Inc.
called mail-order and all transactions one of these. After looking through All Rights Reserved
were done via snail mail. one of the forums about this project
There is one other aspect of the you notice that others are having the All advertising is subject to publisher's approval.
Internet that you wont find in any same problem. Wow. Youve found We are not responsible for mistakes, misprints,
book. This is called community. A something. Someone else has built the or typographical errors. SERVO Magazine
community is not just an online forum same project with some of those new assumes no responsibility for the availability or
as there are hundreds of those. Its VEX motors that are available at just condition of advertised items or for the honesty
when you have a group of individuals about any local RadioShack. He even of the advertiser.The publisher makes no claims
who frequently help one another and posts a website with pictures. Armed for the legality of any item advertised in SERVO.
are willing to help others. In an online with this additional information and
This is the sole responsibility of the advertiser.
community, we welcome others to very available parts, you decide this is
Advertisers and their agencies agree to
join and share their own ideas. We are a project you could easily build. Its
all too familiar with the negative time to go and get the parts. indemnify and protect the publisher from any
aspects of the Internet such as spam While you were at RadioShack, and all claims, action, or expense arising from
and viruses. When it comes to you noticed that all sorts of robot advertising placed in SERVO. Please send all
Mind/Iron Continued editorial correspondence, UPS, overnight mail,
and artwork to: 430 Princeland Court,
Corona, CA 92879.

6 SERVO 02.2006
Mind-FeedFeb06.qxd 1/12/2006 2:23 PM Page 7

Dear SERVO: Dear SERVO:


I am afraid the translation of the sentence "Dfense de You publish a great magazine. I cant wait to receive it
fumer" is not quite adequate (even if I don't imagine this every month. However, your editors and James Antonakos
could lead to confusion when reading the article!). should brush up their French skills. At least they should use
Rather than "it is smoking," I think a more appropriate Googles language tools. The subtitle to James article
translation would be "It is forbidden to smoke" Dfense de fumer means Smoking forbidden and not It
(misunderstood by the servo driver!). is smoking. Im sure James can otherwise tell a joke.
Keep producing an interesting magazine! Cheers!
Jea-Marc Pacouret, France Jean-Yves Allard, Montreal QC

accessories are available. Things like impressed, you decide to place the level microcontrollers, and computer
light sensors, servos, wheels, and even results of your project up on the forum interfaces are making it easy to get
complete kits. You pick up a couple for the benefit of others and a whole involved in this leading edge hobby.
motors and head home. You initially new line of discussions begin. If you havent built any robot
complete your project but you decide Congratulations! You have just projects recently, pick up a magazine
to head back to the Shack and pick up completed the robotics circle of life. or browse the web. You will be
a couple of the VEX sonar range These are very exciting times in pleasantly surprised at what is
sensors. After some experimentation the robotics field. New things are available. We are living in a very
(and some community help), you get happening practically every day. And exciting time right now. Now, all you
your enhanced project complete. You online communities, readily-available have to do is get off that couch, shut
(and your son or daughter) are so robot components, inexpensive entry off the TV, and get started. 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

SERVO 02.2006 7
RoboResources.qxd 1/10/2006 12:55 PM Page 8

Tune in each month for a heads-up on


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

Exploring Robotics
Construction Sets

C onstruction toys have always been


big sellers. Who hasnt at least
played around with parts from an
without expensive or difficult custom
machining. In this column, well look at
some of these robotics construction
Lynxmotion Servo
Erector Set
Erector set, LEGO, Capsela, or other kits, and while were at it, review the Most desktop robots use radio con-
construction kit, snapping or screwing old standbys LEGO, Erector Set, and trol servo motors of one type or anoth-
together various pieces, and experi- the others that are still available. er. These motors are fairly inexpensive,
menting with their own creations? and can be used out-of-the-box as ser-
These toys have proven to be perennial VEX Robotics vos, or reconfigured to turn continuous-
favorites because they allow individual Design System ly. Operating a servo is fairly simple,
creative freedom; youre not locked and requires just an R/C transmitter
into someone elses idea of what a car, Aimed at both the educational and and receiver, a microcontroller, or even
motorcycle, flying saucer, or robot hobbyist market, the VEX system is a timer circuit based around the 555 IC.
looks like. based around the Erector set style of Considering the popularity of R/C
Amateur robotics has long relied on pre-drilled girders and connector pieces. servos in robotics, Lynxmotions Servo
bits and pieces from these construction Most parts are fastened using tradition- Erector Set is an idea long overdue.
kits as a raidable store of small, light- al techniques of machine screws and Its nice to see Lynxmotion address this
weight, and relatively inexpensive parts. nuts. What sets VEX apart from a tradi- market. The Servo Erector Set is com-
The resulting contraptions sometimes tional Erector or other construction toy posed of various brackets and other
bear a resemblance to the worst of set is that it contains pieces specially hardware for the express purpose of
Rube Goldberg inventions, but theyre designed for small robotics. It comes connecting together standard-size R/C
nevertheless workable and affordable. with two types of motors made to fit the servo motors. You can connect these
Not every robot builder enjoys a budget girder construction of the system (servo brackets to a traditional robot base to
of thousands or even hundreds of and continuous rotation); to these build a rolling or walking machine, or
dollars for custom-machined parts. motors you can attach a variety of attach them to tubes, hubs, and con-
Adding to the mix of store-bought mechanical parts, including gears, idlers, nectors to fashion completely free-form
construction kits is a small but growing wheels, and tank treat drive sprockets. designs. The Lynxmotion website
cadre of specialty building components VEX is sold online and through provides a number of examples of pro-
expressly designed for small robotics RadioShack, among other sources as totypes constructed from their line of
applications. Several companies are now a complete construction system, includ- Servo Erector Set parts, including hexa-
offering bits and pieces to build desktop ing a custom microcontroller, radio pod walkers and bipedal walkers, arms,
robots, where these bits and pieces are controlled transmitter, and a variety of and even wheeled self-balancing bots.
custom made to interface to the compo- mechanical sensor switches. You can
nents we use the most R/C servos, use the VEX sets as-is, or incorporate 80/20 Extruded
small wheels, sensors, and more. the parts in your own designs. You can Aluminum
While the idea of universal con- purchase a starter kit, or choose from a
struction parts isnt new, the new line variety of accessories and additional Billed as the Industrial Erector
of robot-centric components is a wel- parts: a sprocket and tread set for Set, 80/20s line of extruded aluminum
come addition to those of us who like converting your robot to a tank design, provides a convenient if not some-
to roll our own. These parts allow us wheels, and a novel sprocket and what pricey method of assembling
to build our own custom robot, but adjustable-length chain set. larger robots with a minimum amount
8 SERVO 02.2006
RoboResources.qxd 1/10/2006 12:55 PM Page 9

of custom design work. Extruded alu- todays Meccano sets are only passably ics. For example, their now discontinued
minum is composed of bars (and other compatible with the English-made Battle Bloks kits used a six-wheel all ter-
shapes) of aluminum; the extrusion Meccano sets sold decades ago. Hole rain design, along with dual motors.
process creates small grooves in the alu- spacing and sizes have varied over the You can make your MEGA BLOKS con-
minum to which you can attach various years, and mixing and matching is structions more permanent with a tab
connectors and other construction not practical, or desirable. of modelers styrene solvent cement.
pieces. You merely cut the aluminum
bars to length, then fasten them togeth- LEGO Capsela
er with the available connector pieces. LEGO has become the premier Capsela is a popular snap-together
80/20, Inc., is not the only compa- construction toy, for both children and motorized parts kit that uses unusual
ny that offers extruded aluminum, but adults. Apart from the ever-popular tube and sphere shapes. Capsela kits
they are among the most popular. You Robotics Invention System set which come in different sizes and have one or
can find the stuff at many industrial is expressly designed to build a robot more gear motors that can be attached
parts outlets, such as Reid Tool & you can use LEGO pieces to construct to various components. The kits con-
Supply, or even locally. whole robots, or parts of robots. The tain unique parts that other put-togeth-
parts snap together, but for more per- er toys dont, such as plastic chain and
Ye Olde Standbys manent creations, you can use a dollop chain sprockets/gears. Advanced kits
of ABS solvent cement. come with remote control and comput-
Heres a quick rundown of the er circuits. All the parts from the
more popular toy construction sets, all MEGA BLOKS various kits are interchangeable.
of which make for a rich source of parts. The MEGA BLOKS toys use a similar
design to LEGO, and the construction Fischertechnik
Erector pieces are more-or-less LEGO compati- The Fischertechnik kits are in
Erector has been around for ble. One use of MEGA BLOKS is as a Germany and imported into North
almost a century. The kits were made low-cost alternative for some basic America by a small number of compa-
of all-metal, but now contain a number LEGO pieces, but for the robot builder, nies. Toy isnt the proper term for
of plastic pieces. The sets come in vari- youll be interested in some of their spe- them, because the Fischertechnik kits
ous sizes, and are generally designed cialty products that come along every are not designed for use by small chil-
to build a number of different projects. once in a while; these are often highly dren. In fact, many of the kits are meant
Many kits are engineered for a specific suited to the purpose of amateur robot- for junior high school through college
design with perhaps, provisions for
moderate variations. Useful compo- FIGURE 1. Aluminum extrusions from 80/20, Inc., may be used
nents of the kits include pre-punched to construct large, sturdy robots.
metal girders, plastic and metal plates,
tires, wheels, shafts, and plastic mount-
ing panels. You can use any as you see
fit, assembling your robots with the
hardware supplied with the kit, or with
6-32 or 8-32 nuts and bolts.
Several Erector sets come with
wheels, construction beams, and other
assorted parts that you can use to con-
struct a robot base. Motors are typical-
ly not included in these kits, but you
can readily supply your own. Because
Erector packages regularly come and
go, what follows is a general guide to
building a robot base. Youll need to
adapt and reconfigure based on the
Erector parts you have on hand.
Over the years, the Erector brand
has gone through many owners. Parts
from old Erector sets are unlikely to fit
well with new parts, including but not
limited to differences in the threads
used for the nuts and bolts. Similarly,
SERVO 02.2006 9
RoboResources.qxd 1/10/2006 12:56 PM Page 10

provide a thorough and programmed


method for jumping in with both feet.

KNex
KNex uses unusual half-round
plastic spokes and connector rods to
build things of all descriptions. You can
construct a robot with just KNex parts,
or use the parts in a larger, mixed-
component robot. The base of a
walking robot may be made from a
thin sheet of aluminum, but the legs
might be constructed from various
KNex pieces, for example.
A number of KNex kits are avail-
able, from simple starter sets to rather
massive special-purpose collections
(many of which are designed to build
robots, dinosaurs, or robot-dinosaurs).
Several of the kits come with small
gear motors so you can motorize your
creation. The motors are also available
separately.
FIGURE 2. Lynxmotions line of Servo Erector Set brackets and other parts
allow you to make servo-based contraptions of your own design. Sources for Robot
industrial engineering students, and Fischertechnik kits, you may not want to
Construction Sets
offer a snap-together approach to mak- cannibalize them for robot components. 80/20, Inc.
ing working electromagnetic, hydraulic, But if you are interested in learning www.8020inc.net
pneumatic, static, and robotic mecha- more about mechanical theory and Aluminum extrusions and connec-
nisms. Because of the cost of the design, the Fischertechnik kits used as-is tion parts for industrial-strength
constructions. Useful for larger robots.
FIGURE 3. Hobby Engineering offers a rich assortment of Erector set kits. Check the site for local retailers.

Amazon.com
www.amazon.com
Best-known as a book seller,
Amazon also sells toys through affilia-
tions with Toys R Us and Imaginarium.
The latter specializes in unique educa-
tional products.

Construction Toys
www.constructiontoys.com
Online and local retailer of con-
struction toys. These toys are available
both online and in retail stores:
Capsela; Eitech; Erector; Fischertechnik;
Geofix; Geomag; KNEX; LEGO Dacta;
Rogers Connection; Rhomblocks;
Rokenbok; Zome System.

e-Hobbyland
e-hobbyland.com
Well-established retail and online
seller of all types of toys.
10 SERVO 02.2006
RoboResources.qxd 1/10/2006 12:57 PM Page 11

Hobby Engineering
www.hobbyengineering.com
General source for robot parts, as
well as a lengthy list of Erector set kits
of all shapes and sizes.

KBtoys.com
www.kbtoys.com OR
www.etoys.com
Online mail order. Check often for
deep discounts on LEGO, KNEX, and
other brands.

LEGO Shop-at-Home
shop.lego.com
Online outlet for LEGO products,
including spare parts (when available).

Lynxmotion
www.lynxmotion.com
Lynxmotion offers complete robot
kits, as well as a unique Servo Erector
Set: a collection of brackets and other
parts for building custom robots using FIGURE 4. VEX Robotics uses Erector set concepts, updated for the
standard-size R/C servos. express purpose of building a desktop robot.

Only Toys Timberdoodle check their swan gong closeout deals.


www.onlytoys.com www.timberdoodle.com
Only Toys carries metal Erector Timberdoodle specializes in home VEX Robotics
sets; most are for building vehicles, and education products. They offer a good www.vexrobotics.com
some (like the Steam Engine) are quite selection of Fischertechnik kits at good Makers of the VEX Robotics Design
elaborate. The company also sells prices. Also sells Capsela, KNEX, and System. See also RadioShack.com for
Rokenbok radio controlled toys. electronics learning labs. Be sure to purchasing online. SV

Reid Tool & Supply


www.reidtool.com
Industrial supply source, including
80/20, Inc., aluminum extrusions.

Target
www.target.com
Retail stores and online site. Both
offer great deals in clearance items.
Make it a habit of regularly checking
the website for clearance items.

ABOUT THE AUTHOR


Gordon McComb is the author of the
best-selling Robot Builders Bonanza,
Robot Builders Sourcebook, and
Constructing Robot Bases all from
Tab/McGraw-Hill. In addition to writing
books, he operates a small manufacturing
company dedicated to low-cost amateur
robotics, www.budgetrobotics.com He
can be reached at robots@robotoid.com

SERVO 02.2006 11
Geerhead.qxd 1/10/2006 10:19 AM Page 12

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

A Fearsome Foursome
of Recon Flyers
aul Y. Oh professor at Drexel I noted that: can hardly make muster if their exploits
P University, Philadelphia and director
of the Drexel University Autonomous Prior to 2001, the Senate issued
remind us of that ancient footage of the
first flight attempts from around the
Systems Lab (DASL) builds flying the Defense Authorization Bill for time of the Wright brothers and before.
robots together with his team of Unmanned Vehicles (UMVs); the Bill The primary obstacle to produc-
colleagues. Ohs field of robotics is included the following statement. It tion ready robots is improving their reli-
referred to as indoor aerial robotics. shall be the goal of the Armed Forces ability and autonomy. Not that it cant
These robotic crafts can fly low to to achieve the fielding of unmanned, or wont be done. At the DASL Lab, Oh
the ground in or around debris- or remotely controlled technology such and his colleagues are addressing gaps
obstacle-laden territory such as that ... by 2015, one third of the between the current state-of-the-art in
buildings, caves, forests, or tunnels. operational ground combat vehicles of reliability and autonomy for these bots
Obvious potential applications for the the armed forces are unmanned. and the standard that they must meet
military, Homeland Security, and public in just five years.
service needs include search and res- Congress is requiring a much faster Recent events like 9/11, Operation
cue operations, intelligence gathering, pace of adoption for unmanned aircraft: Enduring Freedom, and Katrina, have
and mapping out unexplored environ- made such focus even more urgent;
ments for safety concerns before Congress has mandated that by unmanned aerial vehicles (UAVs) have
people are deployed. the year 2010, one-third of all deep proven to be force multipliers that
Specific applications of the robots strike force aircraft are to be unmanned provide first responders with real-time
include security monitoring for venues, (2001 Defense Authorization data for tasks like search and rescue,
public places, and properties such Conference Bill H.R. 4205), says Oh. assessing structural integrity of build-
as warehouses, stadiums, subway ings, and mission support, says Oh.
tunnels, and train stations, as well as However we may feel about the The DASL lab would like to produce
any others you can imagine. war we are in today, I think most of us aerial robots that soldiers can carry in
can agree that if we end up in another their backpacks and deploy as needed.
Background one down the road or are still in this Several groups have developed
one by 2010, so many unmanned vehi- bird-sized aircraft called micro air vehicles
You may recall that in the Arctic cles amounts to the safety of troops (MAVs), says Oh. Some of these are
Tortoise GeerHead column a year ago, who would otherwise have to be in fixed wing craft (airplanes), some are
those vehicles. flapping wing craft (ornithopters yes,
Image of a CQAR unmanned vehicle thats a word), and some are rotary wing
with attached camera.
How Do We Get There? craft (helicopters). You can begin to see
the breadth of the research underway to
Todays military class flying robots get these bots up and flying by 2010.
But, most of these
Shows size of li-poly Shows size of toytronix UAVs arent suited to near-
battery powering the CQAR. motor used on CQAR. Earth, indoor flight where
technologies you would
like to use such as wireless
communications and GPS
tracking are impaired.
Effective indoor flyers
12 SERVO 02.2006
Geerhead.qxd 1/10/2006 10:20 AM Page 13

GEERHEAD

have to be small enough to maneuver that prevent airplanes from


in tightly closed spaces. They have to fly getting to the site. In
slowly and safely to retrieve data and to Katrina, helicopters were
avoid damaging things they might also a problem; when flying
strike such as buildings. They have to close to water, the resulting
use sensors to autonomously avoid rotor wash can forcibly sub-
such obstacles, as well. Currently there merge and drown victims. Shows size of Shows size of radio
is no vehicle that adequately addresses LEAP is a low-cost and safe CQAR propeller. receiver used on CQAR.
all four issues, says Oh. platform to address many
DASL has been working on suites of the issues that current aircraft have DASL lab aircraft intended to surveil and
of sensors that meet the needs of not adequately addressed. recon tunnels and caves. Unique among
near-Earth flyers since 2001. They have its properties is the ability to hover
tested these sensors on a variety of CQAR Anyone? despite being a fixed wing vehicle.
flying vehicles. Types include the This is achieved through a high
tethered, winged aerostats from the CQAR is a fixed-wing platform that thrust-to-weight ratio that enables the
Low Elevation Aerial Platform (LEAP) weighs 30 grams (about .066 lbs.). The platform to transition from cruise mode
project, the shrouded tandem rotor- CQAR was created to navigate in and (i.e., wings parallel to the ground),
craft from the Self Elevating Live Image around buildings. It can be used for through the stall regime of conventional
Acquisition Platform (SELIA) project, recon or to gauge the structural integri- fixed-wing aircraft and into hovering
the current Close Quarter Aerial Robot ty of a building before soldiers or first mode (i.e. longitudinal axis of fuselage is
(CQAR) project flyers, and 3D acrobat responders enter. vertical), says Oh. Unique to the crafts
fixed-wing (Blackhawk) aircraft. The CQAR flies at only 4 to 5 mph construction is a Depron foam core lam-
so that it has enough time not only to inated with 2 oz per inch of carbon fiber.
LEAP A Little sense obstacles, but also to navigate The Blackhawk can soar steadily at
around them before colliding. speeds up to 40 mph. It is capable of
Solution for Big Carbon fiber tubing and balsawood long flight times thanks to its fixed-
Problems were used to build the vehicles frame. wing configuration. The Blackhawk
The resulting prototype, with electron- weighs about a pound and can
The LEAPs are backpackable, ics, weighed 30 grams (about the additionally carry a 100-gram payload
quickly deployed, and very easy for weight of three quarter coins) and could such as a camera while hovering.
soldiers to fly. They can climb 1,000 fly at speeds of 5 mph while carrying a
feet or about the height of a 70-story 10 gram wireless camera, says Oh. SELIA We Love You
building in 10 minutes.
It is essentially a hybrid weather Blackhawk Up The last of the four, SELIA is a
balloon and kite equipped with a wire- shrouded tandem rotor vehicle with an
less camera to quickly provide aerial The famously named Blackhawk is a oval frame that can fit in a soldiers back-
video, says Oh.
The tether lets you keep the LEAP MORE SPEC-CIFICALLY
in one spot for ongoing surveillance
and monitoring. It can fly in one spot While LEAP is primarily enabled by a tor can switch from manual to autonomous
transmitter, the CQAR uses its onboard control and back again as needed. In its
for days and deliver video constantly control system to monitor sensor output. autonomous mode, this flyer also has an
when mounted with an infrared When moving in on an object to its left, onboard control system to control the
camera. The tethered platform lets you the control system sends a signal to the rudder and elevator for hovering attitude.
control it without line-of-sight between rudder to make a right turn, for example. The Blackhawk control system
you and the bot. LEAP uses a 72 MHz transmitter for consists of a PIC16F87 microcontroller
the cameras pan and tilt servos and a 2.4 and a MAX232 chip to communicate via
The kite aspect counters gusts of GHz wireless camera, says Oh. RS232 with the attitude sensor, according
wind to keep the vehicle in position In landing mode, the control system to Oh. This flyers software, used to read
while the balloon provides elevation. monitors sensing and sends signals to the data from the sensor and to control the
The LEAP may sound like a cheap toy, elevator to control the CQARs rate of servos accordingly was also written in C.
but its that affordability and dispensabil- descent. CQAR uses a PIC16F84 microcon- A 2.4 GHz wireless camera is used to
troller for its onboard control system. The acquire surveillance video.
ity that makes it viable and expendable software embedded on the controller was All of these robots are repro-
to first responders who need an eye-in- written in C. Under autonomous mode, all grammed by first modifying the C code
the-sky in scenarios where it is prohibi- communications are done onboard the and then compiling the software using PIC
tive to send up more conventional craft. aircraft. A 900 MHz wireless camera is used C. This generates the hex file which is
For example, says Oh, natural to acquire surveillance video, says Oh. burned onto the micro using a PIC
As for the Blackhawk, a human opera- programmer, says Oh.
disasters often result in crippled runways
SERVO 02.2006 13
Geerhead.qxd 1/10/2006 10:20 AM Page 14

GEERHEAD

RESOURCES
LEAP video
http://prism.mem.drexel.edu/projects/
kite/index.html
(some software plug-ins may be required
for viewing)
CQAR video
www.pages.drexel.edu/~weg22/CQAR.html
How to build your own CQAR
www.pages.drexel.edu/~weg22/CQAR.html
Year 1 of the competition focused on Blackhawk video
sensing (computer vision) and human-robot Drexel team members William Morgan www.pages.drexel.edu/~weg22/fwHoveri
interaction (teleoperation) and hence a (front) and Jason Collins (back) tuning ng/fixedWingHovering.html
simple and safe-to-fly platform (a blimp) the computer vision algorithms to
was used. Drexel team member Jason autonomously navigate the aerial robot. SELIA video
Collin inspects the robotic blimp. www.pages.drexel.edu/~jg39/Pages/Seni
for such vehicles dont stop the LEAP or%20Design/senior_design.htm
pack. It can hover and stare at whatever from doing its job. The Drexel Autonomous Systems Lab
it is surveilling. SELIA can ascend a Satellites can also acquire this homepage
building face and peer through windows intelligence but it takes longer to http://dasl.mem.drexel.edu
You will find information about the DASL
or openings for search and rescue, reprogram them to do a fly-by than it flying robots and upcoming demonstrations.
reconnaissance, or structural integrity takes to deploy a LEAP to get the same
assessment tasks, says Oh. information. Intro to Professor Paul Y. Oh
www.mem.drexel.edu/pauloh.html
The vehicles carbon-fiber shroud Other bird-sized flyers like the
protects its two rotors so that the vehi- CQAR are made entirely of fiberglass or
cle can survive minor collisions. Its tan- carbon fiber, adding unnecessary something called optic flow to deter-
dem rotor configuration is equivalent weight. As such, they must fly above mine object avoidance and landing.
to the tail rotor of a helicopter and acts 15 mph to stay aloft. Utilizing Optic flow can be defined as the
to counter the motor torque, says Oh. lightweight materials such as Mylar, motion of texture in the field-of-vision
The rotors provide the lift necessary to balsawood, and carbon fiber tubes, the relative to the insects flying velocity.
carry a 15-gram wireless camera in CQAR prototype is capable of speeds Closer objects have higher optic flow.
addition to its own weight. well below this, says Oh. So, the honeybee avoids areas of high
optic flow. The honeybee also lands
No One Can Compare The Robotic Foursome using optic flow because the optic flow
of the ground stays constant.
So, how do these cheap, slight, The LEAP robot is teleoperated. It With an optic flow sensor and
and dispensable flying robots stack up can do its job from a distance. This lit- these flight stratagems embedded
against the big boys? While helicopters tle spy can provide its human operator onto the onboard control system, the
can retrieve similar intelligence data as with live video streams. An operator CQAR robot was able to demonstrate
the LEAP robot, the natural disasters can work with the robots camera to autonomous collision avoidance and
and terrorist attacks that cripple roads, capture a specific image from among landing. To the best of our knowledge,
bridges, and runways denying access the cameras field-of-view. these were the first optic flow based
CQAR uses sensing that mirrors autonomous maneuvers performed
Recreation of image taken by that of honeybees. Honeybees use indoors, says Oh.
camera on CQAR. The Blackhawk can hover with
This is a 27-gram, 19-inch wingspan the help of an operator who must
aircraft that can fly as slowly as 4 mph constantly work the four channels of
and carry a 15-gram wireless camera.
It demonstrates that aircraft can be the radio transmitter. However, retro-
designed to fly in closed quarters. fitting Blackhawk with a sensor that
detects the aircrafts attitude, we were
able to develop an onboard controller
to automate the hovering flight mode.
To the best of our knowledge, this is
the first autonomous hovering of a
fixed-wing unmanned aerial vehicle
ever performed, says Oh. SV
14 SERVO 02.2006
Rubberbands.qxd 1/11/2006 6:05 PM Page 15

by Jack Buffington

Inverse Kinematics
How to Put Your Robots Foot in
Its Mouth (With Precision)

Ifthatyou areare interested in building robots


a bit more anthromorphic
In this column, well look at two
different ways to compute inverse kine-
the Pythagorean theorem to find the
length from the root to the goal. Well
than average, inverse kinematics is a matics. The first case is a simplified case call this the goal length. If the goal is
concept that you will eventually have to where there are only two joints that not reachable, you will have to figure
bend your mind around. There are two move. The second case allows for any out a way to deal with that situation.
methods of getting a robot with number of joint angles to be computed. Usually, you will be able to reach
appendages to move. These methods Lets go over a few terms that will be most of the points near the root and
are called forward kinematics and used in this column. If you are familiar everything up until the combined length
inverse kinematics. If you are familiar with computer animation, you will of the bones. If you are trying to achieve
with Robo-One robots then you will already know these terms. In anima- a goal point that is farther away than
have seen forward kinematics in action tion, you deal with concepts called the combined length of the bones, then
in most of them. Forward kinematics is bones. Like real bones, these are rigid you might want to just make the chain
the sort of control that you do when structures that are connected with of joints line up in a line and cause the
you specify joint angles ahead of time joints. A series of connected bones are end effector to point in the direction of
for your robots legs or arms to get its called a chain. The root of a chain is the the goal. That way, when the goal
foot or hand to the proper location. joint that may rotate but always stays in moves back into a place where the end
Many Robo-One robots are con- the same physical location. If you were effector can reach it, the joints wont
trolled by storing the positions of all of describing a leg, the root would be the have to rotate violently to get there.
the servos for a given pose. A comput- hip. The other end of the chain is called Once you have determined that
er moves the robot by interpolating the end effector. Inverse kinematics (IK) you can actually reach the goal, you
between the various saved poses. uses a goal point in its calculations. The are ready to figure out your joint
Inverse kinematics lets you specify the goal is where the IK calculation tries to angles. With two bones, this process
position of the foot or hand and your position the end effector. Each joint will is fairly simple. You will just need to
software takes care of figuring out all have a preferred angle so that it does- figure out the correct knee or elbow
of the joint angles. Using inverse kine- nt try to bend backwards. angle that will cause the distance from
matics allows you to move your robot Lets say that you
in any manner that you would like at have a robot that has a Figure 1. Graphical view of common terms used.
run time without having to plan your leg with two bones in it
poses or having to store information that are both 10 cm
about servo positions. long. In this case, you
How is this more useful than will be able to achieve
forward kinematics? It allows you to any position that is zero
deal with unanticipated situations more to 20 cm away from the
easily. Lets say that you wanted to have hip if your robot could
your robot walk along rough terrain and fold its leg up completely
you would prefer to not stress its motors and also make it be per-
if the foot steps on a rock that is higher fectly straight. When cal-
than the ground; with inverse kinemat- culating your IK solution,
ics, you could recalculate the path that you will want to verify
each foot needed to take so that you that the goal you are try-
would end up loading each leg with an ing to achieve is actually
even amount of the robots weight. reachable. To do this, use
SERVO 02.2006 15
Rubberbands.qxd 1/11/2006 6:05 PM Page 16

Rubberbands and Bailing Wire

its hypotenuse. Arcsine is the opposite.


int length1Squared = length1 * length1;
int length2Squared = length2 * length2; If you give it the ratio of the lengths of
int goalLengthSquared = goalLength * goalLength; the opposite side and the hypotenuse, it
returns an angle. At this point, we have
int X = length1Squared length2Squared + goalLengthSquared; a partial answer for the knee angle.
X /= (2 * goalLength);
The next step is to find the other
int Y = -(sqrt(length1Squared - (tempX * tempX))); part of the knee angle by taking the
arcsine of the goalLength minus the
Figure 2. Code to find the intersection of two circles. knees X coordinate divided by length
2. Add kneeAngle1 to kneeAngle2 to
about the lengths of the get the final result. Take a look at the
bones. The program code listing in Figure 5 to get a better
will use this information idea of how this works. We now have
to find the intersection of the correct angle for the knee.
two circles that radiate Lets look at what the hip should
out from the root and be doing. This one is easier to calcu-
the goal with radiuses late. If we are using 360 degrees to
the lengths of bones. represent all of the angles in a circle
Take a look at Figures 2 then we can take 180 minus the first
and 3 for a code example angle that we found for the knee to
and a diagram of what get the hip offset angle. This works
this code represents. because all of the angles in a triangle
As you can see from add up to 180 degrees.
the code and diagram, we You now have enough calculated to
are putting the centers of move the foot in a straight line up and
the two circles on the line down. This isnt too useful though,
Figure 3. The two circles that intersect. where Y equals zero. The since your robot would only be able to
root has an X coordinate march in place. Lets calculate one more
the root end effector to match the goal of zero and the goal has an X coordinate angle that will allow the foot to achieve
length. You can calculate this by doing that equals the goal length. This simpli- the proper location. Well add this angle
either of two things. fies our calculations. It is often the case to the hip offset angle. Figure 6 shows
The first way is to simply make a that two circles intersect in two points. If what this angle is. To find this angle,
lookup table that says what the angle for some reason you wanted to know just take the arcsine of the X axis and
should be for every goal length that the the other point, just simply take the neg- the goal length to get the angle that
chain can achieve. This is by far the ative of the Y coordinate. That point is you add to the hip offset angle. You can
fastest to compute at run time but also not needed for this application though, now successfully place the end effector
requires a lot of program space. The so we can just ignore its existence. Now exactly where you need it to be.
other way is to assume that the root we have the coordinates of the knee but We just discussed a common situa-
and the goal lie along the X-axis of still need to figure out a couple angles. tion where there were only two joints
an imaginary graph. You will need to Well call these angles kneeAngle1, that needed to be manipulated. What if
provide your program with information kneeAngle2, hipOffsetAngle, and you need to use more than two joints
hipAngle. Lets figure out but would still like your end effector to
Figure 4. Illustration of what the terms are. kneeAngle1 first. end up in the right place? It becomes a
For that angle, we lot more difficult to calculate the correct
take the arcSin of position in one pass as we did with two
X/length1. Just as a quick joints, so this method of calculation
review, taking the sine of uses successive approximation to arrive
an angle returns the ratio at an answer. This method will work for
of the lengths of the oppo- most leg or tentacle situations.
site side of a triangle and The way that this strategy of calcu-

Figure 5. Code to figure out how to position the knee and hip for a leg.

kneeAngle1 = asin(kneeX/length1);
kneeAngle2 = asin((goalLength kneeX)/length2);
kneeAngle = kneeAngle1 + kneeAngle2;
hipOffsetAngle = 180 - kneeAngle;

16 SERVO 02.2006
Rubberbands.qxd 1/11/2006 6:05 PM Page 17

Rubberbands and Bailing Wire

lating inverse kinematics works is that once again you will fig- lookup table that takes
ure out the goal length for the chain. This method takes into the active joints angle
account a default angle for each of the joints. Figure 7 shows and returns length of
how a chain will stretch using this method. If the goal length is the chain to help you
greater than the default length from the root to the end effec- figure out the proper
tor, then the angles of the chain will become more obtuse. If angle to drive the
the goal length is less than the default length from the root to active joint to.
the end effector, then the joint angles will become more acute. Legs and arms are
Lets look at the situation where the angles need to something of a holy
become more obtuse. Each joint will move proportionally grail for robotics. Most
from its default angle to being perfectly straight. If a joint is hobby robots dont
far from straight in its default position, then it will move a lot stray too far from
as the chain is stretched. If the angle is acute, it will not move being two-wheeled
very much when the chain is stretched. Take a look at Figure robots that do little
8 to see how this works. more than drive
Figure 6. The angle to add to the hip
You will use a binary search technique to adjust the joint around and avoid offset angle to place the foot in the
angles until the chain length is within a certain tolerance or things. If you are look- proper location.
a certain number of iterations have occurred. After each time ing to take your next
the joints are adjusted, your program will figure out what the project to a whole new
length from the root to the end effector is at that point and level, consider putting
compare it to the goal length. Once a satisfactory arrange- some legs on it.
ment of the joints is found, then the root joint will receive an Hopefully, this months
offset to move the end effector into the desired location just column has given you
like we did with the IK code for two joints. a new understanding
of how you can get Figure 7. A chain of three joints
Wrap Up started. SV being stretched out.

Two different manners of figuring out inverse kinematics


were shown in this column. The first one is fairly fast to calcu-
late and works nicely for most situations. For times when you
Are you ready to take your microcontroller
need additional joints, the second approach works well. It isnt projects to the NEXT LEVEL?
nearly as fast of a strategy so it should be avoided if possible. It
is also worth noting that any solution that the second approach
could achieve could also be achieved by using one active joint Complete
at the root and one active joint in the chain. The rest of the on-line
joints could be mechanically linked to achieve the same result. system.
That approach requires 0% of your processing power for all Nothing to
of the passive joints and you can simply make a precalculated install!

Figure 8. How much a joint is straightened.


Check out this amazing NEW SYSTEM
x Full-featured ANSI C compiler.
x Unique on-line programming environment.
x Clear, step-by-step, video-enhanced project guides.
x Extensible breadboard-based projects.
Already in use in schools and major universities,
including MIT, the Machine Science development
system is now available to the public for the first time.
Get started TODAY!
x Project Kits
x Programming Tools
www.machinescience.org x On-Line Guides
Tel: 617-354-7171 x Educational Resources

SERVO 02.2006 17
Robytes.qxd 1/10/2006 11:18 AM Page 18

Robytes by Jeff Eckert

re you an avid Internet surfer plane parallel to the motion surface. No receive objects such as trays and other
A who came across something
cool that we all need to see? Are
right-angle gearboxes are required. The
connection between the two axles can
items. Furthermore, by using the force
(kinesthetic) sensor, ASIMO can hold
you on an interesting R&D group be accomplished by simple linkages. your hand and walk in sync with you.
and want to share what youre Although the weight/gravity config- The previous version could move at
developing? Then send me an uration provides drive power in this ver- only 3 km/hr, but this one can double
email! To submit related press sion, the company already foresees ver- that. It can also run in a circular pattern
sions that employ aerodynamic, hydrody- without tipping over, as the bots
releases and news items, please
namic, magnetic, electromagnetic, and center of gravity can be tilted toward
visit www.jkeckert.com
electrostatic forces. Being independent the center of the circle. The new
Jeff Eckert of the cars mass, these approaches ASIMO will begin operating in Hondas
could provide faster and more powerful Wako office building this spring and
devices, and the motor could be elimi- eventually will be available for lease.
Locomotion on Square nated in some cases. Reportedly, Global
Wheels Composites has already had discussions
with several companies who are interest-
ed in licensing the concept.
Robotic Mop

ASIMO Now a Bartender

This vehicle travels on square iRobots newest consumer product


wheels, driven by weight shifts. Photo preps, washes, scrubs, and dries floors
courtesy of Global Composites. simultaneously.

You probably never expected to see Just when you got used to the
Hondas upgraded ASIMO features
a practical vehicle that employs square a range of new functions. Photo Roomba robotic vacuum cleaner
wheels, but a patent-pending prototype courtesy of Honda Motor Co. concept, iRobot Corp. (www.irobot.
seems to have potential for robotics, com) has followed it up with the Scooba
micro machines, toys, and so forth. The In December, Honda unveiled a floor washing robot. It simultaneously
brainchild of Jason Winckler, of Global new version of its ASIMO humanoid preps, washes, scrubs, and dries hard
Composites, Inc. (www.globalcom robot with enhancements that allow it floors automatically. Unlike a convention-
posites.net), it basically uses gravity for to better interact with people, allow- al mop that ends up using dirty water
propulsion. The wheels are mechanically ing it to act as a receptionist, guide, or from a bucket, Scooba uses only fresh
connected, with their rotational orienta- delivery boy. This has been achieved by water and cleaning solution, sucking up
tion offset from each other by 22.5 providing him with the ability to recog- the dirty water as it goes, and one tank
(one fourth of the 90 of movement nize the surrounding environment will clean about 200 sq ft in four passes.
from one flat side to the next). A motor through visual sensors, a floor surface The thing can also suck up wet spills in
rotates a weight above the vehicle and sensor, an ultrasonic sensor, and the addition to removing normal floor dirt,
the weight shift sequentially drives each IC Tele-interaction Communication and it is said to be safe for all sealed,
wheel so that the device moves ahead. Card, which is held by the person hard surfaces, including wood and tile.
Reversing the rotational direction also with whom ASIMO will interact. Scooba will be available at retail
reverses the vehicles direction of travel. With this card, ASIMO can recog- outlets soon, perhaps by the time you
According to a company represen- nize the location and identity of any read this. Its priced at $399.99, and a
tative, For use in micro machines or person in a 360-degree range. Through five-pack of cleaning fluid (specially
MEMS applications, one of the key the coordinated use of its eye camera in formulated by Clorox) will set you
benefits is that the motor and gearing the head and the force (kinesthetic) sen- back $25. A range of accessories are
moving the shifting weight is all in a sor on its wrists, ASIMO can give and available, including an infrared virtual

18 SERVO 02.2006
Robytes.qxd 1/10/2006 11:18 AM Page 19

Robytes Industrial
wall that allows you to control what
Strength
areas will be mopped.
Motor Control
Not Available at Red Lobster
for All
Prof. Andrew Ng has developed
improved depth-estimation algorithms.
Photo courtesy of Stanford University.

appears that Prof. Andrew Ng, with the


This eight-legged autonomous lobster assistance of some graduate students
is under development at Northeastern
University. Photo by Jan Witting, at Stanford University (www.
courtesy of Northeastern. stanford.edu), has come up with a
package of computer algorithms that
One of the strangest looking bots allow robots to fairly accurately guess
Ive seen lately is an eight-legged ambu- distances using single still images. Thanks to their
latory vehicle based on your average The software employs cues in unique blend
Maine lobster. Developed at the images, including texture varia- of Power and
Northeastern Universitys Marine tions, edges, and the amount of haze Functionality,
Science Center as part of the to generate the estimates. It breaks the Roboteqs DC
Motor Controllers
Biomimetic Underwater Robot images into sections and analyzes them
are today at the heart of many of the
Program, it is intended for autonomous both individually and in terms of how
worlds most demanding Industrial,
remote-sensing operations in rivers or they relate to adjoining sections, and it Military and Research Robots, and other
the near-shore zone ocean bottom also varies the magnification to make innovative Motion Control applications.
with the ability to adapt to irregular sure it catches all the image details.
bottom contours, current, and surges. Reportedly, the result is that robots - RS232, RC, or Analog input
The Center has also developed a using the software in both indoor - Dual channel output up to 140A
legless, undulatory critter that is based and outdoor locations have been - Optical Encoder Inputs
on the lamprey and intended for similar able to judge distance with an average - Intelligent Current Limiting
purposes but in water columns of great error of about 35 percent. That may - Thermally Protected
depth. They employ a common sound like a substantial error, but Ng - Field Upgradable Firmware
biomimetic control, actuator, and sensor points out that the robot would per- - Enclosed and Board-Level versions
architecture and are based on modular- ceive a tree that is 30 ft away as being - and many more advanced features ...
ized components to minimize cost. anywhere between 20 and 40 ft away.
For detailed information, including ani- If the bot were traveling at 20 Model Amps Features Price
mations, visit www.neurotechnology. mph and processing images 10 times AX1500 2x30A B $275
neu.edu/ Bring your own drawn butter. per second, that would provide it with AX3500 2x60A O-R-B $395
enough time to adjust its path and AX2550 2x120A A $495
AX2550HE 2x140A A $645
avoid the tree. And the software can
AX2850 2x120A O-A $620
Algorithm Improves operate at distances up to 10 times as AX2850HE 2x140A O-A $770
great as can be handled by stereo
Monocular Vision vision algorithms. Obviously looking
A=Aluminum Extrusion, B=Board-Level, O=Optical Encoder In,
R= RC outputs. Qty1 price. Contact us for OEM Qty prices
It has been pretty much assumed toward further refinements, Ng noted,
that accurate depth perception requires Id like to build an aircraft that can fly
two eyes, be they human or otherwise. through a forest, flying under the tree
However, some devices are too small or canopy, and dodging around trees. I
under extreme cost constraints that think wed all like to see that. SV 8180 E.Del Plomo Dr.
Scottsdale AZ USA 85258
make stereo vision impractical. It
(602) 617-3931 - info@roboteq.com
www.roboteq.com
SERVO 02.2006 19
MrRoboto.qxd 1/11/2006 11:22 AM Page 20

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

Q . Is there any easy way to accu-


rately transfer a drawing to a
piece of plastic? I have a bunch
of parts I made with Autocad that I want
to cut out of plastic. Simple parts are
drawing by hand and need multiple
copies of the same part, then photo-
copying the part drawing will save you
a lot of time having to redraw the same
thing over and over again.
you are ready to start cutting out your
part. You can use either (or a combina-
tion) a coping saw, scroll saw, drill, and
disk sander to shape the part. All you
have to do is cut along the lines on the
easy to redraw on the plastic sheets, but With some scissors, trim the drawing paper. When it comes to drilling holes,
I have a bunch of parts with lots of so that there is about an inch of extra make sure that you add a set of cross
curves and holes that I need to align, and paper all the way around the part. Then hairs to the center of the hole. It is a lot
it takes too much time to copy them place the part drawing on the plastic that easier to align a drill bit to a cross hair
accurately enough to make them right. is going to be cut. I use a pencil to make than trying to center the drill bit in a
Do you know of an easier way to do this? a few marks on the plastic so that I know hole by eye.
Samuel Dodge where the paper belongs. I then remove After the part is finished, just peel
the paper and brush a thin coat of rubber the paper off the part. Most of the

A . The easiest way to do this is to


use good, old-fashioned rubber
cement. What I do is make a full
size drawing of the part on a plain
piece of paper. This can either be done
cement on the back side of the paper,
and a thin coat on the plastic sheet
where I marked the paper location. Then
starting with one side of the paper, I
slowly rub the two sticky sides together.
time, the rubber cement will stay on
the paper, thus making it really easy to
use. Sometimes there is a little bit of
rubber cement still on the part, but this
can be easily rubbed off. This method
by hand or by printing the CAD file Make sure that you work from one side works great on all smooth plastics and
with a 1:1 scale. If you made your to another or you will get some air bub- metal surfaces. This process also works
bles or wrinkles. Bubbles or with wood parts, but only put the
Figure 1. Drawing of a robot body part to be cut out. wrinkles will distort your part. rubber cement on the paper side.
After about 10 minutes, Dont put the rubber cement directly
on the wood. By doing it this way,
Figure 2. Trimmed printout you minimize the chance of getting
glued to a workpiece. any rubber in the pores/grain in the
wood which is difficult to remove
without sanding the surface.
Figure 1 shows a drawing of a
robot body part to be made from 1/8
inch thick Sintra (Expanded PVC).
Figure 2 shows the trimmed printout
glued to a scrap piece of plastic.
Figure 3 shows the part after all the
holes were drilled and the perimeter
cut to shape. Figure 4 shows the final
part with the paper template
removed. Using this approach makes
reproducing parts quick and easy. It
20 SERVO 02.2006
MrRoboto.qxd 1/11/2006 11:23 AM Page 21

Figure 3. Holes drilled and perimeter hand Figure 4. Finished part with the Figure 5. Lynxmotion mounting hub,
cut to the lines on the glued template. template removed. HUB-7, with mounting hardware.

took less than 20 minutes to print the several different types of mounting larger in diameter for a #4 screw.
full scale drawing and cut out the part. hubs that will work for many different The second method uses a #5-40
types of wheels. The Robot Store screw as a secondary axle for mounting
(www.robotstore.com) and Robot the wheel to the hub. A #5-40 screw is

Q . I have some foam model air-


plane wheels that I got from a
model store that I want to use
on my robot, but they dont have any
good way to attach to a motor shaft. I
Market (www.robotmarketplace.
com) also offer several different types
of hubs that can be used with these
foam wheels.
The 3 and 4 mm mounting hubs
passed through the center of the wheel
and is screwed into the tapped hole in
the center of the hub. A small washer
should be placed between the screw
head and the side of the wheel, and
have tried hot glue, but it keeps com- from Lynxmotion (part numbers HUB-7 the screw is tightened down. Figure 7
ing loose. Do you have any suggestions and HUB-6, repsectively) are ideal for shows an exploded view in how to
how I could use these wheels? mounting foam wheels to motors. The assemble the hub to the wheel and
Ted Hwong mounting hub has a 3 or 4 mm diameter motor (the foam tire is not shown
bore for directly mounting onto the here). Figure 8 shows all the parts

A . Attaching off-the-shelf wheels


from the R/C plane and car
community has posed many chal-
lenges to the robot building community.
This is mainly because they assume that
drive/motor shaft, and has a #6-32
threaded hole for using the supplied set
screw to lock the hub onto the drive
shaft. Figure 5 shows this mounting hub.
This hub has two different meth-
assembled together. Figure 9 shows the
mounted hub with the foam tire.
There are a couple things to keep in
mind when using the center screw
approach for mounting any wheel to
the wheels are going to be either free ods for attaching to a wheel. The hubs any hub. Reversing the motor has the
spinning or attached to their specific flange has a set of five 0.09 inch diam- tendency of loosening the mounting
drive hubs. If you have a lathe at home, eter thru holes. A set of #4 (or smaller) screw, and too much torque on the
you can easily make your own drive hubs screws can be used to screw the hub wheel could cause the wheel to slip/spin
that will fit perfectly between the motor directly to the side of the wheel (see on the screw. If your wheel starts to slip
and wheel. Unfortunately, most of us Figure 6). If you use a #4 screw, you relative to the hub, you can either tight-
dont have a lathe and would prefer an may need to open up the diameter of en the screw, add a lock washer
off-the-shelf approach to doing this. the holes so the screws will slip easily between the wheel and the screw head,
One company Lynxmotion through. An 1/8 inch diameter drill or place a screw through one of the
(www.lynxmotion.com) has made will make the hole about 0.010 inches holes on the flange into the side of the

Figure 6. Bolting the Lynxmotion Figure 7. Exploded view showing how to Figure 8. Completed assembly
mounting hub to the side of the wheel. assemble the Lynxmotion mounting hub to process (less foam tire).
a foam wheel mount and motor.

SERVO 02.2006 21
MrRoboto.qxd 1/11/2006 1:45 PM Page 22

Energy Density
Battery Type Rechargeable Cell Voltage
Whr/kg
Lead Acid Yes 40 2
NiCd Yes 60 1.25
Rechargeable Alkaline Yes 80 1.5
NiMH Yes 90 1.25
Lithium-Polymer Yes 120 3.6
Alkaline No 130 1.5
Lithium-Ion Yes 140 3.6
Lithium No 300 3
Figure 9. Hub mounted to a foam wheel.
Table 1. Common Battery Technology Energy Densities.
est energy densities. Higher energy
wheel. The screw will prevent the wheel of batteries are different for different density doesnt necessarily mean they
from spinning relative to the hub. types of chemistries. Also, for a specific will be the best battery for your needs.
chemistry, the energy density can have Generally, lithium-based batteries are
a fairly large range of variations smaller in size, and have a lower

Q . What is the best energy to


weight ratio for batteries?

Stanley Gracey
depending on the physical size of the
battery housing, and manufacturing
methods. Table 1 shows a list of some
of the more common types of batteries
that we are exposed to on a day-to-day
overall energy capacity than the larger
lead acid, NiCd, and NiMH batteries.
Lithium batteries are the most expen-
sive batteries on a pound per pound
basis. If small, lightweight batteries are

A . The energy to weight ratio for


batteries is defined as Watt-Hours
of stored energy per kilogram
(Whr/kg) of weight. The energy density
basis. The values presented in this table
are typical values that can be expected.
Across the board, the lithium-
based battery chemistry has the high-
not a requirement, NiMH batteries
usually have the best price for perform-
ance rating, and can tolerate a lot of
charging and discharging abuse. SV

22 SERVO 02.2006
Feb06NewProducts.qxd 1/12/2006 2:27 PM Page 23

New Products

N E W P RO D U C T S
Ethernet connectivity and TCP/IP communication provide a
ACCESSORIES great deal of flexibility, allowing the ETH32 to be located
a long distance away from the PC, if so desired.
Smart/Fast Programmable The ETH32 includes a variety of useful features
for data acquisition, monitoring, and control purposes. It
NiCd/NiMH Charger includes a total of 34 I/O lines, some of which can be

C ell-Con Incorporated, Exton,


PA has announced the
availability of a new 65
used for special features. In addition to digital I/O, the
ETH32 offers analog inputs, digital counters, and pulse
width modulation (PWM) outputs. The ETH32 supports
watt line of cost- up to five simultaneous TCP/IP connections, allowing
effective, factory multiple computers to communicate with the ETH32
programmable device at one time.
NiCd/NiMH battery One of the powerful and useful features of the ETH32
chargers for packs is its event monitoring capabilities. In a nutshell, event
consisting of 3-20 monitoring allows the ETH32 to monitor different input
cells (capacities up to signals and send a notification to your application when
12 Ah). that signal has changed or met your criteria. Since the
Chargers can be programmed monitoring is constantly performed directly by the ETH32,
to terminate charging via dV, dT/dt, and 0dV detection it provides a much better alternative to polling over the
methods. Each phase of charging (initialization, fast, and Ethernet connection. It provides faster response, is very
top-off) has a programmable, safety back up timer. efficient with network bandwidth and CPU resources, and
Input is 90-264 VAC/47-63 Hz with charge rates is typically much easier to implement in applications. Event
between 1.8A and 4.5A, depending upon exact model. monitoring capabilities are included for digital I/O ports,
Safety approvals include UL (pending) and CE 60601-1. analog channels, and digital counters.
The unit contains an integral LED status indicator. The ETH32 offers full-featured software support and
Available in two-wire and three-wire configurations comes with software libraries for both Windows and
(three-wire for thermistor interaction), the dimensions are Linux, making it very simple to use the device. Support is
5.30 x 3.15 x 1.75 and it weighs .75 pounds. included for Microsoft .NET languages, Visual Basic, C,
The charger is available for immediate delivery. Single and C++. In addition, the protocol used over the TCP/IP
piece pricing starts at $125 with multiple, standard price socket is documented for those who want to do the
breaks. network programming themselves or are using an
For further information, please contact: unsupported platform. Libraries, documentation, and
sample programs are freely available for download on
Cell-Con Tel: 8007717139 ext. 210
Winfords website. The ETH32 retails for $225 in single
Incorporated Website: www.cell-con.com
unit quantities.
For further information, please contact:
4169 Four Mile Rd.
The ETH32 Winford Bay City, MI 48706
Engineering Tel: 8776342673
Website: www.winford.com

W
which
inford Engineering has just released the ETH32, a
general-purpose I/O device
communi-
cates over Ethernet. Show Us What Youve Got!
This device is ideal- Is your product innovative, less expensive, more functional,
ly suited for remote or just plain cool? If you have a new product that you
data acquisition or would like us to run in our New Products section, please
device control; all email a short description (300-500 words) and a photo of
that is needed is a your product to:
connection to an
newproducts@servomagazine.com
Ethernet network. The

SERVO 02.2006 23
Miller.qxd 1/11/2006 11:40 AM Page 24

Hacking a
LASER O ne day I decided I
wanted on and off

POINTER
by Jim Miller
control of a laser pointer.
The pointers are very easy
to mount on a servo,
theyre light, and great for
sighting. I poked around
for a cheap key chain laser
for several weeks. I finally
found one for about six
bucks at 7/11. It would
have to do and was about
as cheap as I had seen
anywhere else. Going to
work, I immediately pulled
the batteries out; 3 x 1.5V =
4.5VDC, so five should
probably be okay, right?

I CUT THE BATTERY CAGE OFF THE


POINTER AND WIRED IT UP TO A
POWER SUPPLY. I TURNED IT ON
AND IT SHONE BRIGHTLY FOR A
SECOND THEN NEVER AGAIN DID IT
pointers later, I had given up. There
are no elegant solutions here. The
diodes are super sensitive to current
and voltage. The small batteries are
necessary to maintain that balance.
anatomy. The basic laser pointer cross
section is shown in Diagram 1.
If you study the electrical path for
a second youll notice that the current
through the batteries is bridged
GLOW. So, like any determined The cases are integrated into the lens by the end cap to the case of the
builder, I went to 7/11 and got alignment and are just too fragile to pointer much like a flashlight. The
another pointer. This time Id just pull disassemble. I was tired of trying to individual batteries are insulated from
the diode out. Of course! I should get the laser diode out of the case the wall with a cardboard-like tube.
have done that the first time. A laser intact. To get control of the situation, we
pointer case is all epoxy and is While in a boring meeting at my need an insulator that can be
designed to stay that way. About five real job, it came to me. Tape down the controlled by a relay. A disk-shaped
button and take con- insulator will sandwich between the
trol of the batteries battery cap and the back of the last
with a dry contact battery. It will have a wire contact in
relay. Cant fail on the center that will be brought out of
that path! the case. We solder another wire to
Setting up for the battery cap to close the circuit
success, I found out and the laser will light up. Viola! It
that breaking a num- worked! Da 7/11 see me no more
ber of these pointers (see Diagram 2).
was not a total loss, I Some laser pointers have a flat
became something of battery cap on the inside. The one I
an authority on their used has an indentation. This is a
necessary feature. If your pointer does
DIAGRAM 1. Laser not have this indentation, you can drill
pointer cross section. it out. Id suggest a 1/4 hole about

24 SERVO 02.2006
Miller.qxd 1/11/2006 11:41 AM Page 25

PHOTO 1. Battery cap with


indentation.

DIAGRAM 2. Laser insulator detail.

1/4 deep (see Photo 1).

Step 1: Drill the wire hole. Remove the


battery cap and decide where you
want the wire hole. Slightly off center
of the little key chain connection is
a good place. The caps are usually
made of a cheap brass so drilling is
a cinch. BUT! Since you are starting the
hole on the top on a rounded
surface, youll need to punch a drill
guide or drill from the inside out (see PHOTO 2. Punch. PHOTO 3. Drill.
Photo 2).
Use a drill press if you can. These over the wire so its sitting on top (see through the hole first (see Photo 9).
caps are small so make sure its in a Photo 6). If any solder is hanging out of the
vice. Doing it by hand will hurt (see Carefully but quickly place a bead cap, file it off so the cap has a nice flat
Photo 3)! of solder on the exposed wire. This will edge to push on the insulator.
hold the wire in place and provide a
Step 2: Create an insulator/spacer. I larger contact area for the battery. Step 6: Heat Shrink (optional). Add a
used a small clear disk cut from the After cooling, the solder and wire will little piece of heat shrink tubing over
plastic in one of those obnoxiously look like a turnip (see Photo 7). Snip
secure product packages. Cut it the solder ball in half with a pair of PHOTO 5. Wire hole.
around the battery for shape with wire cutters (see Photo 8).
scissors. It does not have to be exactly
round but small enough so it can go Step 5: Wire the case. Solder anoth-
easily in and out of the pointer case. er piece of wire to the inside of the
You dont want it to get stuck (see battery cap. Its easiest if you route it
Photo 4).
PHOTO 4. Disk and battery.
Step 3: Make a wire hole. Punch
a hole in the center of the plastic
disk with an awl or pin. The hole
only needs to be big enough for
the stripped wire (see Photo 5).

Step 4: Wire the disk. Strip a


piece of 20 ga wire and clamp it
straight up in a vice. Slip the disk

SERVO 02.2006 25
Miller.qxd 1/11/2006 11:42 AM Page 26

PHOTO 6. Pre-solder wire. PHOTO 7. Solder turnip. PHOTO 8. Completed contact.

the wires to protect them from any wire through the hole drilled earlier pushed, the ends of the wires now
sharp edges on the wire hole. and pull the insulator wire fairly tight. It need to be connected to a relay or
should look something like this. other dry contact switch to activate the
Step 7: Put it all together. String the laser. In general, remember the entire
insulator wire, heat shrink, and the cap Step 8: Reassemble the laser pointer. case of the laser pointer is electrically
Screw the battery cap complete with active. If you use a metal mounting you
PHOTO 9. Case wire. insulator and wires back down into will need to be careful about your
the case and you are done with the wiring of the relay.
construction (see Photo 10).
Step 10: Mount the laser on a servo. I
Step 9: Tape the button. Wrap a piece mounted the assembly on a long servo
of tape around the laser button to hold arm with a couple of screw-ready wire
it down. You could also use heat shrink ties (see Photo 11). I wanted access to
for this. With the button permanently the set screw on the servo arm without
cutting any ties. There are a zillion
PHOTO 11. Mounted and HOT! ways to do this part so be creative!
Let me know how it goes. You can
reach me at jim@cannibalrobot
ics.com SV

About the Author


PHOTO 10. Completed construction.
Jim Miller has a Bachelor of Science
degree in Physics. He has been an active
roboticist since 1983 when his Apple //e
was running experiments in the
chemistry lab. He has written numerous
articles on computer interfacing and
robotics including all forms of
computers. You can find out more
about him and see the current state of
affairs at CannibalRobotics.com

26 SERVO 02.2006
Shinsel2.qxd 1/10/2006 1:44 PM Page 27

[Part 2]
MEET THE BOTS
INTERMEDIATE HelmBot iPaq PDA Robot (left)
Seeker Laptop-based Robo-Magellan
Robot (below)
ROBOTS
Building a Laptop-
or PDA-Based Robot

I
n last months article, I described the hardware design of a laptop-based
robot. Now, lets get into the software. The first thing you should
consider is what do I want to be able to do with this software?
Software Requirements
The requirements for my design were:
Must communicate reliably with an embedded microcontroller.
Must have extensible behavior programming capabilities.
Must have an easily customizable User Interface, to aid in trou-
bleshooting (see Figure 1).
Must have wireless remote operation and the ability to
debug from another computer.
Should have a Path entry for following a complex course.
Should have Graphical mapping for navigation
debugging.
Should have a simulator, to allow testing some of the
algorithms without having to actually run the robot.
Notice that the last three items are should haves. I
could still have built a successful Robo-Magellan robot without these, but
they made developing a lot easier!

B Y D A V E S H I N S E L

High Level Design and the sensory data, FIGURE 1. Seeker Command GUI
determines the appropri-
Refer to Figure 2. The design is ate action, and issues
built around a robot behavior and con- commands to send to
trol engine that performs the following: the PIC which are,
in turn, sent to the
1. Accepts user commands from either hardware.
a local or a remote User Interface.
4. Sends status and
2. Processes sensory data passed to it debug information back
from the PIC microcontroller or other to the User Interface, to
inputs (such as a video camera). aid in navigation (in the
case of remote control)
3. Based upon the requested behavior and debug.

A QUICK WORD ABOUT THREADS


Win32 (Windows NT and XP) provides a threading model based upon
Preemptive Multitasking. This allows several tasks to all appear to run at the
same time.The processor is actually letting each run for a short time-slice, and
then switches to the next task. Inside a single program, these tasks are called
threads. Threads are handy because they can block while waiting for some
event to happen, and not cause the whole system to stop responding.Threads
require almost no attention from the CPU when blocked, so performance
stays high.Threads make writing complex, multitasking programs much easier.

SERVO 02.2006 27
Shinsel2.qxd 1/10/2006 1:45 PM Page 28

INTERMEDIATE ROBOTS

Control Modules
The control engine fea-
tures a pluggable architec-
ture. New modules may be
fairly easily inserted into the
control engine, and the
control thread will send
commands and sensor data
to the new module. I found
the pluggable architecture
so useful that I even used it
for two processing modules
FIGURE 2. Robot Control High-level Overview that take care of non-
behavioral tasks; the Sensor
Control Engine to turn right. Since the Object Fusion and System modules.
Avoidance Module has priority over The highest priority module is the
Refer to Figure 3. All user com- the Navigation Module, the arbitrator Sensor Fusion Module. This module
mands and sensory data are fed into will allow only the turn left command pre-processes data that is then fed to
the control engine. This engine uses a to get through. all the other modules. It scales sensor
modified subsumption architecture, There are times, however, when it data from raw values to a standard
first proposed by Rodney Brooks at might be desirable for a lower priority unit (inches), combines inputs to
MIT. This behavioral programming module to suppress commands from calculate interesting data (such as the
model is frequently used in robots. a higher priority module. For example, nearest threat), and updates the
The basic idea is this: Sensory and in the Robo-Magellan contest, robots robots location on its internal map.
command data is sent to all modules must actually touch cones on the The System Module mostly tracks
and each module makes its own course to get extra points. With no the health of the PIC microcontroller. It
decisions on what the output to the way to suppress the behavior, the posts error messages from the PIC,
motors or other devices should be. Object Avoidance Module would reports the PIC version info, and sends
Modules are assigned relative priority, always cause the robot to swerve snapshots of sensory data to the
and an arbitrator blocks commands away from the cone! So, when the User Interface for debug purposes.
from lower-priority modules. Navigation Module has locked on to a The Collision Module is the
Lets try an example. Say the cone and is heading towards it, it will highest priority behavior module. The
Object Avoidance Module sends a suppress the Object Avoidance and Collision Module monitors sensor data
command to turn left while the Collision modules until the cone is for range values that fall below specif-
Navigation Module sends a command reached. ic thresholds. Examples of this are IR
sensors reporting an object less than
FIGURE 3. Robot Control Engine four inches away, or bumper switches
being pressed. Upon triggering, the
Collision Modules internal state
machine takes over control of the
motors and steering. It will retain con-
trol until it has completed a sequence
of steps which attempt to clear the
robot from the obstruction. Once the
behavior has completed, control is
returned to other modules.
The next highest priority is given to
the Object Avoidance Module. It is
interesting to note that this module
receives exactly the same sensor data as
the Collision Module, but acts different-
ly upon the data it receives. The Object
Avoidance Module keeps moving the
robot forward, but will attempt to steer
the robot around objects in its path.

28 SERVO 02.2006
Shinsel2.qxd 1/10/2006 1:46 PM Page 29

The User Command Module


MORE ABOUT SUBSUMPTION ARCHITECTURE
processes all commands from the
User Interface. This module allows the Subsumption Architecture is much like your nervous system. Your high-level thought
process may instruct your hand to pick up a pan from the stove. However, your reflex behav-
user to manually drive the robot, pan
ior upon touching the hot pan will override the initial command, because the reflex to not get
the camera, etc. Note that a user burned has higher priority. If you decide you really want to pick up the pan anyway, you can
command to drive into a tree would suppress your natural reaction and pick up the pan. Reflex behaviors are high priority; they get
be overridden by either the Object processed even when your mind is on something else. High-level thinking takes longer to
Avoidance or Collision modules. This process stimulus data and decide what to do. But, once a decision has been made, the lower
is handy when remote controlling the priority behavior can temporarily suppress reflex behaviors.A good example of this is when you
robot over the Internet. consciously decide to hold your breath.
Robot Waypoint Navigation is
the lowest priority module. When no tion that might be interesting to a The Path Entry Dialog (see Figure
other modules have asserted control, robot builder. For the purposes of 5) is used to enter the various
the Waypoint Navigation Module is this article, I will focus on pre-planned Segments the robot is expected to
free to drive the robot to its destina- navigation. In pre-planned navigation, follow. First, the Start Waypoint is
tion. If one of the other modules the robot is provided with a starting entered in absolute coordinates. By
forces the robot off course (for exam- location, final destination, and default, this is (1000, 1000). Next,
ple, to avoid an object), the navigation Waypoints along the way. absolute direction (in degrees from
module will recalculate its route and Using an internal map, the robot North) and distance (in feet and inch-
resume heading to the next waypoint. must be able to find its way from one es) is entered for each segment. Once
Waypoint to the next, avoiding obsta- all of the segments are entered, press-
Internal Map cles along the way. I use the term ing the ReCalculate All button will
Segment to refer to the connecting calculate the absolute location of all
The robot software utilizes an lines between Waypoints, and the the other Waypoints.
internal map based upon a grid that is term Path to represent the full collec- Waypoints are associated with an
just over one mile square. All coordi- tion of Waypoints connected by (X,Y) location coordinate. In addition, a
nates are expressed in inches. Since a Segments (see Figure 4). Waypoint may optionally have a
16-bit word can hold a number up to
65,535, a single 32-bit value can hold FIGURE 4. Internal Map Segments and Waypoints
the X and Y coordinates for any loca-
tion within a 1.03 square mile area.
The map Origin (coordinate 0,0) is
in the South West corner of the map.
The map may be anchored to the real
world by associating any one point on
the map with a GPS coordinate. The
Origin is automatically calculated as an
offset from that point. It is interesting
to note, however, that the map is only
required to be anchored to real world
coordinates if GPS is being used. For
the SRS Robo-Magellan contest in
Seattle, I did not use GPS at all.
Instead, I chose an arbitrary start loca-
tion set to (1000, 1000). All real world
features such as cone placements
and obstacles are calculated auto-
matically as offsets from that point.
The only critical requirement is that all
interesting information must stay with-
in the one square mile boundary of
(0,0) to (65,535, 65,535).

Navigation
There are many types of naviga-

SERVO 02.2006 29
Shinsel2.qxd 1/10/2006 1:47 PM Page 30

INTERMEDIATE ROBOTS

build up as the robot


ATTRIBUTES
navigates along the
Waypoint Attributes: path.
Waypoint location (X,Y)
Landmark Type Segments can
None have attributes as well,
Cone which help the robot
Drop Off successfully navigate
Pole specific portions of the
Tree course. For example, if
Wall
Landmark Range (in inches) the Segment Behavior
Landmark Direction (in degrees) is Follow Wall, the
robot will drive a path
Segment Attributes: parallel to the wall.
From and To Waypoints Additional parameters
Distance (length of segment)
are provided to indi-
Direction
Speed cate left or right side
Behavior and distance to
Compass maintain from the
Compass+GPS wall. A behavior of
Follow Wall Follow Hall or Enter
Follow Dropoff
Follow Hall
Doorway will cause
Find Doorway the robot to search for
Optional: Follow Wall parameters FIGURE 5. Path Entry Dialog an open area between
Left/Right two objects, and head
Distance the robot will search for a narrow for that middle area between them.
object in the right location, and head
Landmark Type associated with it. If the for it. When the robot reaches the spec- Simulator
Landmark Type is set to Cone, the ified distance from the landmark, it will
robot camera will actively search for a consider the Waypoint reached, and The Robot Control Software has a
cone while heading for the landmark. If head for the next Waypoint. Landmarks built-in simulator. The program is avail-
the Landmark Type is Pole or Tree, are very useful for correcting errors that able for download from the SERVO
website (www.servo
FIGURE 6. Control Software Data Flow magazine.com). This
will give you a good
feel for the robots
capabilities prior to
jumping into the
source code. Once
you download the pro-
gram, simply create a
new Path and enter
some data. Next, cre-
ate a new Map. If you
tell the robot to move,
the robot icon on the
map will move in
response to your com-
mands. If you tell the
robot to follow the
path, it will to the best
of its ability. Try it!

Connecting it
All Together
Refer to Figure 6.

30 SERVO 02.2006
Shinsel2.qxd 1/10/2006 1:50 PM Page 31

This detailed block dia-


gram of the full system
shows how all the parts
of the system interact
with each other. First,
notice the nine threads
indicated by blue boxes.
Each of these threads
block while waiting for
some event to happen.
Most are tied to a com-
mand queue. When
one thread wants to
send data to another
thread, it puts the data
in the other threads
command queue.
Lets walk through
the model. Assume the
user presses a button to
increase the robot FIGURE 7. Remote User Interface
speed. The User
Interface GUI thread (1) will get the Reporting module (8) that is accessi- Remote Control and
User Event (button pressed), and place ble to all threads. Debug messages,
a command into the Control Thread sensor status, and other useful infor-
Monitoring
Queue (2). The Control Thread will mation are sent to the GUI thread by One nice feature of this software
pull the set speed command from the Status Reporting module. is that the robot can be controlled and
the queue, and pass it to each of the In addition to communication monitored from a remote location,
Control Modules. The User Command from the PIC microcontroller, there such as over the Internet or from a
Module will act on the command and are Camera, GPS, and Timer modules local PC using 802.11 wireless. When
issue a change speed command to the that also send their data to the the Robot Control Software is
Drive Control Arbitrator (3). Assuming Control Engine. The interfaces to compiled, there is a build switch
no other module has issued a higher these will be discussed in Part 3 of this that allows either the Server or Client
priority command, the Arbitrator will series. version to be built. Both the client and
send the command to the serial
queue in the PIC Comm Write Thread.
The PIC Comm Write Thread (4) will
send the command to the PIC con-
troller via RS-232. The PIC controller
(5) will act on the command, and
adjust the motor speed.
Now, lets assume an object has
been detected ahead by one of the
sensors. The PIC controller (5) will
send a status packet to the host com-
puter. The PIC Comm Read Thread (6)
will read the status packet from the
serial port, and post it to the Control
Thread (7). The status is sent to each
of the Control modules in turn. If the
object is close enough, the Collision
or Object Avoidance module may
send a new command (perhaps Stop
or Turn), to the Drive Control
Arbitrator, and the cycle repeats.
There is a global Status

SERVO 02.2006 31
Shinsel2.qxd 1/10/2006 1:51 PM Page 32

INTERMEDIATE ROBOTS

server versions are built from the be sent. Currently, Microsoft is available for download from the
same source, eliminating the need to Netmeeting is used to handle the SERVO website, so you can get a
maintain two separate projects. audio and video, but other mecha- good feel for the robots capabilities.
Figure 7 shows how the Client nisms can be used, as well. The source code to all of the
(remote PC) and the Server (the For detailed debugging (stepping software discussed in this article is
laptop on the robot) communicate. through code), I often use the available from my website at
Standard Windows WinSock is used Microsoft Remote Desktop. This is a www.shinsel.com/robots
to create sockets on both machines, great feature of Windows XP that To compile the software without
and threads are created to read and allows you to take control of a com- modification, you will need Microsoft
write to the opposite machines sock- puter from a remote location. Visual C 6.0 (MSVC6). I believe you
et. When a remote (client) is connect- However, its not very good during can also use Microsoft .Net, but I have
ed to the robot, all the status and actual robot operation, because the not tried it yet. And, of course, since
debug information is sent to the overhead can slow the robot respons- it is source code, you can convert to
client, and all commands from the es down too much. During robot Linux, or whatever you want!
Client UI are sent to the robot. operation, I rely more on the remote
For remote control and remote log information that I receive on the Next Month
presence, audio and video can also client to understand what the robot is
doing, and why. In Part 3 of this series, I will go
ABOUT THE AUTHOR into detail about the PIC microcon-
Dave Shinsel has been a hardware and Conclusion troller software, how the Laptop and
software engineer for a number of companies PIC communicate, GPS, and color
including Hughes Aircraft, Epson Printers, Hopefully, this article has provid- tracking with a USB camera. Until
Mentor Graphics, and for the last 12 years, ed you with a good overview of the then, the thought for this month is:
Intel Corporation. At Intel, Dave manages a design approach I have taken for my Real programmers dont use com-
software engineering team for the Consumer robots. As mentioned earlier, a binary ments. If the code was hard to write,
Electronics Group in Portland, OR.
version of the Robot Control Software it should be hard to understand. SV

32 SERVO 02.2006
Kafig.qxd 1/11/2006 11:51 AM Page 33

Serial Communication
Without A Serial Port
Bit Banging Fundamentals
b y P a u l K a f i g In the January 2005 issue of
SERVO, Jack Buffington shared
a well-wwritten and informative
S TILL, THE PROBLEM MANY OF US
FACE IS THAT OUR PROCESSORS
ONLY HAVE ONE SERIAL PORT, AND
data, it idles in the high state. To com-
municate, the processor initially brings
the line low (the start bit), sends each
article that instructed the
reader how to connect an LCD
display (which uses the popular
WE NEED THAT FOR DIAGNOSTICS. bit (least significant bit first), and then HD44780 driver) to a proces-
Or worse yet, our processors dont brings the line high once more (the sor. While this display has
have any serial ports. The solution stop bit). Since there is no clock sig- features above and beyond
here is to use a technique known as nal, the timing of these bits is critical. simple text display (which Mr.
bit banging. How much time elapses between Buffington mentions in his arti-
Bit banging provides a useful way each bit transition is what determines cle), I couldnt help thinking
for your processor to communicate the baud rate. Our goal here is to wig- that there are simpler, faster
serially with the outside world gle the logic level of a processors gen- methods to attach an LCD to a
without having the need for a serial eral purpose I/O pin in such a way as
processor or robot. The most
obvious solution is to use a
port. This article will cover the theory to mimic the operation of a serial serial connection to a serial
behind bit banging and also demon- ports output. This is what bit banging LCD (as opposed to the parallel
strate an example by sending a string is all about. For more detailed connection of the HD44780).
of characters to the serial port of a information about serial communica- This would not only be easier,
PC, which can be seen by a terminal tions and the RS-232 protocol, type but also use fewer pins (one pin
program such as Hyperterminal or RS-232 tutorial into any Internet for serial output versus at
Procomm. search engine and you will find an least eight for parallel output;
The PIC16F84 is the processor of abundance of information. one could always hardwire the
choice in this project along with the control lines to Vcc or GND).
C programming language. If you pur- Procedure Figure 1
chased a PICSTART Plus development
kit (the one typically used by PIC hob- In this project, were
byists), you received a programmer, going to build a test fix-
PIC16F84 processor, and the PICC ture to send out a serial
LITE C compiler specifically for this string at 1200 baud.
processor. This development kit is Well follow a three step
available from Microchip Technology process:
(www.microchip.com) as part num-
ber DV003001. If you have a different Determine the length Figure 2
kind of processor, dont worry. The of each bit in the byte.
concepts presented in this article can Build the hardware
be implemented in many different (text fixture).
ways. More on this later. Write the software.

Theory Determining the


Length of Each Bit
Figure 1 shows the format of a The easiest way to
byte (eight bits) of data as it is sent determine this informa-
out of a processors serial port. tion is to look in a book
Voltage levels here are typically five or standard. Serial
volts (high) and zero volts (low). PICn1 has one such
When the processor is not sending table. But if you dont
SERVO 02.2006 33
Kafig.qxd 1/11/2006 11:51 AM Page 34

5 show the schemat-


ic of the hardware
used in this project, a
bill of material, and a
photo of the actual
hardware. Starting
from the left side of
the schematic, Y1 is
the resonator for the
PIC. Although the
PIC gives several
options for driving its
internal clock, I like
resonators for two
reasons.
First, theyre
Figure 3 only one part as
opposed to a crystal
Reference Description Maufacturer Part Number plus two capacitors,
and second, theyre
C1-C3 Capacitor, 0.1 f, Ceramic BC Components K104K15X7RF5TH5 or =
pre-tuned to oscillate
C4-C7 Capacitor, 1.0 f, Tantalum AVX Corporation TAP105K020SCS or = precisely at the desired
R1 Resistor, 10K, 1/4 watt, 5% Yageo CFR-25JB-680K or = frequency. In the center
we see U1, which is the
N/A DB-9 Female Connector, Solder Cup AMP/Tyco 747905-2 or =
PIC. A simple RC net-
Y1 Xtal Oscillator, 4.0000 MHz Epson SG-531P 4.000MC or = work is used for the
U1 PIC16F84 Microcontroller Microchip Technology PIC16F84-04I/P or = master reset. And
finally, at the right, is
U2 IC, Dual EIA-232 DRVR/RCVR Maxim MAX232N or = the MAX232 driver to
Figure 4 convert the 0 to 5 volt
signal from the PIC into
play. By connecting an oscilloscope the 12V (approximately) signal
TECH TIDBIT between the transmit and ground pins required for RS-232 communication
RS-232 communication is of your computers serial port (pins 3 to the PC. C1 and C3 are bypass
sometimes called asynchronous and 5 on a DB-9 male) and continuous- capacitors for high frequency transients
(without clock). There are also ly sending a capital J or R through and should be located as close as
synchronous serial protocols, the serial port (by way of your comput- possible to their respective ICs. Notice
such as I2C. ers terminal program), you can that a particular power supply is not
identify the bits in the ASCII byte. indicated. The circuit only requires five
want to take someone elses word for I like letters like J and R volts. This can be done with a bench-
it (or just like to find the answers for because they have alternating 1s and 0s top power supply or an additional IC
yourself), theres a little trick you can in their bit stream and that makes for regulation. The choice is yours.
it easy to pick out indi-
vidual bits. Identify an One important note here: the
individual bit and MAX232 driver also does one other
measure its width. To thing. It inverts the signal from the
produce the waveform PIC. The sketch in Figure 1 is correct
shown in Figure 2, I for the asynchronous signal coming
sent the letter J to the from a UART, PIC, or other RS-232 sig-
serial port. The width of nal generator. The signal is inverted
the bit in the center when it gets transmitted over an RS-
(between the cursors) is 232 cable. So if youre connecting
about 840 s. your bit banging output to a serial dis-
play, make sure to read the data
The sheet carefully and be sure to under-
Hardware stand what signal levels and polarity
the display is expecting. Otherwise,
Figure 5 Figures 3 through the display may be damaged. If youre
34 SERVO 02.2006
Kafig.qxd 1/11/2006 11:52 AM Page 35

transmitting to a computers serial #include <pic.h>


port, its a good idea to run the PICs __CONFIG(0x3FF9); // configuration bits
signal through a chip or other circuit // Oscillator XT
that will give the correct levels and // Watchdog timer OFF
// Powerup timer OFF
polarity. // Code protect OFF

As for constructing the test fixture, void delay(void);


I wire wrapped mine. For this kind of
main(){
project, soldering is just too much trou-
ble and using a breadboard is too unre- TRISA = 0x00; // port A is an output port
liable. It took me less than an hour to
construct the hardware for this project. while(1){
RA0 = 1;
delay();
The Software RA0 = 0;
For the software, were going to delay();
}
write two programs. The first will
establish the time delay between each }
bit transition. The second will perform
the actual bit banging. //-----------------------------------
Figure 6 shows one possible // Functions
//-----------------------------------
version of the first program. This pro-
gram simply alternates between high
and low logic levels (equivalent to a
really long character consisting of // //
This function gives an 840us delay
with a 4MHz oscillator
alternating 1s and 0s). If youre using void delay(void){
an oscilloscope, you can look at the int i;
signal and measure each bits width. If
for (i=0; i<47; i++);
you dont have a fancy oscilloscope, }
Figure 6
but still have some rudimentary way
to measure frequency (many
reasonably priced multime- #include <pic.h> Figure 7
ters have this function), you __CONFIG(0x3FF9); // configuration bits
// Oscillator XT
can still tune your PICs delay // Watchdog timer OFF
function. Since we know that // Powerup timer OFF
the width of one bit is around // Code protect OFF
840 s, a full high to low to
high period will be twice this, //-----------------------------------
// Function Prototypes
or about 1,680 s. Inverting //-----------------------------------
this value will give you the void delay(void);
frequency, about 600 Hz. void bit_bang(char ch);
Connect your probes //-----------------------------------
between the bit banging pin // main program
(pin 17 in this case) and //-----------------------------------
ground and try to attain this main(){
char string[] = "Servo!\r\n"; // our test string
frequency. char index;
Figure 7 shows one possi-
ble version for the final test TRISA = 0x00; // port A is an output port
code. Starting from the
while(1){ // infinite loop
main() statement, I first for (index=0; index<9; index++){ // print the test string...
define the test string and a bit_bang(string[index]); // one character at a time
variable to keep track of the }
character within the string }
that Im printing (the index). }
The while loop cycles through //////////////////////////////////////////
each character of the test //
string. Looking at how the bit // delay
//
banging function works, RA0 // This function gives a 840us delay
is first brought low for one bit continued ...

SERVO 02.2006 35
Kafig.qxd 1/11/2006 11:53 AM Page 36

// with a 4MHz oscillator Figure 7 continued other exercises and/or ideas


////////////////////////////////////////// to try:
void delay(void){
int i; If youre using a MAX232
for (i=0; i<47; i++);
driver (or equivalent circuitry)
} to level shift the serial output
from your processor, you can
////////////////////////////////////////// add a second serial port to
// bit_bang
//////////////////////////////////////////
the project by bit banging out
void bit_bang(char ch){ a second pin. See if you can
char cnt; modify the code to use the
same C function for both pins
RA0 = 0; // start bit
delay();
(I suggest you pass a variable
to the function).
for (cnt=0; cnt<8; cnt++){
RA0 = (ch >> cnt) & 0x01; // bit 0 to 7 You can bit bang a message
delay();
}
to a serial servo controller and
use this method to control the
RA0 = 1; // stop bit servos in your robot.
delay();
}
Write the code to accept a
serial signal from a computer.
period. This is the start bit to tell the the end of the character. The output of In this case, you would have to detect
receiving hardware that a character is this program is shown in Figure 8. the start bit and then wait the appro-
about to be sent. Next is a loop that priate amount of time before sampling
counts from 0 to 7, inclusive. Each Conclusion and the data on the pin. You would then
time through the loop, the bit pattern need to concatenate (and possibly
of the character is shifted right a Ideas for Further reverse, depending on your algorithm)
number of times equal to the loop Experimentation the bits before processing the incom-
iteration. This shifted value is logical ing character.
ANDed with 1. This operation just Although this article focused on
masks out every bit except the right using bit banging to send a series of Do a little research to determine how
most (least significant) bit. Whatever characters to your computers serial parity is calculated and add a parity bit.
this right most bit is, thats the value port, the concepts here are easily
that gets placed on the pin. adaptable for other applications. Change the baud rate of the bit
Finally, the pin goes high for one For example, if your goal is to add a banging in this project. Just remember
bit period to signify the stop bit and display to your robot, simply use the that the higher the baud rate, the less
output from the forgiving the timing will be and the
Figure 8 PIC without the more accurate your processor will have
level conversion to be.
and attach this to a
serial display. An Processor too slow? Bit banging can
excellent source for be done totally in hardware. Use your
serial displays is favorite processor to write a byte (char-
Scott Edwards acter) to a latch. When your processor
Electronics, Inc. gives the go-ahead, the bit banging
( w w w. s e e t r o n . can be done in hardware. You can use
com). discrete logic ICs or program an extra
Also, if the PIC port (or many ports) into an FPGA or
is not your proces- CPLD.
sor of choice, thats
not a problem. Have fun bit banging away! SV
These bit banging
concepts can be
applied to any RESOURCE
processor that is 1Stevens, Roger L. Serial PICn,
fast enough. Square 1 Electronics, Kelseyville,
CA, 1999.
Here are some
36 SERVO 02.2006
Davis.qxd 1/12/2006 4:14 PM Page 37

by Lester Ringo Davis

M
any readers of SERVO know about the FIRST challenge from last year, except it was scaled down. Each
competition that is held every year. There have team has a human player that must throw wiffle balls into
traditionally been two different divisions the a mobile goal or a stationary goal. The robot must herd
FIRST LEGO League (FLL) and the FIRST Robotics balls to the human player in order for the human to throw
Competition (FRC). The FLL is designed for middle school- them into the goal. There is also a large rubber ball that
ers and FRC for high schoolers. The problem is that it is a caps the mobile goal at the beginning of every round. If
huge leap from one group to the other. The FRC robots can the robot can remove that ball, then replace it after balls
be eight feet tall or more when
fully extended, weigh well over
100 pounds, and cost several thou-
sands of dollars to build. So, this
year FIRST decided to try some-
thing new: the VEX challenge.
For this challenge, partici-
pants received four VEX kits
that each consisted of a radio
transmitter and receiver, three
motors, one servo, eight wheels,
assorted gears, a microcontroller,
and more nuts, bolts, and metal
mechanical parts than you could
count. These VEX kits are now
available at local RadioShack
stores and were initially
developed for FIRST. I was lucky
enough to find out about the
challenge and was selected to
participate as a mentor for my 15-
year-old son and his two friends
who made up VEX Challenge
team #8. Match in progress.

The Challenge are in the goal, then the score is doubled. There is also a
large bonus if the robot can hang from a chin-up type bar
Like FRC and FLL, we had no idea what the challenge in the middle of the arena.
would be or what would be in the kit before the kickoff Figure 1 shows the arena before a match starts.
day. Everyone receives the same information on the same There are two teams on the red end and two teams on
day so that no one has a time advantage. The challenge the blue end. The teams are randomly selected and must
this year was almost exactly the same as the FRC work together. Your ally in one round may be your

SERVO 02.2006 37
Davis.qxd 1/12/2006 4:15 PM Page 38

Figure 1. Arena ready to go. Figure 2. Squarebot. Figure 3a. Claw gear closeup.

competition in another. With each how to wire up sensors to the micro- better view of how the motors are
round, the teams change so the controller. By the end of the first night, mounted.
strategy changes depending on the the team had Squarebot running Once the claw was assembled, we
capabilities of each robot. Some teams around under radio control. It was built a frame to hold it up off the floor
had simple bots that only corralled equipped with bump sensors that dis- to test it. Figure 4 shows the claw
balls, some had arms for picking up the abled it for a few seconds if either one successfully lifting the rubber ball into
large rubber balls, and some had arms was hit. It was designed as a soccer the air. If you look closely, you will see
for hanging from the central bar. playing bot, but the boys just used it an extra gear in the lifting mechanism
for fun. Figure 2 shows the completed between Figures 3 and 4. On our first
Building the Robot Squarebot. lifting test, the motors were not
Team #8 now had a good idea on strong enough to lift the ball, so we
The kit for the challenge included how the motors and radio worked and added a second stage. Each stage
four complete VEX starter kits. We were ready to start building. We first reduces the gear ratio by 5 to 1, so the
were only allowed to use the total tackled the claw that would pick up the total reduction is 25 to 1. With this
number of parts from three kits, so ball from the ground and place it on configuration, we had plenty of power
we had an entire kit as a spare. After top of a 15-inch goal. We used a motor to lift the ball.
looking at what we had to work with, and a few gears to build a mechanism So now we had a working lifter
we decided to start out trying to build that would open and close two long and just needed to make it mobile. The
a bot that could pick up the large arms. After that, we added a frame team spent a couple nights building a
rubber ball from the ground or from around that portion and two motors four-wheel drive unit and bolting it
the mobile goal, and put it back on that could tilt the arm up and down. onto the claw.
the mobile goal. When that was The long arm needed lots of torque to When we tried to pick up a ball
completed, the plan was to start work lift the ball, so we used two motors with the new bot, it promptly tilted
on the bar-hanging mechanism. on opposite sides of the frame. An over on its face. A couple wheelie
The first night the team got interesting aspect of the VEX controller bars in the front of the robot fixed this
together, they started going through is that you can plug in motors in problem and also served as a nice ball
the manual included with the kit. It different configurations so that they corral. Figure 5 shows the completed
stepped them through building a work together, such as in two motors robot ready to go.
simple robot called Squarebot. It on one side for four-wheel drive, or so
explained how to use the motors and that they spin in opposite directions as Practice
gears to build a four wheel drive in our configuration. Figure 3a shows a
geartrain, how to use the radio, and close-up of the gears and 3b shows a The first day the kits came out,

Figure 3b. Claw gear. Figure 5. Completed robot.

Figure 4. Successful lifter test.

38 SERVO 02.2006
Davis.qxd 1/12/2006 4:17 PM Page 39

Figure 6. Figure 7. Alliance #8.


Capping
the goal.

Figure 8. Team #8.

everyone knew about each others further problems. against the first alliance, which meant
team. I set up a Yahoo! group and the top two teams, both of which were
emailed all the local teams about it so The Competition undefeated.
that we could communicate and help The quarter finals were two out of
each other out. This turned out to be When we arrived at the Georgia three matches. We lost the first match
useful as one of the other teams Dome, we proceeded to the pits to set but came back to win the next two,
brought up the idea of having a up and start practicing. We started sending us to the semi-finals and
practice scrimmage a week before the looking around at all the other designs knocking out the undefeated teams!
competition. One of the teams secured and were amazed at how different During the semi-finals, one of our
a church gymnasium for us to use everyones robots were. There was a teammates stripped a gear, so we were
one Saturday afternoon. In order to day and a half of qualification rounds frantically looking around for someone
practice for the event, each team was followed by the finals on the afternoon that would lend us some spare parts. A
given the exact dimensions of every of the second day. There was a very girl from another team saw our distress
part of the arena so that replica parts large screen set up in the pits showing and quickly ran over to her teams sup-
could be made. Some people only everyones rankings as the day plies and gave us what we needed. It
made the goals while other people progressed. Our design used two wasnt until the next match started
built almost the entire arena. During transmitters and two receivers. This that we realized that she was from the
the scrimmage, everyone brought the allowed one person to drive, and the competition. I dont remember the
parts they had, so it allowed us to other to work the arm. team name, but VEX team #35 really
practice against each other and for During our first round, we had showed what gracious professional-
everyone to get a good idea of what placed the receiver crystals in the ism is all about.
the real thing would be like. Figure 6 wrong receivers so our bot looked like Our teammate had about two min-
shows our bot putting the rubber ball it was having a fit. Needless to say, we utes to rebuild his lifting mechanism
on top of the mobile goal. did horribly and lost the match. We with the new parts and was just able to
It was a good thing we were there noticed after that we were ranked 51 get it finished in time. We went on to
because we found a problem with our out of 52 teams. Luckily for us, there the semi-finals in four matches (one
design. While we had plenty of power were lots of qualification rounds. We was a tie) and made it to the finals. We
from the motors now, the inside of the did better after that and won a few ended up losing the finals in the third
gears were stripping out. The gears rounds and lost a few rounds. At one match to an alliance that included
have a square hole in the center that time, we made it up as far as 24. teams sponsored by RadioShack and
goes on a square shaft that also feeds We were happy just to make it into the NASA. If you are going to lose, thats a
into the motor. The square holes had top 50%. good team to lose to.
turned round under the stress of After all the qualification rounds Overall, it was a great experience.
picking up the ball with the long arms. were finished, the top eight teams RadioShack did a great job on the kits,
We thought about doubling up the picked their alliance partners for the giving us everything we needed to
gears, but that would mean a total final rounds. Each alliance consisted of complete the challenge, and FIRST did
redesign and rebuild of the robot. three teams. Of course, the first place an equally great job on organizing the
The kit includes small plastic team picked the second place team as event. The boys on our team learned a
bearings with metal inserts and square an alliance, along with one other team. lot about teamwork and engineering
holes that we had already used to Everyone thought they would be and had a blast in the process. Figure 7
mount the axle to the rotating part of unbeatable. Now out of choices, the shows our alliance and all three bots.
the arm. We took some new gears and eighth place team picked us to be in Figure 8 shows Team #8 once ranked
bolted these bearings to the gears their alliance. We were elated, until we 51 out of 52, but who made it all the
to strengthen them and did not have found out that we were matched up way to the second place alliance! SV
SERVO 02.2006 39
BrainMatrix.qxd 1/10/2006 10:17 AM Page 40

Bolt-On Wheel Hubs


Dimensions

Pa
H

rt
ub

N
um
N

Im
am

ag
MANUFACTURER be

D
B
e

e
r
HUB STYLE MOUNTS
Universal Hub 6 mm Hub-02 A 6 mm 0.37 0.87 0.11

Universal Hub 4 mm Hub-03 A 4 mm 0.37 0.87 0.11

Lynxmotion Mounting Hub Hub-05 B 6 mm 0.32 x 0.07 0.87 0.08


www.lynxmotion.com

Mounting Hub 4 mm Hub-06 C 4 mm N/A 0.87 N/A

Mounting Hub 6 mm Hub-07 C 3 mm N/A 0.87 N/A

LH Wheel Hub Clamp 48655 D 0.25 in. 0.64 1.12 0.11


Team Associated
www.teamassociated.com
Wheel Hub Left-Hand RC10L 8212 E 0.25 in. 0.64 1.12 0.15

Robot Store Mounting Hub Black Nylon 386062 F 0.25 in. 0.64 1.18 0.08
www.robotstore.com

HEX STYLE MOUNT FOR R/C CAR AND TRUCK TIRES


DuraTrax 19 mm (0.75 in.)
Drive Hub w/Wheel Nut DTXC7510 G 6 mm 0.47 0.4
www.duratrax.com HEX
Note: All dimensions are in inches unless noted.

Image A Image B Image C Image D

40 SERVO 02.2006
BrainMatrix.qxd 1/10/2006 10:17 AM Page 41

by Pete Miles

Upcoming topics include SBCs and H-bridges, sensors, kits, and actuators. If youre a manufacturer of one of these items, please
send your product information to: BrainMatrix@servomagazine.com Disclaimer: Pete Miles and the publishers strive to
present the most accurate data possible in this comparison chart. Neither is responsible for errors or omissions. In the spirit of
this information reference, we encourage readers to check with manufacturers for the latest product specs and pricing before
proceeding with a design. In addition, readers should not interpret the printing order as any form of preference; products may
be listed randomly or alphabetically by either company or product name.

Li
M

st
at

Pr
er

ic
ia
H

K
G
E

e
J
F

l
HUB STYLE MOUNTS
0.25 0.47 0.23 0.37 0.61 #5-40 Thread, four places #10-32 Thread Aluminum $8.00/pair

0.25 0.47 0.23 0.37 0.61 #5-40 Thread, four places #10-32 Thread Aluminum $8.00/pair

0.87 1.07 0.25 0.38 N/A #8-32 Threaded Center Tap #10-32 Thread Aluminum $10.00/pair

0.090 thru five places and


0.065 0.63 0.18 0.5 0.7 #6-32 Thread Aluminum $8.00/pair
#5-40 Threaded Center Tap
0.090 thru five places and
0.065 0.63 0.18 0.5 0.7 #6-32 Thread Aluminum $8.00/pair
#5-40 Threaded Center Tap

0.12 0.7 0.29 0.72 0.93 #4-40 Thread, four places #4-40 Thread Aluminum $17.49/ea

0.12 0.9 0.14 0.55 0.93 #4-40 Thread, four places #10-32 Thread Aluminum $5.79/ea

0.2 0.87 0.28 0.73 0.93 #5-40 Thread, four places #10-32 Thread Nylon $7.99/pair

HEX STYLE MOUNT FOR R/C CAR AND TRUCK TIRES


0.3 0.71 0.16 0.39 N/A 19 mm x 1 mm Thread 5 mm x .8 mm Thread Aluminum $4.99/ea

Image E Image F Image G Defines what the dimensions are.


J F K

I C B A H

G
D
E

SERVO 02.2006 41
Samans.qxd 1/11/2006 11:29 AM Page 42

The Robosapien V2 by Jamie Samans

BIGGER AND BETTER


Its hard to believe it has been almost two years since the
introduction of WowWees groundbreaking Robosapien robot.
In that time, well over a million robots have found their way to the far corners of the
globe. Mark Tilden Robosapiens creator even told me that there is a Robosapien
at a research station on the continent of Antarctica!

T he Robosapien was a huge success,


a deceptively simple toy robot whose
biomorphic roots were easy to see.
through the paces.
The first thing that you notice
about RSV2 is how big it is. At 22, it is
with batteries. The RSV2 takes a grand
total of 13 batteries, in the form of six
D cells and seven AAA cells. Three
Whats more, with a little bit of creativ- a full 10 taller than the RSV1. It is D cells go into each foot and control
ity and a Phillips head screwdriver, the huge and very impressive looking and the robots body motors. Additionally,
Robosapien was capable of making the usually peoples first response to it is a there is space for two AAA cells in
transition from toy into tool, and has rather stunned ... coooool. But does each foot (see Figure 2), and these are
inspired countless hackers to use it as bigger really mean better? This is one used to power the brain.
a platform for their projects. From uni- of the main questions I hope to explore. Finally, the video game controller
versity robotics labs to hobbyist work- My initial impression is that RSV2 remote control takes three AAA cells.
benches in garages, the Robosapien (or addresses many of the RSV1s short- A nice touch: When the brain batteries
as we will now refer to it, the RSV1) has comings, as well as adding a few really become low, RSV2 will issue a warning
been widely accepted as an excellent neat features. However, these improve- and then shut down. A nicer touch
platform for modification. ments and features come with some would have been similar warnings for
Enter Robosapien V2, or RSV2, the downsides, namely, the increased phys- when the body and remote batteries
next-generation bipedal robot from ical size, increased noise levels, and of become low! WowWee claims that the
WowWee. Initially available only from course, an increased appetite for RSV2s batteries should last for about
the Sharper Image as an batteries. Also not to be overlooked is six hours with continuous use, and
Exclusive Signature the price tag. With street prices about 14 hours with light (i.e., table-
Series model (see Figure expected to be in the $230-$250 top) use.
1), I managed to get range, the RSV2 is almost three Now that it is loaded with batteries,
my hands on one times the cost of the RSV1. its time to power on the RSV2. The
of the first robots on/off switch is located familiarly in the
off of the pro- Turning on same spot as it was on the RSV1, on the
duction line the RSV2 left side of the robots back. Upon
and put it powering it up, you are greeted with:
Once you have extri- Self diagnostic initiated. I am
cated the RSV2 from the WowWee Robotics model RSV2. Thats
diabolical packaging right, this robot talks. Gone is the
system of tape, card- quaint international caveman speech
board, and stiff wire of the RSV1. The voice is appropriately
that is used to hold it robot-like, but I swear I hear Mark
securely during shipping, Tildens voice in there underneath all of
the next task is the audio effects processing.
to load it up So, by this point you are finally
beginning to adjust a bit to the size of
the RSV2, and now that you have it
powered up, what strikes you is the
Samans.qxd 1/11/2006 11:30 AM Page 43

noise. The RSV2 is just plain loud, and


the voice is only part of this its motors
are also much louder than the smaller
ones found in the RSV1. Since the RSV2
can move two motors simultaneously
for instance, you can raise both arms at
the same time the motor noise is
sometimes doubled. Walking around on
hardwood floors results in a lot of noise
too, as the robot weighs around 11
pounds with batteries.
I should note that as I continue to
use the RSV2, the noise doesnt seem to
be bothering me as much. I dont know
if it is because I am getting used to it,
or if the motors needed a slight break-
in period to loosen up, or if it is some
combination of the two. But it doesnt
seem as noisy now as it did a week ago
when I first got it. Another interesting
point is that my wife thought I was Figure 2. One of the battery compartments.
crazy for saying that the RSV2 was Note the two AAA cells at the top.
really loud, she claims that it sounds Figure 1. RSV2s box is over 25 inches tall
the way a robot is supposed to sound. and has a shipping weight of 17 pounds.

Operating the RSV2 By using one or more of the three


shift buttons on the controllers
The primary means for controlling shoulders, you gain an incredible
the RSV2 is by using the video game amount of flexibility. Using the shift
style remote control (see Figure 3). Like buttons in concert with the buttons on
RSV1, the RSV2 uses infrared signals, the controllers face gives you access to
which means you will need line-of- the RSV2s attitude animations, as
sight, and if you have more than one well as the programming modes.
RSV2, you will not be able to use them Using the shift buttons with the
independently of each other, at least right thumbstick gives you fine-tuned Figure 3. The RSV2 remote control.
not while they are in the same vicinity. access to control-
There are no IR command conflicts ling RSV2s upper
between RSV2 and RSV1 however, so body. On its own,
these two bots can battle it out in the the right thumb-

Figure 4
same room to your hearts content. stick controls the
The controller takes some getting head and upper
used to. At first I hated it, but with body. Using the
time I am learning how to use it to shift buttons allows
unleash the RSV2s full potential. I you to control the
recommend a cheat sheet (see robots arms indi-
Figure 4) until you get comfortable vidually and togeth-
with the controller setup. I feel that the er, to control just
controller is in no way as well laid out the RSV2s head, or
or as intuitive as RSV1s remote just its hips, and so
control, but what it lacks in elegance it on. It seems clumsy
more than makes up for in control. at first, but as I got
Consisting of two thumbstick used to the
style joysticks and 12 buttons, the con- controller, I discov-
troller is capable of sending a total of ered that it allows
136 different commands to the RSV2.
Figure 4. This is
Walking is controlled by the left thumb- Mark Tildens own
stick; upper body and arm movements personal cheat
are controlled by the right thumbstick. sheet for the RSV2.

SERVO 02.2006 43
Samans.qxd 1/11/2006 11:31 AM Page 44

Figure 5 Figure 6 Figure 7

Figures 5-7
7. RSV2 can stand back up from a laying down position.

for quite a bit of precision. For example, was one of RSV1s major shortcomings. it has fallen on its back (see Figures 5
the longer you hold the right thumb- Another area where RSV2 through 7), although, of course, this
stick to raise, say, the right arm, the improves upon RSV1 is in its walking works better on hard floors too. You
higher it will go. With PC control (or ability. RSV2 features four different can also make the RSV2 lie down on its
VERY nimble fingers), it is possible to gaits and depending on your floor back from a standing position, and from
have essentially centimeter precision. I surface does a much better job of there command it to sit up (see Figure
felt that the lack of precise movement walking in a straight line than the orig- 8). From a sitting position, you still have
inal Robosapien. I tested the RSV2 on a full control of its head and arms.
Figure 8. From a sitting position, RSV2s variety of floor surfaces in my house: What would a Robosapien be with-
head and arms are still controllable. hardwood floors, low shag carpet, out attitude? The RSV2 has the same
berber carpet, and concrete floors. bad manners, rowdy personality, and
RSV2 does best by far on hard sur- kung fu abilities as RSV1, although it is
faces. It will walk just fine on carpeted able to articulate things better due to the
surfaces, but it is significantly slower, fact that it is no longer burdened by the
and because RSV2 is a bit top heavy language barrier inherent in internation-
it tends to lose its balance more on al caveman speech. This can be either a
carpet and will fall over. Its almost like plus or a minus, depending on your
the springy padding under the carpet outlook. All of the old favorites are here,
throws off the resonance dynamics including an updated dancing demo,
required for it to do things like spin in and quite a few new ones, as well.
place and turn. One that is particularly notable is
However, one of RSV2s coolest Get your own drink entitled fetch
features is the ability to stand back up if in the manual. According to Mark
Tilden, the RSV2s hands were original-
Figure 9. RSV2 performs a karate chop on an unsuspecting RSV1. Look at the size difference! ly designed to carry and lift a full can or
bottle of your favorite beverage, but
this feature had to be removed due to
safety reasons. In the retail version,
RSV2 is able to lift and carry things up
to about five ounces. The hands do fine
carrying empty bottles and cans, so the
design was left in place.
At any rate, RSV2 has received a
significant upgrade in its abilities to
manipulate objects in its environment.
It can take objects from you, give them
back, pick them up from two different
heights, throw them, even push and
pull. I am not very good at it yet, but
with some practice I think that RSV2
will be capable of a fair amount of
precision. Speaking of precision, Mark
Tilden tells me that RSV2s karate
chops are designed to bonk RSV1
right on the noggin (see Figure 9).
44 SERVO 02.2006
Samans.qxd 1/11/2006 11:32 AM Page 45

In addition to the boisterous small. It will also not recog-


personality skits and increased manipu- nize drops, such as stairs or
lation capabilities, the RSV2 also has the edge of a table it is
the ability to interact with the standing on.
Roboraptor, the Robopet, and even The IR system allows
another RSV2. I wasnt able to test RSV2 to track objects in its
these features, but it appears that the field of vision. Its head and
RSV2 has some limited ability to send upper body will follow
out IR commands to interact with these whatever it has drawn a
other robots. This is extremely interest- bead on. If the object that it
ing from a hackers perspective. Using is tracking is close enough
the RSV2 to blast out IR signals to and becomes stationary,
control an RSV1 or even a Roomba RSV2 will ask you to hand it
robotic vacuum would be insanely cool. to him. This is downright Figure 10. A close-up showing RSV2s vision system.
uncanny. This system also
Vision and Sensors works in conjunction with RSV2s color holding an object or not, and gaunt-
camera. RSV2 can recognize green, let sensors at the wrist (see Figure
Probably the biggest addition to red, blue, and flesh tones. 11). It also has a tilt sensor that detects
the RSV2 is its vision system (see Figure The robot comes with a green ball when the robot has fallen over.
10). Consisting of an infrared radar sys- and a set of three red bowling pins, and
tem and a color camera, RSV2 is able can actually take the ball, tell you about Programming
to avoid obstacles, track movement, its itchy bowling arm, find the pins (if
and recognize some limited colors. you set them up in front of the robot), In programming the RSV2, again
RSV2s obstacle avoidance abilities and then throw the ball at them. Its aim we see a system that is in many ways
are fantastic, and this is best seen in isnt great, but when it connects and very similar to the RSV1, but with
the robots autonomous free roam bowls a strike, it is fantastic. If there is a significant upgrades and additions. The
mode. Unlike RSV1, where you had to downside to the color vision system, it is most noticeable upgrade to RSV2 is the
program a complicated sequence of that it requires a lot of light to operate. ability to save your programs in memo-
moves to put the robot into a semi- RSV2 comes with adjustable lighting ry, even after you turn the RSV2 off.
autonomous mode, and then wait for settings (daylight, indoor yellow, and Besides the memory upgrade, RSV2
its finger or toe sensors to physically hit indoor white), but these really dont also has an entirely new programming
something to trigger an avoidance, help very much. I think some of the first system (in addition to reactive sonic and
RSV2 enters free roam mode with RSV2 hacks we will see will be augment- vision programs, and a main program
the touch of a single button. It does a ed lighting systems. mode). This new programming system
really good job wandering around on RSV2s sensor system is significant- is called puppet mode and allows you
its own, using a combination of the IR ly upgraded over the one found in to program the RSV2 manually by mov-
system and its touch sensors. Note that RSV1. RSV2 has a visual sensor, a ing its upper body into different posi-
due to the size of the RSV2, you need stereo sonic sensor that can tell which tions. You can also combine upper and
a fairly large area for this to work. For side the sound is coming from, heel lower body movements (such as walk-
instance, my office which has an and toe sensors on its feet, grip sensors ing, turning, or even karate kicking) by
open area of about 5 x 6 is too inside its hands that can detect if it is using the foot sensors to input moves.

Figure 11. RSV2s gauntlet touch sensor on the robots hand. Figure 12. Inside RSV2s chest cavity. Note the silver tendon
this is linked to the side-to-side movement of the head and
controls the opening and closing of the hand.

SERVO 02.2006 45
Samans.qxd 1/11/2006 11:32 AM Page 46

Figure 13. This photo shows we will see quite a few interesting
RSV2s driver board. It projects based on the RSV2.
would appear that the 44 For example, Mark Tilden told me
transistors make up 11
H-bridges to control the 11 that 56 MHz DSP doing all of the
main motors. RSV1 had a color-blob image processing has a USB
dedicated motor driver chip. port. Another interesting hack would
be to add a motor to each hand to
program mode and both optimize pick up speed and reliability
reactive programs (sonic (it currently uses a tendon system
and vision) each hold 20 based on head movement see Figure
steps. This is significant, 12). Additionally, since RSV2 uses IR, it
as the RSV2 has the should be easy enough to port over the
ability to use conditional new commands and use a PC or a PDA
subroutines just like the to control the robot.
RSV1. Meaning, you can These hacks will take time, but
program a 20-step rou- remember that it took almost six months
tine into the sonic sensor, before we started seeing some of the
and then fill all 20 steps better hacks for the RSV1. Another
of the master program obstacle to hacking the RSV2 could be
with your sonic program the complexity (see Figures 13 and 14).
routine, resulting in a 400 Although like RSV1, RSV2s boards are
step program! But it gets labeled reasonably well, and many of
even better. the connections are socketed, so this
You can fill the reac- may or may not be an issue. Time will
tive program modes with tell. The main obstacle I see to hacking
subroutines that you have the RSV2 is the cost. Its one thing to fry
stored in the main puppet a $69 RSV1; it is another thing altogeth-
Figure 14. This is the main circuit board which resides
underneath the driver board. The underside (not shown) mode program (press the er to accidentally fry a $250 robot.
contains two chips; both are covered in an epoxy blob x button on the remote
like the CPU for RSV1. to store a positional pro- Conclusion
gram as a single call). The
Like a lot of the new things with result of programming all of these sub- In many ways, RSV2 is very similar
the RSV2, puppet mode takes some routines simultaneously is 14 x 20 x 20 to its predecessor. From the diabolical
practice to perfect. Puppet mode has or a 5,600 step program. This is not packaging system used to keep the
three individual modes: main positional, mentioned in the manual, for the obvi- robot in place during shipping, to its
which holds 14 steps (though the ous reason that in executing a 5,600 attitude and bad manners, from the
manual says 12), and left and right posi- step program, the batteries (or the conditional programming logic to the
tional which hold five steps each and motors and/or motor drivers) would nicely labeled circuit boards, there is no
are activated by quickly pressing one of probably die before it was able to mistaking that RSV1 and RSV2 are
the foot or gauntlet sensors twice. complete it. The author strongly recom- related. Does RSV2 have some
Beyond this, programming the mends that you do not try this with drawbacks? Of course. I think that the
RSV2 is very similar to the RSV1, but your RSV2 ... but it is nice to know. cost, size, battery consumption, and
with more available steps. The main Think of it like the speedometer in your lack of any sort of connectivity hurts it.
car: mine goes up to 200 mph, but I To some, the similarity to RSV1 in the
About the Author would never drive the car that fast! sense that they are both programma-
ble remote control toys might also
Since winning SERVO Magazines Hackability seem like a negative.
Hack-A-Sapien contest in 2004, Jamie So is bigger really better? I think
Samans went on to write the Hackability of the RSV1 was one of that it is. I feel that the RSV2 is
Robosapien Companion: Tips, Tricks, its biggest draws. Over the past year a worthy successor to the RSV1.
and Hacks, published last summer by and a half we have seen basically four WowWee seems to have listened to a
Apress. Featuring a lengthy interview types of hacks to the RSV1: cosmetic, lot of the complaints with the RSV1
with Robosapiens creator, Mark Tilden, enhancement, brain replacement/ and remedied them with this release,
as well as exclusive development augmentation, and bolt-on peripherals. and they threw in some cool new fea-
photographs from Tildens own personal All four will be possible with the RSV2, tures, too. Like RSV1, it will take some
collection, the book looks at not only and with its vision system, color creativity and curiosity to transform
where you can go with your Robosapien, camera, improved sensors, and more RSV2 from toy into tool. But when has
but where Robosapien comes from.
precise movement capabilities, I think that ever been a bad thing? SV
46 SERVO 02.2006
Christy.qxd 1/11/2006 5:41 PM Page 47

f youve written
I code to control
servo motors, chances
are you have already
run up against a frustrat-
ing challenge: while youre
sending pulses to drive the
servo motors, you cant easily run
other processes on your controller.
This can limit your ability to do useful
things, such as checking sensor values,
performing computations, and controlling other output devices.
Yes, its possible to do these things between the pulses that you send to the servo motors,
but the results are often unsatisfying. If you attempt any complicated multitasking, your servos
may even stutter, instead of turning smoothly, and your robot may run more like an old jalopy
than a high-performance sports car.

SERVO 02.2006 47
Christy.qxd 1/11/2006 5:47 PM Page 48

The Basics
An interrupt is a change in The solution to this problem is sim- i.e., whenever it reaches its maximum
ple: interrupts. With interrupts in your value and resets to 0. For example, the
the flow of code execution that is
code, you can send a continuous series interrupt for an eight-bit timer is called
triggered by a microcontrollers
of precisely timed pulses to the servo whenever the timers value cycles from
internal hardware or by an external
motors, while running other processes 255 to 0. By pre-scaling the timer for
event, such as a change in a port at the same time. Interrupts have a your interrupt, you can control how
value. Timer overflows which reputation for being difficult to under- frequently the timers interrupt service
occur when an internal timer stand and debug, and this reputation is routine is called. At the instant the
reaches its maximum value are partly deserved. But with patience and timer overflows, another event occurs:
commonly used as interrupt triggers. a little practice, even novice program- a bit associated with the timer the
Since these timer-based interrupts mers can get up to speed and start timers interrupt flag is set to 1. The
occur at regular intervals, they are using interrupts to control their servos! flag can be used to confirm that the
ideal for servo motor control, timer has overflowed.
which requires very precise timing. Understanding Timers
When an interrupt is triggered, The Code
code execution is suspended, an Since you will be using timer-based
interrupt service routine is performed, interrupts to control your servos, it is This section provides step-by-step
and then code execution resumes essential that you understand how the instructions for writing C code to con-
at the interrupted point. Although microcontrollers internal timers work. trol a robot with two servo motors,
interrupt service routines can take The timers increase in value at a rate that using interrupts. Your code will vary
many forms, you can think of them is tied to the microcontrollers raw pro- slightly depending on the compiler and
as functions that are called auto- cessing speed. For example, if your chip you are using. All of the code
matically by the microcontroller. microcontroller executes one instruction shown in this article was developed
For the purpose of driving servo per microsecond, each of the chips using the on-line development environ-
motors, the interrupt service routine timers will increase in value by 1 every ment created by my company, Machine
is used to set certain microcontroller microsecond until it reaches its maxi- Science, Inc., for Microchips
mum value and resets to 0. In practice, PIC16F877 microcontroller. The under-
pins high or low, generating the
timers are often adjusted so that they lying compiler is the free demo version
pulse series needed for servo motor
increase in value at a slower rate a pro- of the Hi-Tech PICC Compiler. Figure 3
control.
cedure called pre-scaling. Pre-scaling by a shows the completed robot.
Typically, continuous rotation factor of 2 slows the timer by a factor of Because the code can be a little
servos are driven by a series of 2, pre-scaling by a factor of 4 slows the confusing, weve broken it down into
five-volt pulses, each lasting 1,000 timer by a factor of 4, and so on. five steps: 1) configuring the chip and
to 2,000 microseconds, with 20 A timers interrupt service routine declaring variables; 2) enabling the
milliseconds between the start of is called whenever the timer overflows, interrupts and setting up output pins;
each pulse. Figure 1 illustrates this
typical pulse series.The pin connected FIGURE 1. A typical servo motor pulse series.
to the servo goes high, stays high
for 1,000 to 2,000 microseconds, 5V
goes low, and then stays low until
the start of the next pulse.
Delay routines are often used 0V
to control the duration and frequency
of the servo pulses, resulting in 0 ms 20 ms 40 ms 60 ms
wasted processing time, as shown in
Figure 2. If you use delay routines FIGURE 2.The problem with using delay routines for servo control.
to control the pulse timing, you
have only intermittent opportunities 5V
to run other processes, and if these
other processes take more than a
few milliseconds to complete, they
can adversely affect the servo pulse
series, producing the aforementioned 0V
servo performance problems.With
interrupts, you can run other
0 ms 20 ms 40 ms
processes continually, and even
complex functions wont disrupt
the pulse series. = Processor consumed by delay routines. = Processor available.

48 SERVO 02.2006
Christy.qxd 1/11/2006 5:52 PM Page 49

3) pre-scaling the timer; 4) writing the to a 4 MHz oscillator, which


interrupt service routine; and 5) put- gives the chip a raw pro-
ting it all together. cessing speed of one mil-
lion instructions per second
STEP #1: Configuring the Chip and or one instruction every
Declaring Variables microsecond. We then pre-
Listing 1 shows the code required scaled the timer for our
to configure the PIC16F877 and project, Timer0, by a factor
declare the necessary variables. The of 2 (which is the minimum
CONFIG statement establishes impor- possible pre-scaling factor
tant hardware settings for the for the PIC). Configured this
operation of the microcontroller. The way, Timer0 increases in
left_motor variable will control the value 500,000 times per
duration of the pulse sent to the left second or once every two FIGURE 3
motor, right_motor will control the microseconds. Since Timer0
A Machine Science robot with two servos.
duration of the pulse sent to the right is an eight-bit timer, with a
motor, and counter will be used to maximum value of 255, it overflows make use of the fact that the Timer0
control the frequency of the pulses. every 512 microseconds. The pre-scal- interrupt is triggered every 512
Because these variables need to be ing of Timer0 is accomplished by set- microseconds. Therefore, the routine
available in your main function as well ting certain registers in your main func- should set the pins connected to the
as your interrupt service routine, they tion, as shown in Table 1. servos high once every 39 times that
must be declared as global variables Listing 3 shows the code needed the interrupt is triggered (39 * 512
near the top of your code file. to pre-scale Timer0 by a factor of 2. microseconds = 19,968 microsec-
onds), make them stay high for two to
STEP #2: Enabling the Interrupts STEP #4: Writing Your Interrupt four interrupt calls (2 * 512 microsec-
and Setting Up Output Pins Service Routine onds = 1,024 microseconds and 4 *
To enable interrupts on the With your interrupts enabled and 512 microseconds = 2,048 microsec-
PIC16F877, you need two separate your timer pre-scaled, youre ready to onds), and then make them go low. In
statements in your main function: one write your interrupt service routine. the example shown in Listing 4, the left
to enable interrupts globally and one to The purpose of the routine is to gener- servo motor is connected to Port B0 on
enable interrupts for the specific timer ate the pulse series needed to drive the microcontroller, and the right servo
youre using. As noted above, different your servo motors. To do this, you can motor is connected to Port B1.
chips may require slightly different
interrupt enable statements. Check the LISTING 1. Configuring the chip and declaring variables.
interrupt logic table in your chips
#include <pic.h>
datasheet for specific guidance. In
addition, you will need to set up two __CONFIG(0X7E61); //Recommended configuration for PIC
microcontroller pins as outputs. Listing char left_motor; //Declare a global char variable left_motor
2 shows the required code for the PIC, char right_motor; //Declare a global char variable right_motor
char counter; //Declare a global char variable counter
assuming that the servos are connect-
ed to Ports B0 and B1.
LISTING 2. Enabling interrupts and setting up output pins.
STEP #3: Pre-Scaling Your Timer
char counter; //Declare a global char variable counter
In setting up the hardware for our
project, we connected the PIC16F877 void main(void)
{
GIE=1; //Enable global interrupts
TABLE 1. Pre-Scale Values for T0IE=1; //Enable Timer0 interrupts
Timer0 on the PIC16F877. TRISB0=0; //Set up Port B0 as an output
Pre-Scale Value TRISB1=0; //Set up Port B1 as an output
PS2 PS1 PS0
Factor }
2 000 0 0 0
4 001 0 0 1 LISTING 3. Pre-scaling the internal timer.
8 010 0 1 0
TRISB1=0; //Set up Port B1 as an output
16 011 0 1 1 T0CS=0; //Set Timer0 to instruction clock
32 100 1 0 0 PSA=0; //Assign pre-scaler to Timer0
PS2=0; //Set first digit of pre-scale value
64 101 1 0 1 PS1=0; //Set second digit of pre-scale value
128 110 1 1 0 PS0=0; //Set third digit of pre-scale value
256 111 1 1 1 }

SERVO 02.2006 49
Christy.qxd 1/11/2006 5:48 PM Page 50

LISTING 4.Writing the interrupt service routine.


char counter; //Declare a global char variable counter Resources
void interrupt servo(void) //Define interrupt routine called servo
{
Microchip Technology
if(T0IF==1) //Check if Timer0 has overflowed www.microchip.com
{
T0IF = 0; //Reset Timer0 flag
counter++; //Increase counter by 1 Hi-Tech Software
if(counter==39) //Check if interrupt was triggered 39 times www.htsoft.com
{
RB0=1; //Start pulse to left servo motor
RB1=1; //Start pulse to right servo motor Machine Science, Inc.
counter=0; //Reset counter www.machinescience.org
}
if(counter==left_motor) //Check if time to end left servo pulse
RB0=0; //End pulse to left servo motor when left_motor and right_motor have
if(counter==right_motor) //Check if time to end right servo pulse
RB1=0; //End pulse to right servo motor a value of 3. Most servo motors have
} an adjustment screw for this purpose.)
}
Enjoying Your New
LISTING 5. Finishing touches. Found Freedom
void main(void)
{ Consider what you have accom-
PS0=0; //Third digit of pre-scale value plished. Your interrupt function takes
while(1) //Set up infinite loop care of driving your robots servo
{ motors, freeing you to do more interest-
left_motor=2; //Send 1024-ms pulse to left motor
right_motor=4; //Send 2048-ms pulse to right motor ing things in your main function. Now
} you can add code for sensors, lights,
} speakers ... whatever you can imagine,
without worrying about servo control.
STEP #5: Putting It All Together will yield a pulse duration of roughly All the while, your interrupt function will
Now, the rest is easy! You simply 1,000 microseconds, a value of 3 will be continuously sending pulses to the
need to set the value of left_motor and yield a pulse duration of roughly 1,500 servos, keeping your robot on the move!
right_motor in your main function, and microseconds, and a value of 4 will For more guidance on using
these global variables will be available yield a pulse duration of roughly 2,000 interrupts to control servo motors, see
to your interrupt service routine when- microseconds. (Note that, since these Myke Predkos excellent book,
ever it is called. In a sense, you are values are not exact, you may need to Programming Robot Controllers, in
passing these values to the interrupt manually adjust the center point on McGraw Hills Robot DNA series (ISBN
function. Remember that a value of 2 your servos in order to get them to stop 0-07-140851-7). SV

50 SERVO 02.2006
KitKollege7.qxd 1/10/2006 1:12 PM Page 51

A Course on How to Build,


Program, and Hack a Robot Kit

THIS MONTH:
p until this lecture, Kit Kollege has ing gait. Then, after the servo controller

U dealt exclusively with rolling


robots, except for the JoinMax
Smart Arm in Kit Kollege #2 (SERVO
circuit board is disconnected from your
PC, these parameters are played by
Quadruped.
Magazine 09.2005). In this lecture, we
are going to build a simple four-legged
The two most obvious hacks
for Quadruped are the incorporation
LECTURE 7:
walking robot. of a sensor into the robot and the JoinMax Digital
The JoinMax Digital Quadruped replacement of the servo controller
Robot Kit (JM-4FT-001; www.mciiro circuit board with a higher level pro- Quadruped Robot Kit
bot.com and www.robotplayer.com) grammable microcontroller. This type of
uses eight servo motors for achieving obstacle avoidance and interpretive
two degrees of freedom on each of its decision branching is essential for
four legs. Orchestrating these move- implementing autonomous movement
ments is the same servo controller circuit into this robot. HACKS AND MODS
board (JM-SSC16) that was found on the For owners of the JoinMax Smart
JoinMax Quadruped
previously mentioned JoinMax Smart Arm kit, however, there is the opportu-
Arm kit. Based on an Atmel ATmega16 nity to hack the Arms gripper mecha- Installation of the gripper
mechanism from JoinMax Smart
AVR eight-bit RISC microcontroller, this nism to the front of Quadruped. This Arm on Quadruped head.
robot brain is able to deftly cycle through hack is extremely easy and satisfying
Gently shape the battery
the complex raise, move, and lower due to the simplified plug-n-play power cable wires for joining the
sequences on all four legs enabling jumper ports on the servo controller servo controller circuit board to
Quadruped to briskly walk about the circuit board. the battery box.
floor. In other words, just plug the Smart Substitute alkaline batteries for
Programming for the servo controller Arm gripper mechanisms servo connec- rechargeable batteries.
circuit board is provided with the includ- tion cable into an available jumper port, Replace the servo controller
ed Windows-only program, Mini Servo set the servo parameters with Mini circuit board with a higher level
Explorer. As discussed in Kit Kollege #2, Servo Explorer, and Quadruped will programmable microcontroller
this software generates a movement file be able to walk about and grab small (e.g., BASIC Stamp, BASICX, or
Brainstem).
that is played by the robot. In other objects. Furthermore, this hack can
Add touch or IR sensor.
words, there are no logic statements in be readily adapted to the previously
the Quadruped program, only a series mentioned programmable microcon-
During the assembly of
of servo power, speed, and position troller/sensor hack making Quadruped Quadruped Robot Kit, changes/
parameters. an autonomous walking robot mods/hacks were employed for
While the Quadruped is tethered to with the ability to interact with its streamlining the assembly
your PC, you can adjust and fine-tune environment. process, as well as enhancing
these parameters for the optimal walk- Class dismissed. SV the final robots performance.

SERVO 02.2006 51
KitKollege7.qxd 1/10/2006 1:14 PM Page 52

STEP 1. The JoinMax Digital Quadruped Robot


Kit consists of eight servo motors, over 170 STEP 3. Attach the turning board to the first servo.
parts, and the Mini Servo Explorer software
CD-ROM disc. All that youll need for assembly STEP 2. Begin construction by making four
is a No. 0 Phillips head screwdriver. vertical leg-lifting servo assemblies.Youll build
two right legs followed by two left legs.

STEP 6. Connect the upper leg to the servo


by attaching parts upper limb A and B to the
servos armature.
STEP 4. Use parts lower limb A and B to fix the
leg to the turning board/servo assembly.

STEP 5. Make sure that the recessed socket


of lower limb A receives each screw head.

STEP 7. Tighten the upper limb screws STEP 9. Build the second right leg
securing the upper leg and servo armature. exactly like the first one.

STEP 8. Snap the servo motor turning arm


socket under the turning board.

STEP 12. In order to ensure that you build two


left legs, make sure that you observe the
STEP 10. Lay the two completed right legs aside.
flipped orientation of the turning board. By
Make sure that you label these legs for attach- carefully noting this fundamental difference, you
ment to the right side of the Quadruped body. will be guaranteed of building two left leg mates
for the previously assembled right legs.
STEP 11. Build two left legs following the
same basic procedure that was used for
assembling the two right legs.

STEP 13. All four legs are complete. Make sure that STEP 14. Build two bottom board assemblies. STEP 15. Align the first horizontal movement
you label and segregate the two rights legs from Each bottom board will hold two horizontal servo with the pins on the bottom board
the two left legs and lay these assemblies aside. movement servos: one right leg and one left leg. and snap the servo into place.

52 SERVO 02.2006
KitKollege7.qxd 1/10/2006 1:16 PM Page 53

STEP 17. Carefully route the horizontal


movement servo connection cable away STEP 18. Attach the second horizontal
from the bottom board. movement servo to the bottom board.
STEP 16. Fix the horizontal movement servo
in place with the servo hoop hold-down.
This hold-down snaps into two slots on either
side of the servo.

STEP 20. One bottom board assembly is


complete. Set this module aside.

STEP 21. Both bottom board assemblies are now


complete. Set both of these modules aside for now.
STEP 19. Gently push each vertical lift leg assembly
onto the horizontal movement servo drive gear.
Specifically, you want to mate the servo motor
turning arm socket on the vertical lift leg assembly
onto the horizontal movement servo drive gear.

STEP 23. Carefully observe the orientation of


the connecting board and the center waist part.
This waist part will act as a conduit for holding
the servo connection cables during the final
assembly steps.
STEP 22. Snap the main body together.

STEP 24. Lay the completed main body


assembly on a flat surface.

ROBOT KIT SOURCES


STEP 26. Route the servo connection cable
You can purchase Quadruped
through the slots in the main body assembly.The from any of the following sources.
STEP 25. Carefully drop each bottom board
assembly down onto the main body assembly.
vertical lift servo cables from one half of the Please refer to each website for updat-
main body assembly should be inserted into the ed pricing information.
Make sure that the turning board pins are first forward slot on the bodys front upper
aligned with the corresponding receptacles on surface.This portion of the main body assembly
the main body assembly. British Robotics
will be the head for the Quadruped.
www.britishrobotics.com
Cyber Hardware & Software
www.cyberhs.it
E-Clec-Tech
www.e-clec-tech.com
Garage Technologies, Inc.
www.garage-technologies.com
MCII Robot
STEP 28. The servo connection cable from each www.mciirobot.com
horizontal movement servo is then inserted
STEP 27. Each horizontal movement servo through the second slot on the main body Pololu Corporation
connection cable is routed through the assembly.This second slot is behind the slot
adjacent slot in the bottom board. used by the vertical lift servo cable. www.pololu.com

SERVO 02.2006 53
KitKollege7.qxd 1/10/2006 1:17 PM Page 54

STEP 29. The head (i.e., the portion of the main STEP 31. Complete the main body assembly by
body assembly that will hold the servo controller STEP 30. Carefully route the servo connection fixing the bottom boards with four screws each.
circuit board) of Quadruped is now wired. cables from the rear battery holding portion of Make sure that none of the servo connection
the main body assembly through the waist conduit. cables are pinched inside the waist conduit.

STEP 32. The completed physical assembly


of the Quadruped main body. STEP 34. Attach the battery box to the
rear of the main body assembly.
STEP 33. Flip Quadruped over.The main body
portion with the servo connection cables is the
head, while the rear portion will house the
battery box.

STEP 35. Prior to attaching the servo controller


circuit board to Quadruped, plug the battery power
cable into the circuit boards power receptacle.
STEP 37. Gently bend the two power supply
wires of the battery power cable upward for
aligning the servo controller circuit board with
the Quadruped head and use four screws to
fix the circuit board to the head.
STEP 36. Snap the battery power cable
into the battery boxs power receptacle.

STEP 38. The eight servos are connected to the


servo controller circuit board as: right rear leg
(jumper port 1 and 2), right front leg (jumper
port 7 and 8), left rear leg (jumper port 9 and
10), and left front leg (jumper port 15 and 16).
In each case, the vertical lift servo connection
is inserted in the first jumper port followed by
the respective horizontal movement servo STEP 40. A special serial cable is provided
(e.g., 1 = right rear vertical lift servo and for connecting Quadruped to your PC.This
2 = right rear horizontal movement servo). cable is used for testing servo parameters and
Also, please note that the black wire is the STEP 39. All four legs are plugged into programming the Quadruped servo controller
ground wire on each servo connection cable. their respective jumper ports. circuit board.

54 SERVO 02.2006
KitKollege7.qxd 1/10/2006 1:26 PM Page 55

STEP 42. A great hack involves the removal of


the gripper mechanism from the JoinMax Smart b
Arm followed by the installation of this gripper
STEP 41. The completed Quadruped. on the Quadruped head. Just plug the servo
Alkaline batteries were substituted for the connection cables into any available jumper
rechargeable batteries mandated in the ports and use Mini Servo Explorer for running
Quadruped Users Manual. the gripper.

STEP 44. a: A plan


view of Quadrupeds
second step. Leg 1 is
lowered and moves
forward, leg 2
moves backward, leg
3 moves backward,
and leg 4 lifts and STEP 43. a: A plan view of Quadrupeds first
moves forward. step. A sample forward step with the robots left
b: An elevation legs numbered 1 (the leg attached to the head)
view of Quadrupeds and 3 (the battery box leg) and Quadrupeds
second step.This is right legs numbered 2 (the head leg) and 4
the same sample (the battery box leg). b: An elevation view of
forward step with Quadrupeds first step.This is the same sample
a b leg 4 lifted. forward step with leg 1 lifted.

University Store ABOUT THE AUTHOR


Dave Prochnow is a frequent contributor to 2006) and the upcoming PSP Hacks, Mods,
Joinmax Kits Nuts & Volts and SERVO Magazine, as
well as the author of 26 nonfiction books
and Expansions (McGraw-Hill, 2006). You
can learn more about this Robosapien book
Plus onboard including the mega-hit The Official and other robotics/electronics projects at
microcontrollers Robosapien Hackers Guide (McGraw-Hill, Daves website: ww.pco2go.com
& sensors!

Starting
at $70
HobbyEngineering
The technology builder's source for kits, components, supplies, tools, books and education.

Robot Kits For All Skill Levels ICs, Transistors, Project Kits
www.garage-technologies.com Motors, Frame Components
and Scratch Builder Supplies.
crash-bobby
the professional Order by Internet, phone, fax or mail.

robot kit www.HobbyEngineering.com

Books and 1-866-ROBOT-50


Educational K 1-866-762-6850
1-650-552-9925
1-650-259-9590 (fax)
sales@HobbyEngineering.com
180 El Camino Real
BEAM Kits and Components Millbrae, CA 94030
Visit our store near SFO!

Most orders ship the day received! World-wide shipping. Convenient payment options.
www.qfix.de
SERVO 02.2006 55
Events.qxd 1/10/2006 1:29 PM Page 56

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

Unless you're in India, don't expect to see any robot to collect and dispose of colored balls.
competitions this month. The Robotix competition in West http://dc.cen.uiuc.edu
Bengal, India is the only thing on the calendar. Don't feel
like making the trip to India? That's okay. Just wait a while 18-19 Manitoba Robot Games
and there will be plenty of events coming up in the next Winnipeg, Manitoba, Canada
couple of months. One of them is likely to be nearby no Events may include both Japanese and Western
matter where you live. style sumo, mini-tractor pull, and Atomic Hockey.
I've been keeping track of robot competitions for over www.scmb.mb.ca
10 years now, and one interesting trend I've noticed in the
last couple of years is the proliferation of international 19-23 APEC Micromouse Contest
events. In the past, the majority of competitions seemed to Dallas, TX
be in the US and Japan, with a few in the UK or Canada. One of the best-known micromouse competitions
Today, I'm tracking events all over the world. To name a few, in the United States. Expect to see some very
in no particular order: Poland, Korea, Spain, Argentina, the advanced and fast micromouse robots.
Dominican Republic, Denmark, the Republic of Singapore, www.apec-conf.org
Israel, Slovakia, Germany, Portugal, Australia (many kanga-
roos), Austria (not so many kangaroos), Estonia, India, 21-23 Singapore Robotic Games
Russia, and the Netherlands. Republic of Singapore
I don't think we have any competitions in Antarctica Fourteen events including autonomous sumo,
yet. Are there any SERVO readers at Vostok or McMurdo? RC sumo, legged robot marathon, legged robot
If so, maybe it's time to plan a robot event. Send me some obstacle course, several levels of micromouse, wall
photos. Or better yet, fly me down and I'll be a judge. I've climbers, pole balancers, and more.
always wanted to visit Antarctica. http://guppy.mpe.nus.edu.sg/srg
In any case, it's encouraging to see people from so
many different countries working together on robotics tech- A p r il
nology. I look forward to seeing the number of countries
included on the robot competition list continue to grow. 8-9 Trinity College Fire Fighting Home Robot Contest
For last-minute updates and changes, you can always Trinity College, Hartford, CT
find the most recent version of the Robot Competition FAQ The well-known championship event for fire fight-
at Robots.net: http://robots.net/rcfaq.html ing robots.
R. Steven Rainwater www.trincoll.edu/events/robot

F e b ru a r y 21 Carnegie Mellon Mobot Races


CMU, Pittsburgh, PA
3-5 Robotix The traditional Mobot slalom and MoboJoust events.
IIT Khargpur, West Bengal, India www.cs.cmu.edu/~mobot
A national-level competition with events such as
Mission to Mars, Water Polo, Topsy Turvy, Distance 21-22 National Robotics Challenge
Tracker, and Match Maker. Veterans Memorial Coliseum, Marion, OH
http://gymkhana.iitkgp.ac.in/robotix In addition to sumo and maze solving events, this
student competition includes two unusual ones: a
March robotic workcell event and a pick-and-place event.
www.nationalroboticschallenge.org
10-11 AMD Jerry Sanders Creative Design Contest
University of Illinois at Urbana, Champaign, IL 22 UC Davis Picnic Day MicroMouse Contest
This year's contest involves a 44' x 44' course in University of California, Davis campus, CA
which robots from multiple teams will navigate Standard micromouse contest.
ramps, overpasses, and teeter-totters in an attempt www.ece.ucdavis.edu/umouse

56 SERVO 02.2006
Gilbertson.qxd 1/10/2006 11:46 AM Page 57

T he Space Elevator promises a


revolutionary way of getting
from Earth into space a rib-
bon with one end attached to
a floating platform located at
the Equator, and the other
end swinging through space
beyond geosynchronous
orbit (35,786 km altitude
one tenth of the distance to
the Moon).
Gilbertson.qxd 1/10/2006 11:49 AM Page 58

SPACE ELEVATOR
The Space Elevator would provide lated in fractions of a second. The
an incredibly low-cost way to ferry electric train gives a last whistle,
satellites, spacecraft, space station slowly picks up speed, and darts
components, and people into space vertically upward on the web of
using robotic climbers clamped to the delicate threads. Then the first layer
ribbon. It would serve as a means for of clouds is left behind. The speed of
commerce, scientific advancement, movement grows ever more ...
and exploration. Behind are transparent packs of
The Space Elevator would be the silver clouds almost a hundred
largest and greatest engineering kilometers separates the train from
project ever, and an advance perhaps Earth. The speed grows and grows:
as significant as any achieved by man. indeed the resistance of the atmos-
By providing cheap and easy access to phere becomes less. Unblinking stars
space, a space elevator would forever sparkle in the black velvet sky of the
transform human possibilities in this cosmos.
arena and open the gates to colonizing To the Cosmos by Electric
the stars. Train, Komsomolskaya Pravda,
July 31, 1960
An Old Vision for
a New Future In his proposal, engineer Yuri
In July 1960, nearly three years Artsutanov identifies one major obsta-
after the flight of the first artificial cle. There is still no material whose Figure 2. The Fountains of Paradise.
satellite, Sputnik 1, and nine months durability could bear the gigantic weight
before the flight of Yuri Gagarin, the of a cable from Earth to the cosmos. author Arthur C. Clarke presented the
first human in space, the Russian daily The most durable plastics and steels are space elevator concept in his novel The
newspaper Pravda carried a full page several times weaker than required. Fountains of Paradise. In a technical
article describing a bold new idea for With the Cold War heating up and paper published shortly after, Clarke
taking people to the stars. the Moon Race just ahead, acknowledged Artsutanovs inspira-
Artsutanovs vision found little atten- tion. Although now exposed to
Calmly, not rushing and fussing, tion outside the Soviet Union. the wider world, the space elevator
passengers will take their seats in concept remained firmly in the realm of
hermetically sealed wagons of such a Nearly 20 science fiction.
train. For this is not a cosmic Years Pass Then, suddenly everything changed.
rocket whose launch- In 1985, the discovery of carbon mole-
ing is calcu- In 1979, renowned cules called fullerenes, followed by the
science fiction observation of super-strong carbon nan-
otubes, meant that there now
existed at least in the
laboratory a material
10 times lighter and 250
times stronger than steel.
Carbon nanotubes
suddenly transformed
the Space Elevator from
a science fiction fantasy
to a tantalizing possibility.

A New Vision
In 2000, NASAs
Institute for Advanced

Figure 1. Excerpt from July


31, 1960 Pravda article by
engineer Yuri Artsutanov.

58
5 SERVO 02.2006
Gilbertson.qxd 1/10/2006 11:50 AM Page 59

Concepts provided Dr. Brad Edwards Figure 3. A climber ascending a ribbon to


with a modest grant to evaluate orbit (illustration by The Space Elevator
the prospects for building a space Visualization Group).
elevator system using carbon nanotube
technology. windows with some of the most
Edwards concluded a space eleva- stunning views in the solar system.
tor can be built in the near future with Ascending at 190 km per hour, the
current technologies combined with a climbers would reach geostationary
yet-to-be developed carbon nanotube orbit in about eight days.
composite. The flexible ribbon, just one
It sounds a little far out at first, meter wide and thinner than paper,
but with materials science advances would be made of carbon-nanotube
such as nanotubes and other new composite fibers arranged in long
materials, we are reaching the stage strands, cross-braced to evenly redis-
where this starts to look like real tribute the load if a strand were cut.
science, a real advance for space Space debris that would sever a small
transport. round cable would pass through the
broader ribbon, creating small holes
Basic Elevator Science and a manageable reduction in cable
strength, letting it survive impacts
In his NASA-funded study, Brad from small debris and meteoroids,
Edwards envisions the Space Elevator. which would be fairly common ...
Because of the thinness of the
Springing out from an anchor ribbon, it would be surprisingly light:
point on the Equator, the space the entire 100,000 km length would
elevator cable would rise straight up, have a mass of just 800 tons, not
passing through geostationary orbit counting the counterweights 600
at 36,000 km and continuing for tons.
another 64,000 km until it termi- Dr. Brad Edwards, IEEE what would happen if the ribbon
nates in a 600-ton counterweight. Spectrum, August 2005 should break? In short, the length of
The cable would be held up in a ribbon above the break flies outward
manner similar to that which holds a Technical Challenges into space, with the portion below
string taut as a weight tied to it is fluttering gently downwards, as it has
swung in a circle. The key detail that Abound the density of plastic sandwich wrap.
would make the elevator work would Many daunting obstacles confront Space junk presents possibly the
be the fact that its center of gravity the engineers of a space elevator sys- most challenging of the obstacles, but
would be at the geostationary orbit tem not just the need for incredibly already NORAD performs extensive
mark, forcing the entire structure strong ribbons and high-energy power tracking of all objects, and objects can
to move in lockstep with Earths beaming but environmental be avoided by moving the elevators
rotation. challenges like hurricanes, tornados, anchor platform, and by other
Electrically powered elevator lightning, hail, and
cars, which I call climbers, would with increasing alti-
crawl up the cable, carrying people tude, problems with
or cargo. Each car would weigh high-speed winds,
about 20 tons fully loaded, of which extreme tempera-
about 13 tons would be payload. tures, atomic oxygen
These payloads could be in the form corrosion, mete-
of inflatable structures, like those orites, satellites,
proposed for the International Space space junk, radia-
Station, with about 900 cubic meters tion, tidal forces, har-
of space, or roughly as much as a monic oscillations,
five-bedroom house. For passengers, and other demons.
a climber would be like a space-going People often ask
cruise ship; there would be small
sleeping quarters, a tiny kitchen Figure 4. Cross-
and other amenities, and, of course, section of a ribbon.

SERVO 02.2006 59
Gilbertson.qxd 1/10/2006 11:55 AM Page 60

SPACE ELEVATOR
Figure 5. Plan view of a from cosmic collisions with comets or
Elevator Terminal Station space elevator.
(60,000 km) - about 1/6 of the asteroids.
distance to the Moon's orbit
railroad of the 1860s? And who The material resources available in
should benefit? The builders? the inner solar system dwarf all of
42k km zero gravity point The governments? All the those so far used by humanity. The
people of Earth? space elevator provides a new hope to
Elevator center of mass An elevator would open achieve an ever more prosperous and
(at GEO)
space to even poorer countries, sustainable existence both on Earth
Geosynchronous and provide the cheap access to and beyond.
Earth Orbit (35,700 km) space needed for expanding
space tourism and establishing In order to save the human
Outer Van Allen Belt extraterrestrial settlements. race, we must develop the technolo-
Compared to NASAs gies that will allow us to live and
Inner Van Allen Belt proposed $100 billion budget work on other places in the Solar
for returning to the Moon, a System ... SINGLE PLANET SPECIES
working Space Elevator for $20 DO NOT LAST and we have no idea
Earth billion seems a bargain, and how much time we have.
certainly in the realm of private John Young, former
enterprise. Gemini, Apollo, and Space
Shuttle astronaut, October 2002
But Why?
techniques. Locating the platform in The Contrarian View
a remote area reduces the risk of As science fiction writer Robert
sabotage. Heinlein observed, once you reach Skeptics justifiably confront the
Edwards concluded the ideal loca- Earth orbit, youre halfway to any- space elevator concept with numerous
tion to anchor the first space elevator where. To its proponents, the space questions:
would be on the equator, straight elevator provides inexpensive, high-
south of California, about 2,000 miles volume access to the vast material and Will current material science
west of Ecuador. This region has a very energy resources of space. To those provide adequate technology to create
low incidence of hurricanes and other who look to create a prosperous future the magic ribbon?
extreme weather, and minimal air and for all humanity, greatly expanded
ship traffic. human presence in space holds the Is there a sufficient market for
highest potential of answering some of such a system? For example, the year
Financial Challenges the significant problems facing humans 2002 saw less than 40 commercial
on Earth: space payloads. There is no guarantee
So who might build and pay for a that greatly reduced cost to orbit
space elevator? Private companies like The increasing need for clean and would result in an immediate increase
those that built the English Channel sustainable energy sources. in demand. The non-successes of the
tunnel? Government agencies like great private satellite ventures of
NASA? Or a combination of both as The growth of human population the late 1990s cause optimistic space
with the transcontinental beyond the Earths carrying business projections to be met with
capacity. much skepticism.

Increasing pollution, rising What are the governmental con-


CO2 levels, global warming, siderations, red tape, and legal ramifi-
polar ice melting, and chang- cations? International law requires that
ing weather patterns. objects in space be registered with
their host country, and that the host be
Threats of global disaster responsible for any damage. Numerous
federal agencies already make life
Figure 6. Laser energy, difficult for space entrepreneurs and
beamed from the Earth, established businesses alike.
powers a climber as it
ascends a ribbon to orbit
(illustration by The Space A space elevator system that
Elevator Visualization Group). reaches across so many domains

60 SERVO 02.2006
Gilbertson.qxd 1/10/2006 11:54 AM Page 61

water, surface, air, and space also Figure 7. Donaldson and his climber
crosses numerous legal and regulatory S.E.R. built from LEGO MindStorms.
regions, creating lots of new areas for
lawyers to explore.

Event 1.0
Robotic Society of
Americas Space
Elevator Challenges
In 2002, inspired by Brad
Edwards space elevator vision, I
created an event for the San
Francisco Robotics Society of
Americas annual Robot Games.
Called The Space Elevator Ribbon
Climbing Robot Competition, the
event tasked robot builders with the
challenge of making a device weigh-
ing less than 1 kilogram (2.2 lbs) Figure 8. Buffington with Racing
capable of scaling a thin polyethylene Slug the first beam powered
ribbon 30 mm (1+3/16 inch) wide. climbing robot success.
Climbers could carry all their
power on board (as with batteries), elevator. These two engineering
but machines that received some or all first place, the big cash competitions are intended to generate
of their power from a beamed prize, and a spot in history as the first interest and excitement in academia,
source such as high intensity flash- ever fully beam powered Space the space enthusiast community, and
lights located at the launch platform Elevator ribbon climbing robot. the general public.
would receive a much higher scoring The Beam Power Challenge tasks
factor. Event 2.0 NASA designers with building an unmanned
The December 2002 event saw but Fuels the Fires machine, weighing 50 to 100 pounds,
one successful entry. Nick Donaldson capable of pulling itself up a four-inch
assembeled his climber, S.E.R. (for The scope and scale of space wide, 200-foot long ribbon suspended
Space Elevator Robot), entirely from elevator competitions was soon to from a crane, and powered only
LEGO blocks and operated it by a LEGO change dramatically. On October
MindStorms RCX controller. It complet- 23, 2005, NASA stepped into the
ed a 2.4 meter (eight foot) climb in 37 game by supplying over $100,000
seconds, and earned Nick a place in the in prize money for a new event
history books as the first Space Elevator called the Space Elevator Games
ribbon climbing robot. the premier event of NASAs
The second running of the event new X-Prize-styled series of
in March of 2004 saw a great Centennial Challenges.
increase in the number of participants, Held at NASAs Ames
in part due to the $1,000 prize offered Research Center in Mountain
by the Institute for Scientific Research View, CA, the three days of gruel-
(ISR), a government sponsored ing competition and friendly
research lab that was home to Brad shoulder-to-shoulder innovation,
Edwards and his continuing work on were designed to address the
space elevator development. technical as well as social
Ten teams signed up, and five engineering issues of the space
entrants completed the 3.56 meter (11
feet, 8 inch) climb, with two operating Figure 9. The University of British
under beamed energy. Jack Columbia entry makes its way
skyward during NASAs first
Buffingtons elegant and fast climber Centennial Challenge competition
ironically named Racing Slug took held in October 2005.

SERVO 02.2006 61
Gilbertson.qxd 1/10/2006 11:57 AM Page 62

SPACE ELEVATOR
Figure 10. The space elevator
ribbon passes through a space LINKS
station at geosynchronous orbit
(illustration by The Space For more information about the
Elevator Visualization Group).
Centennial Challenges program
first prize, five from across http://centennialchallenges.
the US and two from nasa.gov
Canada. The University of
Saskatchewan team led For more information on the NASA
by Edwin Zhang reached Space Elevator Centennial Challenge
the highest altitude under competitions
beamed power, about one www.elevator2010.org
third of the full distance.
At that point, their For more information on the
one-square meter array of Spaceward Foundation
space-grade solar cells www.spaceward.org
yielded insufficient ener-
gy to continue. Other For more information on the
entrants used various RoboGames Space Elevator Ribbon
solar array schemes and
Climbing events
even Stirling engines
driven by the searchlights
http://robogames.net
by the energy thermal energy, but no team managed
beamed up from a 10,000 watt xenon to complete the challenge. best formulation for an ultra-light,
searchlight. In the second event the Tether ultra-strong ribbon material. In
Seven teams vied for the $50,000 Challenge four teams offered their one-on-one tug-of-wars, each of the

62 SERVO 02.2006
Gilbertson.qxd 1/10/2006 12:14 PM Page 63

entrants were tested to their breaking points. In the final


round, the strongest contender, fielded by Centaurus FOR YOUR INFO ...
Aerospace of Logan, UT, yielded at 1,260 pounds, giving
way to the house ribbon which broke at just over 1,300
For an in-depth look at Space Elevator technology, check
pounds of force, and leaving the $50,000 first prize out L. Paul Verhages Near Space column in the September 05
unclaimed. issue of Nuts & Volts (www.nutsvolts.com).
As in the first year of the DARPA Grand Challenge for
autonomous vehicles, the Space Elevator Challenges set human adventures:
high goals, and seek to inspire innovation, as well as public
attention. The ocean crossing journeys of the Polynesians.
This years unclaimed prize money will be added to next
years, and that alone should boost the number of entrants, Chinas great armadas of exploration nearly 100 years
said Brant Sponberg, manager for NASAs Centennial before Columbus.
Challenges program. This is an exciting start. We dont need
to try to pick and choose which approaches might be The voyages of Columbus, Magellan, Cook, and many
successful. We simply invite all new ideas to come and give it others.
a shot, and then reward the best, he said.
With the 2006 climber and tether challenge first prizes The building of the transcontinental railroad and the
set at $150,000 each, and with smaller awards for second Panama Canal.
and third places, over 20 teams have already signed up.
Indeed, some of next years hopefuls were seen in atten- The Apollo missions to the Moon.
dance, learning from this years events and taking notes.
Will we be seeing your robotic climber entering next Dreamers, acting on their dreams, create the future. Just
years competition? as the transcontinental railroads replaced wagon trains, so
could space elevators replace rockets and in the process blast
Conclusion the space frontier wide open to all. SV

The space elevator could represent the first step in a new


space age. Whether driven by hubris and greed, by a passion
* Accessories
for solving great challenges, or by a deep concern
* Freeware SW ASURO
for humanity, what we choose to build reveals the most
tools / C programming
essential aspects of what makes us human the desire to
* RISC, standard parts
create, to turn our dreams into reality, and to build a more
* Six (6) collision detectors
promising future for our descendants.
* Optical line-tracer
The fabric of history is woven on the weft of great
* Two (2) odo sensors
adventures and the bold experiments of those whove said it
can be done. * LEDs, IR interface
A space elevator would exceed the scope of all past engi-
neering, exploration, and space projects, and encompasses a b.u.
i.l.d
grandly historic vision, comparable to the greatest of past

ABOUT THE AUTHOR * Accessories


RP5 * Freeware tools
In college, Roger G. Gilbertson studied engineering, * Two (2) light sensors
robotics, and the walking patterns of living creatures. * Two (2) hi-res distance
In 1987, he co-founded Mondo-tronics, Inc., to explore the * IR anti-collision system, adj.
commercial applications of Shape Memory Alloy wires, and * Sensors: Sound, motor/
charge current
in 1995 launched RobotStore.com the Internets first
* IR transceiver
commercial robotics site. Mondo-tronics continues to
innovative new products for students, educators, hobbyists,
and experimenters using shape memory alloys and other
innovative technologies. Roger lives and works in Marin b.u.
i.l.d
County, CA, where robots may be found vacuuming the floors,
but dont yet stand a chance at cleaning the closets. www.MojoRobo.com
Toll-free (866) 626-7157 Dealer Inquiries Welcome

SERVO 02.2006 63
Calkins1.qxd 1/12/2006 2:43 PM Page 64

by Dave Calkins

2005
ROBOT
SOCCER
Championships
Part 1 RoboCup Osaka

T
here are lots of robot sports out Soccer Association) both promote the independently programmed life-sized
there combat robots, Tetsujin, same goals multiple entry-level humanoid robots that can beat the
sumo robots, Lego Mindstorms soccer leagues with a difficult but not FIFA WorldCup championship team. It
but the ultimate challenge in robotic impossible task, with the ultimate goal sounds easy. But once you consider the
sports is Robot Soccer. In combat of fielding humanoid robots the same real difficulties that individual members
robots, you design and build and size as humans who can independently of a soccer team must face finding
machine from the ground up and drive compete against actual humans in a the ball, knowing friend from foe,
it, but there are no sensors or artificial regulation soccer competition. coordinating with the other members
intelligence (AI). In sumo bots, you just As a competitor, FIRA feels more of your team, only kicking towards the
find anything that moves and push it. like the Sundance film festival whereas opponents goal (own goals being all
Robo-Ones as cool as they are are RoboCup is more like the Oscars, said too common in todays human played
still remote-controlled. The ultimate Jacky Baltes, Associate Professor for games), and knowing when to play
challenge for the robot builder is robot Computer Science at the University of and when to listen to the referees.
soccer. Build a fast robot, with full AI, Manitoba, Winnipeg, Canada. Jacky The first RoboCup games were
that can localize not only against a sin- leads the humanoid events at both held in Nagoya, Japan in July 1997. A
gle opponent, but multiple opponents, RoboCup and FIRA. RoboCup has total of 330 teams from 31 countries
a ball, and two opposing goals. more glitz and glamour, but FIRA does with 2,000 participants competed in
not charge you more than $1,000 to the soccer, rescue, and junior competi-
Two Organizations participate and show your robot. tions setting a new record number of
participants in the history of RoboCup.
Soccer robots are akin to combat RoboCup Much like combat events, the competi-
robots in that there are many classes tors are always helping each other and
and two leagues. Both started around The shining goal of RoboCup is a sharing code, tools, and even helping
the same time; RoboCup and FIRA date, not a machine. The goal is that by each other on-site. But once a match
(Federation of International Robot 2050, RoboCup can field a team of starts, its all about winning!
64 SERVO 02.2006
Calkins1.qxd 1/12/2006 2:44 PM Page 65

]
There are lots of
robot sports out there Photo 1

Combat robots, Tetsujin,


sumo robots, Lego
Mindstorms but the
ultimate challenge in
robotic sports is Robot

Photo 4
Soccer.
Photo 2

Photo 3

Photo 5

Photo 6

PHOTO 1. Dogs and cats fight it out in an Aibo league match.


PHOTO 2. Not all humanoid robots are as small as cats, as the
German team proves.
PHOTO 3. High-schoolers show off their abilities in the Junior League.
PHOTO 4. A familiar sight at all robot events ...
PHOTO 5. The VisiON prototype Robovie-M shows its poise.
PHOTO 6. Humanoids duke it out in the penalty kick phase.

Photo 7 PHOTO 7. Celebrating a score!

SERVO 02.2006 65
Calkins1.qxd 1/12/2006 2:43 PM Page 66

2005 Robot Soccer Championships


Professor Baltes summarizes the with audiences); humanoid league, oriented set of challenges for pre-
challenges accurately, People from all which includes four different events collegiate students. This gives them an
over the world try and solve some real- (most robots are about 15 tall like insight into robotics, and gets them
ly, really hard problems in a competitive Robo-Ones, but they can be as big as involved in basic electronics, hardware,
environment. Even though there is a four feet tall); and the Simulation and software. Unlike many high-school
competition, all researchers and League, which doesnt involve actual robotic events, RoboCup Junior has
especially students realize that they robots but perfects the software three independent challenges with
are part of something bigger The agents which control bots (2D, 3D, and consistent rules that students can pick
quest to understand human reasoning Coach competitions are included). from: Soccer Challenge, Rescue
better and, thus, to have a great The RoboCup Rescue Division is a Challenge, and the Dance Challenge.
impact on our society. more practical event. One of the most
promising areas of robotics not for VisiOn Winners First
Varying Events profit but for truly aiding humanity is Step to a Butler Bot?
rescuer robotics. When earthquakes,
RoboCup is divided into three tsunamis, fires, terrorism, or other The biggest winner of RoboCup
major divisions, 10 leagues, and 15 events collapse buildings and cities, 2005 was Team Osaka and their robot,
competitons (Yeah, its even harder to robots will play a greater role in helping VisiOn. In the history of RoboCup, no
understand than the free-kick rules in find survivors while theyre still alive. humanoid robots have ever completed
human soccer ...). RoboCup Soccer The RoboCup Rescue project diverges all of the humanoid trials, much less
Division consists of the small-size from the soccer goal but still focuses place first in them all. In fact, prior to
league (seven inches square); middle- on robotics. The rescue robot league this event, no humanoid robot had
size league (20 inches square and has actual robots moving through a ever managed to finish the technical
weighing almost as much as a human); simulated collapsed building looking challenge. And yet, this year, VisiOn
four-legged league (Aibos probably for survivors, while the rescue simula- managed to complete the technical
the easiest entry point and certainly tion league is computer simulated. challenge and finish first in all
the most popular, both with teams and RoboCup Junior is a project- humanoid events (2 on 2, Penalty, and
Technical Challenge).
Wouldnt it be great to have eyes
ROBOCUP 2005 CHAMPIONS in the back of your head? The obvious
Best Humanoid Louis Vuitton 2. Aria Iran point being to see in both directions.
Humanoid Cup 3. Kasra Iran One of the critical innovations of Team
Team Osaka Japan Osakas robot is its head not its
Small-size Robot League brain, but its physical head. Instead of
2 on 2 Kid-size Humanoid League 1. FU-Fighters Germany trying to replicate human eyes that
1. Team Osaka Japan 2. Cornell Big Red USA look forward, Team Osaka devised a
2. NimbRo Germany 3. Field Rangers Singapore completely new (and much improved)
3. Team Hajime Japan way of seeing. A single camera
Middle-size Robot League mounted above the neck looks direct-
Penalty Kick Humanoid League 1. EIGEN Keio Univ Japan ly up. Above the camera is a mirrored
1. Team Osaka Japan 2. FU-Fighters Germany cone opposite the camera, which
3. Philips RoboCup Team The
gives the robot a 360 view of its
Technical Challenge Humanoid League Netherlands
surroundings. So with a single eye, it
1. Team Osaka Japan
2. NimbRo Germany Four-legged Robot League sees everything in front, to the left, to
1. German Team Germany the right, and behind itself (just like
2D Simulation League 2. NuBots Australia your mom could when you were
1. Brainstormers 2D Germany 3. rUNSWift Australia trying to sneak a cookie, but with
2. Wright Eagle 2005 China much more wiring ...).
3. Tokyo Tech SFC Japan Rescue Robot League Watching the Team Osaka robot
1. Toin Pelican Japan play against the other humanoid is like
3D Simulation League 2. ROSQUE Korea comparing a middle-schooler soccer
1. ARIA Iran 3. Casualty Australia student with David Beckham. Typical
2. Brainstormers 3D Germany humanoids have a problem standing
3. ZJUBase China/Caspian and Iran (tie) Agent Competition Rescue Simulation up, much less successfully defending a
1. Impossibles Iran goal. The VisiOn robot practically
Coach Simulation League 2. Caspian Iran
waltzed around its opponents (most of
1. UT Austin Villa USA 3. Kshitij India
whom fell down while merely trying to
66 SERVO 02.2006
Calkins1.qxd 1/12/2006 2:46 PM Page 67

Photo 8 Photo 9 Photo 10

Photo 11 Photo 12

Photo 13

Photo 14

PHOTO 8. The grand champion VisiON robot lines up on


a ball.

PHOTO 9. Fujitsus newest humanoid is almost two feet tall


and carries his own light saber.

PHOTO 10. Small league robots are small, but quick!

Photo 15 PHOTO 11. Team Osaka shows off their baby.

PHOTO 12. Almost as glorious as the ComBots Cup, the


Louis Vuitton Humanoid Cup was won by Team Osaka two
years running.

PHOTO 13. Preparations for the middle-league rounds.

PHOTO 14. 3D simulation league games are even more


exciting than human soccer games.

PHOTO 15. He shoots, he scores!

SERVO 02.2006 67
Calkins1.qxd 1/12/2006 2:47 PM Page 68

2005 Robot Soccer Championships


Photo 17

Photo 19 Photo 18

Photo 16

Photo 21

Photo 20

PHOTO 16. Junior league line-following robots do


their stuff.

PHOTO 17. While no physical robots are involved,


the simulation-league perfects the AI behind the
bots.

PHOTO 18. Rescue robots have many hands that


need helping.

PHOTO 19. A rescue-league robot navigates through


the maze.

PHOTO 20. 2D simulation league.

PHOTO 21. The Japanese Team calibrates their


small-league robots.

68 SERVO 02.2006
Calkins1.qxd 1/12/2006 7:03 PM Page 69

approach the ball). it is a matter of economics. The VisiOn Soccer Events in 2006
The VisiOn robot has some and similar robots would sell like hot
impressive moves my favorite one is cakes if they would cost less than If youre looking to either compete
the goalkeeper that dives for the ball $10,000. However, their cost is more in RoboCup, or to just watch a match,
and then gets up again, and the way like $50,000. Bigger, useful humanoid there are lots of events coming up. The
they try and steal the ball from other robots that can do most of the house- US Open will be held in Atlanta, GA
players, said Baltes. Other hold chores are still much further April 22nd-25th, the WorldCup will be

[ ]
researchers me included try to away. in Bremen, Germany June 14-20th, and

... all researchers and especially students realize


that they are part of something bigger The quest to
understand human reasoning better and, thus, to have
a great impact on our society.
learn how to control a humanoid with As is typical at robot competitions,

ROBOlympics will once again host
low quality motors and sensors, since I beds were not part of the program. robot soccer June 16-18th in San
believe that human intelligence is We didnt sleep for the past two days. Francisco, CA along with the SERVO-
amazing because of its ability to We wont sleep tonight to do the best sponsored 2006 Tetsujin event, robot
compensate for noise and uncertainty for tomorrow, said one Team Osaka combat, and many other events.
(as introduced by these motors and competitor. Their commitment was Next month, well cover the FIRA
sensors) in the world. Entertainment- rewarded with the Louis Vuitton Cup 2005 Championship, which was held in
type humanoids are available now and for best overall humanoid. Singapore. SV

SERVO 02.2006 69
BookstoreFeb06.qxd 1/10/2006 1:31 PM Page 70

dy
Mind Cany
For Toda t
Roboticis
s The SERVO Store
123 PIC Microcontroller Mechatronics for the Evil Genius Bionics for the Evil Genius
Experiments for the Evil Genius by Newton C. Braga by Newton C. Braga
by Myke Predko If you're fascinated by Step into the future
Few books take advan- electronics and mechan- (or the past, if you
tage of all the work ics, this hands-on tour of have a touch of Dr.
done by Microchip. the junction where they Frankenstein in your
123 PIC Microcontroller meet will bring you soul) with these 25
Experiments for the hours of fun and learn- incredibly cool bionic
Evil Genius uses the ing. Noted electronics experiments!
best parts, and does author Newton Braga's Demonstrating how life
not become depend- Mechatronics for the forms can be enhanced,
!
ent on one tool type or Evil Genius guides you combined, manipulated, NEW
version, to accommo- step-by-step through 25 complete, intriguing, and measured with electronic and
date the widest audi- yet inexpensive projects developed especial- mechanical components, these inexpensive
ence possible. Building on the success of ly for this book. You will build your own projects from internationally renowned elec-
123 Robotics Experiments for the Evil mechanical race car, combat robot, ionic tronics guru Newton Braga provide hours of
Genius, as well as the unbelievable sales his- motor, mechatronic head, light beam remote fun and learning. Totally safe, Bionics for the
tory of Programming and Customizing the control, and 20 other entertaining learning Evil Genius guides you step-by-step through
PIC Microcontroller, this book will combine projects that take you to the heart of mecha- 25 complete, intriguing, and low-cost
the format of the evil genius title with the fol- tronics. $24.95 projects developed especially for this book
lowing of the microcontroller audience for a including an electric fish, a bat ear, a lie
sure-fire hit. $24.95 detector, an electronic nerve stimulator, a
123 Robotics Experiments panic generator, and 20 other exciting
for the Evil Genius bioelectric/mechanical projects!$24.95
by Myke Predko
Electronic Circuits for If you enjoy tinkering in
the Evil Genius your workshop and
by Dave Cutcher have a fascination for Electronic Sensors for the Evil
Cutcher's 57 lessons robotics, youll have Genius 54 Electrifying Projects
build on each other and hours of fun working by Thomas Petruzzellis
add up to projects that through the 123 experi- Nature meets the Evil
are fun and practical. ments found in this Genius via 54 fun, safe,
The reader gains valu- innovative project and inexpensive proj-
able experience in cir- book. More than just ects that allow you to
cuit construction and an enjoyable way to explore the fascinating
design and in learning to spend time, these and often mysterious
test, modify, and exciting experiments also provide a solid world of natural phe-
observe results. Bonus grounding in robotics, electronics, and pro- nomena using your
website www.books.mcgraw-hill gramming. Each experiment builds on the own home-built sen-
!
com/authors/cutcher provides anima- skills acquired in those before it so you devel- sors. Each project NEW
tions, answers to worksheet problems, links op a hands-on, nuts-and-bolts understanding includes a list of mate-
to other resources, WAV files to be used as of robotics from the ground up. $25.00 rials, sources for parts, schematics, and lots
frequency generators, and freeware to apply of clear, well-illustrated instructions. Projects
your PC as an oscilloscope. $24.95 include rain detector, air pressure sensor,
Electronic Gadgets for cloud chamber, lightning detector, electronic
the Evil Genius gas sniffer, seismograph, radiation detector,
by Robert Iannini and much more! $24.95
MORE Electronic Gadgets The do-it-yourself
for the Evil Genius hobbyist market
by Robert E. Iannini particularly in the area
This much anticipated fol- of electronics is CNC Robotics
low-up to the wildly pop- hotter than ever. This by Geoff Williams
ular cult classic Electronic book gives the evil Now, for the first time,
Gadgets for the Evil genius loads of you can get complete
Genius gives basement projects to delve into, directions for building a
experimenters 40 all-new from an ultrasonic CNC workshop bot for a
projects to tinker with. microphone to a body total cost of around
Following the tried-and- heat detector, all the way to a Star Wars $1,500.00. CNC Robotics
true Evil Genius Series Light Saber. This book makes creating these gives you step-by-step,
format, each project devices fun, inexpensive, and easy. $24.95 illustrated directions for
includes a detailed list of materials, sources designing, constructing,
for parts, schematics, documentation, and and testing a fully functional CNC robot that
lots of clear, well-illustrated instructions for We accept VISA, MC, AMEX, and DISCOVER saves you 80 percent of the price of an off-
easy assembly. Readers will also get a quick Prices do not include shipping and the-shelf bot and can be customized to suit
briefing on mathematical theory and a sim- may be subject to change. your purposes exactly, because you
ple explanation of operation. $24.95 designed it. $34.95
70 SERVO 02.2006
BookstoreFeb06.qxd 1/10/2006 1:32 PM Page 71

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 SERVO CD-Rom Anatomy of a Robot
Heres some good Are you ready for by Charles Bergren
news for Nuts & some good news? This work looks under
Volts readers! Starting with the the hood of all robot-
Starting with the first SERVO ic projects, stimulating
January 2004 issue Magazine issue teachers, students,
of Nuts & Volts, all November 2003 and hobbyists to learn
of the issues all of the issues more about the gamut
through the 2004 through the 2004 of areas associated
calendar year are calendar year are with control systems
now available on a now available on a and robotics. It offers
CD that can be searched, printed, and easily CD that can be searched, printed, and easily a unique presentation
stored. This CD includes all of Volume 25, stored. This CD includes all of Volume 1, in providing both the-
issues 1-12, for a total of 12 issues. The CD- issues 11-12 and Volume 2, issues 1-12, for a ory and philosophy in a technical yet enter-
Rom is PC and Mac compatible. It requires total of 14 issues. The CD-Rom is PC and Mac taining way. Reading Anatomy of a Robot is
Adobe Acrobat Reader version 6 or above. compatible. It requires Adobe Acrobat like having a robot on the operating room
Adobe Acrobat Reader version 7 is included Reader version 6 or above. Adobe Acrobat table. Crack open the pages, and youll be
on the disc. $29.95 Reader version 7 is included on the disc. able to dissect a robot from head to toe
$29.95 or from project management and design to
JunkBots, Bugbots, and motors and power systems. $29.95
Bots on Wheels
by Dave Hrynkiw / Mark W. Tilden The Official Robosapien Concise Encyclopedia
From the publishers Hacker's Guide of Robotics
of BattleBots: The by Dave Prochnow by Stan Gibilisco
Official Guide comes The Robosapien robot This handy collection of
this do-it-yourself was one of the most straightforward, to-the-
guide to BEAM popular hobbyist gifts point definitions is exactly
(Biology, Electronics, of the 2004 holiday what robotics and artifi-
Aesthetics, season, selling approx- cial intelligence hobbyists
Mechanics) robots. imately 1.5 million need to get and stay up
They're cheap, sim- units at major retail to speed with all new
ple, and can be built outlets. The brief man- terms that have recently
by beginners in just ual accompanying the emerged in robotics and
a few hours, with help from this expert guide robot covered only artificial intelligence.
complete with full-color photos. Get ready basic movements and Written by an award-win-
for some dumpster-diving! Get step-by-step maneuvers the robot's real power and ning electronics author, the Concise
instructions from the Junkbot masters for potential remain undiscovered by most own- Encyclopedia of Robotics delivers 400 up-to-
creating simple and fun self-guiding robots ers until now! This is the official date, easy-to-read definitions that make even
safely and easily. $24.95 Robosapien guide endorsed by WowWee complex concepts understandable. Over
(the manufacturer) and Mark Tilden (the 150 illustrations make the information acces-
designer). This timely book covers possible sible at a glance and extensive cross-refer-
PIC Microcontroller Project Book design additions, programming possibilities, encing and a comprehensive bibliography
by John Iovine and "hacks" not found any place else. $24.95 facilitate further research. $19.95
The PIC microcontroller
is enormously popular
both in the US and
$ 2 0o fe ach
abroad. The first edition f if y o u
1 5 % t w o oror
of this book was a buy
tremendous success mo r
or e .
because of that.
However, many
users of the PIC are now
comfortable paying the
$250.00 price for the Professional
version of the PIC Basic. This new edition is
fully updated and revised to include detailed
directions on using both versions of the
microcontroller, with no-nonsense From HomoSapien to RoboSapien Before R2D2 there was R1D1
recommendations on which one serves
better in different situations. $29.95 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 02.2006 71
LessonsFromTheLab.qxd 1/10/2006 10:06 AM Page 72

// castling bonuses A
bi-month

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

column ju ly
//center weighting array to make pieces prefer
//the center of the board during the rating routine st for
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

Electronic
Stopwatch for Races Guest Hosted by Marc Helfman

J ames is generously allowing me to


do a guest spot in his column this
month, but I trust hell be back next
enough to press the button at the exact
instant your racer starts and once again
when it crosses the finish line. But I think
(say 14, 11, and 12) of three of your
friends (whose names just happen to be
Red, Blue, and Yellow) on separate
time with another interesting topic. In youll find this method wont produce pieces of paper, and put each slip into
his excellent article in the October, 2004 the accuracy youre looking for. Luckily, the appropriate jar. A week later, you
issue, he talked about the importance the RCX and Robolab have built in cant remember Blues age so you reach
of finding the right gear ratio when features that solve this problem handily. into the jar and pull out the slip of paper
designing a drag racer. Other factors By way of background, we need to that reminds you that hes 11 years old.
that can affect the speed of your drag- talk about two Robolab constructs you Containers in Robolab work exactly
ster are wheel size, mechanical configu- may not have worked with before: the same way. You keep track of the con-
ration, weight, and freshness of your timers and containers. Lurking in Level tainer youre using by referring to its
batteries. Anyone whos tried to opti- 4 of the modifiers sub-palette are red, color and you store or retrieve the actual
mize a racer can tell you that a lot of blue, and yellow icons with tiny alarm number youre interested in by accessing
experimentation is involved in getting clocks on them; these are the three its value. Take a look at the timer icons in
these variables just right. Sometimes its timers that come with Robolab. They the modifiers sub-palette once again.
obvious that a particular gear or wheel work as electronic stopwatches that On the bottom left, youll see the red,
selection speeds up your bot, but this you can use in your programs to time blue, and yellow timer labels and to the
isnt always the case. So how can you how long it takes for something to hap- right youll see the icons that will contain
tell if youve really made a difference? pen. As youll see later, when we talk the values for these timers. When
One way would be to use a stop- about the actual program, theres dealing with containers, its easy to
watch and hope your reflexes are fast another icon that youll need to know become confused between the label on
about: the zero timer command the container and the actual value stored
FIGURE 1 (found in the reset sub-palette). inside it, so hopefully this explanation
Many Robolab users never get will help you keep things straight.
around to learning about containers Enough with the theory! Lets get to
(also known as variables), but ask any- the fun part writing the program and
one who writes software for a living and putting it to use to make a winning drag
theyll tell you they couldnt get along racer. The photo in Figure 1 shows the
without them. Imagine you have three drag racer from James article with its
empty jars sitting on a table, each light sensor positioned just ahead of the
labeled with a different color: red, blue, starting line and poised to race across the
and yellow. You write down the ages finish line 10 feet away. The program we

72 SERVO 02.2006
LessonsFromTheLab.qxd 1/10/2006 10:08 AM Page 73

are about to write will act


like a built-in stopwatch
and display the amount of
time your racer takes to
get to the finish line.
Referring to Figure 2,
we see that the program
starts with a five second
delay. This is so your
hand wont be in contact
with the racer once it
takes off. Next, we reset
the red timer to zero and FIGURE 2
turn on the motors the
race is on! As we hurtle towards the fin- in hundredths of a second. Finally, we use a six second wait
ish line, the light sensor starts looking Now that weve stored the timer for to keep the timer value displayed
for the strip of black tape. value, we allow our bot to coast to a long enough for us to walk over and
Once the racer crosses the finish stop and display the elapsed time on take a look at the LCD.
line, the value of the red timer is stored the RCXs LCD display. Notice that To test out the program, I raced
in a container. Ive chosen a blue weve strung in the value of blue the bot on a 10 foot course and got a
container just to have a little variety. If timer icon to the set display icon readout of 2.85 seconds; if you do the
you look in the container sub-palette, (which is found in the RCX communica- math, that translates to 3.51 feet per
youll find two icons with the alarm tions sub-palette) to retrieve our timer second. Wondering how fast this is in
clocks on them. The one we want is on value and that weve also strung in a miles per hour? Just multiply the speed
the right, three rows from the bottom. numeric constant of 2 so that well we just got by .682 in my case a
Weve chosen it because it will give a get the right decimal point position for whopping 2.4 miles per hour.
more precise value for our stopwatch, displaying hundredths of a second. Gentlemen, start your engines! SV

STEER WINNING ROBOTS


2006 WITHOUT SERVOS!
March 19-23, 2006
Hyatt Regency Dallas

THE PREMIER
GLOBAL EVENT
IN POWER
ELECTRONICS TM

Visit the Apec 2006


web site for the P erform proportional speed, direction, and steering with
only two Radio/Control channels for vehicles using two
separate brush-type electric motors mounted right and left
latest information! with our mixing RDFR dual speed control. Used in many
successful competitive robots. Single joystick operation: up
goes straight ahead, down is reverse. Pure right or left twirls
www.apec-conf.org vehicle as motors turn opposite directions. In between stick
positions completely proportional. Plugs in like a servo to
your Futaba, JR, Hitec, or similar radio. Compatible with gyro
steering stabilization. Various volt and amp sizes available.
The RDFR47E 55V 75A per motor unit pictured above.
www.vantec.com
SPONSORED BY

Order at
(888) 929-5055
SERVO 02.2006 73
AssemblyLine.qxd 1/10/2006 1:00 PM Page 74

by J ames A ntonakos

Uno and the Rise of the Phoenix


A
h, the joy of troubleshooting. touching each other. No luck there, Oops. To make matters worse, the
One might almost look forward there are no visible signs of trouble ground wire that was supposed to go
to the troubleshooting portion of with the wiring. That does not mean to pin 8 was instead wired to pin 9.
a project because it means the device the driver IC is wired correctly. These two wiring errors were very bad
has been built. It just does not work So, next, I checked the wiring and directly led to the smoky results.
yet. This is the case with Uno, whose diagrams that I used during construction. Take a look at Figure 1 to see why.
stepper motor driver IC (the ULN2003 I traced the five colored wires from the I had now identified three wires to
Darlington driver) made some smoke stepper motor to the driver IC. The white, disconnect and re-connect to the prop-
signals during the first test of the red, green, and brown wires were er locations. I soldered the Black wire
completed system. Like the mythical connected to four outputs on the driver from the stepper motor directly to the
Phoenix, Uno went out in a blaze. But IC. So far so good, as these four wires output of the on/off switch. As long as
can Uno come back, as the Phoenix control the coils inside the stepper motor. I was making repairs, I thought I would
does, and be reborn from its ashes? This left only the black wire from bypass the wire-wrap connector and
My first step in troubleshooting the stepper motor, which is common to feed to the motor directly.
this problem involved finding another all four coils and must be pulled up to I then swapped the two wire-wrap
copy of the datasheet for the ULN2003. +12V. This is where I noticed something wires that provide +12V and ground to
I wanted to re-examine the Darlington strange. On my schematic and wiring the stepper motor driver board. I also
transistor configuration and have a diagram, I had the black wire connect- added a second wire-wrap wire to the
pinout reference. Next, I unscrewed the ed to pin 9 of the ULN2003, as it ground connection, to provide a better
stepper motor driver board and looked should be. However, I actually wired it, path for return current from the
for something obvious, such as a solder along with another black wire connect- ULN2003.
bridge, or two wire-wrap pins bent and ed to +12V, to pin 8 of the ULN2003. Not being a gambling man, I also

Figure 1. Schematic of the Darlington driver within the ULN2003. A) My wiring errors cause +12V and ground to be swapped on
the ULN2003s Com and Gnd pins. This allowed lots of current to flow into Gnd, through each transistors base-collector junction
and out through the Com pin, generating heat and smoke. B) This
is the correct way to apply power to the ULN2003. With the
emitters towards ground, the transistors can be switched on and
off with the signal at the In input.

A B
74 SERVO 02.2006
AssemblyLine.qxd 1/10/2006 1:01 PM Page 75

5 &6

9
,&

7
,
7


2

2
1 2%

0
,/
7
5

)
replaced the old ULN2003 chip with a

,0

1
new one, in case something melted in the

,
$

'
original chip and more trouble lay in wait THOUSANDS OF ELECTRONIC

(
6
for me. With my fingers crossed once PA R T S A N D S U P P L I E S

8
again, I flipped on Unos power switch.

6
VISIT OUR ONLINE STORE AT

$
And ... no smoke! The rear wheels
did their expected forward-reverse
www.allelectronics.com
cycle, and then the stepper motor did a WALL TRANSFORMERS, ALARMS,
quarter rotation in each direction, just FUSES, CABLE TIES, RELAYS, OPTO 0ROFESSIONAL
like the test program tells it to. It ELECTRONICS, KNOBS, VIDEO 3ERVO#ONTROLLERS
seemed too good to be true, so I let ACCESSORIES, SIRENS, SOLDER ATAPRICE
Uno run for a short time to see if any
ACCESSORIES, MOTORS, DIODES,
HEAT SINKS, CAPACITORS, CHOKES,
YOUCANAFFORD
smoke reappeared. There was none, TOOLS, FASTENERS, TERMINAL 2QERDUG5HFRUG3OD\EDFN
the ULN2003 stayed cool to the touch. STRIPS, CRIMP CONNECTORS, 3RZHUIXOPL[LQJIXQFWLRQV
Say hello to Uno: Phoenix edition. L.E.D.S., DISPLAYS, FANS, BREAD- &RGHOHVVSURJUDPPLQJ
Now, for those of you thinking BOARDS, RESISTORS, SOLAR CELLS, &\FOLFZDONLQJHQJLQH
BUZZERS, BATTERIES, MAGNETS, 8VHUXSJUDGHDEOH
that was too easy, let me both agree 70
:LQGRZV*8,
and disagree. I agree because it was CAMERAS, DC-DC CONVERTERS,
86%LQWHUIDFH
HEADPHONES, LAMPS, PANEL 5DQJHRIDFFHVVRULHV
easy to troubleshoot. I found a wiring METERS, SWITCHES, SPEAKERS,
error within two minutes of checking PELTIER DEVICES, and much more....
the wires. Touchdown!
I disagree because, well, it should O R D E R TO L L F R E E
have been easy. After all, the circuit
worked on the breadboard. The hard- 1-800-826-5432 WWWAMATICOMAU
Ask for our FREE 96 page catalog
ware and software designs worked. So,
the only place an error could have been
introduced was when the hardware was Robotics Showcase
moved from the breadboard to the
circuit board on Unos chassis. If I had
never breadboarded the design and test-
ed the hardware before connecting it all
up, the troubleshooting would have
been much more difficult. And to top it
all off, where was the mistake? It was in
the power wiring, one of the first things
I check when troubleshooting any circuit.
So, now that I am all proud of
myself and everything, I can attend to
the remaining mechanical issues associ-
ated with Unos rear wheel assembly
and front wheel. After that, Ill teach
Uno a few tricks and present him in all
his glory next time. SV

ABOUT T HE A UTHOR
James Antonakos is a Professor
in the Departments of Electrical
Engineering Technology and Computer
Studies at Broome Community College,
with over 27 years of experience
designing digital and analog circuitry
and developing software. He is also
the author of numerous textbooks on
microprocessors, programming, and
microcomputer systems. You may
reach him at antonakos_j@sunybroome.
edu or visit his website at www.suny
broome.edu/~antonakos_j

SERVO 02.2006 75
Appetizer.qxd 1/11/2006 8:07 PM Page 76

The Problem With R2D2


by Erik Hagman

T his last October, I was exhibiting


with my brother at RoboNexus
2005 and a gentleman from a
We need more of a standard not
necessarily in appearance, but in
functionality. A standard base to build
unlimited interfacing capability, which
is pretty close to what a modern PC
can give you. Microcontrollers will still
webzine, whose name I forget on with common, interchangeable find places in the interface to the PC in
(sorry), walks up. He asks me if I component design that can be built by some circumstances or by specific
could define what a robot is for his many manufacturers to a common design needs (i.e., low level functional-
publication and that he was asking interface standard. ity; say a sleep mode with the main PC
other exhibitors at the show the same Robotics is often compared to the brain off).
thing. For me, this was a very impor- PC industry in its infancy, built in
tant and perplexing question, which garages and hoping for that big inno- Price vs. Power
was evident in more than a couple vation that will make robots a house-
places in the show. hold item. The personal computer was The robots I mentioned in my
relatively easy to define a personal introduction all have one thing in
Just What Exactly computer for home/business use on common: a relatively good level of
is a Robot? which you could do whatever comput- intelligence. Some call it artificial
ing you wanted. It was successful intelligence (AI), but I am not sure
The thought always brings images probably because of this it was what is so artificial about it. This is
of R2D2/C3P0 of Star Wars fame or pervasive and generic. A tabula rasa what I studied in university and this
massive Bolos from Laumers science (blank slate) of common computing, if term itself has some problems with
fiction. But even these two sets of you like. definition but, that would be much
images are ambiguous to a certain It brings me to PC Bots or PC longer with more philosophy than
degree since, as machines, they have based robots. PCs like Via seems constructive. AI, to get to the
little in common. The two Star Wars Technologies Mini-ITX boards are point, needs a lot of horsepower.
inventions appear to be very general- low power, small form factor, and You can write very small bits of code
purpose while the Bolos are very specif- affordable. Companies like Phidgets that are pretty smart and efficient,
ic in design, that of warfare. They all are making great USB interfaces and but a general intelligence needs sub-
have very advanced brains and are components to augment the huge PC stantial resources be that speed,
autonomous in operation, apparently peripheral market. And you probably memory, storage, or sensors. Today,
interacting with the human or the have heard of White Box Robotics you can buy a microcontroller board
distinctly bipedal world of Lucas and their 914s which if and when for about $100 or a Via motherboard
creation very successfully. launched will be one of the first PC for about $150. The performance
At this point, you might think robot bases on the scene. difference is staggering orders of
that this would lead to something. I imagine many are saying micro- magnitude.
Over the last couple months, our controllers are the way to go, and I
office gets calls from someone who would agree for the toy types of Tools
found us on the Internet or via the robot kits, and many levels of educa-
phonebook from TV, or the movie tion. Microcontrollers are highly Whether you are a Linux fan, a
industry which wants robot parts for efficient in many ways. But aiming for Java coder, or a .Net disciple, there
a TV commercial, an episode of a general interoperability requires raising are FREE tools for you to use. Just
series, or a movie all but one were the bar so that problems we didnt about everything in the Linux and
looking for industrial arms. This is envision can be addressed on the Java world is free. Microsoft a
where the term robot starts to get platform. This generally means excess huge supporter of PC robotics
messed up. processing power and potentially provides the Express .NET tools for
76 SERVO 02.2006
Appetizer.qxd 1/10/2006 1:04 PM Page 77

free now, and they are very power- contracted to build the brain and significantly more powerful, and
ful and easy to use. What about the interfaces for a prototypical R2D2 infinitely more flexible.
OS Linux is still free (depending for an astute collector who also works With PC bots, I think that we
where you get it); Windows is in the special-effects industry. The may be on the verge of a new age of
going to be available in many new mechanical design is almost entirely robotics development which will usher
lightweight and lower cost forms aluminum, with a very complex and in the beginnings of the robots we all
often bundled with a new PC robot expensive exacting components. This dream about.
base, so this should be a non-issue in robot is fully functional ... well almost. PS: I deliberately didnt define
many ways if you choose to go the It has the ability to transition from robot. If you want something to build
Microsoft way. two to three legs and back again, can on, I would redefine the question to
communicate in distinctly R2 fashion, what is an autonomous mobile
Our PC Projects has a fully functional head, can robot? SV
project a video image on a wall (video
We always have a few projects on holography is still difficult), can AUTHOR BIO
the go. Some custom development, play music, DVDs, function as a PC,
others internal, and others just for transmit video of its actions, deploy Erik Hagman is the president
fun. We have a five-foot, four-inch antennae and periscope and of of Rogue Robotics (www.rogue
robot for medical telepresence in the course it is mobile. robotics.com). He studied artificial
lab, which was an easy decision to The problem was that we started intelligence, Psychology, and
base on PC components. Addressing with microcontrollers and as the
Engineering in University. It is his job
the need for robotics in university design creeped, we needed more
classrooms, we are launching a new and more and we still couldnt to tinker with robot designs, design
PC base system called Avatar achieve all the design goals and custom robots for customers,
which supports the Microsoft robotics interface requirements (video touch- and experiment with intelligent
initiative. But the most enlightening screen). To make a very long story machines. In his spare time, he
project from the PC bot perspective is short, we ended up redesigning continually modifies his automated
R2D2. the entire brain around a Via mother- home with the goal of one day
Yes, you read that right R2D2. board. Not only did it save time,
Almost four years ago, we were it ends up being much cheaper, giving it more intelligence, too.

SERVO 02.2006 77
Then&Now.qxd 1/12/2006 2:29 PM Page 78

Then NOW

a n d
SURGICAL ROBOTS
COME OF AGE
b y T o m C a r r o l l

F or years, the only serious factory-


built commercial robots were those
weve seen for decades in factories
enough, but to have an autonomous or
even teleoperated machine delving into
our innermost parts is a bit unnerving
derived from CT scans and x-rays to
precisely guide the robots end effector
to a particular part of the brain. At the
around the world. Theyve long been in to us all. time, the PUMA was a small and very
space and in the sea as teleoperated Seeing our own creations do popular industrial robot used in the
and autonomous explorers of places unplanned things on our workbenches assembly of small parts weighing in the
we cannot go as humans. They have makes us wonder just what a surgical category of a few ounces to a couple
now entered the battlefield and the air robot might do if the power failed or of pounds. The main obstacle to the
above it. All of us who have been had a voltage spike, or a bad bit in a continued use of this industrial robot
experimenting with robots for years memory chip played havoc on the was its inherent inaccuracy, so only
have finally seen commercially available robots operation. In questioning a large tumors close to the surface of
robots enter the home to vacuum dozen or so people about robotics the skull could be operated on. A
and scrub our floors courtesy of surgery, I found a much smaller NASA-developed calibration technique
iRobot, and entertain us as robotic percentage of robot experimenters increased the accuracy of the PUMA
pets, courtesy of Sony and others. who would volunteer to undergo but it was still a decade before the FDA
When we think of robots in the surgery assisted by a robot than those approved a true surgical robot. I never
medical field, we used to envision of the general public who seem to got to see the LB Memorial robot
electro-mechanical anthropomorphic trust that new technology that they operate on an actual person but I did
arms and legs used to replace missing dont understand. Very interesting. get to examine the robot and see
human appendages. When asked if we Make way for the robot doctors. numerous videos and TV accounts of
would want to be operated on by a Back in the late 1980s, a modified the robots success.
robot, a little shiver runs down our industrial robot was used to assist in Were over five years into the new
spine. Hearing a surgeon mumble surgery at Long Beach Memorial millennium and there are close to a
oops as hes operating on us is bad Hospital in Long Beach, CA. As a resi- thousand surgical robots in operation
dent of Long Beach for over 30 years, I around the world. Unlike the LB
Figure 1. Zeus Robot Arms. had to go and see that robot in person. Memorial robot that only assisted the
A PUMA 200 robot was used to per- brain surgeon by inserting a guide tube
form a computer tomographic (CT) to the tumor area for the surgeon, the
guided stereotactic brain surgery. With new batch of surgical assistants are
the patients actually equipped with a myriad of
head held in surgeons tools, such as scalpels,
a fixed and forceps, scissors, and other familiar
known posi- operating room instruments. The step-
tion, the ping stones to robotic surgery started
robots com- about 20 years ago when surgeons
puter could began practicing what came to be
use 3-D data known as minimally invasive surgery, or
MIS. They used instruments called
Figure 2. Zeus endoscopes or laparoscopes that could
by Computer be inserted in the patients body
Motion. through small incisions to see and
78 SERVO 02.2006
Then&Now.qxd 1/12/2006 2:30 PM Page 79

operate. Patient recovery time


was dramatically cut as blood
loss and pain was minimal.
MIS did encounter signifi-
cant technical drawbacks. The
surgeon had to operate using a
standard TV monitor instead of
looking at his or her hands.
Instead of a natural 3-D depth-
of-field, the view was flat and it
was hard to see near and far
objects. The fixed-wrist instru-
ments limited his/her manual
dexterity. As a result, this type of
MIS turned out to be suitable for
a narrow range of surgical pro-
cedures such as simple appendix
and gall bladder removal proce-
dures. The new surgical robotic Figure 3. Zeus Console. Figure 4. da Vinci Surgical System.
systems have changed all that.
There are two robotic surgical of Goleta, CA, has also been cleared by 1989 and wanted to revolutionize surgi-
systems that have received FDA clear- the FDA to assist surgeons. Notice the cal practices to improve patient lives.
ance in the United States. The first is the key word: assist. Neither of these two They specialized in medical robotics and
da Vinci Surgical System, made by systems can perform surgery on its own; manufactured systems for the Intelligent
Intuitive Surgical, Inc., of Sunnyvale, CA. a surgeon must be in the loop. Operating Room of the future. Their first
It has been cleared by the FDA to product was AESOP, a robotic system
perform surgery under the direction of a ZEUS used for holding an endoscopic camera
surgeon. The ZEUS Robotic Surgical in laparoscopic surgery.
System, made by Computer Motion, Inc., Computer Motion was founded in The system uses three robotic arms

Electronic Parts & Supplies


Since 1967

Robot Building Blocks!


Sensors,
Servos,
Smarts,
Software,
Kits
www.garage-technologies.com

gatewayelectronics.com For the finest in robots, parts, and


(Electronically Speaking, services, go to www.servomagazine.com
Gateways Got It!)
and click on Robo-Links to hotlink to
MAIL ORDERS CALL TOLL-FREE
1-800-669-5810
these great companies.

SERVO 02.2006 79
Then&Now.qxd 1/12/2006 2:30 PM Page 80

the medical team.

Just A Tool, Not A


Smart Machine
Its a gallbladder operation today,
but in the future it could be any
kind of medical procedure, said team
member Michael Gagner, chief of the
Department of Laparoscopic Surgery at
Mount Sinai Medical Center in New
York. As the technology evolves and
becomes available, and wiring (long
distance, high speed data) is more wide-
spread, it will be useful for tele-mentor-
ing, teaching, and performing rare sur-
gery that requires different expertise,
Gagner added. A smaller city could
have the help of an expert surgeon just
by being connected. The surgical robot
is not a smart machine, guided by
artificial intelligence, but only a tool. All
judgments and movements must be
done by surgeons, Gagner said. The
robots were doing exactly what we told
them to do from here in New York.

The da Vinci
Figure 5. da Vinci Surgical System in a General Procedure Setting. Surgical System
that are mounted on the operating completely by remote control using In 1995, the other competitor
table. One robotic arm is called the Computer Motions Zeus System. The Intuitive Surgical entered the field of
Automated Endoscopic System for operating surgeons were in New York robotic surgery. It was formed on robot-
Optimal Positioning Robotic System and the patient was in Strasbourg, ic surgery technology developed at
(AESOP). AESOP is a robot used to hold France. Through a high-quality telecom- Stanford Research Institute (SRI)
and position the endoscope (camera). munications circuit, the doctors in New International, long a leader in robotics.
The system was like a third arm of the York guided the movements of the Intuitive Surgical collaborated with IBM,
surgeon and was operated by foot three-armed Zeus robot in Strasbourg MIT, Olympus, Johnson & Johnson, and
pedals. The FDA approved the Aesop about 3,870 miles away, and removed Medtronic, Inc., and developed the da
1000 system in 1993 and it became the gallbladder of a 68-year-old woman. Vinci System, with loose ties for the
the first surgical robotic device certified Two surgeons were closely watching name to the famous inventors old
by the FDA. The Aesop 2000 released the patient in Strasbourg in order to robot designs (Figure 4). Some sur-
in 1996 used voice control with newer stop the robotic system if there were geons have jokingly called the $1.5 mil-
models adding more arms and complications. One had his foot on an lion robot system the most expensive
degrees-of-freedom, finally resulting in emergency pedal, said Steven Butner, a pair of scissors ever made. If you are
the Zeus system in 2001 (Figure 3). professor of electrical and computer facing the tricky surgery required for
Just four days before the 9/11 engineering at the University of prostate cancer or need a heart valve
terrorist attacks in 2001, US and French California, Santa Barbara, If he took his repaired, the da Vinci Surgical System
doctors and medical scientists foot off the pedal, the robot would may be just what the doctor ordered.
performed a transoceanic operation freeze and he could take over, Butner Figure 5 shows the operating room
said. The opera- layout of the da Vinci Surgical System.
tion took 54 The da Vinci offers true-to-life
Figure 6. da Vinci
Stereo Camera minutes and the 3-D vision with a bright, crisp, high-
Probe. patient recovered resolution image view of the surgical
without complica- field using dual, three-chip cameras
tions and went one of the main selling points of this
Figure 7. Hand home two days system. The da Vinci System provides
Control. later, according to visualization of the target anatomy
80 SERVO 02.2006
Then&Now.qxd 1/12/2006 2:31 PM Page 81

unlike that ever experienced, with nat- geon stands by the patient adjusting
ural depth-of-field, enhanced contrast the camera and instruments if needed.
and magnification for more accurate There are four robotic arms, each
tissue identification and tissue layer with seven degrees of freedom and 90
differentiation. degrees of articulation. The da Vinci
Notice the dual lenses and light System is designed to allow surgeons
sources in the stereoscopic probe in to operate while seated, a position that Figure 8. Short Circuit.
Figure 6. The video feedback can allow is not only more comfortable, but also
the surgeon to imagine hes actually offers reduced surgeon fatigue. The da at all times, recalls one surgeon.
inside the patient, doing the surgery in Vinci System is a computer-enhanced Robotic wrists make it easier for
person. One of the drawbacks that sur- system that uses a computer between surgeons to manipulate tissue and
geons have mentioned is virtual feel the surgeons hands and the tips of his work from all kinds of angles. They can
of the tissues and the interacting instruments to replicate his movements reach around and get to places that
instruments. Though there is some in real time. It cannot be programmed would be harder to get to otherwise.
tactile feedback, a surgeon normally to make movements on its own. Robotic surgical systems also
uses sensations to feel and palpitate Despite the lack of true autonomy, improve depth perception giving
an organ or tumor in his surgical the term robotic surgery is still used surgeons three-dimensional vision,
procedures. The length of the instru- to refer to this computer-enhanced compared with the two-dimensional
ments as compared with standard technology. The present da Vinci System vision they would normally get with
instruments has also given surgeons a cannot be used over long distances endoscopic procedures and a standard
bit of hesitancy. as with the Zeus System, though TV monitor. So far, there havent been
Operating the da Vinci System, a some design changes could certainly indications that robotic surgery is
surgeon sits at a console a dozen or so make it so. any riskier than standard laparoscopic
feet away from the operating table and Fail-safe safety is very important procedures, and there havent been
manipulates the robots surgical instru- for such a system. To start the proce- any patient injuries or deaths related to
ments. The robot has three robotic dure, the surgeons head must be robotic system failures.
arms attached to a free-standing cart. placed in the viewer. Otherwise, the The FDA requires manufacturers to
One arm holds a camera (endoscope) system will lock and remain motionless train surgeon users before they can
that has been placed in the patient until it detects the presence of the use robotic surgical systems on
through small incisions. The surgeon surgeons head once again. There is a patients. It has been reported that it
operates the other two arms and end- backup battery that allows the system takes 12-18 patients before surgeons
effectors by inserting his fingers into to run for 20 minutes when power feel comfortable and before surgeons
rings at the control console. The robots fails, giving the hospital enough time are able to perform the procedures as
arms use a technology called EndoWrist to reestablish power or the surgeon to quickly as with standard techniques.
flexible wrists that surgeons can bend terminate the surgery. Even the end- It is likely to be several years before
and twist like human wrists. effector instrument tips are coded to robotic surgery is widely available for all
Figure 7 shows the surgeons hand prevent any other instrument from types of surgical procedures. Simple gall
control. The surgeon uses hand move- accidentally being attached. bladder removal and even more complex
ments and foot pedals to control the The big question in the minds of prostate removal procedures have been
camera, adjust the focus, and position hospital administrators is why use well proven with both types of systems,
the robotic arms. The da Vinci has a robots in surgery? Manufacturers and but it is up to the surgeons to finally
camera system that magnifies the sur- surgeons reply, robotic arms dont accept an automated method that they
gical field up to 15 times. Another sur- have tremor so they can remain steady have been doing manually for years. SV

Advertiser Index
All Electronics Corp. ......................75, 79 Jameco ..............................................2, 83 RoboteQ ................................................19
AMATI Technology ..............................75 Lorax Works ....................................75, 79 Robotics Group ....................................32
APEC 2006 ............................................73 Lynxmotion, Inc. ...................................62 Robot Shop ....................................22, 79
CrustCrawler .........................................50
Machine Science ..................................17 Solutions Cubed......................................7
Futurlec ..................................................79
MojoRobo .............................................63 Technological Arts ...............................31
Garage Technologies .....................55, 79
Gateway Electronics ............................79 Parallax, Inc. ...........................Back Cover Vantec ...................................................73
Hitec ........................................................3 Pololu Robotics & Electronics .............69 Wired Communications .......................79
Hobby Engineering ..............................55 qfix Robot Kits ......................................55 Zagros Robotics .............................11, 79

SERVO 02.2006 81
MenagerieFeb06.qxd 1/12/2006 4:34 PM Page 82

Osiris
Lawrence Feir
Osiris is part robot, part art. The living sculpture is continually
shifting the pure white sands forming mystical patterns in its four foot by
four foot domain. The robot was designed and built as a prototype
science museum exhibit.
The patterns start out as computer code and contain geometric
and mathematical equations. These are then "plotted" by the robot,
producing some very interesting designs similar in some respects to crop
circles. The Name Osiris comes from the Egyptian god of the sand. He
was also known as the god of the underworld. The origin of his name is
as much a mystery as these magical ripples in the sand.
Osiris is a two-axis machine working in a polar coordinate system.
Power comes from a pair of stepper motors driving the axis through
a precision Bodine Electric gearbox. Stepper drivers are Parker
Compumotor and are commanded by a PC running Mach 2 CNC
software. (www.artofcnc.ca)
Osiris and its offspring may one day replace fountains and static
sculpture in museums and public areas.
Lawrence Feir is an artist and fabricator living in Greensboro, NC. His
company, Innovation Robotics, develops technological apparatus for
museums, film and television.

Bodine Electric: www.bodine-electric.com


Parker: www.parker.com
Mach 2: www.artofcnc.ca

Lawrence Feir
Innovation Robotics
2022 Walker Avenue, Greensboro, NC 27403
336-274-4846 www.innovationrobotics.com

Send us a high-res picture of your robot with a few


descriptive sentences and we'll make you famous.
Well, mostly. menagerie@servomagazine.com

82 SERVO 02.2006
CoverInside.qxd 1/10/2006 11:07 AM Page 2

The One-Stop Source For


All Your Robotic Needs... Whats the difference?

Now, More Products


Than Ever!
The internets first and best robotics source
is back with hundreds of new products
that make our selection better than ever!

Were adding hundreds more new robotics


products every month. Plus well continue
to supply favorites like Muscle Wire,
Passives
the OctoBot Survivor Robot and more.

Interconnects
Be sure to visit us online at

www.RobotStore.com/SR8 Price! Power Products


or call us

1.800.374.5764 Semiconductors

Electromechanicals

Test, Tools & Supplies

Yo u r e c o r r e c t , t h e o n e o n t h e r i g h t c o s t s We feel so strongly, we guarantee to beat any lower are in stock and ready for delivery today. So
10% less because its from Jameco! As with most print catalog price by 10%, down to our cost. So, if whether you need one or one thousand pieces,
components from trusted distributors, the only youre not shopping at Jameco yet, its worth your youll get your order fast. And since weve
difference is the price. And if you are like most time to check out Jamecos great products at increased our product offering 60% in the last year,
folks that want the best prices, its time you give awesome prices. you can be sure youll find more of what you need
Jameco a click or call. We offer the lowest prices at Jameco.
youll find from any major catalog distributor Jameco is a 30-year-old full line catalog distributor
including Digi-Key, Newark, Allied and Mouser. of electronic components. Over 99% of our products

Jameco. Great Products, Awesome Prices!

Click or call today for a FREE Jameco Catalog Visit www.Jameco.com/SR7


and start benefiting from Jamecos Awesome Prices! Call 1-800-831-4242
Cover.qxd 1/12/2006 5:45 PM Page 84

Vol. 4 No. 2
SERVO MAGAZINE
Parallaxs new HB-25 Motor Controller is our single best
solution for DC motor control. This module is dependable, and
highly-compatible with BASIC Stamp microcontrollers. The
HB-25 has the following specications:

Motor Size: 0.5 HP Max No Minimum


Motor Supply: 6.0 VDC min 16.0 VDC max

ROBOT SOCCER CHAMPION LASER POINTER ROBOSAPIEN V2 SERVO CONTROL


Logic Supply: N/A Internal Regulator
Load Current: 25A Continuous 35A Surge (13.8v)
Standby Current: 50 mA @ 6v 80mA @ 13.8v (fan on)
PWM Frequency: 9.2 KHz
Pulse Input: 1.0ms Full Reverse, 1.5ms Neutral (Off),
2.0ms Full Forward
Pulse Refresh Rate: N/A - Single Pulse Operation
Modes: Single/Dual Motor Control
Protection Circuits: Over Voltage, Over Current, Over Temp.
Fault Reset: Automatic
Indicators: Power (Green), Fault (Red)
Fuse: Mini ATC Standard
Cooling: Forced Air Ball Bearing Fan
Terminals: Screw Post with 35A Rating
Weight: 2.5oz (71 grams)
Size: 1.6 x 1.6 x 1.9
Mounting: 2ea 6-32 screws on .800 centers
Included: Fuses (5A, 10A, 15A, 25A), Terminal Lugs (4)

The HB-25 has these additional special features:


Single pulse required to set motor speed.
A single BASIC Stamp port can control two HB-25s.
On-board fuse and full rating terminal lugs.
Works with any size motor up to 1/2 HP.
Contains both H-Bridge and Controller.
Connector allows you to daisy chain two HB-25s.
Februar y 2006
Order online at www.parallax.com or call $5.50 CANADA $9.25
February 2006

U.S.
our sales deartment toll-free 888-512-1024 0 2>
(Mon-Fri, 7am-5pm, Pacic Time).

BASIC Stamp is a registered trademark of Parallax, Inc.


0 74470 58285 4
www.servomagazine.com

Potrebbero piacerti anche