You are on page 1of 85

For more Free E-books

Visit
http://ali-almukhtar.blogspot.com
Page 1

0 8>
$7.00
1:54 PM

4
CANADA

74470 58285
7/9/2008

$5.50
U.S.
Cover.qxd

0
Vol. 6 No. 8 SERVO MAGAZINE DARPA AT THE GRAND PRIX • RC ROBOTICS • CPLD SERVO DRIVER • VEX MOTOR PWM August 2008
Full Page.qxd 7/9/2008 9:57 AM Page 2

Let your geek shine.


Meet Pete Lewis, lead vocalist for the band
Storytyme. Pete recently created the RS1000,
a new personal monitor system for performing
musicians. It was SparkFun’s tutorials, products
and PCB service that enabled him to take his idea
to market in less than a year.

The tools are out there. Find the resources you


need to let your geek shine too.

Sharing Ingenuity
W W W. S P A R K F U N . C O M

©2008 SparkFun Electronics, Inc. All rights reserved.


Hear music from Storytyme at www.storytymeband.com, or check
out Pete’s RS1000 at www.rockonaudio.com.
Full Page.qxd 7/9/2008 10:18 AM Page 3

a) Science
b) Technology
c) Engineering
d) Mathematics
e) All of the above

Classroom Lab Kit


bundles start at $549

Studies prove what


we at VEX already knew...
®

Students love Robotics.


Given a choice, middle and high school students prefer robotics among science courses.
And our Classroom Lab Kits make it easier than ever to bring VEX Robotics to your
school while making your budget go farther. With standards-based curriculum available
from Intelitek, Carnegie-Mellon and Autodesk, VEX is quickly becoming the robotics
platform of choice among schools internationally. We now offer local, regional, national
and international competitions for students to test their skill and express themselves.
Visit RobotEvents.com for event information. Only one choice is clear when considering
an educational robotics platform – the VEX Robotics Design System.

Think. Create. Build. Amaze. Vex.

A product of Innovation First. Copyright 2008. Innovation First, Inc. V I S I T W W W. V E X R O B O T I C S . C O M


TOC Aug08.qxd 7/9/2008 4:04 PM Page 4

PAGE 14 THE COMBAT ZONE ...


Features
28 BUILD REPORT:
Combat Robot: $1.25 a Pound
32 PARTS IS PARTS:
Power Switches

Events
30 Results and Upcoming Competitions
30 Event Report:
Mall of America Rotunda Rumble

Robot Profile
33
Columns Touro

08 Robytes
by Jeff Eckert
Stimulating Robot Tidbits

10 GeerHead
by David Geer
MAARS Robots Taking Off for War

14 Twin Tweaks — Special Edition


by Bryce and Evan Woolley
Rhyme of the Modern Submariner

20 Ask Mr. Roboto


by Dennis Clark
Your Problems Solved Here

62 Robotics Resources
by Gordon McComb
Robotics via Remote Control
PAGE 10
67 BasicBoard Robotics
06
Departments

by William Smith Mind/Iron


Moving From BS1 to PIC
24 Events Calendar
76 Appetizer 26 New Products
by John Sosoka
The Greatest Playground of All
44 Robotics Showcase
66 Robo-Links
78 Then and Now 73 SERVO Webstore
81
by Tom Carroll
Robots — How We’ve Built Them Advertiser’s Index
Over the Years

4 SERVO 08.2008
TOC Aug08.qxd 7/9/2008 5:14 PM Page 5

08.2008 VOL. 6 NO. 8

PAGE 28

Features & Projects


36 The CPLD Servo Driver
by Fred Eady
Driving hobby servos is only one
of the tricks a CPLD can perform.
In addition to turning servo rotors,
PAGE 46 you can also use a CPLD to replace a
number of discreet logic ICs in your
next robotic design.

46 Build a PWM Circuit to


Run a Vex Motor
by John Toebes
You don’t just have to use NiCad
batteries to drive a Vex motor.

49 Look Ma, No Driver!


by Jason Bardis
Autonomous DARPA vehicles take
center stage (track!) at the
Long Beach Grand Prix.

55 Build the Ultimate Robot


by Michael Simpson
PAGE 36 If you’re not afraid to part with a
little cash, this series will give you
the choice of building either a six-
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, or three-wheeled robot with an
CA 92879. PERIODICALS POSTAGE PAID AT CORONA, CA AND AT ADDITION-
AL ENTRY MAILING OFFICES. POSTMASTER: Send address changes to SERVO
onboard PC.
Magazine, P.O. Box 15277, North Hollywood, CA 91615 or Station
A, P.O. Box 54,Windsor ON N9A 6J5; cpcreturns@servomagazine.com

SERVO 08.2008 5
Mind-Iron Aug08.qxd 7/9/2008 8:10 PM Page 6

Published Monthly By
T & L Publications, Inc.
430 Princeland Court
Corona, CA 92879-1300
(951) 371-8497
FAX (951) 371-3052
Webstore Only 1-800-783-4624
www.servomagazine.com

Mind / Iron Subscriptions


Toll Free 1-877-525-2539
Outside US 1-818-487-4545
P.O. Box 15277
by Bryan Bergeron, Editor ΠNorth Hollywood, CA 91615
PUBLISHER
Larry Lemieux
Next Level Robotics reach of every roboticist is software
publisher@servomagazine.com
development. For example, in the
To an outsider looking in at area of robot vision, there is a need ASSOCIATE PUBLISHER/
amateur robotics, it often appears to better recognize, track, and VP OF SALES/MARKETING
that the field hasn’t evolved much in differentiate objects, to read facial Robin Lemieux
display@servomagazine.com
the past few years. Certainly, there expressions and gestures, and — in
have been evolutionary gains. general — to make robots more EDITOR
Sensors are a little smaller and socially adaptable. If your interest is Bryan Bergeron
smarter, and motors and controllers outdoor navigation, then there is a techedit-servo@yahoo.com
are a little more powerful and world of software options to explore, CONTRIBUTING EDITORS
sophisticated. Furthermore, there from GPS-based localization to Jeff Eckert Tom Carroll
have been a few advances in navigation with light and RF beacons. Gordon McComb David Geer
Dennis Clark R. Steven Rainwater
microcontrollers, such as the Means of providing robots with Fred Eady Kevin Berry
development of the Parallax Propeller, the ability to maneuver through Bryce Woolley Evan Woolley
and more powerful field mazes and how to best avoid Jason Bardis John Toebes
programmable gate arrays or FPGAs. ledges and low-traction areas have Michael Simpson John Sosoka
Tim Wolter Aaron Nielsen
Despite incremental advances in yet to be perfected. Chad New William Smith
the components we use to construct Connected to a PC, your robotic
robots, the fundamental capabilities arm or vehicle with appropriate CIRCULATION DIRECTOR
of carpet roamers, crawlers, and sensors can become just as Tracy Kerley
subscribe@servomagazine.com
arms haven’t changed much. The sophisticated as any rover developed
leading edge of low-cost robotics is by NASA. Of course, you can work MARKETING COORDINATOR
often represented by toys carried by on challenges completely within a WEBSTORE
the major retail outlets. So what’s it computer using simulations. And Brian Kirkpatrick
sales@servomagazine.com
going to take to get amateur robotics that’s an efficient, low-cost method.
to the next level? That is, to a level However, at some point you have to WEB CONTENT
that not only matches the capabilities validate your work on a real robot. Michael Kaudze
website@servomagazine.com
illustrated by commercial and One thing I’ve learned over several
academic robotics, but that at least years of building robots is that PRODUCTION/GRAPHICS
hints at the capabilities we ascribe to unless you’re working on a specific Shannon Lemieux
robots depicted in Star Wars and hardware specification, you’ll make Joe Keungmanivong
Transformers? more progress in shorter time if you ADMINISTRATIVE ASSISTANT
First, a reality check. Developing leave the design of the hardware Debbie Stauffacher
a semi-autonomous Martian rover or platform to someone else and focus
Copyright 2008 by
a robotic prosthetic arm for a soldier on the overall functionality. T & L Publications, Inc.
injured in Iraq takes significant For example, why spend months All Rights Reserved
financial resources and teams of designing and building an arm when All advertising is subject to publisher’s approval.
engineers, scientists, and machinists. you can buy a kit from Lynxmotion We are not responsible for mistakes, misprints,
or typographical errors. SERVO Magazine
So what can you do, given the (www.lynxmotion.com) or assumes no responsibility for the availability or
current economic environment, CrustCrawler (www.crustcrawler. condition of advertised items or for the honesty
to move your robot designs to the com)? Even if you have to modify an of the advertiser.The publisher makes no claims
next level? off-the-shelf arm, you’ll likely still save for the legality of any item advertised in SERVO.
This is the sole responsibility of the advertiser.
The most fertile area in robotics time and money. I’ve used various Advertisers and their agencies agree to
yet to be fully exploited that is within versions of the CrustCrawler arm — indemnify and protect the publisher from any
and all claims, action, or expense arising from
advertising placed in SERVO. Please send all
Mind/Iron Continued
editorial correspondence, UPS, overnight mail,
and artwork to: 430 Princeland Court,
Corona, CA 92879.
6 SERVO 08.2008
Mind-Iron Aug08.qxd 7/9/2008 1:54 PM Page 7

Wearable Sensors they readily grasped how real-time


tactile data could help evaluate
Conceived at and improve their performance,"

Harvard Robotics explained Ables.


FingerTPS systems start at a mere
Lab Measure $4,995 for a single-hand system with
two sensors that are available in
Hand Forces multiple sizes in specialized shapes
for fingers, thumbs, palms, and inner
FingerTPS™ Put phalanges. FingerTPS systems
Comfortable Tactile Sensors also include a video camera for
synchronized video input, software,
at Your Fingertips ... Literally and a reference sensor for easy,
one-touch calibration.
ressure Profile Systems, Inc. (PPS), via wireless Bluetooth connection. Pressure Profile Systems, Inc., was
P had just released their innovative
new wireless FingerTPS™ (Finger
FingerTPS tactile data with
integrated video provides a complete
founded in 1996 by two graduates
from the Harvard University Robotics
Tactile Pressure Sensing) system for representation of user interaction with Lab. Government grants and industrial
immediate sale worldwide. FingerTPS tools, sports equipment, new product sales have enabled PPS tactile sensing
sensors are soft, flexible sensors worn designs, and medical applications. technology development for medical
on the hand that transmit accurate, "The FingerTPS concept was devices, industrial instruments, and
repeatable tactile force data to a PC originally funded by DARPA research consumer electronics.
grants to capture the forces of a For more information, visit the PPS
skilled surgeon for developing website at ww.pressureprofile.com.
including their latest Smart robotic arm — virtual surgical simulation
as the basis for many projects that rely systems. After a decade of
on the processing power of a PC. Both
CrustCrawler and Lynxmotion offer
numerous iterations, we finally FAST FAQs
have a system that is easy to What is the maximum pressure range
PC-based software to control their arms, use," said Dr. Jae Son, CEO that PPS sensors can reach?
and third party software is available, of PPS.
as well. PPS industrial sensors can reach pressure
The wireless FingerTPS ranges of up to 2,000 psi. However, currently
Similarly, you needn’t start your system was unveiled to the PPS can only guarantee factory calibration at
software designs from scratch or with a public at the IVR Industrial
pressures up to 700 psi.
huge budget. The entry-level versions of Virtual Reality Expo in Tokyo, What is the maximum speed of the
the various Microsoft .Net compilers and Japan this last June. "The PPS sensors?
the MS Robotics Studio can be freely wireless capability and the TactArray systems have an element-to-element
downloaded. If you’re not a Microsoft simple, one-touch calibration scan speed of up to 10 kHz. ConTacts systems
fan, there are dozens of software have a continuous analog output allowing any
were the most exciting features sampling rate, but the sensors have a
options, from MatLab and Simulink among attending engineers and throughput of approximately 2 kHz.
(www.mathworks.com) to open-source researchers from hundreds of
compilers. If possible, leverage what’s Of what materials are PPS
leading firms," said David Ables, sensors made?
been done before and move to the next CTO of PPS.
level more quickly and easily. Just be sure PPS sensors are made from conductive cloth
FingerTPS was recently (conformable), Kapton (industrial), Lycra
to return the favor and post your software featured in programming on the (stretchable) or a combination of conductive
to the web – and consider sharing your National Geographic Channel
cloth and Kapton (hybrid).
experience with SERVO readers. and Fox Sports Net. Episodes of What is the smallest element size
I don’t want to discourage "SportScience" and "FightScience" for PPS sensors?
mechanical engineers and engineers-in- called on PPS and industry Element sizes in TactArray sensor arrays can
training from tackling new hardware experts to scientifically explain be as small as 1mm x 2 mm, however, practical
designs. If you have a machine shop at resolution is actually much greater. PPS's
the performance of world-class pressure-sensing technology allows accurate
your disposal and the skill to use those athletes including NFL Hall of pressure interpolation between sensing
tools, then don’t hesitate. Everyone has Fame receiver Jerry Rice, NBA
elements. Single-element ConTacts sensors
have been built as small as 5 mm x 5 mm.
different goals and ideas of what they sharpshooter Jason Kapono,
want to get out of robotics. However, if and Mixed Martial Arts legend Are PPS sensors waterproof?
getting to the next level quickly on a Randy Coture. PPS sensors are NOT waterproof, however,
limited budget is your focus, then you "For elite athletes like Jerry PPS can provide removable waterproof
should at least consider focusing on the Rice or Jason Kapono, their sheaths to protect the sensors or
brains — as opposed to the brawn — of complete encapsulation for more
hands are their livelihood, and rugged environments.
your robots. SV

SERVO 08.2008 7
Robytes.qxd 7/8/2008 10:25 AM Page 8

Robytes by Jeff Eckert


New Hopperbot Sets Record Microbots Self Organize probably come up with something
more provocative.
Mechanical jumpers are nothing
new, but one that was unveiled at
the IEEE International Conference on
Robotics and Automation appears to
Robofish in School
have, um, leaped ahead of its com- Most subaquatic robots
petitors in terms of jump distance. need to communicate with
The tiny, 7 g mechanical grasshopper human beings from time to
can jump 1.4 m, which is said to be time, often via communication
10 times farther — relative to its size satellites during operation. But
— than any other existing jumping the University of Washington
robot. The little bug was developed (www.washington.edu) is
at the Laboratory of Intelligent developing fin-propelled
Systems at the Ecole Polytechnique Robofish that can skip the
Federale de Lausanne (EPFL, www. middle man and work
epfl.ch), and, according to Prof. Dario Microassembly experiment recorded via optical cooperatively with each other
Floreano, “This biomimetic form of microscope. Image courtesy of Duke University. until their task is complete.
jumping is unique because it allows Kristi Morgansen, UW assistant
microrobots to travel over many types Down on the MEMS level, Duke professor of aeronautics and
of rough terrain where no other walk- University (www.duke.edu) astronautics, recently ran them in a
ing or wheeled robot could go. These researchers have been training micro- school of three as their first major
tiny jumping robots could be fitted bots to maneuver separately, without test, in which they were programmed
with solar cells to recharge between any obvious guidance, and assemble to either swim all in one direction or
jumps and deployed in swarms for themselves into organized structures. all in different directions. The latter
extended exploration of remote areas The devices — which are basically doesn’t sound like much of an
on Earth or on other planets.” shaped like a spatula — can display accomplishment, being essentially
The bot mimics the way fleas, surprisingly flexible movements. In what would happen if you turned
locusts, and other pests travel by one experiment, two of them were three flies loose in your living room.
charging two torsion springs via a taught to pirouette to Strauss music But bigger things are planned. The
small 0.6 g pager motor and a cam. on a tiny “dance floor.” In the researchers trained some live fish to
To optimize jump performance, the accompanying photo, four of them respond to a stimulus by swimming
legs can be adjusted for jumping numbered 1, 2, 4, and 5 (no. 3 into a feeding area. They discovered
force, take-off angle, and force profile was probably somewhere being that you only have to train about a
during the acceleration phase. An questioned by Mike Nifong), started third of the fish to get the entire school
on-board battery allows it to make up at the corners of a rectangle a bit to act in unison. “The fish that have a
to 320 jumps at 3 second intervals. smaller than one square mm. Next, strong idea tend to dominate over those
two species (4 and 5) docked to form
the initial stable shape, after
which the others joined to form
the final assembly.
The devices measure about
60 x 250 x 10 µm and draw
power from an electrified
surface. They take steps of only
10 to 20 nm but can make up
to 20,000 movements per
second. The only speculation
about practical applications Fin-propelled Robofish (shown with
cited the ability to move around a penny) is about the size of a 10 lb
This mechanical grasshopper can leap 27 the interiors of laboratory-on- tuna. Photo courtesy of the
times its body size. Photo courtesy of EPFL. a-chip devices. But they’ll University of Washington.

8 SERVO 08.2008
Robytes.qxd 7/8/2008 10:25 AM Page 9

Robytes

that don’t,” according to Morgansen. researcher Daan Hobbelen of the paper. The bot is compatible for use
“That has implications for what will Delft University of Technology (TU by up to five different people
happen in a group of vehicles. Can one Delft) has developed an advanced (presumably not all at once), and it
vehicle make the rest of the group do robot, called Flame, that includes a scanner (to which users
something just based on its behavior?” demonstrates that a robot can be present an access pass and a
Like the live fish, the robotic ones human-like, energy-efficient, and four-digit secret code) and a paper
communicate with each other, in this highly stable. The overall goal is to dispensing system. It even monitors
case using low-frequency sonar. Test provide insight into how people walk, how much toilet paper is left on the
results showed that although only about which ultimately can be applied roll. Can’t you feel the greenhouse
half of the transmitted communications to helping people with mobility gases abating already? For info on
actually get through, the Robofish problems via improved diagnosis and this and others in the winners’ circle,
programming allowed them to accom- rehab. Flame employs seven motors, visit mindstorms.lego.com/news/.
plish their task anyway. The next step a balance organ, and some propri-
will be to let them loose in the ocean, etary algorithms to ensure a high
where they will be programmed to level of stability. The robot can, for
trail a remote-controlled toy shark. example, apply the information
New Hall of Fame Inductees
Ultimately, they could be dispatched provided by its balance organ to place
to explore caves and ice-covered its feet slightly farther apart to
waters, track whales, map regions of prevent falling. According to
pollution, or harass baby seals. Hobbelen, Flame’s advanced ankles
have already provided motion scientists
with advanced insight into how the
complicated joint works. For details,
Walk Like a Man visit www.dbl.tudelft.nl.
Most bots walk in the rigid,
clunky movements that are typical of
industrial machinery, toy robots, and
people who buy their shoes at
TP-Bot Wins Award
Wal-Mart. This differs from the much
more fluid way humans generally
move, which basically consists of
falling forward in a controlled
manner. But, in pursuit of a PhD,

The Raibert Hopper.


Photo courtesy of MIT.

In case you missed it, the 2008


inductees into the Carnegie Mellon
The award-winning TP-Bot 2008. Robot Hall of Fame (www.robothallof
Photo courtesy of LEGO. fame.org) are the Raibert Hopper,
NavLab5, LEGO® Mindstorms, and Lt.
LEGO’s 2008 Earth Day Building Cmdr. Data. The Hopper (shown in the
Challenge was to create a photo) was developed in 1983-84 for
MINDSTORMS NXT robot that “could experiments on active balance and
be used to help maintain a healthy, dynamics in legged locomotion. Named
sustainable environment.” The for its developer, Marc Raibert, the
Champion’s Award went to Dino one-legged bot could hop in place or
Martino’s TP-Bot 2008, which helps run at a top speed of 2.2 m/sec (4.8
Robot “Flame” walks like a human. save energy and the environment via mph). Congrats to all. SV
Photo courtesy of TU Delft. the efficient dispensing of toilet

SERVO 08.2008 9
Geerhead.qxd 7/8/2008 10:16 AM Page 10

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

MAARS Robots
Taking Off for War
SWORDS Military Robots Graduating to 2.0, MAARS Status
n 2005, I covered the SWORDS The SWORDS are unmanned unmanned, and controlled by the

I (Special Weapons Observation


Reconnaissance Direct-action
System) maneuverable military robots,
ground vehicles (UGVs), which means
that threats to these vehicles in their
everyday line of work don’t directly
soldiers themselves, according to
the release.
MAARS will replace SWORDS as
which soldiers use as scouts and threaten the soldiers who operate the core platform for building out
remote weapons systems in the war in them from a safe distance via a these kinds of systems for battlefield
Iraq. As reported, the SWORDS iteration remote control console. tactics. Because the new MAARS
of the robotic sentry is compatible Since the Defense Authorization platform is standardized and modular,
with M16s, M240s, M249s, Barrett 50 Bill for Unmanned Vehicles, the armed it will make it affordable for the
calibers, 40 mm grenade launchers, or forces have been pressed to convert the military to have more of the robots
M202 anti-tank rocket systems. vast majority of ground combat vehicles and to repair them more readily.
The SWORDS have many other to unmanned for this very reason. QinetiQ worked closely with the
features including advanced sensing. The war and the need to keep military to ensure that the MAARS
The robots use these technologies soldiers further out of risk has robot would “enhance the war fighter’s
to locate enemy combatants, IEDs brought us to the latest evolution of capability and lethality, extend his
(Improvised Explosive Devices), and the unmanned fighter. The newly situational awareness, and provide all
other hazards. released MAARS (Modular Advanced these capabilities across the spectrum
Armed Robotic System) is the of combat,” says Dr. William Ribich,
Here is the new MAARS robot — the larger offspring of the SWORDS and President of the Technology Solutions
offspring to the SWORDS robot. Four “the first fully modular ground Group, QinetiQ North America.
grenade launchers, machine gun, turret,
other equipment, and tracks visible. robot system capable of providing By extending the capabilities of
a measured response including MAARS, soldiers can save their lives
nonlethal, less lethal, and even and the lives of area non-combatants
lethal stand-off capabilities,” says more frequently.
a June 4th media release from
QinetiQ, owner of Foster-Miller, MAARS Mayhem
which produced the robots.
If you’ve heard references to Unlike SWORDS, MAARS gives
SWORDS 2.0, these are the the human operator choices for
MAARS robots. Soldiers will be confrontation on the battlefield. For
able to supplement the three nonlethal confrontation, a human
existing SWORDS robots which operator can project their voice or a
are deployed in Iraq with these siren through mounted speakers to a
robots. person or crowd, or emit a green
The Federal government and pulsing laser light that is visually
QinetiQ have been working on confusing, though harmless.
MAARS for 18 months to deliver When a confrontation calls for
a robot system that is armed, more, soldiers use MAARS to disperse
10 SERVO 08.2008
Geerhead.qxd 7/8/2008 10:17 AM Page 11

GEERHEAD

This Operator Control Unit (OCU) is the


SWORD’s wireless remote control,
fitted with a hard-shell case. Notice
the antenna, numerous controls for
driving and manipulating the SWORD
combat robot, and the multiple split
screens for viewing everything the
robot’s cameras pick up.

40 mm “less lethal” grenade


ammunition, bean bags, smoke, star
clusters (illumination), tear gas,
pepper spray, and M240B medium
machine gun warning shots. This
type of confrontation is purposed
against the enemy with the
weapons/guns pointed upward as if robot on a uni-body frame/chassis
to fire warning shots. For lethal with a simple, plug-and-play design
firepower, MAARS weapons are for quick assembly with new
pointed directly at their targets, firing accessories and attachments that Here is the mighty SWORD with cameras,
40 mm high-explosive grenades or may become available. The uni-body machine gun, ammo case, tracks, antennae,
400 rounds of 7.62 mm shells from construction makes access to the and identifying US flag emblem.
the M240B medium machine gun. battery and electronics
Where SWORDS came with easy and efficient. The This drawing of the SWORDS robot identifies key parts
weapons optional, MAARS come with MAARS has a larger and systems, many of which are duplicated
or enhanced on the new MAARS robot.
four grenade launchers, a machine payload bay area
gun, and less lethal defenses than SWORDS,
attached. higher torque for
The MAARS robot is remote faster travel, and
controlled to over a kilometer away improved braking
from the operator, putting a safety capability. The
buffer between the soldier-operator robot’s remote
and the point of immediate contact control system is
with the aggressor. This increases user-friendly,
the soldier’s ability to survey the war intuitive, and digital
zone, confront the aggressor from a for quick uptake by
distance, and survive the battle. military personnel.
The new Digital
MAARS Mechanics Control Unit (DCU)
— the remote
Foster-Miller constructed the control device the

WHERE IT ALL BEGAN


The real ancestor of the MAARS robot is the TALON
robot for military, police, and emergency rescue. From these,
Foster-Miller developed the SWORDS bots. The SWORDS
originally topped out at 120 lbs., though they packed a
mighty punch through the Small Mobile Weapons Systems
(SMWS) they employed.
At about $230,000 per unit, SWORDS offered front and
rear cameras with night vision, thermal vision, and wide
angle views and zoom lenses. On its rugged tank tracks and
powered by a lithium ion battery, the SWORDS can run for
four hours with a maximum velocity of 5.2 mph.
Soldiers can carry parts from the disassembled SWORDS
in their backpacks, transporting it from combat site to
combat site.

SERVO 08.2008 11
Geerhead.qxd 7/8/2008 10:17 AM Page 12

GEERHEAD

