Download as pdf or txt
Download as pdf or txt
You are on page 1of 85

This E-Book and More

From

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

1 1>
10:16 PM

$7.00

4
CANADA

74470 58285
10/8/2008

$5.50
U.S.
Cover.qxd

0
Vol. 6 No. 11 SERVO MAGAZINE SELF-REASSEMBLING ROBOTS • PROPELLER • UNIVERSAL MOTOR • ROBOT PUPPET November 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 10/7/2008 11:41 AM Page 3
TOC Nov08.qxd 10/8/2008 2:38 PM Page 4

PAGE 21 Departments
06 Mind/Iron
18 New Products
20 Events Calendar
72 SERVO Webstore
75 Robotics Showcase
81 Robo-Links
81 Advertiser’s Index

THE COMBAT ZONE ...


Features
26 BUILD REPORT:

Columns 28
30 Pound Combat Robot — Mitch
MANUFACTURING:
08 Robytes Even More Things to Consider When
by Jeff Eckert Building a Fighting Robot
Stimulating Robot Tidbits
33 PARTS IS PARTS:
10 GeerHead Chain Length Calculator and
by David Geer Chain Path Visualizer
Self-Reassembling Robot
35 A Brief History of WAR
14 Ask Mr. Roboto
by Dennis Clark
Your Problems Solved Here
Events
21 Twin Tweaks 30 Results and Upcoming Competitions
31
by Bryce and Evan Woolley
Surveyor’s Travels Event Report:
Robot Battles 2008
68 Robotics Resources
by Gordon McComb
Hand Tools for Robot Construction
Robot Profile
34 Limblifter
76 Appetizer
by R. Steven Rainwater
Why Just Build a Robot? Be a Robot!

78 Then and Now 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,
by Tom Carroll CA 92879. PERIODICALS POSTAGE PAID AT CORONA, CA AND AT ADDITION-
Robot Competitions and Contests AL ENTRY MAILING OFFICES. POSTMASTER: Send address changes to SERVO
Magazine, P.O. Box 15277, North Hollywood, CA 91615 or Station
A, P.O. Box 54,Windsor ON N9A 6J5; cpcreturns@servomagazine.com

4 SERVO 11.2008
TOC Nov08.qxd 10/8/2008 2:39 PM Page 5

11.2008
VOL. 6 NO. 11

Features & Projects PAGE 56

36 A Robotic Puppet
by John Blankenship and
Samuel Mishal
See how to implement computer
control to give your robots the
illusion of life.

40 The Universal Motor


by Fred Eady PAGE 36
This circuit gives you effective control
of the AC power that is being applied
to your robot’s motor without having
to pamper the microcontroller.

48 Getting Control With the


Propeller: Part 3
by Kevin McCullogh
Stepper motors.

52 The Pico ITX Johnny 5


Project
by Andrew Alter
Part 3 shows the advantages of
having an onboard PC.
PAGE 40
56 When LEGO Meets Sumo
by Phil Malone
See how combining two styles of
robots adds up to a unique
competition.

60 Build a GPS Smart Logger


by Michael Simpson
You’ll want to get started building
this device as it will be incorporated
into the Ultimate Robot Build series
which picks up next month.

SERVO 11.2008 5
Mind-Iron Nov.qxd 10/8/2008 6:52 AM Page 6

Published Monthly By
T & L Publications, Inc.
430 Princeland Ct., Corona, CA 92879-1300
(951) 371-8497
FAX (951) 371-3052
Webstore Only 1-800-783-4624
www.servomagazine.com
Subscriptions
Mind / Iron Toll Free 1-877-525-2539
Outside US 1-818-487-4545
P.O. Box 15277, N. Hollywood, CA 91615

by Bryan Bergeron, Editor ΠPUBLISHER


Larry Lemieux
publisher@servomagazine.com
I just finished listening to book multi-billion dollar market for ASSOCIATE PUBLISHER/
one of Kevin Anderson’s Saga of PC-based speech recognition VP OF SALES/MARKETING
Seven Suns, in which robots play a document processing products never Robin Lemieux
display@servomagazine.com
central role. In the story, the Klikiss materialized. Today, few people even
robots are highly intelligent, take notice of the speech recognition EDITOR
multi-limbed bug-like creatures software available for the PC and Bryan Bergeron
techedit-servo@yahoo.com
that communicate with other robots Mac – and most hate the speech
using digital data streams and with recognition systems used by the TECHNICAL EDITOR
humans via speech. The tale automated attendants employed by Dan Danknick
dan@teamdelta.com
reminded me that at least one the airlines and credit card industries.
perception of intelligent robots Despite the mystique of “AI” CONTRIBUTING EDITORS
revolves around the power of speech. surrounding speech recognition, Jeff Eckert Tom Carroll
Unfortunately, progress in speech recognition software that Gordon McComb David Geer
Dennis Clark R. Steven Rainwater
robotic speech is relatively stagnant. you can purchase for your PC/Mac Fred Eady Kevin Berry
Speech synthesis has been a mature works by simply matching spectral Bryce Woolley Evan Woolley
technology for decades, and templates of sounds and using tables Andrew Alter Phil Malone
Michael Simpson Samuel Mishal
advances in large vocabulary, of likely word sequences to build John Blankenship Kevin McCullough
continuous speech recognition seems sentences. For example, if you say Ray Billings Mike Jeffries
to have hit a wall in the late 1990s. “ball,” the speech recognition Charles Guan Robert Farrow
This is in part because the projected software would identify likely CIRCULATION DIRECTOR
Tracy Kerley
subscribe@servomagazine.com
Figure 1
MARKETING COORDINATOR
WEBSTORE
Brian Kirkpatrick
sales@servomagazine.com

WEB CONTENT
Michael Kaudze
website@servomagazine.com

PRODUCTION/GRAPHICS
Shannon Lemieux
Joe Keungmanivong

ADMINISTRATIVE ASSISTANT
Debbie Stauffacher

Copyright 2008 by
T & L Publications, Inc.
All Rights Reserved
All advertising is subject to publisher’s approval.
We are not responsible for mistakes, misprints,
or typographical errors. SERVO Magazine assumes
no responsibility for the availability or condition of
advertised items or for the honesty of the
advertiser. The publisher makes no claims for the
legality of any item advertised in SERVO.This is the
sole responsibility of the advertiser.Advertisers and
their agencies agree to indemnify and protect the
publisher from any and all claims, action, or expense
arising from advertising placed in SERVO. Please
Mind/Iron Continued send all editorial correspondence, UPS, overnight
mail, and artwork to: 430 Princeland Court,
Corona, CA 92879.
6 SERVO 11.2008
Mind-Iron Nov.qxd 10/7/2008 2:37 PM Page 7

candidates such as “ball,” “fall,” and “gall.” Now, if the


previous three words are “Johnny hit the,” the algorithm
will likely rank ball as the most probable word. Current
accuracy limitations are about 97%, even with individual
training, and accuracy isn’t improved by adding
processing power or memory.
The obvious limitation to current speech recognition
software is that it’s simply a replacement for the
keyboard and video display. There is no underlying
intelligence or reasoning capability. Of course, prototype
systems capable of reasoning have been developed in
academia, but these demonstration projects have been
limited to highly constrained domains.
What we need in robotics is a system that not only
recognizes the phrase, “Johnny hit the ball,” but that can
infer with what. If Johnny is playing soccer, we might
infer he hit the ball with his head. If the sport is baseball,
then we might infer he used a bat. Back to our needs in
robotics, the owner of a service bot should be able to
say, “Please bring me the paper” and the robot should be
able to infer that the owner is referring to the newspaper.
There are also issues of image recognition, mobility, and
grasping the paper, but they all depend on the robot
understanding the need of the owner.
The limitation of speech recognition in robotics then
isn’t in the ability to transform utterances into machine
readable form, but with how the computational elements
of the robot should process the machine readable words
and phrases into actionable commands. So, how do you
go about accomplishing this?
It’s a non-trivial task, as a search of the IEEE literature
on Natural Language Processing will illustrate. The
traditional techniques — such as Hidden Markov Modeling
— might be a bit intimidating if you don’t have a degree
in computer science. However, you can get a feel for the
tools used to map out the contextual meanings of words
and phrases by working with Personal Brain. You can
download the free, fully-functional personal version at
www.thebrain.com.
You can use the Brain to build context maps that
show, for example, inheritance and the relationship
between various objects in your home (see Figure 1). For
your robot to bring you the newspaper, it would have to
first locate the paper, and it would help to know the
possible locations the paper might be found in the home.
It would be inefficient, for example, if the robot began
digging through your clothes’ closet in search of the
newspaper, instead of on the table in your kitchen.
Once you get used to working with Personal Brain,
you might want to explore other uses in robotics. For
example, I keep track of my various robotic projects –
parts, suppliers, references, etc.— by creating networks
with the program. In fact, the best way to build context
maps is to create explicit, detailed maps that actually help
you in everyday tasks. SV

SERVO 11.2008 7
Robytes-Nov-edited.qxd 10/6/2008 10:38 AM Page 8

Robytes by Jeff Eckert


Bot Gets Bio Brain understanding of development and can be mounted on curved surfaces
of diseases and disorders which affect and stretched up to 1.7 times their
the brain such as Alzheimer’s disease, original size with no mechanical dam-
Parkinson’s disease, stroke, and brain age or significant change in conductivi-
injury. This research will move our ty. (You can stretch the stuff more, but
understanding forward of how brains conductivity drops by about 50 percent
work, and could have a profound by the time you get to 2.3 times the
effect on many areas of science and original size.) With further develop-
medicine.” ment of the material, bots of tomor-
row may be able to feel temperature
Give Us Some Skin and pressure like we do.

Must Be Nuts

This small mobile robot sports a


biological controller based on
cultured neurons. Courtesy of
the University of Reading.

Placing a functioning human brain


into a robot is still well within the realm
of science fiction, but some folks at
the University of Reading (www.read
ing.ac.uk) have created a biological This climber bot could boost coconut
brain of sorts and hooked it up as a pickers’ productivity by 800 percent.
robot controller. It has been known for
some time that cultured neurons are Flexible ICs may give robots a
It isn’t immediately apparent how
somewhat like ants that have been human-like sense of touch. students at Troy High School (www.
scattered away from the anthill in that Courtesy of the University of Tokyo. troyhigh.com) became concerned
they can no longer function as a single about the well-being of the world’s
unit. However, when interconnected in There’s a basic problem with professional coconut pickers, but they
a culture dish, such neurons form sim- creating a layer of skin for a robot. For are. It seems that gathering nuts from
ple networks that display spontaneous the skin to provide tactile feedback, it the “tree of life” requires harvesters to
electrical activity and can function as must be able to conduct signals back climb 100 ft trees and chop them
memories; i.e., they can “learn” things. to the “brain.” And if the skin is pliable down with machetes, which is both
In this application, Prof. Kevin enough to bend with the bot’s move- dangerous and inefficient. Hence, the
Warwick and associates placed the ments, it has to be made of something “robotic tree climber,” which the
neurons on a multielectrode array flexible, like rubber. The snag is that students developed for the 2008
which is a dish that employs 60 rubber is a terrible conductor. But now Lemelson-MIT InvenTeams event. The
electrodes to pick up the cells’ signals. researchers at the University of Tokyo remarkable feature of the remote-
This activity is then used to control the (www.u-tokyo.ac.jp) say they have controlled device is that it can
robot’s movement. When the robot developed a new, highly conductive accommodate changing tree
approaches an obstacle, signals are rubber, paving the way for robots with diameters, thanks to its employment
sent to the “brain,” and its responses stretchable “e-skin.” of a DryLin® QuadroSlide linear guide
are used to drive the wheels left or The trick was to grind up some system, which was donated by igus,
right to avoid hitting the object. The carbon nanotubes, mix them with an Inc. (www.igus.com), a manufacturer
research is not aimed at creating ionic liquid, and add them to the mix. of various motion-related components
biomechanical robots of the future, The resulting material flexes like ordi- and machinery. The developers of the
however. Rather, according to narily elastic but offers conductivity climber tell us that it will allow pickers
Warwick, “The key aim is that about 570 times higher. Apparently, to scale more than 40 trees per day, as
eventually this will lead to a better one can use it to create elastic ICs that opposed to the present five to 10. Will

8 SERVO 11.2008
Robytes-Nov-edited.qxd 10/6/2008 4:54 PM Page 9

Robytes

the resulting glut of coconuts cause mission-critical operations such as


