You are on page 1of 84

Cover.

qxd 4/7/2005 2:24 PM Page 84

Vol. 3 No. 5
SERVO MAGAZINE
ROBOTS TO THE RESCUE
MAY 2005

U.S.

Circle #40 on the Reader Service Card.


CoverInside.qxd 4/5/2005 7:55 PM Page 2

Remember when...
...electronics stores were stocked to the rafters

with every component imaginable and there was ALWAYS


a knowledgeable person there to help you?

Think those days are gone?


Great Products. Awesome Prices.
Well they’re not!
1.800.831.4242
You just need Jameco!
Call for a FREE 256-page catalog today.

We have the electronic components and knowledgeable


Technical Support people who can help bring back the fun
in your electronics hobbies, inventions, and DIY projects.

Circle #36 on the Reader Service Card.

Be sure to visit our new website at Jameco Electronics


www.Jameco.com/nvd —where electronics is still fun!
Circle #37 on the Reader Service Card.
Full Page.qxd 4/7/2005 9:53 AM Page 3

Circle #35 on
the Reader Service Card.
TOCMay05.qxd 4/7/2005 2:33 PM Page 4

SERVO
Features & Projects
28 Trust in Their ... Programming
Five Robots That Can Save Your Life

36 Error-Proof Your Workbench


Part 2: Common Errors in Building Robots

42 Reusable Software Components


Part 4: Behavior Control

48 Real Combat Robotics


The SWORD Robot

51 A Hobby CNC Machine


Part 2: Electronics, Interfacing, and Cutting

56 Visions of Boe-Bots
48
Add an LCD to Your Boe-Bot

On The Cover
22
ROBONAUT — One of the
five robots covered in this
issue that is helping to keep
humans out of harm’s way.

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 16826, North
Hollywood, CA 91615-9213 or Station A, P.O. Box 54,Windsor ON N9A 6J5; cpcreturns@servomagazine.com
TOCMay05.qxd 4/7/2005 2:34 PM Page 5

5.2005 VOL. 3 NO. 5

Departments Columns
6 Mind/Iron 12 Robytes
The Philosophy behind Tetsujin 2005 News from the Robotics World
7 Bio-Feedback 14 GeerHead
Where You Have a Voice The RoboX Tour Guide
8 New Products 18 Rubberbands
The Latest Development Software Charging Ni-Cd and NIMH Batteries
55 Robotics Showcase 22 Twin Tweaks
Get What You Need Quick Prepare For the (Robosapien) Swarm
62 SERVO Bookstore 64 Robotics Resources
Feed Your Brain All About Gears
72 Brain Matrix 74 Ask Mr. Roboto
Reversible Electronic Speed Controllers Your Problems Solved Here
78 Events Calendar 79 Appetizer
Find a Show Near You It All Starts With a Bright Idea
80 Robo-Links 82 Then and Now
Your Link to Parts and Services A Look Back at the Tomy Omnibot
81 Advertiser’s Index
A List of Supporting Advertisers

Coming 6.2005

Tune in next month for coverage


of Japan’s new Palette
mannequin robot. Beautiful
and deceptive, Palette moves
in response to consumers as
it displays its fashionable
adornments while collecting
marketing data on you!
Mind-FeedbMay05.qxd 4/7/2005 3:28 PM Page 6

Published Monthly By
The TechTrax Group — A Division Of
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 Dan Danknick ΠSubscriptions


Toll-Free 1-877-525-2539
Local 1-818-487-4545
Engineers love a challenge. also lend themselves easily to 3D P.O. Box 16826
Whether it is calculating the best way simulation. North Hollywood, CA 91615-9213
to transmit motor torque in a The reaction to last year’s Tetsujin
machine, determine the response event was incredible. It received great PUBLISHER
frequency of a control system, or coverage in magazines, websites, and Larry Lemieux
effectively order drinks for a dinner blogs around the world. If there is publisher@servomagazine.com
party, each of these tasks ultimately one overriding theme I sensed
become an exercise in optimization. throughout, it was the excitement ASSOCIATE PUBLISHER/
Once a person leaves school to work that people had for the competitors. VP OF SALES/MARKETING
in the “real world,” it doesn’t take How often do you get to witness Robin Lemieux
long to discover there is never the beginning of a technology leap display@servomagazine.com
enough time, money, or manpower from the pages of science fiction
for most projects. For most of my and into reality? (Not to mention, CIRCULATION DIRECTOR
colleagues, solving a particular walk up and enjoy a technical Mary Descaro
problem isn’t as much fun as solving discussion with the people causing the subscribe@servomagazine.com
it well. leap!)
WEB CONTENT/STORE
In last month’s issue, the Are you looking for a fun project
Michael Kaudze
framework of SERVO Magazine’s to turn your mind loose on this
sales@servomagazine.com
second exoskeletal competition — summer? If so, Tetsujin 2005 is
Tetsujin 2005 — was announced on where you want to be. Start getting PRODUCTION/GRAPHICS
Page 76. Steve Judd and I worked your team together and put those Shannon Lemieux
quite a while on adding some new “blue sky” ideas down on paper. If
twists to this year’s event, with a you’re a student, talk to an instructor STAFF
couple of goals in mind. in your engineering department to Dawn Saladino
First, we wanted to offer some get some resources — both technical
new and interesting challenges — and monetary. Just like the OUR PET ROBOTS
namely, the Walking Race and DARPA Grand Challenge, Tetsujin is Guido
Cylinder Stacking. And secondly, we the kind of event you will only Mifune
wanted to craft new challenges that emerge from with a greater
could embody existing exosuit work understanding of how to build things Copyright 2005 by
already underway in the world — that work. T & L Publications, Inc.
augmented walking and augmented As well, you’ll get the chance to All Rights Reserved
dexterity. demonstrate that you are a doer
Greek philosophers were fond to and not just an observer. This worked All advertising is subject to publisher's approval.
point out that amongst the gods, well for 2004 competitor Bryan We are not responsible for mistakes, misprints,
or typographical errors. SERVO Magazine
strength without control was Hood, a high school junior from
assumes no responsibility for the availability or
useless. Thus, both of the new Florida, that built his chromoly
condition of advertised items or for the honesty
challenges focus more on controlling exosuit in his garage. After his first
of the advertiser.The publisher makes no claims
the enhanced strength framework lift, he was met back in his pit area for the legality of any item advertised in SERVO.
than on the raw amount of strength. by iRobot cofounder Helen Greiner, This is the sole responsibility of the advertiser.
And for many engineers, this is a who offered him a summer Advertisers and their agencies agree to
more approachable problem — internship! So download and study indemnify and protect the publisher from any
software and electronics are easier those rules – and we’ll see you in and all claims, action, or expense arising from
than welding and machining. They October! advertising placed in SERVO. Please send all
editorial correspondence, UPS, overnight mail,
and artwork to: 430 Princeland Court,
Corona, CA 92879.

6 SERVO 05.2005
Mind-FeedbMay05.qxd 4/7/2005 3:29 PM Page 7

Dear SERVO: Dear SERVO:


I randomly came across your I love the magazine and would
magazine at a surplus electronics store like to see articles on the First Lego
last summer and have looked forward League (FLL). I am actively involved
to and enjoyed every issue since. It is with it and use the Robolab
great to see our field growing. programming language. I would
Great article in your April 2005 hope to see some articles on it.
issue, “Neural Networks 101.” Finally, I Kevin Wenger
have read a reasonable description of via Internet
how ANNs work. I admit that it lost me
on the Sigmoid equations. Dear SERVO:
However, it has compelled me to I would like to see less of
ask: Is it possible that some derivative commercial robotics and more of
of an MLP ANN be written in Basic and hobby robotics. If I want info on
wedged into a Stamp or Atom? If so, current commercial robotics, I can
could there be some sample code out get it from other places. I prefer to
there? If so, could you publish it? If see hobby robotics in this magazine.
not, then perhaps an article on a I like the variety of articles,
self- teaching program. Thanks for your although I feel more variety could be
good work! incorporated by not doing long
Norm — Satisfied Subscriber string articles — better to have a
via Internet greater variety than concentrating on
one thing for multiple magazines.
We now have updated URLs for the I enjoyed very much the general
RoboCoaster G2 that was covered in the article on starting robotics written in
GeerHead column in the April 05 issue. the April 2005 magazine, but since it
Check out the ride at: was not written on my level, I feel it
When he’s not helping out
www.kuka.com/en/products/systems wasn't much use to me. Such articles with crime prevention
/robocoaster/start.htm on higher levels I feel would be programs in Arizona,
great. Ron Palmer’s creative
www.robocoaster.com/english creation keeps up-to-date
/index2.html
Nathaniel Barshay with his SERVO magazines.
via Internet

Circle #71 on the Reader Service Card.


SERVO 05.2005 7
NewProductsMay05.qxd 4/6/2005 3:09 PM Page 8

New Products

New Products
DEVELOPMENT SOFTWARE PIC Programming Made Easy

Robot Control Software R 4 Systems is now an author-


ized reseller of PICBASIC
Proton Development Suite. The

E nergid Technologies now has


available version 1.0 of its Actin
toolkit, C++ software for controlling
Development Suite represents a
quantum leap forward in the development of Crownhill’s
PICBASIC product. This Development Suite — incorporat-
and simulating complex robotic mech- ing not only a brand new IDE (Integrated Development
anisms. Based on software developed Environment), but also a Virtual Simulation Environment —
for NASA, Actin provides coordinated has been described as “the very best of breed” solution
control for fixed or mobile robots with for working with the Microchip Technology PICmicro®
up to 100 independent moving parts. The Actin toolkit pro- microcontrollers.
vides libraries for the Windows platform that robotics devel- The Development Suite is suitable for all levels of users,
opers can use to quickly create complex, intelligent control from outright beginner to seasoned professionals, writing
systems. The developer specifies the robot kinematics and commercial applications. The IDE/Compiler will allow you to
desired behavior, and Actin produces algorithms for setting develop your code in a state-of-the-art development environ-
joint positions and rates to achieve specified hand motion. ment, compile your program code and view the resulting
Without Actin, a roboticist would need to first solve assembly language commented with your own program
complex nonlinear differential equations and implement the code. The output of the compiler is 100% Microchip MPASM
solution for real-time operation. In the past, this has prevent- compatible and the resulting Hex file, COD, ERR, and LST files
ed the application of many valuable mechanical designs. can be used with Microchip™ compatible programming tools.
For mechanisms with many moving parts, tasks can be Included with the Development Suite is a fully working,
accomplished in an unlimited number of ways. The human highly acclaimed, Proteus Virtual Simulation Environment.
arm, for example, can position and orient the hand while The Proteus Simulator provides near real time simulation of
retaining freedom of motion in the elbow. Actin takes your code on Virtual Proton Development Boards. Proteus
advantage of this kinematic redundancy to produce intelli- Virtual System Modeling (VSM) combines mixed mode SPICE
gent robotic motion, including collision avoidance, joint limit circuit simulation, animated components, and microproces-
avoidance, minimum motion, and strength optimization. sor models to facilitate co-simulation of complete microcon-
Through a configurable object-oriented design, Actin troller based designs, with step-by-step code execution for
applies to many robot types. It works with fixed-base manip- source level debugging. This makes it possible to develop
ulators, as would be typical for factory automation, and with and test designs before a physical prototype is constructed.
mobile manipulators, as would be appropriate for home The Proton IDE is a professional and powerful visual
entertainment. Actin works with almost any joint type or IDE which has been designed specifically for the Proton
hand type, with a virtually unlimited number of degrees of Plus compiler. Proton IDE accelerates product development
freedom and branching connections. Actin can also be used in a comfortable user environment without compromising
to control mechanisms with self-connecting loops. performance, flexibility, or control. The compiler has
In addition, Actin includes the ability to dynamically enhanced support for I2C, SPI, Dallas 1-wire bus, RS232,
simulate robots, visually render the robots, express control X10, Compact Flash cards, Alphanumeric and Graphics
systems using the Extensible Markup Language (XML), cre- LCDs, and USB interface.
ate XML schemas describing the control-system language, The Proton Development Suite is available at an intro-
communicate control systems over a network, incorporate ductory price of $255.00 (US).
machine vision, and implement force control. For further information, please contact:
For further information, please contact:
1100 Gorham St. Suite 11B-332
R4 Systems Newmarket, Ont.
124 Mount Auburn St. Suite 200 N. Incorporated Canada L3Y 8Y8
Energid Cambridge, MA 02138 Tel: 905•898•0665 Fax: 905•898•0683
Technologies Tel: 888•547•4100 Email: info@r4systems.com
Website: www.energid.com Website: www.r4systems.com
Circle #83 on the Reader Service Card. Circle #99 on the Reader Service Card.

8 SERVO 05.2005
Full Page.qxd 4/5/2005 3:09 PM Page 9

Get a hot deal on ColdHeat

FREE ColdHeat™ Soldering Tool


(a $19.99 value)
With purchase of $20 or more of component parts,
soldering equipment, test equipment or Kronus™ Tools.

Soldering Equipment Kronus Tools Component Parts Test Equipment


11-Piece Soldering Tool Set 55-Piece Home Repair Tool Set 22-Range Fold-Up Pocket Multimeter
64-2803 64-2910 22-820

Must present coupon at time of purchase.

A $19.99
FREE ColdHeat™ Soldering Tool Value
With purchase of $20 or more of component parts, One coupon
soldering equipment, test equipment or Kronus™ Tools. per customer.

RSS Instructions: If the customer purchases $20 or more in Compo-


nent Parts, Test Equipment, Soldering Equipment or Kronus Tools,
use the Price Change key to reduce the price of the ColdHeat
(640-2102) to free. Select Reason Code “7. Promo/Coupon” and
scan the barcode on the coupon.
Valid at participating stores only. May not be used online or by phone. Excludes services and special orders. May not be
combined with certain other discounts. No cash value. No photocopies. Void where prohibited. Offer expires May 31, 2005.

®
VISIT RADIOSHACK.COM OR CALL 1-800-THE-SHACK
California residents: WARNING: These products contain, or when used for soldering and similar applications produce, chemicals known to the State
of California to cause cancer and birth defects (or other reproductive harm).

A_05_00101_r2 1 4/4/05 3:02:49 PM


MenagerieMay05.qxd 4/6/2005 1:42 PM Page 10

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

ETIS Wins First in Robotics


by Randy Weiler
MTSU’s Department of Engineering Technology and Industrial Studies recently added a
national championship in robotics to its mantle of achievements.
Known for its Moonbuggies, concrete industry program, Formula 1 car, and solar bikes,
ETIS had a student team capture first place in the 2004 International Conference on Earth and
Space March 7-10 in Houston. MTSU defeated the other two finalists, the University of Illinois
and Prairie View A&M, for the championship.
“They perfected the robotics system to the extent that NASA may change the require-
ments next time,”said Dr. Ahad Nasab, professor, ETIS. “They have been waiting for a group
to take it to a higher level. NASA will add something to the competition (requirements) next
Photo by J. Intintoli year and make it more challenging.”
CHAMPS — From left, Aaron Five students — seniors Aaron Dudley and Amy Black and sophomore Seth Holland of
Dudley, senior and team captain;
James Barker, senior; alumnus Murfreesboro, senior James Barker of Elizabethton and alumnus Travis Martin of Murfreesboro
Travis Martin; and Amy Black, — were recognized in the Voorhies Industrial Studies building for their roles in leading the team
senior, from ETIS work with their to the national crown.
remote-operated vehicle, the
“Moon Raider” robot, outside
the VIS building. Talon Robots
by Spc. Jonathan Montgomery

Walking i-foot Robot Whenever an Explosive


Ordnance Disposal technician
This two-legged, mountable heads downrange, one thing
robot was developed for three- is certain: the robot goes first.
dimensional mobility, with the ability “The cost of losing a robot
to navigate staircases. The passenger is not nearly as close as losing
climbs on and drives with a joystick. a trained EOD person,” said
The egg-shaped design of the “i- Sgt. 1st Class Gregory Carroll,
foot” that wraps around the passen- noncommissioned officer in
ger is meant to express the dream of charge of the 184th Ordnance
future three-dimensional mobility Battalion, an EOD robotics
and the feelings of safety and reliabil- team from Fort Gillem, GA,
ity upon which that dream is built. deployed to Baghdad.
(Someone should tell them about Tetsujin 2005!) “Time on target is our
biggest danger, and these robots eliminate us from having to
go downrange if we don’t have to,” he said.
Tractor Cutter Since their EOD inception, robotic systems have saved
numerous lives by helping to wipe away the threat of impro-
Graduate Students in Action ... vised explosive devices and vehicle-borne IEDs encountered
daily throughout the Iraqi theater of operations.
Not surprisingly, 95 percent of all EOD robots are used for
reconnaissance missions and delivering explosives to the haz-
ard for detonation, said Carroll.
Photos by Carolyn Mitkowski
These “man-portable” robots, initially employed by
NC State University infantry units for advance scouting purposes, dually serve as
The Department of Biological multi-versatile, lightweight machines supplementing EOD
and Agricultural Engineering teams on the roads of Iraq.

10 SERVO 05.2005
Tetsujin2005Ad.qxd 4/7/2005 3:36 PM Page 11

Y es exo-fans,Tetsujin is back for a second action-packed year! Once


again, we'll be part of the giant RoboNexus Conference — which
will be twice as large as last year.To "suit" the quickly-evolving work in
strength augmentation, we've expanded the challenges for Tetsujin 2005.
Now you have three ways to showcase your work:

challenge 1:
Weightlifting. Ascend stairs in your suit to the lifting
platform and lift a load of from 100 to 1,000 lbs* from a
squatting position to a height of at least 24 inches*, return
the load to the ground in a controlled manner, and
descend the stairs. Stair-climbing may be unpowered. The
winner is the competitor who lifts the most weight.

challenge 2:
Dexterity. Stack nine concrete cylinders weighing about
70 pounds each in a 4-3-2 vertical arrangement, but don't
knock them over as the pyramid grows! The winner is the
competitor who arranges the cylinders in the shortest
time.

challenge 3:
Walking Race. Walk the 100 foot* long U-shaped
challenge course, stepping over a small obstacle at the
half-way point.The shortest time wins, with a time bonus
being granted based on any auxillary load carried.Walking
must be powered.

The current rule set is available online at


www.servomagazine.com/tetsujin
and questions can be directed to
Tetsujin2005@gmail.com
Start planning NOW so you can be a part of the largest
"exo-games" event of the year — Tetsujin 2005!
*Specifics of the competition are in a tentative state and may be subject to change.
Robytes.qxd 4/5/2005 8:57 AM Page 12

Robytes by Jeff Eckert


re you an avid Internet surfer weighs in at 1,944 pounds and meas-
A who came across something
cool that we all need to see? Are
ures eight feet square. It can travel up
to 20 inches per second and deploy a
you on an interesting R&D group variety of instruments. The current
and want to share what you’re incarnation of Nomad includes a wind
developing? Then send me an turbine, allowing researchers to weigh
email! To submit related press the merits of combined solar and wind
releases and news items, please energy to help power the device.
visit www.jkeckert.com Previously controlled via telecommuni-
cations, it has now been fitted with
sensors and computing capabilities
— Jeff Eckert
to expand its ability to navigate Researchers have adapted a commer-
autonomously. cial robot for their experiments with
cockroach-inspired technology. Here,
Exploring Antarctica At last report, Nomad was the robot uses an early version of the
deployed on New Hampshire’s frozen antenna to “feel” its way along a wall.
Lake Mascoma, which adequately sim- Photo courtesy of Will Kirk.
ulates the Antarctic plateau, where it
successfully migrated across 10 km of student at Johns Hopkins University
ice and snow. (www.jhu.edu), decided a couple
For the actual expedition, years ago to see if a robot can be
researchers at the University of taught to navigate like a cockroach.
Oklahoma are developing an ice cor- The work is important because most
ing and sampling device, and others at robotic vehicles that are sent into dan-
the University of California, Berkeley, gerous locations rely on vision or sonar
are working on a fluorescence spec- to find a safe path.
trometer that Nomad will use to iden- Since robotic eyes don’t operate
tify and quantify microorganisms in well in low light, and sonar systems
the ice. The project is supported by a can be confused by polished surfaces,
$400,000.00 grant from NASA. For the solution was a flexible, sensor-
details, visit www.frc.ri.cmu.edu/ laden antenna. It is used to guide the
projects/lorax/ robot on its journey along walls and
around corners and obstacles.
An early version showed promise,
The Nomad robot is slated to conduct so Loh recently fabricated a more
survey traverses of the Atlantic ice Robot Imitates Cockroach advanced version. The new one is
sheet. Photo courtesy of Carnegie
Mellon University Robotics Center. made of cast urethane encased in a
clear plastic sheath. Embedded in the
In 1997, it covered 220 km urethane are six strain gauges that
through the Atacama Desert in Chile. change resistance as they are bent.
In 2000, it discovered and classified “We’ve calibrated the antenna so that
five meteorites in Antarctica. Now, certain voltages correspond to certain
Carnegie Mellon University’s robotic bending angles that occur as the
rover, Nomad, is being upgraded and antenna touches the wall or some
field tested in preparation for a return other object,” Loh said.
to the Antarctic as part of the Life on Johns Hopkins student Owen Loh This data is fed to the robot’s
Ice: Robotic Antarctic Explorer developed this advanced cockroach- controller, enabling it to sense its
inspired robot antenna, equipped with
(LORAX) project, which is designed to six strain-gauge sensors that change position in relation to the wall and to
measure the distribution of microor- resistance as they are bent. maneuver around obstacles. When
ganisms in the near-surface Antarctic Photo courtesy of Will Kirk. the antenna signals to the robot that
ice plateau. it is veering too close to the wall, the
Nomad is no miniaturized There’s nothing new about robots controller steers it away. It is believed
machine: the gasoline-powered device that look like bugs, but Owen Loh, a that the cockroach-inspired anten-

12 SERVO 05.2005
Robytes.qxd 4/5/2005 8:58 AM Page 13

Robytes

nae could eventually provide a new MobileEyes, a standard interface for


generation of robots with enhanced robots and automated guided vehicles
ability to move safely through dark (AGVs). According to the company, it
and hazardous locations, such as is a single, modifiable graphical user
smoke-filled rooms strewn with interface (GUI) that is applicable to
debris. And, presumably, it could nearly any point-to-point automation
allow them to locate cookies in your application, including materials han-
pantry. dling, remote sensing, security surveil-
lance, visitor guidance, and asset
tracking.
The robot’s progress is displayed The Little Dog weighs less than seven
Universal Interface for through a floor plan that it creates, pounds. Photo courtesy of DARPA.
Bots, AGVs and cameras, sensors, and other
accessories can communicate through pick up a cool $600,000.00 to
the MobileEyes interface. Users can $800,000.00 (and perhaps double
also converse with people along the that), you may be interested in a grant
route, play audio files, and perform opportunity being offered by the
other various and sundry chores. Defense Advanced Research Projects
The robots are controlled via PCs from Agency (DARPA). The project, dubbed
anywhere in the enterprise, and com- “Learning Locomotion,” is aimed at
munication is protected by encrypted developing a new generation of learn-
passwords. ing algorithms “that enable traversal of
The interface is compatible with large, irregular obstacles by unmanned
any robot that employs the vehicles.”
Automated Robot Control System Apparently, current battlefield
(ARCS), which is designed for use by robots are insufficiently capable of
third-party robot and AGV developers moving over such obstacles, and a
The MobileEyes interface provides a as well as MobileRobots’ own great deal more agility is needed.
GUI for nearly any point-to-point
automation application, including the platforms. Details are available at If you receive one of the grants,
company’s PatrolBot pictured above. www.MobileRobots.com/Mobile you will have 15 months in Phase I to
Photo courtesy of MobileRobots.com. Eyes.html get Little Dog to adeptly maneuver
over a board with terrain features built
Maybe you’ve settled into a cushy, into it. The mechanical canine (which
minimum-wage job as a security guard has four legs, three actuators per leg,
or tour guide and think you have
And Your Little Dog, Too and a total weight of less than seven
achieved a certain level of job security. pounds) will have to travel 0.6 times its
In theory, you could be replaced by a leg length per second and surmount
robot. However, in practice, industrial an obstacle with a height of 0.9 times
robots aren’t cheap, and the hardware the leg length.
is just the beginning. Programming a If successful, you may be able to
bot is time-consuming and expensive, proceed to Phase II, which offers simi-
and your employer may not have lar funding. Proposals must be
the resources or resolve to undertake received by March 1 of next year, so
such a project. But the folks at get moving.
MobileRobots.com have introduced a For details, visit www.fedgra
product that is aimed at changing nts.gov/Applicants/DOD/DARPA/
things. CMO/BAA05-25/listing.html click on
In the past, robot users generally The Little Dog Locomotion Platform. “Learning Locomotion,” and download
have needed to develop or buy custom Photo courtesy of DARPA. the Proposer Information Pamphlet
software for each application, but (PIP). (Thanks to Alex McNair for the
MobileRobots.com (formerly known as If you have some solid expertise in tip.) SV
ActivMedia Robotics) has introduced robot locomotion and would like to

SERVO 05.2005 13
Geerhead.qxd 4/5/2005 8:50 AM Page 14

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

RoboX — Tour-Guide Robot


“The Name’s X, RoboX, and I’ll be Your
Guide for Today ... ”

The robot’s friendly appearance, mimicked facial responses, and intuitive behavior set
Expo visitors quickly at ease, but RoboX creators were uncertain how attendees might
react to their jovial metallic ambassador. In addition to considering the safety of
patrons, the robot’s durability against unwelcome responses also had to be weighed.

ot your average bag of bolts, full production. Expo visitors quickly at ease. In addition
N RoboX is yet another great exam-
ple of robotics designed for intimate
As with the RoboCoaster featured
on these pages in the previous issue,
to considering the safety of patrons,
the robot’s own safety and durability
interaction with you and me. RoboX’s safety and reliability had to be against unwelcome responses had to
As a totally autonomous, magnifi- assured to receive approval for use with be weighed.
cently mobile, and social robot, RoboX the public.
is well suited to its primary task, having At the Expo, the robot responded Standards
first appeared as a tour guide for the to crowds in the hundreds and in close
Expo 02 robot exhibition held in proximity. For many attendees, this Most mobile robots that work in
Switzerland. was their first encounter with any close quarters with people only need
The Autonomous Systems Lab of robot, let alone one so advanced and to meet the standards set for a tempo-
the Swiss Federal Institute of human-like. rary, limited-demonstration robot. The
Technology, in conjunction with a RoboX creators were uncertain RoboX project had to be proven to the
spin-off company, BlueBotics SA, devel- how people would react to their jovial industry and had to meet top
oped RoboX. BlueBotics is in charge of metallic ambassador, but the robot’s standards so that it could work the
friendly appearance, mimicked facial 12-hour days the Expo would require
The X displayed by the LED matrix responses, and intuitive behavior set of it. On top of that, it had to be
in RoboX’s right eye, in combination functional every single day for a full
with the positioning of his eyebrow,
help communicate what his creators By displaying a question mark in his five months!
at BlueBotics refer to as an LED matrix eye, RoboX creates an
expression of surprise.
“angry yet nice” emotion.
Dimensions
RoboX stands 1.65 meters in
height, which equates to about five-
and-a-half-feet tall, and is 0.90 meters
in diameter, or about three feet
around. It weighs about 250 pounds.

A Song and Dance


Man?
Though RoboX is no song and
dance bot, it can easily be pro-
grammed for complex movements,
interaction, and tour sequences.
14 SERVO 05.2005
Geerhead.qxd 4/5/2005 8:53 AM Page 15

GEERHEAD

RoboX speaks English, German,


French, and Italian, and it even plays
music for its audiences.
RoboX asks questions of his visi-
tors, which can be answered with the
press of one of his colored buttons.
RoboX has eyes and eyebrows with
which to demonstrate his broad range
of emotions. An LED matrix in the
robot’s right eye aids communications
by presenting animations and icons,
such as a question mark to show sur-
prise, an “X” for an irritated blink, or a
small dot to express loneliness.
RoboX can see you, follow you,
and avoid you with the help of his eye
sensors. He can sense your presence
and track you with his laser scanner.
He knows where he is each step
(wheel turn, actually) of the way
through the tour, and where he needs
to go next.
Even while mingling in large Four onlookers examine RoboX from Here you have a good head-on shot
crowds and in tight areas, RoboX the front as we get a look at his “aft,” of the robot’s facial expression
so to speak. Notice the robot’s large technologies, speakers, push-button
won’t misstep or bump into you or base, motor area, main shaft, and response pad, shaft, base, and
objects in his path. His foam bumpers, connections to its sensors. tactile plates used in sensing.
tactile plates, and a redundant control
system insure a smooth tour for RoboX in heavily crowded rooms? RoboX was several state-of-the-art algorithms,
and his guests. programmed so that he is well able to RoboX can find a collision-free
move around in his intended environ- trajectory even in very crowded
How Does He Do ment. Using his laser sensor, he sees environments.
That? his surroundings and takes measure- RoboX can be reprogrammed for
ments of all that’s around him. With different tasks or environments. How
What makes him function so well this information and a combination of so? For new areas, he simply creates a