operator uses — offers advanced know when and where it’s safe to stairs. It can also use wheels to travel
command and control capabilities and tread or what precautions to take. more quietly on other terrain, to be
greater situational awareness around MAARS also uses Blue Force “stealthier.”
the robot. The system gathers a large Tracking, a satellite and GPS tracking Field personnel can equip the
array of situational feedback from the technology that informs soldiers on robot with a robotic arm, numerous
battlegrounds. the locations of friendly forces, enemy weapons other than those described,
SWORDS laid the groundwork for forces, and neutral areas. and a broad range of sensors. The
sensing battle hazards with heat, gas, The MAARS robot comes with robotic manipulator arm can lift about
chemical, and radiation sensors. These all-terrain tracks in the military style of 100 lbs. By replacing the gun turret
report to the soldier wirelessly so they the old tanks. With these, it can scale with the arm, soldiers can readily turn
the robotic war fighter into a device for
identifying and neutralizing explosives.
Exclusively at Jameco… MAARS can also sense its
environment via its seven multi-mode
The Lowest Prices… cameras. The operators can view
action the robot views in streaming
Guaranteed! video. The robot uses day and night
thermal vision. The robot also gauges
Save 3% to 5% Save 15%-25% Save 30% or more!
its location and distances using a laser
Looking to save on Save more when a Looking for killer deals?
thousands of Name Brand specific manufacturer is Jameco buyers often find
range finder. The soldier-operators
components? Jameco not required. Major Brand Factory Overruns from know where they are pointing the
offers these popular semi’s are sourced some of the industry’s robot’s weapons in relation to the
products for 3% to 5% from 5-6 specific major biggest names. That robot’s surroundings, other people,
below market price, and manufacturers, plus we means savings of 30% and themselves because of these
we guarantee it! also offer Jameco Brand and more to you! cameras. At about 350 lbs., the
and Generic passives for complete MAARS system is the largest
even greater savings. member of the TALON robots, larger
than the SWORDS.
3 Levels of Choice Foster-Miller has already shipped
its first MAARS robot to the US
3 Levels of Savings military under a contract from the
Explosive Ordnance Disposal/Low-
Intensity Conflict (EOD/LIC) program,
which is part of the Combating
Terrorism Technical Support Office
(CTTSO). This is the same program
that acquired the SWORDS robots. SV

RESOURCES
Demo video MAARS robot
www.foster-miller.com/images/
Videos/MAARS_test.avi

Fox interview about Talon


(including MAARS) robots
Other Jameco Advantages: www.myfoxboston.com/myfox/pages
/ContentDetail?contentId=6692317#
 We offer over 300 Major Manufacturers Talon_on_Fox
 99% of catalog products ship the same day.
 Lowest prices guaranteed, or we pay 10%. Foster-Miller, SWORD vendor
www.foster-miller.com
Order 24 hours a day, 7 days a week
www.Jameco.com Foster-Miller robotics technologies
www.foster-miller.com/t_r_military/
Or call 800-831-4242 anytime relatedprojects.htm
SEMICONDUCTORS • PASSIVES • INTERCONNECTS • ELECTROMECHANICAL • POWER
Foster-Miller projects
www.foster-miller.com/lemming.htm

12 SERVO 08.2008
Full Page.qxd 7/9/2008 10:22 AM Page 13

SERVO 08.2008 13
TwinTweaks.qxd 7/8/2008 10:42 AM Page 14

SPECIAL EDITION:

Rhyme of the
Modern
Submariner

T
his month, we have the honor of solely for autonomous robots, and a and the onus of the home turf advan-
presenting the ROV-In-A-Box Kit remotely operated vehicle wouldn’t tage, so we really felt that the MATE
from !nventivity. ROV stands for exactly fit into that category. After a Competition was an opportunity that
Remotely Operated Vehicle, and while bit of searching, we stumbled upon we couldn’t pass up. All we had to do
this can refer to a tethered vehicle that the MATE Competition — an under- now was get a team together.
tackles any sort of terrain, it very often water ROV competition sponsored by
refers to an underwater vehicle, as was the Marine Advanced Technology Ocean’s Eleven and
the case with this kit. After covering Education Center. What’s more is that Then Some
the AUVSI underwater robotics the international championship was
competition in 2006, we knew that sponsored by the Scripps Institute of Evan is lucky enough to be a
there were competitions out there Oceanography at our very own part of UCSD’s Tau Beta Pi chapter,
that catered to these aquatic bots, University of California, San Diego. California Psi. Tau Beta Pi is the
and we thought a competition would Several engineering student engineering honor society and UCSD’s
be a much more exciting way of organizations at UCSD are involved in chapter pursues excellence in engi-
testing the robot than surreptitiously a number of design competitions, but neering through outreach, academic,
dunking it in the community pool. The there was not yet a team for the MATE and social programs. Conspicuously
AUVSI competition, however, was event. We had the kit, the opportunity, missing from TBP’s repertoire, though,
was a robotics team. Why a robotics
THE ROV-IN-A-BOX IN THE BOX. COLTER (L) AND BRIAN (R) WORKING team? Because robotics is an inter-
ON THE FRAME. disciplinary field that demands the
effort of engineers from every field of
study, and a robotics team would be
made up of the same cross sections of
engineers as Tau Beta Pi. By virtue of
his position as Publicity Officer, Evan
was able to organize meetings for a
robot team and soon a group of
talented engineering students had
coalesced around our ROV in a box,
and we were eager to take on the
challenge of MATE.
The ROV-in-a-box seemed like a
14 SERVO 08.2008
TwinTweaks.qxd 7/8/2008 10:42 AM Page 15

Rhyme of the Modern Submariner

great way to tackle the


challenges of the MATE
Competition. The event
demands that teams complete
three underwater missions that
are part of a scenario inspired
by mid-oceanic ridge research.
The first mission was to free an
OBS trapped mercilessly on the
ocean floor. An OBS is an
Ocean Bottom Seismometer,
and in the game scenario, it
was placed in order to gather ROV-IN-A-BOX MOTORS.
information on ocean floor
seismic events like underwater engineers, and many more, it was
eruptions and earthquakes. The good time to pop open the ROV.
news is that the OBS did indeed When we first opened it, we were
gather the hoped for information, but reminded of our experiences at the
the bad news is that the OBS became beginning of every FIRST build season
trapped in a fierce lava flow in the — we were faced with a somewhat
process. Our first mission — should we intimidating box of loose parts. TAU B ATES AT WORK.
choose to accept it — would be to Motors, wire, PVC, and switches
free the OBS from the lava flow. abounded, and the project might have ROV is primarily made up of speaker
It’s basically like an episode of the seemed a bit overwhelming had it not wires, and their 50 foot length was the
Thunderbirds, but instead of sending been for the handy instruction manual. perfect size for the MATE Competition.
puppets to save the day, we’ll be The ROV-In-A-Box K it comes with a The ROV kit comes with three motors
sending in our ROV. comprehensive manual that gives easy from Mayfair Marine: two for the right
After freeing the helpless OBS to read, step-by-step instructions that and left thrusters, and one for the lift
from the ocean floor, the second are illustrated by clear pictures. thruster. The motors come with easy
mission was to collect three samples The first thing that the manual to install couplers for small plastic
of the lava flow for analysis. The final walks you through is the construction propellers. A soldering iron and the
mission was to take a temperature of the frame for the ROV. The PVC associated paraphernalia is one of
reading from a hydrothermal vent. bits are all nicely cut and ready to go, those things not included in the kit,
For the competition, the OBS is but the kit does not include PVC but once again these are essentials
represented by a PVC box skeleton; cement or primer. That’s nothing a for every robot project that roboticists
the lava is represented by eight, two preemptive trip to the hardware store should have in their arsenal.
pound soft dive weights; and the won’t fix, and the beginning of each After preparing the motors, the
hydrothermal vent is another PVC step in the manual conveniently lists next step is to prepare the CCD camera
structure spewing hot water. The mis- any additional parts required for the and LED cluster used for lighting. The
sions will be discussed in more detail step not already included in the kit. unforgiving work environment faced
later, because first and foremost we Thankfully, this list is usually very by the ROV requires some extra
wanted to have a working platform. short, and most of the entries
The ROV-in-a-box would give us a are simple tools that any MOUNTED MOTORS.
functional ROV that could be expanded self-respecting tinkerer should
upon to complete the missions. We have at the ready.
wanted to finish our basic ROV before The PVC frame goes
worrying about the details of the together very easily, and it’s a
missions, and with that in mind, we nice thing to do first because
popped open the instruction manual it already gives you a sense of
to the first step. the scale of the ROV. The bot
was a bit smaller than we had
The Life Aquatic Meets initially guessed, but there’s
the Life Robotic nothing wrong with that —
just ask the Thunderbirds.
Now that we had a team of The next step involves the
mechanical engineers, structural initial wiring of the motors to
engineers, computer science the tether. The tether for the
SERVO 08.2008 15
TwinTweaks.qxd 7/8/2008 10:43 AM Page 16

Twin Tweaks ...


consistently impressed with the switch leg, you begin to wonder if you’re
quality of the parts included in soldering a control box or a clown car.
the kit and the clarity of the The large gauge wires are also stiffer
instructions that helped to put and when it came time to close the
it all together. Perhaps this control box, it was not exactly fun.
initial awesomeness created a The problem with the wires
harsher contrast than was could have been minimized if the
warranted when it came to instructions had warned about the
wiring the robot, but we have overpopulated legs beforehand, but
to say at times it became instead they go through connection
downright inelegant. For the by connection and by the time you
most part, the control box realize there’s going to be a problem,
was fine — each thruster was it’s already too late. Some of the TBP
ROV CAMERA AND LIGHT. controlled with a double pole team members were learning how to
double throw (DPDT) switch, solder on the ROV control box, and
attention that land bound bots find the main power was controlled with a these complications gave them the
unnecessary — waterproofing. The single pole single throw (SPST) rocker opportunity to learn how to desolder.
manual suggests casting the lights switch, and the kit even came with For all of the grief that the size
and camera in resin and gives detailed labels for all of the switches to denote of the wires gave us, the actual
instructions on how to do just that, which motor they controlled. All of electronics of the ROV were elegantly
but our CCD camera and LED cluster the switches even went into a nifty straightforward. The relatively simple
came already cast in the kit. We didn’t control box that looked downright wiring even made it easy for us to
mind the assistance, and we set about sleek, and all of this was quite nice. track down an electrical problem
tackling the next steps. The problem, we suppose, was in using a multimeter. Our ROV only
The ROV-in-a-box is a humble the wires. seemed to work intermittently, and
robot equipped with only the We have nothing against heavy the rocker switch did not seem to
essentials: three motors, the camera, gauge wires. They are great for when control the main power. When we
and the lights. Mounting these you are pulling a lot of amps and their had first installed the fuse, we had
essentials to the frame is also done beefiness makes them generally easier not done it correctly; but with the
with PVC bits. After just a few quick to solder than super thin wires. When addition of a spring, everything was
cuts, the ROV was starting to look like you have more than three 16 gauge in top shape. Even with the ROV
a real robot, but the real test was still wires going to one leg of a switch in effectively finished, the manual
ahead — wiring it all up. a crowded control box, then size can continues to be useful. The manual
We have to say that up until the become a problem. This might not includes an electrical schematic for
wiring of the control box, we were seem so difficult if you are properly the robot and an exhaustively
prepared — you can twist the ends of comprehensive parts list that details
TSUKASA (L) AND ERIC (R) WORK the wires together and save time and the cost and vendor for every item in
ON THE TETHER. energy by soldering once where you the kit. We would like to give some
would have had to solder many times. well earned kudos to the authors of
The manual, however, goes through the the manual, because they really did a
connections one wire at a time, and top notch job. Congrats!
after the fourth wire going to the same
Overcoming
ROV CONTROL BOX. Hydrophobia
The ROV-in-a-box is an elegantly
simple machine. Everything went
together so easily that it seemed that
there had to be more to it. There was
actually more to it — waterproofing. In
truth, though, there was not that much
waterproofing to be done. The resin
castings kept the camera and lights
safe, and the motors were designed
for underwater applications (perhaps
pumping, as the 500 GPH label might
fanatically suggest). The only critical
16 SERVO 08.2008
TwinTweaks.qxd 7/8/2008 10:43 AM Page 17

Rhyme of the Modern Submariner

points for waterproofing were the It might sound like a wacky


electrical connections, of which there idea, but the residential life office
were not too many. There were four of our beloved Warren College
connections between the camera, light, has large plastic laundry carts for
and tether, and six connections between students to cart stuff around in
the motors and the tether. The kit pro- (probably laundry, most of the
vided ample materials for waterproofing time). It was a bit awkward to
in the way of epoxy and self-vulcanizing make the request to our college
rubber tape. A couple layers of each residential life if we could use a
did the trick, even though the tape was laundry cart to fill up with water
not exciting as we had anticipated and test a robot in it, but thank-
given the name — apparently the fully they are very accommodating
vulcanization is pretty low key. of our robot related idiosyncrasies
Our previous description may have and gave us the go ahead to give BRYCE AND EVAN SHOW THE LIGHT AND CAMERA.
made the construction of the ROV our ROV some swimming lessons.
seem like a breeze but, in fact, it took The small scale of the ROV made shortly after our laundry cart
several weeks of meetings. So when it testing in the laundry cart a lot less adventure we had to meet a deadline
finally came time to test the bot, it awkward than it might sound. Before that had the potential of disqualifying
was very climactic. Our first tests were taking the plunge, we equipped the us from the competition. Our team
to see if the motors all functioned bot with an ROV’s equivalent of was registered for the international
properly, and they spun the propellers floaties — floral Styrofoam that was championship, and the MATE
so quickly that we were eager to see included in the kit. organization required that all teams
how zippy the bot would be in the Our moment of truth turned out registered for the championship
water. It was also exciting to see the to be a moment of triumph, because prove they have a working robot
light turn on, but we had to find a the ROV worked in the water so well beforehand. To do so, we had
monitor so we would check the that it seemed like a fish out of to attend the closest regional
camera. We didn’t have any extra water before. We had to adjust the competition to undergo a simple safety
monitors sitting around, so eventually buoyancy with some rebar for ballast inspection and to show that our ROV
we hooked it up to the television in and more Styrofoam for balance, but could ascend, descend, and move
our dorm room (the ROV comes with after just a few tries we had an ROV forward, backwards, left, and right.
an RCA plug for output to a monitor). sitting serenely in the water with The closest regional for our team
The camera was downright neutral buoyancy. The kit also includes was actually at UCSD, held at the
impressive. It was black and white, but Styrofoam bits to adjust the buoyancy Canyonview West Pool in our very
the resolution was excellent and the of the tether, which led us to own Warren College. We showed up
LED cluster provided perfect lighting. conclude that the folks at !nventivity to the regional with confidence — the
We have worked on other robots with really did think of everything. robot certainly wasn’t finished, but
cameras like the POB robot, but the after our laundry cart test we were
acuity of the ROV would impress any Southern California sure it could handle the qualifying test.
optometrist. Fly-Off Our little ROV had no problem
passing the test, and it was exciting to
Adventures With a Until now, the MATE Competition give the little bot a chance to run free
Laundry Cart had been only a far-off goal, but in a big pool. It was also exciting to

Everything on the ROV worked LAUNDRY CART ADVENTURE! LEARNING TO SWIM.


like a charm on the safety of dry
ground, and despite these encourag-
ing signs we have to admit that we
were a little apprehensive about
putting it in the water. At first, we
wanted to test the robot in one of
UCSD’s on-campus pools, but it
turned out to be a hassle to
reserve the time and space. Plan B
was pretty much what you might
expect. If we couldn’t test the
ROV in a pool, we’d go with the
next best thing — a laundry cart.
SERVO 08.2008 17
TwinTweaks.qxd 7/8/2008 10:44 AM Page 18

Twin Tweaks ...


inspired us to do our best
to add the mechanisms
and sensors necessary to
transform the ROV-in-a-box
into a truly competitive
robot. To finish, we needed
more motors, a tempera-
ture sensor, and some
other miscellaneous
materials, but unfortunately
the kit would no longer be
of help — the only parts
left in the kit were some
SOUTHERN C ALIFORNIA REGIONAL. LETTING THE ROV ROAM. extra Styrofoam bits and
some battery connectors
see the other teams there. Some were seemed that our little ROV was certainly that we had to ignore in favor of the
there to qualify like us, but others the smallest of the bunch. But once lug connectors demanded by the
were there to compete in the regional. again we wouldn’t let that discourage competition. The ROV-in-a-box was
The MATE Competition has two us — remember the Thunderbirds. Other actually inspired by an ROV competi-
competition classes: the Ranger class teams had sophisticated control stations tion — the National Underwater
for high school teams; and the stocked with monitors and video Robotics Challenge, held in Chandler,
Explorer class for university teams and game controllers, and there were plen- AZ. The pool next door was a lot
qualified high schools. The Southern ty of colorful ROVs that prowled the closer than Arizona, so unfortunately
California Regional was actually a pool with ease. We looked forward to we couldn’t make it out to NURC. It
Ranger class competition, and we getting to know more about our was at least nice to know that our
were categorically impressed by the competition at the International little ROV-in-a-box had a competitive
sophisticated robots built by the Championship, but before that we streak. !nventivity also shows some
teams. The missions for the Ranger had our own ROV to finish. great community involvement by being
class were slightly different than those an active supporter of NURC, the
for the Explorer class, but it was still So Long and Thanks MATE Organization, and even
exciting to see the creative ideas that for All the Fish FIRST Robotics.
teams came up with to pick up the UCSD’s Tau Beta Pi members also
crabs that their missions demanded. The Southern California Regional have a competitive streak, and after
As for the other Explorer teams, it was an exciting competition that finishing the ROV-in-a-box they were
eager to go off script. We would all get
our chance to be creative, because we
had to design and build mechanisms
capable of freeing the OBS, retrieving the
dive weights, and taking the temperature
reading. But there’s so much more to
come than additional mechanisms —
total redesigns, technical reports,
scavenging from other robots, and the
climactic International Championship
all await in the exciting conclusion in
the next Twin Tweaks! SV

Recommended Websites
www.nventivity.com
!nventivity Homepage
www.marinetech.org/rov_competition
MATE Competition
h2orobots.org
NURC
tbp.ucsd.edu
Tau Beta Pi, California Psi

18 SERVO 08.2008
Full Page.qxd 7/9/2008 10:23 AM Page 19
MrRoboto.qxd 7/8/2008 10:08 AM Page 20

Our resident expert on all things


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

Tap into the sum of all human knowledge and get your questions answered here!
From software algorithms to material selection, Mr. Roboto strives to meet you
where you are — and what more would you expect from a complex service droid?

by
Dennis Clark

Q . Our club is making a club robot based on the


Atmel ATMEGA168. About half of the members
use either Mac OS X or Linux, not Windows. What
can we use to program our robots that isn’t Windows only?
recent version. It will come in a “dmg” package.

2) Eclipse Europa for C/C++ programming. This is a Java-


based IDE that can be customized for just about anything.
Like gcc, it too is open source based. You can find the latest

A . Many fellow robot makers out there know that I am


a Mac fan and go out of my way to do just what you
are asking about. Sometimes there is no choice and
for that, I have a Windows laptop. BUT, in this case you
do indeed have an option: avr-gcc. Avr-gcc is gcc, the
here: www.eclipse.org/downloads/. Get the one for
C/C++ development. This will be a gzip’d tarball (in the
UNIX parlance) that your computer will know about.

3) AVR plug-in for Eclipse. This customizes the Eclipse IDE


open source C and C++ compiler of choice for many for use with the AVR toolchain. You can find it here:
environments, customized for AVR programming. This http://avr-eclipse.sourceforge.net/. I got the plug-in
environment can be used on Windows (usually Winavr), directly from the web page; they tell of a way to get it from
Linux, and the Mac OS. In this column, I’m going to detail Eclipse too, but call me cautious, I went for the sure thing.
where to find the parts, how to install them, and how to
configure it all to program your robots. These packages Installing Macpack AVR
usually want OS X 10.3.9 minimum; I recommend 10.4 To install Macpack AVR, simply double-click on the
(Tiger) to play in. (Mostly because that is what I used — downloaded file; in my case, it was called AVRMacPack-
that and Leopard — so I know that it works.) 20080514.dmg. It will mount a drive called AVRMacPack
on your desktop; in there, you’ll find a readme file and an
Setting up a Mac to program install package. Read the former and double-click on the
AVR microControllers latter to install avr-gcc (see Figure 1).
The installer is very nicely done and, of course, you
There are three pieces of the puzzle that you will must enter your admin password since this is going to be
need to get: installed in UNIX system directories. In this case, in
/usr/local/AVRMacPack. You are now delving into the realm
1) Macpack AVR: This is avr-gcc and has all kinds of utilities of command line interfaces, so take a deep breath and look
and goodies. Top on in your Applications/Utilities folder and find “Terminal.”
Figure 1. Macpack AVR install volume. the list is avrdude, Install it on your dock; you’re going to be using it a bunch
one of the most now. Avr-gcc, via AVR MacPack, has the version 3 and
popular AVR version 4 compilers. Lots of the new work is being done in
programmer version 4, but some like to use version 3. I recommend that
programs. You can you just issue this command on the command line in your
find this Mac-friendly terminal “avr-gcc-select 4” and use the latest. Figure 2
install package here: shows how this dialog might look. Remember, all of this is
www.obdev.at/ free, so you won’t get much hand-holding as you do with a
products/avrmac full-fledged IDE, but we’re not done setting up. Let’s wait
pack/download-de. until we get Eclipse and the AVR plug-in installed before we
html — get the most play with avr-gcc any more.
20 SERVO 08.2008
MrRoboto.qxd 7/8/2008 10:05 AM Page 21

Installing Eclipse Europa


When you have downloaded the Eclipse install
package, you’ll see that it isn’t the friendly type of
Macintosh installer. It is a gnu zipped tarball. Not to
worry, your Mac can handle this package easily. Move
the install file to your Applications directory and double-
click on it. After you double-click the install file, a couple
of windows will pop up and then go away. When those
are all done, you will have an Eclipse directory in your
Applications directory. Inside there you will find the
Eclipse program. You will want to have easy access to
this program if you do a lot with robotics, so drag the
Eclipse icon on to your dock next to your Terminal icon.

Installing the Eclipse AVR Plug-in


We have two ways we can install the AVR plug-in.
One is to take the file that we’ve just downloaded and Figure 2. Avr-gcc configure example.
unzip it in the Eclipse directory by moving the file to the
Eclipse directory and double-clicking on it. This is the direct,
brute force method. If you have Eclipse running, then
restart it after you unzip the file.
The second way is for you to use Eclipse itself to install
the plug-in. Since you’ve just seen the brute force method —
which is easy, let’s look at the elegant way — through the
Eclipse IDE. Click on the Eclipse globe on your dock (you did
put it there, right?) and wait for it to start. When it first
comes up, you will see the screen shown in Figure 3 asking
you where to put the workspace files. It usually wants to
put them in the Documents folder; I have no objection,
so just press OK. Figure 3. Workspace dialog.
Next, navigate to Help-> Software Updates -> Find and
Install as shown in Figure 4 to get to the Feature Updates
dialog and click the Search for new features to install
button, then click Next. Click the New Remote Site button
and fill in the dialog box as shown in Figure 5.
There are lots of Next, Finish, and I Accept type of
buttons to push; remember to actually select the plug-in
when you see its checkbox on the screen! When you have
navigated this endless selection of screens, licenses, and
warnings about unsigned downloads and hit your final
finish button, you will see the window as in Figure 6.
Whew! Now restart Eclipse and let’s get to work!
Figure 4. Get a plug-in.
Using avr-gcc, Eclipse, and the
AVR plug-in to write your code Project name as
shown in Figure 7.
I’ve written a toy program that blinks some LEDs on Note that the AVR
one of my educational robot boards. All this program will Cross Target
do is blink two LEDs alternately. This article isn’t about how Application is
to write AVR programs — you can learn that anywhere (if automatically
enough ask, I’ll be happy to write such an article) — but chosen. We’ll use
how to use this set of tools on your Mac to do it, so I’m just that; press Figure 5. Install the AVR plug-in.
not going to explain the code beyond using the tools to Next to set
write, compile, and download it. Now, let’s create an AVR everything up. You will get a configurations screen that
robot project! shows a Debug and RELEASE configuration. We’ll take the
defaults, but before we’re done here, click the Advanced
Creating a Project Settings button so that we can choose our processor and
Navigate the File -> New -> C Project and fill in the clock speed. This window will look like Figure 8.
SERVO 08.2008 21
MrRoboto.qxd 7/8/2008 10:06 AM Page 22

In Figure 8, you see that I’ve selected the processor


type and the clock speed. Study your product document for
your chosen AVR microcontroller carefully to select its clock
speed and other settings we’ll discuss later. I selected the
AVR Target Hardware to set these features. If you look at
the Environment selection (after you click on the triangle to
open the C/C++ Build category), you’ll see that the IDE has
Figure 6. Install complete. already found your AVR MacPack directory and has set
everything up for us! Totally cool! We’re ready to make a
program and project.
When we created our project, a folder was created
called Documents/Workspace/Tiny26. Here, you can drop
or create your C files for your projects. If you copy files
there, go to the Eclipse IDE in the Explorer Window and
right-click on the project — in this case, Tiny26 — select
Refresh, and the project will pick up the files. If you are
making new files, then just remember to save them there.
When you have everything ready to go, it is time to build
your project. At this time, the Debug configuration isn’t
all that useful since it doesn’t create a hex file. So, make
sure you are using your Release configuration. To do this,
navigate Project -> Build Configuration -> Set Active ->
Release.
To build, you can navigate Project -> Build All, use the
<propeller> B hot key, or press the Build All icon on the
toolbar (looks like a page with 1s and 0s on it.) If there are
any problems in the build, the errors will show up in the
Console window at the bottom of the IDE window. To go
to the error line in your source code, click on the Problems
window and double-click on the error; the IDE will take you
to the line. See Figure 9 for a condensed view of the IDE
and those tabs.
You’ll note a tab called AVR Device Explorer; this is
a very nice utility that shows you all of the hardware
registers, I/O ports, and interrupt sources and their names
for your chosen microcontroller.
Figure 7. Start a project.
Programming a Microcontroller
I’ve reached the end of my allotted space now. In my
Figure 8. Configure microcontroller settings. next installment, I will show you how to configure a
programmer board — an AVRISP 2 to be specific — to
program your microcontroller, and how to add a tool to
your Eclipse IDE to program at a press of a button. SV

Figure 9. The Eclipse IDE window.

22 SERVO 08.2008
Full Page.qxd 7/9/2008 4:02 PM Page 23

SERVO 08.2008 23
Events.qxd 7/9/2008 5:32 PM Page 24

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