a precipitous drop in the price of monitoring wildfires in real time and
coconut cream pie? Only time and searching for land mines in war zones.
the commodity markets will tell.
Bots For Art’s Sake
Heli See, Heli Do
According to Oscar Wilde, “Life
In the past, programming robotic imitates art far more than art imitates
helicopters has been something of a life,“ but sometimes art imitates
pain, given that they must perform imitations of life, and a couple
some fairly complex maneuvers and interesting works were on display this
(unlike fixed-wing vehicles) are inher- year. Perhaps the biggest spectacle Robotics continues to be a popular
ently unstable. But computer scientists centered around La Princesse, a 50 ft medium for artists, as demonstrated
by Miyata Jiro, the robotic
at Stanford University (www.stan (13 m) mechanical spider created by Japanese businessman.
ford.edu) — tired of laboriously the French performance art company
pecking out source code from scratch La Machine.
— have developed some AI algorithms The spider was showcased in
that allow their four-foot autonomous Liverpool, England, back in September
helicopter fleet to teach itself to fly. as part of the 2008 European Capital
The process involves both ground- of Culture celebrations. In the photo,
based and ‘copter-mounted instru- we see it clinging to the side of
ments, including accelerometers, Concourse House, a derelict tower
gyros, magnetometers, GPS receivers, block that was scheduled for later
and cameras. It begins with a human demolition.The spider was built in
using a remote control to put a vehicle Nantes, France, using steel and poplar
through a series of stunts and wood, and complex hydraulics, taking La Princesse, a giant mechanical spider.
repeating them several times. The an entire year to construct. Operated
instruments record the flight data, by up to 12 people strapped to its “When Japan entered its high
which becomes the basis of the body, it weighs 37 tonnes, has 50 axes growth period in the 1960s, Japanese
control program. But the AI system of movement, and offers seven society was transformed into a
monitors the resulting autonomous different special effects: rain, flame, `businessman culture’ characterized by
flight data, crunches the numbers, and smoke, wind, snow, light, and sound. entertainment, movies, karaoke, TV,
relays program modifications back to The project cost British taxpayers compartmentalized housing, bars,
the helicopter 20 times per second, £1.5 million ($2.6 million), plus the and even a sex industry that catered
allowing the vehicle to learn from its cost of treating unhinged arachnopho- to them. This artwork reflects my
mistakes and actually perform better bia sufferers, but at least admission to impression of this particular culture.”
than under remote control. the celebration was free. Miyata can be seen at
In the real world, such improved Less spectacular but (literally) www.youtube.com/watch?v=
autonomous performance could creepy is Miyata Jiro, a crawling glUnzzoFUxg. You may mistake the
enable these choppers to be used in humanoid robot created by Japanese- performance for just an amusing little
born artist Momoyo Torimitsu, parody, but thankfully we have critics
who now resides in New York. to set us straight. According to zing
Miyata is a detailed and lifelike magazine.com’s Rainer Ganahl, “The
model of a Japanese “salaryman” power and success of this life-sized
who basically crawls around on crawling doll lies in the dramatic
his elbows like a soldier in the representation of a businessman in
field. He has performed in New its most humiliating position: crawling
York, London, Paris, Amsterdam, in the street in a suit. This is a strong
Sydney, and Rio de Janeiro so far, linguistic metaphor, as well as a
Stanford’s AI system allows helicopters to evoking responses ranging from psychoanalytical and a pathological
learn aerobatic maneuvers by “watching” laughter to anger. one.” So there’s your elightenment
others. Courtesy of Stanford University. According to Torimitsu, for the month. SV

SERVO 11.2008 9
Geerhead-edited.qxd 10/8/2008 4:30 PM Page 10

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

A Self-Reassembling Robot

Ever seen a robot torn apart only to put itself back together? Jimmy Sastra, a student in the
Modular Robotics Lab at the University of Pennsylvania has. He helped create it. As with
most scientific endeavors, the Robotic Self-Reassembly After Explosion (SAE) project was
a solution to a problem: how to get a robot to reassemble itself after ‘disassembly’ by
‘explosion’ (“Towards Robotic Self-Reassembly After Explosion,” the Modular Robotics Lab,
University of Pennsilvania, Mark Yim, et.al.). Jimmy Sastra, a named author on the paper and
research student at the University, calls an explosion “the rapid randomized disassembly of
a system from a high-energy event.” As shown in the video linked here with, the explosion
is the separation of the robot as students kick it apart, separating it into three parts.

he Self-Reassembling robot is a thousands of parts and modules that The robot is designed to
T precursor to modular, self-
configuring robots of the future,
configure themselves for varying
applications or — as in this case —
disassemble along specific, preselected
lines or weakest links between the
which are envisioned with many reassemble all their parts after modules in a structured fashion. By
separation by explosion. ensuring that the robot separates at
Close-up of cluster with camera module. In this experiment, the goals of these “bonds” between the modules,
the robot are to perform a task, suffer the robot absorbs the shock and
an explosion, reassemble itself, and disassembles at points where it is
continue the original task from where capable of reassembling.
it left off. The self-assembly of the robot is
part of a larger plan for self-repair.
This cluster of five modules shows the This type of self-repair involves
camera module attached, top-side. diagnosis of the problem/break
points, a plan for re-assembly, and
an execution of that plan, according
to Yim.

Diagnosis
The robot uses sensors to
determine that it is no longer
connected to itself. The robot consists
of clusters of modules. According to
Jimmy Sastra, the clusters are
connected to each other at certain
modules — using magnets. Each
module face — which is connected to
another module face — has two IR
10 SERVO 11.2008
Geerhead-edited.qxd 10/8/2008 4:31 PM Page 11

GEERHEAD

Three separated clusters attempting to Two clusters making ground Two clusters even closer. The third
locate each other and re-join. toward each other. cluster is shown in the background.

(infrared) pairs: one is an emitter and other). The IR pairs also inform the three-axis accelerometer so that it may
one is a detector. modules as to who their neighboring know its orientation; whether it is
The pairs check to see whether modules are. standing or lying down. “After we kick
they can communicate with the set of Each cluster consists of five the robot to explode it, it might be
pairs on the other module facing modules screwed together. Each upside down. Using the accelerome-
them. If they can’t communicate with module in a cluster also uses IR pairs ter, it will self-right the cluster or the
each other, they know they have been to determine which module is its entire robot as needed. It needs to
“exploded” (disconnected from each neighbor. Each cluster talks to itself self-right in order to locomote to
using a CANbus, which is a global connect to the other clusters,”
bus connecting the internal explains Sastra.
microcontrollers. Each of three clusters has an
additional stand-alone controller
Planning and that communicates with the micro-
controllers in the camera modules.
Execution Each microcontroller runs its own
Each module in the robot state machine (software), according to
contains a microcontroller that Sastra. If the robot is fully assembled,
controls the angle of the module. it walks. If it is assembled, one of the
Each of three camera modules three stand-alone controllers in one of
employs a vision localization the three clusters will become the
processor. The camera module also master controller over the other
The single robot returns to its original contains a communications unit. clusters and control the walking task.
activity: walking. The camera module includes a As the robot walks, it uses its IR

More Entertainment Than A Political Debate!


By the time this is published, in the project include Babak
Jimmy Sastra and the self- Shirmohammadi, Michael Park, and
reassembling robot team will have Michael Dugan, all of the University
attended the Wired NextFest at of Pennsylvania. Sastra notes that
which they planned to demo the while there are about eight different
robot. “It’s a well attended event,” modular robotics labs around the
comments Sastra. world, the robot from the University
The robot is a collaboration of of Pennsylvania is a very unstructured
various labs at the University of demonstration of the technology,
Pennsylvania, including CJ Taylor’s and it uses a high impact means of
lab, which worked on the vision disassembling. Probably the closest
technology and Mark Yim’s lab, which to this robot is in a lab in Japan,
worked on the modular robotics. called the Entran robot, which can
Three clusters re-united into a Other researchers involved also self-assemble.
single robot.

SERVO 11.2008 11
Geerhead-edited.qxd 10/8/2008 4:35 PM Page 12

GEERHEAD

distributed system and each cluster


RESOURCES
will circle until it locates another.
When any two clusters see each
Video demo, self re-assembling robot, other (the camera of one sees the
separated, then
flashing LEDs of the other, and vice
reconstructing itself
versa), they start moving toward
http://modlab.seas.upenn.edu/
each other. As part of the re-assembly
wiki/?n=Main.JimmySastra?action=
download&upname=sae.mpg process, each cluster needs to localize
the other clusters so they can talk to
Roboticist Jimmy Sastra website each other. The blinking LEDs enable
http://modlab.seas.upenn.edu/ each cluster to ID the others because
wiki/?n=Main.JimmySastra they use different blink patterns.
Once the clusters recognize each
Other cool modlab robotics videos other, they come together so that
http://modlab.seas.upenn.edu/ they can dock at their ajoining
wiki/?n=Main.Movies modules, which use magnetic faces,
as previously mentioned.

continue walking. If at any point it Conclusion


determines that it is disconnected
from the other clusters, each cluster This technology is just the
The single robot with its third
cluster upright. begins searching for the others. This beginning of robots that can
becomes an independent task of each quickly re-assemble once they have
sensors to check whether the clusters master controller in each cluster. At literally been blown apart into many
are all connected. If they are, it will this point, the robot is essentially a pieces. SV

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

12 SERVO 11.2008
Full Page.qxd 10/7/2008 11:45 AM Page 13
MrRoboto-Nov-edited.qxd 10/7/2008 11:08 AM Page 14

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

Since I like to group similar topics with the questions in this power supply. The odd looking diodes D5 and D6 are
column, the theme this month seems to be motor controls. transient voltage suppressors (TVS) that protect the
transistors from excessive voltage spikes between the

Q . Hey, could something like a relay board be used


for driving really big honking motors with PWM?
I have eight relays, and (unless I’m confused) you
can make an H-bridge out of four, so it seems like you could
use this as a dual H-bridge motor driver if you wanted, and
collector and emitter. The values of all of these diodes and
transistors depend upon the current that you are running
through your relays; more current = bigger relays = more
drive current to turn on their coils. This type of motor
controller is pretty common in older “BattleBot” style
have your motor power completely separated from your logic vehicles. It is simple, rugged, and high powered. We call it
circuitry. Or is this nonsense? the “Bang! Bang!” motor controller because it has little
- Joe in Fort Collins finesse. It literally bangs the motor on and off. It works, but
it ain’t pretty. With a little more effort, we can create a more

A . In reality, you don’t need so many relays to make a


reversible motor controller. If you design a motor
controller that is just all relays, you would only need
two relays if one of them is a DPDT (double dole, double
throw). One example of this type of driver is shown in Figure
useful motor controller that can handle very large loads and
have variable speeds, as well. Usually, our robot motor
controllers are H-bridges that use transistors to choose the
direction of current flow through our motors, and from that
the motor direction. However, high powered H-bridges are
1. There are only two speeds with this type of a driver: ON expensive and need proper care and feeding. If we use a
and OFF. Diodes D1 and D2 shunt the CEMF, often called MOSFET and single DPDT relay, we can create very high
Back EMF to the relay coil and not to the transistors. Diodes current motor drivers for very little cost. Figure 2 shows just
D3 and D4 try to keep those voltage spikes out of your such a motor controller. This particular motor driver is limited
to eight amps because that
is the current limit of the
Figure 1. Relay only motor driver. transformer. The MOSFET is
capable of handling over 30
amps. Note that this design
uses opto-isolators to protect
the rest of our robot from
unfriendly voltage and
current spikes from the
motor controller. The relay
has the usual CEMF diode
and the MOSFET is protected
by a TVS, as well. Another
notable design characteristic
is the zener diode on the
gate of the MOSFET. This is
to protect the MOSFET from
having the gate ring at a
14 SERVO 11.2008
MrRoboto-Nov-edited.qxd 10/7/2008 11:10 AM Page 15

Figure 2. MOSFET and


relay motor driver.

higher voltage than the Vgs rating of the device. Ringing proportional to the difference between the speed we are
can occur on any MOSFET that is driving a high Vds (Voltage going now and the speed we want to be going. In other
across the drain and source of the MOSFET). Even if the words, if we want to be going 500 RPM and we are going
MOSFET has a voltage rating of 60V, the Vgs will typically be 100 RPM, we will have a larger P term than if we wanted to
much less than that. The resistor R4 is used to bleed off the go 500 RPM and we were already going 400 RPM.
voltage at the gate of the MOSFET which will speed up its Integral: We will add a correction every time we are not
switching time. The PWM frequency here is limited by the going the speed that we want to be going. This element of
opto-isolator transition speeds. The advantage of this type of the PID algorithm is usually the one that is misunderstood.
MOSFET/relay motor driver compared to the relay only driver With this element, we will accumulate an error term every
is that you can PWM the MOSFET and get variable speeds. If cycle of the PID where our speed is not where we want it to
you are driving large currents, however, it is a good idea to be. Sometimes the P error term will not be large enough to
turn the PWM off before switching motor directions to avoid reach our terminal speed. Over time, the I error term will get
arcing on your relay contacts. larger and force a greater error correction to eventually
occur. This is a very handy error term for making smooth

Q . I’ve heard that PID is hard to implement but that it


makes your motors run better. Is this true?

- Don
corrections to large error terms. This term should be kept
small relative to the other PID elements.
Derivative: The P and I elements have been driving us
onward to our terminal speed goal. As we approach our
goal, someone needs to start applying the brakes so that we

A . Hmmm, I guess this depends on your definition of


difficult. There have been many articles written about
PID algorithms, and if you have read some of them
you could come away with the idea that PID is horrifically
complex and difficult to implement. Really, this is not
don’t overshoot the target. This is what the D term will do.
As the motor speed gets closer to the terminal value that we
want, the D term will start supplying a negative correction to
slow the acceleration down so that we won’t overshoot our
target speed (by much). This term will be larger than the I
generally true. Sure, some of the very fancy algorithms that term, but still smaller than the P term. This term is arrived
need to run super fast for super accurate motor controls can at by subtracting the last error from the current error.
be very hairy indeed. But most of that complexity comes Eventually (we hope), the current error will be smaller than
from the need to have high accuracy for special applications. the last error and this term will get increasingly more
We can implement PID in our robot motors with a minimum negative.
of complexity because we would be happy with just getting Error: This is the name given to the difference between
constant speeds that don’t depend much on battery levels. the terminal (target) speed and the current speed.
Before we continue, some definitions are in order for the Correction: This is the PWM value that we will give the
elements of a PID algorithm. motors to tell them to speed up or slow down.
Proportional: We will apply a correction that is So, here is how a PID loop is calculated and used.
SERVO 11.2008 15
MrRoboto-Nov-edited.qxd 10/7/2008 7:15 AM Page 16

Read your chosen feedback value and subtract it from you should scale your readings to allow them to match
your desired terminal value. This is called the error term. You up with your PWM settings. I’m using a 10 bit PWM in
can get this any way you want — via wheel encoder, motor the PIC hardware, so I scaled my readings up by two to get
back EMF readings, or anything else you wish to use. It will better response.
be: error = (desired speed – current speed).
Calculate your P term. It will be: kP * (error term) = signed long getError()
Vproportional. /* Find the difference between where we want to be and
Calculate your I term. It will be: kI * SUM(all past error where we are. */
{
terms) = Vintegral. signed long error;
Calculate your D term. It will be: kD * (current error – unsigned int16 ma,mb;
last error) = Vderivative.
Calculate your Correction term. It will be: Vproportional setup_ccp1(CCP_OFF); //Turn off PWM
+ Vintegral + Vderivative. Note that Vderivative will most delay_us(500); //wait for steady state
likely be a negative term.
set_adc_channel(0); //get fwd side voltage
Apply your correction term to your PWM setting; this delay_us(20);
will set the voltage to the motor. ma = read_adc();
A PID algorithm will have terms that are used to multiply ma <<= 1; // “Amplify” the signal, making it
times the error term. These terms will supply the gain of the // more relevant
term. Think of them as amplifiers for the error term in the
PID algorithm. Typically, they are denoted with a lower case
set_adc_channel(1); //get reverse side voltage
k. In order of our definition above, they are kP, kI, and kD. delay_us(20);
You’ve probably heard the term “tuning a PID loop.” This is mb = read_adc();
the process of tweaking the three terms above to give your mb <<= 1;
PID algorithm the response you desire.
That isn’t so scary, is it? There are more sophisticated currPos = (signed long)((signed long)ma - (signed long)mb);
ways to calculate these values and come up with proper //printf(“ma= %lu mb= %lu\n\r”,ma,mb);
corrections that will work with your PWM generation, but
careful selection of your PID gains will allow your loop (called setup_ccp1(CCP_PWM_PLUS_3);
a loop because you do it over and over again) to return sane error = calcPos - currPos;
values. Your friendly neighborhood SERVO Magazine website
has a C program written in CCS PCM for the PIC16F73 return error;
}
microcontroller that allows you to play with your PID
algorithm to see what gain values cause what responses.
You can download this program at www.servomagazine. Note that new settings are only sent to the program
com under Mr. Roboto as picpid.zip. when you press the L key. This allows you to set several
I’ll describe the various functions of this demonstration attributes before the motor has to respond to them.
code first. Picpid will allow you to control the speed and Picpid is a very simple PID implementation, but it works.
direction of a DC motor through a serial interface at 115200 There are bugs in it, such as interesting motor behavior at
baud. You are free to choose your favorite processor, but I boundary conditions that I didn’t test and correct for. Since I
recommend that you use one that has a hardware PWM, as chose to use 16-bit signed calculations, the resolution isn’t as
well as a hardware USART, so that your PID algorithm can great as it could be, but again, it works. Experiment with the
run as fast as it can in the background. This program does settings to see what happens. You may wish to change the
not use interrupts to take the error term; it simply operates program to make it implement a positional servo mechanism
at a sample rate of every 5 ms. instead of one controlling motor speed. It can be done!
To do the best job with a PID algorithm, you should I will leave this as an exercise for the student. You too
have the sample rate repeat at a constant rate so your error can implement PID in your motors quite easily. However, I
terms will be proportional to both the time they are taken caution you — a PID algorithm of sufficient sample speed
and the error value that you get. Picpid is simply an example will take over your microcontroller if it is a low speed
program that will allow you to play with PID values to see device. I recommend that you implement PID on a dedicated
what effects they have on your hardware. microcontroller and talk to it via a serial connection like this
Picpid uses the ADC hardware to measure the CEMF (or one or SPI or even I2C so that your main computer can set
back EMF) of the DC motor to determine how fast it is its “mind” to higher things that you want your robot to
spinning. This isn’t incredibly accurate, but it requires no be doing.
other sensors to be used beyond that required to get the I hope that you’ve learned something this month.
voltage from the motor wires. Listing 1 shows the GetError() As usual, I can be reached for questions, comments, and
function which reads that back EMF. Feel free to modify this criticisms at roboto@servomagazine.com and I’ll be happy
to get your quadrature readings instead. (Listing 1, 2, and 3 to work on it! Until next time, keep on building those
are available on the website, as well.) Here, in this function, robots! SV
16 SERVO 11.2008
Full Page.qxd 10/7/2008 11:43 AM Page 17

email: sales@crustcrawler.com
NOV08NewProd.qxd 10/8/2008 9:54 PM Page 18

New Products

N E W P RO D U C T S
solution for those who haven’t yet mastered the skills of
ROBOT KITS programming. Using a flowchart-style programming
interface, even the most inexperience programmer can
be using his KicCrab in no time. The chip can also be
programmed in the Basic language for the more
experienced programmer. Those wishing to learn Basic
can program using the flow chart style and watch as it’s
translated to Basic in real time.
The assembly of this kit requires a skill level of 5 and
therefore may not be suitable for children under the age
of 15. Kits are available online for $79.95.
For further information, please contact:
KicCrad
1SORC Technologies Web: www.1sorc.com

1 SORC Technologies, LLC (pronounced “one source”)


announces the release of its premiere product, the
KicCrab walking crab robot kit. This kit is one of the
most complete robot kits on the market today,
EDUCATION
combining the three basic components of robotics
(mechanical engineering, electronics, and programming) New Robotics Curriculum
to create the ultimate robotics experience for both the
advanced and beginner robotics enthusiast.
The KicCrab is based on the popular three motor
walker design and utilizes tiny R/C airplane servos which
I nnovation First, Inc. (www.innovationfirst.com),
and Autodesk, Inc. (www.autodesk.com), have
teamed up to offer a new robotics curriculum package.
can be precisely positioned for controlled walking. It is primarily intended for classroom use, but it includes
Many hours have gone into the design to make it some features that should make it appealing to the
both appealing and functionally balanced for great home hobbyist, as well. Autodesk has been around
performance. All structural components are cut from for years, providing 2D and 3D design software to
light but durable expanded PVC plastic. manufacturing, construction, and other markets, and its
Kits are available in four colors: red, yellow, green, contribution is based on the Autodesk Inventor package,
and blue. The functional electronic circuit board is which is used by many professional robotics engineers.
printed on colored boards to match the crab colors. Innovation First is kicking in its VEX Robotics system,
When complete, the circuit board becomes the curved which is already used in more than 2,000 classrooms.
shell of the crab, giving it a unique character while The result is the new VEX Classroom Lab Kit, which
maintaining a robotic look. This versatile board is also “provides a custom solution for robotics education that
equipped with extra ports for the addition of an IR is flexible enough to be applied at multiple grade levels,
demodulator for remote control, I2C peripherals, IR including secondary and post-secondary.”
sensors, tactile sensors, temperature sensors, and The basic $699 package contains a set of 17 units,
light sensors, as well as a modulated IR output for each of which contains a separate lesson, concept, and
communications with other crabs or for annoying your activity. For a list of included hardware and options, visit
family by changing the channels on your TV. www.vexrobotics.com/vex-education.shtml.
The KicCrab offers USB programming via onboard The Lab Kits make it easy to bring VEX Robotics into
USB to TTL conversion. It also has a state-of-the-art the classroom while making budgets go farther. Turn-key
onboard Lithium Polymer battery charging circuit that bundles of essential classroom equipment make it easy
charges and manages the KicCrab’s battery using PC to order while saving money. The Classroom Lab Kit
power through the USB connection. The kit includes the which is ideal for two to five students. This bundle
battery, which should last the lifetime of the robot. includes everything needed to design, build, power, and
The KicCrab also includes the KicChip™ processor operate robots. Increase the challenge level by adding
and the intelligently designed KicStudio™ programming expansion kits for advanced sensors, drive systems,
environment. This system provides an outstanding and pneumatics. For larger classes, add kits for every

18 SERVO 11.2008
NOV08NewProd.qxd 10/8/2008 9:55 PM Page 19

additional two to five students.


Bundled kits are ideal for the beginning VEX
Robotics engineering lab and include popular accessory
items. Turn-key discounted bundle includes:

• Protobot Robot Kit


• Microcontroller
• Transmitter and Receiver
• Additional Servo
• Bumper Switch Kit
• Limit Switch Kit
• Advanced Gear Kit
• Chain and Sprocket Kit
• PWM Cable Bundle
• (4) Safety Glasses
• Inventor’s Guide
• Tank Tread Kit
• Booster Kit w/Additional Metal, Gears, and Hardware
• 7.2V Robot Battery and Charger applications. Wheels can be mounted one, two, or even
• 9.6V Transmitter Battery and Charger three wide. Mounting two or three wheels to the same
hub gives the flexibility of creating wider tread or mixing
For further information, please contact: different durometers.
Custom hub solutions are available subject to
minimum quantity orders (typically starting at 500).
Innovation First, Inc. Website: www.innovationfirst.com For further information, please contact:
and Autodesk, Inc. www.autodesk.com
520 W 67th St.
BaneBots, LLC Loveland, CO 80538
970•461•8880 Fax: 970•461•8771

Show Us What You’ve Got!


WHEELS
Is your product innovative, less expensive, more functional, or
just plain cool? If you have a new product that you would
like us to run in our New Products section, please email
New Line of Wheels and Hubs a short description (300-500 words) and a photo of your
product to: newproducts@servomagazine.com
B aneBots has a newly released line of wheels and
hubs specifically designed to
provide a simple, lightweight,
durable, low cost method of mount-
ing a wheel on just about any small
motor or shaft. Constructed of a
thermoplastic rubber tread bonded
to a polypropylene core, they
provide excellent traction.
The wheels are available in
eight different sizes ranging from a
small 1-3/8” diameter (weighing
only 1/4 oz) up to a relatively
large 4-7/8” diameter. Treads are
available in various durometers
including soft 30 Shore A green
tread, medium 40 Shore A orange
tread, and relatively hard 50 Shore
A blue tread.
Standard low profile hubs and
bushings are available supporting
shaft sizes from 2 mm upto 1/2”
in both drive wheel and caster

SERVO 11.2008 19
Events.qxd 10/8/2008 9:27 PM Page 20

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 walking robot race, Photovore, Search and Rescue,
local school or robot group planning a contest? Send an and an Art and Innovation contest.
email to steve@ncc.com and tell me about it. Be sure to www.robotgames.ca
include the date and location of your contest. If you have a
website with contest info, send along the URL as well, so we 24 Hawaii Underwater Robot Challenge
can tell everyone else about it. Kahanamoku Pool, UoH at Manoa, Honolulu, HI
For last-minute updates and changes, you can always Timed, multitasking tethered mission.
find the most recent version of the Robot Competition FAQ www.marinetech.org/rov_competition
at Robots.net: http://robots.net/rcfaq.html
29 FIRST LEGO League of South Africa
— R. Steven Rainwater Championship
Sci Bono Science Center, Johannesburg,
South Africa
N ov e m b e r FIRST LEGO League events.
www.fllsa.org.za
1 Bloomington VEX Tournament
Ivy Tech Community College, Bloomington, IN TBA South’s BEST competition
Events include Top-It-Off-2, Pythagorean-2, VEX Beard-Eaves Memorial Coliseum, Auburn
Tractor Pull, and a CAD Design Contest. University, Auburn, AL
http://robotics.bloomington.googlepages.com Different each year, see website for details.
The listed date is for the state-wide championship
15 ROBOMO Expo contest. A month earlier, the various teams have
Indian Trails Public Library, Overland, MO regional contests and the winners go on to
This year’s ROBOMO will include demonstrations compete at the state-wide competition. BEST
of mini-Sumo, line-following, mini-Magellan, and is very similar to the FIRST contest except that in
robot soccer. All robots are welcome. There the BEST event, teams of students build robots
will be door prizes and a Chinese food buffet from standardized kits with only minimal guidance
afterwards. from their corporate sponsors.
www.robomo.com www.southsbest.org/ or www.bestinc.org/

21-23 All Japan MicroMouse Contest December


Tsukuba, Japan
Includes Micromouse, Micromouse Expert level, 4-31 ROBOEXOTICA
and Micro Clipper events. Museumsquartier, Vienna, Austria
www.robomedia.org/directory/jp/game/mm_ Robots are tested on serving cocktails, mixing
japan.html cocktails, bartending conversation, lighting
cigarettes/cigars, and other achievements in
22 Roaming Robots Grand Final electronic cocktail culture.
Kent, UK www.roboexotica.org/en/acra.htm
“Robots” (RC vehicles) attempt to destroy each other.
www.roamingrobots.co.uk/events_ 5 Robotex
calendar.htm Tallinn University of Technology, Tallinn, ESTONIA
www.robotex.ee
22-23 Canadian National Robot Games
Ontario Science Centre, Toronto, Ontario, Canada 17-21 IROC International Robot Olympiad
Lots of events including Mini-Sumo, full size Kuala Lumpur, MALAYSIA
Sumo, fire-fighting robots, line-following, a www.iroc.org or www.iiu.edu.my/ICOM/2008

20 SERVO 11.2008
TwinTweaks-Nov-edited.qxd 10/6/2008 3:30 PM Page 21

THIS
MONTH:

Surveyor’s
Travels
FIGURE 1.THE SURVEYOR.

T he folks at Inertia Labs may have


forever earned a celebrated place
in the memory of combat
robotics fans with their formidable
received the base kit so that we could
make another bot. Two bots in one
article is a bit too crowded, so the
project base will have to wait for
Lantronix Matchport 802.11b/g WiFi,
and the robot can be teleoperated
from a distance of 100 m indoors,
and up to 1,000 m with a line of
and uplifting creations like Toro, but another month. sight. The bot makes use of three
Alexander Rose and Reason Bradley At first blush, it is evident that the layers of PCBs (Figures 2, 3, and 4),
have also put their energies into other, Surveyor is one sophisticated bot. The but with the plastic headpiece holding
less destructive projects. One of their tough rubber treads give the bot a down the camera, the lower boards
new endeavors at Inertia Labs is as a rugged feel, and the solid frame are fairly difficult to reach. That,
designer and distributor for the new constructed from thick plastic and however, shouldn’t be a major
quad motor Surveyor SRV-1Q from machined aluminum is like Chuck concern. The topmost PCB on a fancy
Surveyor Labs — a nifty little treaded Norris walking into High Tea. The red wafer is what will intrigue most
robot outfitted with a high quality elegant exterior hides four DC gear- tinkerers, because it is this board
camera. Perhaps the most distinctive motors with a 100:1 gear reduction that possesses the spare ports for
detail about the SRV-1Q is that it that gives the robot both hefty torque additional sensors and other flights
allows you to do your surveying and considerable zippiness. The robot of fancy. And to top it all off, the red
autonomously or over a wireless is also quite well equipped in the PCB is graced by the presence of a
network. How cool is that? With that sensor department. A high quality nice Blackfin processor.
most tantalizing detail about the camera takes center stage on the face
Surveyor robot and its capability to be of the bot, and it is flanked by laser One Fish, Two Fish,
controlled wirelessly over the Internet, pointers for range finding. And in
we were excited to see what this web case those sensors don’t make the bot Red Fish, Blackfin
savvy robot had to offer. aware enough for you, the fancy The Blackfin processor from
printed circuit boards (PCBs) have Analog Devices debuted circa 2001,
Let Your Robot ports for additional sensors like and it is designed specifically to
ultrasonic range finders. support open source operating
Do the Walking The robot comes with an antenna systems like Linux. This is great news
The Surveyor robot can be and a charger that imbues it with over for tinkerers of a programming
acquired in pre-assembled form, or four hours of battery life. A clearly persuasion, but the descendant of the
it can be bought as a kit that needs labeled switch at the back of the bot SHARC processor has something to
to be put together. We received the labeled ON, OFF, and CHARGE is also offer to more mechanical hobbyists,
already built version, but we also a comforting sight. The robot radio is as well. The Blackfin was designed to
SERVO 11.2008 21
TwinTweaks-Nov-edited.qxd 10/6/2008 3:31 PM Page 22

Twin Tweaks ...

FIGURE 2 FIGURE 4

FIGURE 3

create a platform where applications something that is a much better use demonstrate the wireless capabilities
including sound, video, and signal of one’s money than the newest of the Surveyor, but there is also
processing could be integrated gaming console. something intangibly empowering
without sacrificing the performance of about controlling a robot that lives in
any single application. A project that My Robot is More another continent. The project also
combines video and other signal earns kudos for the camera on the
processing sounds a lot like a camera Well-Traveled than Surveyor, which gives a clear color
toting robot – how fortuitous! And to Your Robot picture of the surroundings that is
top it all off, the Blackfin cuts through We were eager to test out the detailed enough to read model
the waters of signal processing with capabilities of the SRV-1Q, but the billboards scattered around the
the utmost energy efficiency. idea of tackling a robot without the environment that offer clues to a
The Blackfin processor on the comfort of a software CD did seem a secret message.
SRV-1Q handles the camera (Figure 5), little daunting. We wanted to get an Why would these intrepid bots be
which is an Omnivision OV9655 1.3 idea of the bot’s capabilities and limi- given a playground by an energy
megapixel sensor. For those of us that tations before we tackled it ourselves, company, anyway? Apparently, the
don’t structure our thoughts with spec so we looked to the place where any demonstration is meant as a way to
numbers, that basically means that roboticist would look if they were in spotlight the company’s environmen-
the bot is outfitted with a nice color the same situation – Australia! tal initiatives. The SRV-1Qs in the BP
camera. The SRV-1Q seems to be A fun showcase of the Surveyor Explorer all run off of batteries that
nothing but quality through and robot’s abilities comes from a are charged with BP solar panels. For
through, and you get what you pay somewhat unexpected place – the that reason, the bots only run during
for. The bot comes with a price tag of folks at the Australian branch of the the daytime (in Australia).
a little under $500, which really seems energy company British Petroleum. When the website debuted, the
quite reasonable given the caliber of The BP Explorer is a website that little bots were so popular that the
the robot. A fine chassis, robust allows users from all over the world waiting time to use one of the five
motors, a stunning camera, an able to drive a Surveyor robot around a was several hours. When we surfed
processor, and more software than diorama of a cityscape and the the website, however, there was no
one could shake the proverbial stick at surrounding countryside. Not only is wait time at all and we were able to
all seem like excellent justifications for this a cool way to drive around at our leisure. After a
couple of rounds, we felt that we
had become sufficiently acquainted
FIGURE 7

FIGURE 6 with our robot’s Australian cousins,


so we turned back to the home front
with renewed excitement and pride
in the capabilities of the
robot.
We personally think
it is a great thing to see
the adventuresome
bot involved in the
environmental cause,
especially when it takes
FIGURE 5 the form of a fun and
interactive game.
22 SERVO 11.2008
TwinTweaks-Nov-edited.qxd 10/6/2008 3:32 PM Page 23

Surveyor’s Travels

Even Robots can have them you can perform a much quicker
fix than the one we did. The pin in
problem. After we were connected,
the mysterious purple smear on the
Dog Day Afternoons the connector on the antenna came Java console was replaced by an
After our international adventure, out so easily because the connector image of our dorm room desk. While
we were even more excited to tackle was socketed and it wasn’t soldered this might seem random, it was
our SRV-1Q. Even with the SRV-1Q in to a wire. Since this is the case, some because the robot was looking at our
pre-built form, there is some minimal needle-nosed pliers can be used to desk. Before we could officially get to
assembly required. All you need to do simply extract the pin with no ill playtime, we had to configure the
it attach the antenna to the bot, and effects. With the assembly of the Matchport connection for easy access.
while this might sound like a trivial robot finally finished, we let the little This actually involves a somewhat
task it turned into something much bot charge up its Li-poly battery pack lengthy process, but roboticists are
more dramatic. Normally, the antenna before we made our first attempt at carefully guided through the steps
should just screw into place near the teleoperation. with generous screenshots and clear
stern of the robot, but our parts had a directions.
bit of a compatibility problem (Figure Smooth Teleoperator With all of the network nuts and
6). The connector on the antenna and bolts taken care of, we were ready to
the connector on the bot were both Don’t be fooled into thinking that get going (Figure 10). Some of the
male, with the connector pins to the SRV-1Q doesn’t come with any controls on the Java console are pretty
prove it. It was only a minor setback, goodies just because it doesn’t come straightforward. Directional arrows
and after a quick trip to our favorite with a CD. The bot comes equipped control the basic movements, while a
electronics shack we were ready to with some handy firmware that makes familiar red octagon causes the bot to
proceed. We acquired a male-to-male wireless operation over the computer freeze in its tracks. Some controls,
connector (Figure 7), but we hoped a snap. To get everything fully config- however, are a bit more enigmatic.
that the extended length of the ured, you’ll have to visit the Surveyor Buttons labeled fast and slow can
connection wouldn’t interfere with the website (www.surveyor.com). The control the motor speed of the robot,
bot’s nifty treads. Surveyor website provides clear and and the different sized rectangles on
To begin the process, we screwed concise instructions on how to get the right side of the console can
the new connector into the one on started with your bot. There are a change the resolution of the screen.
the antenna. When we weren’t sure if plethora of software applications to Don’t think that you could get a huge
it was fitting nicely, we unscrewed the choose from, but we went with the screen for nothing though – there’s a
male-to-male connector, and we were highly recommended Java console. corresponding trade-off in frame rate.
surprised to see the pin from the The Java console can be downloaded In addition to the screen with the mys-
antenna come with it. for free, and after the generic terious button, the command prompt
And with that, our problem had installation procedure you’ll have a window also pops up with the Java
been solved, and the antenna screwed screen pop up as in Figure 8. console (Figure 11), and it provides
onto the robot just as it should have. After opening the console, the even more enigmatic feedback that is
We were assured by the folks at next task was to connect to the sure to delight programmers.
Surveyor labs that this mix-up only robot’s wireless network (Figure 9). Driving around our own SRV-1Q
occurred in a small number of kits, An “SRV1” network conveniently was quite like our experience with the
but if you were to run across one of popped up, and connecting was no Australian robot, but without the lag

FIGURE 10
FIGURE 8

FIGURE 9

SERVO 11.2008 23
TwinTweaks-Nov-edited.qxd 10/6/2008 3:36 PM Page 24

Twin Tweaks ...


processing. There are options for edge
and blob detection, and also a myriad
of other things to keep even the most
technical of tinkerers occupied for
days on end. Some of the options give
some quite interesting images, from
FIGURE 12 the minimalistic skeleton to the unflat-
tering Sobel edge convolution (Figure
13) to the trippy Canny edge detection
FIGURE 11 method (Figure 14). You can even turn
the object of your robot’s attention
into a cartoon using the whimsical
time. The scenery of the miniature software module that allows several Kuwahara variance filter (Figure 15).
cityscape was replaced by the scenery computers to view the output from For all of those folks unfamiliar
of our dorm room. The quality of the the camera, so your robot can have a with the refined mathematical
camera image was stunning, and the nice audience as it surveys the land. techniques of image processing
treaded robot was also deceptively (ourselves included), the numerous
zippy. One important caveat, however, Your Telepresence methods presented by Roborealm are
is that the robot will continue to move a great motivation for some intellectu-
in the direction specified until another is Requested al development. You can drag your
command is given. We figured that For those who can study a robot’s cursor over each option for a very
the driving would be like that of the behavior like a patient naturalist and brief description, but this will probably
Australian bot – pressing a directional determine how the bot could be only serve to whet your intellectual
button would cause the bot to move improved, the Surveyor website also appetite.
in that direction for a time proportional offers the source code for the Java You’ll be asking yourself why the
to the time that the button was console (which is open source). The Sobel edge convolution creates such a
pressed. This was not the case, and site even encourages tinkerers to mess scary picture, and a little research will
the unexpected learning curveball around with the code and share their reveal that the Sobel method analyzes
caused the over-eager robot to improvements. In addition to the Java the image gradient and takes the
crash into a wall. Thanks to its robust console, there is also a Python console areas of highest gradient as the likely
construction, no damage was (also open source, of course), and the edges of the image. Then, you have
inflicted, but we were more careful website has links to all of the most to look up what an image gradient is,
from then on out. popular third party software like and you’ll find out that it is a gradual
After a bit of practice, the driving Roborealm and Microsoft Robotics blend of colors that changes in
becomes a bit more intuitive, but Studio. The popular platform discretizable steps from low values
slower motor speed is definitely Roborealm can be acquired for free (white) to high values (black) of color.
helpful for navigating obstacle-laden at www.roborealm.com. The down- Then you’ll want to learn about the
areas and for enjoying the scenery. load was quick and painless, and soon trippy Canny method, and the
The frame rate of the camera is also we were ready to see what else the wonderful floodgates of curiosity will
admirable, because it is good enough SRV-1Q had to offer (Figure 12). have been officially opened. After an
so that surveying your space doesn’t The Roborealm program sports an exciting whitewater ride, you’ll find
become a motion sickness inducing interface that looks fairly intimidating, that you are much more well-versed
blurry mess. even if only because it has such a in the subtleties of image processing
The robot even has a built-in plethora of options for image than you were before.

FIGURE 15

FIGURE 13 FIGURE 14
24 SERVO 11.2008
TwinTweaks-Nov-edited.qxd 10/6/2008 3:36 PM Page 25

Surveyor’s Travels

But just in case image processing design to reality. The open source the Lunar Lander. With all of the
isn’t your cup of tea, the Surveyor mentality seems to have been truly promise shown by the SRV-1Q and the
can also run autonomously using adopted by the folks at Surveyor, with impressive community that is growing
interpreted C programming. Programs all of the shared software, hacks, and around it, we wouldn’t be surprised to
are stored in Flash memory. There are enthusiasm for creating a better and see a robot like it end up on the
special robot commands and the more interesting product. moon someday. SV
protocol is also available on the The Surveyor Labs website
website. The robot-specific commands features a link to a video about the Special Thanks to
even include those for a “wander Google Lunar X Prize that talks about Zander Rose and Reason Bradley
mode” and a “swarm mode.” There the new contest to send a robot to of Inertia Labs and Howard Gordon
are entertaining videos on the website the moon tasked with photographing of Surveyor Labs.
that demonstrate these. And, as you
might have guessed, there is also
sample code that can be acquired
through the website, and — by
extension — the community of SRV-1Q
users that frequent it.

Open Source
Opening Doors
Perhaps the most exciting things
about the SRV-1Q are the possibilities.
In the space of this article, we have
hardly even scratched the surface of
this bot. It can run autonomously, it
can archive the video it takes, you can
even get a bunch of SRV-1Qs together
to make a swarm. The bot can be
expanded with more sensors, and it
can even be given “stereo vision” with
the addition of another camera. Hacks
like stereo vision and other things that
score highly on the cool factor scale Experience a Faster Way to Search for Components!
are all shared on the Surveyor Labs
Jameco Electronics’ new catalog and Web codes allow you to quickly jump
website, and a Robot User Forum
enhanced Jameco.com website are two from catalog to website to view additional
encourages hackers and hobbyists to tools that are designed to work together specifications, application notes, photos
share their latest projects. to give electronic professionals faster and more products. You'll find exactly
All of the possibilities are made access to the hottest components in the what you're looking for without having to
reachable because the bot is open industry. wade through hundreds of thousands of
products on a complicated website or
source. Not only can tinkerers mess Color coded references throughout the
wielding a twenty pound catalog.
around with the source code, but catalog assist you in analyzing a wide
range of brand choices (from franchise With a flip of the page or a click of the
schematics and other diagrams of the sourced to house brands to factory mouse, you have all the tools you need
robot are also freely available. Users overruns) offering you more pricing at your fingertips. Reach for Jameco first
can even download a Solidworks options than you'll see anywhere else. and order your catalog today.
3D model of the SRV-1Q from the
website so they can truly get an idea
of how this robot has progressed from

For more information, go to:


Order your
www.surveyor.com web-enabled
www.bpexplorer.com.au/ catalog today!
www.roborealm.com
www.analog.com
www.cyberbotics.com/
http://msdn.microsoft.com/ Call 1-800-831-4242 or Visit www.Jameco.com/Speed for the ride of your life!
en-us/robotics/default.aspx

SERVO 11.2008 25
CombatZone-edited.qxd 10/7/2008 3:36 PM Page 26

Featured This Month:


Features
26 BUILD REPORT:
30 Pound Combat Robot
— Mitch by Ray Billings BUILD REP RT
28 MANUFACTURING: 30 Pound Combat Robot — Mitch
Even More Things to
Consider When Building a ● by Ray Billings
Fighting Robot by Mike Jeffries

33 PARTS IS PARTS:
F requently at events, I am
inundated with questions on
how to get started in combat
reason this bot couldn’t have
been built with a simple drill
press, or even a hand drill and
Chain Length Calculator robotics. I’m always honored by basic hand tools. Most of the
and Chain Path Visualizer the requests, and enjoy the material used was inexpensive,
by Kevin Berry enthusiasm that potentially new as well. And the best part: This
builders bring to the sport. But machine was very effective,
due to the violent nature of winning the 30 pound division at
35 A Brief History of WAR some of my more high-powered the 2008 RoboGames event;
by Robert Farrow creations, I always feel hesitant to going undefeated in the class.
tell a 10-year-old how to build a I started out with four of the
heavyweight spinner! I usually basic 20:1 36 mm planetary gear
Events recommend something simpler to motors from Banebots. They are
30 Aug/Sep 2008 Results and start out with — like a wedge — only 1.5” tall, allowing me to
but up until recently, I didn’t have create a very low profile robot
Nov/Dec 2008 Upcoming
an example of my own to display. and still have decent power.
Events Well, all that changed
for the RoboGames
31 EVENT REPORT: event this year.
Introducing Team
Robot Battles 2008
Hardcore’s first wedge
by Charles Guan — Team Test Bot
bot: Mitch.
Mitch was created
ROBOT PROFILE – Top almost completely from
Ranked Robot This Month: off-the-shelf parts and,
although there were
34 Limblifter by Kevin Berry some areas that were
machined specifically for This is Mitch, after winning the 30 pound class at
RoboGames. You can see some of the scars on the
assembly, there is no wedge from all the action.

26 SERVO 11.2008
CombatZone-edited.qxd 10/7/2008 3:37 PM Page 27

Paired with the new wheels


that Banebots just
released, this made for a
relatively inexpensive and
responsive drivetrain. I also
used the bearing blocks
that Banebots sells to
support the drive shafts. I
ended up shortening the
This is the view of the shock mounting from the
output shafts of the gear underside. I used three rubber standoffs on each
motors about half an inch end. These really helped a lot to isolate the bot
from the big hits, and I credit a great deal of our This is an overhead view of the bot
to fit into this design. The success with Mitch to these isolators. with the titanium panel removed.
wheels extend out both the
bottom and top equally, allowing custom fan arrangement in the have to worry about weight. The
the bot to drive inverted. future. Radio control was provided back rail in Mitch was actually 1”
For battery power, I wanted by a Spektrum DX6 transmitter thick UHMW, although there would
something simple and didn’t want coupled with the BR6000 receiver. have been no reason I couldn’t have
to overvolt the motors too much. A 2.4 GHz system such as the used more of the aluminum in its
Overvolting is a very common Spektrum (or some other non- place. The truth is, I had the UHMW
method for improving the power frequency dependant system) is a laying around. Sometimes the
output of a DC motor, and frequently requirement for combat events at right part is whatever junk you have
combat builders will double (or the RoboGames. Many competitions on hand!
more) the rated voltage of a motor still allow the 75 MHz systems, so Top and bottom plates are
to get maximum power. But I this isn’t mandatory everywhere, but identical, and were made from 1/4”
wanted this machine to be if you are new to this sport and Lexan. This was also a matter of
dependable, with the least amount want to get equipment that you will convenience, since it was also mate-
of maintenance needed as possible. be using for the foreseeable future, rial I had on hand. I had considered
For that reason, I went with some I highly recommend some form of using some thinner titanium in
four cell lithium polymer batteries, spread spectrum system. Make sure constructing the top and bottom
for 14.8 volts. The motors are rated you get a receiver that correctly plates, but the Lexan made for a
for 12V, so I felt this was a good failsafes on all channels, such as the quick and easy build. For the final
compromise between reliability and BR6000. There are some systems combat-ready machine, I ended up
power. I used a pair of 2200 mAh that only failsafe on the throttle making an extra titanium plate to
batteries from Hobby City. channel. The remaining electronics place on top of the top Lexan plate
For speed control, I used the in the system are a small battery to protect the internals. I machined
standard for most of the larger eliminator circuit from Park, and the in a .25” recess around the inside of
weight categories: the Victor 883 smallest main power switch sold by the frame rails, so that the top and
units from IFI Robotics. Since these Team Whyachi. A list of the parts bottom panels were set into the
are rated for 60 amps continuous at used is included here. rails. This was the only step that
24 volts, I felt I could run them at The front and side rails are 2” required any fancy machining
the lower voltage (and probably tall by 1” thick 6061 aluminum. I equipment, but could have easily
nowhere near the maximum amps) could afford to use such thick
This is a view of the interior with all panels
without the fans. This was necessary material since the bot was going to removed, showing the layout. You can
pretty much see all of the components.
due to the extremely low clearance be very compact and I would not The block of foam towards the top houses
inside the bot. There were few the receiver and battery eliminator.
problems with this setup,
although we never actually
stalled the drivetrain, which I
suspect would be an issue if
this ever happened. I may
consider making some kind of
The bolt holes for the motors were
countersunk. This certainly isn’t required,
since the clearance top and bottom was
more than sufficient for the bolt heads to
stick out. I simply didn’t want an opponent
to be able to “catch” a bolt head that was
attached to the motor/gearbox assembly
and possibly damage it.

SERVO 11.2008 27
CombatZone-edited.qxd 10/7/2008 3:38 PM Page 28

providing these as a guide


to making a simple and
effective combat robot
which you can copy
exactly or modify as you
see fit. The frame and
drivetrain minus the
The wheels from Banebots get fantastic traction, but
they are very soft rubber and wear quickly. Buy spares! wedge weighs in at
about 15 pounds, giving
and bottom plates match the plenty of weight for any extras you
exterior dimensions. The only may feel like adding. Our wedge
A more close-up view of the speed controllers. critical dimension was to make weighed in at ~12 pounds, giving
I have used some zip strips to try to manage sure the distance from the top to us a combat weight of slightly less
the mess of wires that invariably comes
from wiring a bot. Don’t be afraid to tie bottom plates was 1.5” to than 27 pounds.The wedge on
down everything that you think will move
around. Nobody will ever give you a bad correspond to the height of the Mitch is constructed of .25” 4130
time after you’ve won a match and tell you motors and bearing blocks. steel, which was cut and welded
that you have too many wire ties!
Available on the SERVO website into the final shape. A big part of
been avoided if needed. You could (www.servomagazine.com) are Mitch’s success is due to the shock
simply use 1.5” tall aluminum for the AutoCAD drawings (and PDF mounting I used for the wedge. A
the frame rails, and made the top files for those without access to wedge that is more than 1/3 the
AutoCAD) with the specifications on bot’s weight is obviously substantial
Mitch’s construction, not including for the class, but the shock mounts
the wedge mounts. With 1” thick really helped isolate the chassis of
aluminum across the front and the bot from the big hits from all
sides, there is plenty of opportunity the nasty spinners in the 30 pound
to mount a wedge in almost any weight class. The rubber isolators
fashion you would like. I am are the only item I cannot find you
a link to the exact part I used. I
For a simple, quick, and cheap locating
method for the wheels, I simply stacked bought these surplus years ago and
washers on each side of the wheel. This kept
the wheel centered in the wheel opening, but like most surplus items, once they
allowed some side to side movement of the are gone you can never find them
wheel on the axle.
again. McMaster-Carr sells many
Parts List rubber isolation mounts though, so
you can find similar items, such as
ITEM SUPPLIER LINK their part #9376K39. Mitch proved
• Drive motors http://banebots.com/pc/MP-36XXX-545/MP-36020-545
• Wheels http://banebots.com/c/WHB-KS3-298
to be a tough little machine, and
• Bearing blocks http://banebots.com/pc/MOTOR-ACC/PB-S3751-BB was a blast to build and drive. Top
• Batteries www.hobbycity.com speed was manageable at around
• Speed controllers www.robotmarketplace.com/products/IFI-V883.html 8 mph, and was easily controlled. If
• Power switch www.teamwhyachi.com/MS1.htm you have any questions on the parts
• BEC www.robotmarketplace.com/products/0-PBEC1.html and materials used, I can be reached
• Radio www.robotmarketplace.com/products/0-SPM6600.html
at ray@hardcorerobotics.com. SV

MANUFACTURING:
Even More Things to C nsider
When Building a Fighting Robot
● by Mike Jeffries

I n previous issues of SERVO, I’ve


talked about weapon and drive
systems in robot combat. There are
a lot of important things to consider
that don’t fit under either of those
umbrellas but still merit considera-

28 SERVO 11.2008
CombatZone-edited.qxd 10/7/2008 3:39 PM Page 29

Beta uses chain drive to Checkmate uses a strong baseplate


power its electric hammer. for component mounting.

Crocbot uses car


style steering to
maneuver in the
arena.

tion when building your bot. protected and able to be supported transmit power from one shaft to
on both sides. External wheels will another over a gap. Chains need to
Car vs. Tank Steering prevent the robot from being hung be aligned more precisely than belts
up on a competitor’s armor if it due to their inflexibility. If they are
Most robots use tank steering, gets lifted off the ground. External not aligned well, the chain is likely
which is where each side of the wheels can be hit easily by the to fall off or break.
drive system can go forward or opposing robot’s weapons and Gears require the highest
backward independently allowing are subject to many more direct precision of the three options and
the robot to go forward, backward, impacts. Which option is best are also able to be the most
or turn in place. Car steering works depends on both the design of the efficient. They are not, however,
just the way it sounds. The robot robot and which features are most able to span the same distances
will drive like a large, metal remote- important to it. that belts or chains can. Tight toler-
controlled car. One common point ances and proper pitch selection
of confusion in tank steering is Belts, Chains, and can result in a nearly indestructible
turning while reversing. With the Gears power transfer system, however, if
way tank steering works, when the pitch is too small or the gears
you’re turning left from standing You’ve got to get the power are too loose or tight, you’re just
still, the right side wheels are going from your motors to your wheels asking for catastrophic failure.
forward and the left side wheels are and weapons somehow. Belts,
going backward. When you’re chains, and gears are your three Chassis
turning left while moving forward, options if the motor can’t have the
the right side wheels are spinning wheel or weapon attached directly At the core of every competitive
faster than the left side in the to it. robot is a strong chassis. It doesn’t
forward direction. When going in Belts are fairly lightweight and matter how powerful your spinning
reverse, however, the left wheels are can transmit power over large gaps. weapon is or how high your arm
spinning faster backwards than the There are multiple types of belts to can flip other robots if the chassis
right, causing it to rotate to the left choose from but most use tension can’t handle the forces that act on
while moving to the right. and friction to provide enough grip it both internally and externally. A
on the pulleys on each side of the small number of construction
External vs. Internal system to transmit power. methods make up the majority of
Wheels Chains are stronger and heavier combat robot chassis today.
than belts, but serve essentially The first method is to use
Internal wheels are better the same function as belts. They square, tubular, or right angle metal

Grue uses Stewie has an aluminum


tank style unibody chassis.
steering to
maneuver in
the arena.

Sewer Snake has external wheels.

SERVO 11.2008 29
CombatZone-edited.qxd 10/7/2008 3:40 PM Page 30

Tillah uses belts to power


its spinning drum.

Totally Offensive
uses gears to drive
Storm II has internal wheels. around the arena.

beams to form a strong skeletal defense. This style tends to be Perhaps aluminum or titanium
chassis. Armor and components are lighter than a skeletal chassis but armor is a better fit for the job.
then mounted to the chassis. This often leads to difficulty in replacing You are not limited to a single
arrangement allows for easy or accessing parts. choice in armor. Often robots will
replacement of damaged armor and The third type of chassis functions be heavily armored in areas the
components, and easy access at any similarly to the second, but relies on builders think will be subject to the
angle. The main downside of this a strong base plate for component most stress and have something
type of chassis is that unless it’s very mounting. The armor normally is a that acts essentially as a dust cover
carefully designed it will be heavier shell that can be completely for less vital areas. When choosing
than the other chassis styles. removed for easy access to most of which material, how much, and
The second type of chassis uses the components. The one difficulty where, you should look at the
the frame itself as armor. Instead of with a chassis like this is making it robots you’ll likely face. If there are
working like a skeleton, this chassis strong enough to hold up to com- very few robots with hammer
functions more like the shell on a bat while keeping the weight low. weapons, top armor is less of a
crab. A strong outer body with rigid These are only a few of the priority. With most arenas in use
internal supports holds all the parts most popular chassis styles. There today, there isn’t much need for
and provides for a very strong are more options of varying thick bottom armor unless it is a
complexity and many hybrids of structural part of your robot.
the three mentioned that have seen Layering different materials can
success in robot combat. work very well in robot combat.
Having a thin layer of a material
Armor resistant to cutting over a thicker
impact resistant material that cuts
Choosing the right armor is easily can act to minimize the
often the difference between negatives while keeping weight and
winning and losing in robot combat. costs low. SV
Do you go with the stronger,
Village Idiot has a heavier steel? Do you choose the All photos courtesy of BuildersDB
skeletal chassis. light, but easily cut polycarbonate? (www.buildersdb.com).

EVENTS
Results and Upcoming Events
Results Aug 12 –
Sep 14, 2008
Upcoming Events
Nov-Dec 2008 A ntweight Benelux Championship
will be held by Dutch Robot
Games in the Netherlands on

H ORD Fall 2008 was held by the


Ohio Robot
Club in Strongsville,
R oaming
Robots will
hold an event
OH, on September in Maidstone,
13th. Twenty-three England on
bots were entered. November 22nd.

30 SERVO 11.2008
CombatZone-edited.qxd 10/7/2008 3:41 PM Page 31

November 1st, and a large


bot event will be held on
November 6th.
R obots Live will
hold events at
Reading on November
15th, and Birmingham on November
22nd. Please go to www.robots
live.co.uk for more details. SV

EVENT REPORT
Rob t Battles 2008
● by Charles Guan — Team Test Bot

W hat’s the second longest-


running robotic combat
competition ever? It’s neither
The 12 pound battle
royale at Robot
Battles 2008.

BattleBots nor Robot Wars. In


fact, you have probably never
even heard of it. It’s the Robot
Battles series of events, which
held its first tournament in 1991
and has been held every year
since then at the Dragon*Con
sci-fi and fantasy convention
every Labor Day weekend in Robot Battles, the longest-running indie
Atlanta, GA. What has kept it robot fighting event. especially when one robot runs
going all these years is its complete head-on into the floor hazard (a
disregard for everything a weapons at home, because the grinder-powered spinning rubber
mainstream robot combat fights are open-air on a raised wheel with gratuitous protrusions)
competition holds dear. stage, sumo style. That means good and is subsequently sprayed across
The MC of the event is a former driving far outweighs your weapon the arena.
radio disc jockey and newspaper choice, and a fair percentage of For the 2008 event, 29 little
editor that occasionally makes fun matches are actually decided when ‘bots fought at MicroBattles and 20
of the audience (which has a one robot simply careens off the large robots competed at the main
disturbingly high proportion of stage. Robot MicroBattles, which tournament. The record number
Stormtroopers). The tournament began in 2003, caters to the of small ‘bots necessitated running
itself is half robots and half stand-up smallest combat classes: the one- the tournament single-elimination,
comedy. The atmosphere is relaxed, pounders and three-pounders. This instead of the usual double in order
and matches are often re-run just tournament is enclosed-arena and to fit the event within its given time
because the builders or audience with the full set of Robot Fighting slot. The audience packed both
members feel like it. The essence League-approved weaponry allowed. events to standing-room-only levels,
of Robot Battles is that of robot The level of destruction and energy and the convention twice closed the
combat before the glamour of is much higher. The audience loves large ballroom in which the main
cameras, cash prizes, and minor shredded parts, flying sparks, and tournament was held because the
pop culture icons.
There are two separate Thirty pound robots Jaws (right) and Vorpal
Bunny Foo-Foo (left) ensnare their weapons.
tournaments at Robot Battles.
The main tournament
happens on Labor Day
Monday — the last day of the
convention — and is for 12
pound and 30 pound robots.
The tournament is double-
elimination, and each match
is best-two-out-of-three. Leave Überclocker (left) and
Poulan Rouge (right) tangle in
your high-energy kinetic the 30 pound elimination rounds.

SERVO 11.2008 31
CombatZone-edited.qxd 10/7/2008 3:42 PM Page 32

MC Kelly Lockhart The small arena is enclosed


entertains the crowd by 1/4” polycarbonate sheet
at the Robot Battles and features drop-out pits and
Tournament on a spinning wheel hazard.
Monday.

number of people watching had introduction of a new design to the slams on opponents.
exceeded the hotel’s fire code limit. combat stage. The open stage The perennial winners returned
The MicroBattles event on format of the competition is again this year, with the 12 pound
Sunday saw the first irreparable particular well-suited to a grabber- class final match a repeat of last
arena damage at any Robot Battles lifter type design; one which can year’s. Dale’s Homemade Robots
event, when the spinning wheel manipulate the opponent by holding swept all the categories at the
hazard was sheared off in the it completely off the floor, not Monday tournament, except for the
three-pound class Battle Royale. A merely breaking its traction. Yet, 12 pound Battle Royale. Other
solid slam by three-pounder Cloud for as long as the event has run, historically successful teams
of Suspicion broke the mounting nobody has built such a machine. including Blade Robotics and Evil
hub off the wheel, sending it This year, two grabber-lifter robots Robotics also placed. Here’s the list
bouncing around the arena floor. entered into the 30 pound class: of champions and runners-up:
Builders and audience alike were Jaws, from Team Stingray, and my
stoked, and the combat arena goes own entry, Überclocker. Jaws did • First place 1 lb class: Gilbert, Team
back to the shop for a completely well, advancing through the loser’s Meatheads
new arena hazard to be debuted brackets after losing its first round • Second place 1 lb class: Misdirected
later this year. In a move that to the eventual 30 pound class Pedestrian, Team Meatheads
straddled the point intersection champion. Due to some poor design • First place 3 lb class: Nuclear
between confidence, arrogance, and on my part, Überclocker was Kitten 5, Team Test Bot
insanity, Cloud of Suspicion’s builder plagued with mechanical problems, • Second place 3 lb class: Ringo,
strapped six pounds of dead weight and I had to repair the bot quite Evil Robotics
on top of his robot and returned literally after every match. Despite • First place 12 lb class: Omegaforce
Monday to fight in the 12 pound losing after the first round, it was 2, Dale’s Homemade Robots
division. able to put on a good show for the • Second place 12 lb class: Nicole
This year’s event also saw the audience by performing a few body Richie, Team Shenanigans

Overthruster knocks Jaws off the


stage using its innovative automatic
A clean gash in a 1 lb flipper mechanism, moving on to take
robot’s titanium front plow. the 30 pound division championship.

32 SERVO 11.2008
CombatZone-edited.qxd 10/7/2008 3:43 PM Page 33

• First place 30 lb class: the Con, and have


Overthruster, Dale’s Homemade (somehow) missed us
Robots for the past 18 years,
• Second place 30 lb class: Scimitar, then you know what to
Blade Robotics do next year. Here’s
some resource links to
For 2009, the Robot Battles get you started:
main tournament is moving to a
larger ballroom to handle the • www.robotbattles.
increasingly large audience. With com is the event’s
Dragon*Con hosting a Robotics website. Look here for
program track specifically to the rules, photo
introduce more people to robots galleries, and online
and robot fighting, the competition community. Make sure Überclocker holds Scimitar perilously
close to the stage’s edge.
is only going to grow larger and to join the email list!
more intense. So, if you’re tired of As a bit of interesting trivia: The
the same old arena, consider • www.dragoncon.org is the oldest robot fighting competition —
coming to Atlanta over Labor Day website of the hosting convention, Critter Crunch — began in 1987 at
weekend 2009 and checking out Dragon*Con, your one-stop shop the MileHiCon in Denver, CO. Robot
not only the Robot Battles for any sort of science fiction, Battles is a direct descendant of
competition, but Dragon*Con as a comics, fantasy, role-playing, anime, Critter Crunch, with almost identical
whole. If you are already attending subcultures, and much more. rule sets. SV

PARTS IS PARTS:
Chain Length Calculat r
and Chain Path Visualizer
● by Kevin Berry

A n endless source of information


on bot building is the RFL forum
on Delphi Forums (www.chief
but according to the folks on
both forums (RFL/Delphi and
Cheifdelphi), it’s both useful and
2) I move my “idler” up and down
(or left and right) the amount I
plan to build in to my adjuster so
delphi.com/media/papers/1598). accurate. that I can tell if I can actually
A recent thread had a great Dr. Joe Johnson, the creator, tighten the chain.
discussion about a software tool — has a few comments worth noting:
Dr. Joe’s Chain Length Calculator, Alternatively, I use it to see if I
and the accompanying Chain Path “This is a tool I use to get my can swap sprockets and still tighten
Visualizer. This handy tool lets a chain adjuster travels right and to my chain with the different ratio
builder input sprocket and chain give my “gut” a chance to “see” the (this is a non-obvious calculation
data (up to 12 sprockets!) and out chain path before I commit to it in at times).” SV
pops the geometry to build the rig. metal. It is not a perfect
The Excel front end drives a macro tool. It does not have any Dr. Joe’s Chain Path Visualizer.
called Goal Seek, that does loops of way to enter a slider, for
“what if” analysis to optimize the example.
design. The outputs and a graphic Here is how I use it
visualize the answer, while the raw most often:
outputs are on other tabs.
I haven’t built any chain driven 1) I lay out my chain path
mechanisms myself that would (counte-clockwise order
require this level of calculations, around the chain).

SERVO 11.2008 33
CombatZone-edited.qxd 10/7/2008 3:44 PM Page 34

ROBOT PR FILE
TOP RANKED ROBOT THIS MONTH
● by Kevin Berry
Top Ranked Combat Bots
History Score Ranking
Limblifter – Currently Ranked #1
Weight
Class Bot Win/Loss Weight Class Bot Win/Loss

150 grams VD 26/7 150 grams Micro Drive 10/3

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 19/7

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

30 pounds Helios 31/6 30 pounds Billy Bob 12/4

30 (sport) Bounty Hunter 9/1 30 (sport) Bounty Hunter 9/1

Wedge of
60 pounds 43/5 60 pounds K2 14/2
Doom Historical Ranking: #6
120 pounds Devil's Plunger 53/15 120 pounds Touro 14/2 Class: 3 pound Beetleweight
220 pounds Sewer Snake 46/13 220 pounds Original Sin 12/5 Team: Team GuavaMoment
340 pounds SHOVELHEAD 39/15 340 pounds Ziggy 6/0
Builder(s): Brendan McClure
Location: Edmonton, Alberta, Canada
390 pounds MidEvil 28/9 390 pounds MidEvil 3/0

History Score is calculated by Current Ranking is calculated by


BotRank Data Total Fights Wins Losses
performance at all events known performance at all known events, using Lifetime History 18 15 3
to BotRank data from the last 18 months Current Record 13 12 1
Rankings as of September 14, 2008 Events 4

● Armor: 1/8” 6061 Aluminum,


L imblifter has competed at
Kilobots X, WBX-IV, Kilobots XI,
and WBX-3. Details are:
1/16” garolite.

● Drive: 4x 20:1 25 mm Banebots


1/4” UHMW-PE.

gearmotors, FF-180 motor. ● Radio system: Futaba 8U.


● Overall configuration: Four wheel
drive with lifting arm that can ● Wheels: 2” Lectra Lite flites. ● Future plans: 60 lb version of
go 360 degrees around the Limblifter.
frame. ● Drive ESC: 2x Banebots 3-9 ESC.
● Design philosophy: Know your
● Frame: 1/4” UHMW-PE and ● Drive batteries: 1320 mAh 7.4V strengths and weaknesses, and
Thunderpower Lipoly. build accordingly.

● Weapon type: 360 degree ● Builders bragging opportunity:


flipping arm. #1 ranked Beetleweight on
BotRank.com! SV
● Weapon power: Same as drive.
Photos and information are courtesy of
● Weapon motor: 256:1 28 mm Dennis Beck. All fight statistics are courtesy
Banebots gearmotor, RS-385 motor. of BotRank (www.botrank.com) as of
September 14, 2008. Event attendance data
is courtesy of BotRank and The Builder’s
● Weapon controller: Banebots Database (www.buildersdb.com) as of
5-18 ESC. September 14, 2008.

34 SERVO 11.2008
CombatZone-edited.qxd 10/7/2008 3:45 PM Page 35

A BRIEF HIST RY OF WAR


● by Robert Farrow

W AR has much of what you


expect — flying shrapnel,
destruction, winners and losers, but
even more challenging, robots had
to weigh one pound or less. This was
a few years before cheap, reliable
unlike real war, Western Allied speed controllers that would fit into
Robotics competitions are always such small robots became readily
good natured fun. The organization available. Even the experienced
currently has a 12 x 16 foot steel builders had to figure out how to organization is that so many people
and polycarbonate arena capable of make these things powerful but small. have stepped up to handle the events.
containing powerful 30 lb robots, Luckily, there was an active For years, Dylan Feral-McWhirter of
but WAR had a much simpler start. online community to provide advice Team Evil Squirrel was the standing
A lot of early BattleBot builders and guidance to anyone who was War Lord and managed the arena
came out of the Pacific Northwest. interested in building. People worked logistics. Adam Conus of Team
After the first season of BattleBots modifying RC toys and co-opting Wildcard and Scott Ferguson of
appeared on TV, a dedicated fan motors and electronics from RC air- Team Whoopass held events in their
contacted several local builders to put planes and cars to build their creations. backyards and the term BotBQ was
on a robot demonstration at a regional Well over a dozen robots competed coined to refer to fun with equal
science fiction convention. The builders in the first event with robots that parts robot fighting and grilled hot
had a great time showing off their ranged from remote control rats that dogs. As the events, robots, and
robots and talking to people who were could only turn left, to powerful arena have gotten bigger, bigger
interested in getting involved. Near spinner and wedge robots that were venues have been needed.
the end of the show, Brett Dawson solidly built. The first event was such Rob Purdy of Team Gausswave
of team UVGScorpion brought out a solid hit with builders that everyone has grown WAR to the next level
two small robots and put them on wanted to do it again, and soon. as an organization. In 2006, WAR
the ground. One was a four-wheel No one is sure of how the term became a branch of the Seattle
wedge and the other was a horizontal “War Lord” came about, but it was Robotics Society. The alliance made
spinner. He needed someone to drive the title thrust upon whoever sense given that Bill Bottenberg of
the wedge robot so he handed the represented WAR with the larger Team Crash was running a robot
controls of the wedge over to me. Robot Fighting League. The first class with young kids to get them
Over the next five minutes, Brett and War Lord was Mike Morrow of excited about science, engineering,
I battled it out with cheering crowds. Team Juggerbot. He helped and learning about how things
As Brett schooled me on the fine organize WAR’s participation in the work. As the new War Lord, Rob
arts of robot destruction, it was Davinci Days festival in Corvallis, OR. also drove larger competitions
clear from the crowd’s reaction that The robots fit right in with the where hundreds of spectators could
the robots did not need to be big to kinetic sculptures and creatively enjoy the show, like at the Center
generate the same excitement we engineered machines that drove the House at Seattle Center and in
had experienced at BattleBots. theme of the festival. WAR held association with large hobby shows.
A small scale fighting robot com- another successful antweight As the organization has grown,
petition was scheduled for April 2002 competition. Crowds were also so have the robots. In the early days,
at Gasworks Park in Seattle. Brett built entertained by robots ranging from only the one pound antweight class
a 6 x 6 foot wood arena with polycar- 60 to 340 pounds holding demon- was supported. Now the focus is
bonate walls to contain the robots. strations by pushing each other largely on the three pound
Having an actual arena to compete around and attacking large objects Beetleweight and 12 pound Hobby
in made the event more than just talk like washing machines. Because weight classes, although one pound
or a dream; it solidified things and the there was no large arena to contain robots still compete. Whether large or
race was on to design and build an the robots, no actual fighting small, these events have brought the
effective robot for the competition. was allowed at the festival, but regional robot building community
Computer scientists, artists, afterwards a few of the competitors together and entertained thousands
teachers, and students made up the gathered at a remote parking lot of people. Where will WAR go from
group. Only about half of the original and had a street fight with some of here? It’s hard to say, but as the
competitors had ever built or competed the less hazardous bots. sport continues to change, WAR
with robots before. Making things One of WAR’s strengths as an will be up to the challenge. SV

SERVO 11.2008 35
Blankenship.qxd 10/8/2008 2:56 PM Page 36

by John Blankenship
and Samuel Mishal

I f you visit a robot club or any


robotic function for that matter, it
is likely that you will meet someone
who is interested in humanoid robots.
Often, these enthusiasts are not par-
always been fascinated with the idea
of creating the illusion of life. Perhaps
that was a motivating factor that pushed
me towards another of my hobbies —
ventriloquism. It occurred to me that
used as actuators. This meant that the
overall size and weight of the puppet
had to be kept to a minimum. Keeping
the puppet small was no bother. To the
contrary, it was actually very intriguing.
ticularly interested in building robots the techniques used in puppet con- Normally, a ventriloquist’s puppet has
that perform useful tasks. Instead, they struction might be of interest to many to be big enough so that a hand can
wish to build a robot that looks and hobbyists interested in animatronics. be placed inside it to perform the
moves like a real person. They may or A typical ventriloquist puppet is manipulations. With a small puppet,
may not want to endow their creation carved from wood or molded from some everyone would know it was not being
with artificial intelligence (AI), but they form of composite material such as controlled in the normal manner.
nearly always want to create the plastic wood or papier-mâché. In either The puppet’s head in this project
illusion of life. case, the head cavity must be open is smaller than normal and it has to
My interest in robotics has always enough to add mechanisms such as contain even more mechanisms than
been very diversified and I too have pulleys and levers to control the move- a standard puppet. If the head was
ment of the mouth and other made from wood or composite materi-
FIGURE 1. optional features such as moving als, the required wall thickness would
Epoxy putty eyes, eyebrows, and eyelids. reduce the size of the head cavity
was used If we are creating a robotic even further, adding to the problem.
to turn a
Halloween puppet, the head must contain One solution is to use a plastic head
decoration all the moving parts found in from a doll or holiday decoration. The
into this a standard puppet plus thin plastic shell would provide the
head. appropriate actuators (motors maximum interior space.
or solenoids) to effect the I found a Halloween prop that
movements. Since I wanted was the perfect size, but (as you
the puppet to appear life-like, would expect) it had a ghoulish look
it was important to animate that was not appropriate. I used
some body movements in epoxy putty to fill in unsightly
addition to the facial features. wrinkles, alter the lips, add teeth, and
In order to simplify the lift the cheeks. Epoxy putty is as easy
programming aspects of the to work with as clay — but for only 10
project, servo motors were or 15 minutes — so don’t try to do too
36 SERVO 11.2008
Blankenship.qxd 10/8/2008 2:57 PM Page 37

FIGURE 3. A puppet’s
eyes are easily motorized
for computer control.

FIGURE 2. The interior of the head is


cramped. The miniature servos shown external mockup to provide additional Figure 5 shows how the head is
move the eyes and eyebrows. Notice detail. Eyes are easily made from wooden mounted on a hinge to allow a
the magnets on each side.
balls that rotate on a bolt or rod. Stiff forward tilt under control of the
much at once. Figure 1 shows the wires protrude from the rear of each neck-mounted servo. The lazy-susan
altered head before painting. eye and up through a plastic wafer bearing gives the head the ability to
The back of the head was cut that ensures the eyes move together rotate. The neck is connected to a
away to allow easy access to the based on the servo’s motion. It is servo mounted in the body using a
inside. Magnets were epoxied in important to use a slot as shown instead short piece of rubber hose. The
appropriate positions (on both pieces) of a hole because the opposing rotational flexibility of the hose connection
to hold the cut piece in place and still motions can cause binding. The use of prevents binding by allowing for
allow easy removal for repairs. the bell crank in Figure 2 allows the twisting and bending (much like
Figure 2 shows the interior of the motor to be mounted away from the
head, which contains three miniature eyes. This can be very advantageous FIGURE 4. The
servos: one for the mouth, one for the when working in a confined space. puppet’s body
eyes, and one for the eyebrows. The The puppet’s body is shown in is hinged to
allow side-to-
details of how you mount your servos Figure 4 and is constructed primarily side tilt. The
depends on the features you want and from wood. Padding may be needed legs are made
the space available in your puppet’s to make the body look more natural from PVC
head. It is also important to realize under the clothes. His full height is pipe.
that you can purchase servos in various 28 inches. The legs are made from
sizes with a wide variety of torque, PVC pipe. One leg of the pants is
speed, and noise levels, so consider pulled up to show the pipe.
your needs carefully.
Most of the bell FIGURE 5. The
cranks, disconnects, and head is hinged to
other apparatus I use are tilt forward and
mounted on a lazy-
mechanisms designed for suzan bearing to
model airplane construc- handle rotation.
tion and can be found in
many hobby stores. Your
local hardware store can
also be a great source for
small pulleys, lazy-susan
bearings, and such.
It is difficult to see
how the eye assembly is
constructed in Figure 2,
so Figure 3 shows an
SERVO 11.2008 37
Blankenship.qxd 10/8/2008 2:58 PM Page 38

//——Constants FIGURE 9. Partial listing of the Real_Puppet.BAS


COMMS_PORT = 1 program for controlling the puppet.
JOYSTICK_PORT = 1
//====================================================================
MainProgram:
GoSub Instructions
GoSub SetUp
GoSub Initialize
GoSub Start_Control
GoSub FinishUp
Exit
//====================================================================
Read_Joystick:
GetButton btn
if btn == Buttons[0] then n=MsgBox(I_M)
if btn == Buttons[1] then Quit = true
joystickE JOYSTICK_PORT,jvalue
FIGURE 6. The body is hinged at the jx = jvalue[0,0]/(jvalue[0,2]-jvalue[0,1])
hips and moved with a servo. The jy = jvalue[1,0]/(jvalue[1,2]-jvalue[1,1])
jz = jvalue[2,0]/(jvalue[2,2]-jvalue[2,1])
Parallax servo controller simplifies jr = jvalue[3,0]/(jvalue[3,2]-jvalue[3,1])
the controlling program. jb = jvalue[6,0]
jhat = jvalue[7,0]
Return
//====================================================================
Start_Control:
while !Quit
GoSub Read_Joystick
//—-check buttons first (special movement combinations
if jb == B_Yes then GoSub Yes_Combo \ continue
if jb == B_No then GoSub No_Combo \ continue
if jb == B_Combo1 then GoSub Combo1 \ continue
if jb == B_Combo2 then GoSub Combo2 \ continue
//—-then move all motors based on joystick’s position
GoSub HeadR_Movements
GoSub HeadT_Movements
GoSub Arms_Movements
GoSub Brows_Movements
GoSub Eyes_Movements
GoSub Mouth_Movements
FIGURE 7. The complete puppet looks GoSub Torso_Movements
very lifelike when being manipulated wend
Return
with the joystick. //====================================================================
Yes_Combo:
universal joints on an automobile //—-Yes comination movement
m = “Yes”
driveshaft) while ensuring a secure xyText 0,100,m+spaces(20),””,20,fs_Bold
connection. The body is hinged to the ramping = HeadTRamping
channel = HeadTChannel
hips allowing a small side-to-side tilt. for i = 1 to 3
Figure 6 shows how the servo is nn = 750
mounted to control this movement. a = char(channel)+char(ramping)+char(nn&255)+char((nn >> 8)&255)
SerOut “!SC”,a,char(13)
The connecting rod passes through a delay 500
hole in the bottom of the body and nn = 950
a = char(channel)+char(ramping)+char(nn&255)+char((nn >> 8)&255)
connects to an eye-bolt in the hip SerOut “!SC”,a,char(13)
surface. Figure 6 also shows a Parallax delay 500
USB servo controller that will be dis- next
Return
cussed later. The arms aren’t functional //====================================================================
in a true robotic sense, but the pull of HeadR_Movements:
//—-rotate the head
a string creates just enough movement ramping = HeadRRamping
to add to the illusion of life. channel = HeadRChannel
Figure 7 shows the fully clothed if HeadRTime < Timer()
rHeadR =random(HeadRRandomness)-HeadRRandomness/2
and painted puppet. Fake fur from a HeadRTime = Timer()+1000 // random movement every 1000 mseconds
cloth store was used for hair. The USB endif
nn = HeadRLowLimit+round(jr*(HeadRHighLimit-HeadRLowLimit))+rHeadR
cable for the servo controller, as well a = char(channel)+char(ramping)+char(nn&255)+char((nn >> 8)&255)
as a power cable are run down the SerOut “!SC”,a,char(13)
puppet’s leg and extend from the bot- Return
//====================================================================
tom of the pants to make connections
38 SERVO 11.2008
Blankenship.qxd 10/8/2008 2:58 PM Page 39

FIGURE 8. An extended joystick provides


control of the puppet’s functions. JOYSTICK ACTION PUPPET MOVEMENT
• Twisting the stick • Rotates the puppet’s head
easy while being hidden from view. • Moving the stick forward/backward • Tilts head forward/backward
The clothes for a small puppet are • Moving the stick left/right • Tilts the body left/right
not easy to find. An outfit for a 12-18 • POV hat left/right • Moves the eyes left/right
month old child was tailored and modi- • POV hat forward/backward • Moves the eyebrows up/down
fied to give it the correct proportions. • Trigger (firing) button • Opens the mouth
The features on this puppet allow
for a variety of emotions. When the the arms, head, and body all have shows a representative sample of some
puppet lowers his eyebrows, for small random movements pro- of the subroutines. You can download
example, he looks mad. Raising the grammed into them even when the the full program from www.Robot
eyebrows while keeping the mouth puppet is not being controlled. This BASIC.com. It is well commented so
open will express surprise. simulates life-like restless shuffling. it should be easy to follow the logic.
In order to make control of the At this point, we are ready to The techniques demonstrated in
puppet as intuitive as possible, all the create the program to bring the this article can be valuable in a wide
movements on the puppet were puppet to life. We used RobotBASIC variety of projects. Even this project
associated to similar movements because it has the ability to read and itself can be the starting point for further
on an extended joystick. Figure 8 write to all the ports on a PC (parallel, ideas. For example, instead of using
summarizes these movements. serial, and USB). A Parallax USB multi- the humanoid form as a manually
Some of the puppet’s actions are servo motors controller www.Parallax. controlled puppet, you could place it
provided automatically by the computer, com) makes it easy to control the under automatic computer control. If
thus making the manipulation easier servos because it will simultaneously you combine voice synthesis and voice
for the user. Buttons on the extended move the servos using the positions recognition with the puppet’s ability to
joystick, for example, can be pro- and speeds requested by the simulate emotions, it is easy to imagine
grammed to provide specific movements controller program and maintain those an amusing interactive robotic display.
for the arms, or head movements for positions without further intervention. Of course, the techniques shown
yes and no. All of these motions could The RobotBASIC program reads the here can be utilized in robotic projects
be created by controlling the puppet joystick and then commands the servo involving humanoid forms and other
manually with the joystick, but motor controller module to position the animatronic characters. Constructing
preprogrammed movements can have motors accordingly, reflecting the posi- your own computer-controlled puppet
pre-selected servo speeds and limits so tioning of the joystick and/or button allows you to have the features you
that the automated movements can presses. The program is too long to list want along with the ability to control
be as lifelike as possible. Furthermore, here in full, but the listing in Figure 9 it as you see fit. SV

Announcing
the Gears Heavy Metal Robot Kit
Designed for Students and Professionals Supports 200 lbs of
L Heavy Metal is engineered for rigors of daily use in classrooms, standing weight!
summer camps, workshops, labs . . . even combat robots!
L Assembles quickly using fasteners of same size/pitch and
threaded inserts. 10" wheel base, heavy gauge aluminum,
4-wheel drive, 3" rubber wheels, 3/8" axles, flanged
bronze bearings, #25 pitch steel chain and sprockets.
All drive components are keyed and broached.
L Competition all-metal gearhead motors, gearbox
rated at 500 oz-in of continuous torque. Heavy Metal
accepts off-the-shelf engineering parts, plus
components and control systems from GEARS IDS,
FIRST* and VEX Robotics* kits.
Heavy Metal 1 Kit includes chassis, motors, drive system, and wheels for $499.00.
Lb for Lb
Contact Mark Newby the World's
mnewby@gearseds.com Toughest Robot
sWWWGEARSEDSCOM Chassis
*VEX Robotics is a mark of Innovation First, Inc. and FIRST refers to © US FIRST (Foundation for the Inspiration and Recognition of Science and Technology)

SERVO 11.2008 39
Eady-Universal Motor-edited.qxd 10/8/2008 9:29 PM Page 40

THE UNIVERSAL
MOTOR
by Fred Eady

Electric motors come in a seemingly


endless variety of shapes and sizes. If you’re
into robots and mechanical devices that
move about freely, DC (Direct Current)
motors capable of operating on battery
power are almost always your most
practical motor choice. However, not every
robot created by man or alien is a fully
mobile Robby running around on forbidden
planets. If your robot is a stationary
collection of nuts and volts that’s at home current to a brushed DC motor. Adding a trio of MOSFETs
working next to a wall outlet, you may in Schematic 1B forms an H-bridge configuration that allows
be able to use the advantages of an AC us to change both the speed and the direction of the
brushed DC motor with a few bits of PIC I/O.
(Alternating Current) power source to drive Can you conjure up a similar circuit in your mind’s eye
your mechanical animal’s motors. for a simple AC motor speed control? I see a PIC microcon-
troller punching an optoisolated DIAC (short for the words
t is often desirable to be able to control a motor’s speed DIode AC Switch) triggering a TRIAC, which is controlling
I and direction. I’ll bet that most of you have experience
with controlling the speed of a standard brushed DC motor.
the flow of AC voltage to an AC motor (Schematic 1C). The
problem with the DIAC/TRIAC motor circuit is that the DIAC
The first brushed DC motor speed control circuit that comes and a series resistor have all of the “control” and that
to my mind is shown in Schematic 1A and consists of a PIC control is very limited. Another problem with the AC motor
microcontroller squirting a PWM (Pulse Width Modulation) control circuit I’ve envisioned lies in the need to provide a
signal into the gate of a MOSFET whose job it is to switch separate DC power supply for the PIC microcontroller. What

VDD
VDD
Schematic 1A. The duty cycle of the PWM signal that
DRIVE A+ DRIVE B+
is applied to the gate of the MOSFET determines the
BRUSHED DC MOTOR
speed of the motor. In this case, the duty cycle
BRUSHED DC MOTOR percentage (0% to 100%) is directly proportional to
the speed of the motor shaft.

PWM IN

DRIVE B- DRIVE A- Schematic 1B. By selectively energizing diagonally


opposing MOSFETs, this H-bridge configuration
SCHEMATIC 1A allows for both speed and direction control of the
V+
SCHEMATIC 1B DC motor. The PWM signal is applied to one of the
diagonally opposing MOSFETs while the other
associated diagonally opposing MOSFET is held in
an energized state.
MT2

~
FROM MICRO
MT1 Schematic 1C. This is about as simple as it gets for
AC motor control. Fact is, we don’t have much
AC MOTOR
“control” here as the DIAC break over voltage
characteristics and the value of the resistor between
MT2 and the DIAC determine the TRIAC’s
SCHEMATIC 1C
triggering point.

40 SERVO 11.2008
Eady-Universal Motor-edited.qxd 10/8/2008 9:29 PM Page 41

we need is a microcontroller-based AC motor control circuit pole and your wrist standing in for the stator’s North
that gives us effective control of the AC power that is magnetic pole. The direction of your thumb is the direction
being applied to the motor without having to pamper the of the current flow through the stator’s magnetic field. The
microcontroller with additional power supply circuitry. We palm of your hand is the direction of the resultant force.
have our challenge. Let’s deliver the solution. Rotate your hand while observing the position of your palm
versus your thumb. It will be obvious to the most casual
The Universal Motor observer that when your thumb is pointing towards the
floor (opposite current flow), the force will be opposite to
A universal motor is a variation of a standard DC when your thumb was reaching for the sky. This simple
motor. However, the universal motor can spin its rotor shaft hand twisting technique illustrates what scientists call the
using AC or DC power. In that this motor spins so well with Lorentz force. Applying an AC voltage to a DC motor such
AC power, you’ll find that most of them are powered with as the one we’ve just discussed will result in the rotor
AC rather than DC. If the universal motor application simply thumping back and forth as the polarity of the
requires slower speeds and quieter operation, you’ll most rotor winding current is constantly changing due to the
likely see it powered with DC. continual reversal of power polarity applied to the brushes
The stator of an everyday DC motor is composed of a and commutator on every AC half cycle. To experience
stationary group of permanent magnet poles. A common this phenomenon, just hook up one of those 12 VDC
DC motor rotor uses it rotor windings in conjunction with RadioShack DC hobby motors to a 6.3 VAC transformer’s
a commutator and brushes to work with and against the secondary windings. The DC hobby motor will whip its
stator’s magnetic field to rotate the motor shaft. DC motor shaft back and forth at a 60 Hz rate.
brushes are made up of a carbon/graphite material and are Conversely, a true AC motor will not run with the
placed in direct physical contact with the commutator. The application of a DC power source. That’s because the
motor brushes are also electrically connected directly to the rotation of a true AC motor’s output shaft depends on the
motor’s power source. very thing that won’t allow our DC motor shaft to spin: the
The brushes and commutator are considered part of continual rhythmic reversal of power source polarity.
the DC motor’s stator assembly as the brushes and Let’s take that DC motor we’ve been discussing and
commutator are permanently mounted in a stationary modify it by replacing the permanent magnets in the stator
position. The commutator is designed in such a manner with electromagnets. We’ll rewire that same modified DC
as to act as a switch that is fed by the brushes. The motor to put all of its major components in series. That is,
commutator switches incoming current between the coils the stator electromagnets are wired in series with the rotor
within the DC motor. This switching of current between the windings. Our modified DC motor will retain the original
motor coils is called commutation. brushes and commutator, which are also participants in the
A DC motor’s rotor windings are energized in such a series wiring scheme.
fashion as to force the rotor winding to attract to a stator Now that we have replaced the stationary permanent
magnetic pole. In other words, the rotor winding is given magnets with physically stationary electromagnets and
an opposite polarity than that of the stator pole that it is wired them in series with the rotor windings, our new DC
moving towards. Opposite polarities attract and the rotor motor will no longer react to the changes in power source
moves to align itself with the attracting stator pole. When polarity as we have come to expect. That’s because every
the rotor winding aligns with the attracting stator pole, the magnetic pole in our modified DC motor will change
commutator is positioned in relation to the brushes to pro- polarity in step and negate any changes in the magnetic
vide the stator pole with an attracting polarity to the next force between the poles.
rotor winding. The newly attractive rotor winding forces the If we apply a DC power source to our modified DC
rotation of the rotor shaft as it is now being forced to move motor, the stator electromagnets will retain a fixed
and align with the stator pole that was previously the magnetic polarity and function just as if they were
attraction of the rotor winding before it. The commutator permanent magnets. The modified DC motor thinks it has
contacts are angularly arranged in order to insure the permanent stator magnets and everything will run just fine.
correct electrical and magnetic positioning of the The Lorentz force right hand rule proves this out as the
commutator contact versus the angular position of the North and South stator poles are fixed.
rotor winding and the stator magnetic pole. Since the DC Changing the modified DC motor’s power supply polarity
motor’s stator magnetic poles never change their polarity, will cause every magnetic pole to change its polarity. Thus,
we can force the DC motor to run in the opposite direction reversing the current through the rotor windings also caus-
by simply reversing the polarity of the power being applied es a reversal of the polarity of the stator electromagnets.
to the commutator by the brushes. This simultaneous rotor winding and stator electromagnet
To understand the forces that cause a DC motor to run polarity reversal means that the modified DC motor will
in a particular direction, point your right hand away from always turn in the same direction no matter the polarity of
your body while holding your thumb skyward. Your fingers the power source applied to the motor brushes. Expanding
represent the polarity of the stator’s magnetic field with the on the observation that the modified DC motor will always
tips of your fingers representing the stator’s South magnetic turn in the same direction despite the input power polarity,
SERVO 11.2008 41
42
SERVO 11.2008
R1 47

U1 5V

R2 47 2
Eady-Universal Motor-edited.qxd

RA0 R12
3 RA1
4 6 3 10K
RA2 6 3
5 RA3 RB6/PGC 27 5 5 2 2
R3 47 6 28 4 1
RA4/T0CKI RB7/PGD 4 1
7 RA5
10 C5
RA6 ICSP CONNECTOR R10 .1uF
9 RA7
R4 100
NEUTRAL (WHITE) 21 R8
RB0/INT0
10/8/2008

1 680
1M MCLR
J2 R11 1K OPTOTX
24 RB3
25 1 6 R9
N RB4 10K
LOAD 26 22
L RB5 RB1
RB2 23 5
11 RC0 TX_DATA OUT
12 4
9:30 PM

BTA16-600CW RC1/CCP2
13 RC2/CCP1 2 TX_DATA_GND
J1 MT2 TRIAC1 14 RC3 RC6/TX 17
RV1 15 18 5V 4N25
N RC4 RC7/RX
GATE 16
L C1 RC5
VDD 20
470nF MT1
C4 R6 OPTORX R7 180
.1uF 10K
Page 42

8 6 1 ALT_CONTROL
F1 GND
GND 19
10A 5

PIC18F2620 4
2 RX_DATA_IN
HOT (BLACK)
4N25
D1 + C3
5.6V 470uF@16V
R5 C2 D2

100 1.0uF 1N4007

NOTES:
1. RV1 - AVX VE07P00151K
2. R1 IS 100 OHMS @ 1 WATT MINIMUM
3. D1 IS 5.6V @ 1.5 WATTS - ON SEMI 1SMA5919BT3G
4. C1 IS 470nF @ 275VAC TYPE X2 MET POLYESTER
5. C2 IS 1.0uF @275VAC TYPE X2 MET POLYESTER
6. ALL RESISTORS SMT 0805 1% UNLESS OTHERWISE SPECIFIED
7. ALL CAPACITORS SMT 0805 16WVDC UNLESS OTHERWISE SPECIFIED
8. J1 AND J2 PHOENIX CONTACT 1729128

The amount of hardware stuff you load

simple ON/OFF switch.


uses the OPTORX optocouplers as a
code in the download package that
power supply. I’ve supplied a piece of
with the transformerless capacitive
on how much DC current you provide
onto the PIC side of this circuit depends
Schematic 2. This is an AC power

an AC motor shaft under our control.


microcontroller melded together to turn
supply, a DC power supply, and a PIC
Eady-Universal Motor-edited.qxd 10/8/2008 9:30 PM Page 43

this leads us to conclude that the modified DC motor will cooperative subsystems: an AC control subsystem; a DC
run in one direction only with an AC power source, as well. power subsystem; and a microcontroller subsystem. The AC
Imagine your right hand detached from your body and control subsystem is responsible for interfacing the motor
floating in 3D space. Reverse the direction of your hand to with the 120 VAC. The PIC18F2620 microcontroller depends
point towards you (reverse the polarity of the stator’s upon the DC power subsystem for its power supply needs.
magnetic field) while rotating your thumb towards the floor The STMicroelectronics BTA16-600CW snubberless TRIAC —
(reverse the polarity of the rotor winding current). The force which is the heart of the AC control subsystem — is under the
(your palm) ends up in the same position as when your control of the PIC18F2620-based microcontroller subsystem.
hand was pointed away and your thumb pointed skyward. The AC control subsystem provides overall protection
Our modified AC/DC-capable motor is the a universal for the controller circuitry with a 10 ampere fuse and a zinc
motor. Most of your AC-powered kitchen appliance motors oxide varistor placed in series with and across the 120 VAC
and most vacuum cleaner motors are universal. I’ve led you mains supply, respectively. A 470 nF X2-type capacitor (C1)
down this path because that’s the type of motor we are going also traverses the 120 VAC supply to limit electromagnetic
to drive with our PIC microcontroller-based controller. Our interference (EMI). Believe it or not, C1 is not there for the
target universal motor is a product of Ametek Lamb Electric. controller circuitry. It’s there to restrict harmonic pollution
The one shown in Photo 1 is an Ametek 116207-00, two- of the 120 VAC mains. Take another look at Photo 2 and
stage tangential bypass discharge 120 VAC vacuum motor. you’ll see that the entire AC control subsystem is contained
The 116207-00 is rated at 1,000 watts. Typical input current to the left of the area delineated by the TRIAC’s heatsink.
draw for this motor is quoted as 8.6 amperes when pulling In this instance, we are driving an inductive load and
a respectable vacuum through a 19 mm orifice. If you have one would normally see a resistor/capacitor snubber
a robotic application that requires creating a vacuum, that’s network placed across the TRIAC’s MT1 and MT2 terminals
great. However, the universal motor controller circuitry to reduce the possibility of false triggering of the TRIAC.
we’re about to design can be adapted to drive most any The BTA16-600CW is designed to work against the high
motor you may wish to employ in your robotic applications. instantaneous voltages that occur during TRIAC
commutation that can force a TRIAC to conduct
The Universal Motor unexpectedly. In the case of a TRIAC, commutation is the
Controller Hardware switching from an ON state (TRIAC conducting) to an OFF
state (TRIAC not conducting). When an AC signal is applied
I realize that many of you work with potentially to a TRIAC and a trigger is applied to the TRIAC gate during
hazardous mechanical tools and devices on a daily basis. a time when the AC signal is not crossing zero, the TRIAC
Every metal head I’ve ever had the good fortune to meet will conduct until the next zero crossing of the AC signal. If
knows that safety is paramount when working with and a trigger is not applied to the TRIAC gate following the zero
around metal-forming tools. For you electron heads, safety crossing event, the TRIAC will remain in a nonconductive
should also be at the top of your list when working with state until it is triggered again. The TRIAC’s ability to
the universal motor controller electronics. The controller cir- reliably turn itself off (commutate) and be triggered into
cuitry you see in Schematic 2 is driven by potentially lethal conduction at will by our PIC within the time domain of an
120 VAC mains power. Do not under any circumstances AC cycle are the keys to controlling the amount of power
handle the universal motor controller electronics when the
120 VAC mains power is applied to it. If you don’t want to Photo 2. Although you can easily breadboard a universal
release the magic smoke from your electronic tools, never motor controller, building up your own on a printed circuit
board like this is recommended. Note that there are no
attach a PIC programmer or debugger device to a universal exposed printed circuit board traces or lands, which reduce
motor controller when it is powered directly from the 120 the probability of you getting your fingers fried. Be sure to
VAC mains. If you want to probe the controller circuitry, get use X2-type capacitors for C1 and C2 as X2z are approved for
the mains power, behind an safe use in this type of AC circuit.
isolation transformer first. Like
anything else, the universal
motor controller circuitry is
best understood when
digested in small chunks. So,
as you study the components
in Photo 2, think of the
controller electronics as three
Photo 1. This universal motor
could be a blender motor or a
kitchen mixer motor. As long as
the motor is considered to be
universal, it’s a safe bet that our
core AC motor controller circuitry
can be adapted to drive it.
SERVO 11.2008 43
Eady-Universal Motor-edited.qxd 10/8/2008 9:31 PM Page 44

we apply to our universal motor. transformerless capacitive power supply as I didn’t end up
The DC power component of the controller is supplied using as many current-hungry LEDs and optocouplers as I
by a transformerless capacitive power supply. With yet had envisioned. As you can see from Screenshot 1, I have
another peek at Photo 2, all of the transformerless about 30 mA of available current. The formula for
capacitive power supply components are located below the computing the available current is generous. The actual
470 µF electrolytic capacitor (C3), which is to the right of amount of available current will be somewhere around
the TRIAC heatsink. You should be able to easily pick out 80% of the computed value, or 24 mA.
the transformerless capacitive power supply’s five The PIC18F2620 is also overdesigned as I have plenty
components, which include resistor R5 (100Ω) , capacitor of PIC I/O left over after servicing the controller’s AC and
C2 (type X2 1 µF), zener diode D1 (5.6V, 1.5 watt), general- logic interfaces. The main reasons for choosing the
purpose rectifier D2 (1N4007), and electrolytic capacitor PIC18F2620 for this application were its built-in oscillator,
C3. The transformerless capacitive power supply you see in ample I/O, and EUSART. A smaller PIC footprint will also
Schematic 2 will work for us (keep a stable voltage work with our controller AC and DC components. Just
across C3) as long as the current we draw from the make sure your PIC has enough I/O lines to do the job.
transformerless capacitive power supply is equal to or less It’s pretty obvious in Photo 2 as to where the PIC,
than the current that is feeding the power supply. optocouplers and all the supporting microcontroller
The amount of output current the power supply components are located.
provides depends on the value of R5, C2, D1, and the It is important to note that our transformerless
magnitude and frequency of the input AC voltage. capacitive power supply has its DC positive component
(C3) is the output charge collection point that stores referenced to the 120 VAC mains Line, which is also
and supplies voltage gleaned from the rest of the connected to the triac’s MT1 terminal. The reasons for the
transformerless capacitive power supply components. Here’s zener diode’s cathode connection to the 120 VAC mains
the formula that will reveal the amount of current taken Line are twofold. First, we want to trigger our BTA16-
from the 120 VAC mains: 600CW using a low-going pulse. The reason for selecting a
    low-going trigger pulse is dictated by the quadrants in
  where: which we desire to trigger the BTA16.

  • IN = Current available at A careful study of Figure 1 shows us that a typical triac
  
 transformerless capacitive can be triggered by a positive or negative going pulse.
power supply output Since we’re triggering the controller’s BTA16 with a low-
• VRMS = AC mains input voltage going pulse, we can only trigger it in quadrants II and III.
• VZ = Voltage drop across zener diode For inductive loads, triggering in quadrants II and III is
• f = Frequency of AC mains input voltage desirable as the triggering energy is not excessive here.
• C1 = Value of universal motor controller capacitor C2 Simple diac-based lamp dimmer circuits — which are
(blocking capacitor) fashioned similarly to Schematic 1C — usually trigger in
• R1 = Value of universal motor controller resistor R5 auadrants I and III. Transpose the diac trigger diagram in
(blocking resistor) Figure 2 over Figure 1 to see why. quadrant I is also a
desirable triggering quadrant as it does not require
I had a great deal of fun playing with this formula. So, excessive triggering current. Note that quadrants I and III
to make it just as much fun for you to manipulate the are complementary as far as triggering and AC cycle con-
parameters, I whipped up an Excel page (included in the duction are concerned. For most applications, quadrant IV
download package available at www.servomagazine. is to be avoided as it takes the most triggering energy. Note
com) that calculates IN using your input values. Screenshot also that both the positive and negative portions of the AC
1 is a spread of values using a tolerance of 20% for the cycle can be processed with a low-going triac trigger pulse.
blocking capacitor and 1% for the blocking resistor. The The BTA16-600CW requires a minimum of 35 mA and
other parameters are hand-picked assumptions with the a maximum of 60 mA of gate current flow to trigger. The
exception of the VZ value (zener voltage drop), which I PIC18F2620 can sink 25 mA per I/O pin. I’ve paralleled 3
extrapolated from the 1SMA5913BT3 datasheet. I/O pins to provide a total of 75 mA of sink current
I overdesigned my universal motor controller capability. The 47.5Ω 1% resistors (R1, R2, and R3) are
Screenshot 1. I used a 1.0 µF X2-type capacitor and a present to level the I/O pin load across the three current
100 ? two-watt SMT power resistor in this transformerless sinks and limit the maximum amount of gate current drive.
capacitive power supply to provide ample current for driving In our universal motor controller application, I’ve selected
LEDs and optocouplers. I also overdesigned the PIC18F2620 a minimum logical high level of three volts. The BTA16-
into this circuit as to not want for I/O if I needed it later. You
can design in just as much PIC as you want and just as much 600CW datasheet tells me I need to be ready to sink a max-
DC current as you need for your personal universal motor imum of 60 mA of current through the triac gate. Using
controller application. Ohm’s Law, that equates to:

R = 3 volts / 0.060 Amperes


= 50Ω
44 SERVO 11.2008
Eady-Universal Motor-edited.qxd 10/8/2008 9:31 PM Page 45

Figure 1.To make the logical low triggering easier to understand,


forget about AC and think logically. Think of the REF terminal
as a DC voltage (five volts) instead of an AC voltage. Triggering
the TRIAC is accomplished by taking the DC voltage level at
the gate of the TRIAC below the DC voltage level
of the REF terminal.
I selected the gate-limiting resistor values that are a
click below 50Ω to insure that enough current (about 63
mA with the 47.5Ω resistors) could sink through the triac
gate and PIC I/O pins.
You may be asking why the triac doesn’t trigger when
the PIC I/O pin attached to the gate is logically high.
Take another look at Figure 1. Notice that everything is
referenced to the MT1 terminal. Schematic 2 shows us that
terminal is referenced to the positive pole (zener diode D1’s
cathode) of the transformerless capacitive power supply. So,
to trigger the BTA16 with a logically low gate potential
means that the gate voltage must go negative with respect
to terminal MT1. With MT1 referenced to the positive pole
of the five-volt power supply, we can take the PIC I/O pin
driving the gate below the voltage applied to the PIC’s VDD
pin (+5 VDC), but we can never take the PIC I/O pin that is
driving the triac gate above the positive voltage level that is on or off, depending upon the logical state of the OPTORX
being supplied to the PIC’s VDD pin by the capcitive power input (RC7). You can change the motor speed by altering
supply (which is the same voltage level referenced at the the triac triggering angle, which ranges from zero degrees
MT1 terminal). Thus, the voltage at the gate can never be (motor off) to 179 degrees. I found that my universal motor
more positive than the voltage referenced at the MT1 would not spin with a firing angle beyond 145 degrees.
terminal, and the triac cannot trigger. So, the theoretical useful triggering range is one to 140
To correctly position our trigger pulse within the 16.66 degrees. I will caution you to tie down your motor if you
ms period of a 60 Hz AC cycle, we need to know when the plan to trigger the device below 90 degrees with the
zero crossing point of the cycle occurs. Thanks to the PIC’s Ametek I used. At 90 degrees with no vacuum load, mine
internal I/O pin protection diodes, we can simply place a howled and roared. (My wife commented that the motor
limiting resistor between the 120 VAC mains neutral and a sounded like a small plane taking off of the shop bench).
PIC I/O pin. Our zero crossing event (ZVC) detection is Also, be aware that switching within a triac is not instanta-
enabled by the PIC18F2620 RB0 pin’s ability to trigger an neous. Switching delays will limit the lowest triggering
interrupt. Each time the AC cycle crosses zero, the PIC is angle you will be able to dial in. The real fun in all of this is
interrupted. The ZVC firmware has the ability to determine punching in those trigger angles and turning the universal
if the event occurred on a rising or falling half cycle and
Figure 2. A DIAC triggers on each AC half cycle. Note that the
uses this event as a timing reference for issuing a TRIAC polarity of the TRIAC’s MT2 terminal always matches the
trigger pulse. polarity of the TRIAC gate’s trigger pulse. Also note the total
Earlier, I warned against casually connecting stuff to lack of DIAC activity in Quadrants II and IV.
the controller electronics. However, it would be nice to be
able to pass control information to the universal motor
controller’s PIC. The easiest way to accomplish this is to
simply optoisolate the PIC I/O pins we wish to interface to
the outside world. Just in case any of us will have the need
to have the controller respond, I’ve also included an
optoisolated transmit portal. I placed the optoisolated
interface on the PIC’s EUSART transmit and receive pins.
Using the EUSART pins allows us to send and receive serial
data, as well as using the controller’s PIC I/O pins as simple
binary ON/OFF inputs and outputs.

The Universal Motor


Controller Firmware
The firmware behind the universal motor controller is
just as easy to understand as the hardware. I’ve supplied
code in the download package that simply turns the motor
SERVO 11.2008 45
Eady-Universal Motor-edited.qxd 10/8/2008 9:31 PM Page 46

Photo 3. I hung my that converts the triac trigger angle to a trigger delay time:
IDEAL 400 AC clamp
meter around the //**********************************************
universal motor’s //* CONVERT TRIGGER ANGLE TO TIME
AC line lead (black //**********************************************
lead) with a 90 unsigned int angle_to_time(char trigger_angle)
degree TRIAC {
triggering angle unsigned int angle2time_val;
dialed in. The if(trigger_angle == 0)
universal motor’s {
no-load AC angle2time_val = 0;
amperage draw }
varied from 6.92 else
to 7.00 amperes. {
angle2time_val =
motor loose. Photo 3 is a real time shot of my motor’s 0xFFFF - (trigger_angle * 0x2E);
no-load AC current draw with a triggering angle of //each degree ~ 46us at 60 Hz
}
90 degrees. return angle2time_val;
If you’re having problems getting your arms around }
the triac triggering angle concept, visualize them as
beginning with the rising half cycle of an AC signal. Half Understanding how the triac trigger timing is deter-
way through the first positive half cycle is 90 degrees, mined is the key to understanding the rest of the universal
which is also the peak positive-going voltage of the AC motor controller firmware. Each degree of trigger angle
cycle. As you move past 90 degrees, you will move towards delay time is equivalent to approximately 46 µs assuming a
the next zero crossing point at 180 degrees. The firmware 60 Hz AC signal. If you’re reading this in a 50 Hz mains
will reset the triggering angle to relative zero at each zero country, each degree of delay time is approximately 56 µs.
crossing event and trigger the device at the same relative Thus, the controller hardware and firmware will work with
time in the negative cycle as it did in the positive cycle of 50 Hz AC systems. All you have to change is the time delay
the AC signal. associated with each degree of triggering angle.
For instance, let’s assume we trigger the triac at 90 A PIC18F2620 timer uses the angle2time_val to kick off
degrees into the positive half cycle. It will conduct until the a 400 µs TRIAC trigger pulse at the same relative time in
AC signal crosses zero at 180 degrees into the cycle. The every AC half cycle. At every zero crossing event, the cur-
next trigger pulse will be issued 90 degrees after zero rent trigger angle is converted to a value that is fed into the
crossing, which is actually 270 degrees into the AC cycle. PIC18F2620’s triggering delay timer. To prevent the motor
At the next zero crossing, the firmware will reset the trigger from lurching at every speed change, the firmware includes
timing reference to zero and the triac will again a routine that ramps up or down to the new trigger angle.
commutate. The result is that we have energized the The firmware also contains a soft-start routine that smoothly
universal motor for 50% of the full AC cycle with a 90 ramps the motor up to speed upon initial power-up.
degree trigger angle. Since the motor will run very slowly at
a 140 degree trigger angle and run faster as the trigger Hands On ... Carefully, Please ...
angle is decreased, we can conclude that the angle is
inversely proportional to the motor speed. Here’s the code The best way to get your hands around driving the
universal motor is to do it yourself. Photo 4 is a shot of the
Photo 4. It ain’t as pretty, but it works just as well as breadboard version of the controller I assembled before
the production universal motor controller you see in committing to a printed circuit board (PCB). However, you
Photo 2. The smaller 470 nF X2 filter capacitor is directly
above the varistor and fuse. The much larger 1.0 µF X2 don’t have to build this from scratch as the controller down-
transformerless capacitive power supply blocking load package contains an ExpressPCB file that you can use
capacitor is just left of the PIC18F2620. as-is to fabricate your own PCB. The firmware
included in the download package was created
SOURCES using the HI-TECH PICC-18 C compiler and is
Microchip — www.microchip.com ready to run out of the box. I’ve included a set of
PIC18F2620 interrupt-driven RS-232 routines in the code for
those of you that want to experiment with
www.ametek.com controlling the controller serially. All that’s left for
Ametek Lamb Electric 116207-00
Universal Motor
you to do is to collect the necessary electronic
components, solder them down, and fire up your
www.htsoft.com universal motor. All it takes is an email to solicit
HI-TECH PICC-18 C Compiler my help with this project. I had bunches of fun
with this and I’m sure you will too. SV
STMicroelectronics — www.st.com
BTA16-600CW
Fred Eady can be reached via email at fred@edtp.com.

46 SERVO 11.2008
Full Page.qxd 10/7/2008 11:47 AM Page 47
McCullogh.qxd 10/7/2008 10:31 AM Page 48

by KEVIN MCCULLOGH

GETTING CONTROL
WITH THE
Propeller
Introduction
PART 3:
Stepper Motors

unipolar or bipolar. From a controller’s point of view,


In the last article of this series, David Carrier covered the main difference is that unipolar motors only require
how hobby servos work and an appropriate control scheme current flow in one direction, while bipolar motors require
using the Propeller™ microcontroller. By taking advantage the current to reverse direction. This makes unipolar motors
of the Propeller’s multiple onboard processors, the control easier to control electrically since current can simply be
board was designed to be easy to use with a minimum switched on or off in each winding. Bipolar motors
number of components. In this part of the series, we will generally require more complex circuitry, such as H-bridges
take a “step” (bad pun intended) into the world of stepper to reverse current through the windings. This can increase
motors. We will look at bipolar steppers in particular and the cost of the controller.
some methods to improve their performance. On the positive side, the power-to-weight ratio of
bipolar motors surpasses unipolar motors since the entire
Stepper Motor General winding is utilized at any given time on each pole. In
Description/Comparison unipolar motors, only half the coil is driven at a time. This
reduces the size and usually cost of bipolar motors over
In general, stepper motors are brushless motors with unipolar motors with comparable specifications.
many poles per rotation. In a standard DC motor, an For this article, we will implement a control scheme for
applied voltage causes the motor to spin continuously a bipolar stepper motor using the Propeller microcontroller
because the windings are automatically commutated and some external circuitry. And, since there is always
(switched) internally as the rotor travels through a full something satisfying about improving hardware
rotation. In a stepper motor, windings are commutated performance, we will also go over some ways to
externally, usually with either discrete transistor switches or optimize the stepper motor drive system.
H-bridges. The main advantage they have over DC motors is
their ability to be controlled to precise angles without using
closed loop feedback. This is at the expense of increased S S S
N N N
motor weight, and lower efficiency and speed. However, NN NN NN
open loop control systems are generally much simpler and S S S
cheaper than closed loop servo systems.

Types of Stepper Motors


Figure 1: Unipolar Figure 2: Unipolar Figure 3: Bipolar
Stepper motors come in a variety of configurations, as stepper with stepper with stepper motor
continuous separate windings
shown in Figures 1-3, but are generally categorized as windings
48 SERVO 11.2008
McCullogh.qxd 10/7/2008 10:38 AM Page 49

Control Method
+Vcc
The current through each winding of a bipolar stepper
Coil
motor must be alternated, so when operating from a single
supply, the best approach is to use an H-bridge. These can A
be created using discrete transistors, or more conveniently -Vcc
by using an existing H-bridge integrated circuit (IC). The
latter is often the best choice for driving motors requiring
less than a few amps. I found a couple bipolar motors +Vcc
laying around which are rated at 12V, 75Ω per coil; or
Coil
160 mA per coil. The L293D IC is a quad half H-bridge
driver and can handle up to 600 mA per driver – more B
than enough for this project! -Vcc
We will be pairing the four half H-bridges to form two
full bridges to control the two windings in our bipolar
Figure 4: Coil switching sequence for bipolar motor.
stepper motor. Each bridge now has two control inputs
and one enable line. When the control inputs’ levels are coil. By controlling the current more precisely, the motor
opposite, current will be driven through the motor coil in can be moved to many positions between each full step.
one direction or another, according to Table 1. Driving both Microstepping also allows the motor to transition more
lines high or both lines low effectively shorts the motor smoothly, resulting in reduced vibration and noise. The
windings across the supply or ground, respectively, which practical limit to the resolution of microsteps is affected by
acts to electrically brake the motor. The enable line is static friction, detent torque of the motor caused by the
unnecessary for this configuration and can be left tied to presence of permanent magnets, and any error introduced
VCC through a resistor. by the controller. Very thorough analyses of microstepping
The input lines from both H-bridges should be connected can be found in various sources online or in related text
to I/O pins on the Propeller microcontroller. All that is left is books.
to program the necessary step sequence to cause the motor
to rotate. This can be done by storing the output pin states Current Regulation
in memory, and stepping through each state after a brief When a coil is switched on, it takes a small amount of
delay. Increasing or decreasing the delay period changes time for the current to reach its steady state. Each coil of
the speed of the motor. Figure 4 shows the coil switching wire has a certain amount of inductance, L, and series
sequence for two full cycles with four steps per cycle. As resistance, R. The voltage across the coil, V, and the coil’s
you can see, a simple stepper motor driver can be made inductance determine how fast the current changes. This
rather easily; however, there are a few techniques to get rate of change — known as di/dt — is equal to the voltage
noticeably higher performance from the motor. These divided by the inductance: di/dt = V/L. At low switching
come in the form of programming, hardware, or a speeds, the current rise time is negligible compared to the
combination of both. duration of the pulse. However, at high switching speeds,
Example Spin code for this project can be downloaded the coil current is unable to reach its full value before
at www.parallax.com/go/GettingControl3. The Spin being switched again. Motor torque is proportional to the
object takes care of sequentially stepping the motor current through the coil, so as the speed increases, torque
windings behind the scenes. With a simple set of function decreases – eventually to a point where the motor can no
calls on the front end, this object can be used to move to longer operate.
an absolute position, move a relative number of positions If a much larger voltage — around 2-3 times the rated
from the current position, set the step rate (speed) in full or voltage — is used when the coil is initially switched on, the
half steps, and set the acceleration value to ramp up and current will rise more quickly (see Figure 5). This gives the
down the speed. The user can also read back the current motor more torque allowing it to operate up to higher
position or clear the position back to 0. speeds. However, it is important that current through the
The object is set to handle up to four stepper motors coil does not significantly exceed the rated value, since
at once, using a total of 16 I/O pins. And since this code is overheating and ultimately damage to the motor can occur.
open source, you can easily tailor the object to fit your One way to protect against this is analog current
exact needs whether they are to drive unipolar steppers or
to employ some of the optimizations described next.
Input 1 Input 2 En Output Function
Optimizations L L H Electrically braked
L H H Reverse current flow
Microstepping H L H Forward current flow
Microstepping breaks each step into a number of H H H Electrically braked
smaller sub-steps in order to achieve higher position X X L Electrically braked
resolution. This is usually achieved in software by using
pulse width modulation (PWM) to vary the current in each Table 1: H-bridge output function versus input state.

SERVO 11.2008 49
McCullogh.qxd 10/7/2008 10:39 AM Page 50

components to sense and switch the supply current, but it


is one of the best ways to noticeably increase motor torque
and top cutoff speed. And conveniently, we already have a
microcontroller available to monitor the current and control
the switching.

Conclusion
Current (i)

Rated coil current

There are several methods of fine-tuning the control


system to enhance a stepper motor’s performance.
Fortunately, by using a microcontroller like the Propeller
Ideal
and a few external components, we have tremendous
Simple driver
Current regulated driver
flexibility to create a control system as simple or complex as
Simple driver with double voltage necessary for our application.
Next month, Chris Savage will be back with the final
Time (t) article in this series to discuss the use of PWM for DC
Figure 5: Current transient curves showing the benefits of a motor control. Be sure to check out the Parallax web link
regulated current driver for schematics, Spin code, and photos of this project. And
as always, good luck and have fun! SV
limiting with a transistor. Initially, the transistor allows full
supply voltage across the coil. Then, as current through Parallax website for this article with example code,
the coil increases, the transistor partially turns off to limit schematics, and photos.
current to the rated value. www.parallax.com/go/GettingControl3
The down side to this analog approach is that This website provides lots of information and a very
significant energy is wasted as heat in the transistor. A thorough explanation of stepper motors.
more efficient method is to switch the large supply voltage www.cs.uiowa.edu/~jones/step/index.html
all the way on or all the way off. The on time is adjusted
Wikipedia article on stepper motors.
so that the average coil current is appropriately limited to http://en.wikipedia.org/wiki/Stepper_motor
the rated value. This technique requires a few additional

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

50 SERVO 11.2008
Full Page.qxd 10/7/2008 11:49 AM Page 51

What today’s robotics


engineers, rocket scientists,
and astrophysicists do for fun.

Exercise your skill, expand


your mind, and challenge your
creativity with everything from
games to gadgets from Edmund
Scientific. Whether you’re a
hobbyist, scientist, or student,
Edmund Scientific has something
to make you smile and think.
For the latest trends in toys
and technology, call for your
free catalog or shop online at
scientificsonline.com.

Gift of Science
1-800-728-6999 • www.scientificsonline.com
Alter3-edited.qxd 10/6/2008 4:48 PM Page 52

Software and Part 3: Software Advantages network admin for seven years
Programming so I stuck with what was
of a PC-Based Robot comfortable. Installation of the
First off, let’s set the record operating system (OS) went
n this series of articles, we are exploring my Pico
straight. I am not a programmer.
I know various forms of
“microcontroller Basic,” VBScript,
some Visual Basic, and am in the
I ITX based Johnny 5 project. In the first article, I
detailed the work that went into upgrading and
expanding the original kit to make it a more viable
simply enough. I plugged an
LCD monitor, keyboard, mouse,
and USB CD-ROM into my robot
(Ha! I love saying that!) and
process of teaching myself C#, research platform. In the second article, I dove into installed Windows just as I
but I don’t believe that qualifies the concept and implementation of PC-based would on any PC. I kept it
me as a programmer. Until my plugged into these peripherals
robotics. In this third article, I will show some of
recent venture into C#, I had only throughout the Windows install,
taught myself enough to get the software advantages of having an onboard PC. driver installation, software
specific projects done, and left it While I used the Lynxmotion Johnny 5 kit as a installation, and initial
at that. With my Johnny 5 platform for my project, the principles, concepts, configuration of the OS.
project, I wanted to keep things and even components of this project can be Before we dive into what
simple and more importantly take applied to almost any robotics platform. software I installed on Johnny,
advantage of GUI-based let’s cover some initial
programs as much as possible, given that I have full access to configuration details needed to trim down the OS a bit and
the robot’s desktop at all times. We’ll touch more on that prepare it for remote connectivity. Trimming down the OS is
later. Let’s tally a few things that we have at our disposal optional and doesn’t provide a huge benefit but it’s sort of
with a PC-based robot: We have a computer and hard drive habitual for me to do on a PC with a very specific function
capable of running a full fledged operating system, wireless such as the robot’s Pico ITX. Right clicking on My
networking, “bridgeware” to connect the PC to the robot’s Computer, selecting Manage, and then selecting Services
hardware components (in my case, this was my SSC-32 down towards the bottom will bring up a list of active and
servo controller), and various other peripherals such as USB inactive services on Windows XP. These are various
webcams, speakers, and a microphone. I will show you just processes running in the background that enable and
how easy it is to bring all of those components together to control different functions of the OS, and a lot of them
greatly expand your robot’s potential. aren’t needed for this project. I turned off Automatic
Updates, Clipbook, Error Reporting Service, Fast User
Operating System Switching, Help and Support, Indexing Service, Print
Spooler, Remote Registry, Security Center, Themes, and
I used Windows XP for my project; it’s what I know Windows Firewall/Internet Connection Sharing (ICS) by
best and it’s simple and easy to use. I know many out right clicking each service, selecting Properties, changing
there will preach the greater potential of Linux in such the Startup Type to Disabled, and clicking Stop.
applications, but for me it was a simple choice: I was a Lastly, I did a clean-up of a few unneeded apps that
52 SERVO 11.2008
Alter3-edited.qxd 10/6/2008 4:49 PM Page 53

get installed with Windows such as Games,


Internet Explorer (I use Firefox), MSN Explorer,
Outlook Express, Windows Media Player, and
Windows Messenger. These are just the basics.
Depending upon your comfort level with
Windows, you can take the total size down to
about 500-600 megabytes and use as little as
50 megabytes of RAM while still maintaining
an OS capable of running your robot.
Diving into the intricacies of in-depth Windows
liposuction is a bit beyond the scope of this
article, however.
Remote connectivity is very important in
PC-based robots. You don’t want to have to
continue to plug in peripherals to your bot
when you can simply pull up its desktop over FIGURE 1
your network via Remote Desktop Protocol
(RDP) and operate it with the same ease. To
prepare Windows for this, you must first create
a password protected account or simply use
the default Administrator account for this
purpose. Next, enable Remote Desktop connections on the treads on the robot. Lucky for me, the original Johnny 5
computer. This option is found by right clicking on My kit I started out with came with a Lynxmotion SSC-32
Computer, selecting Properties, selecting the Remote tab, Sequencer, which is a GUI-based servo control and
and placing a checkbox in “Allow users to connect remotely sequencing package. SEQ is a straightforward and easy-to-
to this computer.” At this point, all that is left is establishing use application that interfaces directly with the SSC-32
a connection to your wireless network. servo controller I am using for this project.
The Remote Desktop Connection manager can be Servo home positions and range limits are set via a
found by navigating to Start > All Programs > Accessories > small configuration menu, and servos are controlled via a
Communications > Remote Desktop Connection, or drag-and-drop GUI. Each servo is represented as a small box
alternatively you can type “mstsc” on the Run line. You can with a slider for setting servo positions, which can be
do this on any modern Windows-based PC connected to moved around to create a layout of your robot’s frame.
your network and simply type in the computer name you Figure 1 shows a screenshot of what my servo layout looks
set for your robot’s computer. This will bring up a log-on like. A “step” is created by manipulating the servos to their
prompt; enter in the username/password you set earlier desired position and then taking a snapshot of the position.
and your robot’s desktop will be displayed. At this point, These steps can be strung together and played through at
you can access and control your robot’s PC from anywhere various speeds to create complex motion sequences, as well
within the range of your wireless network. If it has as be mapped to buttons in the GUI or physical keys. Refer
webcams, you can view those over this connection for to Figure 2 for a picture of a pose created using SEQ. Also
easy telepresence, talk through it using a text-to-speech check out www.youtube.com/watch?v=hHUoxtG91YQ
engine, access network resources, and control its servos
and motors via various programs.

Telepresence
The software used on a robotics project is going to
be dependent upon many things such as what type of
hardware you’re using, what programming languages
you’re comfortable with, and what you want to do with
your robot. Obviously, I can’t tell you what will work for
your project, but I will cover what worked well for me.
My first objective with this project was to set up a
solid telepresence scheme and have the ability to speak
through the robot (read: scare the wits out of my wife). FIGURE 2
Given that a remote video feed is simply a matter of
establishing an RDP connection and viewing one of the
webcams, all I really needed was a way to control the
SERVO 11.2008 53
Alter3-edited.qxd 10/6/2008 4:49 PM Page 54

for an example of a dance


sequence I made (when I was
very, very bored).
SEQ allows for control of my
robot’s Sabertooth 2x5 motor
controller, as it responds to PWM
signals just as a servo does. I
created various steps for moving
the robot forward, back, left, and
right at varying speeds – and
then mapped those to my arrow
keys. I was also able to control
the pan/tilt movement of the
head to look around the room.
Once this was accomplished, I
could easily drive the robot
FIGURE 3
around my house through an
RDP connection with a streaming
This code is written for a camera set to 160x120 resolution, a pan/tilt ‘ video feed from its webcams — overall, a very easy
servo turret, and a Lynxmotion SSC-32 servo controller. implementation of telepresence.
‘ Initialize starting servo values Adding a voice to the robot was also a simple task,
‘ Make sure these variables are set to their respective channels in thanks to its onboard PC. The default text-to-speech engine
the
‘ SSC-32 module that comes with Windows is fairly primitive, to the point of
pan = GetVariable(“PAN_SERVO”) being nearly unintelligible. The company Cepstral offers high
tilt = GetVariable(“TILT_SERVO”)
quality text-to-speech engines that work as drop-in upgrades
‘ get the size (width or height) of the current bounding box for the stock Microsoft engine. I chose a voice called “David”
size = GetVariable(“COG_BOX_SIZE”) as it was clear and easy to understand. The Cepstral voice
‘ if it is equal to “” then no object was detected engines also come with a simple text-to-speech app that
if size <> 0 then reads aloud whatever is typed into the text box. In the first
‘ get the horizontal center of gravity article, an LED VU meter was fashioned into a mouth, giving
cogX = GetVariable(“COG_X”) the robot’s voice a visual display as spoken syllables are
‘ pan left synchronized with the LEDs. This setup mimics the original
if cogX < 70 then technology used for the Hollywood Johnny 5’s mouth.
pan = pan - 20
end if
Autonomy and Machine Vision
‘ pan right
if cogX > 90 then FIGURE 4
pan = pan + 20 As I stated before, I am not a programmer. Full blown
end if
autonomy is a technology still being explored by top
‘ get the vertical center of gravity researchers around the world; however, a small piece of
cogY = GetVariable(“COG_Y”)
that pie would satisfy me. Having built small walkers and
‘ tilt down rovers in the past that used basic range sensors to avoid
if cogY < 50 then obstacles, I wanted to explore new territory with this
tilt = tilt - 10
end if project. Given that my robot was already capable of vision,
‘ tilt up
I chose to explore machine vision for the first time.
if cogY > 70 then Roborealm is a free machine vision software package
tilt = tilt + 10 that can be interfaced to a wide variety of cameras and
end if
electronic hardware. It handles a lot of the heavy coding
if pan > 2500 then pan = 1500 work required for vision processing and allows novice
if pan < 500 then pan = 1500
if tilt > 2500 then tilt = 1500 programmers to focus on the concept and implementation.
if tilt < 500 then tilt = 1500 In Roborealm, a camera’s video feed is brought into
an interface in which various filters can be applied to a
SetVariable “PAN_SERVO”, pan processing pipeline. These image filters can accomplish a
SetVariable “TILT_SERVO”, tilt
variety of different tasks, such as filtering out specific colors,
end if sharpening or softening an image, reducing image noise,
and drawing outlines around objects, to name just a few.
Contact Andrew at andrewdalter@gmail.com Refer to Figure 3 for a diagram of the Roborealm GUI and a
preview of what an object looks like using a filter to remove
54 SERVO 11.2008
Alter3-edited.qxd 10/6/2008 4:50 PM Page 55

all but red and green colors.


Like many others, I have
a man-child obsession with
building a robot that is capable
of fetching me a cold adult bev-
erage. I soon learned this was
much easier said than done, but
I had to start somewhere. The
basis of locating specific physical
items within an environment is
known as “object tracking,” and
can be done a few different
ways. The easiest way for me
was to implement colored object
tracking. The concept behind
this is fairly simple: RGB color
filters are applied in Roborealm
to remove all but a specific FIGURE 5
color. I had a red ball handy that
proved itself to be an excellent
prop for this. To remove some
background noise, I applied a mean color filter which essen- the possibilities of PC-based robotics. As my own
tially blurs the image. Roborealm also has a very handy center programming knowledge grows, I think my robot’s
of gravity (COG) filter which places a box around the largest potential will grow exponentially, as the ceiling of possibility
concentration of same color pixels on the screen, and outputs is nearly limitless with this much computing horsepower at
an X,Y coordinate of its location. The SSC-32 servo controller my disposal. While it’s hard to sum up a year long project
has an interface module that can be added to the pipeline, in only three short articles, I hope that some of what I
allowing variables to be assigned to different channels. learned in the process can be passed along to others. I
Lastly, there is a VBscript module that provides a simple think the biggest thing I’ll take away from this project
programming interface to tie all of the variables together. is that we can’t always hold on to what is comfortable.
I created a program that tracks various colored objects Microcontrollers are still great tools but they are severely
using the pan and tilt head of my robot. Figure 4 shows the limited in what they can do when compared to a PC-class
VB code I used; the entire .robo file containing all pipeline processor. Start thinking of them as complementary
settings is available for download from the SERVO website electronics to a larger, more powerful system and you’ll
(www.servomagazine.com). This program works by be surprised what solutions become available to you as
filtering out everything but a specified color, placing a COG an experimenter.
box around the mass of same colored pixels (the object), Welcome to the realm of PC-based robotics! It’s here
and the VB code reads the X,Y coordinates of the COG now and is the future of our hobby. For updates on the
module and translates those into servo positions on the pan progress I make with this project, visit my project page at
and tilt to keep the object in the center field of vision. I the Trossen Robotics Community. SV
have a video hosted on YouTube showcasing this object
tracking ability at Robogames 2008, found here:
www.youtube.com/watch?v=GfMCaaePFBw. Figure 5 References
shows what my RDP session looks like when piloting my VIA Pico-ITX Page
robot around the house via telepresence. www.via.com.tw/en/initiatives/spearhead/pico-itx/
The next step for me will be experimenting with object
chasing. I can easily track the size of an object using Roborealm www.roborealm.com
Roborealm, and have been somewhat successful in being
Cepstral www.cepstral.com
able to drive towards the objects, but I still hit a lot of
walls. I’ve seen some work done where Roborealm can Lynxmotion SEQ www.lynxmotion.com
draw lines at the floor to ceiling junctions and use those to
avoid running into walls, so implementing that will be the My Project Thread
logical next step. http://forums.trossenrobotics.com
/showthread.php?t=1312
Conclusion My Blog
http://forums.trossenrobotics.com/blog.php?u=1492
I feel that my project barely scratches the surface of
SERVO 11.2008 55
Malone - Lego meets Sumo-edited.qxd 10/8/2008 7:06 PM Page 56

When LEGO meets Sumo


Running a SuGO tournament
by PHIL MALONE

When I moved to Garrett


County (a rural community
in western Maryland),
I really wanted to start
a robotics club. I’d been
working in underwater
robotics for about 20
years, and I figured it was
time for me to give
something back to the
community in the way of
fun technical challenges
for the area kids.
Underwater robots are tough to build (water and electricity just don’t mix), so I decided that
Sumo robots were the perfect place to start.

The Inspiration LEGO/Sumo ’bot was hatched.


Anyone who’s tried to build a LEGO/Sumo bot
After experimenting with several Sumo kits and even probably knows that it’s tough getting one to fit into the
designing some of my own bots, I realized that traditional existing Sumo size classes. The RCX Brick (the original LEGO
Sumo competitions require some technical expertise that I brain) is just shy of the mini-Sumo class size limits, so by the
couldn’t expect from the kids I wanted to attract (yet). I put time you add motors, wheels, and a line sensor, you end up
the idea on the back burner for a year while I mentored a with a very top-heavy robot.
couple of area FIRST LEGO League (FLL) teams, and helped Plus, until recently there was no easy way to add vision
out in some LEGO tech camps. to the RCX, so the robots just run around hoping to get
lucky and run into their opponent. For a Sumo bot to really
LEGOs Rule! be competitive, it needs to be able to detect its opponent,
but LEGO doesn’t have a simple sensor that can be used to
When my desire to start a local competition resurfaced, decide which way to turn.
I realized that I wasn’t utilizing an abundant resource in my Since I’d used Sharp’s GP2D12 IR range sensor on my
area, namely LEGOs. It turned out that two area teachers other Sumo bots, I wondered if it could be adapted to the
“Chuck” and “Arlene” had been accumulating all kinds of LEGO RCX. The best way to find out was to see if anyone
the coolest LEGO parts and RCX Bricks for years and they had already tried, so I started Googling. First, I found
loved seeing kids explore LEGO machines. So, the idea for a Andreas Peter, who had developed a fancy Sharp interface

56 SERVO 11.2008
Malone - Lego meets Sumo-edited.qxd 10/8/2008 7:06 PM Page 57

using an external microprocessor, then I came across


Philippe Hurbain, who had devised a simpler analog The DROD40 has a very clever circuit board with holes
interface. That led me to Nitin Patil (founder of that match the standard RCX electrical plug. Initially, we used
www.Mindsensors.com) who was selling a GP2D12-based standard cables to connect the sensor to the RCX. However,
sensor that plugged into an RCX using a standard LEGO because of the rough and tumble that Sumo bots must
cable. Woo Hoo! endure, these connections didn’t always stay connected.
The good thing about the Mindsensors device is that it Eventually, we cannibalized some old cables by cutting them
provides an actual range reading; but it also has its in half and soldering the wire ends directly to the sensor
downsides. First, in order for it to get enough power to boards (see Figure A). This provided a much more reliable
update at a reasonable rate, it has to be plugged into an connection and also enabled us to permanently glue small
RCX motor output. This means that for a left and right eye, LEGO plates to the sensors to give them a more robust
you have four cables: two going into sensor inputs, and mount.
two sharing a common motor output. The next problem is
that the sensor is very sensitive to battery voltage. After a
short while, even fresh batteries start giving erroneous
readings, which tends to make the Sumo bot spin. Cost
is a bit of a problem, because the sensor costs $33.
(That’s $66 per Sumo.)
I was about to give this up as a lost cause, when I
discovered a simpler unit that did everything I needed.
Mindsensors also sells what they call a Long Range Dual
Infra Red Obstacle Detector (DROD40). This device uses two Figure A. The MindSensors DROD40 sensor can be seen here
IR LEDs and a central IR detector to sense the presence of in its final modified configuration. Hot melt glue adds some
an object in three zones: left, center, or right. The device strain relief to the after-market sensor cable. Mindsensors
indicates the position via a single RCX input channel as a also has a DROD40 that is compatible with the new NXT
LEGO robots.
stepped voltage. The DROD40 sells for $29 and is all that a
self-respecting Sumo robot needs.
Portland Area Robotics Society Sumo rules to insert a new
Conceiving the Event Format class between the Japan and mini-Sumo classes.

By now, I’d decided how I wanted to run my


competition. Since LEGO is such an instant gratification toy,
I decided to throw out the classic design/build/test model,
and embrace everyone’s “let’s just build it” roots. I would
run a half-day event where people would turn up empty
handed, sit down in a room full of LEGOs, build the coolest
Sumo they could , and then battle it out on the Sumo ring.
I even had a name for my event ... it would be called
“SuGO” — a concatenation of Sumo and LEGO. With the
right inflection, the name even makes a convincing
Japanese battle cry.
To try out the basic SuGO concept, I created a Sumo
program using Robolab, beamed the program to some
RCXs, and got a group of my FLL kids together to build and
battle SuGO bots. Some of the resulting matches were
really exciting, but others were very dull (lots of deadly
embraces). It became clear that I had to be more creative
to keep this fun.
I needed to set some size and weight limits appropriate
for a SuGO bot that would permit interesting designs but
still create some technical challenges. I needed to
encourage more clever drive systems rather than just letting
the kids depend on lots of motors. Having the RCXs pre-
programmed turned out to be a great way to get all ages
involved (kids, moms, and dads), but I realized that I had to Figure 1. The best way to avoid having to answer the same
make the program more dynamic and adaptable to a wide questions over and over again is to create simple hand-outs. This
laminated card illustrates the correct way to hook up the motors
range of drive systems (e.g.: really fast or really slow). and sensors. The “Mechanic” program loaded on the RCX is used
So, to develop a successful SuGO class, I adapted the to verify that the robot is wired correctly.

SERVO 11.2008 57
Malone - Lego meets Sumo-edited.qxd 10/8/2008 7:06 PM Page 58

Sumo purists will notice that instead of sticking with restart matches quite often. The problem was that my initial
traditional “metric” units, I’ve reverted to “English” units SuGO program demonstrated the classic Sumo behavior:
when defining the SuGO class. As an Australian who grew Go forward until you either see the white line or see the
up with the metric system, it’s not that I don’t like meters opponent. If you see the line, back up and turn. If you see
and grams, it’s just that most American kids don’t know the opponent, turn towards it and push! Unfortunately, it
what they mean. It’s ironic that even the English don’t use didn’t know how to get unstuck from another robot.
”English” units anymore. Too bad the colonists didn’t throw What I needed was some method to break a deadlock
them overboard with the tea. between the robots, and to implement that method; I
needed a better language. So, I got back on Google and
Here are the resulting SuGO Class specifications: discovered NQC (Not Quite C) and the Brickx Command
Center. These two tools let me get back into my
• The Dohyo diameter is 36”. programming comfort zone and think in terms of
•The robot must be made exclusively out of LEGO functions, tasks, and variables rather than sub-VIs and
parts. colored containers.
•The only exceptions to this are batteries and IR eyes. What I ended up with was a system whereby the robot
•The robot may only use the following electrical parts: keeps track of how long it’s been doing the current action,
— 1 RCX Brick with batteries. and if it gets stuck doing the same thing for too long, it
— Up to three LEGO motors. backs off and makes a random evasive maneuver. This is
— Up to two light sensors. implemented as two tasks: A “Move_Sugo” task that deals
— One set of DROD40 eyes. with normal Sumo behavior; and a “Deadlock” task that
— One touch sensor. kicks in to break an obsessive behavior.
— Interconnecting cables as required by the motors In the end, the implementation was pretty simple.
and sensors. A number is assigned to each action the robot takes in
•The maximum robot size is 6” x 6” x unlimited response to sensor input (e.g.: turning away from the
(WxLxH) whiteline sensor is action 1; turning left based on the left
• The maximum robot weight is 1 lb, 8 oz. eye is action 4, etc.). The Move_Sugo task is responsible
for polling the sensors and taking the appropriate
Finally, Some Software action (setting the motor speeds, etc.). It then sets an
“Action” variable to indicate what action the robot is
Once I’d decided on the class specifics, I had to work currently taking.
on some programs. Embedded programming is my “thing,” The Deadlock task runs in the background watching
so I was looking forward to this. the Action variable. Whenever the variable changes to a
During the experimental SuGO matches, it was quite new value (indicating a new action), the task clears a timer
common for the robots to get locked together and either back to zero. However, if the timer ever reaches a certain
bog down or circle the table in a very non-dancing-with-the- value (called BREAK_DEADLOCK), then it’s time to break
stars kind of way. To keep things interesting, I needed to things up. The Deadlock task shuts down the Move_Sugo
task and drives the robot through a random avoidance
motion. Once that’s complete, it resets the timer and
restarts the Move_Sugo task. Just for fun, the robot plays
a tune to let everyone know that it’s not giving up, it’s just
getting a better grip.
Since the RCX brick has five program slots, I configured
four SuGO strategy programs and one test program. (All
five programs may be downloaded from the SERVO website
at www.servomagazine.com).
The four SuGO programs are almost the same except
for the type and duration of turns that are made. Whereas
a tankbot needs to use full differential steering, a
speedybot needs to keep one wheel stopped when turning.
The programs are called Elephant, Rhino, Lion, and Cheetah
to help the kids figure out which program they should use
based on their robot’s own characteristics.
Figure 2.The GEARS color scheme is “Sponge Bob Yellow,” so your The test program (or Mechanic) is used to verify that
energy level peaks just by entering the room. The electrical parts all the robot’s cables are plugged in correctly and that the
are seen in the foreground and are controlled by the event
coordinator. Teams are given a basic kit of electrical parts when motors are running in the correct directions. It directs the
they register; this includes the pre-programmed RCX, two motors robot through a sequence of motions that let you isolate
with leads, a line sensor, and a set of IR eyes. The bulk of the
remaining LEGOS are laid out on a 4x8 table in the center of the any problems, and then makes noises based on what the
room and are up for grabs. various sensors see. Trust me, a set of eyes that are
58 SERVO 11.2008
Malone - Lego meets Sumo-edited.qxd 10/8/2008 7:07 PM Page 59

Figure 3. During the 2 1/2 hour build period, teams design and
build their SuGO bots. Many teams are family groups with moms
or dads learning alongside their kids. It’s amazing how many times Figure 4. Once building is complete, play moves out into the arena
we hear the mantra: “I wish we had LEGOs like this when I was a area. GEARS also hosts the county’s FIRST Robotics Competition
kid.” Team 1629 so we run our SuGO matches at one end of the FRC
practice field. Team 1629 members take full advantage of the
incorrectly plugged into the line sensor input can make for audience and demonstrate the operation of past FRC robots.
a very erratic Sumo bot. Before any robot can compete, it 2006 and 2005 robots can be seen behind the SuGO rings, as well
as the “Rack” from the 2006 competition.
needs to “see” the Mechanic. I have laminated cards (see
Figure 1) to show how to connect up the devices and what have a 1,000 sq foot room where we set up a 4’x8’ table
each step of the test program does so the kids can prep for all the LEGO parts, and then a bunch of folding tables
their own robot. for construction (see Figures 2 & 3). The actual competition
is run in the arena section of the GEARS building (see
Game Day Figures 4 & 5). We run each competition as a very informal
event, as many of the teams are actually family groups. We
We run SuGO events on the first Sunday of each do have a weigh-in and an official sizing box, but beyond
month, from 1:00 pm to 5:00 pm. Construction starts right that it’s all about the fun of learning what works and what
at 1:00 pm and the competitions follow at 3:30 pm. We doesn’t. I think the most anticipated part of the day is
run free community event announcements on the radio and when we have our free-for-all when up to eight robots play
in the local paper during the week leading up to game day. at once and it’s all about the last bot standing.
The local Chamber of Commerce is a great asset in getting Anyone who’s a serious Sumo bot competitor will
the word out, and if we include a photo from the last event recognize that our SuGO format embraces the joy of
the paper will usually print that, as well. building and doesn’t get much into game strategy or
The venue is a county-owned facility, made available by software. I’m hoping that as our players get more
the Garrett Engineering And Robotics Society (GEARS). We experience and reach the limits of my canned programs,
they will want to start an Advanced SuGO competition,
Web Links where each player programs their own robot. As it is, I’m
still waiting for someone to use the part of my program
The SuGO website includes a set of SuGO rules and that turns on the third motor when the opponent is directly
specifications, a how-to guide, building instructions for a in front. Can you say flipper? SV
simple SuGO robot, and online event registration.
http://sugo.gearsinc.org

Pictures from our first event.


http://sugo.gearsinc.org/event_10-15-06.shtml

Garrett Engineering And Robotics Society, Inc.


www.GEARSinc.org

The product page for DROD40 infrared sensors.


www.mindsensors.com/index.php?PAGE_id=30

Brickx Command Center.


http://bricxcc.sourceforge.net/
Figure 5. A dad helps a young participant to get a SuGO match
Not Quite C. under way. Notice that the competition is not all about function.
http://bricxcc.sourceforge.net/nqc/ Aesthetic design is also important. Everyone joins in with the
starting chant: Ready, Set, SuGO!

SERVO 11.2008 59
Simpson-SV-edited.qxd 10/8/2008 4:41 PM Page 60

Build a
GPS SMART LOGGER

by Michael Simpson

I recently did a GPS series covering various GPS modules and their interfaces. A
project that I have had in mind for a while was a small GPS Smart Logger. I call it
a smart logger because in addition to the GPS data, you can log various other
telemetry. You can also set the conditions and type of GPS data that gets logged.

W hen I started this project, I came up with the


following requirements:
capable of detecting a low voltage drop. This is important
to prevent log file corruption when the battery dies.
The wiring diagram for the project is shown in Schematic
• Self-contained operation 1. I have used a couple of techniques to make hookup easier.
• Able to operate on battery for 24 hours Notice that the two LEDs are connected to two ports each.
• Able to detect low battery levels Ports 0 and 2 are held low, so this provides a ground for the
• Log data must be written to SD memory card LEDs. While this uses a port on the DiosPro, it does make the
• WAAS support connection of the LEDs much simpler, as you will see later.
• Single button operation Another shortcut I have taken is to tie both leads on
• LED indicators the record button to ports 6 and 7. The DiosPro has the
• 3.3V operation ability to hold ports 0-7 high with a weak internal resistor.
• Ability to log additional data Port 6 is held low so that when the record button is
• Must cost under $150 to build pressed, this forces port 7 low, as well.
The EM 408 GPS connection is straightforward. I have
I call this a smart logger because you have the ability to simply connected it to the onboard UART. Notice how the
choose what does and does not get written to the SD Enable lead is also tied to VCC. This needs to be done in
memory card. You can also use one of the many analog-to- order for the GPS module to operate.
digital (A/D) lines on the DiosPro to log additional data. The SD memory card interface utilizes the Dios MMC
I chose to operate the smart logger at 3.3V for a library and is forced to use I/O ports 10, 11, and 12. The
couple of reasons. First, both the SD card and the GPS CS (Card Select) is configurable and can be set to any port.
module operate at that voltage. Second, the lower the In this case, I have used port 13.
operating voltage, the more run-time for a set of batteries.
The DiosPro microcontroller chip that I have chosen to Construction
use in this project will operate at 3.3V just as easily as it will
at 5V. The DiosPro also supports an LVD library that is You will need the following components in order to
60 SERVO 11.2008
Simpson-SV-edited.qxd 10/8/2008 4:42 PM Page 61

complete this project. Please


refer to the parts list later in Schematic 1
the article for part numbers.

Major Functional
Components:
• DiosPro 28 chip
• Dios Carrier 1
• EM 408 GPS
• SD breakout board
• EZRS232 (needed for
Programming the DiosPro)
• SD memory card

Additional Components:
• Pushbutton
• Twored LEDs
• Two green LEDs
• 100 µF capacitor
• On/off switch
• Jumpers
• Battery holder
• Battery connector clip
• Two 1K resistors
• 36-Pin female header
• 40-Pin male header
• Two 4.5” x 3.5” pieces ofpPlastic sure to solder at both the entry pad and the pad located at
• 3.3V regulator the tip of the pin. Now gently twist the regulator and insert
• Four #4 x 1” stand-offs (F-F) the remaining pin into the hole shown in Figure 5. With the
• Female crimp pins regulator attached, you can now attach the two 16-pin
• Eight #4 x 1/2” machine screws headers on the top of the board as shown in Figure 6.
• Eight #4 hex nuts Take an additional two pin header and attach it to the
• Double stick foam tape position marked J2.

You will also need a copy of the Dios compiler. This • STEP 3: You will need to cut two pieces of plastic like the
compiler is free and can be found on the KronosRobotics ones shown in Figure 7. I used compressed PVC cut to 4.5”
website at www.kronosrobotics.com. x 3.5”. The bulk of the size of the project is devoted to the
batteries used to power the device. I am using a six AA cell
• STEP 1: The first thing you need to do is to build the Dios pack to power my unit. If you want to use a small 9V-like
Carrier 1. Build it according to the included instructions but battery, this would allow you to create a much smaller
hold off attaching the two included 16-pin headers as enclosure. The trade-off, however, would be less run-time.
shown in Figure 2. The carrier comes with a 10 µF capacitor Place four small 1/8” holes in each corner about 1/8”
and this is plenty for the circuit; however, you may want from both edges. A trick I use to place the holes all in the
to replace it with a 100 µF capacitor. This will keep the same place in each corner is to drill one hole in one piece.
insertion of the memory card from resetting the DiosPro Then use that
chip. A 100 µF capacitor won’t fit on the board, so you will hole to mark
Figure 3
have to bend the pins and insert it at an angle. each of the

• STEP 2: The project requires a


3.3V regulator to power the circuit.
The most compact way to do this is
to attach it directly to the Dios
Carrier 1 board. Take the regulator
and insert pins 1 and 2 into the
board as shown in Figure 3. From
the underside of the board, bend
pin 1 on the regulator and solder it
Figure 2
in place as shown in Figure 4. Be
SERVO 11.2008 61
Simpson-SV-edited.qxd 10/8/2008 4:43 PM Page 62

Figure 4 Figure 5 Figure 6

corners in the other piece. You do this by flipping the piece the antenna connector is off to one side of the card slot.
with the hole as needed. Once all four holes are marked, This way, if you decide to use an external antenna it won’t
drill them out and use this piece to make the original. be in the way when you insert the memory card into its
Take the completed carrier module and attach some socket. Place some double stick tape on the bottom of the
double stick foam tape to the bottom, then attach the carri- memory breakout board and attach it to the base as shown
er to the base as shown in Figure 8. Notice how I placed in Figure 12.
stand-offs on the board so I can judge the distances better.
• STEP 6: Take a red LED and attach a 1K resistor as shown
• STEP 4: The EM 408 comes with a small cable that needs in Figure 13. Then cut the leads so that they can slip into the
to be modified for this project. You can purchase an extra crimp pins as shown in Figure 14. You can also solder the
cable from SparkFun, if needed. Cut one end and attach leads to the crimp pins. As an option, you may connect a
the leads to small headers as shown in Figure 9. small bit of heat shrink to the leads as shown in Figure 15.
Repeat the step with the green LED. If you don’t want to use
• STEP 5: Take the SD memory breakout board and attach the crimp pins, you can use a two-pin female header instead.
a five-pin header into the first five pads shown in Figure 10.
Take a few pieces of double stick foam tape and attach • STEP 7: Attach two crimp pins to a pushbutton as shown
them to the memory board as shown in Figure 11. Now in Figure 16. You can also use a female header. The actual
take the EM 408 and attach it to the memory board as connection technique depends upon the type of button that
shown in Figure you use. As before, you can cover the leads with heat shrink.
11. Make sure
Figure 7
• STEP 8: Attach the red LED to ports
0 and 1 as shown in Figure 17.
Figure 8 Make sure the flat side of the LED is
connected to port 0. Attach the green
LED to ports 2 and 3. Make sure the
flat side of the LED is attached to port
2. Attach the button to ports 6 and 7
as shown in Figure 17.

• STEP 9: You need to build a battery


connector assembly. This connector
will work with the six-cell battery

Figure 10

Figure 9

62 SERVO 11.2008
Simpson-SV-edited.qxd 10/8/2008 4:44 PM Page 63

holder, as well as a nine-volt


battery. Take the battery clip and Figure 11 Figure 12
attach the ends to a small two-
pin female header as shown in
Figure 18. Cut the red lead at
about 3.5 inches from the clip.
Strip and solder each red lead to
a small toggle switch as shown
in Figure 18. Attach the cable
assembly to the carrier board
as shown in Figure 19. Make
sure the black lead faces the
capacitor.

• STEP 10: At this point, you


can perform an LED test. Before
you can do that, you need to build the EZRS232 Figure Figure
Figure 14
driver. The EZRS232 driver comes with a male 13 15
header so you have two choices. The first is to
install a five-pin female header in place of the
included male header as shown in Figure 20.
Another option is to create a female-to-female
connector by attaching two five-pin female
headers together and using this as an adapter.

• STEP 11: Attach the battery to the battery


clip and the LEDs should begin to light. This is
because each DiosPro chip comes preprogrammed
with a test program. Attach the EZRS232 to the
Dios Carrier as shown in Figure 21, then connect
the nine-pin cable to your PC and start up the
Dios compiler. Load and program the included file called • STEP 15: For the following connections, you need to refer
DiosLEDtest.txt into the Dios. The two LEDs should blink to Schematic 1 and the Dios Carrier 1 manual to help you
and then stop when the button is pressed. find the pin location.
Connect a jumper between the GPS TX lead (black) to
• STEP 12: I will be using some small female-to-female the carrier port 8. Next, connect the GPS RX lead (white) to
jumpers to connect the memory card and GPS module the carrier port 9.
to the Dios carrier. These can be purchased from At this point, you can test the GPS. Apply power to the
Schmartboard at www.schmartboard.com/index.asp? Dios and attach the RS-232 driver. Load and program the
a=11&id=42. Dios with the file called DiosEM408test.txt that I have
We need to create a couple of split power connectors.
In order to do this, take three of the jumpers and cut them
Figure 16 Figure 17
in half. Then connect three of the pieces to create the split
jumper shown in Figure 22. You will need to make two of
these jumpers.

• STEP 13: Take one of the split jumpers and connect


one end to the J1 pin 2 as shown in Figure 23. Then
connect one of the other ends to the GPS GND lead
(black). Connect the last end to the memory board
pin 5 (GND).
With the second split jumper, connect one end to the
J1 pin 1 as shown in Figure 23. Then connect the other
ends to the GPS VCC and Enable leads (white and red).

• STEP 14: Take a single 5” jumper and connect it to the


VCC pin (marked +) on the carrier and the VCC lead on the
memory board (pin 3) as shown in Figure 24.
SERVO 11.2008 63
Simpson-SV-edited.qxd 10/8/2008 4:45 PM Page 64

Each cluster has 8 sectors


Figure 19 Number of fat tables 2
Each FAT has 244 sectors
Root has 512 entries or 16384
bytes. 32 sectors
Fat1=0.109
Fat2=0.353
Root=0.597
Data=0.629
Memory Card Initialized
Figure 18
• STEP 17: In order to attach the
stand-offs, insert a 1/2” machine
screw through a hole in the bottom
base, then attach two nuts to the
screw and finally the 1” stand-off (as
shown back in Figures 8 and 12). This
configuration will make the six-cell
Figure 20
battery holder fit tightly inside the
enclosure. If you use another kind of
battery, you will need to adjust
accordingly.
Figure 21
• STEP 18: In order to attach the top
base, you will need to line up the
Figure 22
included. The LEDs and buttons to create some holes. There are a couple
GPS Dios should of ways to do this. One way is to cut out a piece of tracing
start to display NEMA information to the debug terminal. paper that is the same size as the base and place it over
the LEDs, then mark the LED and button positions. Before
• STEP 16: Make the following connections to complete the drilling the holes, add an extra 1/8” between the two LEDs.
hookup: For the LEDs, I drilled 5/32” holes. The button will
depend on what is used. If you use a button that mounts
• Connect the memory card pin 1 (CS) to the carrier port 13. to the top base, then you can attach wires to the leads and
• Connect the memory card pin 2 (DI) to the carrier port 10. route them to ports 6 and 7. In this case, the button can be
• Connect the memory card pin 4 (CLK) to the carrier port 12. placed in several locations.
• Connect the memory card pin 6 (DO) to the carrier port 11. You will also need to drill a hole for the power switch.
The actual diameter will depend on the switch you use.
Now insert an SD memory card into the memory card Attach the base to the stand-offs with four 1/2”
breakout board and apply power. Then plug the EZRS232 machine screws as shown in Figure 25. You will probably
driver into the have to bend the leads on the LEDs in order for them to fit
carrier and load the properly. This is normal, and if you used heat shrink as
Figure 23
program file called insulation, should not present a problem.
DiosLogEM408.txt.
This is the main Smart Logger Operation
logger program.
If the memory When power is applied to the smart logger, it will test
card is working the memory card for a file called LOGDATA2.txt. If it is not
properly, you should found, a 20 meg file will be created. This is just a place
se a message that holder file and will be truncated as necessary when
looks something collecting data.
like this:
Startup Indicators
Memory Card • Red LED blinks four times and stops — Smart Logger is
Initialized ready and in run mode.
Volume Type=FAT16 • Red and green LEDs alternate a one second blink —
Partition starts at Memory card failure.
sector 0.101 • Red LED does nothing — Battery dead.
Reserved sectors 7 • Red LED blinks four times then green LED flashes
64 SERVO 11.2008
Simpson-SV-edited.qxd 10/8/2008 4:45 PM Page 65

fast — Battery low. Going Further


Fix Indicator If you look closely at the code in the DiosLogEM408.txt
• Green LED alternates on and off every second or so — program, you can see that I have added my own NEMA
Smart Logger is ready and in run mode with no Fix. messages. When a low battery is detected, a
• Green LED flickers on with one quick blink — GPS has a “$GPMSG,1,LowBat*7C” is sent to the log. The DiosPro
SPS mode 1 Fix. has several unused digital and A/D ports so it would be
• Green LED flickers on with two quick blinks — GPS has a possible to add additional data to the log file. This would
DGPS or WAAS mode 2 Fix. enable you to actually record robot control telemetry, as
• Green LED flickers very fast constantly — Indicates battery well as sensor data.
level has dropped too low for operation. The DiosPro supports a sleep mode so it is possible to
• Green LED fails to light at all — Battery dead. log intermittent data. This would allow you to log days
worth of data on a single charge.
Record Indicator While the Smart Logger was built for logging GPS and
• Solid Red LED — When record button is pressed, the telemetry data for robotic applications, there’s no reason
LED will light solid red until the button is released. Press a you can’t use it to log positional and speed data in your
second time to exit record mode. automobile.
• Red LED flashed quickly — Each time a NEMA GGA or
RMC message is saved, the red LED will flash quickly. SparkFun Data Logger
• Red LED not flashing — Not in Record mode.
I would be remiss if I didn’t mention the SparkFun data
Each line of data is actually written to a buffer and logger module. For those of you who want a pre-built data
when that buffer reaches a value of 512 bytes, it is saved logger module, this may be what you are looking for. The
to the SD memory card. When recording is stopped or the GPS Logger v2.4 is a self-contained module. All you need to
battery level drops too low, the buffer is also saved to the add is four to seven volts DC. The module has an EM406
memory card. GPS module installed on the top as shown in Figure 26. It
It is not recommended that you remove the memory supports up to a 1GB SD memory card which is inserted on
card while in record mode; you could corrupt the log file. the bottom as shown in Figure 27.
Take the logger out of record mode first. You can stop and To power the module, I recommend a set of 2,000
start the record mode at will. When restarted, it will mAh rechargeable batteries and a battery holder like the
append data to the end of the log file. Note that if power is one shown in Figure 28. SparkFun also sells a battery
removed, the logger will start back at the beginning of the holder with a two-pin connector that mates directly with
file when power is restored. this module. With this power source, you will get just under
12 hours of operation with a steady stream of data writing
How Well Does it Work? to the memory card. You will get a couple days of run
time if you opt for an intermittent write of once every
On a freshly charged set of 2,000 mAh rechargeable few minutes.
batteries, I get about 20 hours of record time. This could Once you insert a memory card and apply power, the
probably be extended if the LEDs were turned off completely. module will create a default config file called GLOGCON.
By only recording the GGA and RMC messages, we can TXT as shown next. By default, the config file will be set to
store about 39 hours of data in a single 20 meg file. mode 1, which will log all data. By changing this to mode
Because of the way I set up the addtofile function, only 1, you can set the time between logs, thus putting the
65,000 sectors can be written to the file on the SD memory module to sleep when it is not writing. Another setting
card. This is about 33 meg. If you need to store more data, you will want to change if you are in the US is the
then you need to add more code to flush the current file WAAS setting. By setting this to 1, the module’s accuracy
and open up a second. Another
option would be to modify the Figure 25
Figure 24
addtofile and setfilesize functions to
handle a larger sector counter.
I have included a sample log
file that I created using the Smart
Logger and I have to say it worked
perfectly. The logger is small
enough to fit into most robots that
would be using GPS and can be
made even smaller if you remove
the battery and power it from your
robot’s logic power source.
SERVO 11.2008 65
Simpson-SV-edited.qxd 10/8/2008 4:46 PM Page 66

If you decide to use the SparkFun


Figure 26 module, here are a few tips:

• The module does not monitor the


battery so it’s up to you to make
sure you don’t drain the batteries
completely. If you do, you will
probably corrupt the card and it will
require reformatting. For long-term
logging, you will want to use the
intermittent write method mentioned
previously.
Figure 27
• You need to hit the small button on
the module to stop the logging
operation. This can be a problem if you mount the
module in any kind of enclosure. You can connect an
external button to the two outside leads on the button.
This way, you can route them to any location on your
enclosure.
• To mount the module to an enclosure, place some double
stick tape on the top of the GPS antenna and stick the
module to the underside of the top of your enclosure.
• If the power connector gets in your way, try removing the
connector completely and soldering a couple of wires to
the bottom of the board.

Final Thoughts
All in all, the SparkFun data logger works pretty well
Figure 28
and presents itself in a very small package. The output on
the SD memory card is NEMA 0183 so you won’t have
will be greatly increased. any compatibility issues. If, however, you want total control
over the output and the ability to log some of your
Mode = 0 own messages such as A/D, you will want to stick with
Log What = RMC;GGA;GSA the GPS Smart Logger. The cost is about the same for
Time Between Logs = 00:10:00 both systems.
Holdoff = 5 Be sure to check for updates and downloads for this
WAAS = 0 article at www.kronosrobotics.com/Projects/GPSLOG.
Max Time to Lock = 300 shtml. SV

Parts List
The following is a breakdown of the sources for SMA to MMCX Adapter Cable (optional)
Dios Carrier 1
all the componets referenced in this project. www.sparkfun.com/commerce/product_
www.kronosrobotics.com/xcart/product.
info.php?products_id=285
php?productid=16170
SPARKFUN ELECTRONICS
EM-408 GPS Module GPS Logger v2.4
800 ma 3.3V Regulator
www.sparkfun.com/commerce/product_ www.sparkfun.com/commerce/product_
www.kronosrobotics.com/xcart/product.
info.php?products_id=8234 info.php?products_id=8237
php?productid=16565
DF-MMC Breakout Board SCHMARTBOARD
Six-Cell Battery Pack
www.sparkfun.com/commerce/product_ 5” Yellow Jumper
www.kronosrobotics.com/xcart/product.
info.php?products_id=204 www.schmartboard.com/index.asp?a=11&id=42
php?productid=16321
Nine-Pin Serial Cable KRONOS ROBOTICS
36-Pin Female Header
www.sparkfun.com/commerce/product_ EZRS232
www.kronosrobotics.com/xcart/product.
info.php?products_id=65 www.kronosrobotics.com/xcart/product.
php?productid=16291
php?productid=16167
External Antenna with SMA Connector
Female Crimp Pins
(optional) DiosPro 28 Chip
www.kronosrobotics.com/xcart/product.
www.sparkfun.com/commerce/product_ www.kronosrobotics.com/xcart/product.
php?productid=16261
info.php?products_id=464 php?productid=16429

66 SERVO 11.2008
SV-GiftSubAd2008.qxd 10/7/2008 4:07 PM Page 67

Give the
gift that
lasts all
year!

Go to
www.servomagazine.com
to enter your gift order!
Be sure to use promotion code Y8WXMS when ordering.

U.S. Prices
1 Yr – $24.95
2 Yr – $45.95 Subscribe online at: www.servomagazine.com
3 Yr – $65.95 or call: 877-525-2539 (toll free) / 818-487-4545 (outside US)
RoboResources-Nov-edited.qxd 10/6/2008 12:18 PM Page 68

Tune in each month for a heads-up on


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

Hand Tools for


Robot Construction
Imagine robot building during and medium- and small-tip slotted vice versa). Nut drivers are typically
Neanderthal times. Your only tools drivers. Magnetic tips are handy, sold in sets for nuts from #2 size
were various rocks, maybe an antler but not necessary. For working to 3/8”.
or two, and wood sticks that everyone with slotted screws, get a small and You may find some other types
else in your camp used for throwing medium size flat blade screwdriver. of wrenches useful. Locking grip
at animals they wanted to eat. This If space in your toolbox is limited, pliers — such as the Vise-Grip brand —
most certainly made constructing that consider a set with one screwdriver incorporate a mechanism that literally
perfect line follower very difficult. handle and multiple bits. (You just locks around whatever object you
Be grateful you live in the 21st exchange the bits depending on the want to hold, saving your hands
century, where tools are the mainstay screw you’re working with.) Whatever considerable effort. There’s also box
of our industrial existence. Starting you buy, don’t cheap out. You’ll use wrenches, socket wrenches, adjustable
with just the lowly screwdriver, an your screwdrivers more than most wrenches, and a slew of others, but
assortment of the right tools and the any other tool, so test the grip for unless you’re building the larger metal
right time helps you build better, comfort. The plastic should not dig combat robots, you probably will have
stronger robots. In this column, we into your palm. Try soft (rubber) little use for these.
review some of the more common coated grips for extra comfort. A mainstay of robot building is a
hand tools used in building the Miniature fasteners (those hacksaw, purchase one with a sturdy
average robot. 4-40 and under) require smaller metal frame. Look for a tool that
There’s no way to discuss every screwdrivers. Purchase a set of #00 allows quick blade changes, yet holds
tool you’ll possibly see or use, but and #0 Phillips, and small-bladed the blade securely. Common blade
we’ll cover the most important ones slotted “jeweler’s” screwdrivers. sizes are 10 and 12 inches long, and
that you won’t want to be without. In Standard and needle-nose pliers many hacksaw frames are adjustable
the Sources section, you’ll find online are the next most common tool used to accommodate either one. The
suppliers of hand tools in various price in making robots. Pliers hold things smaller size is recommended when
ranges. (To learn more about power with a stronger grip than you can working with metal, as the short
tools useful in the roboto building apply with just your fingers. A pair blade gives you more control of
trade, check out the April 2008 of both standard and needle-nose the tool. Purchase an assortment of
column). pliers is sufficient for 90% of all jobs. carbide-tipped blades in 18 and 24
Avoid using either one as a wrench teeth-per-inch (tpi).
What’s in Your for tightening bolts and nuts. They’ll Though most robots are not
strip the head of the fastener. made with nails, a standard 16-ounce
Toolbox? A pair of “lineman’s” pliers can hammer is a useful tool for any work-
The most common tool for any be used for bigger jobs, and they shop. You might use it to hammer a
kind of robot construction is the provide a sharp cutter for clipping small metal bracket into a new shape,
screwdriver. Because screws have non-hardened wire (don’t use them to or softly knock at the corners of your
different types of heads (usually clip steel aircraft cable or music wire). robot to ensure the frame is square.
slotted or Phillips) and heads of If your robot uses nut and screw You will need drill bits and a
different sizes, you’ll need a couple construction, you’ll want a nut driver drill if you want to make any holes.
of sizes to meet most any demand. to secure the nut while you’re tighten- I personally recommend a small
At a minimum, get #1 and #2 Phillips, ing the screw with the screwdriver (or electric drill rather than a hand drill,
68 SERVO 11.2008
RoboResources-Nov-edited.qxd 10/6/2008 12:19 PM Page 69

but either will work as long as your Where to Get you name it), bits, saws, casting
robot is made of plastic or wood. Drill materials, plastics, hardware safety
bits are commonly sold in convenient Your Tools equipment, and more.
sets. Opt for the better quality I always recommend that you buy
titanium oxide coated drill bits. only the best tools you can, because FDJ On Time
They cost more, but they’ll stay better tools not only last longer, they www.fdjtool.com
sharp longer, which means you won’t perform better. But it’s not always For the jewelry maker, FDJ/On
have to replace or resharpen them as practical to buy the best. When Time is a “one-stop shop” for
much. The typical set contains bits necessary, you can purchase low-cost miniature jewelry tools, casting
with sizes from 1/16” to 1/4”. If and versions that don’t require accuracy equipment, soldering supplies,
when you need to replace a bit, you or heavy-duty construction. A $1 electroplating gear, cleaners, mold
can purchase them separately in just screwdriver will do the same basic job making equipment, and wax working
the size you need. as a $10 one, but it may not last as tools. They offer an extensive list of
You’ll want a tape measure if long or feel as good in your hands. investment casting supplies (furnaces,
you are building robots from scratch. Shop wisely, and you can better investment, etc.). A printed catalog
I prefer a six to 10 foot metal tape afford all the tools you need while is available.
measure with a spring-loaded still maintaining reasonable quality.
mechanism that automatically retracts For basic, inexpensive tools, try the Harbor Freight Tools
the tape. If most of your robots are selection at the local discount or www.harborfreight.com
small though, a compact three to six dollar store. I’ve found perfectly good Harbor Freight built a business
foot cloth or plastic tape measure may screwdrivers, utility knives, and other on selling value-priced tools, much
be more appropriate. You can find basics at these locations. of it “off-brand,” but still perfectly
these at fabric and notions stores in I always prefer buying better workable. They offer hand and
various sizes and types. quality when buying wrenches and power tools, pneumatic tools, and
Last, but certainly not least is a pliers, because a cheap tool here even metal mills and lathes. Retail
pair of safety glasses. As you cut, often results in ruined parts. You stores in selected areas of North
hammer, or chisel your robot into don’t need mechanic’s grade tools, America; check the website for a
shape, bits of material are bound to but you want to stay away from the store locator.
go airborne, and if you’re unlucky, mass-produced junk. Something
some of this debris may take a middle of the road will do. Quality Irwin Industrial Tools
bee-line into your eye. You obviously name-brand hand tools designed www.irwin.com
want to avoid this, and a pair of good for the do-it-yourselfer are available Irwin makes the famous Vise-Grip
safety glasses or goggles is your best at hardware stores, online, and locking hand tools, along with several
defense from a painful, costly, and department stores. Craftsman other well-known brands. This is a
possibly debilitating eye injury. Be and Crescent are representative of good site for learning about common
sure they prevent material from this group. shop tools and how they’re used.
entering the eyes from the sides as
well. This requires a full wrap-around Sources Micro-Mark
design. www.micromark.com
I wear a pair of 1970’s industrial Of course, your local hardware Micro-Mark manufactures
safety glasses that provide a and home improvement stores are precision and miniature tools of all
wrap-around shield over the temples; good places to start when building types, including desktop mills and
these are popular among machinists. up your tool chest, however, there are lathes, as well as hand tools, bits, and
A really good pair can be fairly literally thousands of online sources other accessories, small hand-operated
expensive because of the plastic used for tools. I’ve provided just a sampling motorized tools, casting supplies,
in the lens. A less costly approach of them here. Remember that many and raw metal, plastic, and wood.
suitable for use in machine shops is of the regular advertisers in SERVO
rubber safety goggles. These use a and Nuts & Volts carry hand tools so Minicraft
nearly unbreakable, optically clear check them out first. www.minicrafttools.com
rubber to form the lens and body. Sellers of Minicraft precision
They’re available at most any Enco Manufacturing Co. power tools (sanders, saws), as well
hardware or tool store. www.use-enco.com as quality hand tools.
Word to the wise: Stay away from Enco is a premier mail order
the very cheap goggles and glasses. source for shop tools, power tools, Penn State Industries
Because of poor manufacturing, they hand tools, production tools (lathes, www.pennstateind.com
may distort your vision or fit poorly. mills, hydraulic presses, metal brakes, Hand and motorized tools (mostly
SERVO 11.2008 69
RoboResources-Nov-edited.qxd 10/6/2008 12:19 PM Page 70

for wood). The Library section contains information about Sears Brand
the tools (many in Adobe Acrobat PDF format), as well as www.sears.com
plans for home-based projects (no robots that I could find). Sears sells lots of stuff, but of prime interest to robot
builders are their tools. You can buy Sears tools at their
Rockler Woodworking and Hardware local stores or online.
www.rockler.com
Rockler carries hand and power woodworking tools, Stanley Supply and Services
hardware, and wood stock. www.stanleysupplyservices.com
Tools for electronics — basically everything you need,
S*K Hand Tool Corporation including handheld meters and scopes, precision hand
www.skhandtool.com tools, shop supplies, soldering stations, you name it.
Wrenches, ratchets, and other great hand tools. Buy a Wide selection.
set when you’re young and they’ll grow old with you.
Toolsforless.com
www.toolsforless.com
Power tools, hand tools. Stocks some 50,000 power
and hand tools, hardware, parts, and accessories.

Vermont American Corporation


www.vermontamerican.com
Tool manufacturer. Saw blades, screwdriver bits,
router products, drill bits, abrasives. Browsable Web
catalog; products are available through retail stores like
Lowe’s and Home Depot.

Zona Tool Company


www.zonatool.com
Small precision tools for hobbies and crafts. Product
line includes: clamps, pin vices, small hack saws, jeweler’s
saws, metal and oxide shaping tools (replacement bits for
 Dremel and similar tools), and sanding blocks. Zona tools
ClassPack and CoroBot are most commly found at the local hobby store. SV
…where Virtuality meets Reality

x puts a virtual robot in the hands THE OWNERSHIP, MANAGEMENT, AND CIRCULATION STATEMENT OF SERVO
of every student MAGAZINE, Publication Number: 1546-0592 is published monthly. Subscription price
x lowers the cost of project is $24.95. 7. The complete mailing address of known office of Publication is T&L
 development without effecting Publications, Inc., 430 Princeland Ct., Corona,Riverside County, CA 92879-1300.
long-term results Contact Person: Tracy Kerley. Telephone: (951) 371-8497. 8. Complete Mailing
x reduces lab down-time address of Headquarters or General Business Office of Publisher is T&L Publications,
Inc., 430 Princeland Ct, Corona, CA 92879. 9. The names and addresses of the
 x physics-based simulation
Publisher, and Associate Publisher are: Publisher, Larry Lemieux, 430 Princeland Ct.,
environment
Corona, CA. 92879; Associate Publisher, Robin Lemieux, 430 Princeland Ct.,
x multiple licensing options Corona, CA 92879. 10. The names and addresses of stockholders holding one per-
 available cent or more of the total amount of stock are: Jack Lemieux, 430 Princeland Ct.,
Corona, CA 92879; Larry Lemieux, 430 Princeland Ct., Corona, CA 92879; Audrey
Lemieux, 430 Princeland Ct., Corona, CA 92879. 11. Known Bondholders,
www.corobot.com
®
www.corobot.net

1-800-641-2676 Morgagees, and other security holders: None. 12. Tax Status: Has not changed dur-
ing preceding 12 months. 13. Publication Title: SERVO Magazine 14. Issue Date for
Circulation Data: October 2007-September 2008. 15. The average number of copies
of each issue during the proceeding twelve months is: A) Total number of copies
printed (net press run); 10,812 B) Paid/Requested Circulation (1) Mailed Outside
County subscriptions: 5,658 (2) Mailed In-County subscriptions: 0 (3) Paid
Distribution Outside the Mail including Sales through dealers and carriers, street ven-
dor, and counter sales and other paid distribution outside USPS: 1,809 (4) Paid

LINEAR
Distribution by other classes of mail through the USPS: 0; C) Total Paid Distribution:
7,467; D) Free or Nominal Rate Distribution by mail and outside the mail (1) Free or
Nominal Rate Outside-County Copies: 0 (2) Free or Nominal Rate In-County Copies:
0 (3) Free or Nominal Rate Copies Mailed at other classes through the USPS: 0 (4)

SERVOS Free or Nominal Rate Distribution Outside the mail: 800; E) Total Free or Nominal
Rate Distribution: 800; F) Total Distribution: 8,267; G) Copies not distributed: 2,545;
H) Total: 10,812; Percent paid circulation: 90.32%. Actual number of copies of the
single issue published nearest the filing date is September 2008; A) Total number of
 Radio Control copies printed (net press run) 9,871; B) Paid/Requested Circulation (1) Mailed
Outside County subscriptions: 5,398 (2) Mailed In-County subscriptions: 0 (3) Paid
 Industrial Distribution Outside the Mail including Sales through dealers and carriers, street ven-
dor, and counter sales and other paid distribution outside USPS: 1,806 (4) Paid
 Robotics Distribution by other classes of mail through the USPS: 0; C) Total Paid Distribution:
fi 7,204; D) Free or Nominal Rate Distribution by mail and outside the mail (1) Free or
Nominal Rate Outside-County Copies: 0 (2) Free or Nominal Rate In-County Copies:
0 (3) Free or Nominal Rate Copies Mailed at other classes through the USPS: 0 (4)
Free or Nominal Rate Distribution Outside the mail: 1,300; E) Total Free or Nominal
Rate Distribution: 1,300; F) Total Distribution: 8,504; G) Copies not distributed: 1,367;
H) Total: 9,871; Percent paid circulation: 84.71%. I certify that these statements are
correct and complete. Larry Lemieux, Publisher - 9/29/08.

70 SERVO 11.2008
Page 71.qxd 10/7/2008 4:13 PM Page 71

Extreme Robot Speed Control!


idewinder 6 14V - 50V - Dual 80A H-bridges - 150A+ Peak!

S 6
6
6
Adjustable current limiting
Temperature limiting
Three R/C inputs - serial option
6 Many mixing options - Flipped Bot Input
6 Rugged extruded Aluminum case
6 4.25" x 3.23" x 1.1”
$399
Bo
tsIQ
RC Control Fav
ori
te!
$39.99 $104.99
$159.99 2+ price
Scorpion Mini Scorpion XXL Scorpion XL
6 2.5A (6A pk) H-bridge 6 Dual 20A H-bridge 45A Peak! 6 Dual 13A H-bridge
6 5V - 20V 6 5V - 28V 6 5V - 28V
6 1.6” x .625” x 0.25” 6 2.7“ x 1.6” x 0.75” 6 2.7“ x 1.6” x 0.5”

Introducing Dalf
6 Closed-loop control of two motors
6 Full PID position/velocity loop
6 Trapezoidal path generator 50
6
6
Windows GUI for all features
Giant Servo Mode!
$2
6 C source for routines provided
6 PIC18F6722 CPU
See www.embeddedelectronics.net
H-bridges: Use with Dalf or with your Micro/Stamp
Simple-H
19

OSMC
$2

6 Monster power! 6 6-28V 25A!


6 14-50V 160A! 6 2.25”x2.5”x0.5”
6 3.15”x4.5”x1.5” 6 3 wire interface
6 3 wire interface 6 current & temp
protection
$79
We also do consulting!
MADE IN Give us a call for a custom
motor control to meet your
exact needs
www.robotpower.com THE USA

Phone: 253-843-2504 s sales@robotpower.com

5 reflectance sensors on underside

battery charger piezo buzzer


connector

Item #975
$99.95 4 AAA
batteries 30:1 micro
(not included) metal
The Pololu 3pi robot is a high-performance, compact gearmotors
mobile platform featuring:
* Two metal gearmotors * High-traction silicone tires
* Five reflectance sensors * Speeds exceeding 3 ft/sec
* 8×2 character LCD using innovative constant- optional
* Three user pushbuttons voltage motor supply power LED ISP
* Buzzer and LEDs programming
All peripherals are connected to an ATmega168 connector
microcontroller running at 20 MHz, with free C-programming push-on/push-off
tools, libraries, and support for the Arduino environment. power button
reset removable 8x2
button character LCD

user pushbuttons
robot diameter is 3π cm (~3.7 inches)

Find out more at www.pololu.com/3pi or by calling 1-877-7-POLOLU.


SERVO 11.2008 71
WebstoreNov08.qxd 10/8/2008 7:09 AM Page 72

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

“EDITOR’S PICKS” SERVO Magazine


Bundles

Electronic
Troubleshooting
FIRST Robots: Rack 'N' Roll
When things go wrong with your robot Behind the Design
design, you'll need a logical approach — This book is a 'must' for contestants
Published by T & L Publications, Inc.
and know which tools to use — to get preparing for the FIRST competitions — Save $10
things working again. This book describes and for anyone who wants to know what $57 off the
both the techniques and technologies really goes in to creating a practical robot per bundle normal
you need to troubleshoot any with limited time and resources. price!!
electronic device.
$39.95 Now you can get one year’s worth of all
$49.95 your favorite articles from SERVO Magazine
in a convenient bundle of print copies.
Editor Bryan Bergeron’s recommended reads. Available for years 04, 05, 06, and 07.
Find these and many more great titles in the SERVO Magazine Webstore!
Robot Programmer's Bonanza
ROBOTICS by
Kickin' Bot ! Robot Building for Dummies John Blankenship, Samuel Mishal
by Grant Imahara NEW by Roger Arrick / Nancy Stevenson
Enter the arena of the metal gladiators! The first hands-on
Do you have what it Discover what programming guide
takes to build a robots can do and for today's robot
how they work. hobbyist!
battle-ready robot?
Find out how to
You do now! Here are build your own
the plans, step-by-step Get ready to reach into
robot and program
directions, and expert your programming tool-
it to perform tasks.
advice that will put Ready to enter the box and control a robot
you in competition — robot world? This like never before! Robot
while you have a heck book is your pass- Programmer's Bonanza is the one-stop guide
of a lot of fun getting port! It walks you for everyone from robot novices to advanced
there. Grant Imahara, the creator of the through building your very own little hobbyists who are ready to go beyond just
popular BattleBot Deadblow, shares every- metal assistant from a kit, dressing it up, building robots and start programming them
thing he’s learned about robot design, tools, giving it a brain, programming it to do to perform useful tasks. $29.95
and techniques for metal working and the things, even making it talk. Along the way,
parts you need and where to get them. you’ll gather some tidbits about robot
history, enthusiasts’ groups, and more.
$24.95 Robotics Demystified
$24.95
Forbidden LEGO Build Your Own by Edwin Wise
by Ulrik Pilegaard / Mike Dooley YOU DON'T NEED ARTIFICIAL INTELLIGENCE
Humanoid Robots
TO LEARN ROBOTICS!
Build the Models by Karl Williams
Now anyone with an
Your Parents GREAT 'DROIDS, INDEED! interest in robotics can
Warned You This unique guide to gain a deeper under-
Against. sophisticated robotics standing — without for-
projects brings mal training, unlimited
Forbidden LEGO humanoid robot
introduces you to time, or a genius IQ. In
construction home to Robotics Demystified,
the type of free- the hobbyist. Written
style building that expert robot builder
by a well-known figure and author Edwin Wise
LEGOs master
builders do for fun in the back room. in the robotics provides an effective and totally painless
Using LEGO bricks in combination with community, Build Your way to learn about the technologies used to
common household materials (from rub- Own Humanoid Robots provides build robots! $19.95
ber bands and glue to plastic spoons step-by-step directions for six exciting proj-
and ping-pong balls) along with some ects, each costing less than $300. Together, We accept VISA, MC, AMEX,
very unorthodox building techniques, they form the essential ingredients for and DISCOVER
you’ll learn to create working models that making your own humanoid robot. $24.95* Prices do not include shipping and
LEGO would never endorse. $24.95 may be subject to change.

72 SERVO 11.2008
WebstoreNov08.qxd 10/8/2008 7:11 AM Page 73

To order call 1-800-783-4624


Robot Builder’s Sourcebook
by Gordon McComb

Fascinated by the
world of robotics but
don’t know how to
I’m trying to
tap into the incredible
amount of informa-
tion available on the
understand the
subject? Clueless as
to locating specific
information on robot-
bailout plan!
ics? Want the names,
addresses, phone numbers, and websites of
companies that can supply the exact part,
Do you?
plan, kit, building material, programming lan-
guage, operating system, computer system,
or publication you’ve been searching for?
Turn to Robot Builder’s Sourcebook — a visit my online store @
unique clearinghouse of information that will
open 2,500+ new doors and spark almost as
www.ser v omagazine .com
many new ideas. $27.95 Sale Price $24.95

MEMS & Nanotechnology Linux Robotics The Amateur Scientist 3.0


for Kids by D. Jay Newman The Complete Collection
by Marlene Bourne If you want your robot by Bright Science, LLC
to have more brains than There are 1,000
Small is cool! What is microcontrollers can projects on this CD, not
deliver — if you want to mention the
nanotechnology?
a truly intelligent,
What are MEMS? And additional technical
high-capability robot —
what makes them so everything you need info and bonus
special? Welcome to is right here. Linux features. It
the wonderful world Robotics gives you step- doesn’t matter if you’re
of really small stuff. by-step directions for a complete novice
Things so tiny, you “Zeppo,” a super-smart, single-board- looking to do their first
need special powered robot that can be built by any science fair project or a
microscopes to even hobbyist. You also get complete instructions super tech-head gadget
for incorporating Linux single boards into freak; there are enough
see them.
your own unique robotic designs. No
Winner of a 2008 IPPY projects on the
programming experience is required. This
Award (bronze medal) for best book includes access to all the single CD-ROM to keep you and 50 of your
juvenile/young adult non-fiction, MEMS & downloadable programs you need. friends busy for a lifetime! $26.99
Nanotechnology for Kids explores what you $34.95
can find at the micro- and nano-scale; where
you'll discover all sorts of amazingly small
sensors, structures, and materials.
Reg $24.95 Sale 18.95

CNC Robotics
by Geoff Williams

CNC Robotics gives you


step-by-step, illustrated
directions for designing,
constructing, and testing
a fully functional CNC
robot that saves you 80
percent of the price of an
off-the-shelf bot — and
that can be customized
to suit your purposes exactly, because you
designed it. Written by an accomplished
workshop bot designer/builder, this book
gives you everything you need. $34.95

SERVO 11.2008 73
WebstoreNov08.qxd 10/8/2008 12:54 PM Page 74

Or order online www.servomagazine.com


SPECIALS OFFERS
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 November 2008 your PC to build
Building Robots with Programming Lego robots, and how you
LEGO Mindstorms NXT and Mindstorms NXT can interface with a
microcontroller to do
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 $40.95 Sale Price $35.95 maps. $55.95 Sale Price $ 47.95
Robot Builder’s Cookbook
by Owen Bishop
This is a book for
FREE!
first-time robot with any
e
builders, advanced
purchas 0
over $10
builders wanting to
know more about
programming robots, Phone-inly!
n
and students in orders o
further and higher
education tackling SERVO
microcontroller-
based practical Magazine
work. They will all
find this book a unique and exciting source
From HomoSapien to RoboSapien T-Shirts Before R2D2 there was R1D1

of projects, ideas, and techniques to be Get your very own limited-edition SERVO Magazine T-shirt. Shirts come
combined into a wide range of fascinating in sizes S, M, L, and are available in either black or white.
robots. $29.95 Sale Price $ 24.95 All shirts are 100% preshrunk cotton.
Limited time offer. Call 1-800-783-4624.
PROJECTS
Tankbot Kit & Alpha Brain Kit The SERVO Buddy
As seen in the
Sept. issue Kit
Tankbot/
Brain Alpha
by Ron Hackett
A bi-monthly series
filled with projects and
experiments to challenge
you through your
learning process while
you grow your fully
expandable
Brain Alpha PCB!
An inexpensive circuit you
The Alpha Brain kit is an excellent way to can build to control a servo
The TankBot gives you everything you get started in robotics. The brain — a without a microcontroller!
need to start building your own sturdy PICAXE-14A — is easily programmed in a
servo-motor robotic tracked vehicle. dialect of Basic that includes many powerful For more information,
Powered by two modified R/C servos commands. At the end of each of Ron’s please check out your
(44 oz-in torque). The assembled Tankbot articles, he will include programming for that May 2008 issue
measures 7 inches long, 4.75 inches wide, month’s project. The kit also includes a 400 or go to our website @
and 3.5 inches high. The top deck is point breadboard which allows for www.servomagazine.com
drilled ready for the Alpha Brain. For more considerable expansion and experimentation.
info & pictures, visit the SERVO Webstore For more info & pictures, visit the SERVO Subscriber’s Price $39.55
at www.servomagazine.com. Webstore at www.servomagazine.com. Non-Subscriber’s Price $43.95
$59.95 Sale Price $ 56.95 $99.95 Sale Price $ 85.95 PCB includes article reprint.
Combo Price $ 138.95
74 SERVO 11.2008
Showcase Nov08.qxd 10/7/2008 7:19 AM Page 75

7KH(VFDSH T
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
ZH EV
RXU

Robotics Showcase
ROBOT CONTROL
MADE EASY

up to
THOUSANDS OF ELECTRONIC
2x120A 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,
- RS232, RC, or Analog input HEAT SINKS, CAPACITORS, CHOKES,
- Speed or Position Mode TOOLS, FASTENERS, TERMINAL
- Dual channel output up to 120A STRIPS, CRIMP CONNECTORS,
- Optional single channel to 240A L.E.D.S., DISPLAYS, FANS, BREAD-
- Optical Encoder Inputs BOARDS, RESISTORS, SOLAR CELLS,
- Intelligent Current Limiting BUZZERS, BATTERIES, MAGNETS,
- Thermally Protected CAMERAS, DC-DC CONVERTERS,
- Field Upgradable Firmware HEADPHONES, LAMPS, PANEL
- Enclosed and Board-Level versions METERS, SWITCHES, SPEAKERS,
- and many more advanced features ...
PELTIER DEVICES, and much more....

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

SERVO 11.2008 75
Appetizer.qxd 10/7/2008 3:08 PM Page 76

Why Just Build a Robot? Be a Robot!


by R. Steven Rainwater

-Kon is North America’s longest in nearby office buildings. also made several other unexpected
A running national anime
convention. It was first held in 1990
Once inside, there was no
shortage of robots, androids, and
robot sightings at A-Kon 2008. In
the dealer room were a variety of
and it has been growing ever since. cyborgs. Within minutes of walking imported Japanese robot toys —
A-Kon 2007 had an attendance of into the lobby, I spotted a Super Transformers, Robotech mecha,
more than 14,000. Quite a few of Vandread robot fighting machine, pos- Gundams, and other more obscure
those attendees are cosplayers: fans ing for curious bystanders who kept robots. One dealer was selling tiny
who dress and act like their favorite their distance from the dangerous little robot figures for gamers. Leaving
characters from TV, anime, comics, robot. One bystander who considered the dealers room, I ran across another
books, and video games. To give you danger irrelevant was a Borg, room full of Virtual World Battlemech
an idea of how big this thing is, A-Kon complete with motorized appendages, combat simulator pods. The pods are
2008 set a new Guinness world lasers, blinking lights, and surrounded networked together and exist in a
record for the most people dressed as by a cloud of self-generating fog. common virtual universe. Inside the
video game characters in one room If Transformers are your thing, pod, you are in control of a giant,
(700+). Video game characters aren’t you’ll be happy to know there were bipedal robot battle machine and you
even the most popular type of numerous Autobots and Decepticons fight it out with other players.
cosplay. I thought with all these guys in attendence including Arcee — a One unusual robot in attendance
in one place, there were bound to be pink, female Autobot. Androids were this year was Gir, the cute little robot
a lot of robot costumes. So, I set out in plentiful supply, as well, and one from Invader Zim. Gir wasn’t a
with my camera to see what I could of the best this year was R. Dorothy costume or a toy. Dallas resident,
find. When I was still several blocks Wayneright, the android companion Remia, had Gir tattooed on her arm.
away from the event location, I of Roger Smith from the anime series When I asked her why she chose Gir,
spotted a group of Dragonball Z The Big O. Dorothy was part of a she said, “Gir is kinda the reject robot
characters marching down the street. group of cosplayers who won the Best who was slapped together on the
In the park across from the hotel, a of Show award for their depiction of spot for Zim. But the motivation for
group of female super heroes battled Big O characters. me was I’m kinda like Gir, very easily
ninjas, to the surprise of workers In addition to robot cosplayers, I distracted at times and kinda off the

76 SERVO 11.2008
Appetizer.qxd 10/7/2008 3:09 PM Page 77

wall.” Her robot tattoo has earned her the name limiting the eating choices of hungry event participants.
“Gir Girl” among locals. As I sat at a table eating a fast food trans-fat burger,
After a long day photographing cosplayers, I walked I watched aliens, robots, and super-heroes wandering
across the street to find some dinner at the restaurants through the crowds. A collection of space pirates skated
surrounding the Plaza of the Americas ice-skating rink. by on the ice. It’s a very different experience from the
Along the way, a blue-haired catgirl complained that the average robot event I attend. There was no clear line
hotel never warns the restaurants of the impending A-Kon separating robot from human. A glimpse of the future
crowds. Every year, nearby restaurants run out of food, perhaps? SV

STEER WINNING ROBOTS


WITHOUT SERVOS!

P erform proportional speed, direction, and steering with


only two Radio/Control channels for vehicles using two
separate brush-type electric motors mounted right and left
with our mixing RDFR dual speed control. Used in many
successful competitive robots. Single joystick operation: up
goes straight ahead, down is reverse. Pure right or left twirls
vehicle as motors turn opposite directions. In between stick
positions completely proportional. Plugs in like a servo to
your Futaba, JR, Hitec, or similar radio. Compatible with gyro
steering stabilization. Various volt and amp sizes available.
The RDFR47E 55V 75A per motor unit pictured above.
www.vantec.com
Order at
(888) 929-5055
SERVO 11.2008 77
Then&Now.qxd 10/6/2008 11:42 AM Page 78

Then N O W

a n d
ROBOT COMPETITIONS
AND CONTESTS
b y T o m C a r r o l l

As long as there have been two readers mentioning that I did not Contestants benefit as do the
people gathered together who have cover their event or other events that sponsors who can use the winning
different ideas and skill sets, there were particularly noteworthy. I spoke technology to further enhance military
have been competitions of some sort. with a few personally, and related that or other government projects at a
The recent Summer Olympics was an I can never cover the wide spectrum far cheaper cost than handing out
extreme example of the world’s finest of any topic in modern robotics research grants. I’m going to outline
who gathered together in China to technology and I just try to cover a a few of the more widely-spread types
prove who the best athlete in many few unique aspects of a particular of contests and, as I mentioned
categories was. Old records fell article’s subject. This certainly applies before, these are just a drop in the
as younger or more experienced to the many robot exhibitions and bucket of the many very interesting
athletes swam or ran faster than ever competitions as there are so many competitions around the world
before, jumped higher or further, or types of contests and competitions involving experimental, amateur, and
performed some series of athletic these days. In this article, I again downright unique robots.
motions with more finesse than the will highlight a few of the more well
others. An American swimmer walked known robotics contests in a bit more The Seattle Robotics Society
away with a record eight gold medals. detail, but, this in no way represents Robo-Magellan Contest
We humans love to present our the very best competitions. They just
finest to the world in hopes that our happen to be a few of the contests I The varieties of entrants in
country’s competitors are better than know a bit more about. robotics contests can vary from simple
anyone else. Robotics is no different Competition can be as simple as kit-built wheeled robots exhibited by
as we are all proud of our coolest, one neighbor watching another build elementary level kids in a local event
fastest, meanest, smartest, or most a robot. That neighbor then decides to the million dollar autonomous cars
destructive robot of all and want to that he can build an even better one, and SUVs entered into the Grand
show it to the world in some sort and so on. It can also arise in a school Challenge series held in multi-mile
of competition. or university where two or more desert and suburban environments.
In this year’s April issue of SERVO, students build a robot that can “one I had the honor of being one of
I touched upon some of the more up” another group of student’s the judges for the Seattle Robotics
popular contests such as the Seattle machine. Sometimes a competitive Society’s Robo-Magellan contest
Robotics Society’s Robothon, the urge develops when a person watches for several years, held at the SRS
Portland Robotics PDXBot robot a contest on TV or reads about one. Robothon at Seattle Center. This
competition (both of which have been Some of the best competitions contest was envisioned as an
postponed due to the need of arise when sponsors decide to develop affordable alternative to these
leadership), the Robotics Society of a contest with a specific set of rules government sponsored contests and
Southern California’s annual robot and award prizes to the best in the has spread to many robotics groups
fairs, and a few of the national contest. These can be a simple science across the country. Entries are nothing
events. As I was more concerned with fair at a local high school, a nation- short of amazing.
the exhibits by different groups, I wide series of contests such as FIRST, The robots that I’ve seen over the
really did not cover the complexities or even a government sponsored years range from a few pounds to
of these events and the many more contest such as the DARPA off-road maybe 30 or more, and sizes range
held around the world. Grand Challenge or Urban Challenge from a small, remote-controlled car
I also had a few responses from with a first prize of $2 million. chassis to 18 inches long and 14
78 SERVO 11.2008
Then&Now.qxd 10/6/2008 11:42 AM Page 79

inches high, or so. They must weigh opportunities to lower the score based built robots to solve simple mazes
less than 50 pounds and fit within a on contacting intermediate points.” since before the microcomputer age.
four foot cube for the duration of the The ‘chicken switch’ tether I In 1977, IEEE Spectrum magazine
race. Some crawl away from the mentioned previously is allowed to announced a ‘micromouse’ contest
starting point at a speed slower than disable the robot when it is deemed that would be held in New York in
a stroll in the park and others race unable to continue or will run into a 1979. That gave time for the 6,000
away at breakneck speeds. I’ve seen person or obstacle, but all control is initial entrants to design, build, and
contestants running behind their autonomous and navigation is by GPS fine-tune their creations. Fifteen
speeding Robo-Magellan robot, coordinates (no differential GPS to finalists were selected for the
barely able to keep up, with the enhance the accuracy), visual cameras competition to be run in a 10’ by 10’
safety tether in their hand ready for (to avoid obstacles and locate the 18” maze. The winner of this first contest
an emergency stop. orange traffic cones), and on-board was a simple, high-speed wall-follower
compasses. that used no sort of ‘intelligence’ to
The contest is held outdoors (for seek its goal. These types of mice
best GPS reception) and is usually on simply turn a certain direction when
sidewalks, grass, and has some unique detectors locate the absence of a wall
ramps and turns. The contests at the and continue turning in that same
Seattle Center have always attracted direction for the same reason,
a crowd of people who excitedly many times until they eventually
follow the robots around the course. (accidentally!) reach the goal. Rules
Sometimes a person with an orange were changed to eliminate these
jacket or hat will confuse the robot types of entries.
so that it deviates from the course As the contest series gained
because it thinks it has seen the popularity in the early 80s and groups
orange cone. around the world became interested
It’s always fun to explain to the in participating, the rules became
crowd just how intelligent the robots more defined. ‘Mice’ appeared in all
are and why they do certain things on sorts of forms. David Buckley of the
FIGURE 1. Robo-Magellan contestant. the course, (which can be longer than UK came up with Quester in 1981 —
1,000 feet). Scoring is based on time, a large 8” by 7-1/2” by 5-1/2’
Figure 1 (courtesy of SRS) shows but points are also given for locating micromouse that used a vision system
a contestant holding the safety tether and touching all waypoint cones, so to detect the maze walls and bump
in the October 2006 competition. slower robots have frequently bested sensors when those sensors failed.
Wireless safety switches are admissi- the speedier machines. Contestants (See Figure 2).
ble, but most contestants use a wired are given the course coordinates just Buckley gained a bit of fame
tether. In the early years, we had a bit before the contest and are allowed to when Quester was featured in one
of trouble with the GPS satellites traverse the course themselves before of the earliest non-industrial robot
being shadowed from the robots by a their robot makes its run (a maximum magazines, Robotics Age. The First
high wall or even the Space Needle, of 15 minutes is allowed for each World Micromouse Competition was
but this made the contest a bit more run). Other groups have used desert held in Tsukuba, Japan in 1985 and
challenging when the competitors courses, woods, and strictly urban the top six winners were all locals.
transferred navigation to odometry courses with only concrete and After a few sporadic contests in the
and compass navigation. asphalt. To make the course more US with low attendance and few
Newer and more sensitive interesting, overhead trees, inclines,
receivers solved a lot of the GPS curbs, garbage cans, park benches,
reception problems in later years. I shrubs, and even streams have been
never saw an entry that wasn’t first included. Target cones are hidden
class, though some did manage to from view at the starting points and
get lost or stuck behind obstacles. at the waypoints. Go to www.robot
As stated in the rules set up by hon.org/robothon/robo-magellan
the SRS, “Robo-Magellan is a robotics for more detailed rules and
competition emphasizing autonomous information.
navigation and obstacle avoidance
over varied, outdoor terrain. Robots IEEE Micromouse
have three opportunities to navigate Competitions
from a starting point to an ending
point and are scored on the time Running a maze with a robot has
required to complete the course with always been a draw and people have FIGURE 2. Quester from the UK.

SERVO 11.2008 79
Then&Now.qxd 10/6/2008 11:42 AM Page 80

entrants, the contest became quite fastest mouse wins. Figure 3 shows each other by controlling their
popular and is now often held in the maze at a contest at Cal State individual robots to push and pass
conjunction with electronic business Chico. Note the detector protrusions large rubber ‘Trackballs’ around the
conferences, especially where over the walls in both Figures 3 and 4. field of play. (Two of the five winning
IEEE attends. One entry at a contest that I had high school teams were sponsored
the pleasure of judging back in 1988 by NASA centers.)
What is a Micromouse? at Wescon featured a very unique The mission and vision of the
mouse. It could not have weighed FIRST Robotics Competitions, FRC, is
A mouse must be self-contained more than 100 grams and had a pair described this way, by Kamen:
and totally autonomous, no larger of sensor arms made from PC board “Our mission is to inspire young
than 25 cm by 25 cm (about 10” x material that extended over the walls people to be science and technology
10”) and there is no limit on the on both sides of the maze paths. I’m leaders, by engaging them in exciting
height. It cannot, however, move over guessing that the arms had a series of mentor-based programs that build
or damage the maze walls. The maze IR photo transistors and IR LED pairs science, engineering, and technology
itself consists of a square pattern of to detect the presence or absence of skills, that inspire innovation, and
16 by 16 squares (18 by 18 cm each), walls, and to keep the robot centered that foster well-rounded life
with 5 cm high walls of 1.2 cm in the path. This little sucker would zip capabilities including self-confidence,
thickness. The entire maze is enclosed forward and stop at each 18 cm communication, and leadership.”
by an outside wall and the mouse is square, examine the walls present,
placed at an outside square and and would then proceed or quickly BEST — Boosting
must find its way all by itself to four turn a precise 90 degrees as required, Engineering, Science, and
squares at the center of the maze. and quickly step to the next square. Technology
This destination is so positioned It rapidly examined almost every
that wall-hugging mice will be unable possible square and found the center BEST is also a non-profit,
to locate it. Of course, the maze is set fairly fast. volunteer-based organization whose
up ahead of time and hidden from The amazing thing was when the mission is to inspire middle and
view until just before the contest contestant placed the mouse back in high school age students to pursue
begins. The mouse has 10 minutes to the square, the mouse quickly sped careers in engineering, science, and
complete the run from the start to the to the center four squares by the technology through participation in a
center four squares where there is a absolute best route, sometimes sports-like, science and engineering-
wooden goal post. Obviously, the making deliberate 45 degree turns based robotics competition.
to save time. Needless to say, it won Their vision is to excite the
first place.For rules, check out nation's students about engineering,
www.ieee.uc.edu/main/files/sac20 science, and technology to unlock
07/mm_rules.pdf. There are many their imagination and discover their
other good sites that have both rules potential.
and building techniques available.
Final Results
FIRST — For Inspiration and
Recognition of Science and I’ve only touched on a few of
Technology the more visible robotics contests.
The many variations of BattleBots that
I could not write about robot was so popular a half dozen years
FIGURE 3. Micromouse maze at contests without mentioning the very ago on the Comedy Channel are still
Cal State Chico contest. popular FIRST competition that began held across the world. Robot Sumo
back in 1992 with 28 teams compet- and other physical robot vs. robot
ing in a New Hampshire high school contests are a mainstay of most robot
gym. This competition series is the organization’s events. If any of these
vision of one of my favorite robotic competitions sound the least bit
innovators, Dean Kamen, best known interesting to you, I encourage you to
as the inventor of the Segway go to any of the hundreds of websites
Transporter. FIRST competitions are for for information and help your own
high school students across the US group of robotics enthusiasts develop
and other countries. NASA and other some super fun events in your home
major US companies have been town. SV
long-time supporters of these events.
One example of a challenge was Tom Carroll can be reached via email
FIGURE 4. Micromouse maze variations. one year teams competed against at TWCarroll@aol.com.

80 SERVO 11.2008
RoboLinks-Index Nov08.qxd 10/8/2008 9:24 PM Page 81

For the finest in robots, parts, and


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

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

Electronic Parts & Supplies


Since 1967

All Electronics Corp. ................................75 Innovation First ...........................................3 RobotShop, Inc. ........................................82
AP Circuits/e-pcb.com .............................71 Jameco ......................................................25 Scientifics ...................................................51
Boca Bearings .............................................7 Lorax Works ..............................................75
Sherline Products .....................................70
Coroware ...................................................70 Lynxmotion, Inc. ........................................13
CrustCrawler ..............................................17 Net Media .................................................83 Smiley Micros ............................................77
Electronics123 ..........................................75 Parallax, Inc. ................................Back Cover Solarbotics/HVW .....................................19
Firgelli Technologies .................................70 PCB Pool .......................................................7 SolderByNumbers.com ...........................47
Gears Educational Systems, LLC .............39 Pololu Robotics & Electronics .................71
Sparkfun Electronics ..................................2
SolderByNumbers.com ...........................47 Robot Power .............................................71
Hagisonic Co. ............................................75 Robotis ......................................................50 Vantec ........................................................77
Hitec ...........................................................12 RoboteQ ....................................................75 Weird Stuff Warehouse ............................75

SERVO 11.2008 81
Full Page.qxd 10/7/2008 11:51 AM Page 82

82 SERVO 11.2008
Full Page.qxd 4/29/2008 4:05 PM Page 83
backcvr.qxd 10/7/2008 11:34 AM Page 84

You might also like