ROBOTS RECEIVE WARM RECEPTION


Visitors to the Expo 02 responded interact with the robot? uted. Responses demonstrated overall
to RoboX’s questions by selecting one rankings of the bots and the event as
of four colored buttons on the robot’s 5. How do you rate the speech recogni- either very good (20 percent of respon-
angled, diamond-shaped pad. This tion (only on two robots)? dents), good (51 percent), acceptable
afforded BlueBotics a survey of the (26 percent), and bad (only three
quality of the exposition and of several 6. Which sensor is used by the robot in percent) with no significant variation.
of RoboX’s modalities. order to navigate? Visitors perceived the robots and
Here are the questions that RoboX the entire exposition as a whole as one
posed: 7. How many exhibits did you visit? experience during their stay. Two hun-
dred and seven attendees were
1. How do you rate the robot’s physical 8. Which exhibits did you visit? queried. Remember, many of these folks
appearance? had never encountered a robot before,
9. How do you rate the quality of the let alone socialized with one or trusted
2. How do you rate the robot’s overall presentation? it to be their guide.
character? In contrast to normal visitors, the
10. Would you prefer a normal informa- long-term staff members considered the
3. How good is the robot’s synthesized tion desk or an interactive robot? robots an ensemble of different compo-
speech? nents, probably an effect of longer
Independent of the question’s exposure to them. The visitors, however,
4. How did you understand how to subject, the results were equally distrib- seemed to have personified RoboX.

SERVO 05.2005 15
Geerhead.qxd 4/5/2005 8:55 AM Page 16

GEERHEAD

If You Get to See visitors through the exhibit from the


industrial robots to the cyborgs.
RoboX Someday ... This event was the largest installa-
Look for his intuitive nature. Listen tion of autonomous mobile interacting
to him, look at his eyes, answer his robots that has ever been offered to
questions using the colored buttons on the public. The project required thou-
his diamond shaped pad, and follow sands of hours of operation of the
him when he asks you to. robots, which afforded the engineers
BlueBotics had a contract to the opportunity to examine and
export a RoboX to China, and for the improve RoboX’s hardware and
project, they were to extend and software in ways not possible in
upgrade the speech capabilities of the smaller projects.
robot to Chinese. However, they were For example, during the Expo,
unable to achieve these extended some errors appeared after only a few
speech capabilities. No other upgrades days, while others didn’t appear for the
have been made or are slated for first time until after a couple of
RoboX at this time. months. The laser scanners failed dur-
ing Week Five of the Expo, due to the
True Bot Tales temperature in the exhibit. Once the
robot received its last available scan
Eleven RoboX were deployed in all before failure, it ran into the next
at the Expo 02. The Swiss National unscanned object rather than shutting
Several RoboX wait in line until called on Exhibition included a section for robot- down. This was an important safety
for duty. The side angle views afford a ics and took place in Neuchatel, and security issue.
good look at the cabling and the four
button interface on the robot tour Switzerland — a lovely country setting
guides’ diamond-shaped pads. with vineyards surrounding a narrow Curious Roboticists
lake with the same name. Want to Know
suitable map of the environment. Then The theme of the exhibition was,
he can make use of BlueBotics scenario “the natural and the artificial,” and the RoboX is a reference work in
program that allows the programming intent was to demonstrate the increas- advanced mobile robotics. Roboticists
of dedicated sequences the robot ing proximity between man and who experience RoboX are fascinated
will move through within the given machine in the world in which we live. with him and respect what this product
environment. The RoboX tour-guide robots led design has achieved. He has even
become a reference work for industrial
applications.

RoboX Public Debuts


Where can we see RoboX in oper-
ation in the US or around the world?
Since the first big exhibition in 2002
(the Expo), RoboX has been rented out
for much shorter events like trade fairs
and other interactive events. A poten-
tial customer has appeared, which may
order a fixed installation of RoboX for a
museum in Dundee (UK). SV

RESOURCES
RoboX Home Page
www.bluebotics.com/entertainment/
RoboX

Link to much more RoboX info


http://robotics.epfl.ch

Circle #41 on the Reader Service Card.


16 SERVO 05.2005
Full Page.qxd 4/5/2005 8:02 PM Page 17

USB Oscilloscope & Logic Analyzer


The new generation Scope
for the age of microelectronics.
8 Channel 40MS/s Logic Analyzer

 $295
Capture digital signals down to 25nS
with arbitrary trigger patterns.

3 Input 100MHz Analog DSO

 Classic Analog Scope using a standard


x1/x10 BNC probe. Additional inputs on the
POD for dual channel operation.

8 + 1 Mixed Signal Scope

 True MSO to capture an analog waveform


time-synchronized with an 8 channel logic
pattern triggered from any source.
Turn your PC or NoteBook into a powerful Scope and Logic Analyzer!
See inside your circuit in the analog and digital domains at the same time to
Real-Time Spectrum Analyzer make tracking down those elusive real-time bugs much easier.


See the spectrum and waveform of analog
signals simultaneously and in real-time Pocket Analyzer combines a high speed sample-synchronized storage scope
and logic analyzer with a programmable waveform and logic pattern generator.
Also included is an integrated real-time spectrum analyzer and powered "Smart
Waveform Generator POD" expansion interface so you've got all bases covered!
 Load up to 32K arbitrary waveform and replay
via the onboard DAC (10MS/s) or a digital About the same size and weight as a Pocket PC, this USB powered BitScope
pattern from the POD (40MS/s) needs no bulky accessories. It's the perfect low cost "go anywhere" test and
debug solution.

Standard 1M/20pF BNC Input BitScope "Smart POD" Connector BUS Powered USB 2.0 Device External/Passthru Power Supply
200uV-20V/div with x10 probe 8 logic channels, 2 analog channels Single USB cable to your PC Auto senses an external supply -
S/W select AC/DC coupling Dual channel capture from POD A/B Compressed data transmission removes power load from USB
S/W select 50ohm termination Async serial I/O for external control Simple ASCII control protocol for use with unpowered hubs.
Arbitrary Waveform Generator Logic Pattern generator 32K 40MS/s BitScope Scripting Language Supplies up to 500mA via POD

BitScope and your PC provide an array of Virtual Instruments

• R&D

• Education

• Robotics

• Lab Scope

• Fast DAQ

• Service

• Debug

BitScope Pocket Analyzer uses highly integrated Surface Mount


technology to provide functionality you would expect from scopes
many times the size and price. Its programmable Virtual Machine
architecture means new functionality can be added via software.
For custom Data Acquisition, export directly to your spreadsheet.

BitScope DSO 1.2 software for Windows and Linux www.bitscope.com


Rubberbands.qxd 4/5/2005 8:41 AM Page 18

by Jack Buffington

You’ll Get a Charge Out of This!


How to Charge Ni-Cd and
NIMH Batteries

Ifwhile,
you have been playing around with hobby robotics for a
you’ve probably noticed that you tend to go
because of its high-energy density. Lithium polymer is an
exciting battery technology due to its high-energy density, its
through batteries fairly often. If that’s true, now might be light weight, and its ability to supply high currents. This
the time to think about using rechargeable batteries in your column will focus on Ni-Cd and NIMH batteries because they
projects. In the past, rechargeable batteries were poor sub- are readily available at local stores, and they charge in a
stitutes for alkaline batteries. A reason for this was that similar manner.
rechargeable batteries had only a fraction of the capacity of Please note that the other rechargeable battery types do
alkaline batteries. These days, rechargeable batteries that not charge by the same methods, and you should not
are packaged in standard sizes, such as AA or C sizes, are attempt to charge them using the method described here.
still not up to the capacity of alkaline batteries, but they are While alkaline batteries supply roughly 1.5 volts when
pretty close. they are new, Ni-Cd and NIMH batteries will supply around
Rechargeable batteries used to have a “memory effect,” 1.2 volts when they are freshly charged. Sometimes this pre-
where they would lose capacity if they were not completely vents them from being a direct substitute for alkaline batter-
drained before recharging. Modern rechargeable batteries ies, but in most cases, the voltage difference won’t matter.
don’t have this problem, so you have a lot more flexibility to Another interesting thing about Ni-Cd and NIMH batteries is
charge them when you want/need to. that, after an initial drop in their voltage when they are first
There are several types of rechargeable battery, such as used, they remain relatively stable until they finally have a
lithium ion, lithium polymer, nickel cadmium (Ni-Cd), nickel steep drop in voltage at the end of their life. By comparison,
metal hydride (NIMH), and lead acid. Lead acid technology alkaline batteries steadily drop in voltage as they are being
has been around for decades and is a reliable and easy-to-use used. Figure 1 and Figure 2 show discharge graphs for these
battery. Lithium ion is used in many cell phones and laptops batteries.
Charging NIMH and Ni-Cd batteries is fairly easy.
Figure 1. Discharge graph of an alkaline battery. There are a few strategies that manufacturers take to
charge them. The first way that is used is to simply
connect the battery to a wall adapter and instruct the
user to remove the battery after a certain length of time.
This is probably the most common method used for
low-end products, because it also happens to be the
least expensive.
There are a few problems with this method.
The first is that it can reduce the battery life if the
user leaves the battery connected too long. The second
reason is that this charge method cannot be very fast.
The manufacturer has to keep the charge current low so
that if the user leaves the battery on the charger for a
long time, it might go bad but it won’t leak fluids or
overheat. To partially prevent these problems, some
chargers incorporate a timer that will stop the charge
cycle after a certain amount of time has elapsed. This is
also a minimal cost solution but provides a safer method
of charging batteries.
18 SERVO 05.2005
Rubberbands.qxd 4/5/2005 8:44 AM Page 19

Rubberbands and Bailing Wire

The final method of charging these batteries is


called peak charging. This method of charging takes
advantage of the fact that NIMH and Ni-Cd batteries will
rise in voltage as they are being charged. When they
have reached maximum charge, they will level off
and then decrease in voltage. A peak charger detects
this decrease in voltage and turns off the charger at
that point.
This column describes how you can build your own
peak charger. The first thing that you need to realize is
that the battery or battery pack will reach voltages high-
er than the voltage arrived at by multiplying the number
of cells by 1.2 volts. Unless you are using a DC-to-DC con-
verter to regulate the current going into your battery, it
would be wise to pick a wall adapter that can output
between 150 to 200 percent of the full battery voltage,
otherwise your charge current won’t be sufficient for
faster charge rates.
The recommended method of charging these batter- Figure 2. Discharge graph of an NIMH battery.
ies is to hold the current constant and let the charge volt-
age vary. Fortunately, this is easy to do using a LM317 When you sample the battery voltage, you will actually
adjustable-voltage regulator. Simply wire it up as shown in need to take several samples that you can average together
Figure 3. to get the actual voltage of the battery. Alternately, you
Varying the value of the resistor will vary the amount of could put an extremely low pass filter on the analog-to-
current that you allow to pass. This resistor will need to be a digital input pin so that the ripple effect would be averaged
fairly hefty resistor, unless you are charging a pretty small out in the hardware. If you don’t do this sort of filtering,
battery or you want a low-charging current. This resistor will what will happen is that your charger will prematurely stop
likely be something in the range of one to 20 ohms, depend- charging when it happens to sample a voltage peak and
ing on your application. then later samples at a low point in the voltage ripple. If you
To give this charger some smarts, you will need to add a make sure to average over the length of 1/60th of a second,
microcontroller; any microcontroller that has an analog-to- or a multiple of that, then you will avoid this premature
digital converter will work. The basic structure of the pro- charge-cycle termination.
gram will be that it will start charging the battery and, at reg- If you look at Figure 5, you will see a graph of what hap-
ular intervals, will read the battery voltage using its analog- pens if you just feed constant current to a Ni-Cd battery pack
to-digital converter. It will track this voltage, and if it is high- but don’t cut off the charge cycle. You can see that at the
er than any previous reading, it will store this value. If the cur- beginning of the charge cycle, the battery’s voltage will
rent reading is less than a certain value (below the highest slowly rise. As it nears completion of the charge cycle, it will
previous reading), then the charger will stop charging the rise quicker until it peaks at its highest voltage. After the
battery.
This is a pretty easy process, but there is one TECH TIDBIT
small issue that you need to be aware of. Any wall
adapter that you use, unless it is regulated, will Prototyping on a breadboard can create some awfully messy
have some voltage ripple in its output, which will wiring that can be quite fragile. Wires can come loose from where
introduce ripple into your battery voltage readings. they are supposed to be fairly easily. Breadboards also are not a
good permanent solution for keeping your circuit over the long-
Figure 3. Current limiting using an LM317. term. One way to prototype your designs in a much more durable
manner that only takes slightly longer is called point-to-point
wiring. Simply take the same
parts that you would use on a
breadboard and solder them to
a circuit board that has uncon-
nected solder pads on the back.
Then use wire-wrapping wire to
connect the proper leads
together.

SERVO 05.2005 19
Rubberbands.qxd 4/5/2005 8:46 AM Page 20

Rubberbands and Bailing Wire

charging for some other reason. These are easy enough to


implement, so it is worth taking the extra time to add them
if you are going to go to the trouble to make your own peak
charger. The first situation is if your battery, for some reason,
never peaks. You can do a few charge cycles using complete-
ly dead batteries to see how long they take to charge. If
you design your charger so that it will turn off the charge
after the batteries have been charging for a little longer
than is required for a full charge, then it would make your
charger safer.
Another way that you can make your charger safer is to
make it shut off if the batteries become too hot. You can
measure the battery temperature using a thermistor and a
resistor connected together to form a voltage divider as
shown in Figure 7. With this setup, if the thermistor goes
down in resistance, the output voltage will go up, and if the
thermistor goes up in resistance, the output voltage will
Figure 4. Hefty five- and 10-watt resistors are used. go down.
Figure 8 shows a complete charger circuit. In this case,
peak, the battery’s voltage will start to decline. You would- an NPN transistor is used to stop the charge by sinking the
n’t want to keep charging the battery as long as shown adjust pin of the LM317 low. There is a diode in series with
in Figure 5 under normal circumstances. Figure 5 does not the battery to prevent the battery from discharging itself
use any averaging, so you can see the effect of the voltage through the circuit after the charge is complete. This diode
ripple. will change the voltage read by the microprocessor, but that
In Figure 6, there is a graph of a proper battery charge doesn’t matter, since what we really are looking for is the
cycle. In this example, the blue line represents the battery voltage peak.
voltage and the red line represents the peak voltage that was You’ll also notice that there are two voltage dividers.
read. This example has multiple samples averaged over One is the temperature sensor that was discussed before,
approximately 1/30th of a second, which produces a much and the other allows the microcontroller to sense the battery
smoother graph. In this graph, the red line indicates the peak voltage. You would change the values of the resistors in the
measured voltage and the blue line represents the voltage voltage sensor divider to limit the maximum voltage received
measured at the time when the data point was recorded. The by the microcontroller to +five volts.
red line is sometimes above the level of the blue line. This is You might be wondering at what current you should
because the peak-value variable was updated more often charge your batteries. There is no answer that is right for all
than the battery voltage. batteries. Some batteries are made so that they can charge
quickly, while others can’t handle a high-current charge. The
Playing It Safe best way to figure out how much current to use when charg-
ing is to look at your battery’s data sheet to see what the
Detecting the peak of the battery’s voltage is the proper manufacturer says is acceptable.
way of detecting the completion of battery charging. Even Here are a few rules of thumb to go by if you don’t have
still, there are some situations where you may want to stop a data sheet to look at. The first thing that you can do is to
look at how many mil-
Figure 5. Graph of what happens if Figure 6. A good charge cycle. liamp/hours the bat-
constant current is applied to a battery. tery is rated at.
Manufacturers specify
charge rates in terms
of “C.” If you have a
1,200-milliamp/hour
battery and you
charge it at one C,
then you would be
charging it with 1,200
milliamps of current.
A charge rate of one
C is considered to be
a fast charge, and not
20 SERVO 05.2005
Rubberbands.qxd 4/5/2005 8:47 AM Page 21

Rubberbands and Bailing Wire

Figure 7. A thermistor/resistor
voltage divider.

all batteries can handle that. To play it