Know of any robot competitions I’ve missed? Is your TBA Robots at Play
local school or robot group planning a contest? Send an City Square, Odense, Denmark
email to steve@ncc.com and tell me about it. Be sure to Robots compete to demonstrate playfulness and
include the date and location of your contest. If you have a interactivity.
website with contest info, send along the URL as well, so we www.robotsatplay.dk
can tell everyone else about it.
For last-minute updates and changes, you can always S e p te m b e r
find the most recent version of the Robot Competition FAQ
at Robots.net: http://robots.net/rcfaq.html 6 ROBO-ONE Helper Robot Project
Kawasaki City, Japan
— R. Steven Rainwater Teleoperated robots compete at performing
common household tasks.
http://getrobo.typepad.com/getrobo/2008/
August 05/new-helper-robo.html or
www.robo-one.com/robo_help/robo_help.
9 RoboCountry html
Takamtsu City, Kagawa, Japan
ROBO-ONE style humanoid robot combat. 17 Powered by Sun
www.robocountry4.com Ostrava, Czech Republic
Just as the name suggests, this is a competition of
23-24 Motodrone AFO Competition solar-powered robots.
Finowfurt, Germany http://napajenisluncem.vsb.cz
Autonomous Flying Objects (AFOs) compete in
several areas including the ability to hover in 18-19 Korea Intelligent Robot Contest
changing wind conditions, stable flight between POSTECH Gymnasium, Pohang City, Korea
points, capturing photos of targets, recovering This competition includes several events for
from freefall, and automated take-off and general-purpose intelligent robots and one
landing. event for specialized cleaning robots.
www.motodrone.de http://irc.piro.re.kr

29 DragonCon Robot Battles 20 Robotour


Atlanta, GA Prague, Czech Republic
At this event, remote-controlled and autonomous Autonomous robots must navigate in a park.
robots fight it out at the DragonCon science www.robotika.cz
fiction convention.
www.dragoncon.org 20-21 RoboCup Junior Australia
Scitech Museum, Perth, Australia
TBA DPRG Robot Talent Show Events include robot dance, robot rescue, and
The Science Place, Dallas, TX robot soccer.
Autonomous robots demonstrate their talents. www.robocupjunior.org.au
www.dprg.org/competitions
27 Elevator:2010 Climber Competition
TBA Robot Fighting League National To be announced (see website for updates)
Minneapolis, MN Autonomous climber robot must ascend a scale
“Robots” (RC vehicles) attempt to destroy each model of a space elevator using power beamed
other. from the base.
www.botleague.com www.elevator2010.org

24 SERVO 08.2008
Events.qxd 7/9/2008 7:54 PM Page 25

29 Microtransat Challenge Following (two categories), Line Maze, Walking


Viana do Castelo, Portugal Robot Race, Mini Sumo, and 3 kg Sumo
This event is a transatlantic autonomous robot sail (autonomous and RC).
boat race. www.robothon.org
www.microtransat.org
O c tober
TBA BotTrot 4Bottle Race
To be announced (see website for updates) 24-26 Critter Crunch
Robot must navigate a figure-8 course. Video of Hyatt Regency Tech Center, Denver, CO
robot completing the course must be submitted Robot combat — 2 lbs and 20 lbs event
by the contest date for judging. categories. Autonomous and Remote-Control.
www.botmag.com/articles/06-10-07_4bottle_ Starting size of 12” x 12” x 12”. Expansion during
robot_race.shtml event okay. Weight limit of 20 lbs. Power source
must meet OSHA requirements for indoor use.
TBA Robothon Awards for 1st, 2nd, and 3rd place, as well as
Seattle Center, Seattle, WA “amusing and arbitrary accomplishments.”
Events include Robo-Magellan, MicroMouse, Line www.milehicon.org/critrule.htm

s Co Mot
r
ete
s or xis erom
3-A cel ntr or
n
Se
Ac 9.95
$1 oll
ers

R
QT ce 4.9
5
n $1
ct .49
a
e fle r $3 y
rra !
R so TReX Jr
Se
n o
s n
en -se
r A sing Robot Controllers Dual Motor
e S l ine Controller:
c r voltage dual H-bridge Instantly switches
tan fo
f l ec reat regulator trimmer pot between radio control
Re G (on ADC7) (RC) or analog voltage and
R
QT power LED asynchronous serial (RS-232
(green) or TTL), plus a multitude of
Solder Paste Stencils red user LED
additional features. $59.95
Use our low-cost
solder paste stencils
From $25 (on PD1)
programming
to quickly assemble
your surface-mount
ATmega48/168
microcontroller
connector Custom Laser Cutting
designs. 20 MHz clock From $25
Baby Orangutan B-48 and B-168
starting at $24.95

Cut your own custom


Find out more at www.pololu.com or by calling 1-877-7-POLOLU. chassis, front panels, and more!
SERVO 08.2008 25
AUG08NewProd.qxd 7/9/2008 7:56 PM Page 26

New Products

N E W P RO D U C T S
dispensing chlorine or clarifiers evenly and randomly over
BRACKETS AND MOUNTS the surface makes the chemicals far more efficient than
when spread by other means.
Micro Metal Gearmotor Bracket

P ololu introduces its


compact bracket for
Mr. Clock Radio
convenient mounting of
the popular Sanyo-style
10x12 mm miniature
M r. Clock Radio —
manufactured by GeeWiz
Entertainment — is the world’s first
metal gearmotors. The animated talking robotic clock
plastic brackets are custom radio. Press the snooze button and
made to securely hold the he will tell you the current time,
metal gearmotors in place or press the fortune teller
while enclosing the otherwise button and ask him a question
exposed gears; the mounting tabs capture the nuts about your future. Mr. Clock
for easy installation. Radio has working eyes, a
For further information, please contact: multi-directional motorized head, as well as a motion
6000 S. Eastern Ave. Suite 12-D
detector. Aside from AM/FM radio, Mr. Clock Radio can
Pololu Las Vegas, NV 89119 also play music from other devices using the MP3 player
Corporation Tel: 877•7•POLOLU or 702•262•6648 jack and it comes with 50 different wake-up shows.
Fax: 702•262•6894
Email: www@pololu.com For further information on either of these two
Website: www.pololu.com products, please contact:
Website: www.robotshop.ca or
RobotShop, Inc. www.robotshop.us

CONSUMER ROBOTS
ROBOT KIT
Solar-Breeze Intelligent Solar
Robot Pool Skimmer LEGO® Education WeDo
T he Solar-Breeze
Intelligent Solar
Robot Pool Skimmer — L EGO Education — The LEGO Group’s educational division
— introduces LEGO® Education WeDo™, a new product
manufactured by that redefines classroom robotics, making it possible for
Invention Concepts — primary school students 7-11 years of age to build and
is the first of its kind, program their own solutions. Bridging the physical world
hoping to bring pool represented by LEGO models, and the virtual world
owners on board with represented by computers and programming software,
the idea of having LEGO Education WeDo provides a hands-on, minds-on
“greener” pools. Solar-Breeze uses a unique solar-power learning experience that actively involves young students
system that allows it to skim your pool surface all day in their own learning process and promotes children’s
while the sun is shining, collecting debris from the pool creative thinking, teamwork, and problem-solving skills.
surface and preventing it from sinking to the bottom. “Building upon our successful 10-year history of
Since it keeps dust and debris from sinking to the bringing educational robotics to middle, high school, and
bottom of the pool, the time required to run the pool university classrooms with the award-winning LEGO MIND-
pump is significantly reduced, thus making pools cleaner STORMS toolset, we are excited to extend this expertise
and clearer, so pool pump usage should go down. A to benefit an even younger audience,” said Jens Maibom,
Chemical Dispenser (for commercial solid pool chemical vice president of LEGO Education. “With a progressively
tablets) is included in the Solar-Breeze design since competitive global economy, we know it is imperative to

26 SERVO 08.2008
AUG08NewProd.qxd 7/9/2008 7:57 PM Page 27

provide even younger children and their teachers with mode. For DC motors without encoder feedback, the
curricular-relevant, easy-to-implement educational materials CS110100 is able to drive the motor via PWM. The
to spark children’s interest in all manner of subjects.” on-board motion processor allows users to change
LEGO Education WeDo encourages teachers to issue motion control parameters, such as PID parameters,
curriculum-based challenges for students to solve. motor configuration, etc.
Working in teams, children invent their own solution by
building a LEGO model and programming it to perform a
certain task. Cause and effect learning is enhanced by
the models remaining tethered to a computer; similar to
scientists in working labs, children can test and adjust
their programming in real time. After reflecting on what
did and did not work, students can consult with peers,
adapt programming, adjust models, or begin again.
Newly-designed software developed by National
Instruments makes programming easy and intuitive and
students quickly learn that they can solve real-world The motor controller has three operating modes: UART
challenges by tinkering with building and programming. Mode — the CS110100 is able to interface with a host
Developed to cover a broad range of curriculum controller, such as the C Stamp (sold separately) via the
areas, WeDo sample topics include Language and Literacy: serial port. In this mode, the CS110100 will receive AT
narrative and journalistic writing, storytelling, interviewing commands sent from the host controller to change its speed,
and interpreting; Mathematics: measuring time and distance, position, etc; I2C Mode — the CS110100 is able to interface
adding, multiplying, estimating, using variables; Science: with the host controller via an I2C port. The I2C address is
transmission of motion, working with simple machines, selectable from 0x70 to 0x7E. The host controller is able to
gears, levers and pulleys; Technology: programming, control the CS110100 by I2C commands; Radio Control PWM
using software media and creating a working model. Mode — the CS110100 can be connected to RC receivers
The complete LEGO WeDo package includes: directly so that the motor speeds can be controlled by
• 158 brightly colored LEGO elements, including gears the RC remote
and levers controller. In this mode, users may choose to run the two
• One LEGO USB hub connects directly to a Mac/PC motors under coordinated mode or independent mode.
laptop, desktop, OLPC XO, or Intel Classmate computer to This mode is especially useful in building RC remote
allow control of hardware input (tilt and motion sensors) robots. Some technical specifications are:
and output (motor), thereby bringing models to life • Power Supply Voltage: 7V-24V
• One motor, one motion sensor, and one tilt sensor • Power Consumption: 2W (without motors)
• Drag-and-drop, icon-based software that provides an • Processor Speed: 40 MHz
intuitive and easy-to-use programming environment • On-Board Motion Control for brushed DC Motors
suitable for beginners and experienced users alike (Velocity Mode, Position Mode)
• CD-Rom provides up to 24 hours of instruction. • On-Board MOSFET PWM drivers
Teacher notes and glossary are also included • Able to drive Two DC motors at the same time
• MAX DC Current Per Motor = 10A
For further information, please contact: • PEAK DC Current Per Motor = 20 A
• On-Board fan for efficient heat dissipation
The LEGO Group Website: www.LEGO.com
• Protection for Reverse Polarity, Over-Current, and
Over-Heating
• Controllable by RC Servo PWM pulses directly
• Controllable by a serial interface
MOTOR CONTROLLER • Controllable by an I2C interface
• User can control the PWM output to the motors directly
New Powerful, Versatile, and • Switching power supply for lowest battery power
Easy-to-Use Motor Controller consumption
• Compact size of 75 mm x 65 mm

T he CS110100 from A-WIT Technologies is a


multi-functional, high-current two-axis motor driver
with motion control. It features on-board, over-current
For further information, please contact:

protection and over-temperature protection. Maximum A-WIT 656 Ironwood Dr.


Williamstown, NJ 08094
DC current per motor channel is 10A. For DC motors Technologies, Inc. 800•985•AWIT Fax: 800•985•2948
with incremental encoder feedback, the CS110100 is Email: info@a-wit.com
Website: www.c-stamp.com
able to drive the motor in velocity mode or position

SERVO 08.2008 27
CombatZone.qxd 7/8/2008 10:27 AM Page 28

Featured This Month:


Features
28 BUILD REPORT:
BUILD REP RT
Combat Robot: $1.25 Combat Robot: $1.25 a Pound
a Pound by Tim Wolter
● by Tim Wolter
32 PARTS IS PARTS:
Power Switches
F or many builders, combat
robotics is about pushing the
engineering envelope. You know,
effective fighting machine?
Ladies and gents, I think we
have an answer. With our latest
by Chad New how many extra volts can we build, I believe we have attained
hammer through the system close to Absolute Zero on
before it flames out? But since I resources, and still cooked up a
Events primarily work with student 30 pounder that went 2-2 in its
robotics programs, I have taken debut competition.
30 May/Jun 2008 Results and this concept in a different I have been teaching a
Aug/Sep 2008 Upcoming direction. Given the pressure on middle school level robotics
Events school budgets these days, I have program for years, where we
become adept at “pushing the build one and three pound
economic envelope.” That is, how combat machines. It’s an after-
30 EVENT REPORT: tiny a budget, how minimal the school program, so when I
shop access, how few work proposed doing a bigger build I
Mall of America Rotunda hours can still translate into an knew we would only have a total
Rumble by Aaron Nielsen of about 15 work
SUMO: A robot built on the cheap. hours. Also, the Tech
Ed teacher who
ROBOT PROFILE – Top hoped to help me had
other commitments,
Ranked Robot This Month: so there would
33 Touro by Kevin Berry effectively be no
access to the school
shop. Fortunately, I
had a great volunteer
assistant, and a
talented bunch of
kids sign up; all

28 SERVO 08.2008
CombatZone.qxd 7/8/2008 10:29 AM Page 29

veterans of my small robot classes, SUMO’s drivetrain. The build team pauses for a photo-op.
some of them also having
experience on my Destination
Imagination teams.
The first session I tossed out a
bunch of stuff from my workshop:
cordless drills, cordless screwdrivers,
Barbie Jeep gearboxes with and
without removal of the final gear
for a “speed hack.” I had the kids
weigh them, and test the amp
draw running free and at stall. They
liked the standard Barbie gearboxes,
which was fortunate as I had a box the Victor 883 speed controllers and shaft collar proved to be not
full of them. that I pulled out of RoboGoat. quite close enough, and we lost one
Next, I had them draw up some One of the kids brought a big match when one hub slipped off
materials stats, such as weighing slab of half-inch plywood that made the output gear of the gearbox. The
and measuring various thicknesses up the basic frame and base armor. design was a bit tight, making
of plywood, aluminum, Lexan, and I tossed in a broken snow shovel emergency repairs difficult. This
foam; and calculating how heavy blade for the pusher. could have been avoided, as we
a robot would be if it were made So far, not much ground were four pounds underweight.
of each material and had some breaking technology, but a (Note to self: Next time, bring an
plausible dimensions for this project. serviceable machine. We did get a accurate scale. The one from the
I suggested a simple pushy/wedge bit more creative with the secondary school nurse’s office must have
bot for a first build and at the end armor, which was a tricky composite been jumped on too often.)
of session 1, we had a shopping list. of dense foam, 1/32” Lexan in two The composite armor proved
It helps a great deal to have a layers, and plenty of Gorilla Tape. In more than sufficient against flail
workshop full of junk. The expensive fact, two rolls of this stuff at about and blade, and with some additional
components such as speed 5 bucks each were the single refinements will make more
controllers and batteries were all biggest expense of the project. appearances in future projects.
lying around from years of previous The new machine — dubbed The kids all had a fun time, and
projects. In fact, I had built SUMO for its final pudgy look — the relative success of the project is
something very much like the kids’ was controlled with a 75 MHz largely a tribute to their outstanding
design a few weeks earlier when JR receiver and an IMX mixer for driving skills.
the high school drama department simpler handling. Total out-of-pocket costs came
needed a robotic goat on rather With time to spare, we actually in under $40, which at just over a
short notice. started a second 30 pounder, with dollar a pound must be some kind
Speed controllers are kind of a working name of NSP (No Spare of record. True, you could claim that
the soul of a robot. That being the Parts). This was to have a similar we cheated by raiding my robot
case, it appears that some Eastern drive system and an active weapon. graveyard/workshop. But I suspect
religions are correct about But alas, with two sessions to that with a bit of eBay trolling and
reincarnation, as electronics for this go a problem arose. Spring arrived. dumpster diving, it would be possible
project had lived previous lives as Middle school boys are not the most to do the entire project including
everything from the 340 pound focused primates on their best days, electronics and radio equipment for
“Newton’s Claw” down to the candy and warm weather, track practice, somewhere around $150.
delivering “Pumpkin Bot” that and the attire of middle school girls
scared my trick-or-treaters a few all became major distractions. So,
years back. we scrapped NSP at the half-built
Our basic drive system was a stage and upgraded SUMO a bit.
pair of Barbie Jeep gearboxes, Basically, we ended up
hubbed to eight inch rubber wheels swapping in 24 volts’ worth of NiCd
that were about a buck at the local batteries, which made SUMO a very
surplus shop. We added a pair of effective pusher.
7.2 volt R/C car batteries wired in In actual combat, lessons were
series for 14.4 volts; a mild over-volt — as usual — quickly learned. The
for the motors but no problem for “close enough” fit between the axle SUMO the pushybot.

SERVO 08.2008 29
CombatZone.qxd 7/10/2008 2:49 PM Page 30

All in all, a fun project, with lots and repair. And at this kind of price, we could have just as easily fought
of opportunity for creative tinkering something very possible on a wider in the school parking lot as in an
and for on-the-fly troubleshooting basis. Without an active weapon, expensive arena. SV

EVENTS
Results and Upcoming Events
Results May 4 –
Jun 15, 2008 2 008 Fighting Robots UK
Featherweight Championships
were held May 24th–25th in
Strongsville, OH
on September
13th. Go to

S RJC Day Under The Oaks was


held May 4th in Santa Rosa, CA.
Fifteen bots were registered.
Birmingham, England. Presented
by Robo Challenge.
www.ohio
robotclub.org
for more details.
Presented by SRJC Robotics Club.

A show at Midlands MCM Expo


will be in Telford, Shropshire,

R oboGames 2008 was held June


12th–15th in San Francisco, CA.
One hundred twenty five combat
England on September 13th–14th.
Go to www.robotslive.co.uk for
more details.

R obots Live presented an event


May 17th–18th at the National
Space Center in Leicester, England.
bots were registered. Presented
by ComBots.
A show at the Huddersfield
Sport Centre will be held on
September 20th–21st in
Huddersfield, West Yorkshire,

G uildford
2008 was
England. Go to
www.robotslive.co.uk for more

C CR Memorial Day Qualifier was


held May 24th in Greensboro,
held June 15th
in Guildford,
details.

NC. Sixteen bots were registered.


Presented by Carolina Combat
Robots.
England. Forty two bots were
entered. Presented by Roaming
Robots.
R obothon
Robot
Combat 2008
will be held by
Upcoming Events for Western Allied
Aug-Sept 2008 Robotics in
Seattle, WA on September 21st. Go

H ORD Fall 2008 will be held by


the Ohio Robot Club in
to www.westernalliedrobotics.
com for more details. SV

EVENT REP RT
Mall of America Rotunda Rumble
● by Aaron Nielsen

I n the post-televised robotic combat


era, it’s good to see the sport
can still draw a standing room only
America in Minneapolis, MN, where
there were at times four floors of
spectators cheering for more.
the Midwest Robotics League, was
held on April 26th and 27th, and it
was divided into two major classes:
crowd. Such was the case at the The event, sponsored by student and professional. Beyond
Rotunda Rumble held at the Mall of Synergy Robotics Entertainment and that, there was the usual weight

30 SERVO 08.2008
CombatZone.qxd 7/8/2008 10:31 AM Page 31

SUMO and Edge of Madness


pause to ponder one another.

Humdinger versus Pox. Guess which


of these bots is having a bad day?

class spread starting with the cute and built by a 10th grader. rivalry, and there were only two of
‘n cuddly ant weights (one pound) Even the schools that opted to them; thus, they opted to pummel
and ending with the “that just stick to the “classic” concepts of each other on an exhibition basis.
might rip your leg off” feather- robot combat (wedges and bricks) Moving on to the beetle
weights (30 pounds). As for fight managed to bring something new weights (three pounds), third place
structure, the 15 pound student to the table. Billet — a simple brick went to Rampage Productions’
Battle Bots IQ (BBIQ) class fought bot to the untrained eye — featured wedge bot, Screw U, which might
in classic bracket style, while the magnets to increase its tractive now hold the title of “bot name
remaining classes fought round effort. Another bot — dubbed that gets the most snickers when
robin. Catapult — boasted the most James announced over the PA.” Second
Taking center stage was the Bond worthy weapon. What I mean place went to Team Bobbing for
BBIQ half of the tournament where is they opted to forgo powering French Fries’ wooden wonder, Boxy
teams of students — some coming their flipper with a mere tank of air Brown, a wooden box with a dowel
from as far as Williams, AZ — and instead chose to mount a on the front and a driver with an
displayed their prowess in complete working air compressor affinity for trash picking. After Boxy
mathematics, science, and right on the robot so they could took a bit of a beating from the first
engineering by vigorously applying recharge on the go. Frankly, I still place finisher, his driver disappeared
it to their opponents in the form of have no idea how that whole for a bit and, upon his return,
stored kinetic energy. When apparatus worked, but it did. Either proudly declared he had found a
comparing the tournament way, enough about the event. Let’s plastic bottle in the trash and
designations of “student” versus talk about results. commenced attaching it to the
“professional,” one might be tempted The ant weight battles were remains of his bot’s keep-away-stick.
to assume that the “student” class less of a tournament and more of a First place went to team Python
was somehow inferior. That would one-on-one brawl for supremacy and their bot, Strychnine, which
be the thought of someone about between ANTI (vertical spinner) and can be best described as three
to be resoundingly beaten by the peculiarly named UnderWHERE pounds of precision machined, bar
something conceived of, designed, (horizontal spinner). It was a friendly spinning death.

ANTI versus
UnderWHERE —
two tiny brushless
Studley Do-Right versus a distressing spinners enter.
amount of kinetic energy (Murder-Go-Round). Only one leaves.

SERVO 08.2008 31
CombatZone.qxd 7/8/2008 10:32 AM Page 32

This, ladies and


gentlemen, is what
you call a crowd.

Pox, jealous of
Catapult’s on-board air
compressor, attacks!

Jumping up to the 15 pound was the master and, as such, second was team Rampage
BBIQ class, the rule for the day was walked away with $2,500 in Productions’ Whop Rivet, an
vertical spinning egg beaters rule, merchandise (including a GEARS kit articulated flail spinner. And
with one exception. That exception donated by GEARS) for first place. bringing home first place and $500
was third place finisher No Remorse Chucker would have to content in prizes was veteran driver Dick
from Valley Middle School in Apple himself with being the apprentice. Stuplich from Team Killerbotics and
Valley, MN. No Remorse was a Since they were able to make it his wedged-wonder, Pyromancer.
wedge bot that proudly proclaimed through the entire BBIQ tournament Even more impressive was that
it had no regrets (except perhaps on Saturday, there was a second Pyromancer was fighting with the
not finishing first or second). The BBIQ tournament on Sunday for proverbial arm behind the back, as
story behind second and first place anyone who could still cobble the flame based weaponry, and,
is a little more amusing. Chucker, together a working robot. Taking consequently, his flamethrower was
from St. Cloud Technical College in home first place ($200) and some not allowed at the Mall of America.
Minnesota, and Humdinger 2, from vindication for Saturday was none If anyone happens to think that’s
Buffalo High School (also in other than Chucker. In second was silly, I would like to point out two
Minnesota) were both armed with Uppercut built by John Glenn things. One, every other store in the
egg beaters and spent the duration Middle School in Maple Wood, MN. Mall of America sells 100% cotton
of the Rotunda Rumble putting In an honorable third was Death shirts. Two, 100% cotton shirts burn
various items, including themselves, Star deployed by PACT Charter quite well. (Your honor, the defense
into low orbit. Interesting fact: The School in Ramsey, MN. (I’d trot out rests.)
creators of Chucker and Humdinger another Star Wars metaphor, but All in all, it was an impressive
2 used to be on the same team. I’m afraid we used them all up in event which boasted an excellent
Thus, when they both found their the last paragraph.) turnout in terms of both builders
way to the finals, the ensuing battle Among the 30 pound big boys and bot watchers. Better still, plans
was the robotic equivalent of Obi- of the event, third place went to are in the works for a similar event
Wan Kenobi facing off with Anakin Team Nerd Academy and their next year. We’re looking forward
Skywalker. It was three minutes of wood, plastic, shovel, Gorilla Tape to it. SV
sheer pandemonium to see who composite push bot, SUMO. (See
was stronger in the force, but the Tim Wolter’s build report on SUMO
All the pictures were taken by Deb Holmes
results showed that Humdinger 2 in this month’s Combat Zone.) In of the Midwest Robotics League.

PARTS IS PARTS:
P wer Switches
● by Chad New

T he power switch is one of the


most overlooked yet critical
parts of a combat robot.
Paraphrasing the Robot Fighting
League rule set, all robots must
have an easily accessible power

32 SERVO 08.2008
CombatZone.qxd 7/8/2008 10:33 AM Page 33

switch that can be used to turn on PHOTO 1. A Team Whyachi


power switch. Simply insert
and off the robot safely, quickly, the wrench and turn on or off.
and easily.
During the mad dash of event made of whatever you
preparation, builders often neglect want. I find, however,
this critical component. I have seen it’s easiest to use a set
dozens of fights lost due to a power of Deans Ultra Plugs.
switched being tripped during a I simply wire the female
hard hit, links falling out because end into the power and
of poor design and placement, use the male end as
and even fights lost simply because the plug; that’s it. This
of not turning the switch to the full switch should cost you
on position. less than $5.
Given the importance of this The other option is
component, it should be factored to buy a ready-made switch from most important thing is to put some
into your robot’s design previous to Team Whyachi. They are made very forethought into it.
the final hours of your build. Power solidly featuring a UHMW body with Be sure to consider its
switches can be made very simple copper contacts inside which you placement so you have easy
or complex; what you decide to go are able to make and break contact access to it and so it is protected
with will depend mainly on available with by adjusting an internal screw. from your opponents. Remember
space and budget. Loosening the screw turns the robot that one shot to this part can take
It is my opinion that the two on while tightening breaks the you out of the match, so treat
best options for a power switch are copper contact and shuts the power it well. SV
a removable power link which any off. They also come in a
builder should be able to easily variety of sizes to fit
make, or the Team Whyachi ready — your needs. If you have
made power switch line. the budget for this item,
A removable power link is easily then it may be a sound
made by creating an open on the investment of about $50.
negative side of your main power No matter what
line which can be closed by inserting power switch option you
the plug, thus completing the circuit decide to go with, the
and turning the robot on. Turning
the robot off is as simple as yanking PHOTO 2. A removable link
made from Deans Ultra
the plug out which puts the open connectors. A simple, easy,
and cheap solution to your
back onto the line. The link can be power switch needs.

