Académique Documents
Professionnel Documents
Culture Documents
Vol. 3 No. 1
SERVO MAGAZINE
HACK-A-SAPIEN WINNERS
January 2005
SERVO 08.2004 83
Circle #32 on the Reader Service Card.
Full Page.qxd 12/9/2004 3:22 PM Page 3
Circle #81 on
the Reader Service Card.
TOC.qxd 12/8/2004 10:00 AM Page 4
Departments Columns
6 Publisher’s Info 6 Mind/Iron
7 Bio-Feedback 8 Rubberbands
37 Robotics Showcase 14 GeerHead
38 Events Calendar 30 Menagerie
58 SERVO Bookstore 60 Brain Matrix
62 New Products 64 Ask Mr. Roboto
82 Advertiser’s Index 68 Robytes
70 Robotics Resources
80 Appetizer
4 SERVO 1.2005
TOC.qxd 12/8/2004 9:58 AM Page 5
39 Navigating Robo-Magellan
by Daryl Sandberg and Larry Geib
43 Virtual Robotics
by Thomas Braunl, Andreas Koestler, and Axel Waggershauser
SERVO 1.2005 5
JanPages6&7.qxd 12/9/2004 9:44 AM Page 6
Published Monthly By
The TechTrax Group — A Division Of
T & L Publications, Inc.
430 Princeland Court
Corona, CA 92879-1300
(951) 371-8497
FAX (951) 371-3052
www.servomagazine.com
Mind / Iron Subscription Order ONLY Line
1-800-783-4624
by Dan Danknick
PUBLISHER
Larry Lemieux
publisher@servomagazine.com
There are some things we were not column. Which is best? A clearer
meant to know. Fortunately — in the area definition of this question leads us to the ASSOCIATE PUBLISHER/
of robotics — this is not the case. Each answer. VP OF SALES/MARKETING
year brings new advances in the art, Better power supplies: Better battery Robin Lemieux
robin@servomagazine.com
borne on the back of previous technologies allow longer run times and
accomplishments. Some of these more complex behavior by providing MANAGING/TECHNICAL EDITOR
achievements are incremental and some energy for more motors and sensors. This Dan Danknick
dan@servomagazine.com
are major shifts in current design increases the overall functionality of
paradigms. Either way, things move robots and extends the "design cap" of ASSOCIATE EDITOR/
forward. In the past year and a half of projects. You should be taking advantage PRODUCTION MANAGER
interviewing various robot protagonists, of the hot new batteries as much as you Alexandra Lindstrom
alexa@servomagazine.com
interacting with robot clubs, and take advantage of new R/C servos and
observing the research money that advanced math routines on CPU boards. CIRCULATION DIRECTOR
companies spend, I have made some Better competitions: From the start Mary Descaro
predictions of the hot topics for 2005. of the “Mind/Iron” column, I've subscribe@servomagazine.com
Active sensors: In the December, encouraged robot clubs to move on to WEB CONTENT/STORE
2003 issue of SERVO, we published a more clever competitions. Some have Michael Kaudze
project on an active sonar mapper. I stepped up to the plate with ribbon michael@servomagazine.com
wonder how many of you built this and climbing and SRS' Robo-Magellan. This
PRODUCTION/GRAPHICS
integrated it into your room-exploring trend will continue as the excitement of Shannon Lemieux
robot? It's easier to learn about your tackling new challenges continues to spur
environment if you send out a known builders. COVER ART
Michele Durant
pulse and then measure the return signal, Ultimately, that's the future of 2005
inferring environmental features from in our avocation — staring down STAFF
how it is modified. We need more challenges with good designs. We are up Kristin Rutz
research in this area — and that is why to our ears in cheap CPU processing, low Dawn Saladino
many large companies are working on cost sensors, low weight frame materials, INTERN
such devices. As Guy Marsden's project and the like. It's time to step into the Mandy Garcia
demonstrated, the typical robot hobbyist game and make robots that solve new
can also jump in. problems. I know my words would fall flat OUR PET ROBOTS
Guido
Locomotion gaits: Not every robot if I didn't also take up that challenge and Mifune
rolls on wheels — some walk. When that's why this is my last “Mind/Iron” in
constructing a walker, the builder needs SERVO. I've accepted an engineering Copyright 2005 by
T & L Publications, Inc.
to implement a gait or sequence in which position at a top-notch R&D company, All Rights Reserved
the legs move to affect motion. Consider where I'll be designing and building
a horse: it walks, trots and gallops — three robots to solve some of the big problems All advertising is subject to publisher's approval.
different gaits, each uniquely suited for a we face in the world. It's a tall order, but We are not responsible for mistakes, misprints,
or typographical errors. SERVO Magazine
different application. As walking robots it's what all my years in the field have assumes no responsibility for the availability or
gain in popularity, the two-, four-, six-, and given me — the ideal toolkit for the task. condition of advertised items or for the honesty
eight-legged machines will necessarily I encourage you all to make the most of the advertiser.The publisher makes no claims
require different gaits. In the September of what you know and use it as best you for the legality of any item advertised in SERVO.
This is the sole responsibility of the advertiser.
2004 issue of Nuts & Volts, author Mike can. As mathematician René Descartes Advertisers and their agencies agree to
Keesling demonstrated a number of said, "It is not enough to have a good indemnify and protect the publisher from any
different gaits for the hexapod in his mind. The main thing is to use it well." SV and all claims, action, or expense arising from
advertising placed in SERVO. Please send all
subscription orders, correspondence, UPS,
overnight mail, and artwork to: 430 Princeland
Court, Corona, CA 92879.
6 SERVO 1.2005
JanPages6&7.qxd 12/9/2004 11:28 AM Page 7
Send us a high res picture of your robot with a brief description and we’ll
make you famous. Sort of.
menagerie@servomagazine.com
by Jack Buffington
Putting on a Display:
Spicing Up Your Robot With
an Alphanumeric LCD
Onemicrocontrollers
of the most frustrating things about working with
is that they don’t have a nice display like
Sometimes, you will have a free serial port available
that you can send data to a terminal program, but — if
standard equipment, like your desktop computer does. In your robot is mobile — you will inevitably want it to roam
fact, most of the time, all that you will have available is a freely so a serial link isn’t a great option. This month’s
couple of LEDs to look at to try to determine what is going column will show you how to connect to an inexpensive
on inside of it. alphanumeric LCD display that uses the HD44780 driver
chip hooked up to a PIC processor so that you can
Figure 1. Pin functions for the LCD module. have text-based feedback from your electronics,
wherever your robot may be.
The HD44780 chip is capable of driving LCD
displays of up to two lines of 40 characters. For this
column, an LCD that has four lines of 20 characters
each was chosen.
This particular LCD accomplishes this by splitting
each line of 40 characters into two lines of 20 characters.
If you are interested in working along with this column,
you can find the exact module used here at www.
mpja.com The part number is 153640P. At $9.95 each,
you really can’t beat the price!
The LCD module that is used in this column has 11
I/O pins. This is standard for modules using the
HD44780. Figure 1 shows the pin functions for the
module used here.
You can communicate with it by using eight of the
I/O lines in parallel to send bytes of data or you can
discard four of them and use a four-bit interface
instead. Here, we’ll use the eight-bit interface. Although
RESOURCES
I/D S Result
www.ccsinfo.com
0 0 Moves the cursor to the left after a character is displayed. Sells the C compiler for PIC processors
used in this column
0 1 Cursor stays at the same location. Line shifts to the right.
www.microchip.com
1 0 Moves the cursor to the right after a character is displayed. Manufacturer of the PIC microcontroller
1 1 Cursor stays at the same location. Line shifts to the left. www.mpja.com
Sells the LCD module used in this article
Figure 2. I/D and S truth table.
8 SERVO 01.2005
Rubberbands.qxd 12/8/2004 8:39 AM Page 9
Table 1
RS R/W Data Comments
0 0 00110000 Allows you to clear the display. It also moves the cursor back to the first character of the first line.
0 0 00000010 Will move the cursor back to the first character of the first line, but will not clear the display.
0 0 000001 I/D S Allows you to set the way that the LCD display responds to new characters that it receives.
The I/D bit allows you to specify whether you want the character position to increment or
decrement when you send it a character. The S bit allows you to specify if the whole line
should shift or if the cursor should move. Figure 2 describes how the display will act based
on the I/D and S bits.
0 0 001 DL N F 00 Allows you to set information about the LCD that the controller chip is connected to and how
you want to communicate with it. DL lets you choose between (1) an eight-bit interface or (0)
a four-bit interface. N lets you set the number of lines that the LCD can display. A 0 represents
one line while a 1 represents two lines. The F bit lets you specify either (1) a 5 x 8 pixel char-
acter or (0) a 5 x 10 pixel character. Most likely, the LCD display that you will be using will have
a 5 x 8 character.
0 0 01DDDDDD Lets you set the character generator address. Substitute the Ds for the address that you want.
The HD44780 allows you to specify eight custom characters, if you want. Their bitmaps are
stored in the character generator RAM.
0 0 1DDDDDDD Lets you set the display data address. The display data RAM holds the text or characters that
you want to be displayed on the screen. This data is the character codes and not the actual
bitmaps for the characters.
0 1 BF DDDDDDD This command switches the display’s input pins to outputs for as long as the E line is held high
and then makes them inputs again when the E line is brought low again. While these lines are
outputs, the BF bit tells you when the display is busy executing the last command. If it is high,
the display is busy and you shouldn’t send other commands to it until it is done. The remaining
outputs indicate the location of the address counter. This is how you could retrieve the
character codes of what is displayed on the screen.
SERVO 01.2005 9
Rubberbands.qxd 12/8/2004 8:40 AM Page 10
Dotting the I’s and Figure 4. How to initialize the LCD using C code.
SERVO 01.2005 11
Rubberbands.qxd 12/8/2004 8:42 AM Page 12
12 SERVO 01.2005
Full Page.qxd 12/9/2004 3:30 PM Page 13
Cleveland Institute of Electronics offers distance learning CIE’s Distance Learning Programs
programs that will prepare you for rewarding careers in
• Electronics Associate Degree
Electronics Engineering or Computer Technology
- even if you have no experience! • Computer Associate Degree
• Basic Electronics with Lab
CIE's courses allow you to learn new technology at your
own pace, in your own home, without disrupting your • Advanced Electronics Troubleshooting with Lab
present job or lifestyle. • Electronics Technology with FCC Preparation
No prior experience is needed and you can do all your • PC Troubleshooting
training at home with full instructor support, extensive • Computer Networking
learning labs and on-line exams.
• Wireless Technology
They're fast, convenient, affordable and quickly • COMING SOON!
becoming the new way to earn an accredited degree. Industrial Electronics with PLC Technology
Send for your FREE CIE course catalog and take the
first step toward building a successful career in Cleveland Institute of Electronics
electronics and computer technology. You’ll find 1776 E. 17th St, Cleveland, OH 44114
it has many rewards!
FCC License Prep Course Basic Electronics Course PC Board Design with Lab
19 FCC prep lessons on CD ROM. 39 lessons • 2 labs • 53 exercises 4 lessons • lab • CD ROM
01-FCC01 (cert) ................... $49.95 03-Introb (cert) ....................... $225 02-261 (cert) ............................ $195
Fiber Optics Course with Lab Oscilloscope Course Intro to Information Systems
2 lessons • Lab • Video • Certificate 7 learning topics • video 9 lessons • certificate
01-FB02 ..................................... $175 01-SCP01 (cert) ......................... $95 01-CET111 ................................ $195
SERVO 01.2005 13
Geerhead.qxd 12/8/2004 8:44 AM Page 14
by David Geer
geercom@alltel.net
Uncle Sam and Others Are Looking for a Few Good Robots
ast spring, four students at Johns zones around the world. back pictures of the target, which can
L Hopkins (JH, Mechanical Engineering
Department) completed a robot that
The bots, which can be built for
under $1,000.00 a piece (in produc-
be manually spray painted from the
controller and later neutralized.
can travel, locate metal objects, see, tion), traverse the grassy or jagged The little mine detective is in the
and spray paint. What’s the big deal? terra firma found in war zones like little welcome hands of explosive detection
With these capabilities, it becomes a two-part tanks. A metal detector — to scientists. They are using it as the
plausible solution for detecting and be replaced by top-notch sensors devel-
marking deadly land mines that are oped at JH — locates suspected land
* All photos are courtesy of Will Kirk. *
waiting underground in far away battle mines. The robot’s camera eye sends
14 SERVO 01.2005
Geerhead.qxd 12/8/2004 8:48 AM Page 15
GEERHEAD
Land Mine
Detection, Project
Inception Rugged bot mine detective finds its prey —
a metal target that represents a land mine —
The story began when John in a test demonstration.
Hopkins physicist Carl Nelson
presented the student engineers turned current demanded by the ones they did
robotics team with a problem. He had get was beyond the capacity of the
created these great new sensors targeted connectors. The team ended up This effective controller guides the robot
and receives video from its camera eye,
at detecting land mines, but he needed scrapping those motors and finding sounding the alarm when a metal object
an appropriate contraption to get the new motor and gearbox pairs. — possibly a mine — has been detected.
sensors through the brush, rocks, and
sand to the mines. The students were Robot Racer mines. The paint used to mark the spot
tasked with creating a mini-off-roading- where each mine is located is a very
all-terrain robot that could get to the With the “front vehicle” — more on light and, yet, a very easily recognized
mines without being blown up itself. that later — ready to go, the team tried
again. The new, high torque drill The eyes have it as the robot camera
enables the operator to have a glimpse
Robot Dud motors worked perfectly. The bot
of everything the bot itself sees.
zoomed around the lab, navigating all
On its maiden test run, the mine- terrains — including people’s toes. The
detecting bot looked more like one of its bot’s operator had the vehicle spin
exploding adversaries than a proponent of brodies like a racecar. The mini-tank-like
protection. When the student roboticists vehicle could spin in place at 60 RPMs.
first attempted to run the rascal via the The vehicle was detailed with an
joystick, they got no movement and a inverted cow catcher up front to move
load of melted connectors. obstacles out of its camera’s path. The
They found out that their supplier robot’s design was dictated by the
had shipped the wrong motors; the requirement that it not set off the land
CONSTRUCTION
The mine-detecting robot looks like product; it will be replaced by Professor feed can be received from up to 100
two robot tanks — one towing the other. Nelson’s specialized mine-seeking sensors feet away. The controller video screen
The front vehicle moves the bot by means in the funded research phase. can display real time images of what the
of its two cordless power drill motors, The rear vehicle also carries the bot sees. When the bot detects metal,
which are powered by a sealed lead-acid paint and paint nozzle for marking mine an alarm — a beep — sounds in the oper-
battery. This front vehicle is topped off locations. At this point, the mechanism ator’s headset. The operator must throw
with a color video camera, which lets the can only house enough paint to mark a switch on the controller to mark the
bot’s operator see what it sees. about 40 mines before it needs a refill — place where the metal detector reacted.
The rear vehicle carries the metal but that’s still four times the minimum The bot was constructed using plastic
detection coil that is used at this experi- requirement for the project. and other non-metal parts in order to save
mental phase to detect the land mines on weight, costs, and false positives from
(in this case, metal objects that are surro- Keeping a Safe Distance the bot detecting itself instead of the
gates for the mines themselves). This mines. The two part front and rear vehicle
detection device was scavenged from a A joystick controller steers the bot design spreads out the robot’s weight so
common consumer treasure hunting from up to 500 feet away. The video that it is less likely to set off a mine.
SERVO 01.2005 15
Geerhead.qxd 12/8/2004 8:50 AM Page 16
GEERHEAD
Tank-like treads enable mobility through tall grass, rugged terrain, and
any place mines may be laying in wait for their next victims.
The controller can steer the robot while operators
steer clear, up to 500 feet away. Video transmissions
reach out up to 100 feet from the bot’s camera. shade of yellow. constraints they had to work with.
TIDBITS
Yes, the four robotics engineers in prototype to US Army funding sponsors that meet all the specs they needed to
this story have names; all but one have to establish how an inexpensive mine- meet. So, the team set out to design and
graduated now. Landon Unninayar, Dan detecting bot could help prevent death test their own. They started by looking at
Hake, and Dat Truong were seniors and dismemberment from land mines both Polycarbonate and soda bottles.
working on this project before gradua- around the globe. Ultimately, a Polycarbonate bottle was
tion. Edoardo Biancheri planned to found that would fit all constraints.
have completed his undergraduate Challenges The only remaining spec was the
studies in December ‘04, with a double pressure test. How did they test it? They
major in mechanical engineering and Building a life saving bot is not a filled it with water, suited it up with gas
economics. goal without its obstacles. The biggest fittings, and pumped it up with a bike
These young men were tasked with one the crew reported was making a pump until it started to leak. At first,
building this successful bot project for pressurized paint sprayer out of almost leaks came from the pipe fittings. Then,
under $8,000.00; they did the job with 100 percent plastic materials. The those leaks were fixed and the cap
about $5,000.00 and believe it could be requirement included being able to broke off the bottle and shot out about
mass produced for under $1,000.00 — mark at least 10 mines before the 60 psi of water. Once they dealt with
less the cost of better sensing. Professor sprayer went empty. the weaknesses in the cap, the paint
Nelson will soon have demonstrated this There are no commercial sprayers container was complete.
16 SERVO 01.2005
Gray4.qxd 12/8/2004 8:27 AM Page 17
18 SERVO 01.2005
Gray4.qxd 12/8/2004 8:30 AM Page 19
Tumbling Turbots
Pace-maker:
A Bicore, which we looked at briefly last month, sets the
pace for the Tumbler. The grounded Bicore is an oscillator
that sends regular pulses. The timing of these pulses is based
on the RC constant of the Nvs. If the resistors and caps are
well matched, the Bicore will have a 50:50 cycle. Remember
that the two outputs of a Bicore are complementary: when
one half of the Bicore is positive, the other side is negative,
and then they switch.
The optimal timing of your bicore will depend on your
motors. Wolf used 6.8 µF caps, a 3M resistor for the tumble
phase (RX), and 1M for the reset phase (RY) with his
Solarbotics GM3s. Tom used 0.22 µF caps and 10M resistors
on a prototype (not illustrated) that used video lens motors
from BGMicro. Different timing will give different results and Figure 4. Inverting Multiplexor (IMx).
much of the fun is in training your own bot to give its best
performance. becomes active (goes low). Now, things start to get
The output of Nv(2,18) is fed to the bottom of a interesting.
reverse-biased photodiode voltage divider, used in the The high pulse from Nv(4,16) is fed to the Nu decision-
first article of this series (August
2004 issue of SERVO, page 10). Figure 5. Tumbler Turbot schematic.
This PD divider determines
whether the top or the bottom
side is brighter. Running the
photodiode divider from the
pacemaker instead of from
ground means it is turned on
only when needed.
The output of Nv(4,16) runs
to the decision circuit that deter-
mines whether the left side or the
right side is brighter. Again, it is
turned on only when needed.
This gives us a Turbot that
repeatedly ponders two deep,
existential questions: “Which way
is up?” and “Which side is
brighter?” AI, BEAM style.
Decision:
A Nu, as we saw earlier,
needs a high input signal to
activate. When Nv(4, 16) is
active, it sends a low signal to the
Nus. Nothing happens.
At this time, Nv(2, 18) will be
inactive because only one Nv in a
Bicore can be active at a time.
The Nv sends a high signal to the
photodiode voltage divider. Since
both sides of the voltage divider
are high, the mid-point is high
and the signal sent to the IMx
is also high. Again, nothing
happens.
After a while, Nv(4, 16) times
out (goes high) and Nv(2, 18)
SERVO 01.2005 19
Gray4.qxd 12/9/2004 1:07 PM Page 20
Figure 7. Assembling the Tumbler: autopsy photo. Figure 8. Photo of Tom’s prototype.
20 SERVO 01.2005
Gray4.qxd 12/9/2004 9:24 AM Page 21
Tumbling Turbots
will flop its way into a pool of light. Be patient and swap the
motor connections until you get it right.
Conclusion
In this series of four articles on BEAM, we aimed to
give you an introduction to the simplicity-within-complexity
of this approach to robotics and a chance to create some
fascinating little robots with relatively simple circuitry.
If you have tried these projects and enjoyed them, experi-
Figure 10. Mark Tilden’s Turbots, courtesy of Solarbotics. mented with them and extended them, or developed an
interest in going deeper and learning more, then we’ve
When you build your Tumbler, it may take a few tries to succeeded.
get the motors hooked up properly. You’ve got a one-in-four As Tom signs all his BEAM posts, “Keep BEAMing and
chance of hitting it the first time. What you want is a bot that dreaming.” SV
PARTS LIST
Electronics
74HC240 Texas Instruments SN74HC240N Digi-Key 296-4305-5-ND
(74AC240 in a pinch) Fairchild MM74HC240N Solarbotics 74HC240
Solarbotics 74AC240
Photodiodes Siemens SFH 205f wide field Solarbotics IR1
Asst. LEDs Red, green, or yellow LEDs Digi-Key 350-1347-1-ND
(We use standard LEDs on the breadboard Digi-Key 350-1348-1-ND
and tiny LEDs in construction.) Solarbotics TLED
Resistors 4- 470 Ω, if desired, for indicator LEDs See text for details
and a few in the 1M – 10M range
Capacitors Assorted, 0.1 µF to 6.8 µF range See text for details
If electrolytic or tantalum caps are used,
observe polarity.
CdS Photoresistor Any of various types should work. Solarbotics CDS
Try for a matched pair.
PNP Transistors 2N2907 or 2N3906, for example RS 276-2032 or RS276-2034
Solarbotics TR2907 or TR3906
Diodes Two small signal diodes, RS 276-1122 or 276-1620
e.g., 1N914 or 1N4148 Solarbotics D1
Perfboard Perfboard or project board Solarbotics BEP BB1
RS 276-0050 or RS 276-1395
Mechanics
Motors Two matched hobby gear motors Solarbotics GM3
6 V Power Two AAA battery packs or one four-AAA RS 27-411 includes switch
battery pack (You can use four-AA, if you RS 27-413 x 2
wish. The AAAs are lighter and smaller.) RS 27-398 x 2
Solarbotics BHoldAAA x 2
Power Switch SPST toggle power switch RS 275-325
Use a slide switch, if you prefer. Solarbotics SWT2
Flagellum Connectors Euro-style terminal blocks RS 274-679
(get the smallest ones)
Misc.
Breadboard Generic solderless breadboard and ties
Body Use 3 mm Sintra or any suitable material Solarbotics
Wire ties Any hardware store
Flagella Brass welding rod or old coat hanger
Heat shrink tubing Or rubber tubing / model aircraft fuel tubing
22 SERVO 01.2005
Samans.qxd 12/8/2004 7:55 AM Page 23
The Hack
My RoboSapien hack has
several different components:
audio, video, and control. I
have outfitted the robot with
a wireless camera, a radio
frequency receiver that
SERVO 01.2005 23
Samans.qxd 12/8/2004 7:59 AM Page 24
A USB-UIRT driver window will pop up; up Windows Explorer and find the file
click on the “Learn ...” button. Another gireventlib.dll (it should be in the folder
window will now come up and await C:\Program Files\girder) and copy it to
the IR signal. Take RoboSapien’s your C:\Windows\system32 folder.
remote and point it at your USB-UIRT Alternatively, you can add the file to
then continue pressing the right arm your path. Select Option on MLServer
up button until it learns the command and choose hide to send ML Server to
and returns you to the USB-UIRT driver the system tray.
window. I know that the instructions in
the window say to HOLD the button on MainLobby Set-up and
the remote, but RoboSapien’s IR isn’t a Configuration:
constant signal (it is a burst), so you With MainLobby open, go to the
might have to hit the “Accept Burst” top of the screen to bring up the menu.
button if it will not fully learn. Select options and hit the “Girder”
Now that you are back at the USB- button at the left. Setup both the
UIRT driver window, point the USB-UIRT Girder.exe location and the Internet
at RoboSapien and hit the “Test” button Event Server (ieventc.exe) location on
to make sure that the command was your hard drive. They should both be in
learned successfully. If not, relearn it. the main Girder directory.
Also pay attention to the “Repeat” box. Click on the “Scene” button on the RoboSapien with the RF receiver PCB
You will want to set this to 1 in most left. Notice that this is where you prior to installing it inside his back cavity.
cases, so that Girder only sends the choose your background skin, any
command once — unless you want it to animated effects, and so on. Click the down list in the “MLServeCmd” Panel,
send the IR command multiple times. “OK” button in the bottom right to exit choose “MLGirder.” This will populate
For example, I have commands setup to the Options screen. the following statement in the box:
move the arm all the way up, all the way Now, move your mouse to the top “MLServeCmd.MLGirder|.” Add the
down, all the way out, and all the way menu bar and choose design mode. Event String you created in Girder for a
in; these utilize the repeat function. Click “Add” to add a button; any particular RoboSapien command to the
Congratulations! You have taught button shape will do for now. You can end of this statement. Using the com-
Girder the first RoboSapien command. load custom buttons of your own or hit mand we created earlier, the box would
Repeat the above steps for each the “Library” button to choose from read “MLServeCmd.MLGirder|rarmin.”
command on the remote and organize those included with MainLobby. You can now test it via the test
them in groups as you see fit. Once you see the button appear on button to make sure it works or press
One other thing worth mentioning your background, you can drag and “OK” and test it from the button’s prop-
in Girder is “multigroups.” These are drop it wherever you like. Hit the “Edit” erties panel. Click “OK” when finished.
macros; you can take any girder com- mode button in the top menu bar and You should now be able to choose
mand you have created, right click on it click on the button you just created. A “Launch” from the top menu bar, click
to copy, and then paste it into multi- screen with tons of options will open up. on the button you created, and make
groups. String together unlimited com- Here, you can customize your button. RoboSapien bring his right arm in.
mands, but keep in mind that you might In the “MLServeCmd” area at the Repeat the above steps in
have to mess around with some more bottom, click on the “A” button. A new MainLobby for each button you wish
advanced settings to get the timing right window will pop up. From the drop to create.
when using RoboSapien’s combina-
tion or attitude moves. Don’t forget The wireless camera installation The RadioShack mini amplifier/speaker gutted.
to add an event string for them so from the inside. Oddly, it made me hungry for doughnuts.
you can call them from MainLobby.
Once you have your IR com-
mands learned into Girder, save
your file, and then click File-> close
window to send Girder into your
system tray.
from my PC. This ties in nicely that works like a charm. Now, there
with the PC control scheme. was more than enough volume, but I
I gutted an inexpensive set realized that the speaker was subpar.
of Emerson EHP1000 wireless The solution was found in a set of
(RF) headphones. Initially, I just 10-year-old, unamplified Sony
stuck the circuit board in the Walkman speakers I had laying around.
little slot behind RoboSapien’s The speakers are each 8 Ω, 0.2 W, so I
head. I did not want to make a wired them in series. This made a real
more permanent decision until improvement in the sound quality. The
I could install a camera. This new problem was that the speakers are
allowed me to transmit sounds pretty big — 2.5” by 3/4” thick — plus
played on my PC to the a 9 V battery and two AAA batteries in
RoboSapien speaker. the mix, the amplifier PCB, and the RF
MainLobby lets you assign headset PCB. Obviously, I needed to
multiple events to each control house all this hardware in some sort of
button, so I can press one a backpack/project box.
button in the MainLobby GUI Building the project box was an
and it will send an IR command issue. All of the boxes at RadioShack
to RoboSapien and play an were either too big or too small. I tried
MP3 file. With the wireless a plastic box that housed a set of
set up, it plays this sound hobby knives. I liked the size, but it was
through RoboSapien’s speaker. too shallow for all the boards and bat-
RoboSapien now says whatever teries. While searching, I came across a
The finished RF receiver hack. The project box
includes a stereo amplifier, batteries for the cam- MP3 I send to him, plays music, decent little mini amplifier/speaker. It’s
era and the amplifier, an on/off toggle for the etc. a nice little package — about the size of
amp with LED indicator, volume control, and The possibilities are interest- a handheld transistor radio. It’s 200
inputs for both Robosapien’s native voice (mono) ing. You could set up separate mW and drives a 16 Ω, 0.5 W speaker
and the RF receiver output (stereo). The toggle
and indicator LED behind the head are for the RF control schemes for — a perfect robot backpack.
receiver, which is concealed in his back cavity. RoboSapien with separate Using a couple of lids from tin
sounds. For example, with a espresso boxes, I rigged up an enclo-
RoboSapien RF Sound custom themed GUI created in sure for the RF amplifier and the AA
MainLobby, you could create a football battery pack. I then Velcroed it
Mod RoboSapien, programmed to dance, all together and attached it to
The next step in my Zion replica- play the fight song of your favorite RoboSapien’s back. It’s very secure and
tion with RoboSapien was to develop a team, cuss at the refs, cheer for individ- it works pretty well. I needed to shield
modified sound system. The original ual players, whatever you want. his upper body motors; they caused
concept was to use the RF receiver Once I got into this hack, I found some interference. I’m still not really
from a set of wireless headphones so that I had a real problem with amplifi- very happy with this mod; although it
that RoboSapien could play MP3 music cation — more specifically, the lack of works as intended, it’s just okay.
files and, for that matter, any sound it. I am a total newbie when it comes Once I had decided that I needed
to electronics, so — when I to house all of the RF equipment and
RoboSapien at night with his new lighting system. hooked this up — I basically improved speakers “off site” from
just plugged the RF trans- RoboSapien, I wired up a toggle switch
mitter into the headphone on the robot’s back that turns off his
jack on my PC speakers and internal speaker. I found I was missing
hooked up the RoboSapien his “caveman talk” — which I found
speaker to the wires that quite strange. I ran a set of wires out of
were used for one of the RoboSapien to hook up his internal
headphone speakers. The sounds with the external setup,
volume was adequate although I am not really sure now that
through the RoboSapien they are needed. I left them because I
speaker (slightly lower than figure any backpack arrangement will
the default RoboSapien end up blocking his internal speaker.
voice) if I have the volume Now, the Sony speaker system
turned all the way up on my sounds fantastic and plays both the RF
PC. To solve this problem, I receiver input (in stereo) and
added a 1 W amplifier RoboSapien’s native voice (in mono).
26 SERVO 01.2005
Samans.qxd 12/8/2004 8:13 AM Page 27
It’s pretty much the coolest MP3 boom- Before you start cutting
box ever! up RoboSapien, though, it
At this point, there are still a few is a good idea to test the
loose ends that need to be tied down: camera to not only make
sure it works, but to make
•I am using industrial strength Velcro sure you are happy with the
to hold the speakers on RoboSapien quality and with the set-up.
and the project box on the speakers. It Plugging it into a TV or VCR
is pretty heavy. I will need to come up probably isn’t as much fun
with a better solution to attach it — as plugging it into a PC that
maybe bolts or pegs of some sort. can control RoboSapien and
record the images.
• The weight of the speaker system The camera lens is
slows down RoboSapien’s walking 0.5”, so that’s the hole size
speed. This isn’t such a bad thing, as it we need to drill in
helps to stabilize him and make the RoboSapien’s chest. He’ll I see London, I see France, I see RoboSapiens’
wireless camera feed less jittery. probably have nightmares headlamp underpants!
about the drill for a long
• The amplifier eats through batteries time to come. I tried using smaller Finally, I felt it was the most aesthetically
pretty quickly. holes, but the result wasn’t as good as pleasing place for the camera.
letting the entire lens come through Here are a few notes on drilling
• I need to make longer patch cables the RoboSapien shell. It also looks the hole: Make sure you take your time
so that the entire “backpack” can be nicest when the camera lens is flush and go slow; once the hole is there,
removed once RoboSapien reaches his with the robot’s chest. you can’t easily fix it. I started with a
destination. I made them a little too I chose the center location in his 1/8” drill bit and drilled in the center
short. chest for several reasons. One, it is the point on his chest, right where his
spot where his chest cavity is widest. “cleavage” meets his black “throat
RoboSapien Camera Also, it is the furthest point away from piece.” Once this hole was made and
his arm and waist motors, so interfer- cleaned up with a hobby knife, I moved
Mod ence is kept to a minimum. I didn’t even to a 1/4” drill bit; I enlarged it and
Next, I decided to install a miniature need to shield his motors. This spot is again smoothed the edges with a
wireless camera in my RoboSapien. also one of the more stable points on hobby knife.
Thanks go to RoboSapien.tk for the the RoboSapien and — since it is dead Finally, it was time for the big
initial idea. Some people have installed center — it shouldn’t affect his balance. daddy — the 1/2” drill bit. This made a
a similar camera into the robot’s head.
This is great, since the head turns when
you raise and lower the arms and you
can pan the camera around. Getting
the glued head assembly apart is
:HERWV
)DVWSURWRW\SLQJ VLPXODWLRQRIURERWV
extremely difficult, so I went for the
easier solution: I installed it into 7KHFKRLFHRIXQLYHUVLWLHVDQG
RoboSapien’s roomy chest cavity.
For this project, I used a small
UHVHDUFKFHQWHUV
“ZT-802” type RF mini camera. They ZRUOGZLGH
are easily found on www.eBay.com It
will transmit both audio and video. The
actual camera is about the size of a
sugar cube and fits very nicely in
RoboSapien’s chest cavity. The receiver
has composite (RCA style) outputs that
you can plug into a TV or a tuner card
in your computer. I build HTPCs as a
hobby and swear by the Hauppauge
WinTV PVR-250. It works great with
this mod, since it provides the ability
to record the audio and video (or
snapshots) on your PC.
ZZZF\EHUERWLFVFRP
Circle #114 on the Reader Service Card.
SERVO 01.2005 27
Samans.qxd 12/8/2004 8:14 AM Page 28
28 SERVO 01.2005
Page29.qxd 12/9/2004 1:46 PM Page 29
Official Results:
11 ss tt P
P ll aa cc ee -- JJ aa m
m ii ee SS aa m
m aa nn ss
22 nn dd P
P ll aa cc ee -- H
H ee nn rr yy P
P ff ii ss tt ee rr
Hero
Pat Stakem, Laurel, MD
Upper left: Let's think about this — the Hero-1 on the left uses the
teaching pendant of the other Hero-1 robot ...
Lower right: The Hero-1 on the left uses a pencil to operate the hex
keypad of the other Hero-1.
30 SERVO 1.2005
Barlow.qxd 12/8/2004 9:26 AM Page 31
— BY KERRY BARLOW —
obot designers face many challenges in their quest ty. The Atom comes in many variants — 24-pin, 28-pin, and
R for the perfect robot. The most obvious decisions are
microprocessor type, wheel configuration, sensor modes,
40-pin. In addition, there are Atom Pro microprocessors with
extended capabilities above and beyond what the Atom has.
prices of hardware, and software design. The list can be The Atom 24 is pin compatible with the Parallax BS2.
endless and daunting. One of the first decisions we all must Basic Micro is a small company, so they put their effort
face is the choice of microprocessor. into designing new hardware and features for their product
In my latest robot, I have chosen the Basic Micro Atom 24- line. A person will not find quite as much software support
pin as the brains of my creation (Figure 1). I chose the Atom as they would from a larger company, such as Parallax, but
primarily for its basic programming language and its compati- the extra hardware capabilities of the Basic Micro products
bility with many thousands of pre-existing program examples make up for some lack of support. Basic Micro does have
in the communi- excellent forums for their products. These forums cover both
hardware and software examples.
For those readers who have not been to
the Basic Micro site recently, please
SERVO 01.2005 31
Barlow.qxd 12/8/2004 9:28 AM Page 32
Memory Space hardware to use. The Atom has two PWMs available. The first
is on pin 9, which is selected by setting a value of 1. The sec-
One of the biggest reasons I chose the Atom was its ond is on pin 10 and is selected by using a value of 0 for CCPx.
contiguous memory space. The Atom has a 14K program
space. Simply put, all you need to do is write your program Period is a variable or constant from 0 to 16,383 that specifies
— no more worries about bank switching or running out of the period of the pulse width in CLK cycles.
memory space. I could not possibly have fit everything I am
doing inside the 2K memory space of a different processor. Duty is a variable or constant from 0 to 16,383 that specifies
Consider the robot program I will be discussing (available the duty cycle of the pulse width.
on the SERVO website or my own — see Resources). At this
time, there are 200 bytes of RAM free and 4K of program ENABLEPIN con 9
TrackLow:
space still free; 656 program lines show as being compiled. HPWM 1,9890,8000 : Return ‘81% Duty
This is non-optimized code. On my own working version of Return
the program, there are many lines of old subroutines still left
in my program only because I have the space and it is easier TrackMed:
to leave them in for testing purposes. I have never had any HPWM 1,9890,9000 : Return ‘90% Duty
Return
worries about RAM space, as I did with the BS2. I have TrackHigh
variables declared that I am not even using. HPWM 1,9890,9890 : Return ‘99% Duty
The program on the SERVO website is cleaned up and Return
the unused code has been removed, but I simply wish to say
that variable and program space is so large that I never even IF .. THEN .. ELSEIF .. ELSE .. ENDIF
worried about it. The Atom does not have as much user EEP-
ROM available as a BS2. There are 256 bytes of EEPROM for The Atom uses standard syntax for its IF decision state-
data storage. If you need more storage for something like a ments. There are two ways in which IF ... THEN can be used.
data logger, then you will have to use an external memory The first tests a condition and, if that condition is true, goto or
system. The simplest method for this is to use an I2C bus gosub to a point in the program specified by an address label.
based EEPROM memory chip. For my robotics work, I have
never needed to actually store memory, but I can imagine a
person who would want to map a location to memory. In this
case, I do recommend using external memory. The internal
RAM of 368 bytes for variable and array space is quite large.
Even with 35 variables and two arrays in my program, I still
have 200 bytes of variable space free in the Atom! Variables
can be bit, nibble, byte, word, and long. These are defined as
Bit 0 or 1
Nib 0 to 15
Byte 0 to 255
Word 0 to 65535
Long 0 to 4,294,967,295
Hardware PWM
The HPWM command outputs a user-specified Pulse
signal on either of two channels. Both channels may run
independently at different duty cycles, if you wish. Hardware
PWM is much more useful than software generated PWM.
The Atom will continue processing your program at the same
time it is generating PWM signals.
Animate
The animate button will ani-
If range <=130 then gosub OBJECT mate the displayed program line-by-line, as it is executed on
the target device.
The second use of the If ... Then can conditionally
execute a group of statements following the THEN. The state- Run
ments must be followed by Elseif or Else with an Endif. The run button will start program execution on the target
once the connection is established.
If Ldist <=10 then Lflag = 8
Endif Reset
Reset is used to restart the program currently running on the
Incircuit Debugger target device.
Oscilloscope
Inside the Atom IDE there
is a built-in oscilloscope tool.
The oscilloscope supports two
basic kinds of data plots.
Y/time is where the Y-axis is
the data and the X-axis is
time. Note that this is not real FIGURE 7
time. It is actually the time
between when the data points are received. So, if you are H-bridge motor control chip. I wanted motor speed control
only sending a data point once a second, that’s when the and had plans for Pulse Width Modulation (PWM). The Atom
Y-axis will be updated. will provide hardware-based PWM. This offloads much of the
I have not personally used the oscilloscope yet. There necessary overhead of software-driven PWM. At this time, I
is documentation on the Atom website (see Resources) have not used the PWM feature except as a test program. I
describing its full use. found that my robot runs at an adequate speed using full
battery voltage and I did not need any reason for speed
The Robot reduction at this time.
The H-bridge driver to the SN754410 has been detailed
My robot has been in its design phase for many years now, many times in previous articles, as have the I/R transmitters
mainly due to a busy work schedule. It would take too much using a 555-frequency generator. For an example of the
space to go through all the iterations and design changes. I
feel, however, that it would be beneficial for the reader to
know of some of the worst problems I have had, in addition to
why I changed my plans and some of the hardware on the STEER WINNING ROBOTS
robot. On this robot, I specifically did not want any mechanical
bumper switches. Bumper switches are fine and 100% reliable, WITHOUT SERVOS!
but an animal in nature does not really use them and I did not
want them on the robot, either. I had used servo motor-driven
drive wheels with a trailing caster previously and they work
fine, but a trailing caster would occasionally cause problems,
either catching on a carpet or catching while backing up. With
this in mind, I chose a dual track design (Figure 4).
It also was thought that edge-mounted I/R sensors would
be good as a final last-ditch obstacle detection system. See
Figure 5 for a close-up of the edge sensors. The Atom hardware
interrupt was to play a major part in the edge detection circuitry.
I will go into more detail on interrupts in Part 2 of this article.
You will notice two circuit boards on the robot. The
lower board has the Atom, H-bridge driver, and the 555 timer
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
for I/R and A/D connections (Figure 6). with our mixing RDFR dual speed control. Used in many
The upper board contains a LCD, 4052 multiplexor, and successful competitive robots. Single joystick operation: up
inputs for the three CDS cells (Figure 7). I’ll also explain the goes straight ahead, down is reverse. Pure right or left twirls
4052 multiplexor hardware and software in further detail in vehicle as motors turn opposite directions. In between stick
the next installment of this article. 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 Construction The RDFR47E 55V 75A per motor unit pictured above.
www.vantec.com
Design must turn into hardware at some point, so I
chose a toy tracked power shovel as the main drive unit. I Order at
was quite happy with the track drive unit for indoor use.
Motor control was achieved by the use of an SN754410
(888) 929-5055
SERVO 01.2005 35
Barlow.qxd 12/8/2004 9:32 AM Page 36
FIGURE 8
schematic of the I/R transmitter, review Figure 8. and transmitters aft facing. All transmitters are tied in parallel
and so are the receivers.
Sensors I am using the Parallax IR receiver modules. These output
a digital LOW or 0 state if an object is detected. All receivers
Sonar are tied to the Atom’s interrupt hardware pin (pin 0). No matter
Four SRF04 sonar sensors mounted on the front and where the Atom may be in its main loop, if a detection
sides of the robot provide main object detection. These sonar occurs, the hardware pin will immediately stop the program
sensors are tied together using the 4052 multiplexor; look for and branch to a special subroutine. In this subroutine, a user
more details on the 4052 next month. may do anything desired. I chose to stop all motors, back up,
and then search for a large area to drive into. Again, I shall
I/R Ranged go into more detail on interrupts in Part 2.
Secondary object detection is performed by a GP2D02 IR
range finder inside a small project box that is mounted on CDS Light Sensor
top of a standard hobby servo. I can rotate this head to find I also have CDS light sensors mounted on the robot. One
the largest openings around the robot. sensor is mounted inside the rotating head and one is mounted
on either side of the robot. At this time, I only implement the
I/R Static light sensor inside the rotating head. I use this light sensor to
Interrupt-driven edge sensors are a third and final prevent the robot from driving under tables. I am currently using
detector. On the front of the robot, I have transistor pairs and the Atom’s A/D circuit connected directly to a standard CDS cell.
two sensors at each corner. On the rear, I have two sensors
Reliability
RESOURCES This method has proven to be 95% reliable. I highly recom-
Atom 24, accessories, and supplemental info mend mixing sensor types in this way. I have often seen sonar
www.basicmicro.com miss an obstacle that an IR sensor will detect and vise versa.
I/R receiver
www.parallax.com/detail.asp?product_id=350-00014 Final Notes
SRF04, PIR sensor, and GP2D02 I hope this review of the Atom has given you an appetite
http://acroname.com for a powerful microprocessor that is programmable in the
Basic language. So many times in the past, I have found great
SN754410 and CD4052
sounding robots, only to realize they are based on a micro-
http://mouser.com/
processor that either requires C code or uses such a convoluted
Program, Atom 24, and Atom Manual 2.2 syntax for its Basic that they would nearly require relearning
http://mntnweb.com/hobby/bolo/ the language. Basic Micro has done a good job of giving us
a high power processor wrapped in a high level language.
SERVO Magazine — code listings In Part 2, I will go into details of the Atom specific code
www.servomagazine.com and how I have used that code in my robot design. SV
36 SERVO 01.2005
Showcase.qxd 12/9/2004 4:28 PM Page 37
Robotics Showcase
SERVO 01.2005 37
Events.qxd 12/8/2004 9:54 AM Page 38
Send updates, new listings, corrections, complaints, and suggestions to: steve@ncc.com or FAX 972-404-0269
38 SERVO 01.2005
Sandberg.qxd 12/7/2004 4:38 PM Page 39
How We Did
When we arrived on contest
SERVO 01.2005 41
Sandberg.qxd 12/7/2004 4:42 PM Page 42
Testing the steering. Sharp turns are no problem! Note the strong design. • We will add proximity
sensors. Sonar, IR, and
just to see if it could find the final cone, contest version looked at the wrong vision are some choices. We’ll spend
but we had already turned the variable to turn on the camera. We enough time on sensor fusion to
robot off. That killed the Stamp’s couldn’t test it after dark the night improve behavior and speed up the
memory, ending our chances at hitting before the contest, so we didn’t catch response to objects and hazards.
the destination cone. the error.
• We will do tests to gain more speed
Lessons Learned • GPS is a very robust navigation before next year. There are some really
method. Even with the bad compass fast robots out there!
Entering the contest this year was (shorted wires on a sensor), the GPS
an excellent learning experience. It offered enough correction to get the • We’ll add more of our own waypoints
gave us a good idea what works and robot around the course. With a GPS and include a scheme for determining
what doesn’t. that has routes, you don’t need to do which waypoints have cones attributed
double precision math. to them.
This is what we learned:
Next Year • TEST, TEST, TEST! What you think
• Start earlier. By the time Larry got you are writing isn’t always what the
the robot and put the sensors on it, • For next year, we will build on what robot ends up doing.
there were only nine days left to the we have. More time and cleaner
contest. It’s remarkable that the robot coding will smooth out the glitches in • We will provide alternate behaviors
worked at all. The fact that the camera the behavior. The camera code is a for different parts of the course.
didn’t turn on at the first cone is good example. It works over a wide
directly attributable to not having time field of view, but there are certainly • We’ll wear lots of orange and walk in
to debug the entire program. The more elegant ways to do the task. front of the other guys’ robots.
SERVO 01.2005 43
Braunl.qxd 12/8/2004 8:17 AM Page 44
Sensor Visualization
EyeSim’s sensor visualization can assist in locating an
error in a robot application program, as errors in robot pro-
grams are frequently related to incorrect sensor data reading
or incorrect interpretation. EyeSim provides a graphical and
numerical display of sensor values to assist the application
programmer. Read requests to the infrared distance sensors
(position sensitive device, PSD) are displayed as lines and are
stored for subsequent analysis. Camera read requests are
displayed with the camera’s frustrum and sending and
receiving wireless transmissions is represented with graphics
symbols (see Figure 5). In many cases, simply watching a
robot program with sensor visualization switched on helps in
locating an error.
Implementation
The internal simulator structure is client-based and
object oriented. The central object in the server is an
instance of class “Core.” Each robot is represented by a
client, which communicates with the server through a
bi-directional message channel. The main tasks of the Core
are: initialization of the simulation, administering of current
states of the “world” (including positions of robots and
objects), synchronization of individual robots, and interaction
with the GUI.
The interface between the simulator and robot
application program are the functions from the RoBIOS
operating system (see Box “RoBIOS API”). In addition, the
Circle #137 on the Reader Service Card.
45
Braunl.qxd 12/8/2004 8:19 AM Page 46
Error Models
In the simulation environment, sensor values are
obviously not measured, but calculated. This leads to the
strange situation that simulated values are usually much
more precise than an actual robot sensor could ever be. In
the real world, there are always aberrations from the
true signal that are due to sensor error or noise. There are
several causes for noise, such as the black signal in CCD
chips, discretization errors in A/D converters, etc. Generally
FIGURE 5. Visualization of PSD sensors and wireless communication. speaking, the performance of most sensor types is limited by
some form of noise.
takes place. Only then can positions of moving robots and In order to keep the “reality gap” as small as possible,
obstacles be properly calculated. Even more important is we implemented artificial sensor errors and noise in our
a solid model of time for synchronizing multiple robots in a simulation environment. Algorithms that have only been
simulation environment. Note that each robot program tested under perfect, synthetic conditions are very likely to
can itself make use of multi-tasking by starting threads for fail in a real environment. The Gaussian noise used in EyeSim
individual tasks. is a simplification of noise encountered in real environments,
EyeSim accomplishes this by giving each robot its local but is a tremendous help in the development of robust and
time, which is being synchronized with a global simulation fault-tolerant algorithms.
clock. By default, the global clock runs in real time — that is, While noise added to PSD sensors and shaft encoders
the simulation takes the same time as the real robots would. results in a normally-distributed aberration from the correct
However, it is possible to run the simulation slower or faster sensor value, we additionally implemented impulse noise for
than real time; the only limitation here is the processing the simulated camera. This can be specified in the form of
“salt and pepper” noise (stray black and white
FIGURE 6. Some of the real EyeBot sensors — PSD, inclinometer, and gyroscope. pixels) or “100s and 1,000s” noise (stray colored
pixels). In real camera systems, these incorrect
pixel values can be the effect of information loss
or failures during data transfer.
Application Examples
A good start in getting to know a simulation
system begins with looking at some application
examples in detail. For this, we have selected some
typical mobile robot tasks. Camera and sensor
commands in the RoBIOS operating system are
largely self-explanatory. For driving commands, the
application program-
FIGURE 7. Original, salt and pepper noise, 100s and 1,000s noise, and white Gaussian noise. mer can choose
between direct motor
control in low level
modus (MOTOR and
QUAD commands) and
the high level VW inter-
face with linear and
rotational velocities
(e.g., VWDriveStraight,
VWDriveTurn).
Maze Exploration
Making a robot
that has to find its way
46 SERVO 01.2005
Braunl.qxd 12/8/2004 8:22 AM Page 47
Visit www.pololu.com or call 1-877-7-POLOLU Speed feedback mode allows for tachometer-
based control of your motor’s speed.
for more innovative motion control solutions.
visited all reachable fields (the goal would not be reachable (CAMGetColFrame). Images can be displayed on the robot
in this case). console (LCDPutColorGraphic) and manipulated by using
image processing routines on the robot.
Object Detection and Tracking A simple problem is the detection of an object by using
Simulation gets much more interesting with the capability its color. For this task, we have placed a red ball in the robot’s
to perform image processing on the simulated robot. Like all environment and put the robot at a random position and
real robots in the EyeBot family, the simulated robots may orientation. We use a top-down program design strategy. We
have a virtual camera onboard, which can be accessed assume we have an image processing routine for ball
through RoBIOS calls in order to read an image detection ColSearch, then write our main program around it.
w
e
N
KHR-1 Robo-One Robot Kit
These awesome kits are the latest craze in Japan.
Robot has 17 motors for fluid movements.
Programed and Controlled via PC.
Upgradable to Bluetooth wireless.
In a loop, we read a camera image and display it on the LCD, from function ColSearch, we return the column number
then call our detection routine ColSearch, and print its results (pos) with the highest concentration (val) of matching color
as text on the LCD (using LCDPrintf). values.
While we are not close enough to the object (val<20, Figure 12 shows the execution of the object detection
which means ball diameter is less than 20 pixels), we continue program. At the beginning of the experiment, the robot is
driving. If the detected ball position is equal to -1 (no ball facing the wall and is not able to see the ball. Following the
detected) or between 0 and 20 (ball detected in the left algorithm, the robot turns on the spot until the ball is being
image third), we rotate the robot to the left (VWDriveTurn). detected in the middle third of its local camera image. The
If the detected ball position is between 60 and 79 (ball robot then drives toward the ball and corrects its orientation
detected in the right image third), we rotate the robot to the in case the ball drifts towards the left or right image border.
left; otherwise, we drive a short distance forward Note that this algorithm requires the ball to be visible
(VWDriveStraight). from every board position; otherwise, the robot would spin
What is still missing is the actual implementation of the forever. An alternate solution would be to drive to various
ball detection routine ColSearch. Since color objects are points in the environment and start searching for the
easier to detect in the HSV color model (hue, saturation, ball locally.
value) than the camera output format RGB (red, green, blue),
our first step is to convert RBG to HSV. Downloads and Further Reading
However, this step is not always necessary. For example,
for the detection of a red object, one could more easily work The complete simulation system (version 6.1) for
on RGB values directly. Windows is freely available and can be downloaded from:
In the next step, we generate a column histogram in a http://robotics.ee.uwa.edu.au/eyebot/ftp/rob61win.
loop over all pixels. This means we count for every column exe (43 MB).
the number of pixels with a color (hue) that is similar to the This package contains the full EyeSim simulation system,
desired object color (obj_hue). With this, we get a number robot models, environments, example programs, and docu-
representing the concentration of the desired color value for mentation. Also included are the C/C++ compiler MinGW
each column. We only have to find the maximum value over and the RoBIOS environment for the real EyeBot robots.
all columns in order to find the ball’s position. As a result, See these general websites for more details and down-
loads of newer versions, as well as the EyeSim Linux version
About the Authors (version 5.01):
http://robotics.ee.uwa.edu.au
Thomas Braunl is Associate Professor at the University of http://robotics.ee.uwa.edu.au/eyebot/ftp/
Western Australia in Perth, where he directs the Centre for
Intelligent Information Processing Systems (CIIPS) and the Details on the EyeCon controller and SoccerBot robots
Mobile Robot Lab. He has published a number of books and are available from:
created the EyeBot mobile robot family. Axel Waggershauser is http://joker-robotics.com
a graduate student who is just finishing his Master’s Degree at
the University Kaiserslautern, Germany. He implemented EyeSim For further reading on robot design and applications —
version 5 under Linux. Andreas Koestler is a graduate student at both simulated and real — we recommend the book:
FH Giessen, Germany and has continued Axel’s work with Embedded Robotics — Mobile Robot Design and
implementing EyeSim version 6 under Windows. Applications with Embedded Systems by Thomas Braunl,
Contact details are available from http://robotics. Springer-Verlag 2003, 434 pages, hardcover, ISBN 3-540-
ee.uwa.edu.au
03436-6. SV
50 SERVO 01.2005
Williams.qxd 12/8/2004 9:44 AM Page 51
SERVO 01.2005 51
Williams.qxd 12/8/2004 9:45 AM Page 52
Analyzing
an Infrared
Remote
Control Signal
To capture the
infrared packet being
transmitted by the remote
52 SERVO 01.2005
Williams.qxd 12/8/2004 9:46 AM Page 53
CODE 5
‘————————————————————————- GOTO START
‘ NAME : IR-DECODE.BAS
‘ COMPILER : PICBASIC PRO - MICROENGINEERING LABS ‘———————- DISPLAY PULSE STREAM ————————
‘ NOTES : IR REMOTE CONTROL DECODING PROGRAM
‘ AUTHOR : KARL P. WILLIAMS DISPLAY_PULSE:
‘————————————————————————- HIGH LED
FOR I = 0 TO 33
@ DEVICE PIC16F819, INTRC_OSC_NOCLKOUT, WDT_OFF, IF IR_PULSE(I) > 150 THEN
LVP_OFF, PWRT_ON, PROTECT_OFF, BOD_OFF SEROUT COM,COM_BAUD,[“1”]
ELSE
INCLUDE “MODEDEFS.BAS” SEROUT COM,COM_BAUD,[“0”]
ENDIF
TRISA = %00011111 NEXT I
TRISB = %00000001 SEROUT COM,COM_BAUD,[13,10]
DEFINE OSC 8 LOW LED
OSCCON = $70 RETURN
56 SERVO 01.2005
Full Page.qxd 12/9/2004 3:56 PM Page 57
BookstoreJan05.qxd 12/9/2004 12:50 PM Page 58
andy
Mind Cday’s
For To ticist
Robo
The SERVO Bookstore
ROBOT DNA SERIES Industrial Robotics Build Your Own All-Terrain
Three Volume Pack by Harry Colestock Robot
With so many industries by Brad Graham / Kathy McGowan
taking advantage of the Remotely operated
tremendous advances in robots are becoming
robotics, entities ranging increasingly popular
from small family because they allow the
businesses to large operators to explore
corporations need areas that may not
assistance in the normally be easily
selection, design, set-up, accessible. The use of
Everything you need to program your maintenance, and eco- video-controlled
robot controller: nomic considerations of industrial technology has sparked
• Microcontrollers in Robots automation. Industrial Robots shows how to a growing public interest not only in
• Software Development achieve maximum productivity with robotics, hobbyists, but also in the areas of research,
• The Microchip PICmicro Microcontroller classifies robots according to their complexity space, archeology, deep sea exploration,
• Microcontroller Connections and function, and explains how to avoid and even the military. Inside Build Your Own
• Designing the Robot System common automation mistakes. $39.95 All-Terrain Robot, the writers enable even
• Going Forward total newcomers to robots to construct a
rugged, video-controlled, talking, seeing,
Everything you need to build your own interacting explorer bot with a range of over
robot drive train: a mile for under $200.00! $29.95
Electronic Gadgets for the
• The Basics of Robot Locomotion
Evil Genius
• Motor Types: An Overview
by Robert Iannini
• Using DC Motors
The do-it-yourself
• Using RC Servo Motors
hobbyist market — Robot Building for Dummies
• Using Stepper Motors by Roger Arrick / Nancy Stevenson
particularly in the area
• Motor Mounting Ready to enter the robot
of electronics — is
• Motor Control world? This book is your
hotter than ever. This
• Electronics Interfacing passport! It walks you
book gives the “evil
• Wheels and Treads through building your
genius” loads of
• Locomotion for Multipods very own little metal
projects to delve into,
from an ultrasonic assistant from a kit, dress-
All the data you need to build your own ing it up, giving it a brain,
microphone to a body
robot base: programming it to do
heat detector, all the way to a Star Wars !
• Mechanical Construction
Light Saber. This book makes creating these things, even making it NEW
• Electrical Construction talk. Along the way, you’ll
devices fun, inexpensive, and easy. $24.95
• Operating Power gather some tidbits about robot history,
• Robot Designs enthusiasts’ groups, and more. $21.99
• Constructing a Two-Wheeled Rover Robot
• Selecting the Right Materials
• Glossary of Terms Robot Builder's Bonanza
• Tables, Formulas, and Constants by Gordon McComb
Robot Builder’s Bonanza Mobile Robotic Car Design
Subscribers: $62.99 Non-subscribers: $69.99 is a major revision of the by Pushkin Kachroo / Patricia
bestselling bible of Mellodge
Limited time only! amateur robot building — This thoughtful guide
Offer expires January 31, 2005! packed with the latest in gives you complete,
servo motor technology, illustrated plans and
microcontrolled robots, instructions for building
remote control, LEGO a 1:10 scale car robot
Robot Programming Mindstorms Kits, and that would cost
by Joe Jones / Daniel Roth other commercial kits. It gives electronics thousands of dollars if
Using an intuitive method, hobbyists fully illustrated plans for 11 bought off-the-shelf.
Robot Programming complete robots, as well as all-new coverage But, beyond hours of
deconstructs robot of Robotix-based robots, LEGO Technic- entertainment and
control into simple and based robots, Functionoids with LEGO satisfaction spent creating and operating an
distinct behaviors that are Mindstorms, and location and motorized impressive and fun project, Mobile Robotic
easy to program and systems with servo motors. $24.95 Car Design provides serious insight into the
debug for inexpensive science and art of robotics. Written by
microcontrollers with little robotics experts, this book gives you a solid
memory. Once you’ve We accept VISA, MC, AMEX, and DISCOVER background in electrical and mechanical
mastered programming your online bot, you Prices do not include shipping and theory, and the design savvy to
can easily adapt your programs for use in may be subject to change. conceptualize, enlarge, and build robotics
physical robots. $29.95 projects of your own. $29.95
58 SERVO 01.2005
BookstoreJan05.qxd 12/9/2004 12:52 PM Page 59
PIC Microcontroller Project Book Build Your Own Humanoid CNC Robotics
by John Iovine Robots by Geoff Williams
The PIC microcontroller by Karl Williams Now, for the first time,
is enormously popular Build Your Own you can get complete
both in the US and Humanoid Robots directions for building a
abroad. The first edition provides step-by-step CNC workshop bot for a
of this book was a directions for six exciting total cost of around
tremendous success projects — each costing $1,500.00. CNC Robotics
because of that. less than $300.00. gives you step-by-step,
However, in the four Together, they form the illustrated directions for
years that have passed essential ingredients for designing, constructing, and testing a fully
since the book was first making your own functional CNC robot that saves you 80 percent
published, the electronics hobbyist market humanoid robot. $24.95 of the price of an off-the-shelf bot and can
has become more sophisticated. Many be customized to suit your purposes exactly,
users of the PIC are now comfortable paying Robot Mechanisms and because you designed it. $34.95
the $250.00 price for the Professional Mechanical Devices Illustrated
version of the PIC Basic (the regular version by Paul Sandin
sells for $100.00). This new edition is fully Both hobbyists and Designing Autonomous
updated and revised to include detailed professionals will treasure Mobile Robots
directions on using both versions of the this unique and distinctive by John Holland
microcontroller, with no-nonsense sourcebook — the most Designing Autonomous
recommendations on which one serves thorough — and thoroughly Mobile Robots introduces
better in different situations.$29.95 explained — compendium the reader to the
of robot mechanisms and fundamental concepts of
devices ever assembled. this complex field. The
Robot Builder's Sourcebook Written and illustrated author addresses all the
by Gordon McComb specifically for people fascinated with pertinent topics of the
Fascinated by the world mobile robots, Robot Mechanisms and electronic hardware and
of robotics, but don’t Mechanical Devices Illustrated offers a software of mobile robot design, with
know how to tap into the one-stop source of everything needed for the particular emphasis on the more difficult
incredible amount of mechanical design of state-of-the-art mobile problems of control, navigation, and sensor
information available on ‘bots. $39.95 interfacing. Its state-of-the-art treatment of
the subject? Clueless as to core concepts in mobile robotics helps and
locating specific challenges readers to explore new avenues
information on robotics? Machine Nature: The Coming in this exciting field. The accompanying
Want the names, addresses, Age of Bio-Inspired Computing CD-ROM provides software routines for the
phone numbers, and websites of companies by Moshe Sipper examples cited, as well as an electronic
that can supply the exact part, plan, kit, Despite being marvels of version of the text. $49.95
building material, programming language, complexity and human
operating system, computer system, or ingenuity, computers are
publication you’ve been searching for? Turn notoriously bad at Robotics, Mechatronics, and
to the Robot Builder’s Sourcebook — a learning new things and Artificial Intelligence
unique clearinghouse of information that will dealing with new by Newton C. Braga
open 2,500+ new doors and spark almost as situations. Researchers Accessible to all readers —
many new ideas. $24.95 at the frontiers of including secondary school
computer science have students and
turned to nature for amateur technology
Robotics Demystified solutions to the enthusiasts — Robotics,
by Edwin Wise problem of machine Mechatronics, and Artificial
There's no easier, faster, adaptation and learning. By applying models Intelligence simplifies the
or more practical way to of complex biological systems to the realm process of finding basic
learn the really tough of computing machines, they have given rise circuits to perform simple
subjects. McGraw-Hill's to a new breed of adaptive software and tasks — such as how to
Demystified titles are hardware. In Machine Nature, computer control a DC or step motor — and provides
the most efficient, scientist Moshe Sipper takes readers on a instruction on creating moving robotic parts,
intriguingly written thrilling journey to the terra nova of computing such as an "eye" or an "ear." Though many
brush-ups you can find. to provide a compelling look at cutting-edge companies offer kits for project construction,
Organized as self- computers, robots, and machines now and most experimenters want to design and build
teaching guides, they in the decades ahead. $24.95 their own robots and other creatures specific
come complete with key points, background to their needs and goals. With this new book,
information, questions for each chapter, and hobbyists and experimenters around the
even final exams. You'll be able to learn more Check out our online bookstore at world will be able to decide what skills they
in less time, evaluate your strengths and www.servomagazine.com for a complete want to feature in a project and then choose
weaknesses, and reinforce your knowledge listing of all the books that are available. the right "building blocks" to create the ideal
and confidence. $19.95 results. $31.95
SERVO 01.2005 59
BrainMatrix.qxd 12/7/2004 4:43 PM Page 60
lathes
Ta Spin B ape
C
il
Sw
ar
Sp dle ore
D C ed
in
ai
C
ria
ist e
in
g
om Tr
n
ge Tra we )
an nt (in)
dl
ov
Sp
Sp
e T rou )
po ave
ce er
C ve en
er
in
ee
ro l (
un l (
ra
dl
Th (
be s (i
Si
ss in
ve
d,
eT
d in)
ze
M
t n
l(
RP
Sl
Fe )
od
SUPPLIER
(in
id
in
in
gh
ed
M
el
)
)
r
Cummins Industrial Tools Mini Lathe 7 x 12 Variable, 100-2500 7 11.8 2.6 2.2 MT-3 0.78 2.5
www.cumminstools.com
Speedway Series
Homier 7 x 12 Mini Bench 7 x 12 Variable, 0-2500 7 12 2.56 1.38 MT-3 0.75 2.56
www.homier.com Metal Lathe
Jet Equipment & Tools Jet 9 x 20 Lathe 9 x 20 6 speed, 130-2000 8.75 20 5 1.88 MT-3 0.75 1.56
www.jettools.com
MICROLUX 7 x 14
Micromark High-Precision, 7 x 14 Variable, 100-3000 7 14 2.56 2.17 MT-3 0.787 2.13
www.micromark.com Heavy-Duty Lathe
Sherline Model 4000 Lathe 3.5 x 8 Variable, 70-2800 3.5 8 3 1.5” Option MT-1 0.405 1.25
www.sherline.com
Sherline Model 4400 Lathe 3.5 x 17 Variable, 70-2800 3.5 17 4.25 1.5” Option MT-1 0.405 1.25
www.sherline.com
Taig Tools International Micro Lathe II 4x9 6 speed, 525-5200 4.5 9.75 1.75 Option 15 deg 0.343 0.63
www.taigtools.com
60 SERVO 01.2005
BrainMatrix.qxd 12/7/2004 4:44 PM Page 61
by Pete Miles
Upcoming topics include SBCs and H-bridges, sensors, kits, shop tools, and actuators. If you’re a manufacturer of one of these
items, please send your product information to: BrainMatrix@servomagazine.com Disclaimer: Pete Miles and the publishers strive to present the most
accurate data possible in this comparison chart. Neither is responsible for errors or omissions. In the spirit of this information reference, we encourage readers
to check with manufacturers for the latest product specs and pricing before proceeding with a design. In addition, readers should not interpret the printing
order as any form of preference; products may be listed randomly or alphabetically by either company or product name.
Ra
N
um
te
,
D
bi
be
at
ts
Su
r
a
of
pe
En
pp
Li
C
A
C
r
on
st
ly
cr
nt
se
ha
ne
Pr
yp
Po
en
co
nn
ct
Si
ic
tio
w
nd
na
el
e
ze
or
er
n
s
3" Three Jaw Chuck,Tool Post, Live
and Dead Centers, Drill Chuck, Face
MT-2 No 12 to 52 tpi Plate, Steady and Following Rests, 110 250 13 x 30 x 13 90 $399.99
Gear Set, 5 Piece Cutting Tool Set,
Spare Fuse,Wrenches
SERVO 01.2005 61
JanNewProducts.qxd 12/9/2004 9:41 AM Page 62
New Products
New Products
CIRCUIT BOARDS PLATFORMS
62 SERVO 01.2005
JanNewProducts.qxd 12/9/2004 9:42 AM Page 63
New Products
CMUcam2 version and a generic version. The generic version In its more advanced form, software developers can
can be use to mount various robotic components, such as take advantage of RoboEye’s open sourced image trans-
sonar ranging modules, digital cameras, and more. New mission protocol for further decision making and analysis
holes can be easily drilled into the chassis decks to mount on a computer. This is done using an OCX application and
extra sensors, components, or controllers. intercepting a data packet stream that describes pixel
Botster’s dimensions are 5.5” W x 5.5” D x 7.25” H. Fully colors and location. This type of use is similar to the
laden (PDA, microcontroller, batteries, wiring, CMUcam2, popular CMUcam, except that image analysis can be done
and breadboard), the Botster weighs approximately 3.2 lbs. with PC software instead of the BASIC Stamp.
The Botster kit starts at $99.95 and comes in several
configurations of controllers, sensors, and turrets. Parts included in the kit:
For further information, please contact:
1 RoboEye Sensor module
P.O. Box 998
Summerour Braselton, GA 30517 1 RoboEye USB module
Robotics Corp. Tel: 770•314•1577 1 3-pin 10” female/female cable (white, red, black)
Email: sales@roboticsconnection.com
Website: www.roboticsconnection.com 1 Lens and lens holder (black plastic)
Circle #38 on the Reader Service Card.
2 Right-angle aluminum bracket parts
4 4/40 1/4” screws
4 4/40 nuts
2 M2 x 10 screws
SENSORS Note:This part requires a USB cable to interface from this
unit to a PC (not included). This cable can be ordered
from Parallax, Inc., part number 805-00007.
The RoboEye Sensor
P arallax has introduced the
RoboEye Sensor. It pro-
vides both a simple and sophis-
RoboEye PC software and BASIC Stamp source code is
available in the downloads section at www.parallax.com
ticated method of robotics Note: Once you have received your RoboEye, please
vision and control. In its simple pay close attention to the setup process described in the
form, the RoboEye Sensor printed documentation on installation of the USB driver.
sends a 168 x 110 pixel image The setup of the RoboEye Sensor Module and configura-
over a 2.4 GHz wireless band tion works best if done in a particular order.
for display on your PC using For further information, please contact:
the RoboEye software. An additional serial I/O line may be 599 Menlo Dr. #100
used to send control commands or data between the Parallax Rocklin, CA 95765
RoboEye software terminal and a BASIC Stamp. The wire-
Incorporated Tel: 888•512•1024
Email: sales@parallax.com
less data link includes built-in error checking. This device is Website: www.parallax.com
suitable for the Boe-Bot, as well as your own custom robot. Circle #45 on the Reader Service Card.
SERVO 01.2005 63
MrRoboto.qxd 12/8/2004 9:10 AM Page 64
Tap into the sum of all human knowledge and get your questions answered here! From
software algorithms to material selection, Mr. Roboto strives to meet you where you
are — and what more would you expect from a complex service droid?
by
Pete Miles
Vdd 2
1
BASIC
STAMP
2 11 +5V
470 ohm
SERIAL GROUND
13 IN4001
470 ohm
14
Vcc
470 ohm
STAMP I/O PIN
SERVO 01.2005 65
MrRoboto.qxd 12/8/2004 9:15 AM Page 66
Motor Speed
Control
PID Motor
Position
Control
Solutions Cubed
3
Phone 530-891-8045
www.solutions-cubed.com Solutions
Circle #111 on the Reader Service Card.
SERVO 01.2005 67
Robytes.qxd 12/8/2004 8:56 AM Page 68
68 SERVO 01.2005
Robytes.qxd 12/8/2004 8:57 AM Page 69
Robytes
facilities will become a trend as people Martian terrain, allowing a single Mars
are paying more and more attention Rover a far greater ability to explore!
to their living quality,” said Ma Keqin, Who needs wheels, anyway?
Vice General Manager of Gree New
Technology Institute Company.
Can they make a robot that
will clean up the poisonous fumes
Robot Cleans Up the Past
emanating from my laundry pile?
SERVO 01.2005 69
RoboResources.qxd 12/8/2004 8:58 AM Page 70
Robotics Resources:
BY GORDON McCOMB
ou’d think that — with the vast a lot of time “surfing” the Internet; budgets to spend and the search
Y informational resources of the
Internet — printed books and maga-
there are better ways! In this column,
I’ll look at several tools you can use to
results can be both misleading and
unproductive.
zines would by now be obsolete. That find information on the Internet. Some A few search engines are different.
hasn’t happened for a number of of it may seem obvious, but there are At the top of the list are Yahoo! and
reasons. On the top of the reasons list still some tricks to make your research Google. Both are different in that they
is a simple matter of numbers: the more relevant. strive to deliver quality results first and
Internet has grown too big for itself profits second (though making money
and the best information is getting Search Engines — is a key aim for both services). For
hard to find. several years running, Google has been
Search engines like AltaVista, The Big, the Bad, and the champ among search engines —
Google, and Yahoo! provide a window the Ugly boasting a clean, uncluttered interface
to the Internet world, but they’ve lost and text-only ads.
some of their effectiveness because of The basic tool for finding things However, because of Google’s
the sheer volume of websites and on the Internet is the search engine — popularity, it has been the subject of
pages. You must choose search terms a web-based program that collects intense scrutiny by webmasters seeking
carefully or else you’ll be swimming in data about other pages. Search to “game the system” — they figure out
a sea of worthless links. engines catalog websites, assigning how Google ranks pages so that
Careful exploitation of the “keywords” to them so you can locate their sites appear at the top of the
Internet’s resources can be rewarding what you want among the millions of list. It’s not uncommon for many
on many levels. With the Internet, pages available. The trouble is, most searches to result in nothing more than
you can find almost any piece of search engines on the Internet are websites with links to other websites —
information, part, or supplier, but rubbish. They’ve become nothing particularly auctions on eBay and
knowing how to look is as important as more than cheap advertising vehicles books on Amazon.
knowing where to look. You can waste for the companies with the largest These searches are commonplace
70 SERVO 01.2005
RoboResources.qxd 12/8/2004 9:01 AM Page 71
ROBOTICS RESOURCES
because both Amazon and eBay offer
referral fees for attracting customers. Trimming Web Page Fat
The websites are set up to simply refer So-called meta tags — text embedded for trying other tricks — like hiding text by
visitors to other places. As a business, in a web page, but not visible to the giving it the same color as the back-
they flourish when they appear first in user — used to be a popular way for ground — search engines don’t catch it
the search results; therefore, the web- webmasters to describe what their site all. This is why you sometimes click on a
masters of these sites do everything was all about. Trouble is, too many link from a search result, only to see a
they can to maintain a high ranking. people abused the feature, so many page that has nothing to do with what
I’m not against this as a business — search engines ignore these meta tags. you were looking for. Odds are, they’ll
everyone has a right to earn an Most search engines nowadays look only try to direct you to a pornography site or
income. for text that is visibly displayed. someone selling drugs to combat male
However, sales referral sites can
Though webmasters can be penalized impotency. Oh, the tricks they play!
significantly slow down research when
that’s your aim.
Knowing this, you can more readily in a search, you narrow down the
Search, but Search search for companies, products, or possible results. It’s better to do several
Wisely information by using search terms that small searches than one big one. For
are most likely to appear in the title of example, instead of searching on
All search engines have a text box web pages. Those web page creators robotics — and the eight million pages
where you enter a search term (called that use undisrupted titles or leave you get as a result — try “robotics kits”
a keyword) to find the information you them blank will be ranked much lower or “robotics schools” or whatever your
want. The keyword (or keywords) you in the search results. That’s too bad interest is.
use greatly influence the relevancy for them. There’s no reason to limit yourself
and effectiveness of your searches. to just two keywords. Try three, four, or
Enter “robotics” into the Google Using Multiple Search more. The more keywords you use, the
search bar and you’ll get something Terms narrower your search will be. If you
on the order of eight million web find the search is too narrow and you
pages! As you can imagine, robotics is One of the best ways to insure don’t get any results, try removing one
a popular field, but using a common quality search results is to use multiple or two of the keywords and searching
search phrase such as this will get you search terms. By using multiple terms again.
nowhere, fast.
Fortunately, search engines FIGURE 1. Google.com provides the Big Picture. Use its features carefully to
provide a number of ways to find what you need.
narrow your search so that you
have a greater chance of finding
what you want. The following tips
and observations specifically apply
to Google, but they work on many
other search engines, as well.
Like most search engines,
Google uses keywords to match
your search phrase with the
content of a web page. Keywords
can be contained in the title or the
text of the page. How Google
ranks the relevancy of the
keywords it finds on pages is a
closely guarded secret, but —
through observation — it’s pretty
clear that Google tends to favor
sites where the keyword(s) you’re
searching for appear in the title of
the page. Therefore, if a page says
“ Robotics Stinks,” it will likely be
ranked highly among pages on
robots, simply because the word
“robotics” is in the title.
SERVO 01.2005 71
RoboResources.qxd 12/8/2004 9:03 AM Page 72
ROBOTICS RESOURCES
known only to Google’s program-
mers) — searching for “robots
mars” (no “of”) will yield some-
what different results. Go figure!
There are some more
advanced tricks to combining
keywords that are detailed below.
Set Phasers to
Ignore
You can tell the search engine
to ignore keywords if they don’t
appear in the title, thereby limiting
the search to only words that
appear in the titles of pages. You
do this with the intitle modifier (or
its close cousin, allintitle). Use:
intitle:robotics
robotics -us
ROBOTICS RESOURCES
contain “us robotics” as a complete robot + about or characters.
phrase are omitted. Not good (space between + and However, the search engine allows
It’s often handy to search for about) you to construct phrases to look for
multiple keywords, such as “robotics multiple forms of words by using the
and vision.” With few exceptions, No Wildcards, but ... OR search modifier.
Google does not use Boolean searches
— “robotics AND vision,” for example — Many web search engines — +robotics eye OR eyes
like some other search engines. Google included — don’t support wild-
Google’s syntax is a lot easier, yet isn’t cards. Wildcards are special characters Note OR in capitals. Google
limited. (like ? and *) that denote any character searches are not case sensitive, but you
+robotics +vision
Newsgroups — Information Beyond the Web
Finds pages with both of the word Newsgroups were born in the days portion of your web browser to sepa-
forms long before the Internet became a rately log into these private newsgroup
global marketplace. A newsgroup is a servers; they are not part of the public
robotics vision discussion group or bulletin board for newsgroups provided by your ISP.
Same as above posting and reading messages. Unlike
chat, newsgroups are not real time; you Manners and Etiquette in Newsgroups
“robotics vision” don’t directly communicate with others Newsgroups can be a horrendous
Finds pages with the specific phrase while everyone is online. Newsgroups — sink of time and energy. Take my advice
robotics vision. which are part of the Internet some- — avoid using them as a soapbox
times referred to as Usenet — can be and avoid getting involved in a heated
Except for the whole phrase excellent sources of information and discussion. People say things in a news-
“robotics vision,” the keywords in a feedback. group that they’d never say in person,
multiple keyword search do not have to As newsgroups are the result of the simply because folks are protected
appear next to each other on the web early Internet, their structure follows sitting behind a computer screen.
pages. something of a gear head’s design of the
That is, robotics can appear at the world and some aspects of them may be Here are some other tips:
beginning of a paragraph and vision confusing and cryptic. However, it’s not
later in the paragraph. That said, complicated once you learn your way • If you include your Email, use a “throw-
Google appears to give precedence to around. away” Email account that you can close
those pages where the keywords are should the spam (unsolicited commer-
found closer together. What’s a Newsgroup? cial mail) get too abundant.
Note the plus (+) character in one First and foremost is that news-
of the examples. Google automatically groups are divided into two main forms: • If you read a message that angers you,
ignores very common words and does public and private. Public newsgroups don’t reply immediately. Flag it and
not include them in the results. Adding are open to anyone and, most likely, return to it a day later. If you still want to
a + character to the word ensures that your Internet service provider (ISP) main- reply, don’t add to any possible “flame
Google considers it in your search. tains computers just for the purpose of war.” They consume way too much time.
While both robotics and vision are not storing newsgroup messages. Your ISP’s
common words and will not be computers are connected to all the • Unless you are an adult, don’t reveal
ignored, it’s a good practice to include other public newsgroup computers your age. If you’re old enough to
the + character whenever you want to around the globe and they constantly read this column, you’re old enough to
ensure the word is considered in the
trade messages back and forth. The end understand why.
search.
result is that — even though you may
When using the + character,
“connect” to a newsgroup via your local • Sexual harassment is still a problem,
be sure to add a space before it and
ISP — you are reading the messages of particularly in public newsgroups where
to type the keyword immediately
others worldwide; if you post a message “joy riders” and “trolls” only stick around
following:
of your own, it will circulate around the to cause trouble. So, if you’re female, I
globe within a few hours. suggest you use a male name for your
robot +about
Private newsgroups are set up by login. Obviously, this isn’t a huge
Good
companies or organizations to support problem in groups frequented mostly by
robot+about their products or agendas. They may or women, but harassment is known to be a
Not good (no space between + and may not be open to the public. In most bigger issue in male-dominated interest
either word) cases, you must use the newsreader groups.
SERVO 01.2005 73
RoboResources.qxd 12/8/2004 9:06 AM Page 74
ROBOTICS RESOURCES
simple way of finding pages when
you want to look for multiple word
forms — robotics or robot, for
instance — is to perform separate
searches.
For example, the first search
below looks for robotics with eye
or eyes. The second for robot with
eye or eyes:
Additional
Advanced Searches
Google (and other search
engines) supports an Advanced
Search page where you can specify
a number of special qualifiers,
including limiting the found pages
to a given language or to those
that have been updated within a
certain period of time. Similarly,
FIGURE 4. Yahoo.com is becoming an alternate favorite to Google with deep you can also look for just HTML
search results and lots of web pages. web pages, Adobe Acrobat PDF
files, or many other common file
must capitalize OR in order to use it as those pages with either eye or eyes. types.
a search modifier. This phrase looks for Some searches will require a When using Google, there are
all pages with robotics, then matches couple of different alternatives. One several handy search tricks you’ll want
to know about. Be sure to read
FIGURE 5. Teoma.com is the choice of many academic researchers — a good thing to the Help pages on the Google site
know for researching your next project. for more information. If you like a
different search engine better, be
sure to read up on using its
advanced features in the Help or
FAQ pages.
Reversing the
Order of Keywords
Search engines often rank the
relevance of pages from the order
of the keywords in your search
phrase. You get about the same
pages no matter what order you
use, but the pages that appear at
the beginning of the list are altered
by changing the keyword order. For
example:
robots mars
Returns pages that favor robots.
mars robots
Returns pages that favor Mars, but
also contain the word robots.
74 SERVO 01.2005
RoboResources.qxd 12/8/2004 9:08 AM Page 75
ROBOTICS RESOURCES
More Than Just AltaVista; my favorite is Google, so they are tuned to address a more
we’ll talk about that first. To translate a specific market, like shopping or non-
Web Pages web page, go to www.google.com US searches.
/language_tools and enter the full
The Google search engine is not URL, including the portion of the About — www.about.com
limited to just web pages. You can also web page you want to view, in the AltaVista — www.altavista.com
find images, Usenet newsgroups, appropriate text box. AOL — search.aol.com
news, shopping pages, and more. Select the “from” and “to” Ask Jeeves — www.ask.com
languages, such as Spanish to English Buyer’s Index — www.buyersindex.
• The Groups search lets you sift or French to German. The translation com (mail order shopping search engine)
through years of archives of news- takes anywhere from a few seconds to Direct Hit/Teoma — www.directhit.com
group messages. over a minute, depending on the Dog Pile — search.dogpile.com
length of the page. Euroseek — www.euroseek.com
• The Directory search provides web Note that only normal text is trans- Hotbot — www.hotbot.com
links to submitted and approved sites. lated. Text in a graphic image is not Infospace — www.infospace.com
Some of these may be paid advertise- translated and is shown in the original LookSmart — www.looksmart.com
ments; nevertheless, it’s a good way of language. Lycos — www.lycos.com
locating major suppliers. AltaVista’s similar offering is MSN — www.msn.com
available at babelfish.altavista.com Public Internet Library — www.ipl.org
• The Catalogs feature lets you search It works in a similar fashion to Google’s Search Hippo — www.searchhippo.
hundreds of mail order catalogs, translation page and offers additional com
including many of interest to robot languages, such as Korean, Russian, Worldpages — www.worldpages.com
builders. Be sure to try this one! and Chinese. Yahoo! — www.yahoo.com SV
• The University search lets you limit Other Search Engines Author Bio
searches to the websites of any of a
couple hundred universities. With this Of course, there are other search Gordon McComb is the author
tool, you can look up relevant research engines on the web — some good and of several best sellers. In addition, he
data posted by professors, post-grads, some terrible. Here is a listing of some operates a small manufacturing
and students at the Massachusetts additional general-purpose search company dedicated to low cost
Institute of Technology, Carnegie- engines. amateur robotics at www.budget
Mellon, and several other schools Some of these are “powered by robotics.com He can also be
that are known for their robotics Google,” meaning that they use reached at robots@robotoid.com
departments. Google’s database of pages. Typically,
SERVO 01.2005 75
TwinTweaks.qxd 12/8/2004 9:19 AM Page 76
NEW !
UMN
COL
THIS MONTH:
Attack of
the Monster
Robot Dog!
H
ello, SERVO readers! We’re Evan Our robot building moved up to followers (but, unfortunately, not partici-
and Bryce Woolley. You may recall the next level when — at the end of pants) in the DARPA Grand Challenge
our names from the series of arti- our middle school years — we acquired and Tetsujin competitions. Through
cles on Team 1079 and the FIRST a CAG (California Association for these endeavors, we have met such engi-
Frenzy experience. Why are we back the Gifted) grant for $1,000.00 to neering greats as Dave Lavery and Dean
again, you ask? Well, it is not for FIRST. jumpstart an independent learning Kamen and have listened to people like
Although FIRST has been a significant endeavor involving robotics — combat Tony Tether (the Director of DARPA) and
experience in our budding engineering robotics, to be exact. Red Whitaker (a robotics genius from
careers, we actually have quite an We had watched the robotic com- Carnegie-Mellon University) in person.
impressive background. bat shows on television and thought it To share our hobby with other
We began at a very early age by would be fun to participate ourselves. students, we started the Robotics Club
playing with Z-bots (little plastic robot So, we built 60 and 30 pound robots at our high school in our freshman
toys). Eventually, we graduated to for the BotBash competition. (They are year. As you already know, we are
LEGO Mindstorms robots, which we not vapor bots; they have competed actively involved in FIRST, in which we
have used in various events, including quite successfully.) have participated in for over two years.
high school science competitions. More recently, we have been devout We have been apprentices at the Palo
Alto Research Center (PARC) through
The pre-hack robot dog has Can RoboSapien do this? IEA (the Institute for Educational
amazing flexibility! Advancement), where we worked
on modular snake robots for urban
search and rescue with professional
engineering mentors (for more on
PARC, see the August, 2004 issue of
SERVO Magazine). The list goes on ...
In short, we have some credibility.
What this column will do is detail
our modifications to certain robotic
products. These modifications will have
a connection to a larger concept in
robotics. It is just for fun, but you just
might learn something in the process!
This month, we’ll study the
76 SERVO 01.2005
TwinTweaks.qxd 12/8/2004 9:21 AM Page 77
Final Product
With these modifications
completed, all that was left
was some programming. In
78 SERVO 01.2005
TwinTweaks.qxd 12/8/2004 9:25 AM Page 79
its own way, this robot Tyrannosaurus engineers who may call the
rex dog is representative of robotics tail a third leg; two-legged
projects in general in that a knowledge humanoid walking is, after
of all aspects of the project is all, the holy grail of robotics.)
necessary. Even so, what balances
Robotics is perhaps the most while standing may not bal-
cross-disciplinary field in all of engi- ance while walking, as the first
neering and it demands engineers that tests of the robot dogasaurus
know their ways around both hard- illustrated. Walking is a com-
ware and software. The programming plex problem and all of the
in this hack was considerably simplified factors must be considered at
by working with only two legs, but once for an effective solution.
that is not to say that making the The second consideration
Tyrannosaurus rex dog walk on two is control. The Tyrannosaurus
legs was easy. rex dog hack was done
The first successful gait we had without any sensory feedback
was a kind of shuffling, jerky walk. It — just pure mechanics. This
wasn’t graceful, but it worked. After means that we were The Joinmax Robot Dog is rather easy
some more effort, we were able to programming blind; we didn’t to assemble and disassemble.
improve upon this gait to make the know how little changes
dog take distinct steps, which we might affect the final gait. need to be coordinated, so every
consider to be the requirement that Also, the dog could not adjust degree of freedom adds a layer of
makes it a true walker. It still wasn’t itself; it had only the program to rely complexity.
graceful, but it most definitely on. It still walked, but with a kind of Our hack of the Tyrannosaurus rex
walked. shuffling, jerky gait. dog shows that making a walking
The robot dog was no longer a High dollar walkers get feedback robot can be relatively easy, but its
dog — it was a Tyrannosaurus rex. from every joint so as to fine-tune shortcomings demonstrate that the
When it is placed next to a toy weight distribution on the fly. These task of walking on two legs is difficult
Tyrannosaurus rex, one can see that robots have impressive gaits that to perfect, no matter how easy the
the resemblance is, indeed, striking. approximate human motion to an RoboSapien makes it seem.
almost unnerving degree.
Significance Another aspect of control is the Final Thoughts
number of joints that are being worked
The Tyrannosaurus rex dog is not with. The RoboSapien essentially only That was fun, wasn’t it? We hope
simply the belated synthesis of fond has one powered joint per leg at the that we have inspired you to try
childhood memories (we played with hip — the knees move reflexively. This experiments of your own with walking
dinosaurs before Z-bots), it also has makes for simpler control, since fewer robots (especially two-legged walkers).
relevance to some issues in the greater joints are in play. Now, you can see how simple things —
world of robotics. The Tyrannosaurus rex dog had like a robo-dog and old Godzilla
The trials and tribulations of the three joints per leg, making control a parts — can create an engineering
Tyrannosaurus rex dog illustrate the more complex proposition for us. microcosm for more significant issues
difficulties in making an effective More joints mean that more motions in the world of robotics. SV
two-legged walking robot. The
Tyrannosaurus rex dog hack may have
been simple and it may have worked,
Special Thanks
but its walking motion did not nearly SERVO Magazine would like to for everything from joints and servos
have the grace of other walkers, like thank E-Clec-Tech (www.e-clec-tech. to hexapods and robotic arms.
Asimo or even RoboSapien. Simply put,
com) for their generous donation of If you are a manufacturer or
walking is harder than it looks.
Walking takes balance and control. the Joinmax Robot Dog for this vendor with a robot or kit that you
In the case of the robot dog, balance month’s “Twin Tweaks” column. Take would like to see hacked beyond all
was the easy part — at least for just advantage of their limited-time recognition, contact us at editor@
standing up. To get anything to balance, special — exclusively for SERVO servomagazine.com The column is
all you really have to do is give it big subscribers — on the Joinmax Robot bi-monthly, so we’ll have plenty of
feet and maybe a few extra supports, Dog at E-Clec-Tech. Also, browse their time to plot the “evolution” of your
like a tail. (This may, however, be selection of other robot kits and parts product!
frowned upon by the more strict
SERVO 01.2005 79
Appetizer.qxd 12/8/2004 9:51 AM Page 80
n October 2004, I attended They recently confounded portion of the test. By the time 12-year
I RoboNexus (www.robonexus.com),
the first commercial US show for
experts by reversing numerous
negative social trends long associated
old Millennials reach college, they’re
likely to reverse the anti-science and
consumer and service robots. While I with youth. Among teens today, engineering trends.
was prepared to see a lot of robots, crime is at the lowest rate in 30 years
I was stunned by another kind of and out-of-wedlock births are at the A “Robotic”
participant — the literally thousands of lowest rates ever recorded. Drug use
kids who attended the Expo, usually is down to levels comparable to the Generation Turns
with their parents. early 1960s. You wouldn’t know it to the Real
In retrospect, I shouldn’t have from the media, but Millennials seek
been surprised. These kids are part the social norm — and are even a bit Why should this new generation
of the Millennial or Echo Boom more straight arrow, compared to be specifically interested in robots? The
generation, recently featured on the older groups. answer lies in patterns of popular
CBS program 60 Minutes and Most importantly, this new culture. Typically, waves of new
described by generational experts generation is showing renewed interest technology in the US last 18-25 years
William Strauss and Neil Howe of in science and technology. While and are closely associated with the rise
Lifecourse Associates1 as the “next interest in tech-related fields has been of a new generation.
greatest generation.” They’re the post declining for years at colleges, SAT At the end of the era, a new
GenY group2, product of a second scores among younger Millennials are generation appears and replaces the
baby boom, aged 0-20 years old. going up — especially in the math former one’s youth culture. During this
Tes tSSAT
scores
AT Scores
Scores of
beg in aound
of College-B
s low
College-Bound
craw l
Seniors,
Se ni ors,
The “Echo Boom” upward 1975-2001
as oldest
1975-2001 Millennials
(1975=100)
(1975=100)
Total U.S. Births, in Millions 1.04
1.04
reach teen years around 1996
4.5 1.03
1.03
Boomers Millenials
"Echo Boom"
1.02
1.02
Gen-X
S AT--Math Only
1.01 SA T--Math Only
4.0 1.01
Mi llions of B irths
SA T--Combined
SA T--Combined
1.00 Score
1.00 Score
0.99
3.5 Gen-Y 0.99
0.98
0.98
0.97
3.0 0.97
1950 1955 1960 1965 1970 1975 1980 1985 1990 1995 0.96
0.961975
Source: U.S. Bureau of the Census (2000) 1975 1977 19801981
1979 1985
19831985 1987 19901991
1989 1995
19931995 1997 20002001
1999 Source: Colleg e Board (2001)
Source: Colleg e Board (2001)
80 SERVO 01.2005
Appetizer.qxd 12/8/2004 9:52 AM Page 81
kids’ knowledge of the RoboNexus growing up, Millennials will have little
Movie Link exhibits — until they found out they use for the Frankenstein fantasies of
were building robots in school. earlier generations. Instead of running
See the RoboNexus movie! – This from the Terminator, they’ve said hello
hyperlink will take you to a short
RoboNexus movie by the author,
How the New to Asimo.
By the time this trend is underway
featuring both robots and their Generation Will in the next decade, PCs, the Internet,
Millennial friends. Affect the Future of and wireless gadgets will seem like
http://www.plyojump.com/ Robotics electrical wall sockets do today —
movies/tradeshows/robonexus/ essential, but hardly the breaking wave
2004/robonexus_plyojump.wmv How will Millennials affect the rise of tech. Robots will be the hip, “in,”
of the robots? Here’s a recent quote and young technology — just like the
(Windows Media File)
from Toshitada Doi, Vice President of PC and Internet were in other eras.
Sony Corporation: Millennials will want real robots — the
literally crawling with student-built virtual robots in games and movies that
robots. “The 90s was the era of the PC entertained earlier generations just
A few weeks later, on the other and the Internet. The first decade of won’t cut it.
side of Los Angeles, Santa Monica the 21st century will be dominated by So, have at those robots! If you’re
College (a two-year community robots.” a part of the Millennial generation,
college regarded as a “finishing be proud that generational experts
school” for students planning to The oldest Millennials are just expect great things from you. If you’re
attend universities) announced it will graduating from college and the main from an older generation, get busy
begin teaching Mobile Robotics in wave of their generation will become mentoring kids with your robotic
spring 20055. Both schools have young adults 2009-2015. As these knowledge and get ready to see an
recognized the generational trend and kids move out of school and into their extraordinary new generation bring on
are catering to an increasingly robot- first jobs, they will remember playing the robotic age. SV
aware youth culture. with robotic toys and building robots
Evidence that Millennials know in school. It is only natural that they
robots better than the “next up” gener- will embrace robotics as the next big
Author Bio
ation was evident in audience ages at thing. Dr. Pete Markiewicz has a degree
RoboNexus. There will be two aspects to the in Biology, but was co-founder of one
While the 25er Internet junkies Millennial interest in robotics. One
of the first commercial websites in
and 30ish video game-meisters will be a boom in consumer robotics
weren’t entirely absent, they were low — Millennials will see it as natural and early 1994. He currently teaches
in number compared to the 8-16 year even inevitable that a robot mower programming at the Art Institute of
olds swarming the booths. Hardly a will replace a manual one, while California, Los Angeles. His company
piercing, skateboard, or Avril Lavigne older generations may resist (until — Indiespace (www.indiespace.com)
getup was to be seen. Instead, necessity forces robotic elder care — specializes in consulting in new
RoboNexus featured Boomers and on them). technology from a generational per-
Xers as mentors accompanying their Even more importantly, Millennials spective. His website documenting
Millennial kids. will also shift the pop culture mindset the rise of the robots may be found
I suspect more than a few of regarding robots. Having favorable
at www.plyojump.com
these parents were stunned by their experiences with real robots while
Advertiser Index
All Electronics Corp. ....................................37 Jameco ..........................................................83 Pololu Robotics & Electronics ....................47
APEC 2005/MicroMouse Contest ..............66 Lemon Studios .............................................45 ROBOlympics ...............................................63
Cleveland Institute of Electronics ...............13
Lynxmotion, Inc. ...........................................69 Rogue Robotics ............................................21
CrustCrawler ...................................................7
Net Media .......................................................2 Solutions Cubed ...........................................67
Cyberbotics ..................................................27
NUBOTICS .....................................................37 Sozbots..........................................................49
Enigma Industries ........................................37
Parallax, Inc. ...................................Back Cover Technological Arts .......................................28
Garage Technologies, Inc. ...........................37
HiTec .............................................................29 PCB123/PCBexpress ......................................3 Vantec ...........................................................35
Hobby Engineering .....................................75 PCB Fab Express ...........................................33 Zagros Robotics ...........................................37
82 SERVO 01.2005
CoverInside.qxd 12/9/2004 3:33 PM Page 2
SERVO 08.2004 83
Circle #32 on the Reader Service Card.
Cover.qxd 12/9/2004 3:54 PM Page 84
Vol. 3 No. 1
SERVO MAGAZINE
HACK-A-SAPIEN WINNERS
January 2005
0 74470 58285 4
Circle #106 on the Reader Service Card.