safe, you might charge your batteries
at 0.5 C.
If you are designing something
where you can’t control the type of
battery being charged, then you
might consider an even lower current.
Another thing to consider is that fast- Figure 8. A complete charger circuit.
charging your batteries decreases
their lives a little bit more than if you were to charge them at charge cycle went well.
a slower rate. If you want the maximum lifetime from your On the plus side, you will be able to design projects that
batteries, you will want to charge them at a rate that is less have a battery embedded inside of them, and if you have a
than their highest charge rate. project where many batteries must be charged simultaneous-
When your battery is done charging, you may want to ly, you won’t have to deplete your wallet buying a bunch of
ensure that it will be at its peak voltage the next time that chargers. SV
you use it. Ni-Cd batteries lose about
10 percent of their capacity per month
after they are charged. :$17(''($/(56$1',03257(56
To prevent this, you can do what is
called a trickle charge. Different data )RU(8523(¶V1R (GXFDWLRQDO 52
sheets say different things about trick- /RZFRVW+REE\
le charges, but typically, a trickle 3&&RQWUROOHU $6852URERWNLW
charge will be between 1/50 C and $FRPSOHWHVRIWZDUHDQG 'HYHORSHGE\'/5 ZZZGOUGH
KDUGZDUHVHWWRFRQWURO 3URJUDPPDEOHLQ&LQFOXGLQJ
1/100 C. At this current level, the WKH2:,029,7URERW /,18;DQG:LQGRZVŠVRIWZDUH
batteries can be continually charged DUPWUDLQHU
without damage. This sort of charge
rate can be achieved by pulse width
modulating the transistor in the charg-
er circuit to give you an average
charging current that is at the level that
you require.
Having the ability to charge your 52%%<53URERWNLW
robot’s batteries without removing (XURSH¶VPRVWDGYDQFHGURERW
them can be quite beneficial some- 0RUHLQIRUPDWLRQ#ZZZFURERWLFVGH
times. Developing a charger’s software
and electronics is a fairly simple task :::$5(;;&20
but can take a long time due to the
need to continually wait to see if the 3OHDVHFRQWDFWXVE\HPDLOLQIR#DUH[[QO
SERVO 05.2005 21
TwinTweaks.qxd 4/5/2005 9:03 AM Page 22

THIS MONTH:

The
Robosapien
Swarm
Cometh

S ERVO Magazine has seen some


great Robosapien hacks, so when
we decided to tweak a
Robosapien, we knew it would have to
Robosapiens in one hack? Outfit them
all with custom weapons for a
Robosapien melee? No! The three
Robosapiens provided us with
Problem Analysis
Swarm robotics has several defin-
ing characteristics, such as cost effi-
be something fresh and unexpected. an opportunity to make a tentative ciency, scalability, robustness, and self-
We were wary about attempting a sin- foray into the emerging field of swarm organization. We will try to connect
gle hack that would be compared to robotics. these concepts to this project as often
the likes of the Surround Sound as possible. While what we create
Robosapien, but suddenly a light bulb The Robosapien might not abide by all of the parame-
went on. We both have our own ters that define swarm robots, it will be
Robosapiens in addition to the one pro- What is there to be said about the a model of swarm robots and signifi-
vided as a victim, and you can do muchRobosapien that has not already been cant in the same way (as in economics)
more with three Robosapiens than said? It walks, runs, dances, talks back, that the market structure of pure com-
with one. and can be programmed to clean up petition is significant in that it does, in
How could we use three your room (though when we tried that, fact, closely approximate the real thing.
the Robosapien fell An example of swarm robotics
With some household items and a hat, we will asleep). The Robosapien is that we both have had experience with
coordinate Robosapiens into a swarm. easy to control and easy are the PARC Polybots. The PARC
to program, but that is not Polybots are modular robots built for
to say that it is an exces- applications like urban search and res-
sively simple machine. cue that do abide by all of the parame-
Reflexive motion and ters of swarm robotics.
other principles of BEAM Multiple Robosapiens can function
robotics that went into its cooperatively to execute a variety of
design make it very effi- different tasks, from amplifying a sin-
cient, and perhaps, to the gle Robosapien’s abilities (the concept
eye of a connoisseur, even of “force multiplier” in action) to enter-
artistic. With socketed taining small children as a performance
electronics and easily troupe. Maybe, with a little gumption
accessible innards, the RS and a lot of luck, they can even clean a
was truly made to be whole room (watch out, Roomba!). We
tweaked. are not going to give the RS swarm an
22 SERVO 05.2005
TwinTweaks.qxd 4/5/2005 9:08 AM Page 23

The Robosapien Swarm Cometh

interactive intelligence like the the same method work


Polybots, but we will still coordinate on infrared devices? We
their actions to approximate swarm thought so, but splicing
activity. three wires into one
tether seemed a little
Roundin’ Up the Posse fiddly. All options were
still on the table.
The Robosapien, when left to its Another idea hit us
own devices, is a very disorganized while we were watching
creature in need of some discipline. An an old episode of
easy way to coordinate the actions of “MacGyver.” To avoid
the RS swarm would be to make them detection by a laser secu-
all obey one infrared remote. Infrared rity system, MacGyver
devices are limited in range by line of used plastic tubes as The trio is ready for action.
sight, so we definitely needed to figure large fiber optics to
out an alternative if we wanted to con- essentially bend the lasers out of the combine them into one bundle to con-
trol three Robosapiens at once. way and expand the gap to allow him nect to a single remote. Before fabricat-
An early idea was to tether the to fit through. Fiber optics! But do fiber ing the whole tether, we wanted to see
three Robosapiens to one remote with optics work with infrared light? We if infrared fiber optics would actually
wires, replacing the infrared transmit- have not covered the optics chapter in work.
ter and receiver. One of the inspira- our AP physics class yet, so we would We have never heard of infrared
tions for this idea was a project we need to experiment. fiber optics before, and we wanted to
worked on while we were apprentices know if we were the pioneers of new
at the Palo Alto Research Center last Fiddly Fiber Optics optical technology or simply blowing
summer. smoke. Initial tests appeared encourag-
We were working on modular Fiber optics are generally made out ing, but after beginning work on the
robots, and there was a remote-con- of glass or plastic, and their average tether and performing another set of
trolled tank that was being used to diameter is 60 micrometers. MacGyver tests, we found that fishing line was
help in mapping. Due to the way the used a plastic tube, but fiber optics in ineffective. Stymied by fishing line fiber
competition that we were entering was LEGO kits and our Team 1079 hats for optics, we were ready to try the idea of
set up, radio control would not work. the FIRST competition are solid rods, a wire tether.
One of our jobs was to make the tank and we like to work with what we are Before we visited a soldering iron
operate through a wire to where the used to. Fishing line appeared to be a upon the RS, though, we had a mag-
receiver was on the tank and the anten- logical and cost-effective choice. We netism test in physics to study for. One
na was attached on the remote, there- would be able to bundle the lines like night, when opening the textbook, we
fore having the tank on a tether. Would stranded wire, so it would be easy to serendipitously happened upon a page

Circle #54 on the Reader Service Card.


SERVO 05.2005 23
TwinTweaks.qxd 4/5/2005 9:09 AM Page 24

Twin Tweaks ...


came with plastic bush-
ings on their ends that
were perfect places to
tape them together.
We hoped that having
big enough bundles
would get enough
good connections at
the joints. A long tether
was what we were
going for, because it
Fiber Optics from our FIRST team hats would Once decapitated, the bundle was would provide the RS
serve as a nice source for our project. ready to be linked to the swarm. Swarm more mobility,
but after testing some
on fiber optics where we found the room for error. The strands would have long tethers with a flashlight, we saw
average diameter tidbit above. That to line up perfectly end-to-end to allow that too much intensity was lost to be
gave us the idea that maybe fishing line the infrared light to continue the suc- effective.
was simply too thick, so we ran some cessive internal reflections that are the To be sure, we tested the long teth-
more tests with some good ‘n’ honest basic mechanisms of fiber optics, and er with the infrared remote, ultimately
fiber optics to test the validity of such a making a tether of a decent length finding that a shorter tether would be
form of infrared communication. The would involve quite a few suspect con- the way to go. We grouped the end of
hats from our FIRST team are crowned nections with the short bits we had. the tether leading to the Robosapiens
with a bundle of real fiber optics, so we After testing some thinner fishing line into three bundles with tie wraps and
plucked a few for testing. These tests and not getting any results, we accept- cunningly fastened the tether to the
proved definitive: infrared fiber optics is ed our fate of fiddly fiber optics backs of their heads with duct tape.
indeed a valid idea. plucked from sparkly topped hats. Cunningly in the fact that the duct tape
The individual strands from the provided a strong attachment while
hat’s fiber optics were only about 10 Construction and also covering the infrared receiver in the
inches long, though, so we thought Testing back of the Robosapiens’ heads to
that thinner fishing line might be the anticipate the argument of detractors
way to go. If we had to line up several Our initial idea was to make indi- that we were still simply pointing the
of the hat strands there would be more vidual long strands by using heat shrink remote at the trio.
around the joints of singular fibers. We Once the tether was attached to
The sacrificial hats from which found out that the fiber optics were both the trio of Robosapiens and the
we borrowed the fiber optics. more vulnerable to heat than the heat infrared remote, we engaged in the
shrink. The fiber optics came in bundles final tests. After trying to encourage
already for the hats, and even though some synchronized motions, we found
they were very big bundles, we decid- the Robosapien Swarm to be function-
ed to keep things simple. The bundles al, but only intermittently. We figured
that the large bundle attached to
Tethered together, their actions the remote must have been too big
are exactly the same. for the transmitter to effectively
communicate through all of the
fibers.
Bryce’s Robosapien was partic-
ularly taciturn, and after a good
talking to proved fruitless, we pro-
ceeded to trim the bundle. We
deduced that the connection
between the two bundles in the
tether must not have worked for all
of the individual fibers. To make
the good fibers all within the line
of sight of the infrared transmitter
at once, we trimmed down the
bad fibers to make a smaller bun-
dle of good fibers. This method
24 SERVO 05.2005
TwinTweaks.qxd 4/5/2005 9:11 AM Page 25

The Robosapien Swarm Cometh

proved effective, and soon the RS plex (and therefore more expen-
Swarm had no problem letting out a sive) single robots. Who knows,
deafening roar on cue. in the future, a swarm of
Robosapiens could supplant the
Judgement Honda Asimo as far as some
humanoid functions go. A
Earlier we said that our RS Swarm Robosapien swarm would cer-
would adequately model a real swarm, tainly not thin out your wallet as
so how close did we really get? A good much as the taller humanoid,
way to find out would be to see how and a Robosapien swarm could
well we met all of the defining param- certainly do things like plant a
eters of a robotic swarm. The parame- flag in a hole like the Asimo
ters we stated before are: cost efficien- does in the commercial for the
cy, robustness, scalability, and self- Honda Classic Golf Tournament.
organization. As far as cost efficiency Another parameter is The bundles taped together.
goes, the RS Swarm does pretty well. robustness. Even though swarms
From what we hear, Robosapiens are are composed of many small robots, robustness to consider is the goal of
down to about $75.00 a pop, which is they still need to complete their tasks swarms to be able to either repair or
not bad for individual members of a without breaking down. Robustness is abandon broken modules or individu-
swarm. Other swarm robots that per- particularly important in such trying als. That would be difficult with our
haps like to use nice servos for locomo- tasks as urban search and rescue, toxic tethered RS Swarm, but our
tion are looking at figures of up to waste cleanup, and minesweeping. The Robosapiens have more of the “never
$115.00 per servo, which makes the RS Robosapien as a unit is adequately leave a man behind” mentality anyway.
look more inexpensive. robust — robust enough so that the The next parameter is scalability.
Also, one of the purposes of potential jostling in a large swarm won’t Scalability refers to the ease with which
swarms is to replace larger, more com- cause it to fall apart. Another aspect of the swarm could be expanded or com-

Circle #68 on the Reader Service Card.


SERVO 05.2005 25
TwinTweaks.qxd 4/6/2005 3:18 PM Page 26

Twin Tweaks ...


cant coloration or a form of opportunity for a broad discussion on
sonar using ultrasonic sensors. what we see as some of the driving
Self-localization is where the forces behind swarm robotics.
real challenge of swarm robotics Swarm robotics are essentially an
lies, because it is a daunting economic approach to applications like
software challenge to come up search and rescue, mapping, explo-
with an effective, yet simple, ration, toxic waste clean-up, minesweep-
way for the simple-minded ing, and whatever other uses there are
members of a swarm to interact for swarms of simple robots.
intelligently. One who likes to wax philosophical
Even though our might say that swarm robotics capital-
Robosapiens obey one remote, izes on the dis-economies of Gestalt.
they should have some type of The Gestalt theory contends that the
Bryce’s Robosapien needed a good talking program to deal with objects in whole is greater than the sum of its
to to get it back in line again. the field. Vision sensors of the parts. The FIRST Competition is a fine
Robosapiens could be hacked example of the Gestalt theory in
pressed — how easy it is to add or take into for sight, or perhaps the sonic sen- action. The finished product at the end
away robots from the swarm. Even sor could be used if some other sound of the six-week-build time is certainly
though a tethered swarm is not really sensors were hacked in to complement more effective at playing the game
like other swarms, our model does pro- them. Or we could teach them to play than if someone just plopped down the
vide good scalability. It would be very Marco Polo. An easy method would be kit of parts on the field and hoped for
easy to add more Robosapiens to the to program some reflexes based on the the best. In other cases, however, a
swarm; all it takes is another fiber optic Robosapiens’ touch sensors with the structuralist approach is more effective.
tether to be incorporated into the main standard programming. A little collision Structuralism is basically the oppo-
bundle. detection shouldn’t go amiss. site of Gestaltism. Structuralism asserts
The final and most defining param- Self-organization also refers to the that the sum of the parts is more signif-
eter of a robotic swarm is self-organiza- adaptability of swarm robots — their icant than the whole. When applied to
tion. Broadly speaking, self-organiza- ability to deal with obstacles in the robotics, this can be restated to mean
tion is the ability of the individual mem- environment. Modular robots like the that several simple robots can accom-
bers of the swarm to interact. The cen- PARC Polybot change shape to deal plish a task better than one big com-
tral form of interaction between the with different challenges, while other plex robot. A current example is the
members of the swarm is self-localiza- swarms can do things like hook togeth- exploration of other planets.
tion — the ability for a single member er to cross gaps too big for a single Take a look at the ill-fated Beagle
of the swarm to know where it is in one. The Robosapien’s humanoid II. Beagle II, in this case, is a represen-
relation to the rest of the swarm. Since design makes it pretty adaptable to tative of the Gestalt approach. This sin-
our RS Swarm is tethered and they all begin with, and most challenges it gular explorer likely had all of the nec-
obey the same remote, self-localization could likely surmount without major essary tools to do a thorough job of
isn’t much of an issue, but that also shape shifting. surveying the red planet, but a rough
makes it less of a real swarm. landing caused it to be dead on arrival.
Common forms of self-localization Upping the Ante Spirit and Opportunity, though only
are visual recognition through signifi- two in number, are closer to a swarm
In the March issue, a approach. Closer in the philosophy,
With the fiber optics bundles and remote, reader voiced a desire for anyway, that if one breaks down, all is
they were ready to go. a broader discussion of not lost.
problems rather than a This brings us to the central dis-
narrow focus on a proj- economy of Gestalt: if one part fails,
ect, and the RS Swarm everything fails. Everything is depend-
project provides a unique ent on the singular whole. In swarm

Check it Out
Check out these websites if you are an intrepid hacker
who wants to learn more about swarm and modular robotics:
www2.parc.com/spl/projects/modrobots

www.swarm-bots.org/

26 SERVO 05.2005
TwinTweaks.qxd 4/5/2005 9:13 AM Page 27

The Robosapien Swarm Cometh

philosophy, if one part fails, others take is definitely room for


over for it. In instances like minesweep- optimization.
ing, if one big robot makes a mistake it Perhaps the best rec-
is immediately back to the drawing ommendation we could
board. If one member of a swarm ends give would be to use
up taking one for the team, the rest of small bundles of solid
the team can still go on. strands. It would have
been better for us if we
Final Thoughts didn’t have to make a
joint in the middle of our
Swarm robotics is an esoteric but tether. A single solid
rapidly growing field. For any other strand would have guar-
intrepid hackers out there that might anteed better communi-
want to experiment with their own RS cation by giving the The RS Swarm serves as a model to
Swarm before miring themselves in dif- infrared light a continu- demonstrate the basics of swarm robotics.
ficult programming conundrum, we ous path through which
have a few recommendations that to make the internal reflections; discon- basic tenets of swarm philosophy. We
would be an improvement upon our tinuities, because of bad joints, were were also able to use infrared fiber
design. some of our biggest problems. optics (of which we are not really the
One idea would be to use thinner The RS Swarm serves as a model pioneers and only too happy to give
fiber optics for more effective commu- to demonstrate the basics of swarm credit to whomever is). Now all we
nication. Our 0.0125-inch diameter robotics, and, as always, there is room need to do is name our mini swarm
fiber optics were still quite larger than for optimization. In the end though, it after a famous trio. Manny, Mo, and
the normal 0.0024-inch diameter fiber adequately demonstrates the concepts Jack? Dean, Woody, and Dave? Alexey,
optics that are used in most medical of cost efficiency, robustness, scalabili- Ivan, and Dmitri?
procedures ending in -oscopy, so there ty, and self-organization that are the So many possibilities ... SV

Affordable Motion Control Products


Robot Building
Blocks

Motor Speed
Control

PID Motor
Position
Control
Solutions Cubed
3
Phone 530-891-8045
www.solutions-cubed.com Solutions
Circle #75 on the Reader Service Card.
SERVO 05.2005 27
Five.qxd 4/5/2005 10:22 AM Page 28

R
O R
B I O
O N L
T C E
S R
E
I
A
A N
S
R
I
E O
N
G U
P L R
L Y
A S
Y O
V
I C
I
N I
T
G E
A
L T
A Y
N
Five.qxd 4/5/2005 10:24 AM Page 29

obots are playing an


R increasingly vital role in
our society. Although many
applications involve using
robots to perform repetitive
behavior (painting doors on
an automobile assembly line,
winding transformers, weld-
ing, etc.), robots are also mov-
ing into areas that are haz-
ardous to humans, providing
life-protecting and life-saving
duties. Though robots may
not yet be able to run through
the city streets to fetch our
inhaler (as depicted in the
movie I, Robot), they are
already assisting in the operat-
ing room, removing humans
from harm’s way by perform-
ing difficult industrial and mil-
itary duties, and performing
chores in outer space and in
the deep sea. Let us take a
look at five robots that
could save your life ...
Five.qxd 4/5/2005 10:26 AM Page 30

FIVE ROBOTS THAT COULD SAVE YOUR LIFE

The da Vinci Surgical System


n the original Star Trek television series, Dr. McCoy used his
I small medical tricorder to diagnose or cure many life-threaten-
ing calamities. Although we have not boldly gone that far yet,
much progress is being made in the medical area of robotics.
The da Vinci Surgical System, developed by Intuitive Surgical
(www.intuitivesurgical.com) uses robotic technology to enable
surgeons to perform minimally invasive surgery (MIS), operating
through a tiny opening (port) into the body. MIS reduces trauma,
blood loss, patient pain, and discomfort. The da Vinci Surgical System assists surgeons in the following ways:

• Routine surgical procedures are accomplished quicker and easier.


• Difficult procedures may be performed by more surgeons via the controls provided by the system.
• More procedures may now be performed through tiny ports that measure only one centimeter wide.
The da Vinci Surgical System contains four parts: the Surgeon Console, the Patient-side Cart, the EndoWrist
Instruments, and the InSite Vision System.
The Surgeon Console is where all the action originates. The surgeon sits at the console, viewing a three-
dimensional image of the surgical site. Console controls allow the surgeon to manipulate the EndoWrist
Instruments accurately, safely, and in real-time.
The Patient-side Cart supports the robotic arms that manipulate the EndoWrist Instruments and endoscope.
The da Vinci Surgical System uses the surgeon’s hand and wrist movements to control the robotic EndoWrist
Instrument that replaces the surgeon’s own hand. A wide selection of EndoWrist Instruments are available,
including forceps, cutting blades, hooks, and grippers, all of which operate within a one-centimeter opening.
Intuitive motion is realized through the da Vinci Surgical System. Instruments move in the same direction as the
controls, allowing the surgeon’s hand/eye coordination to be translated to the EndoWrist instruments.
True three-dimensional vision inside the operating port is made possible using the InSite Vision System,
which is controlled with the Navigator Camera Control software, allowing the surgeon to move, zoom, and rotate
the surgeon’s view. A dual-lens, three-chip digital camera provides three-dimensional depth-of-field within the
operating port and is easily positioned for different views.
The da Vinci Surgical System is the
first robotic surgical system approved
by the FDA for such medical procedures
as laparoscopic surgery, chest surgery,
and cardiotomy. There are currently
over 210 da Vinci Surgical Systems in
use around the world.

30 SERVO 05.2005
Five.qxd 4/5/2005 10:28 AM Page 31

FIVE ROBOTS THAT COULD SAVE YOUR LIFE

Dr. Robot
he Johns Hopkins Hospital has a new doctor, a robotic doctor ... so
T does Hackensack University Medical Center, UCLA, Chicago Hospital,
and many other medical institutions. Developed by InTouch Health, Inc.
(www.intouch-health.com), and called Dr. Robot, Mr. Rounder, or Dr.
RP-6 (depending on where you are),
these robotic doctors provide remote
access to a real, human doctor through
a wireless audio-video teleconferenc-
ing link that directly connects the
doctor to the patient over the Internet.
The robots are able to move
around the patient during an exami-
nation, and their movements are con-
trolled remotely by the human doctor
and a joystick.
The patient sees the human
doctor via a flat-screen display (the
“head” of the robot) and is able to talk to the doctor via a microphone. A video
camera allows the human doctor to see the patient and examine hospital-
related websites for information on proper healing, scan X-rays, and view
charts. The robotic doctor is popular with its patients, who say they prefer a
virtual visit from their own doctor to an office visit
with a different doctor.

SERVO 05.2005 31
Five.qxd 4/5/2005 10:30 AM Page 32

FIVE ROBOTS THAT COULD SAVE YOUR LIFE

PackBot
housands of people are killed every year by land mines, even those
T trained to retrieve and dispose of them. It is an unfortunate fact that
current and past wars have led to millions of hidden and buried land mines
just waiting for someone to tred on them. Combine that threat with those
posed by house-to-house combat in unfamiliar locations, and you have a
recipe for disaster for both military personnel and civilians.
The PackBot series of robots from the US government and the Industrial
Robotics Division of iRobot (www.irobot.com) are designed to go into
harm’s way. For example, the PackBot Explorer is used to provide soldiers
on the battlefield with real-time surveillance of dangerous areas, while the
PackBot EOD is used to gather and dispose of explosive ordinance.
The PackBot design has proven itself in Afghanistan and Iraq, with its
on-board robotic control system controlled by a Pentium processor.
iRobot is performing research on the SwarmBot and SwarmOS (Swarm Operating System), where 10 to
10,000 SwarmBots may be controlled in unison. This research pushes the boundaries of algorithms, hardware,
and user-interface design to develop swarms of robots that exhibit useful group behavior, such as meeting at a
point of interest, exploring a building, or navigating over long distances.

Model Designed For Used By Features


Explosive ordinance disposal, Rotating gripper, OmniReach manipulator system,
PackBot Bomb squads, SWAT teams,
HAZMAT, search-and-surveil- fiber spooler, vision and targeting head, wireless
EOD the military
lance, hostage rescue operator control unit

QuickFlip flipper design, recessed vision system


PackBot Search-and-surveillance in The military head, interchangeable payload modules, wireless
Scout urban terrain operator control unit
Vision, sound, and sensor head with tilt/pan
Intelligence, reconnaissance,
PackBot Law enforcement, the neck, long-run battery packs, GPS, temperature,
surveillance, and battle
Explorer military heading, and other sensors, wireless operator
damage assessment control unit
Military Perimeter guarding, troop Unmanned ground vehicle, obstacle avoidance
The military
R-Gator deployment, supply carrier system

Table 1. PackBot series of robots.

32 SERVO 05.2005
Five.qxd 4/5/2005 10:34 AM Page 33

FIVE ROBOTS THAT COULD SAVE YOUR LIFE

Robonaut
n December 1999, astronauts Steven Smith and John Grunsfeld from
Ithe Space Shuttle Discovery spent over eight hours in a spacewalk
to replace gyroscopes on the Hubble Space Telescope. During the
spacewalk, the temperature cycled between plus and minus 250
degrees Fahrenheit. And, of course, there is no air to breathe in outer
space, so there are a few good reasons to want to stay inside the
spaceship.
Robonaut, developed by NASA and DARPA, is designed to assist
(and/or replace) human astronauts in many extravehicular activities
like spacewalks. Human astronauts require consumable resources
while in space (power and life-support) that limit their time and ability to perform duties. Robonaut is designed
to perform such mundane, yet dangerous, tasks as inspection and maintenance outside the space vehicle.
Robonaut looks remarkably like a human astronaut. It does not have the typical robot-style grippers, but very
articulate fingers, wrists, and arms instead. Through a process called telepresence, a human operator controls
Robonaut’s 47 individual degrees of freedom through hand gloves and a visual helmet.
Robonaut has the biological equivalent of a central nervous system, with a Versa Module Europa (VME)
backplane used for input/output and PowerPC processors to do the number crunching for the VxWorks real-time
operating system that controls Robonaut.
The control system architecture of Robonaut must meet several requirements:

• Provide safe control for 47 degrees of freedom.


• Operate completely under human control, share
control, or even operate autonomously.
The Complete
• It must operate under extreme temperatures. Electronics
• Real-time performance must be achieved with current Design System
hardware.
EASY TO USE
CAD TOOLS AT
Robonaut is packed with technology. There are
FANTASTIC PRICES!
field programmable gate array (FPGA) motor con- Schematic and PCB Layout
trollers, scores of sensors (torque, position, tempera- • Powerful and flexible schematic capture.
ture), harmonic drives, and vacuum-rated motors. • Auto-component placement. • Rip-up and Retry PCB routing.
• Polygonal gridless ground planes.
One day, with a Robonaut attached to the end of • Library of over 8000 schematic and 1000 PCB foot prints.
the Space Shuttle’s cargo bay arm, the Hubble Space • Bill of materials, DRC reports and more.
Telescope will feel the corrective touch of a robotic Mixed Mode SPICE Circuit Simulation
• Berkeley SPICE3F5 simulator with custom extensions for true
finger instead of a human one. mixed mode and interactive simulation.
Additional information about Robonaut can be • Six virtual instruments and 14 graph based analysis types.
• 6,000 models including TTL, CMOS and PLD digital parts.
found at http://vesuvius.jsc.nasa.gov/er_er/html/ • Fully compatible with manufacturers’ SPICE models.
robonaut/robonaut.html ProteusVSM- Co-simulation & debugging for popular Micro-Controllers
• Supports PIC16 & PIC12, AVR, 8051, HC11 and ARM micro-controllers.
• Latest version includes 40 new PIC18's.
• Co-simulate target firmware with your hardware design.
• Includes interactive peripheral models for LED and LCD displays,
switches, keypads, virtual terminal and much, much more.
• Provides source level debugging for popular compilers and
assemblers from HiTech PICC, Crownhill, IAR, Keil and others.
PCB AutoRouting
• Proteus PCB design includes an interface to the Electra Gridless
autorouter.
FREE DOWNLOADABLE DEMO! Save Time. Save Money.
Proteus Starter Kit – $199 • Complete Systems from $499
“This is clearly superior in every respect.”
Tel: 905•898•0665
R4 SYSTEMS INC. www.r4systems.com info@r4systems.com

Circle #89 on the Reader Service Card.


SERVO 05.2005 33
Five.qxd 4/5/2005 10:36 AM Page 34

FIVE ROBOTS THAT COULD SAVE YOUR LIFE

VideoRay
s any scuba diver knows, the underwater world is both
A an amazing and scary place. The wonder and beauty of
the deep are tempered by the fact that humans are merely
guests, visiting for a short while at the mercy of the remain-
ing oxygen in their tanks (or other gas, depending on the
depth). Accidents happen underwater just as they do on
land, without warning, and with the added punch of drown-
ing thrown in. Even routine underwater activities such as
inspection and maintenance can turn deadly when some-
thing unforeseen happens. Fortunately, help is available.
The VideoRay line of remotely operated vehicles (ROV) is
designed for underwater surveillance, inspection, and res-
cue. They operate at depths of up to 1,000 feet, providing visual feedback from a color camera, as well as depth
and heading information. Each VideoRay system is dive-ready and can be controlled via a joystick (with more
advanced models utilizing wireless control from a laptop). All models use 300 watts of 10 to 240 volts AC power,
with the VideoRay submersible fed with 48 volts DC through its tether (much lower than the 360 volts DC used
by other ROVs).
With the weight of the VideoRay packages ranging from 70 to 165 pounds, transportation and setup of each
device can be done by only one or two individuals. VideoRays are used all over the world, in crystal-clear as well
as polluted water, from the tropics to the Artic.

Rated
Model Standard Features Price
Depth

Two 20-watt halogen lights, 420-line color camera, five-inch color LCD display
Scout 300 feet $5,995.00
monitor, 131-foot tether

Two 20-watt halogen lights, 570-line color camera, camera tilt and focus controls,
Explorer five-inch color LCD display monitor, depth gauge, heading, and cumulative time 300 feet $9,995.00
shown on display, 250-foot tether

Two 20-watt halogen lights, 570-line color front camera, camera tilt and focus
controls, 430-line resolution B&W rear camera, five-inch color LCD display monitor,
Pro III 500 feet $19,995.00
depth gauge, heading, and cumulative time shown on display, 250-foot tether, tether
deployment system, PC remote control software

Two 20-watt halogen lights, 570-line color front camera, camera tilt and focus con-
trols, 430-line resolution B&W rear camera, five-inch color LCD display monitor, depth
Deep Blue 1,000 feet $46,500.00
gauge, heading, and cumulative time shown on display, SeaSprite scanning sonar
system, 1,000-foot tether, tether deployment system, PC remote control software

Table 2. VideoRay product line and associated features.

Conclusion
On the operating table, on land, in the air, and even underwater, somewhere a robot is
lurking, ready to assist in saving a life or performing a hazardous job. Right now, a human
controls the robot for the most part, but sometime soon, the application of artificial intelligence
will perhaps provide robots with an autonomous behavior. Then, we truly will see robots running
through the streets with our inhalers. SV

34 SERVO 05.2005
Five.qxd 4/5/2005 11:02 AM Page 35

FIVE ROBOTS THAT COULD SAVE YOUR LIFE

Not Done Yet — Some Juicy Tidbits to Feed Your Appetite for Info!

Sensors Are People, Too More, More, More Robots!


With all the fuss over robots saving lives, it is easy to In October 2004, the United Nations Economic
overlook the good work done by simpler devices, namely Commission released a report indicating that the number
the electronic sensors now being used to perform these of robots assisting with chores in the home may increase
critical functions: from over 600,000 in 2003 to over four million by 2007.
The 2004 World Robotics Survey found an 18 percent
• Chemical, biological, and nuclear detection increase in orders for industrial robots in 2003. Japan
• Blood analysis alone has 400,000 industrial robots (as many as the rest of
• Heart rate measurement the world’s industries). Japan’s New Energy and Industrial
• Measuring the brain’s electrical activity Technology Development Organization (NEDO) estimates
their market for service-oriented robots will grow to $17
As robots become more human-like (as Robonaut is
billion in the next five years. The Robotic Industries
trying to do), sensors will play an increasingly important role
Association shows that North American orders for
in providing feedback for the robotic control system. Sight,
industrial robots were up 28 percent in 2003, with a
touch, smell, hearing, and taste are the five human senses
that must be mimicked by hardware. Not all sensors are $3 billion US market. Visit http://robots.net for additional
alike, and this is true for their sensory processing, as well. An information about personal and industrial robots.
image sensor requires a hefty amount of processing to
extract image information, while a touch sensor may be
implemented as a simple microswitch, requiring only one bit James Antonakos can be reached at antonakos_j
of information to be tested. As sensors evolve, so must the @sunybroome.edu or you can visit his website at
ability to gather and process their information. www.sunybroome.edu/~antonakos_j

Circle #95 on the Reader Service Card.


SERVO 05.2005 35
Barlow2.qxd 4/5/2005 9:27 AM Page 36

L ast month, we discussed several problems and errors that a beginner can experience while
designing a new robot. We discussed where to begin and some of the many skills to be
learned. In this article, we will continue with more problems you may run into, programming
errors, and a list of helpful notes for any beginner. In addition, you will find many useful circuits
to use in your designs. There are many pitfalls to be avoided, but the rewards are great. We feel
the ultimate goal for any beginner should be personal satisfaction. As mentioned in the last
article, design and build in a way that you can easily understand. Use a program language and
chassis design that you can easily work on. When you design your second, third, and fourth
robots, you can begin to branch out by adding more complicated skills to your arsenal. I hope
these primers will assist you, as well as guide you to a rewarding experience with robotics.

36 SERVO 05.2005
Barlow2.qxd 4/5/2005 9:29 AM Page 37

PART 2: Common Errors in Building Robots

Syntax and Code 7. Comment, Comment, Comment —


You can never have too many com-
your compiler, but they won’t offer
much help in real-world situations.
Errors ments in a program. I now comment To provide feedback while not con-
One of the earliest pitfalls to be my variable declarations, my subrou- nected to the computer, use a LCD dis-
avoided is programming errors. As a list tines, and every single line within the play or speaker. I use a Seetron LCD
of potential errors could fill many vol- program, as well. I can almost guaran- mounted on my robot and also a
umes, I will only show you some of the tee that, after a while, you will forget speaker for output. In my various sub-
more common problems to be avoided. what something does and lose many routines, I will call the LCD or the
Much of this depends on whatever pro- hours trying to figure out your own speaker and send out status informa-
gram language you have chosen for code. I do this all the time. In fact, tion so I know what my program is
your robot. there cannot be enough comments. doing. You can have a simple single
Have a section of nothing but com- word on an LCD display or a simple
1. Declarations — Check your variable ments at the start of your program, as beep sequence from the speaker to tell
declarations. Make sure that you have well. It is also a good place for some you where in the program your robot is
a declaration for the size variable that simple wiring codes for your hardware. operating. This is also good for finding
you expect to see. If you return a word- For example, you can list the wire a major error. I once even resorted to
size variable (255) and only have a codes for your sensors in your program putting an LCD message just before
byte-size declaration (16), it can cause comments section. The first line of your the END statement in my program,
all kinds of weird errors. program should be comments describ- because I thought the code was some-
ing the program’s name and date, how jumping out of the main loop and
2. Return — Make sure that all of your along with changes you have made to exiting.
subroutines have a return statement at the program. For example, The LCD will slow down your code
their ends. “10/15/2004 bolomark3.2.bas added somewhat and so will the speaker.
in second SRF04 Sensor.” When you have your robot working the
3. Subroutines — Do not use a “go to” way you want it to, you can comment
line statement when you really mean a 8. Stand-Alone Programs — Keep out the LCD and speaker sounds.
“go sub” statement. In other words, do small working examples of programs I also will place the version number
not mix the two. This mixture may for every sensor or subroutine you use. of the program at the start of my pro-
work for awhile and then come back I have separate programs for LCD, gram and display it on the LCD. This
to bite you. Believe me, I learned the SRF04, GP2D02, motor drive, and way, when your robot is in operation,
hard way. servo, etc. When testing things, you you can easily tell what program is
can load this small program and test loaded at that time.
4. Subroutine Names — Name your the exact item you wish without load- Another idea I am implementing is
subroutines in a way that you can ing a huge program. using Morse code as feedback from a
easily understand what they are speaker. This is a bit slower, but it adds
doing. You are coding for your own 9. New Hardware — As mentioned an interesting touch for output. A voice
use. As much as possible, keep things above, when you add in new hard- or sound chip would be the ultimate
legible and readable. Subroutine ware, create a simple test program that output from your robot.
names such as LEFTSERVO, FOR- only tests this new hardware. After you
WARD, and BACK are self-descriptive have the hardware working to your sat- 11. Backup, Backup, Backup — Back
and tell you immediately what the isfaction, you may add the new code to up your programs using more than one
subroutine is doing. your existing robot. For example, I method. Storing all your programs on a
received a new compass for Christmas. single hard drive is a disaster waiting to
5. Variable Names — Avoid at all costs I will write a program to implement the happen. Back up to a floppy, CD-ROM,
using variable names such as “I” and compass and save it as compass1.0 another friend’s hard drive, or anywhere
“1” in your code. A “1” and an “I” can .bas. When I am satisfied with the you can. I recommend at least once in
look so similar that you can have a typo operation of the compass, I will copy awhile to get a hard copy printout, as
error and never realize it. Even worse, that code into my working robot. If I well. I know it will use a lot of paper,
many on-screen fonts display these ever have any problems, I can load but this will seem trivial if you lose a
characters as identical, when they the compass code and test only that year’s work to a hard-drive crash. I still
are not. particular piece of hardware. have printouts from the 80s when I was
programming. They are always useful.
6. Declarations — Keep your variables 10. Feedback — Get whatever feed-
in one section and your constants in back you can when debugging or 12. Ideas — Keep a separate list of
another. Alphabetize these sections so designing a robot. Debug statements ideas you have for your robot, rather
you can easily find a variable. are fine while the robot is connected to than digging through your logbook try-
SERVO 05.2005 37
Barlow2.qxd 4/5/2005 9:29 AM Page 38

A PRIMER FOR THE NEW ROBOTICIST


ing to find them. You also can keep a your IR receivers not detecting a wave- of code producing an error? Have
wish list of hardware, as people who form present? Check all connections; somebody else read the line of code or
are designing competition robots will maybe something has come loose. the section of software. A friend may
probably have hardware requirements This next situation seems obvious, see an error that you cannot. This is
to follow. but sometimes you’ll forget if the robot also why authors should never edit
quit on its own or if it was something their own work.
13. Reserved Names — I have been you did. If the robot quit on its own, Retype the line. I don’t know how
burned more than once by using a then there is a good chance you had a many times just retyping a command
reserved name for a variable or subrou- hardware failure. Will it run for an line has resolved a problem. You can
tine. Many times it is not obvious what extended period of time on an old put the lines side by side and not see
the problem is when a program com- version? Is the CPU resetting? Place the difference, but in actuality, there
piles. This happened quite a bit to me some feedback as your first lines in the may not be a visible difference. The dif-
when I transferred a few Parallax pro- program, display START on your LCD, ference could be buried at a machine
grams to the Basic Micro Atom. If you or play a recognizable tone from your level that the application is not making
have created a new subroutine or vari- speaker. available to you. Even printing out the
able and have weird problems you If the CPU resets, why is it doing line may not show the error.
can’t figure out, rename that item to that? Check for stack overflow or
something that definitely cannot be a unshielded motor leads. Add a larger Helpful Notes
reserved word. Use something strange filtering capacitor to the CPU’s power
like “dog.” input. Add a separate battery pack to In recent years, I have been keep-
run only the CPU. Write a very simple ing a notebook of problems that have
14. Hardware or Software Errors — program for your robot and run it. For occurred with my designs. The follow-
This may also be designated as trou- example, only drive the motors in this ing list is only some of the many notes
bleshooting, and a book could be writ- simple program. I have kept over the years.
ten on this topic alone. I can only guide See if the robot will keep moving
you in certain directions. Try to remem- for three minutes. Write a simple pro- • Test — Test your robot in all environ-
ber what you have done most recently gram to rotate the motors forward, ments. What may work well on hard-
to your robot. Read your logbook (you backward, left, and right. The combina- wood floors could be a disaster on
keep one, correct?). Go back to a pre- tion of motor changes should cause shag carpets.
vious version of a program. Go way the CPU to reset if it ever is going too.
back in some versions, and by this I Sonar detectors may draw as much as • Light — Different lighting conditions
mean go back a couple of major revi- one amp when they fire. Can your bat- and colored walls can cause major grief
sions and see if the robot will run on an tery bus supply this quick surge of with sensors.
older version of your program. amperage?
Be sure your batteries are fully Are you testing on hardwood • Battery — Keep your batteries fully
charged, and set up debug points with- floors, then having problems on a rug? charged when testing. Weak batteries
in your program to find out what your Motors will draw more amperage on rug can cause many varied problems.
variables are doing. Display your vari- floors. What are your light conditions?
ables on a debug screen or an LCD dis- Halogen, incandescent, and fluorescent • Label — Place labels on all your
play. Do you have a variable out of lights will all affect IR sensors differently. connectors and designate them top
range? Can you swap the parts on your Duplicate the error as closely as possible. and bottom if they do not have a KEY
robot from one side to another? For Does the robot only fail when it detects in the connector.
example, move the left wheel servo to a wall at the same angle?
the right side. If possible, swap pins on Write down, in sequence, every- • IR sensitivity — To reduce IR sensi-
your CPU, because maybe one pin has thing your robot does up to the point tivity, lower the frequency output to a
burned out. of failure. Check your flowchart or value less than 38 kHz or install a larg-
Run a debug session and watch all code and try to determine how your er resistor on the IR LED to reduce its
of your variables for a strange value. Is a robot came to be in this situation from output. A two-kilohm resistor is recom-
pin bent on a connector? Use speaker what you wrote down. mended.
output as feedback to check code Ask for help! We all need help at
sequences. Put a beep sound after sec- some time, and maybe someday you • Glue — Use hot glue for holding
tions of code, simply to see if your pro- can help another person and return the wires and battery packs.
gram is flowing properly. Do you have a favor. Remember, that there is never
hardware output problem or a hardware such a thing as a stupid question. • Diodes — The short lead is negative.
input problem? Is your IR generator
actually producing a waveform or are 15. Line Errors — Why is a given line • Vdd — On Stamp and Atom micro-
38 SERVO 05.2005
Barlow2.qxd 4/7/2005 10:00 AM Page 39

PART 2: Common Errors in Building Robots

processors, Vin is unregulated, Vdd is • Wiring — Double and triple check a wire had never been soldered to my
regulated. your wiring before you power on. Ask circuit board; it was only poking
a qualified friend to also check it if you through the solder hole! This loose wire
• Pins — Unused pins should be set to are unclear. I once burned out two PIR worked fine for over a year and then
Output. sensors at $50.00 each because the quit one day, making me think I had a
manufacturer’s wiring schematic was software problem. I made this mistake,
• LED pins — + Anode is the long lead, less than intuitive. and have since repaired over a dozen
while cathode is the flat side. commercial electronic products with
• Sockets — Use sockets for any IC or the same problem: a bad solder joint.
• Basic Atom will not program in Board CPU in your design. Use sockets for any-
of Education. The capacitors on Parallax thing that you may change frequently. • White baseboards will mess up a
Stamp serial pins must be removed. light sensor.
• Use a socket for a fixed resistor that
• Sharp GP2D02 outputs at values you may occasionally change. • Motor Leads — Twist the wires of
from 35,000 to 50,000. The higher the your motor leads together. This forces
value, the closer the object. • Printout — Physically print out a the magnetic fields to cancel each
To convert to a usable value: hardcopy of your program no matter other out.
how long it is. It is much easier to
Val02 = Val02/100 max 255 debug a program when you can hold • Mix sensor types for robust object
Range = 255 to val02 the entire program in your hands detection. You can never have too
Range = Range/4 (in inches) rather than scrolling up and down a many sensors.
window, looking for mistakes.
The above gives a rough measurement, • Use both high µF capacitors for
in inches, that is returned in the Range • If you get in over your head and can- power-spike filtering and low µF for
variable. not find the error in your code, go back high-frequency spikes across the CPU
a major revision or two and make sure power input; 1000 µF and 0.1 µF.
• GP2D02 will output a maximum your robot is still working. It is possible
value when an object is closer than its you don’t have a software error, but • Separate battery packs are recom-
minimum range of detection. have developed a hardware error. I mended for noise filter problems.
went through five major revisions and
• Bumper switches are a necessary evil. scores of minor changes, and all of a • Use stranded wire for anything that
Even your best remote sensor design is sudden, my robot quit turning one moves. Solid-core wire can break easily.
going to fail in some situation? In this direction. I went nuts going over the
case, a mechanical bumper switch may software, trying to find what the latest • Keep high-power and low-power
save you endless grief. error was I had made. It turned out that wire circuits separated, if possible.

Run Cool.

Too Much Heat?


Circle #102 on the Reader Service Card.
SERVO 05.2005 39
Barlow2.qxd 4/5/2005 9:32 AM Page 40

A PRIMER FOR THE NEW ROBOTICIST


• Color-code your wiring and stay con- about. Function is far more important melts easily and is not recommended.
sistent in all your designs: red for than looks.
power, green/black for ground, yellow •Solder all permanent wire connec-
for signal. • Design for easy repair. You will be tions. Tape, wire nuts, and other con-
tearing your robot apart many times nections may come loose.
• Use color-coded wire for all wire during the design phase. Make life eas-
runs. This makes troubleshooting much ier on yourself as much as possible. • Butt Splice — Use quality butt splices
easier. and ring terminals. Cheap terminal kits
• Rugged Design — Make your robot will fail every time. Tug on your crimp
• Keep all your replaceable sensors sturdy enough to handle household to be sure it is tight.
color-coded, as well. It will be easier to abuse. Almost all small motor systems
swap them with troubleshooting. can handle three to four pounds, so • Fuse — Use a fuse or circuit breaker
use that to your advantage. on any high-power load circuits. Rate
• Use quality connectors and battery the fuse for only the maximum amper-
packs. I have lost tremendous amounts • Expansion — Try to think ahead for age expected.
of time struggling with cheap connec- future improvements. Leave room on
tors and battery holders. your circuit board for additional com- • Organize all your spare components
ponents, and make a large robot base. into parts bins and label them.
• Workbench — Maintain a large clut- Don’t paint yourself into a corner, so
ter-free workbench. This can make to speak. • Pre-test — Test your sensors on a
more of a difference than it may seem. bench first and write down what they
• Replaceable battery cells are better output before installing them into the
• Test leads — Use only quality test for beginner designs than sealed bat- robot. This will also help you program,
leads. I cannot tell you how many times tery packs. A sealed pack can lose one because you will know what your sen-
a test lead has failed on me, and I cell and cause many headaches. sors are actually doing.
thought the robot was bad.
• Switch — Use a separate switch for • Make a portable sensor and CPU on
• Salvaged verses New Parts — If in the motor and the CPU. It is handy to a breadboard. Carry this around and
doubt, throw it out. Sometimes it does turn off the power to your drive motors test various surfaces in your home.
not pay trying to work with an old part and yet still run your CPU/sensors Find out where you may get odd
from your junk bin. for testing. reflections.

• Beauty — The overall look of your • Heat Shrink — Use quality heat • Place yourself in your robot’s shoes.
robot should be the last item to worry shrink. Bargin store-type heat shrink You cannot expect to program your
robot to do better with sensor informa-
tion than you can. If your robot only
RESOURCES returns a single ping in a certain situa-
• Seattle Robotics Encoder: www.seat Subsumption.htm tion, what would you do if that was all
tlerobotics.org/encoder/index.html you knew?
• SuperDroid Robot Kits:
• Battery Bus Supply: Keith Payea www.superdroidrobots.com/index.htm • Expect your robot to fail at another
www.seattlerobotics.org/encoder/ person’s house. I can almost guaran-
feb97/powerup.html • Tracy Allen’s BASIC Stamp Application
tee it will not perform like it does at
Notes:
your home. This may be caused by
• Acroname: Good source of robot www.emesystems.com/BS2index.htm
parts and sensors. lighting, floor material, or color of
www.acroname.com • Zagros Robotics: cabinets, etc.
www.zagrosrobotics.com
• Atom Microprocessor: • Display the output from your sensors
www.basicmicro.com • IC Master: http://icmaster.com on your robot’s LCD screen. You can
watch the output values and see why a
• Sensors: Brooke’s Sensors Page. • Online Conversions: robot may not detect an object.
www.pacificsites.com/~brooke/Sensor www.sciencemadesimple.com/conver
s.shtml#Compass sions.html • Early in your design, try not to waste
I/O ports. I/O ports are to be hoarded
• Subsumption Architecture: • Seetron LCD Displays and Electronics: at all times. If you plan for it, you can
www.restena.lu/convict/Jeunes/ www.seetron.com use a multiplex circuit.
40 SERVO 05.2005
Barlow2.qxd 4/5/2005 9:33 AM Page 41

PART 2: Common Errors in Building Robots

• Do not waste memory or stack noise, use three 0.1-µF capacitors 11. Pull-up and Pull-down Circuits
space. Do not use a word declaration across motor leads. Tie one capacitor
when a byte will do the same job. across both leads and attach the 12. 4051 Multiplex — Add additional
second and third capacitor from I/O ports to a CPU using this chip.
• Multiple Sensors and Types — One each terminal to the metal case of
thing that all roboticists find out in the the motor. 13. 4052 Multiplex — Dual-channel
long run is that the more sensors you multiplex for SRF04 Sonar.
have, the better your crash avoidance 3. Battery Bus Supply — Separate
will be. These sensors should be of battery packs are recommended but I hope this has not overwhelmed
mixed types, as well. not always necessary. There is a very you with the many problems that may
On my latest robot, I used four good article online at Seattle Robotics develop during a robot build.
SRF04 sonars, one GP2D02 IR range (www.seattleroboics.org) called Perseverance is one of the most useful
sensor, six IR edge sensors, and three “Power Grounding and Noise Problems skills a roboticist may have. Use this
light sensors. The combination of all of in Mobile Robots,” by Keith Payea. article as a guide for your designs that
these sensors makes a very robust plat- you can build on.
form. I also have a light sensor and a 4. IR 555 timer circuit — This gener- Always remember, it is just as use-
GP2D02 mounted on a rotating servo ates 38 kHz for infrared. ful to record your errors as it is to
head. I can swivel this head to look for record your working designs. Mark
objects around the robot. Trying to 5. I/O PIN Sharing — Always share I/O articles in SERVO with sticky notes so
make your robot crash free with a sin- pins with two sensors. you can find them in the future. Visit
gle sensor is a fruitless endeavor. websites and read about other
6. IR Detection Tool Schematic — people’s designs.
Useful Circuits This is useful to see if your IR generator Your friends and other builders can
is outputting a waveform. supply many more tips, as well. I
Over the years, I have collected encourage you to keep a list of all of
these circuits from various sources. I 7. CDS Cell — This connects to an A/D these hints and record them in a note-
have found them to be very handy for port on your CPU. book. Above all, do not become dis-
design and testing purposes. couraged by this challenge. Thousands
8. Servo Test Circuit — This is useful of people every day around the world
1. LM2940 Voltage Regulator — To for testing servos. are designing robots, and so can you.
run from a six-volt-battery pack, you The robot community is always willing
must use a LM2940 voltage regulator, 9. H-bridge Circuit — These chips may to offer you advice and design tips. I
as a 7805 drops too much voltage. be stacked for additional amperage. encourage you to be willing to ask
many questions of others, but above
2. Motor Noise — To prevent motor 10. LED Circuit all, have fun. SV

SERVO 05.2005 41
Grau4.qxd 4/5/2005 9:38 AM Page 42

by Steve Grau

O ccasionally, every robot needs to get away from the grind


of doing the tedious and hazardous jobs we humans
assign to it. Our robot, which we’ve been developing for a
taking our own road trip.
When we leave on a vacation, we usually have a plan in
mind that includes places we want to go. Often we don’t do
few months now, is able to keep track of its location and nav- a lot of detailed planning, so we aren’t sure how long it will
igate from place to place. Now, let’s program it to take a road take to get to each of our destinations. We just go to as
trip, so it can have a little vacation. As a metaphor for pro- many places as time permits and then head home. As we
gramming our robot, let’s consider how we might go about travel, we generally follow the most direct route to our next
stop. We don’t attempt to make our plans so detailed
Behavior Trigger Priority that it includes every other car, obstacle, or hazard we
might encounter along the way. This would require
Avoid running into things Obstacle in the way 1
information that we don’t have, and even if we could
Return home Vacation time up 2 obtain the information, it would take an inordinate
Head to first stop Haven’t gotten there yet 3 amount of time to do the necessary planning. Instead,
Head to second stop Nothing more important to do 4 we just leave it up to our driver to look out for (and
react to) hazards along the way.
Table 1. Simple Behaviors. We will use a behavior-based control approach to
program our robot to take its vacation.
Figure 1. Class Diagram. With behavior-based control, the robot’s
control program arbitrates among a col-
lection of simple behaviors, combining
them into a more complex overall behav-
ior that governs the robot’s actions. The
key is to identify a set of simple behaviors
that will combine to create the desired
overall behavior. In addition, we must
also identify the circumstances that trig-
ger each simple behavior and determine
the relative priority of the behaviors.
Using the vacation metaphor, the four
simple behaviors listed in Table 1 will
allow our robot to take a road trip with
two stops.
Conveniently, the RoboJDE™ class
42 SERVO 05.2005
Grau4.qxd 4/5/2005 9:40 AM Page 43

PART 4

library, which comes with the IntelliBrain™-Bot, Quantity Description Part Number Source
already provides a BehaviorArbiter class and a
2 Sharp IR range sensor GP2D12 www.junun.org
behavior interface. We will build upon these and
the classes we created in the previous articles to 2 Three-pin JST cable www.junun.org
implement the class diagram shown in Figure 1. 2 Three-circuit housing WM2801-ND www.digikey.com
This will require building three new behavior class- 6 Crimp terminals WM2555-ND www.digikey.com
es: AvoidBehavior, ReturnHomeBehavior, and
1 Universal crimp tool WM9999-ND www.digikey.com
GoToBehavior. These classes will implement the
behavior interface so we can use them with the 1 Wire stripper Hardware store
BehaviorArbiter. We will also need to create a 1 Phillips head screwdriver Hardware store
new class that we will name “vacation” that will 2 One-inch corner braces Hardware store
initialize everything and plug into the function
selection mechanism we created in the first article 4 4/40 1/4-inch screw Hardware store
in this series. 4 4/40 washer Hardware store
4 4/40 nut Hardware store
Avoiding Collisions Table 2. Range Sensor Parts and Tools.
Crash, bang! Our robot has just had another
“fender bender,” this time with Johnny’s backpack that he By selecting the “Do Nothing” function we created in a
dropped on the floor, as he made a beeline from the front previous article and turning the thumbwheel to view the
door to the cookie jar. With all the effort we’ve put into build- range finder screen, we can view the sensor readings while
ing our object-oriented, Java-programmed, multi-threaded, the robot (you guessed it!) does nothing other than periodi-
re-usable software, our robot still can’t help but crash into cally updating the user interface. By moving an object in
anything dropped in its path. front of each sensor, we see that the sensors produce the
Imagine leaving on a vacation in your brand new car highest reading (around 500) when the object is about three
with the latest top-of-the-line navigation system. No matter inches away. The reading drops as we move the object fur-
how carefully you stare at the navigator’s display and follow ther away from the sensor. The sensor reading drops to its
its verbal instructions, it’s not likely you’ll get very far if you minimum value, near zero, once the object is about 30 inch-
don’t look out the window to avoid objects — other cars and es away. We can also move the object from side to side to
pedestrians — the navigation system doesn’t know about. determine the field of view of each sensor.
Similarly, our robot isn’t going to be able to avoid crashing
into things if it doesn’t look where it is going and steer AvoidBehavior Class
around obstacles in its path.
We will solve this problem by adding two Sharp GP2D12 Now that our robot can see when it’s about to collide
infrared range sensors to our robot to enable it to see obsta- with something, we need to add software that will allow it
cles. Table 2 lists the parts and tools we’ll need to add the to react quickly to avoid a collision. The AvoidBehavior class
sensors. They are shown in Figure 2, while Figure 3 shows the
IntelliBrain-Bot with the sensors attached. Figure 2. Range Sensor Parts.

Testing, Testing, Testing ...


The first thing we always want to do when adding new
sensors is test them in isolation. If we don’t do this, our robot
will undoubtedly not work as we expect, and it will be very
difficult to determine the reason why. By first testing the sen-
sors separate from the rest of the system, we will verify they
work correctly and also validate (or invalidate) assumptions
we made about how the sensors should work.
Fortunately, we can easily test the new range sensors by
adding another screen to our robot’s user interface. We will
create a trivial class, RangeFinderScreen, to display the read-
ings of the sensors on the LCD screen. The following two-line
method samples the sensors and updates the display:
public void update(Display display) {
display.print(0, “L Range: “ + mLeftRange.sample());
display.print(1, “R Range: “ + mRightRange.sample());
}

SERVO 05.2005 43
Grau4.qxd 4/5/2005 9:41 AM Page 44

Creating Reusable Robotic Software Components

The setActive method activates or deactivates the behav-


ior. If the behavior is inactive, it must not attempt to control
the robot, but if the behavior is active, it should take control
of the robot. The BehaviorArbiter decides which behavior
should be active at any point in time. This method of behav-
ior arbitration relies on the individual behaviors working
cooperatively at the direction of the BehaviorArbiter to
achieve the desired overall behavior.
To follow this model, the AvoidBehavior class will deter-
mine if there is an obstacle ahead by sampling the range sen-
sors in its poll method. If the behavior has been activated, it
must take control and avoid a collision with the object it
sensed. We will compare the sensor readings to a threshold
value to determine if there is an object that needs to
be avoided.
If the reading of either sensor is higher than the thresh-
old, the behavior will want control of the robot. We will use
the following code to implement this:
Figure 3. IntelliBrain Bot With Range Sensors Attached.
public boolean poll() {
boolean wantControl = false;
will do this. It will have the highest priority behavior, so if a
collision is imminent, it will be given control of the robot so int leftValue = mLeftRange.sample();
it can take evasive action. int rightValue = mRightRange.sample();
Each behavior must implement the behavior interface so
it can interface with the BehaviorArbiter class. The behavior if ((leftValue > mThreshold) || (rightValue > mThreshold))
wantControl = true;
interface defines two methods:
if (mIsActive) {
public boolean poll(); // take control
public void setActive(boolean isActive); :
}
return wantControl;
The poll method is called periodically by the }
BehaviorArbiter to poll whether the behavior wants control
of the robot. If the behavior has previously been activated, If the behavior was previously activated, the poll
the behavior may also issue control commands to the robot method will also take control of the robot. There are many
in the poll method. The poll method returns true if the behav- possibilities as to how the software can go about navigating
ior wants control of the robot. the robot around an object. We will simply program the
robot to turn a pre-defined angle to head away from the
Figure 4. Collision Avoidance. object and drive for a pre-defined period of time, as shown
in Figure 4.
The following is the code that will execute when the
behavior is active (below the “take control” comment in the
previous code snippet):

if (wantControl) {
// object ahead, turn away
Pose pose = mLocalizer.getPose();
if (leftValue > rightValue)
mHeading = pose.theta - mTurnAmount;
else
mHeading = pose.theta + mTurnAmount;
mNavigator.go(mHeading);
mHoldUntil = System.currentTimeMillis() + mHoldTime;
}
else if (System.currentTimeMillis() < mHoldUntil) {
// object out of view, continue driving away
wantControl = true;
mNavigator.go(mHeading);
}
else
mNavigator.stop();

44 SERVO 05.2005
Grau4.qxd 4/5/2005 9:42 AM Page 45

PART 4

If the object is in view, as indicated when


wantControl is true, the code queries the localiz-
er to get the current heading, then chooses a
new direction to head in. The robot will turn
clockwise if the object is closer to the left sensor
or counterclockwise if it is closer to the right
sensor.
If the object is no longer in view, but the behav-
ior’s hold timer hasn’t expired, the robot will contin-
ue in the same direction. Otherwise, it will stop and
wait for another behavior to assume control.
Note, the navigator’s go method is asynchro-
nous, so it sets a new heading and returns imme-
diately. The navigator, which is running on a differ-
ent thread, will continue to drive the robot in the Figure 5. Path With No Obstacles.
specified direction until told otherwise.
public void moveTo(float x, float y, NavigatorListener
Listen to Your Navigator! listener);
public void turnTo(float radians, NavigatorListener listener);

The GoToBehavior class must implement the behavior


interface just as the AvoidBehavior class does. Fortunately, Finally, we must implement these two methods in the
the navigator provides the moveTo method which provides DifferentialDriveNavigator class, a class we developed in Part
just what GoToBehavior requires to control the robot. The 3 of this series. These are minor changes, so we won’t go
GoToBehavior class’ poll method can just tell the navigator into the details here. You can learn the details by reviewing
where it wants to go and leave it up to the navigator to do the source code, which is available online (see Resources).
the rest. Now we have everything we need to implement the
However, the poll method cannot wait around while the GoToBehavior class. The essence of the GoToBehavior class is
robot travels to its destination; otherwise, the BehaviorArbiter contained in two methods mentioned, poll and
would not continue to run, the AvoidBehavior class’ poll navigationOperationTerminated. As it turns out, these meth-
method would not execute, and the robot would run into ods are trivial:
obstacles instead of going around them. We must develop an public boolean poll() {
alternative way for the navigator to notify the GoToBehavior if (mCompleted)
when the moveTo operation is complete or has been return false;
cancelled.
We will solve this problem by extending the navigator if (mIsActive)
mNavigator.moveTo(mDestinationX, mDestinationY, this);
interface and adding another interface, NavigatorListener.
The NavigatorListener interface simply needs to define a sin- return true;
gle method that gets called when a navigation command }
completes or is cancelled, as follows:
public void navigationOperationTerminated(boolean completed) {
mCompleted = completed;
public interface NavigatorListener { }
public void navigationOperationTerminated(boolean
completed);
} Figure 6. Path With Obstacles.

The “completed” parameter that is in the


navigationOperationTerminated method will be
true if the operation completed and false if it was
terminated before it completed.
The GoToBehavior will listen to the navigator
by implementing the NavigatorListener interface.
This will allow it to be notified of the completion
or cancellation of the commands it issues to the
navigator. We must also extend the navigator
interface to provide a mechanism to tell the nav-
igator which listener to call. We will add the fol-
lowing two variants of the moveTo and turnTo
methods for this purpose:
SERVO 05.2005 45
Grau4.qxd 4/5/2005 9:43 AM Page 46

Creating Reusable Robotic Software Components

The “this” parameter in the call to moveTo tells the navi- objects get created and the BehaviorArbiter object gets
gator that the object calling the moveTo method — an initialized:
instance of the GoToBehavior class — is the object whose
navigationOperationTerminated method should be called public Vacation(Localizer localizer, Navigator navigator,
AnalogInput leftRange, AnalogInput rightRange,
when the operation completes or is cancelled. int priority) {

Home Beckons ... Behavior behaviors[] = new Behavior[] {


new AvoidBehavior(localizer, navigator, leftRange,
Finally, to complete our collection of simple behaviors, rightRange, 200, 0.7f, 3000),
new ReturnHomeBehavior(navigator, 45),
we must implement the ReturnHomeBehavior class. This class new GoToBehavior(navigator, 60.0f, 0.0f),
is similar to the GoToBehavior, except it doesn’t ask for con- new GoToBehavior(navigator, 30.0f, 30.0f),
trol of the robot until after it is time to head home and, after };
it completes the trip home, it terminates the program by call- mArbiter = new BehaviorArbiter(behaviors, 200, null);
mArbiter.setPriority(priority);
ing System.exit: }

public boolean poll() {


if (System.currentTimeMillis() < mReturnHomeTime)
Here we create a list of four behaviors in priority order.
return false;
We pass a reference to the navigator object to each behav-
if (mIsActive) ior. The AvoidBehavior also requires references to the local-
mNavigator.moveTo(0.0f, 0.0f, this); izer and the left and right range sensors. We set the
AvoidBehavior object’s obstacle detection threshold at
return true;
} 200, which will cause the behavior to activate if an obsta-
cle is within approximately 11 inches of either range
public void navigationOperationTerminated(boolean completed) { sensor. The final two parameters to the AvoidBehavior
if (completed) constructor control the turn angle, 0.7 radians (around
System.exit(0);
} 40 degrees), and the hold time when driving away, 3,000
milliseconds.
The ReturnHomeBehavior constructor’s second parame-
Road Trip! ter is the number of seconds the robot is allowed to travel
before it returns home.
So now we have almost everything we need for our We use two instances of the GoToBehavior to define the
robot to take a road trip. All we need to do still is create two destinations we want the robot to travel to — (60, 0) and
a class to tie the behaviors together and plug the new vaca- (30, 30).
tion function into the function list in the user interface. The The order in which the GoToBehavior objects are placed
vacation class will do this. All of the interesting code in this on the behavior list is the order in which the robot will go to
class is in the constructor, which is where the behavior the particular destinations. Once the first GoToBehavior
object on the list has been satisfied by the robot reaching the
behavior’s destination, the behavior will cease to request con-
RESOURCES trol of the robot. Hence, the next GoToBehavior on the list
will gain control, and the robot will head toward the next
RidgeWarrior II Source Code destination.
www.ridgesoft.com/articles/ridgewarriorii/ridge Lastly, we update the list of functions in the
warriorii.htm RidgeWarriorII class to add the vacation function:

IntelliBrain-Bot Kit Runnable functions[] = new Runnable[] {


new Vacation(localizer, navigator,
www.ridgesoft.com/intellibrainbot/intellibrainbot.htm leftRange, rightRange,
Thread.MAX_PRIORITY - 3),
WheelWatcher WW-01 Quadrature Encoders :
}
www.nubotics.com

Sharp GP2D12 Sensors Testing and Results


www.junun.org With the behaviors we’ve added, our robot’s vacation
plans are to visit two destinations, as shown in Figure 5.
Connector Hardware and Tools Testing reveals the robot does indeed follow a triangular
www.digikey.com path, though it does tend to drift from the path as
localization errors accumulate. Equipping the robot
46 SERVO 05.2005
Grau4.qxd 4/5/2005 9:43 AM Page 47

PART 4

with WheelWatcher encoders (see Part 2 of this series) basic behavior-based controls to our robot. By developing
significantly improves the accuracy with which it follows a few simple behaviors, we were able to program the robot
the plan. to carry out its previously planned vacation while avoiding
When unforeseen obstacles appear in the robot’s path, obstacles that were not included in the plan. These
as depicted in Figure 6, it is highly effective at avoiding them. classes are not tied to the specific mechanical characteristics
However, the robot does tend to drift further from its of the robot and therefore can be re-used to control other
planned course with the addition of more obstacles it has robots.
to avoid. In addition, we were able to make use of several
Adding more obstacles also makes it more difficult for pre-existing re-usable software components — Behavior and
the robot to find an unobstructed path through them. The BehaviorArbiter — from the class library included with the
placements of multiple objects, as well as the threshold IntelliBrain robotics controller.
and hold-time parameters to the AvoidBehavior, affect the The behavior-based control system will enable us, in
robot’s ability to find the shortest path to its next vacation the end, to create a more sophisticated overall behavior
destination. for our robot by adding more sensors and more behaviors.
Setting the object detection threshold too low causes So, stay tuned, as we will continue to build upon the founda-
the robot to be hyper-sensitive, which will make it react to tion of re-usable software that we have developed thus
objects that are far away. This makes it more difficult for the far ... SV
robot to find the gaps between obstacles and successfully
navigate through them. If there are multiple obstacles in
close proximity, the robot is more likely to take a circuitous ABOUT THE AUTHOR
path around them rather than a shorter path going between
them. Steve Grau has been developing software for over
20 years. He is the founder of RidgeSoft, LLC, and
Conclusion the author of the RoboJDE, a Java-enabled robotics
software development environment.
We have developed several new Java classes that added

Yes! The internet’s first and best


robotics source has been purchased
by Jameco Electronics, and we’re
committed to greatly expanding the
product line quickly!

Each month we’ll add hundreds more


new robotics products. Plus we’ll
We’re continue to supply favorites like
Back! Muscle Wire®, the OctoBot Survivor™
robot and more.

Be sure to visit us online at

www.RobotStore.com
Robotic Arm Kit
(No. 4-523)
or call

1.800.374.5764
Twin Motor Gearbox Kit
(No. 3-709) ...and see what’s changed!

For All Your Robotic Needs!


Circle #111 on the Reader Service Card.
SERVO 05.2005 47
Geer.qxd 4/5/2005 11:39 AM Page 48

THE LOW-DOWN:
WEIGHT:
85 to 120 pounds
by David Geer
MAXIMUM SPEED:
5.2 mph SWORDS (Special Weapons Observation Reconnaissance
MAXIMUM RUN TIME: Direct-action System) come with M16s, M240s, M249s, Barrett
4 hours 50 calibers, 40 mm grenade launchers, or M202 anti-tank rocket
REMOTE OPERATING systems. Grenade launchers come with six barrels. The bots can
DISTANCE: also be armored and equipped with sensors for heat, gas,
Up to 1/2 mile chemicals, and radiation to know when they are in environments
that might be a danger to others or even themselves.

1. Zoom camera
2. Microphone
3. Night-vision camera
4. Lithium-ion battery
5. Antennas
6. Machine gun
7. Gunsight camera
8. Ammo can
9. Rear camera
10. Heavy-duty tracks

48 SERVO 05.2005
Geer.qxd 4/5/2005 11:41 AM Page 49

U
S troops will carry, wield, and con- technology like the SWORD so that a duty tracks and a lithium-ion battery
trol these SWORDs as the soldiers full third of our ground combat vehicles for power come standard.
of old did with their less technical will be unmanned as early as 2015, a
weaponry, insinuating them into tight mere 10 years away. Arsenal
spots with the finesse of a master fenc- As we’ll see with the SWORD —
ing instructor. That’s about as much as just one of the iterations of the TALON SWORDS come with M16s,
they have in common with their fencing line of robots — not all UMVs are big. M240s, M249s, Barrett 50 calibers, 40
counterpart. These SWORDs are small But, if we were to judge military fitness mm grenade launchers, or M202 anti-
tank-like robotic defenders with more and tenacity based on size alone, nei- tank rocket systems. Grenade launch-
than one cutting edge. ther the SWORD nor any of the ers come with six barrels for six times
The SWORD robot is one of the lat- TALONs would qualify. In some cases, the effectiveness. The bots can also be
est offspring of the TALON military, the SWORD wouldn’t even make the armored and equipped with sensors for
police, and emergency rescue robot fighting weight at 85 to 120 pounds. heat, gas, chemicals, and radiation.
line of products developed by Foster- But like the law in Walking Tall, it’s This allows them to know when they
Miller, in Waltham, MA. really the size of the stick and the force are in environments that might be a

Our soldiers don’t carry the SWORD for nothing!


There is a move away from manned behind it rather than the size of the bot danger to others and even themselves.
vehicles and aircraft to unmanned vehi- (although neither The Rock nor Joe Even though they are expendable,
cles (UMVs) and unmanned air vehicles Don Baker were small fries). we don’t want to allow them to be
(UAVs) across the entire military. In the Our fighting men and women can blown up every chance they get! These
wave of this trend, robotic attack vehi- utilize this fighting mobile war robot little warriors games are waged using
cles are being employed, as unmanned equipped with a zoom camera, micro- an Operator Control Unit (OCU) com-
efforts are expected to save lives and phone, antennas, gun sight camera, plete with split-screen viewing, wireless
lower the general costs of waging war, machine gun, and ammo can. control, and a joystick. Though the
while making combat more effective. The SWORD can be outfitted with SWORD’s main job will be reconnais-
Emanating from the President, the numerous weapons, configurations, sance missions, it is loaded for bear or
Senate, and the Pentagon is a mandate and as many as seven cameras in com- anyone else that stands in its way.
in the form of the Defense Authorization binations such as night vision, wide- Remote operation makes it possi-
Bill for Unmanned Vehicles. angle, thermal, and zoom abilities. ble to put up to a half mile between
This bill requires that our armed Other options include additional our troops and land-based enemy
forces field unmanned, radio-controlled front and rear cameras, while heavy- forces. It can run for four hours with a

Other TALONs and Their Talents


SWAT Team TALONs Move to the Frontline in Protecting the Public!
Special Weapons and Tactics (SWAT) is about controlling The robots can be transported in the trunk of any SWAT
difficult policing situations and emergencies. It’s not about vehicle and can be controlled wirelessly from a safe distance
losing the lives of SWAT team members or innocent citizens. with a handheld or wearable RC unit. They cannot only be
TALONs help mitigate the risks involved in maintaining carried by car, but by backpack as well.
control and producing positive outcomes. For this scenario, These tough TALONs make great search and rescue
TALONs come equipped to do recon on the frontlines while recruits, too.
SWAT members remain secure. Whether responding to fires, emergencies, or search and
TALONs come with up to 80 different payloads and rescue missions, the TALON can stand the heat, seek the vic-
attachments for countless configurations for any field situa- tims, and save the day. Initial site assessments are enabled safe-
tion. TALONs fulfill SWAT’s needs for nighttime surveillance, ly and quickly with these speedy bots that can roll with the
two-way communications, and a variety of environmental speed of a human being at a full running gate.
sensors. TALONs go safely into confinements like holes in the
TALONs can break down doors, loft smoke and other ground, walls, and burning buildings to determine the best
grenades, and maneuver over almost any domestic terrain. recourse for victims and property. In many cases, it has the
These rugged, tracked anti-terror machines climb stairs, endure ability to also carry them out. These nearly unstoppable
threatening environments, and respond with deadly force heroes can even swim underwater to get to where they’re
when there’s just no other way. needed most.

SERVO 05.2005 49
Geer.qxd 4/5/2005 11:42 AM Page 50

and Afghanistan. Foster-Miller, Robots,


The SWORDS are expected
to be on the ground, in action, and Nanotechnology
and in charge in coming months Foster-Miller is a nanotechnology
(if not by the publication of this firm as well as a robotics vendor. Small
article). robots are just one of their many areas
SWORDS are precision per- of expertise. With reference to SWORDS,
fect marksmen that fearlessly however, the rate of improvement and
advance on the enemy, knowing miniaturization of various technologies
nothing of retreat unless their affects the speed at which they develop
operators decide to move them and grow (or shrink).
in a different direction. I know Moore’s Law in relation to
SWORDS are light and easi- the size and speed of computer chips and
ly carried from combat site to their rate of improvement over previous
combat site, and their compara- models (technology). Basically, Moore’s
bly miniscule statures make Law (coined by Gordon Moore who
them hard targets for unfriendly formed Intel) has reliably stated that the
This Operator Control Unit (OCU) is the SWORD’s fire. SWORDS can go most any- number of microcomponents that can be
wireless remote control fitted with a hard-shell where a soldier can, with as placed in a microchip at the lowest man-
case. Notice the antenna, numerous controls for
driving and manipulating the SWORD combat much speed. ufacturing cost doubles every 18 months.
robot, and the multiple split screens for viewing SWORDS can explore caves Computer chips are certainly a fac-
everything the robot’s cameras pick up. and territory where the enemy tor in smaller, smarter, and deadlier
may be lying in wait for our SWORDs and combat robots. Closer to
max traveling velocity of 5.2 mph. At a fighting men and women. This mobile the point, nanotechnology is getting
cost of around $230,000.00 per unit, warrior is increasing in capacity and smaller, cheaper, and more functional
that’s not too pricey (as government function while decreasing in cost. at a rate constrained by little more than
spending goes). SWORDS need little care and no train- the amount of funding applied to it.
The military is going lighter and ing (but their operators do). Case in point, SWORDS are now
more powerful. It’s going meaner as Though hundreds of billions of dol- manufacturable at little more than half
well as leaner, employing the Small lars are being poured into a project the cost of the production of the first
Mobile Weapons Systems (SMWS). called the Future Combat Systems proj- models. In so far as smallness is consid-
These TALONS and the SWORD are the ect (FCS), the SWORD doesn’t fall ered as an advantage, they can certain-
ground patrol answer to what we’ve under its umbrella, according to ly go much smaller as they grow more
seen in the way of UAVs at work in Iraq Cynthia Black of Foster-Miller. intelligent, precise, and overpowering.
Though the company wouldn’t dis-
cuss specific materials that go into
SWORDs, Foster-Miller is a leader in
advanced materials discovery. You can
be sure that it’s hardly mere steel that
enables these virtually unstoppable
bots to charge on in the face of attacks
that would end a flesh and blood
combatant’s military career. SV

Resources
1. Foster-Miller, SWORD vendor
www.foster-miller.com/

2. SWORD (a.k.a., Weaponized Talon)


data sheet
www.foster-miller.com/literature/
documents/Weaponized_Talon.pdf

3. Other Foster-Miller robotics


technologies
www.foster-miller.com/t_r_military/
relatedprojects.htm
Circle #63 on the Reader Service Card.
50 SERVO 05.2005
Davis2.qxd 4/5/2005 9:46 AM Page 51

by Lester “Ringo” Davis

Last month, I left off with the CNC machine mostly assembled but not
moving under any type of control. This month, I’ll talk about the steps
needed to cut out a simple part. This will include the electronics needed to
interface the steppers to the computer and the software to drive them.

he cutting tool you decide to use will depend on the PC and uses a little logic and some flip flops to turn
T how fast you want to cut, how tough the material is
that you want to cut (i.e., plastic or metal), and how
on the transistors for the steppers. I’m using Uni-polar
stepper motors, which means that the current only trav-
much you want to spend. Several options are a Dremel els in one direction. As a result, I only need four transis-
tool, a RotoZip tool, or a Porter Cable motor. I’m start- tors for each stepper. Bi-polar steppers change the
ing off with a Dremel because it is the easiest, cheapest, direction of the current in a push-pull fashion. This gives
and available everywhere. I made a couple brackets to them more torque but makes them a little more compli-
hold the Dremel as shown in Figure 1. The top hole was cated to control. One thing to mention is that the four
cut to fit exactly, and the bottom hole was slightly larg- transistors are turned on in a sequence. If the wires
er to allow the tool to be easily inserted. The bracket is from the steppers are in the incorrect order, the step-
then tightened to hold the tool securely.
When it comes to interfacing steppers, there are FIGURE 1. Closeup of machine cutting.
a lot of options. You can buy controller boards from
many sites on the Web, you can build your own board
using a stepper motor controller chip, or you can build
one out of various parts. Since the purpose of build-
ing this CNC machine was to do it all myself, I decid-
ed to go for the last option and build the board out of
various parts. While I was doing some research on the
Web, I found a forum on CNCZone.com, which turned
out to be a great source of info on boards, as well as
what software to start with.
Since I’m a fan of Eagle (www.Cadsoftusa.com)
for board schematics and layout, I looked for boards
that have already been designed. I found one and
downloaded the file. The file is called OSuni-3(317).sch,
and if you find the designer, thank him for me.
A picture of the completed board is shown in
Figure 2, while the schematic is shown in Figure 3. As
you can see, the schematic is not very complicated.
The printer port takes step and direction signals from

SERVO 05.2005 51
Davis2.qxd 4/7/2005 8:43 AM Page 52

A Hobby CNC Milling Machine

jumpers to allow the direction to be inverted in case the


software you use does not allow this.
I’m using a five-volt, 30-amp power supply purchased
from a local supplier. This is overkill on the amperage side
of things, since each stepper only needs about two amps.
Better safe than sorry.
At this point, the steppers are spinning and the parts
of the CNC machine are moving like they should, so it is
time to try to do something useful.
On the software side of the project, there are lots of
options. There are three different pieces of the software
puzzle that must be put together to get everything to work.
On the highest level, there is the CAD program. This is a
drawing program that you use to draw the parts you want
to cut out. Then there is the CAM program that takes the
CAD drawing and generates the path the tool will take while
cutting. The CAM software generates a list of instructions
FIGURE 2. Stepper interface board. called G-Code. The lowest level of software is the G-Code
interpreter. This reads the list of instructions and sends out
pers will not turn but just dance back and forth instead. It the correct pulses to the stepper controller board. You could
takes a little experimentation to get the order correct. I fig- actually only use the interpreter and write G-Code by hand,
ured out the order by using a signal generator set to send but that would not be fun or easy.
out a pulse of about four hertz. I tried different combina- I looked around for software I could demo to test the
tions until the stepper started to spin. The board also has machine, and there is plenty of stuff out there. Experiment

FIGURE 3. Stepper interface schematic.


VDD
VDD Q12 S7-2
IC8A
47k

IRFZ44
R4

IC3B 6 S Q 1
R10

VDD 5
IC3D
Ik

XDIR 10k IC1D


12
e 11 6 e 4 5
3
D
CLK
+V S1-2 INOUT 1 2 13 4030N
JP3 4
Power + C6 R Q\ 2
R26

C2 ADJ R5 4030N S7-1


IK

GND S1-1 C1 C3 C8 C7 74HC14N 1 IC3C Q11


10uf .1uf IC2 C11 2 8 4013N IRFZ44 X Axis
LM317 .1uf .1uf .1uf 10uf 220p Dir 9 e 10
GND
4030N
R27
3.1K

GND S6-2
GND Q10
IRFZ44
GND VDD
IC8B
IC3A 8 S Q 13
1
R3

VDD

VDD

VDD

VDD

VDD
VDD

S6-1
VCC
330

e
R11

3 9 D
14

14

14

14

14

14
14

1k

2 11 CLK Q9
GND 5V IC1P IC7P IC5P IC8P IC3P IC4P IC6P XSTEP IC1E 4030N IRFZ44
10k
LED1
PWR

3 4 10 R Q\ 12
GND

VSS

VSS

VSS

VSS

VSS
VSS

R6
7

7
7

74HC14N 4013N
C4
220p GND
GND VDD GND
VDD GND S3-2
IC5A Q4
47k

VDD 6 S IRFZ44
R1

120K 5 IC4B Q 1
R12

IC4D
1k

R30 R28 YDIR 10k IC1B


12
e 11 6 e 4 5 D
3 CLK
11 10 13 4030N
Q13 JP1 4030N 4 R Q\ 2
330 R7 1 S3-1
PROBE

2N3904 LPT 74HC14N IC4C Q3


R29 C5 2 8 4013N IRFZ44
XDIR

10K
14
15
1
2 220p Dir 9 e 10
GND Y Axis
Logic Probe 16 3 XSTEP 4030N
17 4
D5 D2

GND S2-2
LED2

18 5 YDIR YSTEP Q2
PWR

19 6 YSTEP GND IRFZ44


20 7
21 8 ZDIR VDD
22 9 ZSTEP IC5B
23 10
IC4A 8 S Q 13
GND 24 11 1
e 3 9 D
R13

25 12
S2-1
1k

13 2 11 CLK Q1
10k IC1A 4030N
VDD 13 12 10 R Q\ 12 IRFZ44
GND JP4
R17 1 R8
R18 74HC14N 4013N
R19 1k 2 C9 VDD GND
1k R20 3
1k R21 4 220p GND
R22 1k 5 VDD
6 S5-2
1k R23 7 GND IC7A Q8
47k

1k R24 6 S IRFZ44
Q 1
R2

R25 1k 8 IC6B
5
R14

1k 9
IC6D
e
1k

1k 10 12 4 5 D
ZDIR 10k 5
IC1F
6 JP2 13 e 11 6
4030N
3 CLK
R9 4030N 4 R Q\ 2 S5-1
GND 74HC14N 1 Q7
Limit Switches C10 2 8 IC6C 4013N IRFZ44
220p Dir 9 e 10
GND Z Axis
4030N
GND S4-2
GND Q6
IRFZ44
VDD
IC7B
1 IC6A 8 S Q 13
e
R15

3 9 D S4-1
1k

2 11 CLK Q5
ZSTEP IC1C 4030N
10k 9 8 10 IRFZ44
R Q\ 12
R16
74HC14N 4013N
C12
A larger, printable, PDF copy of this schematic can be 220p GND
GND
found on our website at www.servomagazine.com GND

52 SERVO 05.2005
Davis2.qxd 4/5/2005 9:50 AM Page 53

PART 2

and see what you like best. I settled on


Mach2 from www.artofcnc.ca/prod
uct.html as the G-Code interpreter and
Bobcad from www.bobcad.com/ for the
CAD/CAM solution. BobCad has both CAD
and CAM in one package which is conven-
ient. It will also import files form other CAD
packages as well, like Autocad, so it will
work with whatever CAD software you like.
I started with Mach2. After installa-
tion of the software, it is imperative that
you reboot for everything to work proper-
ly. The first thing you must do is go into
the configure menu and set the correct
port pins. This is where you tell the soft-
ware which printer port pin is assigned to
X-step, X-direction, and the same pins for
the Y and Z directions. You also need to
tell the software how many steps per unit
your machine has. This means how many
pulses do you send out to move, and this
can be configured in inches or metric FIGURE 4. BobCad screenshot.
units (mm).
My machine uses steppers that have 200 steps per rev- other is to use large wattage-ballast resistors in line with the
olution and a lead screw that has 10 turns per inch. This motors. The chopper is definitely the more elegant solution
means that it takes 2,000 steps to move each axis one and the one I’ll be switching to in the future.
inch, or one step to move each axis 0.0005 inches. Not too Once you have everything set up and working, you can
bad for a homemade machine. If you set this up incorrect- drive the cutting head around with the jog command and
ly, the parts you cut out will be the wrong size, either too cut simple shapes like squares. But that is not what we set
big or too small. out to do.
The last step is to set the rate at which the stepper will Start up BobCad, draw out some shapes, and gener-
move. The way I tested this was to pick a speed, then “jog” ate some G-Codes. I don’t have room here to go into detail,
the machine to see if it moves correctly. You can jog yours but you can quickly figure out how to draw lines, arcs, cir-
by using the arrow keys on the keyboard
and the page up/down buttons. Pressing FIGURE 5. Mach2 screenshot.
the left arrow, for example, should move the
cutting head to the left. If the head moves
the opposite direction, then you can go into
configure and reverse the motor directions.
If the motors make noise but don’t move or
move sporadically, then you may have the
rate set too high. Lower it and try again.
I ran into a problem here. As I said pre-
viously, I’m using a five-volt supply because
my motors are rated at five volts. Because of
this, I have to use a very slow feed rate in
order to not miss any steps. The solution to
this problem is to use a higher voltage on the
steppers, which would allow the steppers to
move faster, then the feed rate can be
increased. The problem with this is that the
motors will get hot if the voltage is too high.
There are a couple solutions to this problem,
as well. One is to use a “chopper” board that
pulses the voltage to the steppers, and the

SERVO 05.2005 53
Davis2.qxd 4/5/2005 9:51 AM Page 54

A Hobby CNC Milling Machine

FIGURE 6. Cutting the part. FIGURE 7. After the cuts. FIGURE 8. The finished part.

cles, and whatever else you need. After you draw some- and he gave me a file for a part used on his R1 robots. I
thing, you can select a part of the drawing and click the imported the G-Code into Mach 2 and could see the tool path
icon to generate the G-Code. You will see a list of the code on the screen. A screenshot is shown in Figure 5.
generated, and there is an example of the BobCad screen This is neat because you can see if the tool is going to
in Figure 4. After the G-Code is generated in Bobcad, you cut exactly what you want. I decided to try out the
can then load it into Mach2 and start the cutting process. machine by cutting a piece of expanded PVC. I first mount-
I wanted to make sure the part came out correctly, so ed a piece of high-density fiberboard to the machine as a
instead of using something I just drew, I used a drawing backing board and then the PVC on top of that. The rea-
from an existing product. son for this is so, when the cutter goes through the mate-
I contacted Jason from www.RoboticsConnection.com rial, it does not cut into the machine. I jogged the cutter to
the center of my material and used the “zero axis” button
to set everything at zero. Then I started the program and

D e s k to p C N C S o lu tio n s
watched the magic happen.
The material I used was fairly thin, so it bounced a little.
I held it down while it cut to smooth it out. I would not rec-
ommend doing this, as the cutter could easily slice a finger,
D e s k C N C

X T
but I really wanted to get a good first cut (see Figure 6). The
v e c to r cutting was slow because of my five-volt supply, but after a
few minutes the process was done. The part came out really
3 D C A D /C A M nice for a first try, and you can see where it cut into the back-

im s r v .c o m
ing board in Figure 7. The final part is shown in Figure 8.
So that is the complete story of my first CNC part.
There are several things I still need to do. I need to get a
S te p a n d d ire c tio n s e rv o d riv e s , 5 a m p 3 0 v d c higher voltage supply and a chopper controller board, so I
G lo b e p m d c s e rv o m o to rs w ith e n c o d e r s can use a higher feed rate to get things cut quicker. I also
D e s k C N C c o n tro lle r a n d s o ftw a re , (M S -W in d o w s ) need to decide how I will fasten down the material and
C N C C o m p o n e n t k its a n d a s s e m b le d sy s te m s backing board to the machine for future parts.
S u rfa c e s c a n n in g p ro b e a n d P o w e r s u p p ly k its For this first experiment, you can see that I used the
old standby, duct tape. I think, in the future, the backing

I M S e r v ic e
material will bolt onto the machine, and the material to be
cut will clamp onto the backing board.
P .O . B o x 1 4 2 , N e w H u d s o n , M I 4 8 1 6 5 A light built into the machine and a blower or vacuum
V o ic e : 8 8 8 -4 5 1 -1 6 7 0 will also make life easier. For making prototype parts,
engraving, or hobby stuff, this machine will work great. It
o r : 2 4 8 -4 8 6 -3 6 0 0
is probably not stiff enough for production runs, but then
again, it is made of plastic.
The schematics for the stepper controller are available
on the SERVO website (www.servomagazine.com) in
both Eagle and PDF formats.
Good luck and have fun. SV

54 SERVO 05.2005
ShowcaseMay05.qxd 4/5/2005 11:28 AM Page 55

Building Blocks
for Robotics

THOUSANDS OF ELECTRONIC
PA R T S A N D S U P P L I E S
VISIT OUR ONLINE STORE AT
www.allelectronics.com
WALL TRANSFORMERS, ALARMS,
FUSES, CABLE TIES, RELAYS, OPTO
ELECTRONICS, KNOBS, VIDEO
ACCESSORIES, SIRENS, SOLDER
ACCESSORIES, MOTORS, DIODES,
HEAT SINKS, CAPACITORS, CHOKES,
TOOLS, FASTENERS, TERMINAL
STRIPS, CRIMP CONNECTORS,
L.E.D.S., DISPLAYS, FANS, BREAD-
BOARDS, RESISTORS, SOLAR CELLS,
BUZZERS, BATTERIES, MAGNETS,
CAMERAS, DC-DC CONVERTERS,
HEADPHONES, LAMPS, PANEL • unique smart servos
METERS, SWITCHES, SPEAKERS, • controllers & software
PELTIER DEVICES, and much more....
• sensors
O R D E R TO L L F R E E Complete kits starting at $70
1-800-826-5432 www.garage-technologies.com
Ask for our FREE 96 page catalog

Robotics Showcase
Machine It Yourself &
Save...Guaranteed! 8lÛCYkl›ÛCgoÛ[gklÛ
Tired of PAYING for Machining?
Put a COMPLETE
]f[g\]jkÛ^gjÛ
MACHINE
SHOP
eglgjkÛ¬Ûk]jngk›
on Your
Bench Top!
Now 7
Models!

• 3 Tools in 1 – Lathe, Mill Drill


• Versatile – Machine Metals, Plastic, Mo re
• Precise – Built to tolerances up to
N`]]dNYl[`]j KD

0.0005 inc h ÝÛ <YkqÛafklYddYlagf


• CNC Compatible – Models ma nu factured ÝÛ Dg\]dkÛ[gehYlaZd]Ûoal`Û=mlYZY•Û
to easily adapt CNC systems
• EASY to Use – Full Instructions & >NJ•Û?al][Û¬Û?gZZa[gÛk]jngkÛ
Lifetime Tech Support Yf\ÛeYfqÛJgdYjZgla[kÛeglgjk
And ONLY the Smithy is... ÝÛ Lk]kÛklYf\Yj\Ûo`]]dk
• GUARANTEED to Pay for Itself or
Your Money Back! ÝÛ ;]Y\Ûj][cgfaf_•Ûg\ge]ljq•ÛklYddÛ
Get Your FREE FACT KIT! \]l][lagf•Û[dgk]\¤dgghÛ[gfljgd
Call Today KD

1-80 0-476-4849
Ask for operator SER ooofmZgla[k[ge
SERVO 05.2005 55
Prochnow.qxd 4/5/2005 10:49 AM Page 56

How to Add an LCD Display to


Boe-Bot for Less Than $20.00!
by Dave Prochnow
PURE MARKETING GENIUS —
That’s how we should view
selling the Boe-BotTM through
RadioShack® stores (Parallax, Inc.;
www.parallax.com). Never before
has such a powerful and program-
mable robot been so universally
accessible to anyone with an interest
in robotics. Likewise, this marketing
venture has opened robotics up to a
whole new audience. And this new
group of fledgling robot owners can
breathe new life into robotics.

A s a devout reader of SERVO, you are acutely aware that


robots and robotics are big news, but they are only now
entering the mainstream public’s radar screen. Yes, iRobot’s
that will win the heart and minds of students, hobbyists, and
high-tech tinkerers.
One area where these robotic newbies might have a
Roomba Robotic Floorvac remote vacuum cleaning system problem is in getting some sort of “familiar” visual feed-
and the WowWee Ltd Robosapien scored big in Christmas back from the Boe-Bot. As many of us know all too well, a
2004 sales (one mil- flashing light emitting diode (LED) ain’t going to hack it.
FIGURE 1. A solderless breadboard, lion and 1.5 million More specifically, beginning users need a display that can
two picture frame hangers, and four units sold, respec- visually convey some of the robot’s internal “brain” informa-
4-40 x 1/2-inch machine screws are all tively), but it is the tion in a meaningful and verbose manner. Unfortunately,
that you need for mounting the
LCDBug on your Boe-Bot. compact Boe-Bot this type of display has typically been rather costly and
beyond the means of most
FIGURE 2. Attach the angle hangers to the front beginners; especially after
standoff screws of the Boe-Bot. spending nearly $200.00 for
a robot.
Yes, wiring and program-
ming a liquid crystal display
(LCD) unit is possible (see
SERVO, January and February
2005; “Rubberbands and
Bailing Wire,” by Jack
Buffington). This type of
advanced circuit construction
is generally impractical for
beginning robot builders,
however. Likewise, there is a
significant time investment
that is necessary for adding
this type of project to a Boe-
56 SERVO 05.2005
Prochnow.qxd 4/5/2005 10:53 AM Page 57

Bot. What a beginner really needs is a low-cost, alphanu-


meric LCD unit that can be readily “plugged” into the
Boe-Bot’s breadboard so it works … the first time. No
debugging, no soldering, no programming; just plug it in
and display.
There is one other important factor that must character-
ize this LCD unit. It has to be inexpensive. While the Parallax
LCD Terminal Application Module (#29121) can be installed
on the Boe-Bot, the $39.00 price tag is a little too hefty for
those users who are looking for a simple display (sans the ter-
minal capability). For about half the price of this AppMod,
Boe-Bot owners can find the ideal answer from BG Micro
(www.bgmicro.com).
Known as the LCDBug, this inexpensive two-line by eight-
character display is a terrific visual interface companion to the
Boe-Bot. Housed on a standard 20-pin IC socket header, the
LCDBug consumes five volts of power, utilizes an Atmel
ATtiny26 microcontroller for providing the LCD firmware, and
requires only one serial output pin from the Boe-Bot. FIGURE 3. Mount the breadboard to the angle hangers.
Therefore, with just a simple three-pin connection and a cou-
ple of lines of PBASIC, virtually anyone can have a great robot et laying around, the cost of the mounting hardware can be
display for less than $20.00. less than $2.00. Otherwise, expect to spend about $10.00
There is another LCD unit with a similar insect-like for a RadioShack-brand breadboard (#276-175) and mount-
name that initially looks like a worthy competitor to the ing hardware. In keeping with the beginner spirit of this
LCDBug. The AVR Butterfly from Atmel Corporation project, all of the required mounting hardware can be
(www.atmel.com) does contain some features that are found at a home improvement center like Lowe’s (e.g., 4-40
similar to those of the LCDBug (see “Bug versus Butterfly”
sidebar), but it has two extremely significant differences.
First, the AVR Butterfly does not come equipped with a
standard socket header that can be readily inserted into STEER WINNING ROBOTS
the Boe-Bot Board of Education® (BOE) breadboard. A
beginning robot owner would either have to solder a WITHOUT SERVOS!
series of jumper wires and headers to the upper surface of
the AVR Butterfly or purchase a prebuilt carrier board
(e.g., ECROS Technology Butterfly Carrier for $18.95;
www.ecrostech.com/Products/Butter fly/Intro.htm).
Second, and more worrisome, accessing the AVR Butterfly
through PBASIC would be a tough, if not impossible
challenge for a beginner. Therefore, the LCDBug is a
practical visual interface for the Boe-Bot, as well as a
terrific bargain.
Whether you’re a budding Boe-Bot builder or a sea-
soned robot hacker, adding the LCDBug to your favorite
robot design is remarkably easy. Sure, you could just slap the
“Bug” down on the Boe-Bot’s breadboard, but then you
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
would have a tough time chasing after your autonomous with our mixing RDFR dual speed control. Used in many
creation, trying to spy its visual display. A better method is successful competitive robots. Single joystick operation: up
to mount the LCDBug on an elevated breadboard “billboard” goes straight ahead, down is reverse. Pure right or left twirls
that can be easily read from a more relaxed vantage point. vehicle as motors turn opposite directions. In between stick
So let’s make a breadboard billboard, install the LCDBug, positions completely proportional. Plugs in like a servo to
your Futaba, JR, Hitec, or similar radio. Compatible with gyro
and write some PBASIC for enabling us to read the Boe-Bot’s
steering stabilization. Various volt and amp sizes available.
thoughts. The RDFR47E 55V 75A per motor unit pictured above.
www.vantec.com
Step 1. Build Your Billboard. While you don’t have to erect
a breadboard billboard for holding the LCDBug, it is a lot Order at
easier to read an upright display than a prone one.
Remarkably, if you already have a spare breadboard IC sock-
(888) 929-5055
SERVO 05.2005 57
Prochnow.qxd 4/7/2005 12:06 PM Page 58

FIGURE 4. Only three wires are needed for FIGURE 5. Running the sample distance program with the variable’s
connecting the LCDBug to the Boe-Bot. output displayed on the LCDBug.

x 1/2-inch machine screws and nuts) and hobby centers pair of needle-nose pliers makes this job a snap. You will also
like Hobby Lobby (e.g., small sawtooth picture hangers have to ream out the holes on the ends of each hanger for
with nails). accommodating a 4-40 machine screw. A handheld,
portable, battery-powered drill with a 7/64-inch drill bit can
Step 2. Bend It But Don’t Break It. The small sawtooth pic- be used for enlarging these holes.
ture hangers are used for holding the breadboard upright.
Begin by bending the two hangers into 90-degree angles. A Step 3. Bolt ‘er Down. Remove the two pan-head screws
from the standoffs along the front (i.e., the edge nearest
the breadboard) of the Boe-Bot. Hold one of the angle
hangers that you fabricated in Step 2 over the mounting
hole in the BOE and forward standoff. Next, slip one of
the removed pan-head screws through the reamed hole of
the hanger and reattach the BOE to the standoff. Repeat
this same procedure for the other forward standoff. You
can refer to page 100 of the Robotics with the Boe-Bot
manual (included with the kit) for additional information
for reattaching the BOE to the front-end standoffs. Finally,
attach the breadboard billboard to the angle hangers with
the 4-40 machine screws and nuts. We added a second
pair of machine screws and nuts to the two remaining
empty mounting holes on the breadboard for visual
esthetics.

Step 4. Mount Your ‘Bug. Determine the location of Pin 1 of


the LCDBug by studying your pin-out diagram. Install the
LCDBug on the breadboard billboard with Pin 1 oriented
toward the lower left corner and seat all of its pins firmly into
each socket. Remember, do not press on the LCD screen
during this process.

Step 5. You’ve Got Your Connections. You will need three


jumper wires for connecting the LCDBug to the Boe-Bot.
First, make sure that the three-position power switch on the
Boe-Bot is off (i.e., Position 0). Now attach one jumper from
the power socket header (Vdd) on the BOE to Pin 5 (you can
also use Pin 15 or both Pins 5 and 15) of the LCDBug. Next,
connect another jumper from the BOE ground header (Vss)
to Pin 6 (you can also use pins 16 or both Pins 6 and 16) on
Circle #47 on the Reader Service Card.
58 SERVO 05.2005
Prochnow.qxd 4/5/2005 10:56 AM Page 59

the LCDBug.
The Minds Behind the LCDBug
Step 6. Serialize, Seriously. The final connection between the After a close inspection of the LCDBug’s underside,
Boe-Bot and the LCDBug is for a serial data input line. This
two names figure very prominently in the design and
connection corresponds to one of the BASIC Stamp I/O pins.
Since our Boe-Bot is already using several of these lines for assembly of this display unit. The most visible of these
navigation inputs, we connected the LCDBug to I/O Pin P7. two names is Hantronix. Anyone who has experimented
Any pin that you have open will work just fine, however. with LCDs knows that Hantronix is a major manufacturer
Just run a jumper wire from Pin 9 of the LCDBug and connect of display modules (e.g., HDM08216H-3 is the module
it to I/O Pin P7 (or, your alternately selected I/O pin) of the used with the LCDBug; you can find ample technical doc-
Boe-Bot.
umentation on the Hantronix website at www.hantronix
Step 7. One Line Wonder. Once you’ve completed all of the .com/2_2.html). The other name, Dale Wheat, is a little
hardware connections for the LCDBug, only one PBASIC com- more difficult to figure out. Thankfully, Mr. Wheat has his
mand is needed to drive output to the LCD. Use SEROUT for URL printed on the ‘Bug’s underside. It turns out that
sending text to the LCDBug. For example: Dale Wheat is the inventive mind behind the LCDBug.
SEROUT 7, 84, [“SERVO”] Please visit his website (www.dalewheat.com) for more
information about the LCDBug, as well as some of his
where,
other projects.
SEROUT = PBASIC command for serial output
7 = Tpin; the I/O pin we used in
= Step 6 Step 8. You Snooze or You Lose. During power-up initial-
84 = Baudmode; baud rate for ization (or following a Clear Screen command), the
= LCDBug; 9600, 8-bit, no- LCDBug clears the screen, sets the default cursor style
= parity, true
[“SERVO”] = OutputData; the text for display (i.e., blinking underline), and positions the cursor in the
= on the LCDBug upper left corner. This initialization can result in a slight

Circle #59 on the Reader Service Card.


SERVO 05.2005 59
Prochnow.qxd 4/5/2005 10:58 AM Page 60

program described in Robotics with the Boe-Bot,


Feature LCDBug AVR Butterfly
“Activity #3.”
LCD 8x2 6x1
Step 9. Sever the Tether. Okay, let’s do something practi-
Interface TTL RS-232/USI cal with the LCDBug. In this demonstration, rather than
Processor ATtiny26 ATmega169 printing distance traveled values on a tethered computer
via DEBUG, we will use the LCDBug for displaying these
Memory Flash - 2K DataFlash - 4Mbit readings.
Similarly, in your own programs, you can replace DEBUG
Speed 8MHz 32KHz commands with a series of SEROUT commands. This simple
Power +5V +3V replacement will provide Boe-Bot with a remote message sys-
tem for displaying sensor readings, status reports, and
Sensors None 2 program variable values — all without the need for a tethered
Price $19.95 $19.95 computer.

TABLE 1. The LCDBug versus the AVR Butterfly. ‘ {$STAMP BS2}


‘ {$PBASIC 2.5}
delay before any text can be displayed on the LCD.
Therefore, a short pause (or PBASIC NAP command) counter VAR Byte
should be executed in your code before sending SEROUT distance VAR Word
data. For example:
NAP 5 ‘ Sleep mode
SEROUT 7, 84, [12] ‘ Clear Screen
‘ {$STAMP BS2}
SEROUT 7, 84, [28] ‘ Show Revision
‘ {$PBASIC 2.5}
PAUSE 1000 ‘ Pause Program
SEROUT 7, 84, [12] ‘ Clear Screen
NAP 5 ‘ Sleep mode
SEROUT 7, 84, [“SERVO”, 10, 13, “Magazine”]‘ Display 2
SEROUT 7, 84, [12] ‘ Clear Screen
‘ lines of text
SEROUT 7, 84, [28] ‘ Show Revision
PAUSE 1000 ‘ Pause Program
FOR counter = 1 TO 205
SEROUT 7, 84, [12] ‘ Clear Screen
PULSOUT 13, 850
SEROUT 7, 84, [“SERVO”, 10, 13, “Magazine”]‘ Display 2
PULSOUT 12, 650
‘ lines of text
PAUSE 20
distance = (counter/41)*23
You can include this subroutine at the beginning of all SEROUT 7, 84, [12]
of your Boe-Bot programs. In fact, this subroutine is a SEROUT 7, 84, [DEC distance, “ cm”]
NEXT
great replacement for the Start/Reset Indicator Circuit
END

Bug versus Butterfly Having mastered the hardware and software aspects of
If you’re an avid robot builder and you don’t know displaying short informative messages onboard the Boe-Bot, you
about the Atmel AVR Butterfly, then you’re missing out on can now make the LCDBug a permanent fixture in all of your
future Parallax robot experiments. SV
one of the great bargains in microcontroller develop-
ment tools. For less than 20 bucks, you get a powerful
Atmel ATmega169 processor, a discrete one-line, six-char- About the Author
acter LCD display, a “joystick” input control, light and tem-
Dave Prochnow is a frequent contributor to Nuts &
perature sensors, a piezo speaker, and a three-volt but-
Volts and SERVO Magazine, as well as the author of 25
ton-cell-battery power source. Oh, and did we say that
nonfiction books including the best selling
you can type your name into the Butterfly, clip in on your
Experiments with EPROMs. Dave also won the 2001
shirt, and wear it like a high-tech name tag? The AVR
Butterfly can be purchased from Digi-Key (www. Maggie Award for the best “how-to” article in a
digikey.com). consumer magazine. He is currently assembling an
You can review the significant features of the LCDBug enormous selection of robot tips, programs, and hacks
and the AVR Butterfly with our side-by-side comparison into his forthcoming book, The Official Robosapien
in Table 1. Hacker’s Guide (TAB Electronics, 2005).

60 SERVO 05.2005
ServoHouseNov03Ad.qxd 4/7/2005 12:37 PM Page 61

SUBSCRIBE NOW!
12 issues for $24.95
www.servomagazine.com or
call toll free 1-877-525-2539
BookstoreMay05.qxd 4/5/2005 11:33 AM Page 62

andy
Mind Cday’s
For To ticist
Robo
The SERVO Bookstore
ROBOT DNA SERIES OOP Demystified Build Your Own Electronics
Three Volume Pack by James Keogh / Mario Giannini Workshop
Learn object-oriented by Thomas Petruzzellis
programming in no time The Electronics
with help from this easy- Workshop was written
to-understand guide, ideal to assist the newcomer
for novice and expert to the field of practical
programmers alike. electronics through the
Discover why objects are creation of a personal
!
NEW
so successful as the electronics workbench.
model for this type of This is a place specially
Everything you need to program your programming and how objects are classified. designed so that read-
robot controller: Distinguish between how people see the ers can go there to
• Microcontrollers in Robots world and how computers “see” it. Learn work on an electronic project, such as test-
• Software Development about attributes and methods, inheritance, ing components, troubleshooting a device,
• The Microchip PICmicro Microcontroller polymorphism, real-world and case model- or building a new project. This book
• Microcontroller Connections ing, object-oriented programming languages, includes invaluable information, such as
• Designing the Robot System and much more. Each chapter ends with a whether to buy or build test equipment,
• Going Forward quiz, culminating in a final exam at the end how to solder, how to make circuit boards,
of the book to test your knowledge. $19.95 how to begin to troubleshoot, how to test
Everything you need to build your own components and systems, and how to build
robot drive train: your own test equipment, complete with
• The Basics of Robot Locomotion JunkBots, Bugbots, and Bots on appendix and resources, etc. This is THE
• Motor Types: An Overview Wheels: Building Simple Robots book for anyone entering the field or hobby
• Using DC Motors With BEAM Technology of electronics. $29.95
• Using RC Servo Motors by Dave Hrynkiw / Mark W. Tilden
• Using Stepper Motors From the publishers of
• Motor Mounting Electronics Demystified
BattleBots: The Official by Stan Gibilisco
• Motor Control Guide comes this do-it-
• Electronics Interfacing Now anyone with an
yourself guide to BEAM interest in electronics
• Wheels and Treads (Biology, Electronics,
• Locomotion for Multipods can master it by reading
Aesthetics, Mechanics) this book. In Electronics
robots. They're cheap, Demystified, best-selling
All the data you need to build your own simple, and can be built
robot base: science and math writer
by beginners in just a few Stan Gibilisco provides
• Mechanical Construction hours, with help from this expert guide
• Electrical Construction an effective and pain-
complete with full-color photos. Get ready less way to understand
• Operating Power for some dumpster-diving! $24.99
• Robot Designs the electronics that
• Constructing a Two-Wheeled Rover Robot power so much of modern life. With
• Selecting the Right Materials Electronic Circuits for the Electronics Demystified, you master the sub-
• Glossary of Terms Evil Genius ject one simple step at a time — at your own
• Tables, Formulas, and Constants by Dave Cutcher speed. This unique self-teaching guide offers
Cutcher's 57 lessons problems at the end of each chapter, a
Subscribers: $21.95 each book build on each other and section to pinpoint weaknesses, and a 70-
Non-subscribers: $24.95 each book add up to projects that question final exam to reinforce the entire
are fun and practical. book. If you want to build or refresh your
The reader gains valu- understanding of electronics, here’s a fast
able experience in cir- and entertaining self-teaching course that’s
Electronic Gadgets for the cuit construction and completely current. $19.95
Evil Genius design and in learning to
by Robert Iannini test, modify, and
The do-it-yourself Build Your Own Humanoid
observe results. Bonus Robots
hobbyist market — website www.books.mcgraw-hill
particularly in the area by Karl Williams
com/authors/cutcher provides anima- Build Your Own
of electronics — is tions, answers to worksheet problems, links
hotter than ever. This Humanoid Robots
to other resources, WAV files to be used as provides step-by-step
book gives the “evil frequency generators, and freeware to apply
genius” loads of directions for six exciting
your PC as an oscilloscope $24.95 projects — each costing
projects to delve into,
from an ultrasonic less than $300.00.
microphone to a body We accept VISA, MC, AMEX, and DISCOVER Together, they form the
heat detector, all the way to a Star Wars Prices do not include shipping and essential ingredients for
Light Saber. This book makes creating these making your own
may be subject to change. humanoid robot. $24.95
devices fun, inexpensive, and easy. $24.95

62 SERVO 05.2005
BookstoreMay05.qxd 4/5/2005 11:35 AM Page 63

To order call 1-800-783-4624 or go to our website at


www.servomagazine.com

PIC Microcontroller Project Book Open-Source Robotics and CNC Robotics


by John Iovine Process Control Cookbook by Geoff Williams
The PIC microcontroller by Lewin Edwards Now, for the first time,
!
is enormously popular
both in the US and
In this comprehensive
guide, Lewin Edwards
NEW you can get complete
directions for building a
abroad. The first edition demonstrates efficient and CNC workshop bot for a
of this book was a low-cost open-source tech- total cost of around
tremendous success niques, covering end-to-end $1,500.00. CNC Robotics
because of that. robotic/process control sys- gives you step-by-step,
However, in the four tems, using Linux as the illustrated directions for
years that have passed development platform (and designing, constructing, and testing a fully
since the book was first also as the embedded operating system). functional CNC robot that saves you 80 percent
published, the electronics hobbyist market Specifically, the book targets the develop- of the price of an off-the-shelf bot and can
has become more sophisticated. Many ment of real-time physical system controls, be customized to suit your purposes exactly,
users of the PIC are now comfortable paying using Atmel AVR microcontrollers and com- because you designed it. $34.95
the $250.00 price for the Professional municating with Linux-based PCs for over-
version of the PIC Basic (the regular version monitoring. It also covers open-source tools Robot Mechanisms and
sells for $100.00). This new edition is fully for other controllers. Code examples are
updated and revised to include detailed given to provide concrete illustrations of
Mechanical Devices Illustrated
by Paul Sandin
directions on using both versions of the tasks described in the text. The accompany-
Both hobbyists and
microcontroller, with no-nonsense ing CD-ROM contains all the code used in the
professionals will treasure
recommendations on which one serves design examples, as well as useful open-
this unique and distinctive
better in different situations.$29.95 source tools for robotics and process control
sourcebook — the most
system design $49.95
thorough — and thoroughly
explained — compendium
Robot Builder's Bonanza Robot Building for Dummies of robot mechanisms and
by Gordon McComb by Roger Arrick / Nancy Stevenson devices ever assembled.
Robot Builder’s Bonanza Ready to enter the robot Written and illustrated
is a major revision of the world? This book is your specifically for people fascinated with
bestselling bible of passport! It walks you mobile robots, Robot Mechanisms and
amateur robot building — through building your Mechanical Devices Illustrated offers a
packed with the latest in very own little metal one-stop source of everything needed for the
servo motor technology, assistant from a kit, dress- mechanical design of state-of-the-art mobile
microcontrolled robots, ing it up, giving it a brain, ‘bots. $39.95
remote control, LEGO programming it to do
Mindstorms Kits, and things, even making it
other commercial kits. It gives electronics talk. Along the way, you’ll
Digital Electronics Demystified
hobbyists fully illustrated plans for 11 by Myke Predko
gather some tidbits about robot history,
complete robots, as well as all-new coverage The field of teaching
enthusiasts’ groups, and more. $21.99
of Robotix-based robots, LEGO Technic- digital electronics has
based robots, Functionoids with LEGO not changed significant-
Mindstorms, and location and motorized Robotics Demystified ly in the past 20 years.
systems with servo motors. $24.95 by Edwin Wise Many of the same
There's no easier, faster, books that first became
or more practical way to available in the late
Robot Builder's Sourcebook learn the really tough 1970s and early 1980s
by Gordon McComb subjects. McGraw-Hill's are still being used as
Fascinated by the world Demystified titles are basic texts. In the 20-
of robotics, but don’t the most efficient, plus years since these were written, the rules
know how to tap into the intriguingly written have not changed, but they do not provide
incredible amount of brush-ups you can find. strong links to modern electronics, including
information available on Organized as self- CMOS logic, Programmable Logic Devices,
the subject? Clueless as to teaching guides, they and microprocessor/microcontroller interfac-
locating specific come complete with key points, background ing. Courses teaching introductory digital
information on robotics? information, questions for each chapter, and electronics will fill in the missing areas of
Want the names, addresses, even final exams. You'll be able to learn more information for students, but neither the
phone numbers, and websites of companies in less time, evaluate your strengths and instructors nor students have resources to
that can supply the exact part, plan, kit, weaknesses, and reinforce your knowledge explain modern technology and interfaces.
building material, programming language, and confidence. $19.95 One assumption made by all the standard
operating system, computer system, or texts is that experimenting with digital elec-
publication you’ve been searching for? Turn tronics cannot be done easily — in the pro-
to the Robot Builder’s Sourcebook — a Check out our online bookstore at posed book, “digital guru” Myke Predko will
unique clearinghouse of information that will www.servomagazine.com for a complete show how readers can set up their own
open 2,500+ new doors and spark almost as listing of all the books that are available. apparatus for experimenting with digital
many new ideas. $24.95 electronics for less than $10.00. $19.95
SERVO 05.2005 63
RoboResources.qxd 4/5/2005 9:55 AM Page 64

Tune in each month for a heads-up on


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

Getting Geared Up!

ower is the thing that makes your tion but are designed so that no reduc- expressed as pitch, which is roughly cal-
P robots move. Transmitting that
power from a motor to a wheel,
tion takes place.
Spur, bevel, and miter gears are
culated by counting the number of
teeth on the gear and dividing it by the
leg, or track is the job of power reversible — the gear train can be diameter of the gear. Common pitches
transmission components. Among the turned from either the drive or the are 12 (large), 24, 32, 48, and 64.
most common power transmission driven end. Conversely, worm- and Odd-size pitches exist of course, as do
components for robots are gears, lead-screw gears transmit power metric sizes.
sprockets and chains, timing belts, perpendicularly and are not usually
and bearings. reversible. The lead screw resembles a • Pressure Angle — The degree of
In this month’s installment of threaded rod. slope of the face of each tooth is called
Robotics Resources, we’ll take a look at Rack gears are like spur gears the pressure angle. The most common
these and several other useful parts unrolled into a flat rod. They are prima- pressure angle is 20 degrees, although
used in power transmissions and where rily intended to transmit rotational some gears, particularly high-quality
to find them. motion to linear motion. worms and racks, have a 14.5-degree
When gears are used to reduce the pressure angle.
Understanding Gears output speed of a mechanism — say a
motor — the torque at the output is • Tooth Geometry — The orientation of
Gears are used for two purposes: increased. Gears are basically a form of the teeth on the gear can differ. The
to transfer power or motion from one lever; power can be increased by teeth on most spur gears are perpendi-
mechanism to another and to reduce changing the ratio of the lever over the cular to the edges of the gear. But the
or increase the speed of the motion fulcrum. Substituting the fulcrum in a teeth can also be angled, in which case
between two linked mechanisms. The gear system is the number of teeth on it is called a helical gear. There are a
simplest gear systems use just two each gear. number of other unusual tooth geome-
gears: a drive gear and a driven (or out- Gear reduction is accomplished by tries in use, including double-teeth and
put) gear. More sophisticated gear changing the ratio of teeth of two or herringbone.
systems, referred to as gear trains, gear more mating gears: a two-gear system
boxes, or transmissions, may contain with a 100-tooth gear and a 50-tooth Where to Find Gears
dozens or even hundreds of gears. gear is said to have a 2:1 reduction.
Motors with attached gearboxes are With such a system, output speed is Of course, you can always buy
said to be gearbox motors. reduced by 50 percent and torque is gears from Gears R Us. (Okay, most
Gears are specified not only by roughly doubled. go by far more mundane names like
their physical size, but also by the num- Boston Gear, Small Parts, W.M. Berg,
ber of teeth around their circumfer- Common Gear Terms and Stock Drive.) You’ll get just what
ence. Spur gears are most common you’re looking for from these
and are used when the drive and driv- and Specifications sources, but it’ll cost you. The
en shafts are parallel. Bevel gears have Here are some common gear average machined one-inch-diameter
teeth on the surface of the circle, terms and specifications to keep you aluminum gear can cost $20.00 to
rather than the edge. They are used warm at night. $30.00.
to transmit power to perpendicular As long as your requirements
shafts. Miter gears serve a similar func- • Pitch — The size of the gear teeth is aren’t too unusual, you may be able to
64 SERVO 05.2005
RoboResources.qxd 4/5/2005 9:57 AM Page 65

locate the gears you want from other thrift stores and garage sales and look idler wheels) or with press-on or set-
products and sources. for old food mixers, electric knives, screw shafts for attaching to motors
even electric can openers. Unlike toys, and other devices.
• Toy Construction Sets — Don’t laugh! kitchen appliances commonly use
Toys from LEGO and Erector come with metal gears, or at the least, very strong V-belts
gears you can use in your robotics proj- plastic gears. V-belts have a taper V shape and
ects. Most are on the large size and are are used to transfer motion and
made of plastic. More Power power from a motor to an output
when synchronization of that motion
• Hobby and Specialty Retailers — Transmission is not critical (because the belt could
Next time you’re at the hobby store, Components slip). V-belts, which are often made
look for replacement gear sets for with metal- or fiberglass-reinforced
servos and drive motors for R/C cars Gears aren’t the only power rubber, are used with V-grooved
and airplanes. Some are plastic, others transmission components you’ll pulleys.
are metal (usually either aluminum or encounter. There are literally hun- By changing the diameter of the
brass). dreds of others, but the following pulleys, it’s possible to alter the speed
Typically, you’ll have to buy the comprise the most commonly used and torque of the output shaft in rela-
whole set of replacement gears for and the most critical. tion to the drive shaft. The same
whatever motor or servo the set is for, physics that apply to gears and gear
but in other cases, you can purchase Timing Belts sizes apply to V-belt pulleys, as well.
just one gear at a time. Some online Also called synchronization belts.
retailers, such as ServoCity.com and Typical timing belts for small mecha- Endless Round Belts
Jameco.com, sell gears specifically for nisms range from 1/8- to 5/18-inch in Endless round belts are used to
hobby applications (like robots). The width and sizes from just a few inches transfer low-torque motion. The belt
prices are reasonable. in diameter to several feet in diameter. looks like an overgrown O-ring and, in
Material is usually neoprene, with fact, is often manufactured in the same
• Surplus Catalogs — New gears can metal or fiberglass reinforcement. Belts manner.
be expensive, but surplus gears can be are rated by the pitch between “nubs,” Other endless round belts are
quite affordable. You can often find or “cogs,” which are located on the made by fusing the ends of rounded
new gears, plastic or metal, for about inside of the belt. rubber (usually neoprene). Some belt
10 cents on the dollar. The only prob- Timing belts are used with match- makers provide splicing kits so you can
lem: selection can be limited, and it can ing timing belt pulleys, which come make custom belts of any length.
be hard to match gear sizes and pitch- with either ball-bearing shafts (used for Grooved pulleys are used with round
es even when buying gears from the
same outlet.

• Rechargeable Electric Screwdrivers


— Inside are numerous gears, typical-
HobbyEngineering
The technology
technology builder's source for kits, components, supplies, tools, books and education.
ly in a “planetary” configuration, used
to produce their very high-speed
reductions. Before raiding the screw- Robot Kits For All Skill Levels
Levels ICs, Transistors, Pro
Project Kits
ject Kit s
driver for just the gears, consider
using the motor, too. The motor and Components
Motors, Frame Com ponents
Supplies.
and Scratch Builder Su pplies.
gearing system of a typical electric
screwdriver makes for a fine robot
by
Order b mail..
y Internet, phone, fax or mail
drive system.
www.HobbyEngineering.com
www.HobbyEngineering.com
• Hacked Toys — Discarded and dis-
Books and 1-866-ROBOT-50
counted toys make for good gear 1-866-762-6850
Educational K 1-650-552-9925
sources. These include friction and bat-
1-650-259-9590 (fax)
tery-powered toy cars, “dozer” toys, sales @HobbyEngineering.com
sales@HobbyEngineering.com
and even some action figures. These 180 El Camino Real
gears tend to be small and made of Components
BEAM Kits and Components Millbrae, CA 94030
plastic. Visit our store near SFO!

• Old Kitchen Appliances — Go to day received! World-wide shipping.


Most orders ship the day shipping. Convenient payment options
payment options..

SERVO 05.2005 65
RoboResources.qxd 4/5/2005 9:58 AM Page 66

belts. With V-belt pulleys, the diameter can be added or removed. Many are more “forgiving” of errors in
of the ground belt pulley can be altered types of metal chains are pre-fabricat- alignment.
to change the torque and speed of the ed using hydraulic presses and require Rigid couplers can be made using
output. the use of “master links” to make metal or plastic tubing, selected for
a loop. its inside diameter. You can purchase
Ladder Chain suitable tubing at a hobby or hard-
Ladder chain resembles the links Idlers ware store. Cut the tubing to length,
of a ladder and is used for fairly low- Idlers (also called idler pulleys or then drill two small holes at both
torque and slow-speed operations. idler wheels) take up slack in belt- and ends for set screws. Use a tap to
Movement of a robotic arm or shoul- chain-driven mechanisms. The idler is thread the hole for the size of
der is a good application for ladder placed along the length of the belt or set screws you wish to use — 4/40
chain. With most chains, links can be chain and is positioned so that any is a good all-around size for most
removed and added using a pair of slack is pulled away from the belt or applications.
pliers. Special toothed sprockets, chain loop. Steel tubing provides the most
engineered to match the pitch Not only does this allow more lati- strength but is harder to cut, drill, and
(distance from link-to-link) of the chain, tude in design, it also quiets the mech- tap. If the thickness of the tubing is
are used. anism. The bores of the idlers are fit- sufficient, aluminum will work well for
ted with appropriate bearings or bush- most low-torque applications. Brass
Roller Chain ings. and bronze should be avoided
Roller chain is exactly the same because these metals are too soft. For
kind used with bicycles, but for most Couplers very low-torque jobs, plastic or even
small-scale machinery, the chain isn’t as Couplers come in two styles: rigid rubber tubing will work. Select the
big. Roller chain is available in minia- and flexible, and are used to directly rubber tubing so that it is just slightly
ture sizes down to 0.1227-inch pitch connect two shafts together. A com- smaller than the motor shaft and axle
(distance between the links). More mon application is to use a coupler to you are using, and press it on for a
common is the #25 roller chain which connect the drive shaft of a motor good fit.
has a 0.250-inch pitch. with the axle of a wheel. Connectors There are many types of rigid and
For reference, most bicycle chain can be rigid or flexible as well. Rigid flexible couplers commercially avail-
is #50, or 0.50-inch pitch. Sprockets couplers are best used when the able, and cost varies from under a dol-
with matching pitches are used on the torque of the motor is low, as it lar to well over $50.00, depending on
drive and driven components. Roller would be in a small tabletop robot. materials and sizes. Common flexible
chain comes in metal or plastic; plastic Flexible couplers are advised for couplers include helical, universal joint
chain is easier to work with, and links higher torque applications, as they (similar to the U-joint in the drive shafts
of older cars), and three-piece jaw
(more about the latter in a bit). The
couplers attach to the shafts either
with a press fit, by a clamping action,
by set screws, or by a keyway. Press fit
and clamp are common on smaller cou-
plers for low-torque applications; set
screws and keyways are used on larger
couplers.
Three-piece jaw couplers, like
those made by Lovejoy, consist of two
metal or plastic pieces that fit over the
shafts. These are the “jaws.”
A third piece, which is called the
spider, fits between the jaws and acts
as a flexible cushion. One advantage of
three-piece couplers is that you can
readily “mix and match” shaft sizes
because each piece of the jaw is sold
separately.
For example, you can purchase
one jaw for a 1/4-inch shaft and
another for a 3/8-inch shaft. Both
66 SERVO 05.2005
RoboResources.qxd 4/5/2005 9:59 AM Page 67

jaws must have the same outside


diameter.
• Pulleys and belts — The pulleys are
like wheels, and the belts ride over
Sources
the wheels. Most pulleys incorporate Check out these sources for power
Bearings a sleeve or rim to keep the belt in transmission parts, though not all of
Bearings are used to reduce the place. the companies listed here sell directly
friction of a spinning component, to consumers. However, you may be
such as a wheel or idler, around a • Sprockets and chains — Sprockets are able to locate their wares through a
shaft. Several bearing constructions also wheels but incorporate teeth local distributor. A number of the
exist, with ball bearings being the around their circumference in order to websites provide helpful design
most common. The bearing is com- mesh with a chain. information. Be sure to check out the
posed of two concentric rings; free technical literature that these
between each ring is a row of ball • Cable — A flexible cable, made of manufacturers provide.
bearings. The rings and the ball bear- plastic or metal, transfers power/move-
ings are held in place by a mechanical ment by spinning within some protec- Bearing Belt Chain
flange of some type. Bearings can be tive sheath. The speedometer cables www.bearing.com
mounted directly to a device. This on older cars are a good example of Local and online retailer of bear-
requires precision machining and a how these work. ings (linear, roller, taper, pillow, etc.),
press to securely insert the bearing belts (including V and timing), sprock-
into place. Except for cables, flexible linkages ets, and chains. Large inventory.
Another form of bearing uses nar- can function in a similar manner to
row pieces of metal rod, called nee- gears, including reducing or increasing Bearing Headquarters Co.
dles, and works in a similar manner. speed and torque. This is accomplished www.bearingheadquarters.com
Pillow blocks are available that allow by using different sprocket or pulley Industrial bearings (all types),
bearings to be readily mounted on any diameters. couplings, clutches, belt drives and
frame or device. A benefit of using pulleys/belts rollers, gears, conveyor rolls and chain,
or sprockets/chain is you don’t need sprocket, and chain. See also Headco
Bushings to be as concerned with absolute Industries, www.headco.com
Bushings and bearings serve the alignment of the mechanical parts of
same general purpose, except a bush- your robot. When using gears, it is Belt Corporation of America
ing has no moving parts. (Note: Some necessary to mount them with high www.beltcorp.com
people also call these bearings or dry precision. Belt Corporation of America offers
bearings, but I prefer to use the term
bushing in order to differentiate FIGURE 1. Bearings and more at Boca Bearing.
them.) The bushing is made of metal
or plastic and is engineered to be self-
lubricating.
An example is Oilite, a self-lubricat-
ed bronze metal commonly found in
industrial bushings. Several kinds of
plastics, including Teflon, exhibit a self-
lubricating property. Bushings are used
instead of bearings to reduce cost,
size, and weight and are adequate
when friction between the moving
parts can be kept relatively low.
Bushings, and not the more expensive
bearings, are used in the output gear
of the less expensive R/C servos, for
example.

Flexible Linkages
Flexible linkages allow mechanical
power or movement to be transferred
from one place to another, using some
form of bendable material. Examples
are:
SERVO 05.2005 67
RoboResources.qxd 4/5/2005 10:01 AM Page 68

reels and, of course, robotics. Bearings


are listed by size, type, and general
application.
Check out their engineering
section, with nearly a dozen helpful
technical backgrounders on using
bearings.

Boston Gear
www.bostongear.com
Boston Gear offers gears, yes, but
also bearings, transmissions, clutches,
pneumatics, and many assorted other
power transmission and actuation
products. The company also offers
free literature, maintenance manuals,
and operating instructions for their
products.

BRECOflex Co.
www.brecoflex.com
BRECOflex is a manufacturer of
belts: timing belts, profiled belts, flat
FIGURE 2. Gates Corp. at www.gates.com belts, pulleys, belt tensioners, and slid-
er beds.
just that — belts — and not the kind you Boca Bearing
wear. BCA offers timing belts, woven www.bocabearings.com Drives, Inc.
endless belts (can be useful to con- Boca specializes in small and minia- www.drivesinc.com
struct robot tank treads), natural rub- ture bearings for such applications as Drives, Inc., makes and sells roller
ber and neoprene stretch belts, and radio control vehicles, inline skates, chain and “attachment products,” as
endless round belts. power tools, small appliances, fishing well as chain for conveyors. The chain
is available in sizes from #35 (slightly
FIGURE 3. Power transmission components at Manufacturer’s Supply. smaller than bicycle chain) on up to
A2060, which has a pitch of 1-1/2 inch-
es. So-called attachments include
mechanical clips that seat into the
chain — ideal for making heavy-duty
tracked robots.

Dura-Belt, Inc.
www.durabelt.com
Dura-Belt, Inc. is a maker and
seller of round urethane endless belts
(O-rings), quick-disconnected twisted
belts, flat belts (in different thickness-
es and widths), groove sleeves for
round belts, idlers, and belt splicing
kits.

Gates Rubber Co.


www.gates.com
Gates Rubber Co. is a major suppli-
er of gears, timing belts, and power
transmissions for both industry and
automotive applications. The compa-
ny’s products are available through
68 SERVO 05.2005
RoboResources.qxd 4/5/2005 10:03 AM Page 69

distributors. Includes wheels, chain, bearings, axles,


snowmobile treads, and a lot more.
Helical Products Co. Check out the Go-Kart page at
www.heli-cal.com www.GoKartParts.com
Helical flexible couplings. Many dif-
ferent sizes, styles, and materials. Minarik Corporation
www.minarikcorp.com
Huco Engineering Industries Ltd. Miniarik Corporation offers a full
www.huco.com line of mechanical (bearings, shafts,
Huco Engineering Industries is a gears, chain, etc.) and electronics parts
manufacturer of flexible couplers. (PWM drives, sensors), online ordering,
Products include three-part couplers and many local warehouses through-
with replaceable wear elements, one- out the US.
piece couplers, and plastic universal
joints. Nordex, Inc.
www.nordex.com
igus GMBH Gears, miniature instrument bear-
www.igus.de ings, shafts, Geneva mechanisms, fas-
igus GMBH is a maker of polymer teners, ball (linear and rotary) slides,
(plastic) bearings, chain, linear slides, brakes, clutches, couplings, assemblies,
and other mechanicals. Web page is in enclosed gear trains, and many
many languages, including English and other related precision components are
German. available.

JJC & Associates NSK


www.jjcassociates.com www.nsk.com
JJC & Associates offers custom and NSK offers power transmission
standard drive components — belts, bearings, bushings, gears, sprockets,
timing belts, pulleys, gears, plastic and more are available. Extensive tech-
power drive components, collars and nical details are provided on the
clamps, and rollers. website, including online engineering
calculators.
Lovejoy, Inc.
www.lovejoy-inc.com Power Transmission.com
Lovejoy manufactures a line of www.powertransmission.com
affordable flexible couplers. These are PowerTransmission.com is an
designed to connect a motor drive information site that helps you find
with some driven device, like a pump suppliers of gears, motors, bearings,
or a wheel. Because they
are flexible, the coupler EVEN MORE POWER
allows the shafts of the driv- TRANSMISSION SOURCES
er and the drivee to be
slightly out of whack from The following three major parts and
one another, and yet they supplies companies offer many types of
won’t tear each other apart. power transmission products. Plan to spend
One of the more common some time touring their websites. All three
Lovejoy connectors in offer on-line ordering.
use for robotics is the jaw
coupling. Grainger
www.grainger.com
Manufacturer’s
Supply, Inc. McMaster-Carr
www.mfgsupply.com www.mcmaster.com
Manufacturer’s Supply,
Inc. offers chain saw, motor- MSC Industrial Direct
cycle, and engine parts. www.mscdirect.com

SERVO 05.2005 69
RoboResources.qxd 4/5/2005 10:04 AM Page 70

transmissions with precision plastic


gears, chain, and sprocket drives. The
products are injection molded, so
they’re less expensive than machined
gears made from Delrin or metal, yet
they are precise enough for many
robotic applications.

Small Parts, Inc.


www.smallparts.com
Small Parts is a robot-builder’s
dream, selling most every conceivable
power transmission part, from gears to
sprockets, chain to belts, and bearings
to bushings. Product is available in a
variety of materials, including brass,
steel, and aluminum, as well as nylon
and Delrin.

Stock Drive Products


www.sdp-si.com
If Stock Drive doesn’t have it,
it probably doesn’t exist. SDP is a
FIGURE 4. Reid Supply Company is an all-purpose supply resource. manufacturer and seller of power
transmission products: gears, bearings,
clutches, couplings, speed reducers, Quality Transmission bushings, shafts, sprockets, chain, and
and other components that transmit Components dozens of other categories. They
mechanical power. Most suppliers www.qtcgears.com specialize in the smaller scale stuff that
have websites where you can compare Quality Transmission offers medi- is most useful in amateur robotics.
products. um and coarse metric pitch small gears
and other power transmission goodies Vaughn Belting
Putnam Precision Molding are available. They are a division of www.vaughnbelting.com
www.putnamprecision Stock Drive Products (see www.sdp- Vaughn Belting is a local distribu-
molding.com si.com). tor of rubber, nylon, steel, and plastic
Putnam Precision Molding manu- timing belts, conveyor belts, and other
factures and sells the Plastock line of Reid Supply Co. belts used in industry.
mechanical-drive components. Its prod- www.reidtool.com
ucts include: timing belts and pulleys, Reid Supply Co. is an all-purpose W.M. Berg
chain sprockets, roller chain, and spur industrial supply resource. They carry www.wmberg.com
gears. thousands of items, including bear- W.M. Berg, Inc., manufactures
ings, gears, linear shafts, lead screws and distributes precision mechanical
ABOUT THE AUTHOR and nuts, ball screws and ball nuts, components, including gears, rotary
multi-directional rollers (omniwheels), bearings, pulleys, belts, hardware and
Gordon McComb is the author ball transfers and ball casters, light- to fasteners, linear bearings and slides,
of the best-selling Robot Builder’s heavy-duty casters, machine framing, couplings, flexible ladder chain (which
Bonanza, as well as Robot Builder’s fasteners of all kinds, and much is useful as miniature robot tracks),
Sourcebook and Constructing Robot more. and roller chain (both plastic and
Bases, all from Tab/McGraw-Hill. In metal).
addition to writing books, he oper- Seitz Corp.
ates a small manufacturing company www.seitzcorp.com Wholesale Bearing & Drive
dedicated to low-cost amateur They offer plastic gears, gears, and Supply
robotics. You’re welcome to visit at motion-control mechanicals. www.wbds.com
www.budgetrobotics.com He can Wholesale Bearing & Drive Supply
Serv-o-Link features online sales of bearings
also be reached at robots@robot
www.servolink.com and many other power transmission
oid.com
Serv-o-Link is the source for power components. SV
70 SERVO 05.2005
Full Page.qxd 4/7/2005 2:11 PM Page 71

NEW, ULTRA MINI, LIPSTICK CAMERA, MINI CCD CAM is SUPER RUGGED.

RESOURCES SONY SUPER HAD CCD, SUPER 0.01 Lux SENS.


and IT FITS ON A DIME! WOW!

O-Ring sealed & weatherproof.


Top quality, black and white, mini CCD
camera at a super price. Packaged in a
Sleek black anodized, aluminum housing, no larger than a dime! super rugged cast aluminum housing
that fits like a glove! ( Not flimsy sheet

UN-LTD.
UN-LTD. (not for underwater
use) Adjustable tilt /
swivel mounting
bracket. Specifications: 1/3" SONY SUPER HAD CCD,
metal ) Removeable mounting bracket
included as well as an 8", plug in cable
with BNC video & DC power jack for, no
sweat hook up. Why fool around with an
SURVEILLANCE OPTICS ELECTRONICS
400 Lines Resolution, SUPER 0.01 Lux sensitivity, AGC, Auto Shutter, open P.C. board? Now you can have the
ORDERS. 800.810.4070 (1/60 to 1/100,000) Power from regulated 12VDC @100mA, Super GM210 for the same price as a simple board camera • 1/3" •
3.6mm, 900 FOV real glass lens, NTSC video. Extra IR SENSITIVE. 420 Lines • 0.3 Lux • AGC • Auto Shutter • Power, 12V
Tech 603.668.2499 Size: 0.735"D X 2.15"L 50mm, 36" cable with BNC video & DC @100mA • 270k pixels • Standard 4 mm, 780 FOV lens •
fax 603.644.7825 barrel jack. Weight: 65g Superior quality at an affordable price. Focus from 10mm to infinity • NTSC video • 2 ounces • Size:
Limited qty. Regulated power adapter available for $6.95ea. 1.8" Square x 1.3" deep, including lens. Limited quantity.
WWW.RESUNLTD4U.COM SPECIAL, GM-L250.............$59ea. SPECIAL, GM-210...................$45ea.
HEAVY DUTY, HIGH TORQUE, BOSCH, DRILL MOTOR and GEAR DRIVE ASSEMBLY
METAL CONTRUCTION. with CUSTOM SURFACE MOUNTING BRACKET!
These are brand new, very rugged, These beauties have all the torque you could want....
right angle drive, gearmotors Brand new in mfgrs boxes, These assemblies normally provide the
originally intended for an automotive rotary motion for a quality Bosch 12V V (in) I (nl) Mtr RPM Out RPM
application. They are very substantial, drill/driver. The assembly consists of 3 3.5A 3400 242
weighing over 2 pounds each! They offer a 0.9" a 17000RPM drive motor and a 14:1 6 5.0A 8000 571
diameter x 0.3"H, 9 tooth steel gear drive, located planetary gear head with variable 9 5.7A 12500 893
centered between three 0.32" diameter cast clutch. The motor operates from 3 to 12 6.0A 17200 1228
aluminum "spider" mounting points on a diameter of 12VDC. Measured data in table.
3". Overall size: 1.9"W x 7.1"L x 4"H (including the gear) A unique, custom, glass filled plastic cradle mount is included for easy
with std. automotive style 2 pin connector. Motor will surface mounting. Overall size is 7.4"L x 2.4" diam. (3.3"W in the cradle)
operate with strong torque with as little as 3VDC, Hand Threaded output shaft is 0.048"diam. Fifteen torque setting plus locked.
twisting torque at 12VDC. Current is 3.2A no load and about 6A We have a limited supply of these fantastic robotic drive motors. Order
loaded. RPM of 84/minute. Reversible. Heavy duty platic coupler now, avoid disappointment. Mtr # 2606200917, Drive # 2607022890
included. WINMTR248...........$20ea. 4 for $69 DRILL DRIVE.......$39set, Motor & Cradle 2 sets for $69
SONY EX-VIEW CCD for the best “ASTRONOMICAL” DC MOTOR drives FLEXIBLE SHAFT with LEAD SCREW and "NUT"
PERFORMANCE available in an affordable camera! New, 18" L flex shaft enclosed in a 3/8"D protective sheath. V (in) I (nl) Out RPM
With 600 Lines Resolution. NEW! 0.00005 Lux, One end "Plugs" into the motors right angle drive which 3 1.1A 133
The most sensitive, uncooled, 1/2" CCD camera available. outputs the flex rotation by turning of a 1/2" diam. x 7"L, 10 TPI 6 1.4A 295
Black and white, state of the Art lead screw upon which rides a 1" x1" 2"L "nut /carriage" with 9 1.6A 468
Video, Our GMV-EX-6K, Takes the two 1/4 x 20 threaded holes spaced 1" apart on the long axis. 12 1.8A 642
Prize. For covert, military & scientific Flex shafts have a 0.14" x 0.14" square drive end. You receive
applications, this is it. Unbelievable one motor/shaft set. They were originally designed to move power seats. Heavy duty.
0.00005Lux @ f0.8 performance is . FLEX-DRIVE KIT.......$24 2 for $40
enhanced through low speed
BOSCH, REVERSIBLE, HIGH
electronic shuttering, digital frame
integration and advanced DSP. Auto sensitivity mode starts as it becomes dark. WE W ANT TO BUY
WANT TORQUE, DC GEARMOTOR,
With 2.4"LONG STEEL SHAFT.
ESOTERIC and
24 hour surveillance is possible with the optional f1.2 auto iris lens shown
These are brand new, very rugged, right angle
below. Seven Gain/Shutter modes are user selectable. Normal, X4, X8, X16,
drive, gear motors originally intended for an
X24, X32, X64 X128. Frame rates of 60, 15, 8, 4, 3, 2,1 and 0.5 per second.
Auto/off BLC, S/N >52dB, Mirror on/off, Gain on/
off, auto electronic shutter 1/60 to 1/120,000 sec.,
UNUSU
UNUSUALAL MA TERIAL
MATERIAL automotive application. They are very substantial,
weighing over 2 pounds each! They offer a 0.44"
diam. x 2.4"L steel drive shaft located centered
Alum. housing, dual 1/4x20 mtg. Specs: 1/2" CCD,
768(H) X 494(V), with 380K pixels, 12VDC LASER SCANNER, GSI LUMONICS, M SERIES, between three 0.45" diameter cast aluminum "spider"
±1V@200mA, S-VIDEO on 4pin DIN connector. CLOSED LOOP, MOVING MAGNET MOTOR threaded mounting points. Each offset 120o and on a
Std. video out on BNC. Size: 51mm x 51mm with capacitive position sensor. Speed & Accuracy! diameter of 2.75". Overall size: 5"H x 7.5"L x 2.7"W
Brand new, GSI Model: 3008522 mirror scanner. Motor will operates with wrist
x115mm long. Regulated power supply incl. All
functions externally controlled. C-mount lens not M-series optical scanners are the first in GSI product twisting torque. As little as
included. We have the best price available for to use moving magnet technology. This robust 3VDC lights it up, nominal is
the 12V1E-EX CAMERA. VERY LIMITED QUANTITY design combines the sub-millisecond speed with 12VDC. Draws about 4.5 A
AVAILABLE. DON'T BE FOOLED by 1/3", NON - EXVIEW, LOOK ALIKES! the micro-radian accuracy second generation under load. All metal construction.
Also it is of course, reversible.
GMV-EX6K...$449 Super, 6mm, f1.2 Manual Iris Lens...$69 capacitive position detector. Excellent drift, noise,
linearity and dynamic performance optimized to V (in) I (nl) RPM
TWO LITTLE GEMS, MINI and MICRO, REVERSIBLE, HIGH position mirrors between 9 and 20mm clear 3 2.7A 16
TORQUE, DC GEARMOTORS. End effector or beam robot. aperture. M2 scanners deliver the performance 6 3.1A 39
These precision motors were removed from new needed in most of today’s beam and image 9 3.3A 63
optical assemblies. They were intended steering applications. 12 3.5A 88
to provide focus and aperture
control for a large zoom lens. Specifications RA DRIVE with SHAFT......$24ea.
Parameter M2 Units SPECIAL....................2 for $39
The mini model (shown left)
Max Scan Angle ±30° degrees,optical
is from SAYAMA, # 43060300,
Non-linearity (max) 0.1 % over ±20° optical REVERSIBLE, HIGH TORQUE,
size is 0.78"Diam. X 2.5"L with a
Offset Drift (max) 30/10 µ radians/°C AC GEARMOTOR, ORIENTAL MOTOR,
1.6"W mounting flange. Shaft is 0.155"
Gain Drift (max) 100/20 ppm/°C MODEL, 2RK6GN/2GN15KA
Diam. The micro model (shown right) A super nice, matched, 1450 RPM,
Operating Temperature 0-50 °C
is from NAMIKI, PN 1D, size is o.47" 1/125HP motor & 15:1 gearbox
Optimal mirror size 9-20 mm, clear aperture
Diam X 1.875"L with a 0.078"D shaft. provide 100rpm at the 0.3" diam. x
Bandwidth (typ) >2000 Hz
A nice torque limiting drive gear is 1.1"L out-put shaft. Shaft rota-tion is
attached to each motor. (Can be Small Step Response (typ) <400 µS
ms the same as the motor shaft.
easily removed) Motor specs are Full Step Response (typ) <2
Instantly reversible capacitor start
shown in tables below. GSI SCANNER.............$149ea. LIMITED QUANTITY motor. (Cap. supplied) operates
SAYAMA MINI......$15ea. from 115VAC @ 0.19A. Torque is
SPECIAL......4 for...$49 POWERFUL, "KIDs CAR" DRIVE MOTOR. 4.4Lb in. Regular $135 each. Limited
NAMIKI MICRO...$20ea. MASSIVE GEAR REDUCTION for BIG TORQUE. quantity. Overall size is: 2.4" X 2.4" x
New, right angle drive system intended for use in a childs motorized
SPECIAL......2 for...$35 4.25"Long. Weight 1.5lbs.
vehicle. A powerful 12VDC motor drives the attached gearbox to
V (in) I (nl) Out RPM V (in) I (nl) Out RPM provide final drive through a 1.75" diam. splined
OM-2GN15K......$20 or 3 for $49
GEAR RATIOS
3 32mA 6
MINI MICRO
3 4.0mA 22 drive shaft. The 2.7" diam.male mating hub, LIKE THIS STUFF? SEE MORE
5 34mA 11 5 4.4mA 36 included. (black piece in photo). This
7 34mA 16 300:1 150:1 7 5.0mA 60 terminates in a 3.9" diam. flange eith
ON-LINE at OUR WEB STORE.
9 35mA 24 9 5.3mA 78 notches for bolts. There is also a 2005 our 14th Year!
12 35mA 33 12 6.0mA 104 0.43"Diam through hole in the center of
the hub. Nice for a large platform.
VIDEO TIME and DATE GENERATOR, NEW!
This simple device solves the problem of time stamping & V (in) I (nl) RPM Amps
identifying any video. Camera ID up to 20 characters, ID & 3 900mA 26 Loaded
Time on/off, ID at top center of screen & time on the 6 1.0A 57 5A
bottom. Format: YR/MO/DAY and HR/MIN/SEC/ 24hour Std. 9 1.1A 89
RCA video in & out. 9VDC, AC adpter incl. Three button operation. Rugged case. 12 1.2A 117
Size: 3.5"L x 2.6"W x 1.25" H. SPECIAL..........$55ea. CAR DRIVE FP....$20ea. 2 for $35 ENCODERS MAXI FUSE BLOCK
Circle #34 on the Reader Service Card.
SERVO 05.2005 71
BrainMatrix.qxd 4/5/2005 10:16 AM Page 72

reversible r/c-style
electronic speed controllers (escs)

Pe
ax C

ak

Re
im u

Fo T
PW
C

sis
um re

In ce

rw im
Vo

ur

ta

M
te (
re
r

ar e
lta

n
rn oh

Fr
on (am

nt

d/ De
ge

al m

eq

Re la
t
M

tin p

(a
Ra

(F s)

Br
ue
od

ve y
m
uo s)

ET
ng
SUPPLIER

ak
nc
ps

rs
ul

us

e
e

e
y
)

)
Astro Flight Harbor Master 6 to 8 30 35 0.010 2.5 kHz Yes No
www.astroflight.com

ESC200 Micro 4.8 to 7.2 3 20 proprietary 13.8 kHz Yes No


DuraTrax
www.duratrax.com
I-Speed 16T Mild-Modified Reversible ESC 7.2 to 8.4 192* 660* 0.0046 1 kHz Yes Yes

MC230CR 7.2 to 8.4 30 90 0.0035 1.5 kHz Yes Yes


Futaba
www.futaba-rc.com
MC330CR 7.2 to 8.4 70* 200* 0.001 1.5 kHz Yes Yes

Victor 883 6 to 30 60 200 0.007 2 kHz Instant Yes


IFI Robotics
www.ifirobotics.com
Victor 884 6 to 15 40 64 0.012 120 Hz Instant Yes

Kyosho Perfex KA-6 7.2 to 8.4 32 280* 0.006 1 kHz Yes Yes
www.kyosho.com
LRP Electronic LRP Runner Plus Reverse 4.8 to 8.4 20 80 0.017 1.3 kHz Yes Yes
www.lrp-electronic.de

Sonik4 Marine 15 4.8 to 12 15 15 0.007 1 kHz Instant Yes


Mtroniks
www.mtroniks.net
Sonik3 Eco 20 4.8 to 9.6 15 50 0.007 2 kHz Yes Yes

Robot Power Scorpion Mini 4.8 to 18 2.5 6 proprietary proprietary Instant No


www.robot-power.com

Spy Micro Reversible 4.8 to 8.4 2 12 0.019 1 kHz Yes Yes

Team Novak Super Duty XR High Voltage 7.2 to 16.8 180* 400* 0.0011 proprietary Yes Yes
www.teamnovak.com

XRS Sport 4.8 to 8.4 40* 40* 0.0055 1 kHz Yes Yes

RET411P 4.8 to 26 12 30 proprietary proprietary Instant No


Vantec
www.vantec.com
RET713P 4.8 to 26 33 85 proprietary proprietary Instant No

72 SERVO 05.2005
BrainMatrix.qxd 4/5/2005 10:17 AM Page 73

by Pete Miles

Upcoming topics include SBCs and H-bridges, sensors, kits, and actuators. If you’re 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.

* Special Notes
W
Pr

ei

1. Pay special attention to the current rating


Po
BE

Si
og

gh
w

ze
C (am

ra

t(
er

Li
on all ESCs that are specifically designed for
m
C p

(in

ou

st
Sw
ur s)

ch

nc

Pr
R/C cars. Their continuous and peak current
re

ab

itc

es

es

ic
nt

le

e
)

ratings are more theoretical than actually


1.0 No No 1.2 x 1.6 x 0.2 1.06 $99.95 achievable. They make very good motor
controllers for most robots. They are small,
1.0 Yes Yes 1.02 x 1.02 x 0.63 0.88 $79.99 easy to hook up, interface to, and control.
They are relatively inexpensive when com-
1.0 Yes Yes 1.48 x 1.34 x 0.57 2.19 $49.99
pared to other electronic speed controllers.
Yes Yes Yes 1.07 x 1.31 x 0.5 1.55 $49.99
2. Continuous current is based on operating
Yes Yes Yes 1.07 x 1.31 x 0.5 1.59 $49.99 with this current draw for a minimum of
three minutes. The robot controllers usually
No No No 2.2 x 2.7 x 2.1 4.0 $149.95 operate with this current indefinitely;
whereas the R/C-car-style controllers have
No No No 2.2 x 2.7 x 2.1 4.0 $114.95 this rating for three to five minutes.
1.0 Yes No 2.0 x 2.1 x 0.63 3.7 $109.99
3. Another important thing to look for is the
0.6 Yes No 1.57 x 1.57 x 0.59 1.94 $49.99 forward-to-reverse time delay. Most ESCs
have a small time delay (usually between
1.2 Yes No 1.38 x 1.42 x 0.55 1.94 $39.99 0.3 to 0.7 seconds) after commanding the
controller to change from forward to reverse
1.0 Yes No 1.38 x 1.42 x 0.55 1.94 $39.99 directions and before the reverse kicks in.
Most robots won’t notice this, but those
0.1 No No 1.25 x 0.5 x 0.4 0.19 $34.99 robots that require sudden motor direction
control — such as those used in sumo or
1.0 Yes Yes 1.12 x 0.95 x 0.48 0.51 $99.00
combat robot applications — the time delay
3.0 Yes Yes 1.75 x 2.17 x 0.85 4.03 $265.00 will make your robot act like it is very
sluggish to respond to your commands. In the
1.0 Yes Yes 1.31 x 1.10 x 0.53 1.27 $85.00 table shown here, Instant Forward/Reverse
time delay means that the robot has instant
No No No 1.8 x 1.97 x 0.82 2.0 $74.95 direction control reaction. A “Yes” for the
time delay means there there is a time delay
No No No 1.8 x 1.97 x 0.82 2.5 $159.95
present when changing directions.

SERVO 05.2005 73
MrRoboto.qxd 4/5/2005 10:07 AM Page 74

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 .What defines a robot, and where did the word


come from?

— Tina Ayling
via Internet
anthropomorphic mechanical being built to do routine man-
ual work for human beings or a mechanical device operating
automatically, especially by remote control, to perform in a
seemingly human way.” The Robot Institute of America
defines a robot as, “a reprogrammable, multifunctional
manipulator designed to move material, parts, tools, or

A .Let me first answer the second part of your ques-


tion. It is widely believed that the word originated
from the Czech word robota, which means inden-
tured servant or slave. The first known use of the word
“robot” is from a 1920s short play written by a Czech
specialized devices through variable programmed motions
for the performance of a variety of tasks.”
I personally believe that there are two types of robots,
simple and complex. A simple robot is anything that is man-
made and designed to accomplish a set of tasks. A complex
playwright Karel Capek, entitled “R.U.R.,” which stands for robot is a simple robot that has some level of intelligence/
“Rossum’s Universal Robots.” In this play, the robots features that enables it to react to its changing environment
eventually turn on their masters, which has become a so it can accomplish its tasks.
major theme in most movies that have robots as one of the Quite a variety of definitions for the same word, and it
main characters. only diverges from there depending on who you talk to.
There are many definitioins of what a robot is. There are far too many people that believe that if it is not
Webster’s New World Dictionary defines a robot as, “any autonomous, it is not a robot. They believe that remote-con-
trolled vehicles are not robots because they are only
Figure 1. Pull-up and pull-down resistor configurations used to doing what the human operator is telling it. But
ensure the input states are at known values. isn’t an autonomous robot the same thing? It was
programmed by a human being to do what the
+5V +5V
human wants it to do and react to stimuli in such a
way that the human programmer wanted it to
react. The autonomous robot is doing exactly what
the human designer wanted it to do but at a later
10 kΩ OPEN: INPUT = 0V
R1
time from when it was created. A remote-con-
CLOSED: INPUT = 5V
trolled vehicle just responds quicker because of the
INPUT direct human reaction. But then again, the rovers
INPUT
on Mars react to human commands hours after
they were given.
OPEN: INPUT = 5V
CLOSED: INPUT = 0V 10 kΩ Regardless of what people think, if you
R1 designed and built it, whether it is mechanical, elec-
trical, or virtual, and it is designed to accomplish
some task for you, it is a robot. Remember the ori-
gins of the word robota, which loosely translates to
PULL-UP RESISTOR servant. If your man-made creation is accomplishing
PULL-DOWN RESISTOR
CONFIGURATION CONFIGURATION some task for you, it is serving you, thus it is
a robot.
74 SERVO 05.2005
MrRoboto.qxd 4/6/2005 3:06 PM Page 75

Q .I have been having a lot of fun making ant-weight


robots and competing with them. I usually use the
electronics from old RadioShack remote-control cars
in my robots. One of the problems I have noticed is that
when I point the antenna right at my robot, it starts to
act crazy. It is not a big deal, but do you have any idea why
this happens?
— David Flanigan
Los Angles, CA

A .Actually, this problem is quite common, and can be


seen in transmitters — anywhere from the inexpensive
ones from RadioShack to the top-of-the-line units from
Futaba. Basically, the energy pattern that leaves an antenna
looks something like a donut with the antenna passing
through the center of it, where the radio waves are leaving
the surface of the antenna radially (perpendicularly). There
is very little to almost no energy leaving the antenna from
its tip. Figure 2. Memsic 2125 accelerometer module.
When you point the antenna at your robot, there is
almost no radio energy that reaches your robot that is direct- closed and five volts are applied directly to the BASIC
ly from the antenna. Most of the radio energy is transmitted Stamp. The Stamp will interpret this as the switch being
away from your robot. The signals that your robot eventually closed and respond accordingly. The interesting thing
does receive will be reflected signals off of the ground and occurs when the robot is not touching the obstacle and the
other structures. These signals are weaker than the original switch is open. Many people assume that the Stamp’s input
signals; the receiver may not respond to them or it may will be reading zero volts, but this is not always the case.
receive more than one reflected signal (bouncing off of more The only thing you know for sure is that the original
than one wall). This may cause the robot to get out of phase five volts are not being applied to the Stamp’s input. In
with itself, thus causing it to respond erratically to the origi- reality though, there is no current, but the voltage can be
nal signal. anything.
When working with any radio-controlled robot, make You said that you notice this problem more often when
sure that you hold your antenna parallel with the antenna the robot is running on the carpet. That gives me an indica-
that is on your robot. This will ensure that the maximum tion that a small charge may be developing on the switch
amount of radio energy gets to the receiver’s antenna. One that will begin to look like a voltage, and when it reaches a
way to prove this is to take your robot to a large field, where certain minimum threshold, the Stamp will assume that the
there are no trees or buildings to reflect the radio waves back switch has closed. A BASIC Stamp will assume any voltage
to your robot. Then see how far away you can get from the about 1.5 volts as being a Logic 1. All digital logic circuits
robot and still control it when the antenna is pointed direct- have to respond to these types of situations.
ly at the robot and when the antenna is oriented parallel to What people do to ensure that the voltage is zero when
the robot. the switch is open is to add a pull-down resistor to the
switch. Figure 1 shows a simple schematic for both pull-up
and pull-down resistors. The 10-kilohm resistors are known

Q .I am wondering if you can help me figure out why


my robot occasionally thinks it is hitting a wall when
there is nothing there. I am using eight lever switch-
es that tell the robot to move away from whatever it bumps
into. I have the switches directly wired between the battery
Figure 3. Memsic 2125 pulse output.

T1
and a BASIC Stamp. I have been wondering if this might be
related to static electricity, because it usually happens when
it is running on the carpet.
— Louis Sharp
Culver City, CA

A .Without seeing the robot myself and based on the


description you gave me, I am going to assume that
the problem may be related to not using a pull-up or
pull-down resistor with your switches.
When the robot is touching an obstacle, the switch is
T2

SERVO 05.2005 75
MrRoboto.qxd 4/5/2005 10:09 AM Page 76

volts. When the switch clos-

X-AXIS
es, the input sees zero
+5V volts. Hence, the pull-up
term comes from the fact
that the voltage is pulled up
MEMSIC 2125 to five volts when the
Y-AXIS
1 6 switch is open. These two
T-OUT configurations ensure that
2 5 the input voltage states are
Y-OUT (TO P1 ON STAMP) X-OUT (TO P0 ON STAMP) always known. Hopefully
3 4 this will help solve your
problem.

Figure 4. Memsic 2125 accelerometer test setup.

as the pull-up and pull-down resistors. In the pull-down con-


Q
.I would like to be
able to determine
just how much my
robot is tilting when it is
going up hills. Some friends have suggested that I use
figuration, when the switch is closed, the input sees five the ADXL210 accelerometers from Analog Devices, but their
volts as expected. When the switch is open, the input is geometries are impossible to work with. Do you, by any
forced to zero volts, because it is connected directly to chance, have some other suggestions and can you show me
ground through the resistor. It is not allowed to float to any how to use them?
voltage level.
The term pull-down comes from the voltage being pulled —James Boarding
down to zero volts when the switch is open. In the pull-up New York, NY
configuration, when the switch is open, the input sees five

A .The ADXL210 accelerometers from Analog Devices


(www.analog.com) are fine accelerometers and
are fairly popular, but their small size, geometry, and
lack of pins do make them fairly difficult to work with on reg-
ular breadboards. My suggestion would be that you take a
look at the Memsic 2125 accelerometer from Parallax
(www.parallax.com). This accelerometer is placed on a
convenient six-pin DIP package so they are easy to interface
in your projects. Figure 2 shows a photo of one of these
sensors.
This sensor has two axis of measurements oriented
90 degrees apart. By mounting the sensor vertically, you will
be able to measure your robot’s tilt by using an arctangent
function.
All that is required to use the sensor is to measure the
pulse width from the two axes and then convert that infor-
mation into acceleration (see the formula below). Figure 3
shows the output from both axes. T1 is the measured pulse
width, and T2 is the pulse period. These sensors are calibrat-
ed so that T2 is equal to 10 ms at 25 degrees C. If you want,
you can measure the period also.

aaxis = 8 ( T1
T2
- 0.5 )
Take a look at Figure 4. It shows a simple schematic for
hooking one of these sensors to a BASIC Stamp, and the
source code shown below is a simple program that illustrates
how to use the sensor and output its results to a debug
window.
Circle #122 on the Reader Service Card.
76 SERVO 05.2005
MrRoboto.qxd 4/5/2005 10:10 AM Page 77

‘ {$STAMP BS2p} Xtemp = ABS(Xaxis) ‘Convert any negative numbers to


‘ {$PBASIC 2.5} ‘positive
Ytemp = ABS(Yaxis) ‘numbers to simplify the integer
‘ This program will calculate a title angle for the ‘math.
‘ Memsic 2125 accelerometer. DEBUG CRSRXY, 0, 2 ‘Display the results in a Debug
‘ ‘Window.
‘ This program is based on the sample program provided DEBUG “Axis A(g)”, CR,
‘ with the accelerometer. “X “, (Xaxis.BIT15 * 13 + “ “),
DEC Xtemp/1000, “.”, DEC3 Xtemp//1000, “ g”,
Xin PIN 0 ‘X-axis input from Memsic 2125 CR,
‘(X-out, pin 6) “Y “, (Yaxis.BIT15 * 13 + “ “),
Yin PIN 1 ‘Y-axis input from Memsic 2125 DEC Ytemp / 1000, “.”, DEC3 Ytemp//1000,
‘(Y-out, pin 2) “ g”, CR, CR,
“Tilt = “, DEC3 brads, “.”, DEC1 brads//1000,
Xaxis VAR Word ‘X-axis pulse measurement “ Brads”, CR,
Yaxis VAR Word ‘Y-axis pulse measurement “ “, DEC3 degrees, “.”, DEC1 degrees//
Xtemp VAR Word ‘temp variable for X-axis 1000, “ Degrees”
‘calculations LOOP
Ytemp VAR Word ‘temp variable for Y-axis END
‘calculations
brads VAR Word ‘Binary radians 0-255 brads in
‘1 revolution This sensor only provides one tilt angle. By using two
degrees VAR Word ‘Tilt angle
of these sensors, you can determine forward/backward
Init: ‘Open DEBUG window open tilt and sideways tilt. To do this, place two sensors where
PAUSE 250 both x-axes are parallel and point toward the front of
DEBUG “Memsic 2125 Rotation”, CR the robot.
On one sensor, the y-axis will lie flat on the base of the
Main: ‘Main program loop
DO robot, pointing to the left, and the other sensor will have
PULSIN Xin, 1, Xtemp ‘Read X-Axis pulse width the y-axis pointing upwards, 90 degrees from the other
PULSIN Yin, 1, Ytemp ‘Read Y-Axis pulse width y-axis. The axis that is pointing up will now be known as the
‘Convert to 1/1000 g since Stamps are limited to 16 z-axis. The pitch angle (forward/backward) will now be the
‘bit math
‘When using BS2 and BS2e use the following formula angle between the z-axis and the x-axis, and the roll angle
‘ Xaxis = 8*Xtemp/5-4000 will be the angle between the z-axis and the y-axis on
‘ Yaxis = 8*Ytemp/5-4000 the robot.
‘When using BS2p use the following formulas With about 10 lines of code, you will know all of the
Xaxis = 3*Xtemp/5-4000
Yaxis = 3*Ytemp/5-4000
angular orientations of your robot. Now keep in mind that
these sensors are accelerometers; the angles will be skewed
brads = (Yaxis/16) ATN (Xaxis/16) ‘Calculate the if the robot is accelerating or hitting bumps. You are
‘B-Radian angle probably going to need to do some time-averaging of the
degrees = brads*180/128 ‘Convert to
‘degrees
measurements so that these momentary accelerations/
bumps can be filtered out of the final results. SV

w
e
N
KHR-1 Robo-One Robot Kit
These awesome kits are the latest craze in Japan.
Robot has 17 motors for fluid movements.
Programed and Controlled via PC.
Upgradable to Bluetooth wireless.

BROUGHT TO YOU BY WWW.SOZBOTS.COM


Circle #136 on the Reader Service Card.
SERVO 05.2005 77
Events.qxd 4/6/2005 1:53 PM Page 78

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

I've been asked for some tips for new robot clubs Includes several events related to the Eurobot
planning their first contest. Well, I aim to please. Here are a program.
few pointers. www.depeca.uah.es/alcabot
Take a look at what other clubs are doing. It's much
easier to adopt or adapt a proven contest format than 6 TEAMS (Technology Education Alliance with
invent something totally new. Middle Schools)
Start simple. A simple contest in which a lot of Applied Physics Lab, Johns Hopkins University,
members can participate and complete is better than an Laurel, MD
overly-complex contest that no one is able to complete. You TEAMS looks like a new group trying to get in on
can always add a more complex contest later. the FIRST/BEST action. Like those more familiar
One model of gradually increasing complexity is provid- events, TEAMS consists of mentors helping groups
ed by the Dallas Personal Robotics Group. They start with of students build robots that compete against each
"Quick-Trip," which involves the simplest navigation problem other. So far, it looks like TEAMS participation is
of moving from point A to point B and back again. The chal- limited to Maryland.
lenges involved in such basic navigation skills come as a www.theodysseyschool.org/~teams
surprise to many first time robot builders. After completing
Quick-Trip, DPRG robots graduate to T-Time which involves 11 Micro-Rato
a T-shaped course with three points: A, B, and C. University of Aveiro, Aveiro, Portugal
From there, the addition of a gripper allows robots to enter Micro-rats are similar to the more familiar micro-
"Can-Can," in which they must locate and retrieve soda cans. mouse, just a bit larger.
Where do you go from there? How about the Seattle http://microrato.ua.pt
Robotics Society Robo-Magellan. It requires all the skills
developed in the above contests but also relies heavily on 14 Historical Electronics Museum Robot Festival
vision processing, obstacle avoidance, and waypoint Historical Electronics Museum, Linthicum, MD
navigation. Several robot groups have started holding This local event is new to the robot competition
Robo-Magellan contests and they are proving to be very list but it's actually their sixth year to hold the
challenging. If you can complete this one, you're probably Robot Festival. They have a wide range of events
ready to move on to the DARPA Grand Challenge. including: Sumo, Fire-fighting robots, FIRST, LEGO
One last suggestion for anyone working on new contest Mindstorms, and even some "robot" combat for
ideas: make the goals as general as possible. Contests with those who like to see radio-controlled vehicles crash
very specific goals and complex rules result in robots that into each other.
can only do one thing well. It's better to use general goals www.robotfest.com
and minimal rules to guide the robot builder toward a more
creative and general-purpose robot that may be useful in the 14 LVBOTS CHALLENGE
real world. Rancho High School, Las Vegas, NV
— R. Steven Rainwater Events include line following, line maze solving, and
mini Sumo.
For last-minute updates and changes, you can always find www.lvbots.org
the most recent version of the Robot Competition FAQ at
Robots.net: http://robots.net/rcfaq.html 14 Western Canadian Robot Games
Southern Alberta Institute of Technology, Alberta,
Canada
M ay 2 0 0 5 This will be the 15th annual event for one of the
longest running robotics competitions in North
6 Alcabot America.
University of Alcala, Madrid, Spain www.robotgames.net/robot_society.htm

78 SERVO 05.2005
Appetizer.qxd 4/6/2005 1:46 PM Page 79

Flashing the Lights


by James Antonakos
always tell students that I and analysis, frequency response,
I became interested in electron-
ics to learn how to flash lights.
and active filters.
I learned a great deal that
Something about the on and off semester by simply meeting with
flashing of lights just got my Michael for five minutes between
attention. So, over the course of classes (he taught the first class, I
the past 20-odd years, I have taught the second), where he
worked on numerous projects that would describe what he did dur-
had their fair share of flashing ing his lecture. I would go and do
lights, from multiplexed seven-seg- the same lecture myself and meet
ment displays, scrolling-text mes- with him again afterwards to
sages on dot-matrix LED displays, review. Michael figured out things
and even a 4,000-watt display that that stumped me and showed me
contained 384 25-watt, 120-volt more about analyzing amplifiers
AC light bulbs, all controlled with than my four-year professors had.
only three wires. Of course, along the the schematic he gave me, but I sure During our free time, we took an
way, I picked up a few other tricks. studied it while I had it. interest in the National Semiconductor
How did I do it? I built lots of cir- I have learned a great deal about Digitalker chip and spent weeks investi-
cuits and created clouds of smoke how to design circuits by examining gating how it worked. At one point, we
when things went wrong. I read lots other people’s designs. It is the elec- hooked up a chart recorder to the
and lots of magazine articles and tronic equivalent of a crossword puz- audio output and slowed the
books, and I took plenty of things zle, where the blanks are answers to Digitalker’s clock speed down consider-
apart (without being able to get them such questions as, “Why is that compo- ably. We captured the audio waveform
back together when I was younger). nent used,” and “What is the purpose on the chart recorder and studied it.
When I became interested in elec- of that signal?” We learned there was a mirror symme-
tronics there was no Internet, so it was All through my adult life, I have try in the waveform, which was a sur-
harder to locate a circuit similar to had the good luck to work with people prising discovery. Michael and I did
what you needed. I built a large num- who were positive, hard-working, and many other experiments with audio
ber of RadioShack electronic kits. As a enthusiastic about their jobs. These and digital circuitry, and had a great
teenager, I read Popular Electronics, individuals shared their time and talent deal of fun doing them.
Radio Electronics, BYTE magazine, and with me, teaching me about new One professor, in particular,
even QST, a ham radio magazine that things, challenging me, working with changed my life forever by inspiring me
had interesting schematics in it. I me to develop new applications or to become a teacher and to write my
looked at the schematics and read the investigate existing devices. These first book. This was Alan Dixon, my first
descriptions of how they worked. individuals were my professors, my electronics professor. Alan allowed me
Lucky for me, my scoutmaster was colleagues, business associates, and to take his digital electronics course (a
an electrical engineer (and also a math even friends. senior-level course) before I even
teacher), and he introduced me to ana- My first office mate when I was a entered his department. This was
log and digital electronics, and exposed new faculty member was Michael rather nice of him, considering I was
me to my first programming language, Coppola. He was the same age as me flunking out of college and wasting
APL. He had also designed and built his and had already been at the college for away in a different degree program
own telephone answering machine (rel- three years. During my first semester, that did not interest me while earning
atively new back in those days). It was Michael and I taught two sections of lots of Ds and Fs.
a 19-inch, rack-mount chassis brimming the same electronics course, where we Alan allowed me to take his digital
with time-delay relays. I regret losing covered DC and AC amplifier design course without any prerequisites,
SERVO 05.2005 79
Appetizer.qxd 4/7/2005 11:40 AM Page 80

having written books on many dif- find work at three different video game
ferent technical subjects. I was arcades, fixing pinball machines and
lucky to have Alan while I was a video games. Even though I got fired
student and then to be able to for allowing my friends to play for free,
work with him later as a colleague. it was fun being around all that elec-
Alan contributed heavily to my tronic technology.
training as a faculty member. If I At some point, it became apparent
gained anything from my years to me that the light flashing could be
of working by his side, it was that accomplished through a dedicated
you should think big and make it hardware circuit or through a simple
interesting. hardware interface and a computer
My teenage world of video program.
games included games like “Space Assembly language, Basic, C, and
Invaders,” “Asteroids,” “Donkey other languages became part of my
Kong,” and “Tempest.” Like any toolbox, as I began to use software to
because I told him I had built my own good geek, I sent away for the control my hardware. I also realized
8080-based S-100 computer in my schematics of the game, having con- that the core of my fixation with flash-
basement. Those of you old enough to vinced the supply company I was an ing lights was something much simpler,
know what I just said will understand authorized service technician. I studied and that is my need to know how
that Alan’s course on 8080 assembly those game schematics for hours, things work. I just like to know.
language and digital electronics was learning many things about processor Lots of times, when I see some
right up my alley. After earning an A interfacing, video generation, and interesting electronic gizmo, I try to
that semester, I finally had something sound processing. There was some- design and build one myself (after
no other college course had given me: thing exciting about looking at the cir- peeking under the hood, if I can). This
confidence. Two years later, I graduat- cuit board for a new video game, as interest in reverse engineering and cre-
ed from Alan’s department and head- they were as large as baking sheets ating things that do not exist extended
ed to RIT to work on my BSEE. Right back then and crammed with a couple itself into the areas of speech synthesis,
before I left, I said to Alan, “Hey, do hundred integrated circuits. data compression, error detection and
you want to write a book?” Now, it can all be done on the PC correction, computer networking,
Now, 21 years later, I am a profes- with clever software and built-in sound image processing, and many other
sor, teaching in Alan’s old department, and video. But back then, I managed to areas that fascinate me.

The Most Intelligent


Servos on the Planet
For Animatronics and Robotics
Positioning and Continuous Rotation Models

www.i-Servo.com Electronic Parts & Supplies


Since 1967

T E X A S A R T RO B OT S For the finest in robots, parts, and services,


H A N D M A D E I N T E L L I G E N C E

UNIQUE LIMITED EDITIONS go to www.servomagazine.com and


INTELLIGENT & AUTONOMOUS click on Robo-Links to hotlink to
HAND CRAFTED
.
WWW A RT BOTS COM . these great companies.

80 SERVO 05.2005
Appetizer.qxd 4/6/2005 1:47 PM Page 81

Once, during a student trip to the module, and Ken wrote a simple calling it the “head” of my new robot.
Boston Museum of Science, I saw a TCP/IP application to flash numbers on I was five years old. A television car-
human reaction time circuit. I thought the display. toon called “8th Man,” and another
it was interesting, so I went back to my Ken and I trade program revisions called “Gigantor” (TV from the 1960s),
college and built one with a student. back and forth, making the Internet- got me really interested in robots as a
Students still play with it every day as it based flashing circuit do some new child. Of course, the inside of the robot
is mounted in the hallway on our floor trick each time. Right now, we have it was more interesting than the outside,
right next to the water fountain. programmed to flash the IP address of so that led to the investigation of
I spent over 15 years working part- Ken’s game server to both of our hous- electronic brains.
time on a Ph.D. in computer science (I es every few minutes. As I wrote this Can you imagine how lucky I felt
am not finished yet), taking courses, article, the display flashed silently when I scored a tour at a local IBM
performing research, learning more above me several times. facility and actually touched and
about computers than I ever imagined, If I am successful at designing and programmed an IBM 360? Pure geek,
and being exposed to many things not building something, the results are, at but firmly on course for a future in
in the orbit of an electrical engineer. least, partially due to the fact that I like electronics.
I put in this time voluntarily, as my challenges and do not like to quit work- After 28 years of evolution, post
job does not require it. I did it for the ing on a problem until I solve it. Alan high school, what am I now, ? An elec-
fun of it, because I was interested in Dixon challenged me constantly, both trical engineer? A computer scientist?
the new material. I used my new as a student and fellow faculty mem- A professor? A designer? A program-
knowledge from my Ph.D. courses to ber. He would get a twinkle in his eye mer? I think I am all of these things,
add content to several of my college when we were discussing something and more, because I also like to hike,
courses, and wrote several books with new, and he would say, “That is proba- read, watch sci-fi movies, play with my
it, as well. bly too hard for you, Jamie,” or “I’ll bet children and friends, and talk to my
In addition to Alan Dixon (whom I you can’t do that, Jamie.” Naturally, I wife about things above my head.
wrote my first book with) is my other had to work night and day building a Will I continue trying to come up
co-author, Kenneth Mansfield. Ken and new circuit or writing a new program with new ways to flash the lights? You
I have challenged each other greatly to show him I could do it. bet I will. I owe my way of life to my
over the years, beginning as student A sample of some of my designs pursuit of flashing lights and all the
lab partners, working on our two-year can be found at http://web.suny wonder behind why we choose to
degrees, and continuing to this day as broome.edu/~antonakos_j/projects/ make them flash. SV
professors in the same department. You will notice that there are plen-
My interest in flashing lights has ty of lights involved in the projects and AUTHOR BIO
evolved to the point where the flashing almost all of them are built by or with
is controlled over the Internet by a students. Most of the projects allow James Antonakos is a Professor in
TCP/IP application and a small embed- you to see the electronic innards that the Departments of Electrical
ded Web server module. Ken found the make them work. Engineering Technology and Computer
Web server modules and ordered a few Have I been a freak all my life? A Studies at Broome Community College.
to play with (he likes to experiment hopeless electronic and computer You may reach him at antonakos_j@sun
ybroome.edu or visit his website at
with new gizmos, too). We interfaced a geek? I think so, from a very early age.
www.sunybroome.edu/~antonakos_j
single seven-segment display to the I remember making a small box and

Advertiser Index
Abacom Technologies .........................31 IMService ..............................................54 R4 Systems, Inc......................................33
All Electronics Corp. ............................55 Jameco ............................................47, 83 RadioShack .............................................9
AnyChip ................................................16 Labjack ..................................................35 Resources Un-Ltd. .................................71
AREXX Engineering ..............................21 Lemon Studios .....................................35 Robotics Group, Inc..............................25
BitScope ................................................17 Lynxmotion, Inc. ...................................69 RobotShop ...........................................66
Cook’s Institute .....................................76 Madell Technology ..............................23 Smithy.....................................................55
CrustCrawler ...........................................7 Net Media ...............................................2 Solutions Cubed....................................27
Electronic Goldmine ............................50 NUBOTICS .............................................55 Sozbots..................................................77
Enigma Industries .................................55 Parallax, Inc. ...........................Back Cover Technological Arts ...............................41
Garage Technologies ...........................55 PCB123/PCBexpress ...............................3 Tetsujin 2005 ..........................................11
HiTec ......................................................59 PCB Fab Express ...................................58 Vantec ...................................................57
Hobby Engineering ..............................65 Pololu Robotics & Electronics .............39 Zagros Robotics ...................................55

SERVO 05.2005 81
ThenAndNow.qxd 4/6/2005 1:57 PM Page 82

THEN AND NOW


Tomy Omnibots
by Tom Carroll

Imendirector
1984, Lou Gostinger, marketing
for Tomy Corporation, called
about a new line of robots that his
of our members quickly did some
measurements and determined that a
small 6502 processor board would
company was developing. They had neatly fit into the base.
marketed several “robot” toys prior to We didn’t have to wait long before
that but were now interested in pro- Tomy brought out an experimenter’s
moting a real robot that adults would base called Homer.
find interesting and useful. The $495.00 Omnibot 2000 was a
They had a series of unique toys, great improvement over the original
such as a robot owl called “Hootbot” Omnibot. It stood quite a bit taller and
and a rather cute dog robot called seemed closer to a more useful person-
“Spotbot” that really didn’t do a lot. al robot than the previous models. The
Later came the “Verbot” talking robot best part — as far as we experimenters
that began to pique the interests of felt — was its three-axis arm (only the
serious robot experimenters. The right arm was motorized) that could
Omnibot arrived on the scene in 1984. grasp a soda can and pour it into a
At a price of $250.00, it was their first cup. If you had attached the motorized
attempt at a serious home robot. tray to the robot’s front, the tray could
During the conversation, I could move several cups in an oval pattern.
sense that Lou wanted our Robotics This was all accomplished by home.” I saw what I think were proto-
Society of Southern California group to remote control, but hackers soon had types but never saw them in produc-
see and evaluate their latest and best, the arm under control of a John Bell tion. TTC also had a B&W TV camera
the Omnibot 2000. (Remember when 6502 microprocessor board and pro- attachment that could be used on the
the year 2000 was the future?) He grams that could be stored on the built- Homer or Hearoid at $350.00.
brought several to one of our meet- in tape deck. Sometime around 1986, I got a
ings. It was an instant hit with the Tomy Koygo Co., the Japanese par- call from Mary Woodworth of Tomy,
members, but in later conversations, ent of Tomy, was trying to pull away asking if our robotics group would be
we all agreed that the attraction was from the “toy” image of its robot prod- interested in buying off some of their
for its ability to be hacked rather than ucts with another robot called stock of robots, as they were no
for its out-of-the-box usefulness. One “Hearoid” from a Tomy offshoot com- longer selling that well. I could hardly
pany called TTC, Tomy Technical get the word “yes” out of my mouth,
Corporation. This cute little robot made as saliva was dripping onto the phone.
its debut in mid 1985 and was similar At their Wilmington warehouse, I
to the original Omnibot. The $395.00 managed to stuff six Hearoids, two
Hearoid could be controlled by the Omnibot 2000s, some miscellaneous
user’s voice and also had a grasping robots, and robot parts into my car
hand, a removable carrying tray, and a without sounding too greedy. Hey, I’m
built-in tape deck. Voice controls could sure she saw right through me when
operate all the movements, lights, and they only cost me $5.00 each, plus
tape deck. several free broken 2000 motorized
One of the most interesting prod- arms. Others of our group bought all
ucts to me was the Homer robot proj- they could haul home. I managed to
ect base. At about the size of a fat use several of mine as “action props”
bathroom scale, the $150.00 base was in the movie Automatic and as still
an experimenter’s ideal platform. With props in I Robot.
six driven wheels, an ultrasonic con- I’ve seen the Tomy robots on eBay
troller (remember when TV controllers and all over the Internet. I highly rec-
were ultrasonic and not IR?) that could ommend them as an easily hackable
make it go forward and reverse, turn robot, as well as an amazing toy of
right or left, and even “return to yesteryear. SV
82 SERVO 05.2005
CoverInside.qxd 4/5/2005 7:55 PM Page 2

Remember when...
...electronics stores were stocked to the rafters

with every component imaginable and there was ALWAYS


a knowledgeable person there to help you?

Think those days are gone?


Great Products. Awesome Prices.
Well they’re not!
1.800.831.4242
You just need Jameco!
Call for a FREE 256-page catalog today.

We have the electronic components and knowledgeable


Technical Support people who can help bring back the fun
in your electronics hobbies, inventions, and DIY projects.

Circle #36 on the Reader Service Card.

Be sure to visit our new website at Jameco Electronics


www.Jameco.com/nvd —where electronics is still fun!
Circle #37 on the Reader Service Card.
Cover.qxd 4/7/2005 2:24 PM Page 84

Vol. 3 No. 5
SERVO MAGAZINE
ROBOTS TO THE RESCUE
MAY 2005

U.S. $5.50 CANADA $9.25


0 5>

0 74470 58285 4
Circle #40 on the Reader Service Card.

You might also like