ROBOT PR FILE
TOP RANKED ROBOT THIS MONTH
● by Kevin Berry

T ouro has competed in


RoboGames 2006, RoboGames
2007, and 7 ENECA-Recife. Touro
Details are:

● Configuration: Drum
debuted in RoboGames 2006 Bot
achieving third place. Afterwards,
it won Brazil’s III Winter Challenge ● Frame: 7050 aluminum
and VI Robocore ENECA – both in — 20 mm (approx. 3/4”)
2006. In 2007, Touro won a
RoboGames gold medal and kept Touro flips Orion 3 during the
2007 Winter Challenge final match.
both Brazilian competition titles. Photo courtesy of Robocore.

SERVO 08.2008 33
CombatZone.qxd 7/8/2008 10:34 AM Page 34

Touro’s inside. 6Al-4V titanium with Kevlar


Photo courtesy of RioBotz.
underneath; also 5 mm (approx.
with tank mixing 3/16”) 304 stainless steel

● Drive ESC: Two IFI ● Radio system: Spektrum DX6


Victor HV-36s
● Future plans: Work hard to stay
● Drive batteries: Two on top
24 VDC, 3,600 mAh
Battlepacks ● Design philosophy: As a rule of
thumb, the design is as simple as
● Weapon: 12 kg possible; our goal was to build a
(26.5 lb) 304 stainless compact, strong, and reversible
steel drum, with two robot. After 2006, it has undergone
1” x 1” S7 tool steel minor revisions to become even
teeth and 1.5” more simple and powerful.
titanium axle
walls and 8 mm (approx. 5/16”) ● Builders bragging opportunity:
thick top and bottom ● Weapon power: 6.7 kilojoules We don’t like to brag, we like to see
stored @ 6,000 RPM our robots in action!
● Drive: Two MagMotor S28-150s
and Team Whyachi TWM3M ● Weapon motor: Magmotor ● Future plans: Four wheel drive
gearboxes S28-400 version SV

● Wheels: Two Colson 6” x 1.5” ● Weapon ESC: Team Whyachi C1


tread, mounted on aluminum Contactor trigged by custom-made All fight statistics are courtesy of BotRank
(www.botrank.com) as of June 14, 2008.
hubs electronics
Event attendance data is courtesy of
BotRank and The Builders Database (www.
● Configuration: Two wheel drive ● Armor: 3 mm (approx. 1/8”) buildersdb.com) as of June 14, 2008.

History Score Ranking Touro – Currently Ranked #1


Weight Weight
Bot Win/Loss Bot Win/Loss
Class Class
150 grams VD 26/7 150 grams Micro Drive 7/1

1 pound Dark Pounder 44/5 1 pound Dark Pounder 23/3

1 kg Roadbug 27/10 1 kg Roadbug 11/4

3 pounds 3pd 48/21 3 pounds Limblifter 12/1

6 pounds G.I.R. 17/2 6 pounds G.I.R. 11/2

12 pounds Solaris 42/12 12 pounds Surgical Strike 17/7

15 pounds Humdinger 2 29/2 15 pounds Humdinger 2 29/2


Totally
30 pounds 43/13 30 pounds Billy Bob 12/4
Offensive
30 (sport) Bounty Hunter 9/1 30 (sport) Bounty Hunter 9/1
Wedge of
60 pounds 43/5 60 pounds Texas HEAT 11/4
Doom Photo courtesy of Robocore.
120 pounds Devil's Plunger 53/15 120 pounds Touro 10/0 Historical Ranking: #7
220 pounds Sewer Snake 43/12 220 pounds Sewer Snake 11/5 Weight Class: 120 lb Middleweight
340 pounds SHOVELHEAD 39/15 340 pounds Ziggy 3/0
Team: RioBotz
Location: Rio de Janeiro — Brazil
390 pounds MidEvil 28/9 390 pounds MidEvil 3/0

History Score is calculated by perfomance


Current Ranking is calculated by BotRank Data Total Fights Wins Losses
performance at all known events, using
at all events known to BotRank
data from the last 18 months
Lifetime History 16 14 2
Current Record 10 10 0
Rankings as of June 14, 2008 Events 3

34 SERVO 08.2008
Full Page.qxd 7/9/2008 5:37 PM Page 35

JOIN THESE LEADING


COMPANIES AT 2008
ROBODEVELOPMENT

Founding Sponsor
,
CONFERENCE&EXPO 08
NOV. 18-19, 2008 Gold Sponsor

SANTA CLARA CONVENTION CENTER

SANTA CLARA, CA
Silver Sponsors
Join the International Technical Design and Development
Event for the Personal, Service, & Mobile Robotics Industry

EXCLUSIVE OFFER:
USE PRIORITY CODE RDSRV AND
SAVE $300 ON A CONFERENCE PASS
WWW.ROBODEVELOPMENT.COM Q 800-305-0634 BOSTON
ENGINEERING™

Featured Keynote Q 30+ Cutting-edge, relevant conference


Presentations sessions covering:
 - Systems and Systems Engineering Analyst, Association &
 - Tools and Platforms Academic Co-Sponsors

 - Enabling Technology


 - Achieving Autonomy
 - Design and Development
Sebastian Thrun Q Keynote sessions delivered by internationally
Professor of Computer recognized industry leaders Media Co-Sponsors
Science and Electrical
Engineering Q Exposition floor featuring what’s new and what’s
Director, Artificial
Intelligence Laboratory next in robotics design and development
Stanford University
“Making Cars Drive Themselves” Q Valuable networking opportunities that put
Plus... you in touch with peers, industry experts and
Maja J. Mataric up-and-coming talent
Founding Director
USC Center for Robotics
and Embedded Systems
Director
FOR COMPLETE EVENT DETAILS
USC Robotics Research Lab Listing as of July 7, 2008. For a
current list of participating
Jeanne Dietsch VISIT WWW.ROBODEVELOPMENT.COM companies, please visit
CEO www.robodevelopment.com.
MobileRobots Inc
“Opportunities at the Uptick”

For Information on
Sponsorship and
Exhibiting
Opportunities,
contact
Ellen Cotton at
ecotton@ehpub.com
or 508-663-1500 x240
Eady.qxd 7/8/2008 11:55 AM Page 36

The hobby servo is an amazing device. The typical hobby servo is a collection of plastic or
metal gears driven by a DC motor, which is under the control of a specialized motor driver IC
and a feedback potentiometer. Back in the day, one would find hobby servos in most every
model airplane and model boat. If you really put a brain cell to it, radio-controlled model
planes, cars, and boats are actually specialized types of robots that depend greatly on the
controlled motion provided by a hobby servo. Hobby servos don’t care who drives them as
long as they are driven with a specifically
timed PWM signal. So, it’s not so strange
that the ubiquitous hobby servo has
rotated its way into today’s microcontroller-
controlled robotic ramblers.

M y first serious hobby servo controller was built


around an LM556 dual timer IC with a potentiometer
at the end of a joystick acting as the hobby servo
controller input. After discovering PIC microcontrollers,
my next generation of hobby servo controllers got a bit
more flexible as I could control the hobby servo PWM
signal — and thus the servo itself — with both firmware
PHOTO 1. This Xilinx CPLD development board
contains everything you need to put the XC2C64A
on the air. The idea is to put down and test
your XC2C64A design on this board before
building up the final hardware that will be
dedicated to your XC2C64A project.

PHOTO 2. This is the real McCoy. There are other


XC2C64A programming alternatives. However,
this CPLD and FPGA programming device is fully
supported by the Xilinx ISE WebPACK firmware
generation package. You can purchase this tool
from a number of electronics distributors.
36 SERVO 08.2008
Eady.qxd 7/8/2008 11:55 AM Page 37

The CPLD Servo Driver


and a potentiometer. As time passed, PICs got more timing falls into our lap here as each tick of our 1 MHz
sophisticated and began to include on-chip PWM clock is 1 microsecond (1.0 µs) in length.
subsystems that could be programmed to effortlessly Now that we have a solid timebase figure of 1 µs to
service a hobby servo while doing other things at the same work with, let’s assign bits fields to our pulse widths that
time. This month, we’re going to add yet another hobby correspond to their numeric size. At a minimum, we’ll
servo controller type to our list. This hobby servo controller need to generate a 16 ms control pulse window which
variant is based on a Xilinx XC2C64A CPLD. If you are CPLD must contain a positive-going servo positioning pulse with
challenged, fear not. The April and May 2008 issues of a minimum pulse width of 1 ms and a maximum pulse
Nuts and Volts contain introductions to CPLD hardware and width of 2 ms:
firmware. In fact, we are going to “reuse” that Nuts & Volts
64A CPLD hardware in this month’s discussion. There are 16 ms = 16,000 µs = 0x3E80 µs = 0b0011111010000000 µs
lots of details we need to cover. So, let’s get started. 1 ms = 1000 µs = 0x3E8 µs = 0b001111101000 µs
2 ms = 2000 µs = 0x7D0 = 0b011111010000 µs
Doing Some Servo Math
Instead of using ABEL as we did in our Nuts and Volts
The typical radio-controlled servo system consists of a CPLD introduction, the programming language of choice for
transmitter, a receiver and multiple servos. Most advanced this project will be Verilog. Verilog is very much like C and is
microcontrollers that contain on-chip PWM subsystems only very easy for most anyone to pick up and run with. Verilog
provide up to two independently controlled PWM output supports numbers up to 32 bits in length. Judging from our
channels. If you only need to control a couple of hobby binary breakdown of the pulse widths, by stripping off the
servos and your selected microcontroller can drive its PWM leading zeros of the most significant bytes of each pulse
outputs independently, you’re covered. However, if you width bit field we can easily represent our largest pulse
need to drive a greater number of hobby servos, you’re width number (16 ms) with 14 bits. All of the rest of
going to need some help. That’s where the 64A our pulse width values (including the 2 ms servo
CoolRunner-II CPLD comes in. positioning pulse) can be represented with a maximum of
In the pages of those issues of Nuts & Volts that I 11 binary digits.
steered you to earlier, we built up the basic CPLD hardware Every 16 ms servo control pulse window must begin
configuration you see in Photo 1 exactly as it is represented with a positive-going servo control pulse, which we know
in Schematic 1. The pinned-out CoolRunner-II CPLD is can vary anywhere between 1 ms and 2 ms. We can easily
programmed via its JTAG port using a Xilinx-compatible write some 64A code to produce the timing necessary to
CPLD programming device. To raise the chances of project realize a 16 ms servo control pulse window. However, from
success, I like to use the official programming tools offered experience I know that we must generate extra code to
up by the manufacturer. For the 64A, those programming reload the 16 ms value into the servo control pulse
tools include the free Xilinx ISE WebPACK CPLD/FPGA counter at the end of every 16 ms timing period. Our
firmware generation tool and the Platform Cable USB coding chore would be a little easier and the code flow
hardware programming tool shown in Photo 2. made easier to follow if we could eliminate the necessity to
A microcontroller uses its system clock to assist in the
PHOTO 3. The LTC6900’s undivided output frequency is
generation of PWM signals. We’ll also need a clock source determined by the value of resistor R18. Utilizing the
to lock in the PWM signal that the 64A will be sourcing to LTC6900 is a really neat way to put a highly stable and
the hobby servos. The LTC6900 is configured as a 1 MHz programmable frequency source in a tight space.
clock source that can have its output frequency divided by
10 or by 100 with the positioning of a jumper. Our hobby
servo application will utilize the undivided 1 MHz clock
signal. To get 1 MHz out of the LTC6900’s OUT pin, we
must ground the DIV pin (pin 4) with a jumper. The 1 MHz
output jumper configuration and the LTC6900 along with
its supporting circuitry are shown from a lizard’s viewpoint
in Photo 3.
We need to drive our hobby servos with a positive-
going pulse every 16 to 30 ms or so. The positive-going
pulse width must be able to be varied between a minimum
of 1 ms and a maximum of 2 ms within the 20 to 30 ms
window. With a center servo rotor position represented by
a 1.5 ms pulse width, it’s rather obvious that we must use
microsecond-based pulse widths to be able to better position
the servo rotor within its bounds of travel. Microsecond
SERVO 08.2008 37
Eady.qxd

38
3.3V
7/8/2008

+5VDC - +9VDC C12

SERVO 08.2008
LM1117-3.3 VR1 3.3V .1uF
J1 R1 390 U1

44
43
42
41
40
39
38
37
36
35
34
11:55 AM

IN OUT
+ + C4 1 33

ADJ
IO42
IO41
IO40
IO39
IO38
IO37
IO36
C1 C2 C3 .1uF LED1 2 IO1/GC IO33G0E 32

VAUX
IO2 IO32GOE

IO44GC
IO43GC
.1uF 220uF 220uF 3 31

IO34GOE
4 IO3 IO31GOE 30
5 GND IO30GSR 29
Page 38

6 IO5 IO29 28
7 IO6 XC2C64A IO28 27
8 VCCIO1 IO27 26
LM1117-1.8 1.8V 9 IO8 VCCIO2 25
VR2
10 TDI GND 24
11 TMS TDO 23
IN OUT TCK IO23

IO12
IO13
IO14
VCC
IO16
GND
IO18
IO19
IO20
IO21
IO22
The CPLD Servo Driver

C5 + + C8

ADJ
.1uF C6 C7 .1uF

12
13
14
15
16
17
18
19
20
21
22

220uF 220uF C9 C11


.1uF .1uF

3.3V
CLOCK OUT C10
U2 .1uF
R2 3.3V 3.3V
10K 1 5
V+ OUT
J2 R18 2 100
R3 200 200K GND
TMS 3 4 10
1 C13 SET DIV
R4 200 .1uF 1
TDI LTC6900
2

TDO
3
R5 200 3.3V
TCK
4
SWA
3.3V R10 R11 R12 R13 R14 R15 R16 R17
390 390 390 390 390 390 390 390
5 3.3V
SWA R7 200 SWB R9 200
SWB
6 LED2 LED3 LED4 LED5 LED6 LED7 LED8 LED9
R6 R8
JTAG 10K 10K
LED2 LED3 LED4 LED5 LED6 LED7 LED8 LED9
Eady.qxd 7/8/2008 11:56 AM Page 39

The CPLD Servo Driver


< SCHEMATIC 1. The electronic playground is contained has an input and an output. The output is registered,
within U1, the Xilinx XC2C64A. U2 is a 1 MHz clock source which means it has the ability to emulate a flip-flop.
that can be divided by 10 and 100 with the movement of
a jumper. The LEDs and switches are here because the A registered Verilog component also has the means
XC2C64A is part of a XC2C64A development board design. of holding a value just as a D flip-flop can on its
complementary Q and outputs. The input signal — which
reload the servo control pulse counter value. We can follow has defaulted to a Verilog type of wire — is derived from
the easier coding path by selecting a servo control pulse our LTC6900 1 MHz clock output. Verilog wires cannot hold
window time that lies on a power of two boundary. The values and can only be driven by an external force such as
power of two timing method allows the servo control a register or the output of a gate. Basically, a Verilog wire
pulse counter to run continuously and reset itself without is just like the copper wire you use to connect electronic
intervention. components.
Ultimately, we want the servo control pulse counter to Next, let’s associate our pulse width numeric values
roll over to zero and restart the servo control pulse width with some human-readable names using the Verilog
timing period automatically. The closest power of two keyword parameter. Verilog parameters are equivalent to
boundary value that meets our 16 ms servo control pulse C constants:
window timing limitation is 0x4000. Thus, we will assign a
bit pattern that will allow our servo control pulse counter to parameter minpulsewidth = 1000;
count from 0x0000 to 0x3FFF and roll over to 0x0000. Our parameter servo_vector = 500;
selection of 0x4000 as the servo control pulse window
count provides a 16.384 ms control pulse window. If we All of our Verilog parameter values are in microsecond
find that we need more time to service more servos, we units. The minpulsewidth Verilog parameter should be
could multiply our servo control pulse window time by two obvious as to its use. The Verilog parameter servo_vector
and use 0x8000 as our servo control pulse count value. represents the relative position of the servo rotor. We must
Counting from 0x0000 to 0x7FFF would yield a 32.768 ms always have a minimum servo position pulse width of 1 ms.
servo control pulse window. So, adding 500 µs (0.5 ms) to the minimum servo position
From what I have read, 40 ms is the typical minimum pulse width with the servo_vector value of 500 will give us
servo control pulse window used by RF-based hobby servo the 1.5 ms centering pulse we are looking for.
systems and is mandated by the FCC (Federal We calculated that we would need a total of 15 bits to
Communications Commission) to limit interference. We can implement our 32.768 ms servo control pulse window.
service a bunch of hobby servos in a 40 ms window. Let’s Here’s the Verilog instantiation of our 15-bit servo control
go with the 32.768 ms servo control pulse window for pulse register, which we will call window_32ms:
now. If necessary, we can always scale the pulse window
time back to 16.384 ms with the flip of a bit. Here’s the reg [14:0] window_32ms;
32.768 ms servo control pulse window bit pattern:
If you lay down a “1” for every bit position in the
32,768 µs = 0x8000 µs = 0b1000000000000000 µs window_32ms register (bits 14 through 0), you’ll end up
with 0x7FFF hexadecimal, or 0b111111111111111 binary.
We will count from 0x0000 to 0x7FFF and roll over. When the window_32ms register contains 0x7FFF and is
If that doesn’t compute, remember that we clock on zero incremented, it will roll over to zero. So far, so good.
and the zero clock counts as one clock pulse. So, we’ll need We’ve served up the potatoes. Now, let’s bring the meat
15 bits — not 16 bits — for our 32.768 ms servo control to the table:
pulse counter.
always @(posedge clk_1mhz)
Transposing the Servo Math begin
window_32ms <= window_32ms + 1;
pwm_out <= (window_32ms <
The idea is to plant the servo position pulse (1 ms to (servo_vector + minpulsewidth));
2 ms) at the beginning of the 32.768 ms servo control end
pulse window. Let’s begin by putting some code together endmodule
that will center the servo rotor:
The Verilog always @(posedge clk_1mhz) statement
module rcservo( does exactly what it says. Every time the positive edge of
input clk_1mhz, the LTC6900-provided 1 MHz clock occurs, everything
output reg pwm_out between the begin and end block delimiters is executed.
); The Verilog endmodule keyword signals the end of the
rcservo module.
Verilog is module based. Our rcservo Verilog module The always @(posedge clk_1mhz) block statement is
SERVO 08.2008 39
Eady.qxd 7/8/2008 11:56 AM Page 40

The CPLD Servo Driver


SCREENSHOT 1. This pulse width
is right on the money. Upon
sensing this signal, the rotor of
my JR Sport SM8 hobby servo
snapped to the central position.

input to the Q output simultane-


ously. So, everything to the right
of the “<=” operator will execute
and the results will end up to
the left of the “<=” operator
beginning with every positive
edge of the 1 MHz clock. The
window_32ms <= window_32ms
+ 1; Verilog statement is very
easy to understand as every
microsecond we are incrementing
the count that is being held
within the 15-bit window_32ms
register.
The pwm_out <=
similar to a while(1) C loop that runs continuously. Verilog (window_32ms < (servo_vector + minpulsewidth)); Verilog
always blocks run freely and are triggered every time the statement takes a bit more thought. Associate logically high
condition in the always block sensitivity list is met. In the with Boolean TRUE and logically low with Boolean FALSE as
rcservo module we’ve just coded, the Verilog always block’s you sound it out:
sensitivity list contains a trigger for every positive edge
(posedge) of the incoming 1 MHz clock signal (clk_1mhz). The pwm_out output pin is logically high as long
That equates to the always block’s code between the as the window_32ms register count is less than the
Verilog begin and end block delimiters executing every servo_vector value plus the minimum servo position
microsecond. pulse width value.
The “<=” Verilog operator in our always loop code tells
us that the logic associated with this operator is clocked, We know that we want to generate a 1.5 ms servo
which means all of the statements using a “<=” operator position pulse with our rcservo Verilog module. So, let’s
are termed “unblocked” and execute in parallel. If you’re sound out the pwm_out <= (window_32ms < (servo_vector
having trouble with this concept, think of a bunch of D + minpulsewidth)); Verilog statement again, but this time
flip-flops with all of their clock lines tied to the same clock we’ll sound it out mathematically:
source. When clocked, every D flip-flop will switch its D
When the window_32ms
register value is less than
1500 decimal, the pwm_out
pin is logically high. When
the window_32ms register
value is greater than 1500
decimal, the pwm_out
pin is logically low. The
window_32ms versus servo
position value comparison is
made at every rising edge of
SCREENSHOT 2. My JR Sport SM8
hobby servo didn’t chatter while
under the control of this 32.768
ms servo control pulse window
timing. The 4.8 volt SM8 ran well
using the XC2C64A’s 3.3 volt I/O
supply voltage. However, I’m sure
you’ll get the most out of the SM8
with a +5.0 volt servo supply.
Note the rising-edge-to-rising-
edge timing in this shot.
40 SERVO 08.2008
Eady.qxd 7/8/2008 11:56 AM Page 41

The CPLD Servo Driver


the 1 MHz clock, or once every microsecond. //*******************************************************
//* GENERATE SERVO CONTROL PULSE WINDOW
//*******************************************************
As you can see, the pwm_out <= (window_32ms < always @(posedge clk_1mhz)
(servo_vector + minpulsewidth)); Verilog statement uses window_32ms <= window_32ms + 1;
the 32.768 ms clock, the servo_vector value, and the
minimumpulsewidth constant to create a complete PWM
signal. The proof is in the pudding. One slice of servo driver We will build upon our single servo code to add the
pie is represented in Screenshot 1, which is the 1.5 ms second PWM output pulse. We laid the ground work for
pulse our Verilog code generated. I captured the servo the extra PWM output earlier in the rcservo module:
rotor-centering pulse for you with a CleverScope.
Screenshot 2 is another CleverScope shot of the complete //*******************************************************
32.768 ms servo control pulse window, including the 1.5 //* GENERATE SERVO CONTROL PULSES
ms servo position pulse. //*******************************************************
With the XC2C64A code, we’ve put together so far, we always @(posedge clk_1mhz)
begin
can change the position of the hobby servo rotor by simply pwm_out1 <= (window_32ms <
changing the value of the servo_vector parameter. Valid (servo_vector1 + minpulsewidth));
servo_vector values range from zero to 1000 decimal, with pwm_out2 <= (window_32ms <
a zero value producing a 1 ms servo position pulse and a (servo_vector2 + minpulsewidth));
value of 1000 decimal pushing the hobby servo to its full end
opposite extent with a 2 ms pulse. We have easily taken
control of one hobby servo using only our 64A CPLD. Why Notice that we replaced the servo_vector constant with
not two hobby servos?? our servo_vector register variables.
Up to now, we’ve been seeing double. Let’s drive down
One XC2C64A. Two Servos. that road we made the different turn onto. I don’t think
you’ll have any problem following the idea behind this
You already understand what it takes to move a hobby Verilog code snippet:
servo rotor with an XC2C64A CPLD. So, let’s not waste
any time getting some double rotor code down and //*******************************************************
running. First, let’s add that second PWM output to our //* DETERMINE SERVO ROTOR DIRECTION
rcservo module: //*******************************************************
always @(posedge clk_1mhz)
begin
module rcservo( if(window_32ms == 0)
input clk_1mhz, begin
output reg pwm_out1, if(servo_vector1 == 0 || servo_vector1 == 1000)
output reg pwm_out2 servo_direction = ~servo_direction;
);
if(servo_direction)
begin
We’re going to take a different turn here. Instead servo_vector1 <= servo_vector1 + 1;
of loading the servo rotor position manually via the servo_vector2 <= servo_vector2 - 1;
servo_vector parameter, we’re going to instantiate a pair end
of servo_vector registers to hold our desired servo rotor else
positions: begin
servo_vector1 <= servo_vector1 - 1;
servo_vector2 <= servo_vector2 + 1;
parameter minpulsewidth = 1000;
end
reg [14:0] window_32ms; end
reg [9:0] servo_vector1; end
reg [9:0] servo_vector2; endmodule
reg servo_direction;
Everything we do must synchronize to the beginning of
Recall that our servo_vector values can range from the servo control pulse window. So, we must always check
zero to 1000 decimal. That means we need 10-bits to to see if the servo control pulse window counter register is
hold the maximum servo_vector values. The single bit at zero as this is the synchronization point we must adhere
servo_direction register should give you a clue as to where to. The idea is that if we have a new servo vector value to
that different turn will take us. enter, it must be entered at the beginning of a new servo
Nothing has changed about the way we generate the control pulse window.
servo control pulse window: The servo_vector values of zero and 1000 decimal force
SERVO 08.2008 41
Eady.qxd 7/8/2008 11:57 AM Page 42

The CPLD Servo Driver


SCREENSHOT 3. According to this pin
report, our 1 MHz clock is connected to
pin 43 of XC2C64A. The PWM output is
found at I/O pin 29. The least significant
bit of the btn_input pair of inputs
([x:0]) is located on pin 38 while the
most significant bit btn_input pin
([1:x]) is attached to pin 37.

continually move the servo rotors in a


