Professional Documents
Culture Documents
ServoMagazine 05-2007
ServoMagazine 05-2007
$7.00
4
CANADA
74470 58285
$5.50
U.S.
0
Vol. 5 No. 5 SERVO MAGAZINE GRIPPER • SPIDER CRABS • ULTRASONIC MICROSENSORS • THE ULTIMATE REMOTE CONTROL May 2007
Page 84
12:07 AM
4/6/2007
Cover.qxd
CoverInside.qxd 4/5/2007 9:08 AM Page 2
robotic kits
Robotic Kits Components...
chassis
...there’s something for everyone!
Robotic kits help you and your child to experience and learn about perception and
control using a variety of sensors and actuators. Challenge yourself with Jameco’s
servos selection of fun and interactive kits! You or your child can assemble the kits and
then enjoy endless hours of discovery.
Engineers,
.
We’ve Got
It All!
motors
I-800-374-576
4
WWW.ROBO
TSTORE.CO M
CATALOG I62
test equipment
WWW.ROBOTSTORE.COM/SRD
I-800-374-5764 Call for your free catalog today!
software
books
Full Page.qxd 4/5/2007 9:15 AM Page 3
SERVO 05.2007 3
TOC May07.qxd 4/5/2007 4:08 PM Page 4
58 Ultra-Sonic Microsensor
Comparison Project ENTER WITH CAUTION!
by Kyle Haston 28 The Combat Zone
This ECE undergraduate shares the
results of his class project.
4 SERVO 05.2007
TOC May07.qxd 4/5/2007 4:08 PM Page 5
SUMO — PAGE 64
Departments
06 Mind/Iron
07 Bio-Feedback
24 Events Calendar
26 New Products
27 Robotics Showcase
43 Robo-Links
62 SERVO Bookstore
82 Advertiser’s Index
ULTIMATE CONTROLLER — PAGE 51
SERVO 05.2007 5
Mind-FeedMay07.qxd 4/5/2007 9:53 PM Page 6
Published Monthly By
T & L Publications, Inc.
430 Princeland Court
Corona, CA 92879-1300
(951) 371-8497
FAX (951) 371-3052
Product Order Line 1-800-783-4624
www.servomagazine.com
Mind / Iron Subscriptions
Inside US 1-877-525-2539
by Camp Peavy Outside US 1-818-487-4545
P.O. Box 15277
North Hollywood, CA 91615
Do you need an android? Maybe automated conveyance system PUBLISHER
not today, but someday you might. designed to look and act like a Larry Lemieux
Do you need a car? A cell phone? person. Not necessarily intelligent, but publisher@servomagazine.com
Internet access? Of course you do, infinitely trainable and therefore
but until recently the latter were useful. Besides, “intelligence” — like ASSOCIATE PUBLISHER/
VP OF SALES/MARKETING
luxuries or not even available. In the beauty — is in the eye of the beholder. Robin Lemieux
1900’s, you did not even need an With the current pace of display@servomagazine.com
automobile; horse-and-buggy was the technology propelled by the Internet,
standard. Then all of a sudden, you it is inevitable humanoid robots will CONTRIBUTING EDITORS
needed a car. If you were to describe become commonplace in factories, Jeff Eckert Tom Carroll
Gordon McComb David Geer
to someone in the 1950’s some of the warehouses, offices, and nursing Pete Miles R. Steven Rainwater
products of today, they’d think you homes (at least the one in which I Kyle Haston Bryan Bergeron
were crazy ... except they would plan on staying). They will do for David Calkins Kevin Berry
wonder what happened to the flying physical objects and services what Michael Simpson Robin Hewitt
cars and robots. Functional universal computers and the Internet have done Ralph Lorenz Steven Kirk Nelson
Camp Peavy Jeffrey Scholz
robots and, in particular, androids for information and communications; Chris Odom Brian Benson
have been desirable throughout there will be huge productivity gains. Evan Woolley Bryce Woolley
history; real robots like this will be the In time, the robotics industry will Chad New Heather Dewey-Hagborg
culmination of the computer dwarf the computer industry as
revolution and, believe it or not, we service jobs are eliminated and
CIRCULATION DIRECTOR
might even have flying cars. robot operators and technicians Tracy Kerley
Why do we need robots? We proliferate in the same way subscribe@servomagazine.com
need robots to bring us stuff, to put bookkeepers and used-car salesmen
stuff back, to carry stuff, and to do became programmers and computer WEB CONTENT/STORE
the things that we do not want to do technicians. Along the way, there will Michael Kaudze
sales@servomagazine.com
like laundry, dishes, trash and garbage be hundreds of must-have toys,
disposal, hedges, farming, security, gadgets, thing-a-ma-bobs, and PRODUCTION/GRAPHICS
and even baby-sitting. Sure, we appliances but you can bet the Shannon Lemieux
have washers, dryers, and trash culmination of all of these activities
compactors and they are robots to a will be a human-form slave-machine. ADMINISTRATIVE ASSISTANT
Debbie Stauffacher
degree, but I’m talking about After the initial growth phase, you will
eliminating the human factor; even have to choose between the Copyright 2007 by
providing the physical interface upscale Apple® analog or the T & L Publications, Inc.
between the dryer to the closet and standard “PC” version; it’s a vicious All Rights Reserved
from the dirty clothes hamper to the cycle. All advertising is subject to publisher’s approval.
washer/dryer. For dishes, the process You will be hard-pressed to resist We are not responsible for mistakes, misprints,
would be from the cupboard to the the temptation to buy one of these or typographical errors. SERVO Magazine
table; from the table to the handy humanoid devices; to be assumes no responsibility for the availability or
dishwasher; and from the dishwasher waited on hand and foot by a tireless condition of advertised items or for the honesty
of the advertiser.The publisher makes no claims
back to the cupboard. Not only will and cheerful servant-machine. The for the legality of any item advertised in SERVO.
this robot be good for bossing humanoid robot will become the This is the sole responsibility of the advertiser.
around, but with voice recognition, ultimate how-did-I-get-along-without- Advertisers and their agencies agree to
synthesis, and access to the web it’ll this device; the ultimate remote indemnify and protect the publisher from any
be a great companion with instant control. Can you imagine actually and all claims, action, or expense arising from
advertising placed in SERVO. Please send all
answers to any question; an having to get up to change channels? editorial correspondence, UPS, overnight mail,
and artwork to: 430 Princeland Court,
Mind/Iron Continued Corona, CA 92879.
6 SERVO 05.2007
Mind-FeedMay07.qxd 4/5/2007 9:57 PM Page 7
HE8EJIFH;<;H>?J;9)0'
.EW 2OBOT 3ERVOS
>_j[Y
Ej^[h8hWdZ
$//63(&,),&$7,216$792/76
7KHUHVXOWVRIDQLQIRUPDOSROOWDNHQUHFHQWO\DWWKH)LUVW
$QQXDO:RUOG'RPLQDWLRQ6\PSRVLXPDUHQRZLQ5RERWV
SUHIHU+LWHFVHUYRVRYHURWKHUVHUYREUDQGV7KH\NQRZWKHZLGH
VHOHFWLRQRI+LWHFDQDORJDQGGLJLWDOVHUYRVSURYLGHWKHPZLWKWKHSRZHUDQGGHSHQG
DELOLW\QHHGHGWRHYHQWXDOO\WDNHRYHUWKH:RUOG0DNH\RXUURERWKDSS\XVH+LWHFVHUYRV
3DLQH6WUHHW_3RZD\_&DOLIRUQLD___ZZZKLWHFUFGFRP
SERVO 05.2007 7
Robytes.qxd 4/3/2007 9:40 AM Page 8
8 SERVO 05.2007
Robytes.qxd 4/3/2007 9:40 AM Page 9
Robytes Industrial
for long-distance tracking. The project
Strength
was funded by the US Air Force Office
of Scientific Research and (as usual)
DARPA.
Motor Control
And Hunting for Birds
for All
AX2550
AX2850
AX1500
Shadow Robot Company (London, UK) and its technical director, Rich Walker,
have a lot of experience designing, building, demonstrating, and performing
(performance art, that is) robots. Shadow is a reliable source of research robotics.
Researchers count on Shadow’s equipment, like the Dexterous Hand — arguably
the most capable robot hand in the world — and the air-pumped robot muscles.
10 SERVO 05.2007
Geerhead.qxd 4/4/2007 9:41 AM Page 11
GEERHEAD
SERVO 05.2007 11
Geerhead.qxd 4/4/2007 9:42 AM Page 12
GEERHEAD
12 SERVO 05.2007
Full Page.qxd 4/5/2007 9:20 AM Page 13
MrRoboto.qxd 4/5/2007 9:43 AM Page 14
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
This is Part 2 of the answer to a but they won’t answer the phone or It turns out that casting a copy of
question from the April ‘07 column. I’ve emails and I fear they’re out of a gear is a fairly straightforward
repeated the question for reference. business or at least out of town!! process. All you need is the gear that
Here is the site: http://nelnick.com// you want to make a casting of, a mold,
Q . I am an electronics teacher at
the Orleans Career and Tech
Center in Medina, NY. We have
entered the Monroe Community College
SUMOBOT competition for the past
nelnickrobotics/index.php?cPath=
21&osCsid=d5f00cb4eedc88af3ebeb
383ea78f5e4.
So, here’s the question ... where
can I find any Mod 1 compound gears?
and some casting compound. I don’t
have any Mod 1 gears lying around, so
for this demonstration, I will be making
a casting of a #25 plastic sprocket
that I happen to have (see Figure 1).
four years and have done very well. They Or, better yet, how about molding my The procedures will be the same with
have videos from the competition at own? I have old gears or single gears I your gear, or any other part you want
their website at www.monroecc.edu/ could make a mold from! to make.
depts/eng&phy/highschl.htm. Thanks for any info! For the casting materials, I chose
I have run into a brick wall for — Bill Leggett HobbyMold 150 to make the silicone
parts! Specifically, compound gears Medina, NY mold of the gear, and HobbyCast 110 to
that are Mod 1. That is to say that the make a polyurethane casting of the
number of teeth is equal to the diame-
ter in millimeters +1 mm. I have used a
gear that has a 40-to-10 tooth combi-
nation. They have an outer diameter of
41 mm; inner gear is 11 mm. I could
A . Last month, I talked about gear
specification, some places where
you can get gears, using two
smaller combination gears to get the
same gear ratios, and fabricating a
gear. Both of these products can be
obtained from HobbyCast.net, a division
of Freeman Manufacturing & Supply
Company (www.hobbycast.net and
www.freemansupply.com). These
use other combinations, but they must combination gear from two other products are very easy to use, and they
be Mod 1. By the way, LEGO gears and gears. This month, I will be addressing have an excellent video tutorial library
Kelvin ** gears P/N 990174 are Mod how you can cast a copy of one of the showing how to cast many different
1. My usual supplier is NELNICK.COM, gears you already have. types of parts, including CNC machin-
ing plastic molds. They are a one-
Figure 1. #25 plastic sprocket to be casted. Figure 2. HobbyMold 150 and HobbyCast 110 stop shopping place for all of your
molding and casting compounds. casting materials and support.
The HobbyMold 150 is a two-
part silicone rubber with a tensile
strength of 650 psi and a flexible
shore A hardness of 30. The
HobbyCast 110 is also a two-part
urethane compound with a ten-
sile strength of 3,300 psi, with a
rigid shore D hardness of 69.
Figure 2 shows the two pound
kits for both the HobbyMold 150
and the HobbyCast 110.
14 SERVO 05.2007
MrRoboto.qxd 4/5/2007 9:43 AM Page 15
Figure 13. Slowly filling the sprocket’s Figure 14. Completing the mold Figure 15. Bottom view of the clear plastic
bore from one side of the bore. casting process. mold prior to removing the mold frame.
Figure 16. The silicone rubber mold Figure 17. Removing the sprocket Figure 18. Sprocket completely removed
removed from the mold frame. from the mold. from the silicone rubber mold.
16 SERVO 05.2007
MrRoboto.qxd 4/5/2007 10:02 AM Page 17
Figure 24. Cured urethane sprocket Figure 23. Sprocket mold filled with Figure 22. Filling the mold with
in the silicone rubber mold. HobbyCast urethane. the urethane.
Figure 27. Side-by-side comparison of Figure 26. Urethane sprocket Figure 25. Removing the urethane
the new and original sprockets. removed from the mold. sprocket from the mold.
SERVO 05.2007 17
MrRoboto.qxd 4/5/2007 10:39 AM Page 18
Figure 32. Close-up view of the tapped Figure 33. Final sprocket with
Figure 31. Tapping the set screw hole. hole in the side of the sprocket. a #25 roller chain.
Figure 28 shows some post casting The last step is putting the set an X-Acto knife (see Figure 29). A
cleanup work that is needed to smooth screw mounting hole into the number 21 drill is used to drill the tap
out the rough spots created by the urethane sprocket. The clay that was hole in the side of the sprocket using
clay when the original sprocket was used to cover the hole in the original the mark from Figure 29 for alignment
mounted to the base of the mold sprocket can be easily seen in the new (see Figure 30). A #10-32 tap is used
frame. An X-Acto knife will work well casting. A small starter hole is poked to tap the hole for the set screw (see
for carving off the burrs. into the center of the impression with Figure 31). Figure 32 shows a close-up
view of the tapped hole. Note how
smooth the threads are inside the
tapped hole.
Figure 33 shows the final sprocket
with the shaft mounting set screw
installed along with the #25 roller
chain wrapped around it. Prior to using
the sprocket, it should be allowed to
fully cure to obtain maximum strength.
This takes about seven days.
As you can see, casting a sprocket
is a fairly straightforward process.
Once the mold is made, dozens of
parts can be made from the same
mold. These same steps can be used to
cast the gears that you are having a
difficult time finding. If you ever get a
chance to try the casting approach,
send a note to the SERVO Magazine
BIO-Feedback telling us how it went
and what we should be careful
about so that we can all learn from our
collective experiences. SV
18 SERVO 05.2007
HeatherColumn.qxd 4/5/2007 10:06 PM Page 19
DIFFERENT
BITS
THE TRUE
BEGINNER’S
GUIDE TO THE
SPARTAN3E
STARTER KIT The Spartan3E.
by Heather Dewey-Hagborg
Different Bits is a column which looks at the ways in which the traditionally software
oriented domains of Artificial Life and Artificial Intelligence can be transposed to embedded
hardware. From genetic algorithms to heuristics and neural networks, we will be examining
ways of bringing algorithms inspired by biology to electronic circuits.
F
ield Programmable Gate Arrays er and will arrive faster than it will from 1) Coding (behavioral description)
(FPGAs) have recently become Avnet or NuHorizons because they keep 2) Simulation
a hobbyist friendly medium. more parts in stock. However, they will 3) Pin assignment
Offering hundreds of I/O channels, not send you the Xilinx installer CD or 4) Implementation
faster clock speeds, and true parallel documentation, meaning you will have to 5) Programming
processing, they provide an exciting download everything from the web.
alternative to microcontrollers. With With the Xilinx WebPACK develop- Starting a New Project
free development software from Xilinx ment environment running more than
and a Spartan3E starter kit available a gigabyte in size, it might be worth it Our first project will be an AND
from Digilent, Avnet, or NuHorizons, to pay the extra money and avoid the gate which takes input from two switch-
you can get started for less than $200. interminable download if you have a es and turns on an LED. Once you have
Unfortunately, the learning curve is slow Internet connection. If you do the Xilinx WebPACK installed, open ISE
steep and online resources are often purchase from Digilent, you will need and begin a new project by choosing
confusing for beginners. I recently to register and download the Xilinx ISE from the file menu. Getting all the set-
purchased a Spartan3E starter kit from 9.1i WebPACK development environ- tings right for your first project can be a
Digilent and found the process of simply ment online at www.xilinx.com/ise/ bit confusing, so we will walk through it
getting my first LED blinking to be logic_design_prod/webpack.htm. step by step.
tedious. Board specific documentation While you’re at it, grab the The first page of FIGURE 1. New
was scarce, abstract, and sometimes bla- Spartan3E starter kit user Project Wizard.
tantly incorrect. This guide is my attempt guide: http://direct.xilinx.
to remedy this situation for future hobby- com/bvdocs/userguides/
ists interested in learning about FPGAs. ug230.pdf.
This tutorial will walk you through the This document will tell
steps to get you up and running with the you the pin locations of all
Spartan3E. All you need is the kit and a PC the devices on your starter
running Windows XP. Consider this a very board and give a little
thorough “Hello World” for the FPGA. nformation about using
them. It also includes a small
Getting Started section on programming.
The design flow we will
First things first, if you purchase your be following in this article
kit from Digilent, it will be slightly cheap- consists of five steps:
SERVO 05.2007 19
HeatherColumn.qxd 4/5/2007 10:06 PM Page 20
DIFFERENT BITS
FIGURE 3. AND which takes input
INPUT OUTPUT Gate Truth Table. from two onboard
switches and outputs
A B A&B to an onboard LED. In case you are
0 0 0 unfamiliar, a logical AND gate has two
inputs and one output. It outputs logi-
0 1 0 cal low unless both inputs are high, in
which case it outputs a logical high (see
1 0 0 the truth table in Figure 3). Check out
www.kpsec.freeuk.com/gates.htm
1 1 1 for a simple introduction to logic gates.
FIGURE 2. New Double-click on “hello_world.v” in
Source Wizard. the new project “hello_world.v.” On the next page, the sources pane to view your new
wizard will ask you enter “led” as a port name, and code file. It should look like Figure 4.
for a name, choose “hello_world” and change the port direction to output. The words next to // are comments,
a directory of your choice. Select HDL Then add “switches” as a port name, and you can delete them to compact
for Top-Level Source Type. The second leave the direction as input, and click your code. Four lines of code have
page is the most confusing, for Product the checkbox that says “bus.” Enter a 1 been automatically generated for you.
Category choose All, for family choose in the MSB column and leave the 0 in The first states:
Spartan3E. The Device is XC3S500E the LSB column. This specifies how
and the package type is FG320, both many bits wide our I/O ports are. `timescale 1ns / 1ps
of which can be found written on the When you are finished, your form
FPGA chip on your starter board. should look like Figure 2. Click through This line specifies the time units
The speed is -4, the synthesis tool the wizard, and click yes when it asks and precision for measurement of
is XST, the simulator is ISE simulator, you if you would like to create the new delay and time values. Next, it says:
and the preferred language is Verilog. directory for the file. Return to the new
Check the box for Enable Enhanced project wizard and click through until module hello_world(led);
Design Summary and leave the last you are finished.
two boxes for message filtering and A module is like a class or function.
incremental messages unchecked (see Adding Code It has inputs and outputs and can be
Figure 1). On the third page, click the instantiated by other modules. Our first
New Source Button. Now it is time to add some code. module is called “hello_world” and has
On the pop-up menu that appears, We are going to create the simplest a single output, “led.” The following
select Verilog Module and name it possible program — a logical AND gate line specifies that led is a one-bit-wide
output port and two-
bit-wide input port.
output led;
input [1:0] switches;
endmodule
20 SERVO 05.2007
HeatherColumn.qxd 4/5/2007 10:07 PM Page 21
DIFFERENT BITS
line and the endmodule line,
insert the following code:
and
a0(led,switches[0],switch
es[1]);
DIFFERENT BITS
Implementation
This step is easy! Returning to ISE,
click on hello_world.v in the sources
pane and double-click “Implement
Design” in the processes pane. The
FIGURE 7. Package Pin wheels spin and eventually each
Assignment in PACE. design browser the board. Finish your pin assignment category in the expanded menu
and object list by typing “LVTTL” in the I/O Std. field, (Translate, Map, Place, and Route)
on the left. Notice that there are three “SLOW” in the slew field, and “8” in the should have a green checkmark next to
objects in the list: the LED and both DRIVE Str. field. These specifications can it. Don’t worry, this sometimes takes a
switches. This is where we will assign be found for each component in the while even for simple designs like ours.
which pins we want the code to use for Spartan3E starter kit user guide.
our input and output ports. Switch IDs and locations are also Programming
If you look at your starter board (or printed on the board. Enter “L13” and
Figure 6), you will notice that each LED “L14” in the location columns for switch- Finally, we are ready to program the
has an ID printed next to it (LD0-7) and es[0] and switches[1]. These are the FPGA. Unlike microcontrollers, FPGAs do
a location written in parentheses below rightmost switches on the starter board. not have onboard program memory.
it (F12, E12, etc.). Type “F12” in the Loc Their I/O standard is also LVTTL and This means that unless you download
field for the row with the led output their termination is “PULLUP.” When you the program to an external memory
listing. This will be the rightmost LED on are finished, your Design Object List device, the chip will lose the code every
time it powers up. This
section will walk through
both techniques: first
temporary programming
of the FPGA directly via
JTAG using the onboard
USB port, then program-
ming the Platform Flash
PROM and configuring
the FPGA to boot
from it.
On the top of the
starter board, you will
notice three jumpers,
M0, M1, and M2. These
configure the FPGA start-
up mode. Remove the
jumper on M0 and M2
leaving only a jumper on
M1 (see Figure 8). Plug
in the power supply for
22 SERVO 05.2007
HeatherColumn.qxd 4/5/2007 10:08 PM Page 23
DIFFERENT BITS
the board and switch it on.
Then connect a USB cable
between the board and your
PC. Annoyingly, I have found
that every time I plug my board
into my computer, the Windows
new hardware wizard starts up. FIGURE 11. Jumper Settings for
I have to go through all the steps each Platform Flash PROM Configuration.
time or the Xilinx programming applica-
tion cannot see my device. Once (see Figure 11).
the hardware wizard is finished, return Double-click “Generate PROM”
to ISE and double-click “Generate in the processes pane and then
Programming File” in the processes “PROM File Formatter” in the bound-
pane. When the wheel stops spinning ary scan configuration mode pane
and the green checkmark appears, dou- which opens up. Name the file
ble click “Configure Device [iMPACT].” “hello_prom” and set the directory FIGURE 10. Programming Successful!
The iMPACT window opens up and location to your working directory for the When both switches are up, it should turn
offers you some configuration options. project. Click next and check the box to the LED on.
Choose “Configure Devices Using “Auto Select PROM.” Click through the
Boundary-Scan (JTAG).” The software will wizard and it will ask you to start adding Fonte’s “Programmable Logic” column in
immediately try to connect to your board. device files. Click OK and choose the past issues of SERVO for more details).
If it fails to connect, you will need to quit hello_world.bit file. This is the only file you I highly recommend purchasing a
iMPACT, unplug the USB cable, and try a need to add, so select no when it asks if Verilog book if you are new to program-
different port or try going through the you want to add additional device files. mable logic. The language is quite
Windows new hardware wizard again. Click on the icon for xc3s500e and double- different than C and often unintuitive if
Next, iMPACT will ask you to select a click “Generate File” in the Configuration you are coming from a microcontroller
configuration file from a file browser. Operations pane. A message will flash background. You can get a used book;
Choose “hello_world.bit,” the program- up saying “PROM File Generation just make sure it covers the 2001 Verilog
ming file we generated in the last step. Succeeded.” Now click on boundary scan standard. I also recommend picking up a
You may receive an iMPACT warning in the Configuration Modes pane and mating breadboard from Digilent (the
2257; just click OK. You will then be asked right-click on the PROM icon to assign the part number is FX2BB). It snaps right
for configuration files for the xcf04s MCS file you just generated. into the FX2 connector on the starter kit
platform Flash and the xc2c64a CPLD; just When it asks you to select which board, making all of the I/O available for
click bypass for both. Your screen should PROM you are using, choose xcf04s. prototyping. Have fun! SV
now display the setup you see in Figure 9. Right-click on the icon of the PROM
Click on the icon for xc3s500e
representing the FPGA, then right click
again and choose “Program.” Click OK
in the properties dialog that opens,
RESOURCES
and select “Program ...”. Click OK on making sure the checkbox for “Load For more details on the topics covered here
plus related information, check out these
the page that pops up without chang- FPGA” is checked. A progress dialog resources:
ing anything. A progress window will opens, followed by a “Programming
appear followed by a message stating Succeeded” message on the screen. Spartan3E starter kit user guide: http://direc
t.xilinx.com/bvdocs/userguides/ug230.pdf
that programming has succeeded. You That’s it! Now you can turn the
did it! The chip is finally programmed. board on or off as much as you please Spartan3E datasheet: http://direct.xilinx.
Slide switch 0 and switch 1 on the and the AND gate will persist. com/bvdocs/publications/ds312.pdf
starter board up and the LED will turn Application guides: www.origin.xilinx.com/
on. Slide one or the other down and Wrap-Up xlnx/xweb/xil_publications_display.jsp?
iLanguageID=1&category=1211393&sGlob
the LED turns off (see Figure 10).
alNavPick=&sSecondaryNavPick=
If you turn the power off and then This concludes our introduction to
turn it back on, the program will disap- the Spartan3E starter kit. Now that you Digilent, Inc., supplier of all kinds of starter
pear from the FPGA. To give our AND understand how the Xilinx settings and kits and accessories: www.digilentinc.com
gate some persistence, let’s program configuration work, you can get to the NuHorizons, authorized Xilinx distributor
the onboard platform Flash. Turn the fun stuff. Try expanding the program we (sell the starter kit): www.nuhorizons.com/
power on your starter board to the off wrote to include more switches and LEDs.
Avnet, authorized Xilinx distributor (sell
position and add back the jumpers for Add different types of gates for more the starter kit): www.avnet.com/
configuration headers M0 and M2. All complicated logic and try constructing a
three headers should now be in place multiplexer and then an adder (see Gerard Fun FPGA projects: www.fpga4fun.com/
SERVO 05.2007 23
Events.qxd 4/5/2007 11:31 AM Page 24
Send updates, new listings, corrections, complaints, and suggestions to: steve@ncc.com or FAX 972-404-0269
SERVO 05.2007 25
May07NewProd.qxd 4/5/2007 9:59 PM Page 26
New Products
N E W P RO D U C T S
ets required. The control boards will retain all of the Open
MOTORS Servo functionality with I2C control or TTL level serial
control. Normal servo pulse control and a trimmer pot to
Digital Robot Servo adjust the center position will be added later. The control
boards are all digital and use powerful HEXFETs in the
26 SERVO 05.2007
ShowcaseMay07.qxd 4/5/2007 7:44 PM Page 27
7KH(VFDSH
5RERW¶VEXLOWLQ
PLFURSURFHVVRU
HQDEOHVLWWR
³WKLQN´RQLWVRZQ
G
.65
LUH QJ
TX U L
UH ROGH
6
7KHURERWIURJPRYHVIRUZDUG
ZKHQLWGHWHFWVVRXQGDQG
UHSHDWVVWDUW PRYHIRUZDUG !
VWRS!OHIWWXUQ!VWRS!ULJKW
WXUQ!VWRS .65
PP:KLWH
ZDWHUFOHDU
/('9
PFG
$%
VHFRQGYRLFHUHFRUGHUSOD\EDFN
PRGXOH7KHHOHFWUHWPLFURSKRQHLVRQWKH
ERDUG2QHEXWWRQUHFRUGVWKHRWKHUEXWWRQLV
PRPHQWDULO\SUHVVHGWRUHSOD\WKHPHVVDJH
SUHDVVHPEOHG $
7KH9HOOHPDQ3HUVRQDO6FRSH
LVQRWDJUDSKLFDOPXOWLPHWHU
EXWDFRPSOHWHSRUWDEOH
RVFLOORVFRSHDWWKHVL]HDQG
FRVWRIDJRRGPXOWLPHWHU
+36
QGV
7KRXVD
L WH P VRQ
PRUH
E LWH
V
RXUZH
Robotics Showcase
Robotics Showcase
THOUSANDS OF ELECTRONIC
PA R T S A N D S U P P L I E S
VISIT OUR ONLINE STORE AT
www.allelectronics.com
WALL TRANSFORMERS, ALARMS,
FUSES, CABLE TIES, RELAYS, OPTO
ELECTRONICS, KNOBS, VIDEO
ACCESSORIES, SIRENS, SOLDER
ACCESSORIES, MOTORS, DIODES,
HEAT SINKS, CAPACITORS, CHOKES,
TOOLS, FASTENERS, TERMINAL
STRIPS, CRIMP CONNECTORS,
L.E.D.S., DISPLAYS, FANS, BREAD-
BOARDS, RESISTORS, SOLAR CELLS,
BUZZERS, BATTERIES, MAGNETS,
CAMERAS, DC-DC CONVERTERS,
HEADPHONES, LAMPS, PANEL
METERS, SWITCHES, SPEAKERS,
PELTIER DEVICES, and much more....
Request a Free Sample Today
O R D E R TO L L F R E E
1-800-826-5432
Ask for our FREE 96 page catalog
SERVO 05.2007 27
CombatZone.qxd 4/4/2007 9:47 AM Page 28
Feature
30 Robots That Don’t Break
by Brian Benson
PARTICIPATI N
Propane/MAPP Torch Safety
Technical Knowledge ● by Jeffrey Scholz
32 Chains — Putting the Growl
in Your Drive Train
by Steven Kirk Nelson P ropane and MAPP torches are
not only used by plumbers to
solder pipes together, robot builders
watch), it can get very hot. Take
your bling off before using the torch.
Events use them as well for hardening • Hitting a red-hot piece of metal
weapon blades and for heating up with a hammer throws off sparks,
32 Results — Feb. 12 - Mar. 11 titanium to make bending the mate- so do not pound any harder than
35 Upcoming — May and June rial into the desired shape easier. you need to. Again, sparks
Along with the warnings included in probably won’t seriously hurt
Product Review your manual, robot builders have a
few more things to watch out for:
you, but it can make you react
suddenly and unsafely.
34 LED Lighting Systems
by Chad New • Reflected heat — bending titanium • Your vise is attached to a wood-
into a concave plow? Did you en workbench. Sufficient heat is
remember that solar ovens are not likely to reach the wood to
also concave in shape? I’ve been cause it to ignite. However, there’s
rudely reminded of this phenom-
Propane and MAPP torches.
enon several times; it’s one you
need to watch out for. Even if
the piece is straight, you can
still reflect heat at yourself acci-
dentally. Remember to angle
the torch away from your face
and your other hand.
28 SERVO 05.2007
CombatZone.qxd 4/4/2007 9:47 AM Page 29
always the possibility of pointing the dunk the part in oil or water while it blade in a vise; it takes too long to
torch at the wood carelessly (espe- is red hot. However, the part loses its remove and the vise wicks away heat.
cially when handling the piece you’re “redness” quickly after you stop heat- You can hold the part in pliers, but it
working on), so dampen the wood ing it. Loosening the part from the often bends under its weight while
with water to retard ignition. Or, you vise, grabbing it with pliers, sticking it hot and soft. Your best bet is to heat
can buy commercially-available flame in oil, and swirling it, all while holding the part on firebrick and slide the
retardant sheets to cover the wood. a lit torch in the other hand is not part into the cooling solution. Have a
exactly a kosher practice. My first bit partner handy to take the torch away
• Some heat-treating requires you to of advice is that you not clamp the from you while you do this. SV
SERVO 05.2007 29
CombatZone.qxd 4/4/2007 9:48 AM Page 30
7) Have the builders shake hands expected of them every time. Fires
once everything is shut down.
Un-sticking Robots Fires do happen, but they’re most-
8) Have the builders load up and exit ly electrical in nature. I like to keep a
the arena. This delightful task is probably the CO2 fire extinguisher handy. Dry
most dangerous job in robot combat. chemical extinguishers work as well,
I have found as a wrangler its a These machines can easily hurt or even but I wouldn’t shoot one into a robot
good idea to remind the builders of kill a person. It is extremely important unless I absolutely had to since this can
these steps for every match. I tend to that the Wrangler has the undivided make a complete mess.
repeat myself hundreds of times attention of the builders before enter- Safety is everyone’s job in this
during an event. I also do not change ing an arena to un-stick machines. You sport. And it should be everyone’s
the procedures for any weight class must make sure the builders control number one priority to go home with
or weapon types. Everyone plays by their machines. Your life is truly in their all of their fingers and toes, even
the same rules. That way, they hands, which must always strongly be if they have just had their bot
know what to expect and what is emphasized to them. kicked! SV
ROB TS
THAT DON’T BREAK
● by Brian Benson
30 SERVO 05.2007
CombatZone.qxd 4/4/2007 9:49 AM Page 31
FIGURE 4. This speed controller is FIGURE 5. To create a custom radio switch, a simple push
shock-mounted on .25 inch Lexan button switch, large set screw, and plastic are used.
using a cut-up mouse pad.
SERVO 05.2007 31
CombatZone.qxd 4/4/2007 9:49 AM Page 32
cal tape around the entire receiver to The last small thing to consider is Conclusion
prevent it from coming out. The power switches. Most builders have
PWM cables need to be glued into lost at some point due to a power As you can see, there are many
the receiver as described before. You switch accidentally turning off during factors to consider when designing
also need to shock-mount the receiv- a match. I feel the best option for and engineering a robot. For an exam-
er, speed controllers, batteries, and robots 12 lbs and higher are the ple of a robot that has taken into
anything else that else that might Team Whyachi power switch options. account all of this, see Figure 7.
break (foam works well). If you prop- (see www.teamwhyachi.com). Remember, don’t be your own enemy.
erly glue, zip-tie, tape, and foam all Custom solutions do work (Figure 5 Be tolerant, control the damage, and
of your critical components, you will and 6), but off-the-shelf products remember all the small things. But
drastically limit your failure points. generally are not suited to this use. above all, have fun and be safe! SV
EVENTS
RESULTS — February 12 - March 11
● Open Feathers (30 lb) — 1st: “Billy
M otorama 2007 was held
February 16 in Harrisburg, PA.
Presented by North East Robotics Club.
Bob,” Robotic Hobbies; 2nd: “Sloth,”
Team Massacre Robotics; 3rd:
Sacramento,
CA. Presented
by Sacbots. Results are as
Results are as follows: “Tripolar,” Team Brain Damage. follows:
● Sportsman 30s — 1st: “Bounty ● Fairyweights (150 g) — 1st:
● Fairies (150 g) Hunter,” Team Hammertime; 2nd: “Crisp,” clamp, Team Misfit; 2nd:
— 1st: “Deimos,” “PITR,” Team Javman; 3rd: “Helios “Micro Drive,” lifter, Team Misfit;
Team Cosmos (ranked #4); 2nd: “Mr. Sport,” Team Cosmos. 3rd: “Atom Bomb,” drum, Team
Bigglesworth,” Team Udanis; 3rd: ● Ant Rumble — “yelo,” Team Pinq. Misfit.
“Steve-O,” Team PITA. ● Beetle Rumble — “Destructive ● Antweights (1 lb) — 1st: “MC Pee
● Ants (1 lb) — 1st: “Switchblade,” Crab,” Green Machines. Pants,” drum, Team Fatcats; 2nd:
Team Sawzall (ranked #2); 2nd: ● Hobby Rumble — “Pummel,” “Dark Pounder,” drum, Dark Forces;
“Fender Bender,” Team JandA; 3rd: Robotic Hobbies. 3rd: “Unblinking Eye,” horizontal
“Absolutely Naut VDD,” Team ● Feather Rumble — “Gnome spinner, Hammer Bros.
Anarchy Robotics. Portal,” Robotic Hobbies.
● Beetles (3 lb) — 1st: “Can O Nuns,” ● Most Destructive Robot — Sloth,
HockeyRunner Robotics;
“Enemy,” (ranked #7), NovaRobots;
2nd: Massacre Robotics.
● Coolest Robot — Diabolical
B ay Area Robot Fights 2007
was held March 3 in Tampa,
FL. Presented by TeamPyramid.
3rd: “SSOD,” jZRobotics. Machine, Team Terror. Results for
● Hobbys (12 lb) — 1st: “Solaris,” ● Best Driver — Jon Durand, Team this event
Team Cosmos; 2nd: “Darkblade,” Anarchy Robotics. w e r e
Team Sawzal (ranked #7); 3rd: unavailable
“Rants Pants,”
Robotics (ranked #1).
Not-so-boring
T he Smackdown in Sactown III
was held February 18 in
at press
time. SV
TECHNICAL KN WLEDGE
CHAINS — Putting the Growl in Your Drive Train
● by Steven Kirk Nelson
32 SERVO 05.2007
CombatZone.qxd 4/4/2007 9:50 AM Page 33
easily and when properly installed, the key stock in the sprockets and
does not slip. Another advantage is it shafts before drilling the mounting
is possible to change shaft ratios by holes as they do change chain
changing the sprocket sizes. This lets tension a bit.) You have to always
you adjust the final torque output maintain at least a 120 degree (33
of the drivetrain to fit your power percent) wrap on the smaller
output needs. sprocket. And it is usually not
The three commonly-used chain recommended to go over a 7-to-1
sizes in larger combat robots are #40 reduction in a single stage. For
roller, #35 non-roller, and #35 high more reduction, use multiple stages Sprockets and chain, oh my!
tensile extended bushing or “space through intermediate (jack) shafts.
chain,” such as EK Spaced Silver When fitting a chain, you first about 1/2” deflection. Running a
Pro Chain. Chain size is determined mark the links to be removed (soap- chain too tightly wastes horsepower
by how much load that it will have stone works well). Then, using a and destroys the chain, bearings,
to handle. chain breaker tool, you push the pins sprockets, and motors. It makes a lot
In all reality, it has been proven out on each one a little at a time of noise, as well.
that for non-weapon drivetrain use, until the side bars come loose. Don’t I am not a believer in the need
standard #35 non-roller chain works try to fully push a pin all the way out for added chain tensioners or
really well up to about three in one operation. Alternate between rubbing blocks. So I simply make my
horsepower; for 4-8 HP, use #35 EK each pin; this reduces the damage to mounts adjustable by drilling multiple
Spaced Silver Pro GoKart racing the chain and the chain breaker tool. holes in the frame and mounting my
chain; and for anything over that or a Personally, I grind the pins down bearings in the center hole on initial
weapon drive, use #40 roller chain. I flush on the link I want to remove, to assembly. Once it’s all running
should mention that we have used further reduce the stress on the chain smoothly, I cut out the slots to allow
the #35 GoKart chain with over 13 and the tool. for chain adjustment in two
HP and at 10,000 RPM with great When installing the master link directions from the original install.
success. But your mileage and service (if used), the closed side of the mas- Also, it makes it possible to adjust
life may vary. ter link should be facing the direction the alignment when needed. Chain
of rotation for maximum strength tension will change after a few hours
Fitting Chain and reliability. If the output shaft will (or even minutes) of run time.
turn both directions, then mount the
For a properly designed closed side of the link toward the Lubrication
machine, you have to do the math more common direction of use, for
and calculate the shaft centers, loads example, the forward motion in a Steel chains require lubrication.
applied, and type of lubrication used. pushy bot. (You’re not supposed to They are not designed to run dry. I
If you want 15,000 hours of run time run away from your opponent.) should note that most chains come
with your chain, then you must It is very important to get your with a protective lubricant applied to
do the math! A good site is www. sprockets aligned as straight as possi- them at the factory. This lubricant is
drivesinc.com/roller-PDFs/rollr- ble to keep your chain happy. You applied to keep them from rusting in
precsn.pdf But there is a mechani- should use a straight edge to align the box. To keep your chain working
cal way to build a drive train, as the sprocket faces to each other. This properly, you need to lubricate them
well. Basically, you let the chain tell takes a bit of time and practice. with a good grease or oil. With brand
you what it will handle and where Basically, you want the faces of the new chain, I usually run them for a
the motors and shaft can be sprockets to be true and square, so few minutes with the factory lube.
mounted. When building a drive the chain will ride on the center of Before I do any real testing, I clean
train in the garage, I always start the sprockets and not rub on the side
with some wood blocks, bearings, bars in operation. Once you get
shafts, sprockets, motors, and a everything straight, you want to
box of chain. I just keep sliding the install the chain and rotate the drive-
parts around and observe the train by hand while checking for
amount of wrap on the small binding and crunchy sounds.
sprocket. If you can make the chain Another thing to double check
happy in this way, you can just drill is the chain tension; #35
the holes and bolt the bearings and chain should have about 3/8” up/
shafts to a frame and your drive- down deflection between the shaft
train is done. (Note: Always insert centers, and #40 chain should have Chain breaker.
SERVO 05.2007 33
CombatZone.qxd 4/4/2007 9:51 AM Page 34
Adjustable mounts. • Chains are very strong and • Never run chains dry! SV
34 SERVO 05.2007
CombatZone.qxd 4/4/2007 9:53 AM Page 35
them plugged into the receiver. If Overall, the lights are very easy tems fail, showing their toughness
you lose signal, the lights will turn to mount. They come with mounting and durability.
off or glow continuously alerting holes so you could secure them with So, if you are looking to give
you to a problem. However, this can bolts, but I have found that a dab of your robot a unique touch, give the
be disabled by cutting the signal Shoo Goo provides adequate support Dimension Engineering’s LED sys-
wire should you not want this for the units. During many events I tems a look at www.dimension
feature. have yet to have any of the light sys- engineering.com. SV
EVENTS
UPCOMING — May and June
SERVO 05.2007 35
Bergeron.qxd 4/2/2007 10:30 AM Page 36
HAPTICS,
Telepresence, and
TELEROBOTICS
by Bryan Bergeron
A
human medic, safe in a military TATRC.org) for a view of the current shown in Figure 1. The device serves as
base on another continent, takes state of the art in autonomous casualty an extension of the user’s arm, effective-
command of the robot and drags care robotics. Although many technolo- ly increasing reach by an additional foot
the unconscious soldier out of harm’s gies are involved in telemedicine, it is or more. Compared to operating a robot
way. Then, using a video, audio, and telepresence — the ability to see, hear, arm with a keyboard or joystick, manipu-
touch telepresence interface, he directs speak, touch, and feel at a distance — lating an object with the gripper is
the robot’s arm to gently manipulate the that places the medic virtually at the second nature. Release the grip and the
soldier’s bleeding leg. Through visual soldier’s side. In particular, it is the jaws open. Squeeze the grip and the
inspection and carefully prodding and ability to feel at a distance through a jaws close. More importantly, when the
bending the leg, the medic operator haptic interface that enables the medic jaws stop moving — whether because of
determines that the damage is limited to to physically assess the soldier’s wound an object in the jaws or because the jaws
a deep laceration. Using the robot arm as and correctly apply the tourniquet. are completely closed — so does the grip.
an extension of his own, the medic This article introduces the features The toy gripper does add some
applies a tourniquet, using just enough and design challenges associated with complexity over direct manipulation. For
pressure to stop the bleeding without haptics by way of a telerobotic gripper example, there is slight tension in the
damaging the underlying tissue. With the that you can add to your robot arm or grip because of the spring that keeps the
soldier stabilized, the medic returns the mobile robot platform. jaws open, and pulling back the grip only
robot to autonomous operation so that it a few millimeters causes a proportionally
can rejoin the swarm of robots combing Force Feedback larger change in jaw opening. Despite
the active battlefield for wounded. and Haptics these nuances, the interface is both intu-
itive and easy to learn. An inquisitive five-
While this scenario is fictitious, the To appreciate the advantages of year-old can master the toy in seconds.
technology isn’t. See the videos of pro- a haptic interface over a traditional One reason the toy gripper is so easy
totype robots in operation on the Army’s interface limited to audio and/or to learn is the force feedback provided by
Telemedicine and Advanced Technology video feedback, consider the the direct physical linkage between the
Research Center website www. features of the toy gripper grip and jaws. Pick up a Nerf ball with
the toy and the grip feels squishy. Pick
SERVO 05.2007 39
Bergeron.qxd 4/3/2007 9:59 AM Page 40
REFERENCES
[1] Dudley, B., Basic Phenomena of
Electronics, in Electrical Engineering
Handbook, D. Fink and D. Christiansen,
Editors. 1986, McGraw-Hill: New York.
p. 1-58.
40 SERVO 05.2007
Lorenz.qxd 4/4/2007 11:39 AM Page 41
COOL ROBOTS
What lies beneath. The robot chassis
ADDITIONAL INFORMATION containing the motors, batteries, and
More pictures and details on the control system; the solar cells are
mounted on lightweight panels that are
Cool Robots project are available at: simply hung on the main structure.
http://engineering.dartmouth.edu/
crobots/ panels. Another neat trick is that — apart
The paper available there — from special situations like battery
Performance of a Solar-Powered Robot recharge stops or payload operations —
for Polar Instrument Networks — gives the system can be programmed to match
lots of useful detail on the peak power the motor current draw to the solar panel
tracker and on traction estimation. output, thereby minimizing the current
going into or out of the batteries. This
power is a feasible option, and has the surface of the panels varies throughout improves battery life, and avoids the
advantage that once the robot is deliv- the day due to the sun’s changing need to have a shunt resistor into
ered, it can keep operating year after year. position, the current-voltage curve of the which excess power would have to be
In polar regions, the sun will be panels changes. This can also happen dissipated (which would, in turn, warm
always low in the sky, if it is above the due to temperature changes, and the panels, making them less efficient).
horizon at all. This means that roof- because of drops in illumination due to The second factor in the robot’s per-
mounted solar panels alone are not clouds, although the polar summers are formance is its net traction (T) compared
much use. In fact, in polar midsummer, usually fairly clear. If the electrical system to its weight (W). This depends on the
the sun will be above the horizon in all was designed to work at a fixed current rolling resistance of the tires and on the
directions — south at noon and due or voltage, it would generally not be able compaction of the snow. The goal was to
north for the ‘midnight sun.’ So the Cool to extract the maximum power available. achieve (T/W) of 0.5 or better, meaning
Robot is equipped with solar panels on Instead, a dedicated circuit called a peak that the vehicle could climb a 30 degree
its four walls, as well as one on its roof. power tracker is used to continuously slope or tow a substantial load. The robot
Although it is bright, it is, of adjust the power being drawn from the has large tires — 15 cm wide by 50 cm
course, still cold. In fact, low tempera- panel — up to 40 times a second it draws across. These have walls stiff enough to
tures improve the efficiency of solar more or less current to see if the new support the robot with zero inflation
panels, causing them to run at a draw provides more power than the last. pressure. The researchers calculated a
voltage of 10-20% higher than usual. Starting from a low current state, the likely resistance-to-weight ratio of 0.25.
One surprise was that with the sun logic increases the current until each The Cool Robot was tested in
low in the sky, a significant amount of step starts to reduce the power, and so it summer 2005 at Summit Camp in
sunlight was reflected off the bright steps back. This ‘bang-bang’ way of test- Greenland. This site is at 72 degrees
snow onto the panels — in fact, as ing whether the panel is at maximum North and is at an altitude of some
much as 30% of the power sometimes output is convenient because it requires 3,200 m. Even though the robot weighs
available was due to such reflection no details about the panel being used. only 61 kg, it can tow a much heavier
and appreciable power was generated Because the sunlight falling on a load on a sled behind it. It drove beauti-
by the panel facing away from the panel can change rapidly as the robot fully, observed Jim Lever of CRREL (US
sun. After all, this reflected light is why crosses an ice ridge or sastrugi, the Army Cold Regions Research and
people can get snow-blindness. power-tracking logic (implemented on a Engineering Laboratory), and consumed
As the angle of the sunlight with the microcontroller) is especially fast even less power than predicted. It was
compared with the systems used, for able to climb 0.3 m high steep-faced
The guts of the robot — most of it is example, on domestic rooftop solar berms, and in tests dragging up to three
power-conditioning circuitry. researchers on a sled on level
snow, it could drag 3.5 times its
own weight. Streeter notes, how-
ever, that in the field the tough-
est thing was diagnosing prob-
lems — it’s easy in the lab to feel
for a broken part or put a scope
on a circuit, but at 15 degrees in
wind chill, it’s a different story!
The robot typically sank
abut 5 cm into the snow, using
The key to good traction
performance are the large wheels.
42 SERVO 05.2007
Lorenz.qxd 4/5/2007 1:03 PM Page 43
COOL ROBOTS
an ultrasonic ranger to measure the
amount of sinkage. In fact, on the ACKNOWLEDGEMENTS The robot climbs foot-high
obstacles with ease.
cold, hard snow of the Antarctic, the The author thanks Alex
robot should sink less and therefore Streeter, Laura Ray, and Jim Lever
need less power to move than on the for sharing their experiences with
soft late July snow at Summit Camp. the robots in the preparation of
In principle, the design should scale this article.
up well; larger robots generating more
power and being able to carry more, The design goal for the Cool
faster, but the present design is a good Robot is to cross 500 km of the
compromise, being affordable and easy Antarctic plateau with 15 kg of
to transport. In fact, the ability to fit the payload in less than two weeks, and team hopes to build a fleet of five such
disassembled robot into a tiny Twin Otter the team’s Greenland tests suggest that robots. Of course, during polar sum-
plane for delivery to the South Pole their 60 kg design should be able to mer, the robots can’t drive off into the
Station was a factor in sizing the robot. achieve this. With further funding, the sunset, because it never happens! SV
t • 10-bit A-to-D
of
nolo • PWM
12
• Output Compares
www.technologicalarts.com • 3V/5V Operation
C Stamp™ Controller
• LOW COST - High Pin Count
• 48-Pin Module with Analog
• High Speed, Large Memory
• Professional SW Dev. Tools
• Easy to Connect Accessories
• Free Expert Technical Support
Toll-Free: 1 (800) 985-AWIT
www.c-stamp.com
SERVO 05.2007 43
Hewitt5.qxd 4/2/2007 1:45 PM Page 44
H
ere’s a brief recap of last month’s (PCA) to reduce the “dimensionality” of
Last month’s article explained article explaining how eigenface these images. Eigenface defines image
how the face recognition works. dimensionality as the number of pixels
method called eigenface works. Eigenface consists of two phases: in an image.
learning and recognition. In the learning The lower dimensionality represen-
This month’s article concludes phase, you give eigenface one or more tation that eigenface finds during the
both the OpenCV series and the face images for each person you want it learning phase is called a subspace. In
eigenface topic with a detailed to recognize. These images are called the the recognition phase, it reduces the
look at a complete program for training images. In the recognition phase, dimensionality of the input image by
when you give eigenface a face image, it “projecting” it onto the subspace it
implementing eigenface with responds by telling you which training found during learning. “Projecting onto
OpenCV. image is “closest” to the new face image. a subspace” means finding the closest
Eigenface uses the training images point in that subspace. After the
FIGURE 1. The two input files for the to “learn” a face model. This face unknown face image has been project-
eigenface program: train.txt and test.txt. model is created by applying a method ed, eigenface calculates the distance
The paths in these input files point to called Principal Components Analysis between it and each training image. Its
images in the ORL face database. output is a pointer
to the closest train-
ing image. You can
then look up which
person eigenface
identified.
Setting
Up for
Eigenface
In use, you’ll
probably want to
combine eigenface
with the face
detection method
presented in Part 2
of this series. To
simplify the exam-
ple code for this
article, however,
I’ll be assuming
you already have a
set of training
images and a set
FIGURE 2. The
top-level source
listing for the
eigenface program.
44 SERVO 05.2007
Hewitt5.qxd 4/2/2007 1:45 PM Page 45
eigenface train
eigenface test
Source Code
Figures 2-10 contain the complete
source listing for a basic eigenface pro-
gram. To keep the presentation simple,
I’ve omitted most of the error checking.
SERVO 05.2007 45
Hewitt5.qxd 4/2/2007 1:46 PM Page 46
SERVO 05.2007 47
Hewitt5.qxd 4/2/2007 1:48 PM Page 48
48 SERVO 05.2007
Hewitt5.qxd 4/2/2007 1:48 PM Page 49
I
n order to build this
remote, you will need
some controls like those Last month, we created
shown in Figure 2. These
will range from buttons to a walking robot called
full action joysticks. The
buttons weren’t an issue, the BioCrab. The
but finding a joystick at a
reasonable price was a real problem with such a
problem. A company called
P3 America sells them, but
bot is that there are a
even the simplest dual axis great many control
joystick was over $100
each. Since I wanted at points and a remote
least four, my remote
would probably cost me over $400 for With a small screwdriver and a control does not exist
the joysticks alone and over $500 for soldering iron, you can retrieve the two
the completed remote. There just had joysticks shown in Figure 4 with about that will allow us to
to be another option. 10 minutes of effort. One really nice
feature about these joysticks is that you control all its aspects.
Vex Radio Interface may remove a small spring and the
I am going to show
stick will remain where set and not
What I really wanted was a joystick return to the center position. You can you how to build a
like you find in those four- or six-channel do this with either or both axis. This
R/C radios. They seem to be very makes them perfect for our remote. custom control system
modular and rugged enough for the Before I get into the details on build-
kind of remote I wanted to build. Many ing the remote, I thought I would show that has four dual axis
of you may have already seen the Vex you how to use the Vex radio with the
R/C radio shown in Figure 3. When first BioCrab. The Vex radio is a six channel joysticks, as well as six
released, they sold for over $100. A
while back, RadioShack dropped the buttons and a keypad.
FIGURE 3
Vex line and many of the radios have
There is also a 4 x 16
made their way to some of the mail
order houses at a very reasonable price. LCD display for
At the time of this article, All Electronics
was selling them for $29.95 each. configuration and
FIGURE 2 robot feedback.
We will add a serial
interface that can be
connected directly to
a robot via a wireless
Zigbee module.
SERVO 05.2007 51
Simpson3.qxd 4/3/2007 9:48 AM Page 52
Joystick Removal
Before we start, you will need to
obtain the four joystick assemblies. On
the back of the Vex radio, there are six
screws that must be removed. Under
the battery holder are an additional
three. On the front of the radio, there
are four screws holding each joystick in
place. Once these are removed, lift the
SCHEMATIC 1
cover off the back of the receiver and
52 SERVO 05.2007
Simpson3.qxd 4/3/2007 9:49 AM Page 53
PROGRAM 1
DiosPro
‘Vex Radio Interface Demo
func main()
dim stat as integer
loop:
stat=readvex(4)
print stat,”: “,VCH1,” “,VCH2,” “,VCH3,” “,VCH4,” “,VCH5,” “,VCH6
goto loop
endfunc
include \lib\vexradio.lib
Joystick Hookup
Each joystick has a small PCB; you
will make the connections as shown in
Schematic 1. Figure 12 shows the
joystick placement when viewing from
the bottom of the control. The yellow
wire is connected to the Y axis of each
joystick. The green is connected to the
X axis. Red is Vdd (5V) and black is Vss.
Load and run the program called
Joy1.txt. This program will display
the X and Y axis from each of the four
joysticks.
LCD Hookup
The serial LCD comes with a small
four-pin header that you may mount as
needed, but we won’t be using it.
Simply attach four wires as shown in
Figure 13.
The last pin on the serial LCD
interface is optional and can be used to
set the baud rate to 19200 when tied
to Vss. In this application, we are going
to use the 19200 baud interface as
shown in Schematic 2.
Load and run the program called
Joy2.txt. It will display the X and Y axis
from each of the four joysticks on the
LCD. Note that you may need to adjust
SCHEMATIC 3
the contrast trimmer in order for the
SERVO 05.2007 55
Simpson3.qxd 4/5/2007 11:07 PM Page 56
PARTS LIST
AVAILABLE FROM KRONOS • 50 #4, 1/2” machine screws
ROBOTICS (#106810)
• DiosPro chip (#16148) • 50 #4, washers (#211131)
• Dios Workboard Deluxe (#16452)
• DiosCompiler (a free download AVAILABLE FROM ALL
from the Kronos website) ELECTRONICS
• 4x16 Serial LCD (#16531) • Two six-channel transmitter
• 36-pin Snapable Female Header rReceivers (#JS-6)
#16291 (used to make header • Six push buttons (#PB-138)
sockets) • Keypad (#KP-28)
• Nine-pin serial cable #16259
(needed to program the DiosPro) OTHER
• Six cell battery pack (#16321) • Two 8x10 1/8” Plexiglass (or
• 9V battery clip (#16264) similar) (Available at most home
centers)
AVAILABLE FROM JAMECO
ELECTRONICS WEBSITES
• Eight 3/8” #4 Machine Screws Jameco Electronics
(#40969) www.jameco.com
• Four #4 Washers (#106826) All Electronics
• Eight #4, 1” Standoffs F/F www.allelectronics.com
(#139206)
• Six #4, 1” Standoffs M/F Kronos Robotics
(#139231) www.kronosrobotics.com
DiosPro. The ports are ton is pressed, the corresponding I/O port
SCHEMATIC 4 held high with a 10K will go from a high state to a low state.
resistor. When the but- First, solder and connect the two
PROTOTYPE
CIRCUIT BOARDS
U two 2.25" sq.
S 2-layer boards
www.apcircuits.com
AP Circuits
(403) 250-3406
staff@apcircuits.com
56 SERVO 05.2007
Simpson3.qxd 4/3/2007 9:51 AM Page 57
What’s Next?
I had to cram quite a bit into this
article. Next month, I will add a bit of
software to create a tethered serial
interface that can be used to talk to
robots. Then we will add a ZigBee
interface to complete our remote.
All the example programs, as well
as the source, are available for down-
load at www.kronosrobotics.com/
Projects/remote.shtml. SV
SERVO 05.2007 57
Haston.qxd 4/5/2007 1:06 PM Page 58
Ultra-Sonic Microsensor
Comparison Project
by Kyle Haston, University of Arizona, ECE Undergraduate
Microsensors have proven their usability in many ways including object detection
applications such as automatic doors, ranging applications such as the rear
bumper of modern vehicles, and educational applications such as microrobotics.
There are many different microsensors on the market dates for the test are as follows: SRF02, SRF04, SRF08,
today featuring a spectrum of possibly confusing SRF10 from Devantech, Maxsonar-EZ1 from MaxBotix, and
characteristics. The recipients of these products are often PING))) from Parallax. The SRF04, SRF08, and SRF10 sen-
aspiring microrobotics hobbyists and may be unaware sors from Daventech and the PING)))TM sensor from Parallax
of the differences between the many sensors. Also, are most commonly used in microrobotics applications such
manufacturers usually boast solely on the positive as data acquisition/logging or robot Sumo. The MaxBotix
features of their sensor without explaining the resulting sensor is much smaller in size and is one of the newest
detriments. For example, a sensor with high gain may sensors on the market. The SRF02 was recently released by
be able to see a long distance, but this is usually Devantech and is similar in size and shape to the MaxBotix
accompanied by a unique beam pattern. Whether the sensor. The websites for these three manufacturers are
sensor is actually better than any others depends also on www.robot-electronics.co.uk, www.maxbotix.com,
the user’s application. and www.parallax.com, respectively.
The many tests performed to evaluate sensors are
usually conducted differently. It is easy to conduct a test or The Tests
represent data slightly differently to give one sensor an
apparent advantage over others. Most microsensors require a FIGURE 2. Beam
The purpose of my project was to conduct a series of microcontroller to switch them on patterns for the
SRF02 sensor.
tests on the major microsensors
FIGURE 1. Beam available today and find out how
patterns for the they actually compare. The candi-
PING))) sensor.
58 SERVO 05.2007
Haston.qxd 4/5/2007 1:07 PM Page 59
and off
and inter-
pret the
readings
that they
output.
The test
setups —
including
w h i c h
microcon-
trollers
were used with which microsensors — and code examples
that were used can be found at my website at
www.ece.arizona.edu/~khaston/
The tests used to compare the sensors determine the
beam pattern, accuracy of readout for objects in motion, FIGURE 4. Beam patterns
and current draw for each sensor. The results for each a sensor actually exists in for the SRF08 sensor.
sensor are described below. three dimensions. While most
representations are shown on a two-dimensional
Beam Patterns plane, it is generally understood that such a pattern
The beam pattern of a sensor is usually very is lathed 180 degrees about the approximate axis of
important in determining whether or not a certain sensor symmetry.
will be useful in the intended application. Symmetry, Another way to generate a beam pattern for a sensor
smoothness, size, shape, etc., should all be considered. It is to place the sensor a fixed distance from a wall and test
should also be noted that the beam pattern of a sensor the maximum and minimum degrees that one can rotate
changes depending on characteristics of the object the sensor while still having the sensor ‘see’ the wall. In
being sensed. These characteristics include size, shape, this instance, textural characteristics of the wall also affect
and texture. For this test, we will use wooden dowels the results.
of two diameters: 1/4 inch, one inch, The previously stated FIGURE 6. Beam patterns for
the MaxSonar-EZ1 sensor.
FIGURE 5. Beam and a plastic PVC pipe with a five
patterns for the inch diameter. The beam pattern from
SRF10 sensor.
SERVO 05.2007 59
Haston.qxd 4/5/2007 1:07 PM Page 60
tests were performed for all six microsensors. The results Current Draw
were then graphed in overlay format to produce a Current draw is another feature of microsensors that is
single beam pattern sheet usually considered important. To perform this test, one
FIGURE 9. Pendulum test for each sensor as seen in must simply supply power to a microsensor in series with an
results for the MaxSonar- Figures 1-6. ammeter. The results are shown in Figure 7.
EZ1 microsensor.
One feature that is often tweaked by the
manufacturer to achieve a larger beam pattern is
called the gain. By increasing gain, oftentimes
sensors can see further. Notorious side effects
of this include non-smooth beam patterns, read-
ing instability, and higher power consumption.
Figure 8 shows a chart comparing the sensors
with both power consumption and distance
considered. The distance used for each sensor is
the maximum reading achieved for the five inch
diameter PVC pipe. This value was chosen
because it represents the farthest the sensors
could see.
Pendulum Test
Some sensors give accurate distance readings
for objects moving to and from the sensor. Others
will suddenly jump to a reading of the sensor’s
maximum range or zero. Stable and accurate
readings in this setup are necessary for some user
applications, so included among the tests is one
of this nature.
An easy way to test whether a sensor
performs well in this scenario is to mount the
sensor somewhere and swing a pendulum of
some sort in front of the sensor. The pendulum
needs to swing to and from the sensor to produce
an object with a distance that varies over time. If
the results are captured via serial port and
plotted, the result should be a sinusoidal wave
of gradually decreasing
FIGURE 10. Pendulum amplitude. Sudden spikes
test results for the
PING))) microsensor. to obviously inaccurate
60 SERVO 05.2007
Haston.qxd 4/5/2007 1:08 PM Page 61
FIGURE 11. Pendulum test results for the SRF02 microsensor. FIGURE 12. Pendulum test results for the SRF04 microsensor.
distance values indicate potential inadequacies depending results of the comparisons and FIGURE 13.
on the intended application. intended use of the microsensor Pendulum test
results for the
The units of the time axis has been omitted and the will determine the rest. SV SRF08 microsensor.
number of points plotted varies between
sensors, because various microcontrollers
take different amounts of time to output a
distance reading. The number of readings
per second is also influenced by the code
used to program the microcontroller that
controls the sensor. The units for the
distance axis have also been omitted
because some sensors output data that
requires calibration, and it is the sinusoidal
resemblance of the data that reveals
performance more than actual values. The
results of two trials for each sensor are
shown in overlay format in Figures 9-14.
SERVO 05.2007 61
BookstoreMay07.qxd 4/5/2007 10:03 PM Page 62
dy
Mind Cany
For Toda t
Roboticis
’s The SERVO Store
SERVO CD-ROM SERVO CD-Rom SERVO CD-Rom
Are you ready for Are you ready for Are you ready for
some good news? some good news? some good news?
Along with the first Along with the first Starting with the
26 issues of 14 issues of SERVO first SERVO
SERVO Magazine, Magazine, all issues Magazine issue —
all issues from the from the 2005 November 2003 —
2006 calendar year calendar year are all of the issues
are now available, now available, as through the 2004
as well. These CDs N E W ! well. These CDs calendar year are
include all of include all of now available on a
Volume 1, issues 11-12, Volume 2, issues 1-12, Volume 1, issues 11-12, Volume 2, issues 1-12, CD that can be searched, printed, and easily
Volume 3, issues 1-12, and Volume 4, issues and Volume 3, issues 1-12, for a total of 26 stored. This CD includes all of Volume 1,
1-12 for a total of 38 issues all together. issues all together. These CD-ROMs are PC issues 11-12 and Volume 2, issues 1-12, for a
These CD-ROMs are PC and Mac compatible. and Mac compatible. They require Adobe total of 14 issues. The CD-Rom is PC and Mac
They require Adobe Acrobat Reader version Acrobat Reader version 6 or above. Adobe compatible. It requires Adobe Acrobat
6 or above. Adobe Acrobat Reader version Acrobat Reader version 7 is included on the Reader version 6 or above. Adobe Acrobat
7 is included on the discs. $24.95 – Buy 2 discs. $24.95 – Buy 2 or more at $19.95 Reader version 7 is included on the disc.
or more at $19.95 each! each! $29.95
The Official Robosapien Linux Robotics
50 Model Rocket Projects Hacker's Guide by D. Jay Newman
for the Evil Genius by Dave Prochnow
If you want your robot
by Gavin D. J. Harper to have more brains
The Robosapien robot
Yes, as a matter of fact, than microcontrollers
was one of the most
it IS rocket science! can deliver — if you
popular hobbyist gifts
And because this book want a truly intelligent,
of the 2004 holiday
is written for the popu- high-capability robot —
season, selling approxi-
lar Evil Genius format, everything you need
mately 1.5 million units
it means you can learn is right here. Linux
at major retail outlets.
about this fascinating Robotics gives you
The brief manual
and growing hobby step-by-step directions
accompanying the
while having run for "Zeppo," a super-smart, single-board-
robot covered only
creating 50 great powered robot that can be built by any
basic movements and maneuvers — the
projects. You will find a hobbyist. You also get complete instructions
robot's real power and potential remain
detailed list of materials, sources for parts, for incorporating Linux single boards into
undiscovered by most owners — until now!
schematics, and lots of clear, well-illustrated your own unique robotic designs. No pro-
This timely book covers all the possible
instructions. $24.95 gramming experience is required. This book
design additions, programming possibilities,
includes access to all the downloadable
and "hacks" not found anyplace else. $24.95
programs you need, plus complete training
LEGO MINDSTORMS NXT in doing original programming. $34.95
Hacker's Guide
by Dave Prochnow Mechanisms and Mechanical PIC Basic Projects
Here is an awesome Devices Sourcebook by Dogan Ibrahim
next-generation collec- by Neil Sclater / Nicholas Chironis Covering the PIC
tion of LEGO MIND- The fourth edition BASIC and PIC BASIC
STORMS projects that of this invention- PRO compilers, PIC
enables you to build inspiring engineer- Basic Projects pro-
and program a real ing resource covers vides an easy-to-use
working robot in just the past, present, toolkit for developing
30 minutes! New tech- and future of applications with PIC
nologies and expand- mechanisms and BASIC. Numerous
ed sensor capabilities mechanical devices.
! simple projects give
make it easier than
ever to add a level of sophistication to
You'll find drawings NEW clear and concrete
and descriptions of examples of how PIC
robotic and architectural creations. This more than 2,000 BASIC can be used
cutting-edge guide describes new advances components that to develop electronics applications, while
that make LEGO MINDSTORMS NXT such a have proven themselves over time and can larger and more advanced projects describe
great robotics resource. The book explains be incorporated into the very latest mechani- program operation in detail and give useful
the all-new NXT intelligent brick ... the inter- cal, electromechanical, and mechatronic insights into developing more involved
active servo motors with rotation sensors products and systems. Overviews of robot- microcontroller applications. $29.95
that align speed for precise control ... the ics, rapid prototyping, MEMS, and nanotech-
ultrasonic sensor that allows robots to “see” nology, along with tutorial chapters on the We accept VISA, MC, AMEX, and DISCOVER
by responding to movement ... the improved basics of mechanisms and motion control, Prices do not include shipping and
light and touch sensors that let robots detect will bring you up-to-speed quickly on these may be subject to change.
color and feel ... and much more. $24.95 cutting-edge topics. $19.95
62 SERVO 05.2007
BookstoreMay07.qxd 4/5/2007 10:04 PM Page 63
SERVO 05.2007 63
Calkins.qxd 4/5/2007 2:06 PM Page 64
by Dave Calkins
ROBOGames Prep:
Sumo Robots — The Easiest
and Hardest Event There Is
S
o you want to build a competi- strategies (such as circling around the cube, and then expand along a
tion robot? Well, the easiest kind other guy and push from behind), diagonal axis, so they end up as a
of robot — and the event in tricks (use better servos), and tactics long wedge.
which most competition builders get (replaceable blades on the front scoop The challenge in a good
started — is Sumo robots. Sumo to make sure you get under the other autonomous robot isn’t just being able
robotics is like chess. The basics are guy) make the matches exciting and to push the other robot, but also being
very simple, yet players vary wildly in unpredictable. Just like combat robots, able to find the other robot, while not
how good they do when competing — the designs of Sumo robots vary wildly. driving itself out of the ring. All Sumo
even though both players know the Unlike combat robots, most matches robots have some method of detecting
same rules. are over in about 10 seconds, robots the edge of the ring. The dohyo itself is
What is a Sumo robot? Well, there have no weapons, and almost all the all black, except for a thin white lining
are six weight classes: 25 g, 100 g, robots are autonomous. along the edge. Most robots use IR
500 g, 1 kg LEGO, 3 kg, and 3 kg sensors or photo-resistors to detect the
humanoid. The 3 kg “cake-boxes” and So, Let’s Get Building white line along the edge, so that the
3 kg humanoids can be either remote a Sumo Robot! bot knows to turn around once it sees
controlled or autonomous (though the edge of the ring (you’ll have to
the R/C bots don’t compete against If you want to compete in the 3 kg program it to react once it sees the
the autonomous robots — they have remote control category, basically all white line).
separate divisions). The other classes you have to do is build a powerful, 20 But that’s only half the battle.
are all autonomous only — the robot cm (7.87”) long by 20 cm wide robot While there are some Sumo robots out
has to think for itself. that can push anything else about there that wander around the arena
Sumo robot competitions are the three feet. No weapons. Just raw turning when they find the edge,
oldest robot competitions in the world, pushing power. The closest thing to a they only win by chance — the robot
having started in the 1970s (!) in weapon you can have is a perfectly flat happens to bump into the other robot.
Japan. The concept is the same wedge along the front of your robot so What we need is some sensors!
as human Sumo wrestling — two you can get under the other robot. Of You can use infrared, sonar, laser,
opponents face off on a “Dohyo” (a course, the other driver will have his photo-resistors, video cameras — just
circular competition ring with two own ideas about avoiding you. about anything! And that’s the biggest
starting lines called shikiri lines). When But the real fun of building a Sumo challenge — being able to see the other
the match starts, the contestants try to robot is in building an autonomous guy, and maneuver around the other
push each other out of the ring. When robot. Most people start with the bot before pushing it out of the dohyo
one contestant goes out of the ring or 500 g class. The robots need to be no and winning!
touches the floor with any part of more than 10 cm (3.94”) long by 10 One of the easiest and most
his body other than the feet, he cm wide. effective ways to win at 500 g Sumo is
loses. Even if he went out of the ring The 500 g and 3 kg Sumo robots to have the most powerful servos you
by himself. can be any height however, which is a can afford. These will have to be
huge bonus if you work it right. continuous rotation servos, which you
Simplicity in Itself Because once the match starts, the can modify from regular servos, or buy
robot can fall over, and thus be longer (ServoCity will modify any servo to con-
Except when it’s not. Because that its initial size. I’ve also seen some tinuous rotation for a fee.) I once spent
while the rules are simple, the various really cool robots that start out as a weeks building the “perfect” sumo,
64 SERVO 05.2007
Calkins.qxd 4/5/2007 2:08 PM Page 65
[ “
]
Sumo robotics is like
chess. The basics are very
simple, yet players vary
wildly in how good they do
when competing — even
though both players know
the same rules.
”
SERVO 05.2007 65
Calkins.qxd 4/5/2007 2:08 PM Page 66
THIS MONTH:
Rummaging
in the Robot
Reliquary
With Background and off our spinning weapon. We used Dan Danknick, the esteemed former
big, heavy sealed lead acid batteries to technical editor of SERVO Magazine.
Music, This Would power our bot, with the unpleasant- Overall, Botbash 2001 gave us a
Make a Good Robot ness of the weight and size offset by very good first impression of the com-
the fact that they, too, came courtesy bat robotics community and of robotics
Building Montage of Cosworth. We spent our grant in general. We were afforded the same
The plenum top had a circular hole money in purchasing our Vantec speed respect as everyone else there even as
cut out from its roof, and we were controller and Futaba radio, and with young rookies, and we were amazed
immediately inspired to fill that gap. Our that, we had all of our essentials. It was by the variety of designs at the compe-
minds leapt to the most logical time to get down to real robot building. tition. Baseball bats, spinning shells,
conclusion — when you have a combat A philosophy that we have alter- and saw blades were all fair game, and
robot with a hole in the top, what do nately embraced and abandoned (for we left the event with a galvanized
you put in it? A spinning kinetic cool factor) has been the classic KISS — imagination and a few battle scars.
weapon, of course! Many ideas were Keep It Simple Stupid. This being our
tossed around and contemplated. first robot, we really did want to keep Causing More Trouble
Everything from Active Threat Detection it simple, so we settled on a simple
to Tesla coils was addressed, but we direct drive train with four motors and Botbash 2001 had left
had to fit our plan to the constraints of four wheels. After balancing simplicity Troublemaker with a few battle scars.
the rules of the competition and of with practicality, we powered our spin- Namely, the starter motor we used to
practicality. Ideas were jotted down and ning weapon through a pulley and belt power our kinetic spinner was
refined on napkins from a local pizza system, in anticipation of some heavy completely smoked, filling the plenum
place, and schemes developed over the shocks. To give our robot a little extra top with the lingering odor of electrical
pizza were refined in the garage. bite, we outfitted it with a set of hard- death. We replaced the motor and we
Designs were refined from napkin ened chromoly spikes on the front, and also replaced the heavy sealed lead
to computer. We wanted an interesting with that we were ready for action. acid batteries in Troublemaker with a
robot, but a spinning weapon on a box lighter pair of cordless drill batteries.
was not quite up to our expectations of Open the Door, The extra weight the batteries afforded
cool factor. Instead of a simple square, us went towards a second inner
we angled off the back corners to You’re There layer of 7075 T-6 aluminum armor.
come up with something more unique. Our original plan when we took the Troublemaker was ready to play again.
Drawings were made on AutoCAD plunge into combat robotics was to actu- Almost. We found the thrill of com-
with the eventual goal of getting our ally compete in Battlebots. But the more petition so inspiring that we simply had
creation machined. we researched the competition, the to build another robot. The plenum top
We decided the ground floor of more unmanageable of a commitment once again served as the nucleus of our
the robot was a good place to start, it seemed. After building an expensive design, and we created a 30 lb robot —
and we wanted to make the physical robot, a costly trip to San Francisco was Twibill Trouble — which we fashioned to
construction of the robot as easy as out of the question, so we had to look look like the head of a double bladed
possible. Our goal was to make a floor for other options. What we found was battle axe. Twibill Trouble was ready just
that we could simply bolt everything Botbash — a smaller competition located in time for our second combat robotics
onto, but to do that we basically had to in Phoenix, AZ that still drew a lot of endeavor: Botbash 2002 in Tempe, AZ.
design everything first. We had to big names from the combat robotics Botbash 2002 introduced some new
know exactly what we wanted in the establishment. It seemed like a perfect aspects of competition. The matches
robot, and where to put it. Back to the fit, so we packed the robot in the car and were no longer one on one — two teams
pizza place and the napkins. headed off to the Copper State. of two robots squared off against one
A pleasant discovery it was when Botbash 2001 was held in a aban-
we found out that robots didn’t really doned warehouse affectionately and TROUBLEMAKER GUTS!!!
require everything from RadioShack inscrutably known as “Automatic.” The
and a kitchen sink. All we needed were competition was a double elimination
batteries, a radio transmitter, speed tournament, where each match would
controllers, an antenna, a kill switch, feature two robots going head-to-
motors, wheels, a solenoid, a junction head in a fight to the death. Even
block, and mounting brackets. It may before the matches started, we had an
seem like a long list, but those really are exciting opportunity to survey the
the only necessities we needed for our other competitors, and everyone was
robot. Things like solenoids aren’t more than happy to answer any
required for robot construction, but we questions about their robots. Botbash
thought it was a handy way to turn on 2001 was also where we first met
SERVO 05.2007 69
TwinTweaks.qxd 4/4/2007 11:16 AM Page 70
Back to the Future A closer examination of combat ative process. Competitions like Botbash
robotics events like Botbash reveals are stimulating the exploration of new
We had to return the loaned mixer them to very much be kindred spirits technology and new uses for existing
at the end of Botbash 2003, so with competitions like FIRST. Combat technology. Perhaps it sounds over-
Troublemaker was again rendered events, like FIRST, are all about creative reaching, but competitions like these
non-operational. We thought that ideas being born out in competition, are helping to democratize technology.
Troublemaker’s catatonic state was not with Botbash and FIRST simply being
fitting for a robot that had just brawled different types of competitions. Take the Plunge
its way to second place, so we ordered While the FIRST competition has
our own mixer. Alas, the frenzy of FIRST the stated philosophy of Gracious When we dove into robotics, the
(For Inspiration and Recognition of Professionalism, participants in all differ- driving force was really just the idea that
Science and Technology) and other ent types of robotics competitions we “wanted to build a robot.” That really
aspects of life’s general business stole our espouse an ideology of sportsmanship. is all it takes; anyone can get involved in
attention from the deserving robot, and Even though combat robots are pitted robotics if that is what they want to do.
Troublemaker sat waiting in the garage, against each other in a fight to the Of course, we greatly benefited from the
slowly being buried, for almost four years. death, competitors will not go over- mentorship we received from our dad,
Now we return to the beginning of board, and they will often help former but that doesn’t make robotics an exclu-
the article, where we’ve unearthed opponents with repairs to their creation. sive pursuit. Let the wealth of informa-
Troublemaker and gathered all of the In competitions like Botbash, every tion on the Internet be your guide, or
requisite parts to bring it back to life. competitor knows that it is an volunteer at a local FIRST regional, or just
We bought our mixer from Team Delta, accomplishment simply to be there. It is get involved in some way, shape, or form.
and the product came with comprehen- an incredible challenge to take your The bottom line is that there are
sive instructions that made installation idea from being just a dream to a plenty of resources for anyone to get
a snap. We were able to scrounge up a concrete creation, and everyone at involved, no matter what their back-
few over-long PWM cables, allowing us these competitions can relate to that ground is. And even though robotics
to make the requisite connections to grueling process. The sportsmanship may seem like an overly academic
the speed controllers and the receiver and professionalism at these competi- pursuit, competitions like Botbash are
module. After four years, Troublemaker tions also stems from respect. Every what make it a fun and cultivating
was finally ready to play again. competitor respects their competition thing to do. Even though Botbash
because everyone there is an innovator. events are no longer being held, maybe
More Than Everyone from the intrepid garage you’ll see Troublemaker and Twibill
Meets the Eye tinkerer to the professional engineer Trouble at some other RFL melee. SV
have created something unique,
Combat robotics is often cast in an and progress is simply made by a THE MIXER.
antagonistic light — the thought is that series of innovations.
since the object of the competition That really gets to the heart of
is to destroy the other person’s robot, these competitions. Why do these
there would naturally be an atmos- roboteers spend lots of time and
phere of cutthroat adversarialism. Such money on remote controlled
is not the case. That might seem gizmos that simply beat the crap
counterintuitive, given the apparent out of each other? Because it’s not
object of the competition. But is that just about the end result (in this
really the object of the competition? case, FUN!), but rather in the cre-
SERVO 05.2007 71
RoboResources.qxd 4/3/2007 10:02 AM Page 72
Fabulous Robots
With Pre-Fab Parts!
T wenty five years ago, if you want-
ed a robot you built it from scratch.
Out to the garage you’d go, with
pre-fab construction kits that are
available, and why such a kit may be
just what you’re looking for if you’re
module, sensors, and rechargeable
batteries. The Vex is the de facto stan-
dard kit of parts for the US FIRST Vex
sheet metal, wood, and plastic bits in wanting to experiment with robotics. Challenge robotics competition, open
hand. You’d cut, drill, sweat, and in the to high school students. Participants
end you’d have a functional but Vex Robotics form teams who compete with one
perhaps amateur-looking robot to Design System another in building and programming a
show to your friends and family. And robot to perform a specific task.
that would be just for the mechanical The Vex system is based around
body. The electronics and brain would the Erector set style of pre-drilled LEGO Mindstorms
be a project for the next year — if you stamped metal girders and connector
made the effort at all. pieces. To build a robot, you fasten the Now in its second incarnation as
Starting about 10-15 years ago, a girders and other parts together using the NXT, LEGO continues as a favorite
few enterprising mail order businesses machine screws and nuts. What makes robot construction set in the home and
— such as Solarbotics and Lynxmotion Vex different than the Erector set you school. NXT sets combine specially-
— began offering robot construction can buy at the toy store is the collec- made electronic components with tra-
kits. You could bypass the mechanical tion of parts specially designed for ditional (and some not-so-traditional)
construction phase, and go straight to small robotics. It comes with two types LEGO building blocks.
the electronics, programming, or even of motors — servo and continuous At the center of the NXT system
play phase! The kits were special- rotation gear head — made to fit the is the NXT controller — a second-
purpose, designed to construct a single girder construction of the system. To generation microcontroller that sup-
version of the robot. To this day, there these motors you can attach a variety ports up to three motors and up to
are still plenty of pre-made kits that of mechanical parts, such as wheels, four sensors and other inputs. Like
make it easy to build a robot, letting gears, and even tank-type treads. the RIS controller in the original
you concentrate on the other aspects Once upon a time, Vex was sold Mindstorms set, the NXT provides
that you may find more enjoyable. exclusively by RadioShack, so it was visual feedback using an LCD display,
Now, the latest trend in amateur widely and easily available. Alas, that and receives its programming from a
robot construction is prefabricated company had rolled back its inventory PC (in the case of the NXT, the connect
components that allow you to build a in hobbyist electronics parts, and no is via USB; early RIS controllers used
variety of designs, all from a single kit longer distributes the sets. You can still infrared communications). Once it has
of parts. The idea is hardly new — for get Vex via mail order from the manu- received its programming, the NXT is
decades, kids have been building things facturer’s website at vexlabs.com. self-contained and operates by itself.
with Erector and LEGO parts, even They sell a starter kit, as well as NXT connects to a wide variety of
Lincoln Logs. While the idea of mixing separate components. Need an extra motors and sensors, which either come
and matching components to build set of wheels? No problem! They are with the basic Mindstorms NXT kit, or
custom designs is old-hat, only recently available separately, along with various are available separately. Basic touch,
has the concept come to the field of packages of extra girders, nuts, bolts, light, and sound modules provide basic
educational and amateur robotics. and other hardware. sensory feedback, and ultrasonic and
In this month’s column, we’ll take The $300 Vex starter kit also accelerometer sensors give the NXT the
a closer look at some of the robot includes a programmable electronics ability to judge distances and even tilt.
72 SERVO 05.2007
RoboResources.qxd 4/3/2007 10:02 AM Page 73
The motors on the NXT are enhanced bipedal robot, the body for a four- and (www.robotis.com). I’ve included
and provide built-in encoders, which six-legged walking robot, and parts to several North American dealers in the
count the revolutions of the drive shaft make a sci-fi looking robot hand. Sources section that follows.
as the robot rolls along the carpet. As pre-fab kits go, the Bioloid is
While NXT comes with graphical pro- Robix Rascal relatively inexpensive, especially when
gramming software, LEGO also provides you consider it comes with everything
an open source firmware API (applica- The Rascal Classroom Robot Set you need to start building, including
tion programming interface), so you can from Robix is, as its name the battery pack and the motors. The
lift up the hood and work directly with implies, designed for classroom study servos used in the Bioloid are not off-
the electronics in the NXT module. of robotics and mechanics. Yes, you the-shelf; in fact, they are proprietary
can build several different types of designs that boast upwards of 220 oz-
Lynxmotion robots with the Rascal kit, but in torque (at 9.6 volts). They are unlike
Servo Erector Set the emphasis is on learning about traditional servos in that they are
mechanical design and construction. operated using serial commands. You
Lynxmotion was one of the first Rascal parts are relatively simple don’t need or use separate pins on a
robotics-specific companies to realize and straightforward, and that’s the microcontroller for each servo; instead,
the benefits of producing prefabricated secret to their ingenuity. Kits are all the Bioloid servos are connected to
construction parts, allowing builders composed of standard R/C servos and the same serial communications input.
the freedom to create custom designs. pre-cut and pre-drilled aluminum angle The Bioloid servos provide torque and
Their Servo Erector Set is composed of stock called Rascal Links. The links angular feedback.
a variety of stamped aluminum metal come in different lengths. When you consider that a high-
brackets that are specially designed to The servos in the Rascal kit are torque standard R/C servo motor costs
work with common R/C servo motors. standard R/C unique, and can be about $40, 18 such motors would set
By connecting the brackets, chan- commanded using most any serial you back $720. At $899 for the full
nels, tubing, and other construction servo controller or microcontroller. A Bioloid kit, you get the equivalent value
hardware in various ways, it’s possible controller is included in the Rascal kit, in servos, plus a microcontroller, battery
to build two-, four-, six-, and even which is designed to operate up to 32 pack, and construction pieces. Actually,
eight-legged walking robots. In similar servos via a USB link to a PC or Mac. this comparison is not accurate,
fashion, you can build arms, grippers, Software supplied with the kit provides because traditional analog R/C servos
pan/tilt mechanisms, wheeled robots, a programming environment. do not provide the feedback possible
and just about anything else that uses with the Bioloid servos, and few
standard R/C servos. A page on the Robotis Bioloid are capable of torque much beyond
Lynxmotion site provides a long list of 100-110 oz-in. (The 200 oz-in range is
illustrated examples of what you can An exciting new entrant into the mostly occupied by digital hobby
build using the Servo Erector Set. prefab robot kit arena is the Bioloid, servos, which retail for $75-$125 each.)
The component parts of the compa- from Korea-based Robotis. The full The Robotis kit is a great deal now,
ny’s Servo Erector Set are wide and Bioloid kit (about $900) comes with and promises plenty of fun. It’s likely
varied. Lynxmotion sells some small kits enough parts to — according to the only the first one in a soon-to-be long
with parts designed for specific tasks, sales literature — build 26 different line of all-in-one imported kits from
like a two- or three-degree-of-freedom robots. No doubt with a bit of creativi- Korea, Japan, and China that are sure
leg. Buy four, six, or eight sets to con- ty you could build more, especially if to follow. This is a market that is sure to
struct a complete walking robot. Or, you you combine parts from additional kits. catch on.
can purchase the individual parts sepa- The full Bioloid kit — called the
rately. These parts aren’t inexpensive, Comprehensive Kit — contains a main Ye Olde Standbys
but they’re far easier than making them programmable controller, 18 special pro-
yourself, and cheaper than if you go to a grammable servo motors, and various Not to be forgotten, these
local metal shop for custom-made parts. frame construction pieces. A less expen- construction toys are useful as the
Rounding out the Servo Erector sive entry-level kit (about $350) contains framework for DIY robotics. The best
Set offerings is a complete collection of the controller, but only four servo part: You probably already have at
robot “torsos” or bodies, some made motors and a selection of construction least one set in the back of your closet.
of stamped and pre-drilled aluminum, parts. Both kits also include a multi- Dig it out, and start using it for your
and some from laser-cut polycarbonate function sensor module, which includes next robotics project!
plastic. These bodies are designed to an infrared receiver, infrared distance
attach to the various legs and other sensor, light sensor, and buzzer. • Erector — One of the older construc-
mechanics that you’ve built using Servo Robotis sells their kits through a tion toy brands. The original kits were
Erector Set parts. Among the available worldwide network of dealers. See the made of all stamped metal, but the
torso parts is the framework for a list of dealers on their home page modern versions contain a number of
SERVO 05.2007 73
RoboResources.qxd 4/3/2007 10:55 AM Page 74
plastic pieces. The sets come in various sizes, and are magnetic, hydraulic, pneumatic, static, and robotic mechanisms.
generally designed to build a number of different projects.
Many kits are engineered for a specific design with provisions • K’Nex — Using a series of half-round plastic spokes and
for moderate variations. connector rods, K’Nex encourages construction of larger
models. A number of K’Nex kits are available, from simple
• Plastic Construction Bricks — You can literally build anything starter sets to rather massive special-purpose collections
with plastic construction bricks, typified by the LEGO and (many of which are designed to build robots, dinosaurs, or
LEGO Technic sets. A few companies make “LEGO compati- robot-dinosaurs). Several of the kits come with small gear
ble” sets (without actually saying so) with similar functionali- motors, so you can motorize your creation.
ty. Check out the sets by MEGA BLOKS and others. The parts
snap together, but for more permanent creations, you can Sources for Prefabricated Robot
use a dollop of solvent cement. Use ABS cement for LEGO Construction Sets and Related Parts
bricks; plastic model cement for most of the other brands.
80/20, Inc.
• Tamiya — Besides plastic models, Tamiya makes a line of www.8020inc.net
educational kits that include motors, wheels, tank tracks, and Aluminum extrusions and connection parts for industrial-
a (wired) remote control robot construction set. strength constructions. Useful for larger robots. Check the
site for local retailers.
• Capsela — This popular snap-together motorized parts kit
uses unusual tubular and spherical shapes. The kits contain Construction Toys
unique parts that other put-together toys don’t, such as www.constructiontoys.com
plastic chain, sprockets and gears. Online and local retailer of construction toys. These toys
are available both online and in the retail store: Capsela;
• Fischertechnik — These kits are less toys and more learning Eitech; Erector; Fischertechnik; Geofix; Geomag; K’NEX;
labs. They aren’t designed for use by small children. Pre-made LEGO Dacta; Roger’s Connection; Rhomblocks; Rokenbok;
kits offer a snap-together approach to making working electro- and Zome System.
CrustCrawler
www.crustcrawler.com
US-based reseller of the Bioloid kits, as well as their own
custom-made metal robot kits. Extensive site with plenty of
how-to and background information on using the Bioloid kits.
e-Hobbyland
www.e-hobbyland.com
Well-established retail and online seller of all types
of toys.
Fischertechnik
www.fischertechnik.com
Company website for Fischertechnik in North America.
Check out the Retail Outlets links.
Hobby Engineering
www.hobbyengineering.com
General source for robot parts, as well as a lengthy list
of Erector set kits of all shapes and sizes.
KBtoys.com
www.kbtoys.com or www.etoys.com
Online mail order. Check often for deep discounts on
LEGO, K’NEX, and other brands.
74 SERVO 05.2007
RoboResources.qxd 4/3/2007 10:03 AM Page 75
LEGO Shop-at-Home Rokenbok radio-controlled toys. the website for clearance items.
shop.lego.com
Online outlet for LEGO products, Robotis Timberdoodle
including spare parts (when available). www.robotis.com www.timberdoodle.com
Manufacturer’s site for the Robotis Timberdoodle specializes in home
LEGO Mindstorms line of robot construction sets and education products. They offer a good
mindstorms.lego.com parts. Check out the dealer pages to selection of Fischertechnik kits at good
Informational page for the LEGO find a reseller near you. prices. They also sell K’NEX and
Mindstorms sets. Be sure to check out electronics learning labs. Be sure to
the user-to-user forums to see what Robotshop check their “swan gong” closeout deals.
other LEGO builders are up to. www.robotshop.ca
Resellers of Fischertechnik and US First
Lynxmotion other robot construction sets. www.usfirst.org/community/fvc/
www.lynxmotion.com Main page for the FIRST Vex
Lynxmotion offers complete robot Tamiya Challenge. (If you are a high school
kits, as well as a unique Servo Erector www.tamiya.com student, check with your school to
Set, a collection of brackets, and other Home page for Tamiya. Check out see if they participate in the FIRST
parts for building custom robots using their Educational Construction Series competition. If they don’t, talk to your
standard-size R/C servos. line of kits, such as the remote- teacher or administrator about getting
controlled robot construction set. involved.)
Only Toys
www.onlytoys.com Target VexLabs Vex Robotics Kits
Only Toys carries metal Erector www.target.com www.vexlabs.com
sets; most are for building vehicles, and Retail stores and online site. Both Makers of the VEX Robotics Design
some (like the Steam Engine) are quite offer great deals in clearance items. System. Use their online ordering
elaborate. The company also sells Make it a habit of regularly checking system. SV
SERVO 05.2007 75
Appetizer.qxd 4/5/2007 10:01 PM Page 76
Environmental Sensing in a
Robotics Curriculum
by Chris D. Odom
The Allure and er science programs are not seeking solu- cute, multicolored graphs.
Repulsion of tions to the big questions and the impor- My robotics students, too, incorpo-
Computer Science tant problems. After all, very few of my rate a number of sensors to help their
students will go on to careers in industrial autonomous robots monitor their sur-
The readers of this magazine certain- robotics even though it was robotics which roundings. But because robotics students
ly understand the attraction of robotics. lured them to my courses in the first place. are building and programming their own
After all, designing, building, and pro- Instead, most of my students will pursue probes and sensors, the data collection
gramming robots to do what you tell them majors in the pure research fields of chem- process is much more creative, transpar-
to do is exciting, challenging, and istry, biology, physics, and environmental ent, and rewarding. Even beginning stu-
mentally stimulating. Recognizing that science; for these are the disciplines that dents learn how to use photoresistors,
microcontrollers and robot kits had attempt to answer mankind’s deepest and thermistors, infrared transducers, and IR
become both robust and affordable, four most fundamental questions. range finders in their robotic applications.
years ago I decided to expand my high Another advantage to designing and pro-
school computer science curriculum to Robotics and Pure gramming your own sensors is the cost: a
include the study of robotics. My students Science 50¢ thermistor does the job of a $22
have certainly appreciated the upgrade. temperature probe; a 25¢ photoresistor
With their line-following, fire-fighting, As I see it, computer science replaces a $59 light sensor; and two pen-
soccer-playing, and land-navigating robots, programs in colleges, high schools, and nies and a piece of conductive foam can
they are proof-positive that robotics even in middle schools should place more be used in place of a $119 force sensor.1
applications excite students to the point of emphasis on pure scientific research. Not I should explain that the school in
increasing both their enjoyment and their only is this healthy for computer science which I teach is not set up with a research-
understanding of math, electronics, and students, but it will also give our science- grade electronics laboratory or an industrial
computer programming. (The effect was so minded students a deeper understanding machine shop that some schools enjoy.
positive and immediate that I even wrote a and appreciation of technology. I will Instead, I buy off-the-shelf equipment when
textbook on using robots in the classroom.) demonstrate that even in a robotics I can and emphasize software solutions to
In the four years since I began teach- course it is easy and straightforward to our robotics problems. To this end, I have
ing robotics at my school, enrollment conduct meaningful scientific research, found that NetMedia’s BX-24 microcon-
in my computer science courses has and that the research can be a natural troller and BasicX software fit the needs of
increased nearly 300%. However, this extension of the robotics curriculum. my classroom perfectly. The BX-24 is a fast
is certainly not the trend experienced by Today’s modern educational science and powerful microcontroller with 16 stan-
colleges and universities in the United labs use sophisticated data acquisition dard I/O pins (eight of which function as
States. Despite the increased demand for a interfaces (e.g., Vernier’s LabPro or 10-bit A-to-D converters), 20 MHz 32KB
highly skilled workforce, the number of PASCO’s Xplorer) and a wide array of EEPROM, and a processor speed of 82,000
computer science majors in this country has probes and sensors that measure BIPS, which is able to perform floating-
dropped significantly in the past five years. everything from temperature and voltage point math and is capable of multitasking.
The causes for this decline are numerous, to conductivity and turbidity. These The BasicX software, which is compatible
but the two reasons most commonly acquisition packages are expensive, and with Microsoft’s Visual Basic™ language,
sited by students and computer scientists while I wouldn’t dream of teaching my makes programming the BX-24 easy and
is the media’s attention to offshoring and physics courses without them, I am user-friendly. In my classroom, I use
the fear of another dot-com bust. saddened that my science students treat Robodyssey System’s educational robots,
A third reason cited by a growing them as little black boxes that magically which are equipped with their RAMB moth-
number of experts is the fact that comput- record, display, and plot relevant data on erboard and the BX-24 microcontroller. The
76 SERVO 05.2007
Appetizer.qxd 4/5/2007 10:01 PM Page 77
RAMB allows for direct connection of off- test run, none of the sensors had been the internal temperature lagged behind
the-shelf sensors (such as IR rangers and calibrated, so only raw data is displayed. the external temperature as expected.
GPS modules). Furthermore, with a simple It is not necessary for the ESS to be This is most pronounced when the ESS
voltage divider, fabricating our own vari- tethered to a PC, for data can be stored was first taken outside into the hot
able-resistance sensors such as thermistors with the BX-24’s EEPROM. The amount weather and again when placed into
and photoresistors is a trivial matter.2 My of data one can collect is dependent the cool stream. Note, too, that the
point is this: Collecting, recording, and upon the amount of available space. water temperature rose substantially
analyzing data is a breeze with the BX-24 Because my computer program after the storm runoff from the warm
and RAMB. consumed only about 6,000 bytes of earth made its way into the creek.
the 32,768 total, 26,768 bytes were set Finally, notice the lag time in the diurnal
The Environment aside for data storage. Each sensor was heating and cooling of a body of water
Sensing Station (ESS) connected to an A-to-D channel on the associated with sunrise and sunset.
BX-24 and each data point was stored Data from the Conductivity graph
It seemed to me that a few lessons as a two-byte integer. I also decided to also shows the effect the thunderstorm
in environmental science, with its heavy store the local time using the BX-24’s had on the creek’s electrical properties.
dependence on remote sensing and data built-in real time clock (RTC), which While more difficult to analyze, the
collecting, would be a natural extension requires 12 bytes per reading. With five effect of the storm is unmistakable.
of my robotics curriculum. To test this sensor readings and the time, 22 bytes I believe there are many things to
idea, I designed an Environment Sensing of EEPROM was consumed with each glean from this experiment. First, there
Station (ESS) made of three-inch (I.D.) data sample. This means, for example, is room in a robotics curriculum for pure
PVC pipe and fitted it with a BX-24 and that our application could collect one scientific research. Second, it doesn’t
RAMB to make simultaneous readings of sample each second for 20.3 minutes; take a lot of equipment or program-
up to seven sensors. (The BX-24 has eight or it could collect a sample, say, every ming skill to perform solid scientific
analog ports, but I used one of them to 15 minutes for a total of 12.6 days. Not experiments. Third, even the simplest of
set the apparatus to data-taking or bad, huh? experiments can offer a wealth of data
printing mode.) The ESS, which only cost For my first run, I elected to record that could keep a classroom occupied
a few dollars to build, is capable of col- data every two minutes for 18 hours. for days.
lecting data for several days — or longer Little did I realize this test run would So, will this and other similar
if a solar panel was used to recharge the yield some amazing data. At 18:10 on traditional science experiments find
batteries. The station is weather- and August 7, 2006, I began acquiring data. their way into robotics curriculum?
water-proof, so I decided to test it under- At 18:20, I left my office and carried the Absolutely! Certainly my future robotics
water using five sensors to measure and instrument to a creek running through students will continue to create their
record internal and external temperature, campus. At 18:37, the ESS was placed fire-fighting and soccer-playing robots,
ambient light, turbidity, and conductivity. in the creek and submerged under but they will also see how technology
All the sensors were inserted into about 25 cm of water. and science mesh together. Hopefully,
Robodyssey voltage divider boards (VDB) Data was later imported into Excel my students will get a taste of real
equipped with variable resistors.3 These and graphed back in the lab. If you’d scientific inquiry that may even be
VDBs were then connected to the BX-24 like to study the graphs (which are more rewarding than they would get in
A-to-D pins via the RAMB. While I gener- available on the SERVO website; a traditional science class.
ally prefer the fixed resistor VDBs, the www.servomagazine.com), note For more information on the this
variable ones are nice during the that light intensity, temperature, and experiment including computer code,
development stages of an experiment. conductivity increase along the vertical raw data, graphs, construction plans,
Measuring temperature and light intensi- axis. You should know that on August 7 classroom curriculum materials, and
ty is a simple matter of screwing a there was a brief but powerful thunder- detailed local weather reports for
thermistor and photoresistor into their storm that occurred between 21:53 August 7-8, 2006, see www.basicx
respective VDBs. Conductivity was and 22:15. androbotics.com/apps/ and click on
measured with a gold IC wire-wrapping If you look at the Light/Turbidity Environment Sensing Station. SV
socket. The pins along one side were graph, note that the ambient light probe
soldered together and connected to a was sensitive enough to detect twilight Footnotes
wire, as were the pins along the other and dawn conditions, the timing of 1) All comparison prices are from PASCO’s 2007
catalog.
side. The two wire leads were then con- which agreed with meteorological
nected to a VDB. In air, the resistance forecasts. From that graph also note that 2) In 2004 we launched the BX-24, the RAMB, and
Robodyssey’s voltage divider boards (VDB) into
between the two rows of pins is very the turbidity sensor detected an influx of space onboard NASA’s Terrier-Orion rocket. The
high so the signal read by the BX-24 is soil runoff immediately after the storm. I acceleration at lift-off was nearly 20Gs and all
assume the noise recorded by these two components worked flawlessly throughout the 25-
nearly equal to the input voltage of 5V. minute mission.
In water, the resistance varies according sensors after sunrise was due to debris
to its mineral content, which can be that became trapped by the ESS. 3) With the addition of a Robodyssey Multiflexer,
we would be able to monitor seven additional
quite variable. I measured the turbidity Data shown on the Temperature sensors.
of the water by shining a bright LED graph illustrate many interesting
4) You can fabricate your own divider board, but
directly into a photoresistor.4 During this thermodynamics processes. Note that the VDB is inexpensive and easy to use.
SERVO 05.2007 77
Full Page.qxd 4/5/2007 9:26 AM Page 78
Founding Sponsor
Premier Sponsors
Gold Sponsors
www.roboevent.com
Then&Now.qxd 4/5/2007 9:29 AM Page 79
Then NOW
a n d
ROBOT NAVIGATION
b y T o m C a r r o l l
track light. Is that navigating? No way! order to locate the light and the wrong
It sure amazed my friends and my turns that caused her to erratically search
science teacher, though. I managed to until the light was rediscovered. When it
learn logic the hard way and ate up a came close to the light and its hutch, it
bunch of flashlight batteries in the would dance about wildly, much like a
process. It sure would have been nice to moth near a porch light, until its battery
have some simple logic ICs or a micro- was low, and then enter its hutch until
controller back then. My ‘programming’ the batteries were replaced.
and ‘software’ was anything but soft; it Figure 3 shows the actual path of
was a hard, hot soldering iron. one run highlighted by a candle on top of
the robot in a timed exposure. Walter
Grey Walter’s Tortoise used an early form of behavior-based
Figure 1. Elsie — crude but effective. logic that is now used in the designs of
Navigates to a Light many small robots today. He developed
allowed the robot to turn away from the In my SERVO column of October the first artificial intelligence, artificial life
wall. If it hit a wall head on, a wooden ’05, I wrote about Grey Walter — the form, and perceptual navigation to be
stick that ran from front to back with English neurophysiologist who built the used in a robot. This is pretty amazing
bumpers on each end toggled a DPDT first autonomous mobile robot in 1949 navigation for a robot of six decades ago.
switch to change the polarity of the that he called an imitation of life. His
battery power supply to the motors. It robot named Elsie only had a two-tube Modern Robot
worked well for a kid’s robot as it ‘brain with a single photoelectric tube Navigation
‘navigated’ itself around my house like a ‘eye,’ yet was able to navigate to its
crazed sheep randomly grazing grass. ‘hutch’ much like a bacterium. Figure 1 Let’s jump forward 60 years to the
I later added the relays to provide a shows Elsie without her plastic shell. The age of microcontrollers, GPS, and
bit of logic (i.e., if this switch and that do photoelectric tube stands above the precise navigation. I purposely skipped
this, then cause this action to occur) and front, steered wheel and has blinders on mentioning a robot’s ability to deter-
sometimes wired them wrong to occa- each side to focus only on a light source. mine its position until I could discuss the
sionally short out the batteries in certain You can see the worm gear drive steer- methods that we have today. In course
situations. The hard part came when I ing system and the two tubes straddling determination, you have a starting point
used a couple of cadmium sulfide ‘photo the shaft in the middle of the robot. and a goal or ending point. In many
resistive cells’ to trigger relays in the pres- Figure 2 shows a diagram represen- robot contests, a robot is placed
ence of light. I had one mixed up robot tation of the robot’s path to a seven- randomly at a location and it scouts out
for the longest time until I finally figured watt light source. Notice the opaque its goal. In many of the fire-fighting
out a relay logic circuit to have the robot objects that Elsie must search around in contests like the Trinity College contest
in Connecticut, a robot starts at a gate
Figure 2. Elsie’s path to light. in a maze and must navigate its way to
an open flame (candle) and extinguish it.
In other applications, a robot can
start anywhere and search for its goal. I
can randomly place my Roomba floor-
sweeping robot on the floor, turn it on,
and it navigates its way about the room,
sweeping in a definite pattern. I have two
virtual wall units that I can place by an
open door or the edge of a stairwell to
tell it to not go there. These units act as
beacons that tell the robot that these IR
beams are the same as hard walls. These
devices act just like the aids to navigation
that boaters use, such as lighted buoys,
to tell them to avoid dangerous areas.
Unlike an unmanned airplane or
autonomous underwater vehicle that
operates in a 3D environment, most
of our robots operate in a two dimen-
sional, flat plane environment. Robots
can use XY coordinates to determine
their position, the direction it is facing,
80 SERVO 05.2007
Then&Now.qxd 4/5/2007 9:38 AM Page 81
their eventual target area and course miles of desert environment, following a
to follow, and the required distance to course set out by DARPA just before the
travel. Resourceful experimenters have start of the race. The first race basically
placed retro-reflectors that act some- fizzled with the leader only making a
what like my virtual wall units to tell a few miles and most of the rest failed just
robot where a door is located or a past the starting gate. The next race
dangerous area such as a drop-off. was much more successful with several
These can be made of simple reflective vehicles completing the 132-mile course.
tape that you can buy in many stores. The VW Touareg SUV from Stanford
The robot can bit map a room by a University won the two million-dollar
series of random searches and store prize in just under seven hours. The next
this in its memory for use at later times. planned race — The DARPA Urban
Various vision systems such as the Challenge — is an even more exciting
CMU cam and AVR cam can look at an competition with the vehicles driving
area, determine obstacle locations, through a city. DARPA announced oppor-
map out a course, and actually steer tunities for urban challenge teams to
the robot around these objects to receive funding in amounts up to $1M to
arrive at its target location. The new develop their autonomous vehicle. Sixty-
WowWee Roboquad (see Figure 4) crab five proposals were reviewed and evalu-
robot uses a suite of various sensors in ated, and 11 recipients were announced,
its head to navigate about a tabletop. including a smaller VW Passat from Figure 3. Elsie circles light using
The many types of sensors that a Stanford that is a bit more street-friendly. a candle as a beacon.
robot experimenter has available deter- The prizes are $2 million for the fastest
mines just how his robot will navigate its qualifying vehicle, and $1 million and Robotics Society and other groups
way about its environment. Direction-find- $500,000 for second and third place. The began what is called Robo-Magellan
ing devices such as compasses are not the original race vehicles relied on sophisti- contests. These small, under 100
only tools he has available. Mechanical cated vision systems to avoid obstacles pound robots use GPS to navigate a
whiskers connected to simple SPST and keep on the rugged roadway, but specific course outdoors. These compe-
switches are the most popular devices to their main navigation aid was GPS. titions have proved to be very popular.
detect walls and obstructions. Active On June 26, 1993, the Air Force
ultrasonic and IR distance sensors are very launched the 24th Navstar satellite into How Can I Use
popular to detect barriers, walls, and orbit, completing a constellation of GPS With Robots?
obstructions without the robot having to 24 satellites known as the Global
actually go to these objects to ‘feel’ them. Positioning System, or GPS. In May of A constellation of 24-30 or more
Maze and micromouse robots can 2000, a signal degradation system that GPS satellites is in orbit around the
use reflective phototransistor/LED pairs to the military applied to the GPS satellite earth (see Figure 5). They are in what is
detect drawn lines or tops of walls. Gyros signals to prevent possible enemy use known as ‘half geosync,’ or in an
designed for RC helicopter applications, of the highest accuracy part of GPS, approximate 12-hour orbit and three or
ring laser gyros, aircraft instruments, Selective Availability, was removed, more are visible at any place on earth
accelerometers, specifically located active thus allowing greater accuracy for all at any time. Newer ones are orbited as
beacons and bar codes, and even hacked users. This new DARPA challenge will older ones are taken out of service and
computer mice for X-Y positioning can all also rely heavily on this system. most GPS equipment is updated as to
assist the robot in determining its location GPS really hit home for the robot the location of specific satellites. Each
and orientation. An experimenter can experimenter when the Seattle
place multiple IR beacons in a room and Figure 5. GPS satellite.
the robot can triangulate the angles to Figure 4. The new WowWee
the beacons and determine its exact Roboquad robot.
position by simple trig calculations.
Advertiser Index
All Electronics Corp. ..............................27, 43 Lynxmotion, Inc. ...........................................13 ROBOlympics ...............................................67
AP Circuits .....................................................56 Maxbotix .......................................................43 RoboteQ .........................................................9
AWIT ..............................................................43 Maximum Robotics ................................24, 43 Robotis Co. Ltd. ...........................................57
CrustCrawler ...................................................3 Net Media .....................................................83 RobotShop, Inc. .....................................43, 75
Electronics123 ..............................................27 Parallax, Inc. ...................................Back Cover Schmartboard ...............................................27
Futurlec .........................................................43 PCB Fab Express ...........................................50 Sensory, Inc.............................................43, 56
Hitec ................................................................7 PCB Pool ..................................................12, 43 Solarbotics.....................................................18
Hobby Engineering .....................................26 Pololu Robotics & Electronics ..............25, 43 Technological Arts .......................................43
Images Co. ....................................................43 RCATS ............................................................27 The Machine Lab ..........................................40
Jameco Robot Store ................................2, 43 ROBO Business 2007 ...................................78 Titanium Joe .................................................35
Lorax Works ............................................27, 43 Robodyssey Systems, LLC ...........................74 Vantec ...........................................................50
82 SERVO 05.2007
CoverInside.qxd 4/5/2007 9:08 AM Page 2
robotic kits
Robotic Kits Components...
chassis
...there’s something for everyone!
Robotic kits help you and your child to experience and learn about perception and
control using a variety of sensors and actuators. Challenge yourself with Jameco’s
servos selection of fun and interactive kits! You or your child can assemble the kits and
then enjoy endless hours of discovery.
Engineers,
.
We’ve Got
It All!
motors
I-800-374-576
4
WWW.ROBO
TSTORE.CO M
CATALOG I62
test equipment
WWW.ROBOTSTORE.COM/SRD
I-800-374-5764 Call for your free catalog today!
software
books
0 5>
$7.00
4
CANADA
74470 58285
$5.50
U.S.
0
Vol. 5 No. 5 SERVO MAGAZINE GRIPPER • SPIDER CRABS • ULTRASONIC MICROSENSORS • THE ULTIMATE REMOTE CONTROL May 2007
Page 84
12:07 AM
4/6/2007
Cover.qxd