predetermined pattern, you’ll probably
program your XC2C64A to take orders
from a host device or respond to an
external stimulus. You can choose to
communicate with a supporting CPLD
using RS-232, SPI, or I2C. You can even
make up your own host-to-CPLD
scheme. Let’s keep it simple and put
together some Verilog code that reads
the logic levels on a pair of XC2C64A
input pins and commands the servo
the servo rotor to travel to its opposing extents. If we desire rotor to stop, spin clockwise, or spin counter-clockwise. The
to change direction of the servo rotor after it has travelled logic levels present on the input pins may originate from a
from one extent to another, we should change the direction microcontroller or a set of switches. The idea here is to
of the servo rotor at the current extent of its travel. If a show you how to code for handling events on the CPLD’s
direction change is deemed necessary, we need a method input pins:
of storing the current servo rotor direction. That’s exactly
what the one bit servo_direction register does. We’re going module rcservo(
input clk_1mhz,
to move the servo rotor to one extent and then reverse
output reg pwm_out,
until we reach the opposite extent. input [1:0] btn_input
So, we don’t care about a clockwise or );
counter-clockwise value. We can simply swap the logical
state of the servo_direction register and go from there. The parameter minpulsewidth = 1000;
servo_direction register value can be either positive, zero, or reg [13:0] window_32ms;
negative. So, we need only concern ourselves with it being reg [9:0] servo_vector;
positive or something other than positive. In our code, the
servo_sector values are incremented or decremented To gain control of the servo rotor movement we must
depending on the logical value of the servo_direction declare a pair of input wires (input [1:0] btn_input) that are
register. Also, note that the servo_sector1 and servo_ actually connected to the XC2C64A CPLD’s I/O pins. Since
sector2 registers are incremented and decremented in we’re only controlling a single servo here, we only require
opposing directions. The hobby servos we attach to the one servo_vector register to hold our desired servo rotor
64A PWM output pins will continually spin their rotors from position data. We still need to generate the servo control
extent to extent in opposite directions. We could have pulse window and the servo position pulses. So, the code
keyed on the value of servo_vector2 instead of servo_ that follows should not seem strange to you:
vector1 to determine our change of direction points.
//*******************************************************
Taking Some Control //* GENERATE 32ms SERVO CONTROL PULSE WINDOW
//*******************************************************
always @(posedge clk_1mhz)
Thus far, we have allowed the XC2C64A to run the window_32ms <= window_32ms + 1;
show. Unless your XC2C64A application’s mission is to //*******************************************************
//* GENERATE SERVO CONTROL PULSES
//*******************************************************
SOURCES always @(posedge clk_1mhz)
pwm_out <= (window_32ms <
Saelig — www.saelig.com (servo_vector + minpulsewidth));
CleverScope
The code we will use to process the btn_input inputs is
Xilinx — www.xilinx.comXC2C64A very much like Basic and C. We’ll employ the Verilog case
Platform Cable USB; ISE WebPACK statement to decode the btn_input input logic levels:
42 SERVO 08.2008
Eady.qxd 7/8/2008 11:57 AM Page 43

The CPLD Servo Driver


//******************************************************* every successful CPLD or FPGA design implementation pass.
//* DETERMINE SERVO ROTOR DIRECTION
//*******************************************************
The most significant bit of our register and wire bit range
always @(posedge clk_1mhz) patterns is represented by the left-most bit in the range
if(window_32ms == 0) declaration ([most significant bit:least significant bit]). Now
case(btn_input) you can see how the order of the btn_input bit range declara-
2’b01: servo_vector <= servo_vector + 1;
2’b10: servo_vector <= servo_vector - 1; tion pattern ([1:0]) relates to the Verilog case comparison
2’b11: servo_vector <= 500; arguments (2’b01, 2’b10, etc.) and to the XC2C64A I/O pins.
endcase

endmodule Rotating Out


The only thing I really need to explain is the Verilog Driving hobby servos is only one of the tricks a CPLD
case structure. Otherwise, the Verilog case block works just can perform. In addition to turning servo rotors, you can
like the C case block. All of the possible btn_input input use a CPLD to expand the I/O capability of your host
logic levels are represented except 2’b00, whose omission microcontroller. You can also use a CPLD to replace a
brands it as a “don’t care” or “do nothing” logic level. The number of discreet logic ICs in your next robotic design.
“2’b” in each case choice represents the number of binary If you see CPLD logic in your robotic future, I’ve provided
bits in the case comparison argument. The stated number all of the source code we generated in this discussion as a
of binary bits follows. In our application, each bit in the download package from the SERVO website (www.servomag
case comparison arguments represents a particular input azine.com). You can get the hardware scoop on the XC2C64A
pin. The logic we have implemented stops the servo rotor development board as a download package from the Nuts &
when both btn_input pins are logically low. The servo rotor Volts website (www.nutsvolts.com). CPLDs are easy to under-
is centered when both btn_input pins are logically high. stand and easy to design into your projects. So, gather up a
If you’re wondering how we know which btn_input pin couple of hobby servos, build up the XC2C64A Development
is associated with which bit, the ISE WebPACK generates a Board, and drive some servos with a CPLD yourself. SV
pin list report like the one you see in Screenshot 3 with Fred Eady can be reached via email at fred@edtp.com.

HE8EJIFH;<;H>?J;9)0'
.EW2OBOT3ERVOS

>_j[Y
Ej^[h8hWdZ

+656* +656* +657*


6SHHGVHF 6SHHGVHF 6SHHGVHF
7RUTXHR]LQ 7RUTXHR]LQ 7RUTXHR]LQ
6WHHO*HDUV 6WHHO*HDUV 7LWDQLXP

$//63(&,),&$7,216$792/76

7KHUHVXOWVRIDQLQIRUPDOSROOWDNHQUHFHQWO\DWWKH)LUVW
$QQXDO:RUOG'RPLQDWLRQ6\PSRVLXPDUHQRZLQ5RERWV
SUHIHU+LWHFVHUYRVRYHURWKHUVHUYREUDQGV7KH\NQRZWKHZLGH
VHOHFWLRQRI+LWHFDQDORJDQGGLJLWDOVHUYRVSURYLGHWKHPZLWKWKHSRZHUDQGGHSHQG
DELOLW\QHHGHGWRHYHQWXDOO\WDNHRYHUWKH:RUOG0DNH\RXUURERWKDSS\XVH+LWHFVHUYRV
3DLQH6WUHHW_3RZD\_&DOLIRUQLD___ZZZKLWHFUFGFRP

SERVO 08.2008 43
Showcase Aug08.qxd 7/9/2008 3:22 PM Page 44

New Robotic Storage RoboVault can quickly respond to


security issues and perform rapid
System has Super diagnostics.
Abilities
RoboVault Implements 3. RoboVault can create its own
State-of-the-Art Technology energy.
RoboVault's emergency back-up
hen we think of the future, we generator can support the entire
W imagine robots, voice-activated
technology, and biometric
building with 100% back-up of
electrical base for building safety
recognition playing a role in our and HVAC for a “business as usual”
everyday lives. It has arrived in South environment for up to 10 days after
Florida with the construction of loss of local service.
RoboVault — the first high-tech
robotic storage facility of its kind. 4. RoboVault can morph better than
RoboVault is a fully automated a Transformer©.
robotic container retrieval system that Storage containers are made of
safely stores valuables ranging in size structural steel mesh that allows for
from exotic automobiles to precious proper air circulation and fire safety
artwork and other priceless items codes. There are 456 in total ranging
(Not to mention wine storage). Its from 5x5 , 5x10, 10x10, 15x10, and
unique combination of extraordinary non-subdivided modules of 20x10
storage capabilities and high-tech and free-standing positions for larger
security features distinguishes items, including exotic cars.
RoboVault from all previous
storage facilities. 5. RoboVault knows who is there at
RoboVault developer, Marvin all times.
Chaney, is a futurist. He envisioned Its unprecedented combination
RoboVault by anticipating the needs of technology includes:
of those living in and visiting South • 24/7 security monitoring
Florida. Chaney has developed self- • Retinal scanning
storage facilities for over 25 years, • Heart beat detection
first in Detroit and then in Florida. • Biometric recognition
With the help of Westfalia Systems,
Inc., (the German company which 6. RoboVault is as safe as a Swiss
produced RoboVault's advanced bank.
robotics technology), Chaney RoboVault has an adjacent room
embarked on creating the most revo- specifically for safety deposit boxes.
lutionary storage facility of our time. The space implements all of the
same security measures as the
What makes RoboVault so storage, plus a few extra perks!
revolutionary? • Private entrance for clients to
drive into the building and access the
1. RoboVault is designed to stand up safe deposit box through another,
to anything thrown its way — nature privately monitored interior entrance. ut
or manmade. • Clients have full access to their B l ow O
l
The building itself boasts a solid safety deposit boxes 24 hours a day, Specia
concrete roof, solid concrete and seven days a week. $9.95!
steel reinforced tilt-up wall panel
exterior for maximum strength and 7. RoboVault is cultured.
WWW.SERVOMAGAZINE.COM
stability, and double pane hurricane The facility also boasts a wine
impact glass. As a result, the exterior storage facility on the ground floor.
of RoboVault is designed to The space allows discriminating
withstand Category 5 hurricanes, collectors to incrementally expand
with winds up to 200 mph. their personal cellar capacity.

2. RoboVault can think. Check out http://youtube.


With Human Machine Interface com/watch?v=cQLdOKklflI for a
(HMI) — a means by which users can background video on RoboVault.
interact with the computer system to For more information, visit the
create specific commands — website at www.robostorage.com.

44 SERVO 08.2008
Showcase Aug08.qxd 7/9/2008 5:21 PM Page 45

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

G 
.65 

LUH QJ
TX UL
UH ROGH
6
7KHURERWIURJPRYHVIRUZDUG
ZKHQLWGHWHFWVVRXQGDQG
UHSHDWVVWDUW PRYHIRUZDUG !
VWRS!OHIWWXUQ!VWRS!ULJKW
WXUQ!VWRS .65 
PP:KLWH
ZDWHUFOHDU
/('9
PFG
$% 

VHFRQGYRLFHUHFRUGHUSOD\EDFN
PRGXOH7KHHOHFWUHWPLFURSKRQHLVRQWKH
ERDUG2QHEXWWRQUHFRUGVWKHRWKHUEXWWRQLV
PRPHQWDULO\SUHVVHGWRUHSOD\WKHPHVVDJH
SUHDVVHPEOHG  $ 
7KH9HOOHPDQ3HUVRQDO6FRSH
LVQRWDJUDSKLFDOPXOWLPHWHU
EXWDFRPSOHWHSRUWDEOH
RVFLOORVFRSHDWWKHVL]HDQG
FRVWRIDJRRGPXOWLPHWHU
+36  $146.
QGV
7KRXVD RQ
P V
PRUHLWH LWH
Z H EV
RXU

Robotics Showcase

THOUSANDS OF ELECTRONIC
PA R T S A N D S U P P L I E S
VISIT OUR ONLINE STORE AT
www.allelectronics.com
WALL TRANSFORMERS, ALARMS,
FUSES, CABLE TIES, RELAYS, OPTO
ELECTRONICS, KNOBS, VIDEO
ACCESSORIES, SIRENS, SOLDER
ACCESSORIES, MOTORS, DIODES,
HEAT SINKS, CAPACITORS, CHOKES,
TOOLS, FASTENERS, TERMINAL
STRIPS, CRIMP CONNECTORS,
L.E.D.S., DISPLAYS, FANS, BREAD-
BOARDS, RESISTORS, SOLAR CELLS,
BUZZERS, BATTERIES, MAGNETS,
CAMERAS, DC-DC CONVERTERS,
HEADPHONES, LAMPS, PANEL
METERS, SWITCHES, SPEAKERS,
PELTIER DEVICES, and much more....

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

SERVO 08.2008 45
Toebes.qxd 7/8/2008 10:50 AM Page 46

Photo courtesy of www.boingboing.net.

Build a PWM CIRCUIT


to run a VEX MOTOR
As part of this year’s Science Olympiad
competition, the students were tasked with
building an electric car that would go a certain
distance and stop. While the Vex Robotics kit
from Innovation First is ideal for building such a
vehicle, the competition restriction on batteries
precluded the use of the 7.2V NiCad that the
Vex controller uses. Fortunately, this gave an
opportunity to experiment with other ways to
drive the Vex motor and control the car.

by John Toebes

T he first issue that you run into is that instead of just a


straight DC motor, the Vex motors are controlled with
a pulse width modulation (PWM) signal in addition to the
details on the Vex motors, and after coming up with
conflicting answers (but with a general consensus), we
decided that it wanted a frequency between 50 and 100
normal DC power. This is pretty common for servo and Hz with a pulse width from 1-2 ms. We wanted to be
stepper motors, but to control it correctly you need to sure, so we went straight to the source — literally by
know both the frequency and the duty cycle that the motor hooking up the real controller to a scope and measuring
likes. In general, the longer the pulse, the faster the motor the output as we varied the motor speed with the
goes, as illustrated in Figure 1. remote control.
So, the first task we had to deal with was What we found was that the controller generally runs
understanding exactly what type of signal to feed the at 50 Hz (20 ms) to 55 Hz (18 ms) with a pulse width of
motor. We spent quite a bit of time searching the web for around 2 ms to go full forward and around 1 ms to go full
backward. At around 1.5 ms, the motor
FIGURE 1 stands still and anything outside of that
Frequency range produces nicely erratic results.

Shorter Duty Cycle Building the Controller


Motor Goes Slower (or Reverse)
With the data in hand, we needed to
carefully choose from parts which were
readily available in our area — hence, we
Width went through the local RadioShack parts
inventory to luckily find that they still carried
the LM555 timer and all the capacitors and
Frequency resistors we needed.
With a 555, normally you get a nice
Longer Duty Cycle square wave with the proper resistors and
Motor Goes Faster capacitors, but for this project we needed
to have a lopsided wave. To accomplish this,
all you need to do is put a diode into the
Width circuit shown in Figure 2 so that it discharges
faster in one direction. In the circuit we used,
46 SERVO 08.2008
Toebes.qxd 7/8/2008 10:50 AM Page 47

T the calculations for the resistors were


+5V
pretty simple:
R1
+Vcc

1K
• Time On = R2 * C1

!
• Time Off = R1 * C1 1 8
2 7

555
2K
3 6

!
Opting for simplicity, we stuck with a 1 µF
4 5
capacitor and the closest we could get with Red
standard resistors. For R2, this came out to be R2 Output White
19.4K which can be made with three standard Black
resistors (10K + 4.7K + 4.7K). However, for

4.7K

4.7K
10K
the R1 which controls the duty cycle we

!
needed a bit more accuracy than we could
get with the typical 5% tolerance resistors.
For this we knew we needed somewhere
around 1.8K. For this, we chose to combine 0.01µF

+
a standard 1K resistor with a 1K, 15-turn 1µF
potentiometer.
The only other challenging part we 0V
needed was a way to connect the Vex motor
to the circuit. If you are using a breadboard to
555 VEX PWM Controller FIGURE 2
build the circuit, the Vex motor cable is on
standard .1” centers and just plugs into the
breadboard. If you put it on a perfboard, there are affected the other circuits of the car. To clean this up, we
several options short of actually soldering the motor pins to simply connected the +5 to the battery through a five volt
the perfboard: regulator (such as a 7805 — RadioShack P/N 276-1770.

1) Use an IC socket and just push the motor into the socket. Putting It in Motion
This works to experiment with, but isn’t very durable.
Once you have everything assembled and have
2) Get a Vex extender cable (or the equivalent from a local powered up the circuit, you need to adjust the potentiometer
R/C hobby store) and solder it to the board. to get the optimum speed. You can do this by either
watching a scope connected to the outputs or tune it by
3) Use an old IDE, floppy, USB block, or even an internal just watching the motor. You should be able to see the full
audio cable that the Vex motor plugs into — make sure you range of the motor from maximum reverse to idle to full
find the right wires to connect into the board. Audio cables forward by adjusting the potentiometer.
work great as you can see in Figure 3.
Building on It
The circuit is easy to lay out. As you can see in Figure
4, the students built the circuit so that parts occupy just the One obvious improvement to this circuit would be to
bottom half of the
perfboard (the top half has FIGURE 3
the original timer circuit
which controlled how long
the motor ran for). The
circuit isn’t too sensitive to
parts placement, so just lay
everything out wherever you
have the most room.
The only special thing to
note is that the circuit in
Figure 2 has both a +5 and
+Vcc indicator. This is
because we found that in
testing the car, sometimes
the noise of the motor
SERVO 08.2008 47
Toebes.qxd 7/8/2008 10:51 AM Page 48

provide a way to control the speed. If you only want a


couple speeds, R1 could be selected with a relay or a
transistor controlling which values are used for the circuit.
With an adjusted PWM circuit, you can then have the
fun of building a vehicle with other Vex parts and watch it
run. Of course, you will need to have a way of starting and
stopping the car, but that’s a project for another day. SV

STEER WINNING ROBOTS


WITHOUT SERVOS!

FIGURE 4
erform proportional speed, direction, and steering with
P only two Radio/Control channels for vehicles using two
separate brush-type electric motors mounted right and left Parts List
with our mixing RDFR dual speed control. Used in many
• (1) Vex Robotics Motor Vex Robotics P/N 276-2163
successful competitive robots. Single joystick operation: up
• (1) LM555 Timer IC RadioShack P/N 276-1723
goes straight ahead, down is reverse. Pure right or left twirls
• (2) 4.7KW 1/4 Watt Resistor RadioShack P/N 271-1330
vehicle as motors turn opposite directions. In between stick
• (1) 10KW 1/4 Watt Resistor RadioShack P/N 271-1335
positions completely proportional. Plugs in like a servo to
• (1) 1KW 1/4 Watt Resistor RadioShack P/N 271-1321
your Futaba, JR, Hitec, or similar radio. Compatible with gyro
• (1) 1KW 15-turn Potentiometer RadioShack P/N 271-342
steering stabilization. Various volt and amp sizes available.
• (1) 1 µF Electrolytic Capacitor RadioShack P/N 272-1434
The RDFR47E 55V 75A per motor unit pictured above.
• (1) 0.01 µF Ceramic Capacitor RadioShack P/N 272-131
www.vantec.com
• (1) IN4001 Diode RadioShack P/N 276-1101
Order at • (1) Battery Holder for four D-Cell Batteries RadioShack
P/N 270-396
(888) 929-5055 • (4) D-Cell Batteries

48 SERVO 08.2008
Bardis.qxd 7/9/2008 12:52 PM Page 49

Look Ma, No Driver!


A Look at the Long Beach Grand Prix
by Jason Bardis

“Robot drivers are


A pril 20, 2008 may be known as
the turning point when robots
became better drivers than humans ...
right up there alongside green too.
Well, it’s almost right up there along-
side green — it still has the cautious
better than
or at least Lockheed Martin Advanced qualifier “possibly even” preceding it. human drivers.”
Technology Labs engineer Adam But what was this event really all
Solomon, when he took the wheel of about? Three robotic cars took to the “Which human?”
an unnamed robotic Toyota Prius after track that day, all veterans of the DARPA
its autonomous run and attempted to Urban Challenge (not just any old “Uh, that would be me.”
guide it back into the pits at the 34th
Annual Long Beach Grand Prix.
competitors — race fans were treated
to the 1st, 2nd, and 4th place finishers “What happened?”
Maybe the professional drivers at
the race would have fared better than
out of the 89 teams that entered and
11 teams that actually qualified). They
“We finished an
Adam. Then again, I’d bet dollars to
diodes that none of the professional
showed off by doing a hot lap of the
Long Beach Grand Prix race track.
autonomous run and
drivers had built any robot cars either, Well, maybe it was more of a warm we switched out of
so let’s call it even. lap ... okay, how about tepid?
Robots? Engineers? Car race? Compared to the deafening blurs autonomous into
What? According to the event’s Fan of Champ Cars averaging 93 mph, the
Guide brochure, “... we’re also going 30 mph max speed robotic cars manual drive, and ...
‘Green, Green, Green!’ in 2008! The seemed rather tame and pokey at
Toyota Grand Prix will take a giant best, at least to the average race fan. uh ... kinda kept going.
leap into the future with an expanded At worst, the average race fan just
Lifestyle and Alternative Energy Expo didn’t get it: “Those cars must be What we did was we
in the Convention Center and a
dynamic new ‘Green Power Prix-View,’
driven by the people following in the
chase cars.” “No, the chase cars are warmed up the rail on
showcasing hybrid, electric, and
possibly even robotic cars on and off
there just to shut them off in an
emergency — those cars are really
the straightaway for the
the track, as well as energy-saving
devices for the home and lifestyle.”
driving all by themselves.” “Yeah, I
know, but, still, there’s gotta be
rest of the drivers. So,
“Green” is certainly a key buzz- somebody driving it!” “Uhhh ... ?” we know it’s good. We
word these days, around the world, in This year’s Long Beach Grand Prix
all industries, and now “robotic” is included this resoundingly successful tested it — it’s solid.”
SERVO 08.2008 49
Bardis.qxd 7/9/2008 12:56 PM Page 50

demo that robotic cars have no trouble running a race track. relatively warmish lap at that!). Sadly, the I-look-far-cooler-
Most SERVO readers know of the DARPA Grand Challenge than-anything-that-Batman-has-ever-driven Mazda speed
and Urban Challenge, and are happy to see another alternative energy rotary engine car never got out of the
successful autonomous course completion. However, most pits. These cars were followed by a big Chevy SUV and a
typical race fans got their first taste of robot cars and, VW wagon navigating the course smoothly, confidently,
hopefully, their appetites have been whetted. The fans saw and precisely. They also saw a little Toyota Prius navigate
drivers pilot two green electric race cars and a green (well, the course with some timidity, trepidation, and
it was bright yellow ...) solar-powered car run a lap (a nervousness. But which one won the race?

50 SERVO 08.2008
Bardis.qxd 7/9/2008 12:59 PM Page 51

Read on as I introduce you to the players: ready to see a car just driving itself down the road.”
How many more DARPA “Blank” Challenges (where you
BOSS can fill in “Blank” with some sort of extreme-sounding
adjective) are in store for Boss? Carnegie Melon is pursuing
Named After: Charles “Boss” Kettering, founder of General many related projects, but “We don’t expect to see any
Motors R&D (Nothing to do with Bruce Springsteen.) more of this type of challenge out of DARPA. But, what it
Former Life: 2007 Chevy Tahoe has done is excited the community, generated an interest in
Pedigree: 1st place in 2007 DARPA Urban Challenge vehicle safety, autonomous driving, and all the benefits that
Team: Tartan Racing @ Carnegie Melon University, with can come from this technology bringing it to society.” One
General Motors, Caterpillar, Intel, and Continental example is the “panheads” mounted on the sides of the
Build Time: 14 months between receipt of the vehicle and roof, which look downward and left/right. At an intersection,
the DARPA Urban Challenge these sensors are used to monitor side traffic and obstacles
Cost: “Well, the prize for winning the challenge was $2 and help Boss decide when it would be safe to pull forward
million. We were very happy to receive that.” “Aaaaand, into an intersection. I am so looking forward to these
that went somewhat towards recouping your costs of — ” sensors being commonplace automobile options, stuck up
“WE WERE VERY HAPPY TO RECEIVE THAT!” there on the roof next to the satellite radio antennas!
Turn-Ons: More is better! As a mechanical engineer, I deal in the tangible; having
Turn-Offs: Subtlety trouble grasping the movement of electrons in circuits or

What has room for four programmers, a table with


cupholders and power outlets and Ethernet jacks, and 10
bays of Intel dual-core processors? Oh, and it goes 30 mph,
so the answer is not “the server room down at corporate.”
It’s Boss. Aptly named, as it won the 2007 DARPA Urban
Challenge ... by a 20 minute margin. Note that a two-second
lead in a normal car race is a healthy margin! A 6,000 lb
Chevy SUV with such impressive performance could be
misconstrued as a bully, but it ran the Long Beach Grand
Prix track almost as smoothly as the human drivers. I spoke
with test lead Bot Bittner about the past and future of Boss.
Because they tried so many tests to compare different
subsystems and components, they didn’t have time to integrate
the large racks of components seamlessly into the vehicle.
Boss’ future lies in using its successful technology not to make
fleets of robotic cars but to integrate various subsystems
into consumer and military vehicles: “What you’ll see is a lot
of the subsets of the technology pulled out and introduced
into the vehicles that we’re driving every day. You’ll end up
with a lot of early warning for accidents ... be able to tell us
about lane departure, accident avoidance, obstacle avoidance,
defensive driving ... Right now, I don’t think people are

SERVO 08.2008 51
Bardis.qxd 7/9/2008 1:02 PM Page 52

• Junk in the Trunk: Racks with 10 Intel dual-core processors,


data-logging equipment, a Planix that processes the GPS data
and also takes inertial motion and encoder data to determine
location when GPS signals are not available, the remote kill
device (contrary to the saw blade deployment components on
a BattleBot, this box is used simply to pause and unpause
Boss), and a whole lot of cable ties to keep it all tidy.

I asked Bob if they’ve ever gone on joyrides faster than


the 30 mph speed limit imposed by the DARPA Urban
Challenge rules. I got the boiler plate “I can neither confirm
nor deny ...” routine, but he did point out that they’ve set
up the hardware and software to work and react at 30 mph.
So, we’ve probably got a few years until these smart guys
can get their robot cars up to typical Champ Car speeds.
To make its driving look effortless and professional,
Boss uses prior knowledge of the course combined with
on-the-fly decision-making. The course can be outlined from
satellite images or by driving the course prior to the event
and recording waypoint locations. Of course, the more prior
information known, the more successful the course naviga-
tion will be. Don’t roll your eyes — the same applies to us
fleshy and indecisive humans too! For the DARPA Urban
Challenge, they were provided with a sparse set of way-
points, so Boss proved that it was versatile and robust by
still navigating DARPA’s course (and the Long Beach Grand
Prix race course) excellently, although they still deferred to
a human driver to drive Boss to and from the track. Boss
probably would not have dealt well with the dozens of
people crowding around him, as well as the strange obstacles
(tents, strollers, golf karts, swing-out race track entry/exit
barriers, etc.) creating mayhem in and around the pits.

“WE’RE WORKING ON THAT”


(No, that’s not its real name — it truly does
appreciating the elegance of a really efficient gosub routine not have a name — call Marketing, quick!)
(heck, they probably don’t even have gosubs in modern
programming languages, do they?). So, I asked Bob what Former Life: 2006 Toyota Prius
all the cool sensors on Boss’ roof and bumpers were: Named After: See above
Pedigree: Riding on the coattails of its twin “Little Ben”
• Roof: Three GPS antennas to determine not only location (fraternal twin, not identical twin, as Little Ben’s brother
but also orientation of Boss; Velodyne HDL-64E 64-laser has only two-elevenths as many sensors as Little Ben), who
LIDAR rotating at 10 Hz. placed 6th in the 2007 DARPA Urban Challenge, unless you
ask somebody on Little Ben’s team, who points out that
• Roof Sides: Panheads for monitoring side traffic and obstacles. Little Ben placed 4th out of the teams that finished within
the rules. “What rules were broken?” “They collided with
• Roof and Inside: Big red panic buttons to shut down and other vehicles. One in particular had it out for us, it seemed
stop the car. — they tried to hit us twice.”
Team: Ben Franklin Racing Team: University of Pennsylvania,
• Back Bumper Sides: Two close-range radars. with Lehigh University and Lockheed Martin
Build Time: 18 months between initial concept and DARPA
• Back Bumper Center: Planar LIDAR and long-range radar. Urban Challenge
Cost: $250,000 of parts, and “a lot of free student labor”
• Front Bumper: More radar and LIDAR short- and long- Turn-Ons: KISS (the acronym, not the band with their
range sensors. own army)
52 SERVO 08.2008
Bardis.qxd 7/9/2008 1:05 PM Page 53

Turn-Offs: Human drivers casting the area immediately around the car into “shadow.”
How is this possible? Software, software, software.
Adam Solomon, Lockheed Martin engineer and race They refined their software over and over, making it more
track barrier strength-tester, gave me the scoop on their Prius. efficient, more robust, and more powerful, until they had
The first thing that jumps out and slapped me in the this impressive driving capability-per-sensor ratio (Don’t ask
face is the fact that this car looks so normal! I couldn’t help me what the units are on that value ...). Did I also mention
myself: “This car looks kinda boring. But that’s a backhanded that the star of their robot — the software — runs on a plain
compliment! Honest!” Just as Toyota set to achieve (and old consumer MacBook Pro laptop? Their biggest problem
did so) utter normality with the Prius to not freak out with their whole system was not any of their components
potential customers who fear change and abnormality in or code but the laptop’s rechargeable battery, which
their daily drivers, so did the Ben Franklin team also achieve gradually lost its capacity over the months of testing from
remarkable normality with their robot car. its frequent charge and discharge cycles. They learned their
This was the backup car (“backup” not as in “it goes in lesson and now keep the laptop plugged in at all times.
reverse,” but “backup” as in “if we total Little Ben, we’ve Lockheed Martin is also continuing to use this Prius as an
got a spare!”) for Little Ben at the DARPA Urban Challenge. active research vehicle, constantly refining their software.
Little Ben ran so well that this vehicle wasn’t needed for Why? They have plans to transition their refined software to
that event. In its understudy role, as on Broadway, it wasn’t other vehicles, including boats and military tactical vehicles.
equipped as well as the top-billed star was in order to Could they end up developing a ubiquitous “operating
put on a standing ovation, throw-the-roses-on-the-stage system” for robot cars? Perhaps standardized tests of the
performance. This car had only two main sensors vs. Little future will include the following analogy: Microsoft is to
Ben’s 11. This bears repeating. According to Adam, with consumer PCs as Lockheed Martin is to robot cars.
only 18% of the hardware bolted to the outside of this car, Like Boss, Little Ben’s sensor-challenged brother starts
it could perform at 95% of the capacity of Little Ben. The with a map of the course and then uses those sensors to
5% shortcoming is in this robot car’s inability to perform determine exactly when to turn, how sharply to turn, and
sensing of extremely close objects — the Prius’ roof eclipses how to deal with obstacles that can’t be pre-programmed.
the field-of-view of the one centrally-mounted roof sensor, Adam’s analogy was your GPS unit in your car. It tells you

SERVO 08.2008 53
Bardis.qxd 7/9/2008 1:07 PM Page 54

roughly when to turn and gives you a semi-detailed set of imaginary cones on a straightaway. “Look! The Prius is heating
instructions, but it’s up to the driver to perform the fine- up its tires on its warmup lap!” the race announcer mused
tuned actions of stopping at a red light vs. going at a green over the PA. The 23 mpg mystery was solved! Although the
light vs. flooring it at a yellow light, braking when that Prius’ driving performance was the least impressive of the trio,
teenager on her cell phone cuts you off without using her the fact that it did so much with so little was astounding.
turn signal, staying in your lane, and keeping on the right Furthermore, it could blend in as well on a normal city
side of the island on that boulevard. street as the Google Maps street view camera car or a car
As far as the Prius knows (“knows,” depending on how belonging to a serious mountain biking addict.
many human traits you like to attribute to your car ...), it
has no idea that it was turned into a robot. That MacBook JUNIOR
operates the car’s controls (steering wheel, gas, and brake)
with a drive-by-wire system, rather than interfacing into the Former Life: 2006 VW Passat station wagon
Prius’ smart hybrid computer brain. Named After: Presumably the little brother of Stanford’s
Forget the high mileage boasted on the dealer sticker bigger VW Touareg — winner of the 2005 DARPA Grand
on the Prius. This vehicle averages 23 mpg in autonomous Challenge
mode. Probably not too different from the smooth-driving- Pedigree: 2nd place in 2007 DARPA Urban Challenge
yet-hefty Boss Chevy Tahoe. Turn-Ons: “Intel Inside” stickers on cars, not just PCs!
Adam gave me the run-down on the amusingly short Turn-Offs: Fahrvergnügen
list of significant sensors bolted to The Prius With No Name: Team: Stanford University

• Velodyne HDL-64E 64-laser LIDAR rotating at 10 Hz Unfortunately, SERVO didn’t get a chance to talk with
(Yes, I copied and pasted that from the Boss description — I anybody from the Stanford team. Based on the impressive
challenge you to find a successful robot car that does not operation of Junior, we’re certain that they’re all really
have one of these spinning domes bolted to its roof!). smart and stuff.
Even if SERVO Magazine doesn’t give me a free press
• GPS on the roof determines vehicle location. pass to the 2009 Long Beach Grand Prix, I am so going to
attend, crazy ticket prices be damned! It will be worth the
Also hidden in the car are accelerometers and odometry price of admission just to see what sort of evolutionary
data, used when a good GPS signal is hard to find. Long leaps these robotic cars have performed during their
Beach’s skyline, intertwined with the street race course, was intensive off-season training program.
conspiring against the robot cars, but they didn’t seem to What’s next for robotic race cars? Adam Solomon
mind very much. For the Grand Prix, the team also kicked grins: “This year was just a demo. I hear they’re hoping to
their system up a notch by refining it to cruise at speeds up make this a race!” SV
to 28 mph — up from their previous 15 mph top speed.
So, how did it work? The Prius was significantly slower Dr. Jason Bardis is a Mechanical Design Engineer for Alliance
than the other two robot cars, paused at a few turns, tapped Spacesystems in Pasadena, CA. In addition to having three giant
the brakes as much as a cautious octogenarian on a busy nuts from his three BattleBots championships, he designed many
parts on the Phoenix Mars Lander’s trench-digging arm, which is
street, and even added some slalom action around some currently “making its mark” on Mars.

54 SERVO 08.2008
Simpson1.qxd 7/8/2008 11:28 AM Page 55

by Michael Simpson

! WARNING!
Before you read any further, I feel it only fair to warn you that this
series is going to be akin to a very fast roller coaster ride.

O ver the years, I have built several robots of various


shapes and sizes. Most of them were controlled by a
microcontroller of one form or another. I have even built a
that I haven’t. I will show you various techniques and
options along the way, so even if you don’t build the
exact same robot, you should be able to use much of the
few that were tethered to a desktop computer. It’s time to information that I will provide. Let’s start by writing down a
build a robust robot with an on-board PC computer. This few requirements for the project.
will not be a toy.
In this series, I am going to build two robots around Payload
the RS-64 actuator: a six-wheeled robot utilizing six and a
three-wheeled robot utilizing only two of them. The first requirement is payload. It is important that
The code I use to control these motors will be isolated you look at this requirement early on in the design process.
into a set of subroutines so that you may utilize other types My robot will need to carry the following items:
of drivetrains. For instance, you could use a brushless motor
controller and motors as long as the routines to control the • Main Controller — 5 lbs
speed and direction of the motors are named the same. • Battery — 8 lbs
This will allow you to plug them into this system without • Robot Arm and Accessories — 3 lbs
modification. The same applies to most of the sensors that • Miscellaneous Extras — 1 lb
I am going to use. While I will be using Maxbotix sonar
sensors, you should be able to make your own substitutions As you can see, based on my estimates I will need a
as long as you work out the interface and return the robot that can carry 17 lbs in addition to the base, wheels,
distance to your objects in inches. and actuators. You may have noticed that I set the main
The reason I am going to build these two types of controller payload to 5 lbs. If you use a Pocket PC, then you
robots is simple. The cost of six RS-64 actuators is over will only need to allocate 0.5 lbs. For a WinCE device, about
$1,700. The cost for two is $570. The cost difference is the 1.5 lbs will be needed. What I am trying to say here is there
same if you are using some other motor/controller system. will be a large disparity in weights of various controllers.
The cool thing is that you should be able to build the three- Keep this in mind.
wheeled robot, then later upgrade to the six-wheeled bot.
Unlike other projects that I built well in advance before Size
publishing, this is going to be a work in progress. I will
provide you with step-by-step instructions, as well as a The type of controller you use will determine the size
source for all the components that I use, and even some of your robot. If you are going to use a 17” laptop, you will
SERVO 08.2008 55
Simpson1.qxd 7/8/2008 11:28 AM Page 56

probably need a much larger platform than you would for a Terrain Type
Pocket PC. If you create one large base, you can place all
your items at the same level. This give you easier access Think about what type of terrain you plan to operate
for modifications. In my case, I will size both robots to fit your robot on. In my case, I want to run the robot on
a small laptop, battery, robot arm, and various other indoor surfaces such as tile or carpet. I also want to operate
electronics and sensors I might need. Better too large than the robot on my driveway, which is half paved and half
too small. gravel. The wheel types, number of wheels, and ground
clearance will affect the type of terrain you can traverse.
Base Materials
Processing Power
Use a material that is readily available and that you
have the right tools and skills for. I plan on using 1/4” Since I am planning on using a PC, we should have
hardboard. It’s cheap and easy to work with using both plenty of processing power to do just about any task. Even
power and hand tools. You could use 1/4” acrylic, but it’s the WinCE and Pocket PC devices — while not as powerful
prone to cracking and a little harder to work with tools. I as the PC — will perform adequately. Each type PC, Pocket
like a little compliance in my robot and the 1/4” hardboard PC, and WinCE device will have its own advantages and
will be perfect. As an option, you could also use 1/4” disadvantages. For instance, the WinCE device runs
pegboard. Something to keep in mind is that you will considerably slower than the PC, but has both power
probably build a couple variations of your robot. Since this and weight advantages.
material is so cheap, the cost of going back to the drawing The PC with its USB 2.0 ports has the ability to
board will be low. Once perfected, you can always switch interface with all components using one or more
to a different material. USB2Dynamixel interfaces. While the WinCE device
does not have the ability to communicate with the
RunTime USB2Dynamixel, it does have an RS-485 interface that can
talk to the RS-64 actuators directly. For the Pocket PC, we
I want my robot to be able to run for at least two will have to create an RS-232 to RS-485 converter.
hours. The type of controller, motors, and batteries will Again, these are very high level requirements and like
determine this. I plan on using a 14-18V battery pack rated any project, are subject to change. For any robot project of
at 12,000-14,000 mAh. This should give me plenty of this nature, it is important that you do some research on
runtime. This power source should allow you to power a your own. Here are a few factors that will affect the exact
pocket PC or WinCE device, but at first glance it may seem details of your project:
a little challenging to power a laptop. However, we won’t
be using the screen on the laptop so you should get three • Availability of Components
to six hours with that turned off. • Availability of Tools
• Availability of Funds
FIGURE 1 • Availability of Skills

Let’s take a look at each of these in more detail.

Availability of Components
While I will provide you with a source of components
that I use on this project, you may or may not decide to use

FIGURE 2

56 SERVO 08.2008
Simpson1.qxd 7/8/2008 11:29 AM Page 57

them. If you decide to use different components, you will machine like the HP shown in Figure 1. The second type is a
only be able to use my instructions as a basic guide. This Windows CE device like the CUWIN3500 shown in Figure 2.
could be as simple as using a different material for the It has a built-in touch screen that would allow us to provide
robot base, which will probably only have minimal impact some sort of human interface to our robot.
on the project. You could also decide to use a different The third type is a Windows Pocket PC like the one
programming language for the controller or even a shown in Figure 3. I will be using an HP Pocket PC 2003
different type of controller. In this case, none of the device running at 600 MHz.
programs that I provide will work on your robot. I plan on using Zeus for the programming language for
this project. With Zeus, you can create a program that will
Availability of Tools run on the Windows PC, Windows CE, and Windows Pocket
PC platforms with little or no changes to the code. Zeus is a
If you are already into building custom robots, then you very simple Basic programming language with some
most likely have some or most of the tools needed for a advanced features like built-in GPS processing.
project such as this. Later in this article, I will go over some In addition to the main controller, we need to access
of the tools that will be needed. So, what if you don’t have our various sensors and motors through some sort of
the tools needed for a particular phase of the project? Does interface. For the XP based controller, we can use the
that mean you can’t build it? Absolutely not! You can USB device (the USB2Dynamixel) shown, in Figure 4. It’s
always ask a friend to help you out, or in some cases — manufactured by Robotis and sold by Crustcrawler.
such as building the main robot base — you may be able to
get your local home center or hardware store to assist you. Features of the USB2Dynamixel
• RS-485 Interface Support
Availability of Funds • AX-12 TTL Serial Interface Support
• RS-232 Interface Support
If you decide to build the robots I present in this series • Shows up as a standard PC com port
it will cost you $1,000 to $4,000 depending on the base, • Compatible with Windows 2000, XP and Vista
computer, and extras you plan on adding to your robot. If • Several USB2Dynamixel interfaces can be used at once
you have an old laptop or Pocket PC, you could probably • Can be used as a limited USB to serial interface (does not
get started for under $500. support control leads)
• Built-in library for ZeusPro compiler
Availability of Skills
If you wish to create your own library using .Net, the
If you build the exact robot I present here and use the folks at Crustcrawler have developed a .Net Visual Studio
code that I provide, you won’t need much more than basic Project that will give you a good start. You can download
mechanical skills. If, however, you plan on writing your own this from their website.
programs or using a different controller, you will need some To make life easier, I have added a new library to the
programming skills. You will also need to be able to use a KRMicros ZeusPro compiler. It is called USB2AX, and I will
soldering iron. Contrary to popular belief, you don’t need be using it extensively throughout this series.
to be a rocket scientist or an electronic engineer to build Since our ultimate robot will be using both RX-64
a cool bot. and AX-12s, you will need two USB2Dynamixels attached
to your computer. There is a small switch on the
Project Overview USB2Dynamixel interface shown in Figure 5. This switch is
used to configure the interface for the type of bus that
It’s time to give an overview of the project. At this you will be using. For all your AX-12s, you will set the
point, I won’t go into any of the actual technical or interface to TTL. For your RX-64 and RX-28, set the switch
construction details. Think of it as an
introduction to the types of FIGURE 4
components, tools, and techniques
I will be going over in more detail
as the series continues.

Brain
As I mentioned previously,
there are three types of computer
controllers that I intend on using on
FIGURE 3

my robot. The first is a laptop


running Windows Vista or XP. I
recommend at least a 900 MHz
SERVO 08.2008 57
Simpson1.qxd 7/8/2008 11:29 AM Page 58

to RS-485. Each bus has its own special connector shown in


FIGURE 5
Figure 6. The larger four-pin connector is used for the RX-64
and RX-28 actuators. The smaller three-pin connector is
used for the AX-12 and AX-S1 actuators and sensors.
Unfortunately, the USB2Dynamixel will not work on
Windows CE or Windows Pocket PC devices so we will have
to use a different interface. What this means is that the
Windows PC platform will be a little simpler to implement
as the hardware interfacing to the various devices has been
done for us. If you plan on using a Pocket PC or Windows
CE device and have access to a laptop, I recommend
building your robot with this controller first.

Base Configuration
I was playing with the Dynamixel RX-64 actuator when
FIGURE 6 the idea for this project came to mind. The RX-64 shown in
Figure 7 delivers a whopping 888 inch-ounces of torque. It
utilizes a RS-485 control system that allows you to daisy
chain and control up to 254 units. This actuator can run in
servo mode or in continuous operation, and can report
position, temperature, load, and input voltage. This will not
only allow us to detect collisions but the level of our
batteries, as well.
The RX-64 has a full metal gear set and utilizes an axis
bearing that will insure no efficiency degradation with high
external loads. It also features an aluminum servo arm. Its
FIGURE 7 ability to operate in full rotation mode makes it perfect for
our drive train. It’s my plan to connect a 5.5” wheel to each
of six RX-64s in order to provide the best load distribution
for our base.
The RX-64 has a little brother called the RX-28 shown
in Figure 8. The RX-28 has a much smaller footprint than its
bigger brother. It does, however, utilize the RS-485 interface
and the same protocol so both the RX-64 and RX-28 can be
placed on the same bus. The features on these little gems
do come at a price. The RX-64 will run you $285 per
actuator. The RX-28 is a little cheaper at $200 each.
For the wheels, I plan on using the Du-Bro 550TV
FIGURE 8 wheel shown in Figure 9. These wheels are 5.5 inches in
diameter and have pneumatic
FIGURE 9 FIGURE 10 tires. By adding or removing air
from the tire, you can set the
amount of traction or firmness
desired. Later in this series,
I will show you step-by-step
how to attach this wheel to
the RX-64.
I will show you how to
build a six-wheeled robot by
attaching six of these wheels
to six actuators. For the
three-wheeled robot, we will
attach two wheels to two
actuators. This is a $1,140
difference in price, so it can
affect your ability to fund
this project.
58 SERVO 08.2008
Simpson1.qxd 7/8/2008 11:30 AM Page 59

Robot Arm
I want to add a small
manipulator. The manipulator I
have in mind is the Crustcrawler
AX-12 Smart Arm shown in
Figure 10. The Smart Arm
utilizes seven AX-12 Dynamixel
actuators. For more details,
check them out at www.crust
crawler.com/products/smart
arm/index.php?prod=12.
It is my plan to place some
sensors on the arm, as well as a
Pocket PC like the one shown
back in Figure 3. Even if I use
another controller, I think a face
mounted on a Pocket PC FIGURE 11 FIGURE 12
controlled by the arm would be
very cool and invite a great amount of attention at the next
Robot Fest I attend.

Tools
Before I close out this introduction, I think it’s
important that you understand what kind of tools you may
need for this project. First, you will need both Philips and
flat head screwdrivers. I recommend various sizes. Many of FIGURE 13
the machine screws I will use will be #10 and smaller, so
size your screwdrivers accordingly. A set of small wrenches small holes, but they excel at sanding and cutting. Many
will also come in handy. In lieu of these, a small crescent rotary tools come with a complete bit set. There are
wrench will suffice. many additional accessories available like cutoff wheels and
There is no way of getting away from it... you have to various grinding bits. Again, this is not 100% required but
have a drill for this project. As a minimum, I recommend an can make some tasks easier.
electric drill like the one shown in Figure 11. Look for a drill For the electronics, you are going to need a pair of
with both variable speed and reverse. If you get one with a needle-nose pliers and wire cutters. In addition, you will
clutch, you can use it to drive and remove screws. A drill need a soldering iron like the one shown in Figure 14.
with a high/low gear option will give you more speed and When purchasing a soldering iron, make sure you get one
power options. There are times when a drill press like the
one shown in Figure 12 will come in handy. They give you FIGURE 14
more control over the drilling process and allow you to use
various accessories like sanding drums. A drill press is not a
requirement but may come in handy. Check out your local
classifieds. You may be able to get a bench top model for
$15-$25. In addition to the drill, you will also need a set of
bits. You can purchase these one at a time or in sets.
In addition to the drill, I also recommend a rotary tool
like the one shown in Figure 13. You can use this for drilling

FIGURE 15

SERVO 08.2008 59
Simpson1.qxd 7/8/2008 11:31 AM Page 60

FIGURE 17

FIGURE 16

with disposable tips. Two power settings will also come


in handy. If the iron you purchase does not come with a
stand, you will need to get one. (I own a higher powered
soldering gun but find that I never use it.) FIGURE 18
While you won’t need a 25’ measuring tape, I do
recommend a steel rule and set of calipers like the ones in issue of SERVO Magazine.
Figure 15. I prefer the digital calipers with both inch and Once we start adding microcontrollers and sensors to
mm readings. our robot, an oscilloscope will become invaluable to help us
This project will require you to cut various small pieces set up and test our components. The Hitachi oscilloscope
of plastic or wood. The best tool for this job is the scroll shown in Figure 17 is a 100 MHz, four-channel scope that
saw like the one in Figure 16. For instance, we will need I have used for years and it has served me well. Some
to create a special wheel mount that is used for attaching PC-based oscilloscopes have recently become available and
the wheel to the RS-64. This is a 2-1/4” disk and is easy to connect through your USB port. This helps keep the
cut with a scroll saw. You can also use a small band saw. price down and adds a few nice features. For instance,
As a last resort, you could rough it out with a rotary tool, the Bitscope device shown in Figure 18 is not only a
then sand it to the exact size with a sanding drum bit. two-channel oscilloscope, it is also an eight-channel logic
You don’t have to spend a lot of money on a scroll analyzer. It can be used as a data recorder and is perfect if
saw. I have seen them on sale at Sears for as little as you need to make hard copies of your captured signals like
$49. If you are going to do a lot of robot building, I the one shown in Figure 19.
recommend including one in your arsenal of tools. I did
a complete review of scroll saws back in the February ‘05 Batteries
Probably the heaviest piece of cargo
will be the battery. This will be used to
power the wheel actuators, Smart Arm,
and various electronics. Originally, I was
thinking of a 12V sealed lead-acid battery,
but didn’t think this would be enough to
drive the RS-64s for any length of time.

FIGURE 19 FIGURE 20

60 SERVO 08.2008
Simpson1.qxd 7/8/2008 11:31 AM Page 61

SOURCES

Crustcrawler KRMicros
AX-12 Smart Arm — www.crustcrawler.com/products/ ZeusPro — www.krmicros.com/Development/
smartarm/index.php?prod=12 ZeusPro/ZeusPro.htm

RS-64 — ZeusLite —
www.crustcrawler.com/motors/RX64/index.php?prod=67 www.krmicros.com/Development/ZeusLite/ZeusLite.htm
USB2Dynamixel — www.crustcrawler.com/electronics/
BitScope
USB2Dynamixel/index.php?prod=65
BitScope Model 100 — www.bitscope.com/product/BS100/
USB2Dynamixel .net API — www.crustcrawler.com/
electronics/USB2Dynamixel/software/Usb2Dynamixel.zip Comfile Technology
CUWIN3500 — www.cubloc.com/product/05_01.php
AtBatt.com
P133 External Laptop Battery — Maxbotix
www.atbatt.com/product/7901.asp Sonar sensors — www.maxbotix.com

After much research, I decided on the use of an What’s Next


external laptop battery. These seem to have the best
weight-to-capacity ratio. The battery shown in Figure 20 In Part 2, we will start the base construction by build-
will provide 19V at almost 5 amps (around 133 Wh). ing the wheel assemblies for both the six-wheeled and
They are available from AtBatt.com and come with their three-wheeled robots. Well, that’s if for this month. Be sure
own charger and several tips to connect to various to check out the Kronos Robotics website periodically for
devices. I will be going into more detail on this as the any updates to this project at www.kronosrobotics.com/
series progresses. Projects/megabot.shtml. SV

Microsoft

Visual Studio
Dyynamixxel SDK C/C++
Visual Basic
C#

EX-106
NEW

164
Encoder

EX-106 14.8
84 106
0.182 0.143
155

SERVO 08.2008 61
RoboResources.qxd 7/8/2008 11:00 AM Page 62

Tune in each month for a heads-up on


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

Robotics Via
Remote Control
T he typical amateur robot is
completely autonomous; its own
circuitry controls what it does and
to provide general commands for
basic operations, such as Run or Stop.
General commands may also be used
transmitter for wireless data between
you and your robot, consider the
following:
where it goes. That circuitry can be as to select and activate programs already
simple as moving toward a light in the resident in the robot’s computer. • Power output determines range.
room, or as complex as carefully Depending on your country’s laws,
mapping and navigating the room 2) To receive data from the robot; higher power outputs may require
using vision and other sensors. usually either a video signal or some certification of the device, or even
Yet, there is also plenty of call for form of telemetry. licensing. In the US, most wireless
the remotely controlled robot. Such data modems operate at a power
“telerobotics” are commonly used for Radio links are common for output that does not require licensing.
police and military functions, and the vast discrete function control in combat
majority of combat robots are, in fact, robotics. The operator of the robot • Range contributes to maximum
controlled directly by human operators. uses a radio control (R/C) transmitter data rate. Data rates can be fastest
The remote control link is typically via of a type similar to those for model over shorter distances, because the
radio frequency, but other means of airplanes and cars (most such trans- received signal is clearer. Over longer
communications are used as well, such mitters are outfitted with a frequency distances, the data rate must be
as infrared pulses and even hard-wiring. crystal for land use, rather than airplane decreased in order to reduce or
We’ll look at several popular use). The operator controls joysticks eliminate errors.
remote control techniques in this and/or switches in order to steer or
installment of “Robotics Resources.” otherwise maneuver the robot. • The right antenna can greatly
Typical transmitters for model R/C increase range. Radio frequency
Robot Radio Control applications have four to six channels, signals radiating from a properly
with each channel operated by the twin designed and mounted antenna will
Radio control uses the airwaves to joysticks, a switch, or other knob on the travel further than signals from a
send and receive a signal. Though transmitter. At a minimum, three chan- transmitter without an antenna. Be
among the most expensive remote nels are used: one each for the right and sure to use an antenna properly
control technologies to use, radio control left motors; and one for the weapon. matched for the transmitter you are
is perhaps the most flexible in terms In some cases, it’s necessary to using — sometimes, it’s just a simple
of range and the number of channels receive signals from a robot. Video is wire, but consult the documentation
that can be operated in one signal. a typical application for receiving a on how to position or wrap the wire.
With the use of digital radio signals, for radio signal from a robot. Video
example, it’s possible to communicate transmitters and receivers that operate • Use a compatible antenna on the
a nearly unlimited set of instructions in the 2.4 GHz microwave range (such receiver. The same rules apply to the
between you and your robot. as Bluetooth) are common and fairly receiver as to the transmitter. Be sure
Radio communications can be used inexpensive. Range is limited to under to consider the orientation of the
in robotics for two primary purposes: 200 feet outdoors, or from 20 to 50 antennas on the receiver and the
feet when used indoors. transmitter — if the units have stick
1) To command the robot, either com- antennas, avoid having one point up
pletely for all its discrete functions, or When selecting a receiver and while the other points sideways.
62 SERVO 08.2008
RoboResources.qxd 7/8/2008 11:00 AM Page 63

Bluetooth, ZigBee, and based on whether you need such microcontrollers used in robotics.
features as longer range, true duplex The major components of the robot
Other RF Modules (two-way) communication, ultra-small infrared remote control system are:
size, and so on. Check the Sources
R/C transmitters and receivers are listing for several companies that spe- • Infrared remote. Most any modern
“channel” based; that is, on one fre- cialize in RF digital data transmission. infrared remote control will work, but
quency the transmitter controls a certain ... remote controls vary considerably in
number of channels, with each channel Alternatives to RF the signal patterns they use. You’ll find
dedicated to a specific function. In the it most convenient to use a “universal
typical model airplane R/C transmitter, Purchasing an RF transmitter and remote control” (under $10 at a
for example, a joystick controls the up receiver module is one way to provide department store). Specifically, you want
and down action of a servo connected a communications link between you and the universal remote to support Sharp
to the plane’s ailerons. Another your robot. In addition, several ready- TVs and VCRs, of which 99.99% do.
joystick controls the servo connected made products can be hacked for their
to the plane’s rudder, and so on. RF systems and pressed into use as • Infrared receiver module. The
Data modems provide for radio links between you and your bot. receiver module contains an infrared
completely digital communication. If light detector, along with various
you have a laptop PC with a wireless • Walkie talkie. Many toy walkie electronics to clean up, amplify, and
internet connection or a Bluetooth talkies include a “code sender” button demodulate the signal from the remote
headset for your cell phone, you’re for transmitting Morse code. By control. The remote sends a pattern of
already familiar with modern data connecting the receiving to an AC on/off flashes of light; these flashes are
modems. Common types of data coupled interface and 567 tone modulated at about 38-40 kHz, in
modems used in amateur robots decoder, you can add simple on/off order to reduce interference from other
include Bluetooth and ZigBee (the lat- control of your robot. light sources. The receiver strips out the
ter sometimes referred to as 802.15.4, modulation and provides just the
after the international protocol that • Garage door opener. Try to find a on/off flashing patterns.
defines its standard). Both require a used one that’s being discarded; the
set of transceivers for sending and electronics — the part you want — last • Computer or microcontroller. You
receiving data along a two-way link. longer than the mechanics. Hack the need some hardware to decode the
Depending on the specific device, receiver to work as an on/off control light patterns, and a computer or
effective communication range is for your robot. microcontroller, running appropriate
hundreds of feet in free air; somewhat software makes the job straightforward.
less indoors where walls, doors, and • “Keyring” (or keyfob) appliance
ceilings may obstruct the signal. control. You can purchase a radio In operation, you press a button
Bluetooth and ZigBee modules can controlled powered outlet at many on the infrared remote which sends a
be duplex or two-way — as opposed department and home improvement coded light signal to the receiver
to R/C transmitters and receivers, stores. Hack the module to work with module. The receiver demodulates the
which are only one way. Another plus your robot. The transmitter is a signal and extracts the code sent by
in their favor is that they are based on keyring, with one or two buttons the remote control. The code is a
industry accepted standards and (some control several modules). sequence of binary 0s and 1s, in the
documentation on their use is widely same way a number or letter is repre-
available from Internet sources and • Wireless car alarm kit. Two- and sented in a personal computer. Your
manufacturers of the products. three-function wireless car alarm kits microcontroller interprets the binary
There are a number of Bluetooth can be retrofitted for controlling a sequences as a specific button that
and ZigBee modules directly suitable robot. You can find them at auto was pressed on the remote control.
for robotics use, such as the Parallax parts stores and weekend swap meets.
EmbeddedBlue Transceiver. All they Wired Remote
require is a power source and the Infrared Remote Control
data is provided via a parallel, serial, Control
or USB interface. Not all RF data Perhaps the simplest form of
modules use Bluetooth or ZigBee A radio link isn’t the only way to remote control is the wired controller,
technology. There are a number of RF wirelessly control a robot. Another such as an Atari, PC, or Playstation
modules that use other technologies, technology for one- and two-way links joystick. These connect to your robot
some standard like 802.1 (Wi-Fi) and is infrared control. This system has the via a set of wires. How you interface
some proprietary. You can choose the benefit of low-cost hardware, and it’s the controller to your robot depends
module best for your application relatively easy to interface to most on the type of control.
SERVO 08.2008 63
RoboResources.qxd 7/8/2008 11:01 AM Page 64

microcontroller and then read the pin


as you would any switch closure.

• PC joysticks use potentiometers to


proportionally measure the position of
the joystick. There are a variety of ways
of interfacing these to a microcontroller,
including via an analog-to-digital input
pin (if the controller is so equipped),
through a resistor and capacitor (a
simple form of go/no-go analog meas-
urement), or a 555 timer where the
position of the potentiometer changes
the pulse width and/or duration of
the timer output. All three of these
techniques are fairly well documented
on a number of websites; use Google
or Yahoo to search for “IBM PC joy-
stick interface” (without the quotes).

• Playstation remotes use a controller


for the Sony Playstation 2. You may use
wired or wireless controllers. The
Abacom Technologies offers transmitters, antennas, and everything controller outputs a complex digital
in-between for radio communications. datastream that needs to be decoded
using a microcontroller. Lynxmotion sells
• An Atari style joystick is a simple switch closes. Push it to the left and a low-cost adapter cable for the PS2
switch contact controller. These are the Left switch closes. You connect remote, so you don’t have to cut off the
among the easiest to interface to your the wires for each switch to a connector and solder the wires directly.
robot. Push the joystick up and the Up separate input pin on your robot’s They also provide a programming tuto-
rial on interfacing the PS2 remote with
Lemos International specializes in Bluetooth, ZigBee, and RF data modems, the popular Basic Atom microcontroller.
with numerous products in each category.
Sources
In addition to the sources listed
below, check out online and local hobby
store retailers that specialize in radio
control model airplanes and cars, where
you can find numerous transmitter/
receiver packages for operating R/C
servo motors via radio remote control.

Abacom Technologies
www.abacomdirect.com
Full resource of wireless
communications technologies,
including data modules (receivers,
transmitters, transceivers), antennas,
RF remote control, and more.

Bluetooth.com
www.bluetooth.com
Official Bluetooth technology
resource page. Includes several
technical papers for downloading.
64 SERVO 08.2008
RoboResources.qxd 7/8/2008 11:02 AM Page 65

Digi-Key
www.digikey.com
General electronics online distributor
with selection of RF communications
modules (ZigBee, Bluetooth, etc.).

Innotech Systems, Inc.


www.innotechsystems.com
Innotech Systems provides
infrared and RF remote controls and
remote control systems. Some parts
have a minimum order.

Jameco
www.jameco.com
General electronics online distribu-
tor. Offers selection of Bluetooth and
other RF communications modules.

Lemos International
www.lemosint.com
Wide assortment of Bluetooth
and other RF data communications
products, including a compact Linx Technologies provides everything from chip-level
USB-based Bluetooth module. RF components to complete evaluation kits.

Linx Technologies Products to control your PC via a SparkFun Electronics


www.linxtechnologies.com handheld remote control. Interface www.sparkfun.com
“Wireless made simple” circuit examples and downloadable SparkFun Electronics carries
technologies, including keyring communications software. a fairly extensive selection of
transmitters and specialty RF modules.
Among the hobby and experimenter’s boards from SparkFun
Lynxmotion is a wide selection of Bluetooth and ZigBee modules.
www.lynxmotion.com
Offers a Playstation 2 controller
interface connector, plus programming
tutorials for Basic Atom microcontroller.

Mouser Electronics
www.mouser.com
General electronics online distributor
with selection of RF communications
modules (ZigBee, Bluetooth, etc.).

Parallax
www.parallax.com
Offers educational resource kits
for exploiting RF communications
technology (e.g., Bluetooth), primarily in
conjunction with the Parallax micro-
controller product line, such as the BASIC
Stamp. Also sells a starter kit for experi-
menting with infrared remote control.

PC Remote Control (info page)


www.pcremotecontrol.com
SERVO 08.2008 65
RoboResources.qxd 7/9/2008 2:42 PM Page 66

Bluetooth and ZigBee modules and Check out Xilor, Inc. for wireless resource page for the ZigBee product
development boards, with a variety remote controls (both RF and standard. SV
of interfaces, including RS-232 serial infrared).
and USB. CONTACT THE AUTHOR
ZigBee Alliance
Xilor, Inc. www.zigbee.org Gordon McComb can be reached via
www.rfmicrolink.com ZigBee Alliance is the official email at robots@robotoid.com

CONTROLLERS & ROBOT KITS – SENSORS – DISPLAYS

Easy to Connect
!
ST
CO Free
LO
W Expert W
LO Technical CO
Support ST
LOW COST !

www.c-stamp.com
1 (800) 985-AWIT Professional SW Dev. Tools

For the finest in robots,


parts, and services, go to
www.servomagazine.com
and click on Robo-Links.

Electronic Parts & Supplies


Since 1967

66 SERVO 08.2008
BasicBoardRobotics.qxd 7/8/2008 10:38 AM Page 67

Moving From BS1 to PIC


by William Smith

A high school teacher recently sent me an email asking for advice on the best
path to move from the BASIC Stamp 1 (BS1) module to Microchip PICs. He had
his students programming the BS1 Project Board (Figure 1) which is a very nice
board for the price. He was happy with that board as an entry point, but the next
step in the BASIC Stamp world was moving to the BS2 Homework Board, which is
a $45 development board. He hoped to keep it below $25. He thought maybe
programming a PIC microcontroller directly might be the best option since the
BS1 is based on that same family of microcontroller ...

ith all the various such as A/D and timers. As a simple for him involved several key

W programmers, tools, and


compiler options though, he
was getting confused. He wanted to
test, he asked if we could recommend
a package and offer a simple example
for driving an LCD module as a basic
components:

• PICBASIC PRO compiler, sample


be able to program blank PICs, not demonstration. This took many lines version
another company’s chip where you of code in the BS1, so he either needed • MicroCode Studio IDE
have to buy from a limited number of to use an expensive serial LCD module • EZPIC JDM style serial port
sources. This ruled out the Basic or move up to a larger part like the programmer
Atom, the PICAXE, and a few others. BS2 to do more with it. He stated that • WINPIC programmer software
What I hope to show you in this he’d seen sample code with a single • PIC16F690 microcontroller plus
article is the same thing we LCD control command that simplified 4 MHz resonator with capacitors
emonstrated to the high school. driving an LCD and wondered if the • 2x16 LCD module
You can put together a great starter PIC had that option built in. That was • Breadboard and wires
package for under $25 using mostly the challenge he placed before me.
free samples and free downloads Based on these requirements, I FIGURE 1. BS1 Project Board.
from the Internet. told him that we could show him
an LCD example with very little
Requirements effort, using a BASIC compiler
that will easily convert over his
The BS1 has an 80 command existing code and offer an easy
limit, but the high school teacher upgrade path to full professional
stated that many of the projects his PIC programming for his
students worked on were very simple students down the road. He
and didn’t require a lot of code space. was very interested so he wanted
On the other hand, he wanted an more detail.
upgrade path to offer more space and
definitely more speed to his advanced Package Details
students. He also wanted to be able
to access the PIC’s built-in features The package I put together
SERVO 08.2008 67
BasicBoardRobotics.qxd 7/8/2008 10:38 AM Page 68

of the package. It is very easy to use and program button. The MicroCode
and a great language for someone Studio software handles this for you.
just getting started. It uses the same You can download this from the
format as the BASIC Stamp PBasic author at www.mecanique.co.uk/
language but produces a binary file so code-studio/index.html, but you
you can program blank PICs. The don’t have to because the Microcode
PICBASIC Pro compiler has advanced Studio installation is included with
over the years to become just as the PICBASIC Pro file you download.
powerful as any other “professional” When you install the PICBASIC PRO
compiler. What helped with the software on your computer, it will
package was the fact that you can automatically offer to install the
download a free sample version of MicroCode Studio software, as well.
FIGURE 2. PICBASIC Pro Basic Compiler. this compiler from http://melabs. After it is installed, you will be set up
com/pbpdemo.htm. to write your first program.
• 4.5V battery pack The sample version is limited to 31 Figure 3 shows the MicroCode
commands but that is more powerful Studio screen with the LCDsample.bas
This project ended up going than it sounds. Many of the features code created for the demonstration.
beyond the $25 range, but only you want such as driving an LCD or
because I included all the components reading a potentiometer with an PIC Programmer
he needed along with the analog-to-digital port are reduced
breadboard, LCD, and battery pack. down to a single command. That leaves Once you write the program
Those were not part of his original a lot of space in the 31 commands for and compile it with PICBASIC Pro,
“under $25” description. I put together other things. A sample LCD example I you need to send it to the PIC
the demo unit and the sample saw in the BS1 application notes took microcontroller. This requires special
package and sent it to him. He was 27 command lines to drive an LCD. hardware known as a PIC programmer.
very pleased with the results, so I That is a lot of space in the BS1 80 The BS1 doesn’t require this since it
thought I’d share this with the readers command limit. I knew this would be receives the tokenized code through a
of SERVO, as well. the product for the school. serial connection. Most of the custom
I’ll step through the details. chip options (like Basic Atom and
MicroCode Studio IDE PICAXE) do something similar with
PICBASIC PRO software known as a bootloader.
Sample Version PICBASIC Pro is just a compiler, In the early days of PICs, the
though. It needs a development hardware programmer was several
The PICBASIC Pro compiler (Figure screen to make it easier to write the hundred dollars. This prompted
2) was selected for the compiler part software. The BS1 has a very nice hobbyists to design their own. The
interface with a single click compile original “Tait” design was created by a
FIGURE 3. MicroCode Studio IDE. guy named David Tait. His design was
reproduced and sold by many people
for years. The Tait design required a
parallel port and a high voltage source
(16V) to program a PIC.
One of the more popular designs
to follow was the JDM design by Jens
Dyekjær Madsen that powers itself off
the PC’s serial port which eliminates
the need for an external 16V supply.
Some laptops don’t offer enough
voltage on the serial port, so it is
recommended to use the JDM
programmer on a desktop PC. This was
not a problem for the high school as
they were using desktop PCs already.
There are a lot of variations to the
JDM design. You can get schematics
and board layouts with a simple
Google search of “JDM Programmer.”
Beginnerelectronics.com offers a
programmer kit for $19.95 designed
68 SERVO 08.2008
BasicBoardRobotics.qxd 7/8/2008 10:39 AM Page 69

around the JDM programmer with


some modifications. The assembled
programmer is shown in Figure 4.
This kit makes a great soldering
project for the student that will later
serve as the main programming tool
for using blank PICs in place of the FIGURE 4. JDM EZPIC Programmer
BS1 board. You don’t have to rely (assembled).
on this particular kit either. There
are other JDM style programmers you can name it EZPIC or anything
available from various sources, else you desire. After that, you click
including many different versions Next to move on. The window in
offered on eBay. Figure 8 is where you enter the FIGURE 5. Compile and Program
executable file name for the Options Window.
Programmer Software programmer. This time, you have to
enter “winpic.exe.” Once again, click
In order to use the JDM Next to move on.
programmer, you need software for The window in Figure 9 will
your computer to send the PICBASIC appear and this is where you tell
Pro created file to the PIC micro- MicroCode Studio where to find the
controller. There are a few choices winpic.exe software on your computer.
available but our choice is the WINPIC I suggest you click on the “Find
software that can be downloaded for Automatically” button to allow
free from www.qsl.net/dl4yhf/ MicroCode Studio software to find it.
FIGURE 6. Add New Programmer Window.
winpicpr.html. This software worked Or, you can click on “Find Manually”
the best with the MicroCode Studio if you know exactly where you put could want in a PIC microcontroller
IDE based on limited testing. The the file. Finally, the next window in and it’s supported by the sample
setup in MicroCode Studio is very easy Figure 10 is where we enter the setup version of PICBASIC Pro. The part can
also, so the user can create that one parameters for the WINPIC software handle a lot more than the 31
click compile/program feature. to automatically read the device and command limit with its 7K byte
When MicroCode Studio is program the PIC when you click on program memory, but it’s a common
running, you set up the winpic.exe the compile&program button in part that is easy to find on eBay,
software by clicking on the menu MicroCode Studio. Set it up with the Mouser, or even get a few free
option; View —> Compiler and following line “/device=PIC$target- samples from www.sample.
Programmer Options to get the device$ $hex-filename$ /p /q=5.” microchip.com. I recommended the
window in Figure 5. Next you have to (Note the whole line doesn’t show DIP version which is part number
click on the “Programmer” tab to add up in Figure 10). PIC16F690-I/P.
a new programmer. You will see the These steps we’ve covered will There are many free code
window in Figure 6 appear. Select allow you to write the software and examples included with the PICBASIC
the “Create custom program entry” program the microcontroller, but now Pro sample version. You need to
and click Next. we need to select that microcontroller. modify some of those sample
The “Add New Programmer” programs though, to use them with
window will then pop up (Figure 7). PIC Microcontroller the PIC16F690. I’ll show you what I
This is where you enter the name you mean in the sample code covered
want to describe the programmer. For the microcontroller, I here. The PIC16F690 has an internal
I chose “winpic” in this example to recommended the PIC16F690 mainly oscillator and also an internal MCLR
match the software being used but because it has all the features you pin pull-up resistor so all you need is

FIGURE 7. Add New Programmer Window. FIGURE 8. Programmer Executable Window. FIGURE 9. Programmer Path Window.

SERVO 08.2008 69
BasicBoardRobotics.qxd 7/8/2008 10:39 AM Page 70

power and ground connections to that LCD. (The same software will
operate. To create the demonstration work with any two line LCD.)
unit for the high school, we used one The software is shown in Listing
of our breadboards from Beginner 1. The first section that has all the
Electronics.com. The breadboard DEFINEs is required for the way we
circuitry included the power wired up the LCD. This shows how the
connections and the connections to PICBASIC Pro compiler handles the
the 2x40 LCD per the schematic setup in the background to make
shown in Figure 11. We had a large the code easier to write. The final
FIGURE 10. Programmer Parameters box of brand new surplus 2x40 LCD’s example took 23 command lines, but
Window. available, so we did the demo with if we used a different PIC and used
the default DEFINE settings, then we
could remove the DEFINEs and the
program reduces down to 13 lines.
We are also writing to the LCD several
times within those 13 lines so this
is more efficient than other BS1
examples I saw.
The unique section of the code
required to use the PIC16F690 are the
special register setups shown below.
The sample programs may need these
same lines of code. These settings
make the pins digital instead of the
default analog mode. They also shut
off the internal comparator that is on
this part.

‘ Set A/D ports 0-7 as digital


ANSEL = 0
‘ Set A/D ports 8-10 as digital
ANSELH = 0
CM1CON0 = 0 ‘ Comparator 1 off
CM2CON0 = 0 ‘ Comparator 2 off

The rest of the program is fairly


simple to understand so I won’t go
through it all. The point is the code
was short and simple enough to fit
within the 31 command limit with
more space for a few more functions.

What Does All This


Cost?
• PICBASIC PRO compiler, sample
version (free)
• MicroCode Studio IDE (free)
• EZPIC JDM style serial port
programmer ($19.95 kit)
• WINPIC programmer software (free)
• PIC16F690 microcontroller (free
sample)
• 2x40 LCD module ($5.00 special at
BeginnerElectronics)
• Breadboard and wires ($12.95)
• 4.5V battery pack ($3.00)
Listing 1. PIC16F690 Driving
2x40 LCD Software.
70 SERVO 08.2008
BasicBoardRobotics.qxd 7/8/2008 10:39 AM Page 71

FIGURE 12. PIC Starter Package.

If you take out the LCD and battery


pack since those aren’t included with FIGURE 11. LCD/PIC
the BS1 project board either, you end Hardware Schematic.
up with a total cost of $32.90. Odds
are if you do any electronic work though, you already have their program, they could use the same language but get
a breadboard so taking that out of the equation, the total more command lines by taking turns working on the
cost is $19.95 to get started programming blank PICs in teacher’s computer.
Basic. We sell the programmer assembled for $24.95 so The jury is still out if this will be their final choice, but if
even if you choose to bypass the kit path, then we still you are just getting started building a robot or electronic
met the $25 target. Figure 12 shows the final package we gadget of some kind that needs a microcontroller, I hope
recommended for those who want to move from the BS1 what we put together for the high school will also help you
to the PIC. We’ve decided to offer this kit on our website as you try to make the transition from Stamps to PICs in
at www.beginnerelectronics.com for anybody getting your home lab. SV
started. We also plan to include a discount coupon for the
full version of the PICBASIC Pro compiler to make that
transition less expensive. Check it out if you get a chance.

Conclusion
At the end of our discussion and review of the LCD
demo, the high school was pleased to have such a simple
option. The PICBASIC Pro compiler’s many sample programs
were a bonus that only required some modifications for the
students to use directly. We suggested they make a series
of homework projects to convert those files to fit the
PIC16F690. You could do the same to create a library of
code. This package didn’t stop there, either. The PICBASIC
Pro sample version also supports the eight pin PIC12F683
and the 14 pin PIC16F688, along with a few 18, 28, and
40 pin parts. This gave the students several choices if they
needed a smaller or larger pin part.
The best part of all is the teacher could order one copy
of the PICBASIC Pro compiler full version and put that on
his computer. When the students needed more space for

Resources
microEngineering Labs — www.melabs.com
Beginner Electronics — www.beginnerelectronics.com
MicroCode Studio — www.mecanique.com
WINPIC Software — www.qsl.net/dl4yhf/winpicpr.html
Microchip Technology, Inc. — www.sample.microchip.com

SERVO 08.2008 71
Page72.qxd 7/9/2008 4:29 PM Page 72

72 SERVO 08.2008
WebstoreAug08.qxd 7/9/2008 4:25 PM Page 73

Lo
The SERVO Webstore
Attention Subscribers ask about your discount on prices marked with an *
W h ao k
t
New ’ s

SERVO Magazine
Bundles

Published by T & L Publications, Inc.


Save $10
$57 off the
normal
per bundle
price!!
Now you can get one year’s worth of all
your favorite articles from SERVO Magazine
in a convenient bundle of print copies.
Available for years 04, 05, 06, and 07.
Forbidden LEGO Robotics Demystified FIRST Robots: Rack 'N' Roll
by Ulrik Pilegaard / Mike Dooley by Edwin Wise Behind the Design
YOU DON'T NEED ARTIFICIAL INTELLIGENCE by Vince Wilczynski / Stephanie
Build the Models TO LEARN ROBOTICS! Slezycki
Your Parents Now anyone with an The second annual
Warned You
interest in robotics can book highlighting the
Against.
gain a deeper under- creativity and process
Forbidden LEGO standing — without for- behind 30 winning
introduces you to mal training, unlimited robot designs from
the type of free- time, or a genius IQ. In the 18th annual
style building that Robotics Demystified, international FIRST
LEGOs master expert robot builder Robotics Competition.
builders do for fun and author Edwin Wise The FIRST organization,
in the back room. Using LEGO bricks in com- provides an effective founded by Dean Kamen (inventor of the
bination with common household materials and totally painless way to learn about the Segway), promotes
(from rubber bands and glue to plastic technologies used education in the sciences, technology, and
spoons and ping-pong balls) along with to build robots! $19.95 engineering in collaboration with sponsors
some very unorthodox building techniques, including Motorola, Xerox, NASA, Delphi,
you’ll learn to create working models that
General Motors, and other companies
LEGO would never endorse. $24.95
invested in science education. $39.95
! Robot Builder’s Cookbook
Build Your Own NEW by Owen Bishop
Humanoid Robots This is a book for
by Karl Williams first-time robot
GREAT 'DROIDS, INDEED! Robot
Programmer's builders, advanced
Bonanza builders wanting to
This unique guide to know more about
sophisticated robotics by
John Blankenship, programming robots,
projects brings and students in
humanoid robot Samuel Mishal
The first hands-on further and higher
construction home to education tackling
the hobbyist. Written programming guide
for today's robot hobbyist! microcontroller-
by a well-known figure based practical
in the robotics Get ready to reach into your programming
toolbox and control a robot like never before! work. They will all find this book a unique
community, and exciting source of projects, ideas, and
Build Your Own Robot Programmer's Bonanza is the one-stop
guide for everyone from robot novices to techniques to be combined into a wide
Humanoid Robots provides step-by-step range of fascinating robots. $29.95
directions for six exciting projects, each advanced hobbyists who are ready to go
beyond just building robots and start
costing less than $300. Together, they form We accept VISA, MC, AMEX,
the essential ingredients for making your programming them to perform useful tasks. and DISCOVER
own humanoid robot. $24.95* $29.95 Prices do not include shipping and
may be subject to change.

SERVO 08.2008 73
WebstoreAug08.qxd 7/9/2008 4:27 PM Page 74

To order call 1-800-783-4624


Mechanisms and Mechanical
Devices Sourcebook
by Neil Sclater / Nicholas Chironis
The fourth edition
of this invention-
inspiring engineering
resource covers the
Oil prices getting
past, present, and
future of mechanisms
and mechanical
to you, too?!
devices. You’ll find
drawings and
descriptions of more
Stay home,
than 2,000 compo-
nents that have
proven themselves over time and can
read a book.
be incorporated into the very latest
mechanical, electromechanical, and mecha-
tronic products and systems. Overviews of
The online store @
robotics, rapid prototyping, MEMS, and www.ser vomagazine .com
nanotechnology, along with tutorial chapters
on the basics of mechanisms and motion
control, will bring you up-to-speed quickly
on these cutting-edge topics. $89.95
CNC Robotics Linux Robotics The Amateur Scientist 3.0
by Geoff Williams by D. Jay Newman The Complete Collection
If you want your robot by Bright Science, LLC
CNC Robotics gives you to have more brains than There are 1,000
step-by-step, illustrated microcontrollers can projects on this CD, not
directions for designing, deliver — if you want to mention the
a truly intelligent,
constructing, and testing high-capability robot — additional technical
a fully functional CNC everything you need info and bonus
robot that saves you 80 is right here. Linux features. It
percent of the price of an Robotics gives you step- doesn’t matter if you’re
off-the-shelf bot — and by-step directions for a complete novice
that can be customized “Zeppo,” a super-smart, single-board- looking to do their first
to suit your purposes exactly, because you powered robot that can be built by any science fair project or a
designed it. Written by an accomplished hobbyist. You also get complete instructions super tech-head gadget
workshop bot designer/builder, this book for incorporating Linux single boards into freak; there are enough projects on the
your own unique robotic designs. No
gives you everything you need. $34.95 programming experience is required. This single CD-ROM to keep you and 50 of your
Robot Builder’s Sourcebook book includes access to all the friends busy for a lifetime! $26.99
by Gordon McComb downloadable programs you need.
Fascinated by the $34.95
world of robotics but
don’t know how to FREE!
tap into the incredible with any
e
amount of informa-
purchas 0
tion available on the
subject? Clueless as over $1 0
to locating specific -in
Phone ly!
n
information on robot- orders o
ics? Want the names,
addresses, phone
numbers, and websites of companies that SERVO
can supply the exact part, plan, kit, building
material, programming language, operating
Magazine
system, computer system, or publication
you’ve been searching for? Turn to Robot
T-Shirts
From HomoSapien to RoboSapien For men and women Before R2D2 there was R1D1
Builder’s Sourcebook — a unique clearing-
house of information that will open 2,500+ Get your very own limited-edition SERVO Magazine T-shirt. Shirts come
new doors and spark almost as many new in sizes S, M, L, and are available in either black or white.
ideas. $24.95 All shirts are 100% preshrunk cotton.
Limited time offer. Call 1-800-783-4624.
74 SERVO 08.2008
WebstoreAug08.qxd 7/9/2008 4:29 PM Page 75

Or order online www.servomagazine.com


BACK ROOM SPECIALS
The Definitive Guide to
Building Java Robots
S AVE 10% plus by Scott Preston
The Definitive Guide to Building Java Robots
GET FREE US is for educators,
SHIPPING! students, hobbyists,
and startups looking
for Java/hardware
Buy both these books interaction. This book
together in the month shows you how to use
of August 2008 your PC to build
robots, and how you
The LEGO Mindstorms
and
Building Robots with
can interface with a NEW
NXT Idea Book LEGO Mindstorms NXT
microcontroller to do
!
and save 10% off the list price. Plus get free shipping in the US!! the basics. You’ll learn
Call 800 783-4624 or order online @ www.servomagazine.com to design your robot to navigate, see, speak,
recognize your face, listen to you, and build
List Price $29.95 Sale Price $ 26.95 List Price $39.95 Sale Price $35.95 maps. $55.95 Sale Price $ 47.95

Bionics for the Evil Genius 123 Robotics Experiments Fuel Cell Projects
by Newton C. Braga for the Evil Genius for the Evil Genius
THE EVIL GENIUS by Myke Predko by Gavin D J Harper
TACKLES BIONICS! If you enjoy tinkering in FUEL YOUR EVIL
Step into the future -- (or your workshop and have URGES WHILE YOU
the past, if you have a a fascination for robotics, BUILD GREEN
touch of Dr. Frankenstein you’ll have hours of fun ENERGY PROJECTS!
in your soul) -- with these working through the 123 Go green as you amass
25 incredibly cool bionic experiments found in this power! Fuel Cell
innovative project book. Projects for the
experiments!
More than just an enjoy-
Demonstrating how life Evil Genius broadens
able way to spend time,
forms can be enhanced, combined, your knowledge of this
these exciting experiments also provide a
manipulated, and measured with electronic solid grounding in robotics, electronics, and important, rapidly
and mechanical components, these programming. Each experiment builds on the developing technology and shows you how
inexpensive projects from internationally skills acquired in those before it so you to build practical, environmentally conscious
renowned electronics guru Newton Braga develop a hands-on, nuts-and-bolts projects using the three most popular and
provide hours of fun and learning. understanding of robotics. Sale $22.95 widely accessible fuel cells!
$24.95 Sale Price $ 22.95 $24.95 Sale Price $ 22.95

PROJECTS
H Racer video clips can be found in the on-line store product descriptions!!
The SERVO BUDDY
KIT

An inexpensive circuit you


can build to control a servo With this kit, you now can see and
without a microcontroller! feel the future of energy generation
For more information, in your own hands!
please check out your Recently named as one of the Best Inventions of 2006 by Time Magazine, the H-racer is now
May 2008 issue the best selling fuel cell product in the world. The H-racer is a micro-version of what engineers
and scientists have been dreaming about for real cars: combining hydrogen with oxygen to
or go to our website @
generate a DC current to power an electric motor. Unlike a gas-powered car engine, the only
www.servomagazine.com byproducts of this electrochemical process are electricity, heat, and pure water. With the
Subscriber’s Price $39.55 H-racer, you can witness the power of new energy technology in the palm of your hand.
Non-Subscriber’s Price $43.95 Horizon has created this unique, patented miniature fuel-cell car and hydrogen refueling station.
PCB includes article reprint.
All you need to do is add water. Only $115.00 plus S/H
SERVO 08.2008 75
Appetizer.qxd 7/9/2008 1:47 PM Page 76

The Greatest
Playground of All
by John R. Sosoka

he real world, what a place! The challenges we get back something Just to give you a taste of this,
T smell of freshly mowed grass, the
breeze against my face, textures,
very precious in return. We get to
experience awe. In some ways, it is
here are a few of the crafts and
disciplines to be found at Ugobe:
colors, shapes. The real world is the childlike awe of a thunderstorm illustrators, sculptors, animators,
incredibly compelling to us. Life, from but now we have ‘knowing’ mixed in. model makers, CAD operators,
plants to animals to other humans, Last summer, I was working on a firmware engineers, electronic
has an incredible draw for us. We’ve vision problem related to navigation. engineers, computer scientists,
been finely optimized to survive in the A tremendous amount of processing performance artists, ethologists,
real world. Looking at a beautifully power is required to deal with the cognitive scientists, synthetic
rendered apple on a screen is a treat per pixel optic flow algorithms that I biologists, voice talent, recording
for me, having been a part of the was exploring. Then a fly swept in, engineers, mechanical engineers,
computer graphics community for neatly avoiding my hand and landing writers, testers, spouses, children,
longer than I care to remember. But on the edge of my cup — all this cats, and dogs.
holding, touching, and biting into in a breeze.
the apple in my hand is an entirely Before my robotics adventures, Life Forms
different experience. Primal and that fly was just a nuisance to be
glorious, a feast for my senses. eliminated. Now I sit amazed by this At Ugobe, we are working toward
Though I started out in a machine self-contained, autonomous creature. robotic technology that can capture
shop, much of my work life has been It runs on garbage, procreates, some of the key elements of life at
spent in the virtual world. The journey navigates using optic flow, and the level of a non-human animal.
back to the physical world has been aerobatically escapes predators. While I’m a great admirer of David
very interesting. This, I think, is one of Understanding how hard these things Hanson’s work on conversational
the attractions of robotics. Rodney are to do, I’m left in a state of humanoid robots, we’ve initially
Brooks showed us how to get robots informed but profound awe. set our sights a bit lower on the
out of their heads and into their A diverse collection of folks have evolutionary ladder. From a technical
bodies. The real world became the gathered at Ugobe to tap into bits of standpoint, even creating a realistic
model; reactions were faster and this inspiring experience of ‘creating’ robotic mouse is beyond the current
subsumption provided an inkling of life. Part of the fun of robotics is that state of the art. With our life forms,
the robustness that we see in nature. you get to work with people with we are working to advance the level
It was hard not to see cockroaches in vastly different skills. David Calkins of realism and autonomy of our
a whole new light. captured this perfectly in his column creatures while still making them
When we strive to create robots (SERVO, June ‘08), “What the Heck is accessible to a wide audience.
that can exist in the same messy, a Robot, Anyway?” The need for us Human-robot interaction is a
ever-changing, complicated world that to stretch to understand each other very active field right now. Many
we live in, we are faced with is hard, but once you get through it projects in this area are examining
tremendous challenges. And through the teams are incredible, eclectic, the role of affect and the underlying
the process of solving these and electric. emotion models. One of the problems
76 SERVO 08.2008
Appetizer.qxd 7/9/2008 1:50 PM Page 77

in these studies is the lack of a the thing to keep kids engaged as We can create their personalities
platform that can express emotions they cross the “middle school divide” and give them autonomy. They can
and intent while providing a rich where so many shy away from sense beyond the range of human
array of sensory interactions. We technology studies. perception and communicate
have been providing a small number across the world. And all the while
of Pleos (our robotic dinosaur) to Our Place we have the opportunity to work
universities for use in these studies. in this renaissance environment,
This exciting work at UC Berkeley, Robotics at this moment in time frantically grabbing ideas from
Georgia Tech, MIT Media Lab, and is incredibly exciting and diverse. dozens of fields. Each day we are
other institutions will help our larger We have the chance to bring our learning things that, in any other
robotics community to better creations to “life” in the real world. job, we’d rarely discover. For me,
understand how robots and humans They must cope with all the richness and I hope for you, this is the
can interact. and complexity of our messy world. greatest playground of all! SV
An interesting thought to
ponder is that, for most of human
time, animals were the primary
non-human “robotic technology.”
Humans have developed a special
working relationship with many
animals such as horses and dogs.
The easy and robust interaction
between a human and a service
animal is strikingly different from
the typical human-computer
interaction. Much of our technology
interface design is centered around
telling our technology exactly what
to do and how to do it in the
current specific situation. Yet our
interface with a horse or dog is
mostly about executing against a
shared understanding of what
each will do in a wide variety of
situations. Typically, commands only
need to occur when there is an
exception to the expected action.
Often, complex behaviors can be
invoked with motions as subtle as a
nod. What does this suggest for the
future of human-robot interaction?

Education
An important challenge that
we face today is providing an
interesting space to encourage
kids to pursue technical and
engineering studies. Robotics has
helped with programs such as
FIRST and BEST. Yet there are a lot
of technically savvy kids who are
not interested in the construction
and competition aspects. As the
robotics community expands to
encompass more character-based
robots, there is a new opportunity
to pull kids in with performance
art and synthetic personalities.
These opportunities may be just
SERVO 08.2008 77
Then&Now.qxd 7/8/2008 4:33 PM Page 78

Then N O W

a n d
ROBOTS — HOW WE’VE BUILT
THEM OVER THE YEARS
b y T o m C a r r o l l

I ’ve written recently about how


robots have changed over the years
from a historical perspective, but not
Volts, and the like, still have great
schematics and circuit board layouts,
but the pages of most popular
chains, bearings, gears, and even
hardened steel spokes. Boats and boat
motors had some great parts for
how we’ve actually constructed them. magazines that used to feature robots. Hardware stores had hinges,
Let’s face it, robot stores were certainly build-it-yourself articles no longer have door and cabinet hardware, plumbing
not around 40 years ago, and even construction articles for mechanical items, shafts, and threaded rod stock.
today, there are only a tiny fraction of projects. Building a desk or garden Some of the very best parts came
the stores we’d like to see for our shed from scratch is frequently from jukeboxes and pinball machines.
robot experimenting as compared with featured in many magazines, but not Anything with parts that could be
computers. There are hundreds of how to build a garden tractor or other moved usually had something that was
thousands of computer stores and mechanical projects. Certainly there useful to robot builders. Growing up
companies around the world but only are crafty people still around such as in a small town (Mount Olive, NC), my
a few actual robot stores, and less than the stars of Myth Busters, but they robot parts sources were empty coffee
a hundred robot companies that deal are a minority it seems these days. cans and heating duct sections for
with robots for the experimenter. Most Possibly the slow economy and robot shells, plywood structures, and
of those companies here in the US and resulting tightened budgets will various weird things from junkyards. I
Canada advertise in the pages of SERVO. resurrect the creative bent in us so also had access to jukebox parts and
As I mentioned in my previous that home-built robots will once again other surplus things my brother got in
column, we keep hearing about the become popular. the big city of Raleigh. When I later
arrival of the ‘robotics age,’ but many moved to Long Beach, CA near Los
seem to find that it really is not here, Building Robots Angeles, I was in robot builder’s heaven.
but just around the corner. Military in the ‘50s Notice that I did not mention any
robots, insect-like walking and sort of electronics. Of course, there
humanoid robot kits, and even floor- We take for granted all the were no computers and therefore, no
sweeping Roombas now seem a bit motors, sensors, high power density printers, hard drives, and other similar
blasé. Some experimenters are already batteries, and microcontrollers itmes. Certainly there were no
hanging up their soldering irons to that are contained within today’s microcontrollers or ready-built motor
wait for the next killer app to come experimental robots. The model drivers available to experimenters.
along in another field. airplane servo that so many builders Office machines usually consisted of
We want working robots right use as the base of their robot designs typewriters, mimeograph machines,
out of the box or an easy-to-assemble was still in the future 60 years ago. In and various types of adding machines,
kit. The creativeness of electronics those days — besides a lucky find at a and had little usable parts for robots.
enthusiasts seems to be history. It’s a war surplus store — it was hard for a Entertainment electronics back then
shame that some are changing their robot experimenter to find good parts. were radios, TVs, movie projectors,
interests to other areas of science. Some of the best sources for robot phonographs, and associated
Though the economy has taken a dip, parts were old appliances such as amplifiers and speakers for these
robotics truly is making amazing washing machines, food mixers, electric items. Most electronic products were
strides. A great example is Sony’s fans, refrigerators, record players, and hand-wired from point-to-point and
once-shelved Aibo that is slated to 115 VAC power tools. Cars had fans, large capacitors, transformers, and
make a comeback this year. windshield wiper motors, and various other components could be removed
Magazines such as SERVO, Nuts & wiring harnesses. Bicycles had neat for projects. The robot experimenter
78 SERVO 08.2008
Then&Now.qxd 7/8/2008 4:34 PM Page 79

was usually left to his or her own


imagination when it came to using
these types of parts for robots.

Early Robot Designs


Robots were frequently built upon
plywood bases, held together with
wood screws, nails, and glue in the ‘50s.
Most of the earlier robotic creations
were fairly large so wood seemed
natural for the shells of robots. There
were few sources for aluminum angle
extrusions so most people used steel FIGURE 1. Grey Walter’s Elmer.
for the inner structures. Wheels may
have come from lawn mowers, the easier for the main arm motor to lift. robots with only relays, switches, CdS
occasional scooter, large toy, or roller photo cells, and lots of hard-wired
skates. Most motors available to Early Robot wire connections.
experimenters were not geared down
so belt and chain reduction systems
Intelligence Early Robot Power
connected the motors to the wheels. Not all of the earlier robots were
Many of the early robot designs used designed to resemble bipedal humanoid Early experimenters did not have
the ‘Ackermann’ type of steering that forms as Grey Walter’s tortoise-like Elsie the luxury of today’s vast array of bat-
is used in all cars instead of the and Elmer typifies. Experimenters in tery chemistries, amp-hour capacities,
differential type of steering popular these early days were just as interested and low costs. Many robots of that
today in robots. In this configuration, in Artificial Intelligence as we are today; era used simple dry cells, usually the D
the back (or front) wheels were used it’s just that there were absolutely no sized carbon-zinc type. AA cells were
for forward or reverse movement and forms of ‘non-human intelligence’ (i.e., called penlight batteries and there
two of the wheels were connected microcomputers) small enough to be were no alkaline types at that time. C
together to steer right or left by placed on a mobile platform. In the cells were smaller and less than half
another ‘steering’ motor. Sometimes a ‘50s and even the ‘60s, computers the capacity of a D, yet cost the same,
single wheel was steered by a steering filled complete rooms and drew so most experimenters used D cells.
motor and that single wheel could thousands of watts. Any sort of The other batteries were smaller six
also be powered by a drive motor. intelligence had to be simulated and 12 volt lead acid batteries, usually
Figure 1 shows Grey Walter’s Elmer by using some sort of sensors to feed the smallest battery that you could
robot and the gears that drive the back into an onboard relay or find from a farm implement or similar.
front wheel in this configuration. hard-wired network, or to an external There were no easily obtainable
Good old Gilbert ‘Erector Sets’ computer. sealed electrolyte lead acid batteries
had some of the best parts to experi- Available sensors to the early so you just hoped your robot didn’t
ment with mechanical configurations. experimenters could be microswitches turn over and eat its innards and
Figure 2 shows a set from 1949. with feelers to detect obstacles or CdS everything in sight with the spilled
Notice that it features a remotely- or phototube sensors to
controlled robot and you can see the detect light sources or FIGURE 2. Gilbert Erector Set #12 and one half.
AC motor sitting in the metal box with ambient light. The intelligence
the red gear train behind. The motor could be as simple (or
supplied with these sets was not complicated) as: “If bumper
only a gearmotor, but it had several switch ‘c’ is in the closed
different geared output speeds. Since position, and the CdS cell ‘2’
it was an AC shaded-pole motor, you sees enough light to close its
were stuck with the speeds on the relay, then send a signal to
side of the gearbox. Few robots had relay ‘AA’ to drive the
any sort of variable speed control, steering motor to the left.”
whether for the base or for any sort It wasn’t AI as we know
of arms or other extremities. Cables it today, but Walter did some
and even fishing line were frequently amazing things with two
used to transfer motion from one part tubes in his amazing little
of an arm to the ends to allow weighty robot. Those that followed
driving motors to be located in areas also built some surprising
SERVO 08.2008 79
Then&Now.qxd 7/8/2008 4:34 PM Page 80

sulfuric acid. Some experimenters that it was the personal computer and weak weapons and many went on to
opted for 110 volts from a wall plug the ability for the average person to win a contest by simply sliding under its
as AC motors were cheaper and program simple microcontrollers to opponent to prevent it from moving
more available. Of course, the poor control some fairly sophisticated away. Virtually all of the combat robots
robot was tethered to the wall by a robots. The microprocessor came were and are remotely controlled by
long cord. first as the core of the PC, with the model aircraft types of radio systems,
microcontroller making the scene a bit though there are a few purists who
Early Toys and later. The latter did not require the have built some fairly sophisticated
Toy Robots higher level languages needed to autonomous robots for the combat
communicate with humans; only for a arena. The sport reached a pinnacle
Toys in the ‘50s began to have robot to understand a suite of sensors when the Comedy Channel aired the
battery-powered DC motors; usually and control some functions by driving popular BattleBots series. The weight
three volts. Remotely controlled cars with a motor(s). Simple languages and low classes greatly expanded from the initial
a wired handheld remote control were prices brought the microcontroller light-middle-heavy weights to categories
popular. Some toys even had attached within the budget of even the most from ant weight to super heavyweight.
gear trains — great for the slower speeds cost-conscious robot experimenter.
with the greater torque needed for You might ask, “What about the Robots Progress
robots. It was a real plus if you could start mechanical aspects of robotics?” A to the Future
with one of those tinny imported robots robot is not a robot without some
and peel it apart to modify it with sort of mechanical means to affect its So, how have things changed
moving arms and head, or change its environment; whether that be to just over the years in the way we’ve
walking mechanism in some way. roam about an area or manipulate constructed our robots? We started
There were no LEDs in those days, something with an arm and end- out with simple sketches on paper
but many toy robots had little colored effector. Low cost motors, and and many of us have progressed to
three volt incandescent bulbs for especially gearmotors, allowed CAD programs and finite element
eyes that could be used in another builders to add all sorts of movement analysis software on our computers.
location. Of course, the purists would to their robots. The model airplane Grey Walter’s robot tortoise (amazing
scream if the robot was even taken servo that I mentioned earlier was a for the time) was a simply constructed
out of its original box and would cry boon for those who did not have the thing with a bent tin structure and
in their beer if it was taken apart. mechanical expertise to hook up a household-type fasteners. We have
set of surplus gearmotors to some progressed from mostly plywood and
Today’s Selection wheels. These ready-made drive wood with steel inner structures to
of Robots motors were ideal to drive small table- plastic with aluminum structures, and
top robots when they were hacked to even titanium for many combat robots.
Let’s jump ahead 50 years to the obtain continuous rotation. Battery technology has advanced
present without even looking at the They also had the advantage of from the early dry cells and lead acid
robots available 20 or 30 years ago. being able to listen to a micro- batteries of Walter’s time past nickel
Money is a bit tight these days for all of controller’s generated series of pulses cadmium to expendable alkaline cells
us but that hasn’t stopped entrepreneurial right out of the box. Inexpensive and lithium polymer, lithium-ion batteries,
companies from developing some active IR and ultrasonic rangefinders, and even fuel cells. Robot power
amazing robots for experimenters. compass modules, GPS receivers, color started with inefficient series-wound DC
For that matter, experimenters have, detectors, image recognizing cameras, motors and evolved to the very efficient
themselves, developed some cutting- and a host of other sensors provide rare-earth field and coreless motors of
edge robots that have been exhibited today’s robot experimenters with today. Relay and hard-wired logic gave
at conferences and exhibitions around amazing capabilities. way to microprocessors such as the
the world. 6502 and the latter microcontrollers
Kids as young as kindergarten age Combat Robots such as the 68HC11, PIC, and others.
have learned robotic techniques and Rudimentary light detection and
programming that wasn’t even Another real turning point in vision arose from the lowly cadmium
available to university level students a build-it-yourself robots was the growing sulfide photo cell to true vision with video
few decades ago. Companies such as interest in combat robots — robots that cameras and intelligent CCD/CMOS
LEGO, Robotis, Parallax, and others battled each other until one finally cameras such as the CMU cam. The
have brought affordable and capable beat the other. In the beginning and for dream of affordable speech recognition
robotics kits to youngsters to teach many years afterward, there were no systems is now a reality for our robots.
them this exciting science. kits available for these types of robots Have we reached the epitome of
What were the key ingredients so the prospective robot warrior had robot evolution? Our robots cannot
that made all this possible? Well, I to design and build his or her own. only recognize our faces but they can
believe that all of us will probably say The earliest combat robots had fairly respond to our voices and commands
80 SERVO 08.2008
Then&Now.qxd 7/8/2008 4:34 PM Page 81

with their own speech. Many can walk rotation of our joints.
upright just like us and have dozens of Artificial robot muscles
motors/servos to create many motions. that have long been a
Some even move about on two side-by- dream of scientists and
side balancing wheels or a roller skate- labs around the world
like foot like Rosie (Figure 3) on the old are now becoming a
Jetsons cartoon series. It seems as if we reality. The available
do have the ultimate robot available microcontrollers and
today... or do we? Well, it’s not quite microprocessors are
like the myth that is often told that the becoming more versatile
director of the US Patent Office over a and cheaper, but possibly
century ago handed in his resignation something on the order of
stating that “everything that can be Isaac Asimov’s ‘positronic
invented has been invented.” brain’ may be on the
We have made some amazing horizon. Unlike the DRAM
strides in technology, but we have many memory that I paid an
huge leaps and bounds ahead of us. extra $40 to upgrade
Today’s batteries have incredible power my Rockwell AIM-65 FIGURE 3. Rosie from
density but they remain one of the computer from 1 KB to the Jetsons. FIGURE 4. Honda's Asimo.
major pitfalls of creating a true home 4 KB back in the early
robot that has the physical power of a ‘80s, memory is dirt cheap these days. Times may be a bit tough these
similar-sized human. Honda’s Asimo A GB of DRAM is less than $50 and days, but the sky’s still the limit for
must walk around with a huge Flash memory is as cheap as $50 for some fantastic home-designed and
backpack battery in order to operate 8 GB — a million times cheaper! built robots. SV
for less than an hour (Figure 4) The
energy crunch of today may actually
produce as a side product a very high
density battery that will have the
capacity to power future robots.
The latest rare-earth field DC motors
are powerful with several horsepower
available in fist-sized packages, but
tomorrow’s electro-chemical muscles
on the drawing boards may be the
answer for future humanoids. Wheels
not withstanding, most of the functions
and motions on a complex humanoid
robot can more easily be accomplished
by linear actuators much like our muscles.
Our shoulder, elbow, head, and similar
motions use our powerful chemical Looking for a GIFT or maybe just something special for yourself?
Check out our website to find all of our other robotic items for sale!
powered muscles to produce partial

Advertiser Index
All Electronics Corp. .........................45, 66 Jameco ......................................................12 Robotis ......................................................61
AP Circuits/e-pcb.com ............................48 Lorax Works ........................................45, 66 RobotShop, Inc. .................................23, 66
AWIT ..........................................................66 Lynxmotion, Inc. .......................................82 Saleae ........................................................45
Boca Bearings .....................................71, 66 Maxbotix ...................................................66 Solarbotics/HVW .....................................18
Mini Robotics ...........................................66
Budget Robotics ......................................77 solderbynumbers.com ......................13, 45
Net Media .................................................83
CipherLinx Technologies .........................66 Sparkfun Electronics ..................................2
Parallax, Inc. ...............................Back Cover
CrustCrawler .............................................19 PCB Pool .............................................66, 77 Super Bright LEDs ....................................66
Electronics123 ..........................................45 Pololu Robotics & Electronics ..........25, 66 Technological Arts ...................................66
Hitec ..........................................................43 RoboBrothers, Inc. ...................................44 Vantec .......................................................48
Innovation First ...........................................3 Robo Development .................................35 Weird Stuff Warehouse ...........................45

SERVO 08.2008 81
Full Page.qxd 7/9/2008 4:09 PM Page 82
Full Page.qxd 4/29/2008 4:05 PM Page 83
backcvr.qxd 7/9/2008 10:10 AM Page 84

You might also like