Académique Documents
Professionnel Documents
Culture Documents
$7.00
4
CANADA
74470 58285
$5.50
U.S.
0
Vol. 5 No. 11 SERVO MAGAZINE TOUCH BIONICS • KILLER ROBOTS • HUMANOIDS • ANDROID ARMS November 2007
Page 84
7:56 PM
10/10/2007
Cover.qxd
CoverInside.qxd 10/10/2007 11:34 AM Page 2
:cignaZkZaXdcigdaaZg
hj^iZYidhbVaagdWdi^Xh
VcYXdcigdaVeea^XVi^dch
B^XgdbdjhZX]Vhh^h
GdWdcdkV"&
:VhnHiZe(%%%!VYkVcXZY
hiZeeZgbdidgYg^kZVcY
;^ghi"XaVhhXjhidbZghZgk^XZ### XdcigdahnhiZb
GdWZgi<dgYdcJc^kZgh^in!6WZgYZZc
DG9:GDCA>C:/ GdWdiX]Vhh^h!eVgih
VXXZhhdg^Zh
LLL#68I>K:"GD7DIH#8DBI:A/ ))%&,+&'(.'+,
=D@JNDJG<"%)AMhiViZd[ =D@JNDE7H"%(?C
i]ZVgiaVhZggVc\ZÃcYZg >c[gVgZYgVc\ZÃcYZg[dg HZchdgBdjci^c\=VgYlVgZ
^cYddgZck^gdcbZcih
6JI=DG>H:9=D@JND9:6A:G
TOC Nov07.qxd 10/10/2007 4:58 PM Page 4
PAGE 62
Columns Departments
08 Robytes by Jeff Eckert 06 Mind/Iron
Stimulating Robot Tidbits
78
22 The Combat Zone
Then and Now by Tom Carroll
Humanoid Robots
4 SERVO 11.2007
TOC Nov07.qxd 10/10/2007 5:20 PM Page 5
11.2007
VOL. 5 NO. 11
51 GPS
by Michael Simpson
Part 2: Take a look at the Etek EB-85A,
Copernicus, and Holux GPS modules.
PAGE 36
SERVO 11.2007 5
Mind-Feed Nov07.qxd 10/10/2007 9:54 AM 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
SERVO 11.2007 7
Robytes.qxd 10/9/2007 7:56 AM Page 8
8 SERVO 11.2007
Robytes.qxd 10/9/2007 7:57 AM Page 9
Robytes
use electrical signals generated by Interactive Boybot from Hanson Robotics (www.hanson
muscles in the remaining portion robotics.com) is actually named
of a patient’s limb, with the signal after the inventor’s son. Zeno’s
being picked up by skin-mounted main claim to fame is how well he
electrodes. Not shown in the photo is imitates human facial expressions,
the available “cosmesis” covering, but he also walks, talks, and can
which makes it appear more lifelike in learn to recognize individual human
use. The device is already being fitted beings (using a camera located
to patients in many clinics in the US behind one of his eyes) and address
and Europe. them by name.
Like other Hanson creations (recall
the familiar talking Einstein bot), Zeno
is based on AI capabilities that help
Build Your Own ROV him learn and interact with his
environment, a complex range (62, to
be precise) of facial and neck
expressions, his somewhat weird
Frubber™ polymer skin, and the ability
to develop a unique personality.
According to Hanson, Zeno and his
pals can be used in education,
psychiatry, military training, and
character development for animation.
Some people find him adorable,
Zeno — a 17-inch mechanical boy —
walks, talks, and interacts and others have described him as
The ROV-in-a-Box kit comes on a personal level. “creepy,” so you’ll have to judge for
more or less complete. Photo courtesy of Hanson Robotics. yourself. Zeno is still a prototype, but
Photo courtesy of !nventivity LLC. the plan is to have a commercial
He looks quite a bit like the version on the market in two years for
It’s not pretty, but at least it’s Japanese comic book character about $300. SV
pretty cheap. Designed for ages 12 Astro Boy, but the new Zeno bot
and up, the ROV-in-a-Box kit from
!nventivity (www.nventivity.com)
sells for $249.95 and includes all of
the required parts (frame, motors,
light, camera, tether, controller,
and battery), plus an instruction
manual. It also comes with
propellers, switches, connectors,
“buoyancy devices” (presumably the
chunks of plastic foam shown in the
photo), and pretty much everything
else. All you have to provide is PVC
cement, tools, and a video monitor.
According to the vendor,
independent left and right props give
it good controllability and zero-radius
turning, and the light is bright
enough to allow night missions.
See the company’s website for a six
minute video.
SERVO 11.2007 9
Geerhead.qxd 10/9/2007 7:53 AM Page 10
I Institute
Massachusetts
(WPI) supported
Academy
Mathematics and Sciences at WPI (or
of
students’ and their robots’ ability to (1)
hang inflated colored tubes on pegs,
configured in rows and columns, on a
for competition. The teams earned
points by hanging their alliance-colored
tubes on one or more of the rack
MASS Academy, Team 190) won the 10-foot-high center “rack” structure; pegs,” says Miller.
FIRST Robotics World Championship (2) program a robotic vision system to According to Miller, each hung
in the Georgia Dome in Atlanta on navigate the robot; and (3) “lift” other tube was worth two points unless it
April 14. Team 190 designed and robots more than 12 inches off the was contiguous (either vertically or
constructed the winning robot — floor, according to Brad Miller, a Team horizontally) with another hanging
Goat-Dactyl — early in the season. 190 member. tube of your alliance color. “The
Goat-Dactyl is a wheel-locomotive The leaders of the competition total point count in this case was
robot with sensors for autonomous formed the aforementioned rack equal to two raised to the power
control and R/C for remote. Team 190 structure out of eight columns with corresponding to the length of the
designed the robot to accomplish three pegs each on which robot teams matched tube row or column (e.g., one
specific, competition-related tasks as could place their tubes. tube = two points, two tubes = four
part of the FIRST 2007 competition. “Every other column had a green points, three tubes = eight points ... a
The robot completes the tasks as part light. The teams calibrated their full circle of eight tubes = 256
of a game in competition and collabo- robots’ cameras to track the light. points!),” Miller explains.
ration with other teams’ robots. Six robots took the field during a Team 190 made the Goat-Dactyl
This year’s competition game — match. Officials assigned the robots robot from a kit that every team had to
adhere to. The kit includes parts for the
Students with Goat-Dactyl competition Goat-Dactyl, mouth wide open, just robot’s pneumatic and electrical
robot and control console queuing up before completing the lift of alliance systems, as well as a choice of motors.
before a match. The driver is thinking partners. Dan Jones, operator, operating
about strategy. Dan Jones, robot the controls in the background. The robot itself consists of four
operator, is in the foreground and CIM FR801-001 motors, which drive
Colin Rody, driver, is in the background. the robot.
The large, broad metallic gripper
that is the primary capability of the
robot opens and closes with the aid of
an RS-540 gear motor (Banebots). Two
Globe 409A587 motors actuate the
robot’s ramps.
The team machined both the
10 SERVO 11.2007
Geerhead.qxd 10/9/2007 7:53 AM Page 11
GEERHEAD
GEERHEAD
SERVO 11.2007 13
MrRoboto.qxd 10/9/2007 10:34 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
Q . It is my understanding that
the HSR-8498HB servos that
are used in the Robonova
something here. Can you help me?
— Pete Senganni
sketch of the PWM (Pulse Width
Modulation) control signal timing that
is required for this servo to return its
humanoid robot have position
feedback capabilities, so I bought a
couple of them from Tower Hobbies.
I have been trying for several days
now to figure out how to get position
A . The key to doing this is to use
a pullup resistor on the signal
line. This is required for
bi-directional communication since
the signal line is an open collector.
current position.
To obtain the current position of
the servo, you need to send a 50 µs
pulse to the servo then wait for a
minimum of 2 ms before measuring
data from these servos. Figure 1 shows a simple schematic for the width of the return pulse. The
From what I have seen on the connecting an HSR-8498HB servo to critical element required to measure
Internet, all I have to do is send the a BASIC Stamp. Here, I used a 1K ohm the pulse width is to make sure that
servo a 50 microsecond pulse, and resistor as a pullup resistor on the the servo signal line that is connected
it will return a position signal that is signal line. Without the resistor, to the microcontroller is changed from
similar to the regular pulse width you will not receive a signal back an output signal line to an input signal
to move the servo. I am missing from the servo. Figure 2 shows a line immediately prior to measuring
Figure 1. Connecting an HSR-8498HB servo to a BASIC Stamp for positional bi-directional control.
+5V
SOUT VDD
SIN VIN +4.8 - 6.0V SERVO POWER
ATN 1 KΩ
VSS RES
BASIC STAMP 2
FAMILY
P0 P15 SIGNAL
P1 P14 4.8-6.0V SERVO
P2 P13 GND
P3 P12
P4 P11
P5 P10
P6 P9
P7 VSS P8
HSR-8498HB SERVO AND CABLE
14 SERVO 11.2007
MrRoboto.qxd 10/9/2007 10:34 AM Page 15
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
16 SERVO 11.2007
Full Page.qxd 10/10/2007 11:42 AM Page 17
Events.qxd 10/9/2007 11:28 AM Page 18
Send updates, new listings, corrections, complaints, and suggestions to: steve@ncc.com or FAX 972-404-0269
18 SERVO 11.2007
Full Page.qxd 10/10/2007 11:44 AM Page 19
Nov07NewProd.qxd 10/10/2007 4:56 PM Page 20
New Products
N E W P RO D U C T S
feedback loop in Switch-Mode Power Supplies (SMPSs)
CONTROLLERS & PROCESSORS that use microcontrollers for general system intelligence
and control. The integration of the PWM’s SMPS input and
2 MHz Pulse-Width Modulator output interface via its voltage comparator, battery-
voltage, and current-sense amplifiers — plus its 1A
M icrochip Technology,
Inc., now offers the
MCP1631 2.0 MHz, high-
MOSFET driver — enable designers to use this single device
to perform many different functions in their designs. The
result is a smaller design footprint and lower overall cost.
speed pulse width modula- Additionally, the MCP1631 is controlled by an easily-
tor (PWM). The highly inte- programmable microcontroller, meaning that exact charge
grated device contains a 1 profiles for a variety of battery-charging systems can be
ampere integrated MOSFET accurately met, while closing the feedback loop with the
driver, high-speed compara- speed and precision needed for safe charging and long bat-
tor for over-voltage protection, and both battery-current tery life. The PWM’s UVLO and over-temperature protection
and voltage-sense amplifiers in one small package. features enhance the safety of battery-charger designs.
Protection features, such as under voltage lock out (UVLO) High-voltage versions of the MCP1631 PWM are
and over-temperature protection, come standard with the available (Part # MCP1631HV), which operate from 6V to
PWM, which is capable of charging multiple battery 16V and include a linear regulator (LDO). The standard
chemistries, including Li-Ion, NiHM, NiCd, and Lead Acid. versions of the device operate from 3V to 5.5V, and do not
The MCP1631 PWM provides a means to close the include a LDO. Possible applications include handheld
New Products
medical, consumer, and industrial electronic devices that on each leg. When used with a gripper, it will help
require power management and SMPS technology, with a detect when the gripper has touched an object and
focus on battery charging. Examples include intelligent how much force the gripper is actually applying to an
power supplies, smart battery chargers, RF remote object. Twenty user inputs are available for connecting
devices, handheld scanners, parallel power supplies, and to bumper switches or other sensors, allowing your
AC power factor correction. robot to explore its environment. Also on-board is a three-
For further information, please contact: axis accelerometer which is perfect for today’s balancing
BOTs. The built-in SD card interface can be used for load-
Microchip Website: www.microchip.com
ing new programs into the robot, as well as storing data
and sound files to use with the built-in audio recording
and playback circuitry. User messages or diagnostic data
MOTOR CONTROLLERS can be displayed on the 2 x 16 character LCD. High
current LED drivers can deliver power to up to six
externally mounted high brightness LEDs to illuminate the
Robot Controller environment, show system status, or just look cool. The
Board That Does it All three two-amp solenoid drivers can be used to power
accessories such as motors or fans. The daughterboard
SERVO 11.2007 21
CombatZone.qxd 10/9/2007 10:28 AM Page 22
Technical Knowledge
26 Building a Lightweight
Launch Bot by Chad New
PARTICIPATI N
Events Being a Safety Jerk
25 Results — Aug 11 - Sep 11 ● by Kevin Berry
27 Upcoming — Nov & Dec
I n my opinion, there is no
tougher job at an event than
being the Safety Officer (except
the rules. For example, if the rule
says a bot must “spin down” in 30
seconds, what do you do with a
for Event Organizer, that is). “33 second” bot? Do you insist
Most of the builders are your they meet the 30 seconds, are
friends, they’ve worked hard to you allowed to use judgement,
get ready, and are very posses- or do you refer this to the
sive of their designs. You — as EO? Understanding the rules of
the person in charge of keep- engagement is an important step
ing people from getting hurt in avoiding misunderstandings.
— have a real responsibility The next step is to communi-
to do the right thing. cate with the participants ahead
The first step when of time, if possible. Let them know
asked to be a Safety you are going to be tough on
Officer is to have a discus- enforcement, so they aren’t
sion with the EO. You surprised during check-in. EOs
need to understand their vary widely on safety, so someone
tolerance for “gray areas” in coming from an “easy” event to a
22 SERVO 11.2007
CombatZone.qxd 10/9/2007 10:28 AM Page 23
“tough” one might be shocked or to fix it.” Another tack is personal, understanding. Good will is 90% of
angry if they are denied entry. but not threatening. “If you or running an event, and spending the
The final step during actual someone else gets hurt, I’m going to EO’s good will ought to involve them.
safety checks is to make sure to be feel terrible about it, even if you say In the long run, out of the frenzy and
calm, level-headed, and non-involved. it’s not my fault. Let’s work together emotion of an event, it’s easy to see
That means making the rules the bad to fix that.” that if the rules are known, builders
guy, not the Safety Officer. “I’d like Sooner or later, though, you are should follow them, and our sport
to overlook that weapon twitch, but going to have to “86” a bot. Before prides itself on a clean safety record.
the rules say ‘no movement,’ and it’s I do that, I consult with the EO, No builders, staff, or spectators hurt.
underlined, so you’re going to have even if we have reached an earlier Period. SV
UPDATING THE
BRITISH FLEET
Evolution of a Rob t Army
● by James Baker
SERVO 11.2007 23
CombatZone.qxd 10/9/2007 11:15 AM Page 24
24 SERVO 11.2007
CombatZone.qxd 10/9/2007 10:28 AM Page 25
EVENTS
RESULTS — August 11th - September 11th
● Featherweight — Little Flipper 2.
R obot Battles held their annual
Labor Day event at Dragon*con
28th-31st at Haven Hafan y Môr
Holiday Park, North Wales. Go to
in Atlanta, GA. Results were not
available at press time, but will be
featured in an upcoming issue. Go to
www.roamingrobots.co.uk for more
information. Results are as follows: R obots Live presented a show on
September 1st-2nd
Sportspace Hemel Hempstead. Team
at
SERVO 11.2007 25
CombatZone.qxd 10/9/2007 10:29 AM Page 26
TECHNICAL KN WLEDGE
Building a Lightweight Launch Bot
● by Chad New
26 SERVO 11.2007
CombatZone.qxd 10/9/2007 2:44 PM Page 27
EVENTS
UPCOMING — November and December
H ORD Fall
2007 will
be presented
their website at www.ohiorobot
club.org.
Hadden Sports Complex December
1st in Nottingham, England. Go to
www.roamingrobots.co.uk for
by the Ohio
Robot Club in R oaming Robots will present an
event at the Maidstone Leisure
more details.
Brecksville, OH
on November
3rd. This event is for Fairy, Ant, and
Centre in Kent, England, on
November 24th, and at the Harvey R oboChallenge will present their
Thinktank Christmas Special
December 28th-29th in Birmingham,
Beetle weight combat robots. It will England. Go to www.robochalle
be held at the Cuyahoga Valley nge.co.uk for more details. SV
Career Center (CVCC) (south east of
Cleveland). For complete details
including rules, safety forms, release
forms, maps, and local hotels, see
SERVO 11.2007 27
Cieslak.qxd 10/9/2007 11:25 AM Page 28
AUTOFLEX 2.0
New and Improved Autonomous
Programming Tool for FIRST Robots
by Brian Cieslak
I
n the March ‘06 issue
of SERVO Magazine, I
introduced you to a
program called AutoFlex — a
tool used for developing
autonomous routines for FRC
(First Robotics Competition)
robot controllers.
(1024/ number_of_inputs) - 1 =
Web Links max_tenths_of_seconds. For exam-
ple: (1024/4 inputs)-1 = 255, so
For Autoflex files TIME_LIMIT could be set to 255
http://team1675.com/ tenths_of_seconds. (25.5 seconds).
teamdownload.html
// The length of the autonomous
For competition routine in tenths of seconds
port dongle
#define TIME_LIMIT 150
www.ifirobotics.com/
FIGURE 5 oi.shtml
d) You can assign which digital port
you want to use for your WRITE_
5) Configure Autoflex.h to reflect your //inputs on the line below. PROTECT jumper. If you don’t want
robot system. Sections that you #define NUM_OF_INPUTS 4i to write protect your autonomous
may want to consider changing include code or you have used up all your
the following: b) You can determine what you want digital ports, re-define WRITE_
to use as the ‘Record Button.’ The PROTECT to ‘1.’
a) Determine how many inputs you default is port 1 trigger Button.
want to capture and which ones. // if jumper in place then do not
//add defines here to assign //define the mechanism that will //record (assuming jumper pulls pin
//commands to user controls that //act as the record button. //low)
// you want record/ //In this example port trigger is a #define WRITE_PROTECT \
#define AUTO_COMMAND1 p1_x //button on the OI. (rc_dig_in01)
//left Joystick x // that you would press to the
#define AUTO_COMMAND2 p1_y //forward position to start recording e) Since an FRC robot uses a
//left Joystick y longer timing interval than VEX
#define AUTO_COMMAND3 p2_y #define \ robots during autonomous opera-
//right joystick y AUTO_BUTTON_REV_THRESH \ tion, uncomment the #define FRC 1
#define AUTO_COMMAND4 p2_x (unsigned char)100 // used by Vex line to adjust the timing if you are
//right joystick x #define \ adding Autoflex to a FRC robot.
//#define AUTO_COMMAND5 AUTO_BUTTON_FWD_THRESH \
//uncomment to add another input (unsigned char)154 // used by Vex No More Excuses
//#define AUTO_COMMAND6 #define \ to Sit Idle!
//uncomment to add another input AUTO_NEUTRAL_PWM_VALUE \
(unsigned char)127 When I attended FIRST Regional
// Number of inputs we plan to competitions in Milwaukee, WI and
//record #define AUTO_RECORD (p1_sw_trig) Cleveland, OH and the FIRST National
// Default is set up to save 4 inputs. //port_1 trigger to start recording Championship in Atlanta, I was
//You can save up to 6 surprised by how many robots sat idle
// inputs. You can define two auto c) You can adjust the length of time during the autonomous segment of
//command lines above. you want to record commands by the match. Our team started touting
// then change the number of changing the TIME_LIMIT value. the benefits and simplicity of the
Default is 150 tenths of a second Autoflex program there and enabled
FIGURE 6. Autoflex was used to program (or 15 seconds). The maximum value several teams to compete during that
a large claw-like manipulator during the of TIME_LIMIT depends on the 15 second period at the beginning of
autonomous period at the beginning number of inputs you are trying the match. Even sending the robot out
of the Rack-n-Roll competiton.
to save. The max number of to a defensive position is better than
command values that can be saved just sitting there.
is 1,024. To determine the max time I do want to emphasize, though,
available, use the following formula that Autoflex is not a substitute for a
well thought out autonomous program
Contact the Author that uses sensors and feedback
algorithms. To be truly autonomous,
Brian Cieslak is a mentor for FIRST the robot must be aware of and react
Team 1675, The Ultimate Protection to its environment. So programmers,
Squad. He can be contacted via you are not off the hook.
email at K9WIS@yahoo.com. See you in the ‘Pits.’ SV
30 SERVO 11.2007
ShowcaseNov07.qxd 10/10/2007 6:15 PM Page 31
7KH(VFDSH
I M S e r v ic e
5RERW¶VEXLOWLQ
PLFURSURFHVVRU
HQDEOHVLWWR
P .O . B o x 1 4 2 , N e w H u d s o n , M I 4 8 1 6 5
³WKLQN´RQLWVRZQ
V o ic e : 8 8 8 -4 5 1 -1 6 7 0
G
.65
LUH QJ
TX UL
o r : 2 4 8 -4 8 6 -3 6 0 0
UH ROGH
6
7KHURERWIURJPRYHVIRUZDUG
D e s k to p C N C S o lu tio n s ZKHQLWGHWHFWVVRXQGDQG
UHSHDWVVWDUWPRYHIRUZDUG!
1 2 x 1 2 x 4 9 0 o r 1 7 5 ip m VWRS!OHIWWXUQ!VWRS!ULJKW
WXUQ!VWRS.65
1 2 x 2 4 x 4 N E W 4 0 0 ip m PP:KLWH
ZDWHUFOHDU
S e r v o C N C R o u te r s /('9
S ta r tin g a t $ 1 9 9 5 PFG
$%
D e s k C N C
VHFRQGYRLFHUHFRUGHUSOD\EDFN
PRGXOH7KHHOHFWUHWPLFURSKRQHLVRQWKH
ERDUG2QHEXWWRQUHFRUGVWKHRWKHUEXWWRQLV
PRPHQWDULO\SUHVVHGWRUHSOD\WKHPHVVDJH
SUHDVVHPEOHG$
7KH9HOOHPDQ3HUVRQDO6FRSH
LVQRWDJUDSKLFDOPXOWLPHWHU
EXWDFRPSOHWHSRUWDEOH
RVFLOORVFRSHDWWKHVL]HDQG
FRVWRIDJRRGPXOWLPHWHU
+36
QGV
7KRXVD
L WH P VRQ
PRUH
i m s r v .c o m
E V LWH
RXUZH
Robotics Showcase
The
Power SchmartModule™
will power up your
circuits with your choice
THOUSANDS OF ELECTRONIC
PA R T S A N D S U P P L I E S of -9, -12, +2.5, +3.3,
VISIT OUR ONLINE STORE AT +5, +9, and +12 volts.
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,
$15
CAMERAS, DC-DC CONVERTERS,
HEADPHONES, LAMPS, PANEL
METERS, SWITCHES, SPEAKERS,
PELTIER DEVICES, and much more....
Very Schmart!
O R D E R TO L L F R E E
1-800-826-5432 www.schmartboard.com
Ask for our FREE 96 page catalog
SERVO 11.2007 31
Duesing.qxd 10/10/2007 12:33 PM Page 32
W
hat gratitude could you BattleBots aired, much has changed
feel for these ruthless about bot bouts. The events organized
gladiators — these under the new national Robotic
brutish, soulless beasts who Fighting League (RFL) are austere
breathe fire, wield axes, and ram and down-to-business. Design and
each other until one of them lies “As far as the strategy has taken center stage.
dismembered? sport goes, some robot “I think overall it’s been good to be
Combat robots undoubtedly builders argue whether not being on out of the spotlight,” says Moon. “It’s
satisfy a deep boyish urge to wreck TV anymore is good or bad,” says Billy eliminated the people who just wanted
stuff. But a closer look into the Moon, leader of Team Moon Robotics. to get on TV. It’s let the sport progress
sport of combat robotics reveals “On one hand, the show gave the the way it should.”
something more. The escalating sport a lot of recognition. No matter Moon started building robots for
war of robots produces some where we go, inevitably people have himself when he was only 10. Now, at
surprising spoils. As you enter a seen one of those shows.” the age of 46, he works at Cisco
technological future dominated by The sport received so much Systems as a Distinguished Engineer,
satellites, wireless gadgets, and attention that it briefly became a piece the highest rank of technical
hybrid cars, you may have these of pop-culture currency. The trappings professional. Only a couple of
evil-natured robots to thank. of BattleBots — the glitzy graphics and dozen multi-disciplined “Ninja-Class”
overexcited announcer commentary — engineers work for the firm, taking on
Life After BattleBots also gave the broadcast a veneer special projects that require the most
The sport of combat robotics first of manufactured hype. During the out-of-the-box solutions. During his
entered the public consciousness show’s reign, fighting robots were professional career, Moon has created
through the BattleBots show on parodied on The Simpsons and the more than 200 new patents, at an
Comedy Central, which aired five Tonight Show. average rate of one every six weeks.
tournaments from 2000 to 2002. In the five years since the last Moon is also a popular guy in the
32 SERVO 11.2007
Duesing.qxd 10/10/2007 8:48 AM Page 33
V+ BATTERY HEADER
R2 R3
1
2
3
10K Q5 Q6 10K
STD30PF03L STD30PF03L SCREW TERMINALS
V+
BATTERY + 6
Q1 Q2 +5VDC RC INPUT 5
IRLML2402 IRLML2402 4-20mA INPUT 4
H1 H3 0-10V INPUT 3
2
C6 R7 1
R4 R5 10K
10K 10K CON2
1.0uF D2
Q3 Q4
IRLR3714 IRLR3714 BAS70 V+ +5VDC
MT1 5
4 IC2
MT2 MCP1700T5002E/TT
H2 H4 3
2 IN OUT
+5VDC 1 LED1 D3
GND
FH21 C2 C5
R6 1.0uF 1.0uF
0.27 ICSP 1N4004
MCLR
1
PGC 2
PGD 3 R12
4 1K
+5VDC IC1 5 NOTES:
1. D3 IS
REVERSE POLARITY PROTECTION DIODE
1 VDD RA0/AN0 13
C1 12
.1uF RA1/AN1
RA2/AN2 11
3 H1
R14 RA4/AN3 RC INPUT
RA5 2
1.0M
SERVO 11.2007 37
Eady.qxd 10/9/2007 3:17 PM Page 38
At first glance, the four MOSFETs mount- PHOTO 3. The PQ-CIB controller is perforated
ed at the top of the PQ-CIB controller PCB at the battery pack edge to allow you to
separate the battery pack and the main
stand out. I don’t know about you, but to controller electronics. The idea is to allow
me they are screaming H-BRIDGE! A look you to use the PQ-CIB controller as a linear
at Schematic 1 shows us that the PQ-CIB actuator controller out of the box and into
your project.
controller is, in fact, mostly an H-bridge.
Everything else is done with firmware that real-world linear actuator project. Once the
resides within the Microchip PIC16F676. battery pack is jettisoned, the remaining
The PQ-CIB controller firmware accepts PQ-CIB controller electronics can be
4-20 mA, 0-10 VDC, hobby R/C, and 1 kHz powered from an external power source.
PWM input signals, which all can be used To obtain external power, we simply move
to move the PQ12’s actuator. the jumper from BATTERY to EXT PWR.
Photo 3 is a reconnaissance view of You can see this jumper block clearly at the
the PQ-CIB controller sans battery pack. At bottom of Photo 3. The demonstration
the top left edge of Photo 3, you can see potentiometer is also discarded and discon-
the FH21 FFC/FPC cable socket. If you nected when the battery pack is separated
backtrack to Figure 1, you can easily figure from the PQ-CIB controller electronics.
out how the linear actuator FH21 cable With the demo slider absent, we must
connector is laid out. Pin 1 of the FH21 FFC/FPC is located at move the POT/EXT jumper to EXT to utilize the 0-10 VDC input.
the bottom of the FH21 FFC/FPC cable socket. Note that the That’s all we need to say about the PQ-CIB controller
FH21 FFC/FPC cable socket pins out all of the odd numbered hardware. If you’re a robonewbie and H-bridge sounds like
signals on the left and the even numbered signals on the right. something from a Latin text book, check out the H-bridge
You can check this against the pin layout shown in Figure 1. article that Peter Best did in the July ‘06 issue of SERVO. Let’s
The PQ-CIB controller’s PIC16F676 comes prepro- take a scenic tour the PQ-CIB Controller firmware.
grammed with the necessary stuff to accept all of the signals
I ran down earlier. However, you’re reading this because you The PQ-CIB Controller Firmware
and I are two peas in a pod. You’ll want to program the
PQ-CIB controller with your own driver firmware eventually. The PQ-CIB controller firmware’s main program loop polls
So, a five-pin PIC programming interface is positioned the three inputs (R/C, 4-20 mA, 0-10V/PWM) and determines
directly below the FH21 FFC/FPC cable socket. the input type. Once the input type is determined, the
All of the various inputs — which are rendered mutually firmware then vectors to the input’s service function and loops
exclusive by the firmware — are handled at the screw there, processing the input until a reset occurs. While servicing
terminals that lie directly below the five-pin PIC programming the selected input, the PQ-CIB controller firmware also moni-
interface. The PQ-CIB controller firmware is continually tors the linear actuator for stalls. As you might have already
scanning the inputs and locks in on the first valid input type deduced, the PQ-CIB controller firmware uses the PIC16F676’s
it encounters. Once the PIC16F676’s linear actuator timers and analog-to-digital (A-to-D) converter heavily. From
controller firmware gets a valid input, it reverts to using that the “flavor” of the source code, I would say the PQ-CIB
input type exclusively until the PQ-CIB controller is reset. controller firmware was written using the CCS C compiler.
Another good clue that leads me to believe that CCS C
The PQ-CIB Controller Hardware is the compiler of choice lies in the opening declaration code:
*********************************************************
Schematic 1 tells the tale. The PQ-CIB controller is an #include <16F676.h>
H-bridge under the control of a PIC16F676. The simple #include <firgelli.h>
layout, a socketed PIC16F676, and use of large 1206 SMT #include <math.h>
components make the PQ-CIB controller easy to repair, just in #use delay(clock=4000000) // 4 MHz system clock
*********************************************************
case you happen to accidentally cause the PQ-CIB controller
to release some magic smoke. The #use delay statement is a CCS-specific clock definition
The use of firmware to replace hardware is evident in Photo compiler command. Since there’s no external crystal or oscilla-
3. We all know the pitfalls of driving H-bridge configurations tor on the PQ-CIB controller PCB, the only logical conclusion is
directly. You don’t want to turn on the wrong MOSFETs when that the PIC16F676 is running on its internal precision 4 MHz
driving a motor. Normally, some sort of gating logic would be oscillator. That gives us an instruction cycle time of 1 µs.
placed between the PIC H-bridge outputs and the MOSFET gates The R/C input is the only input that uses the PIC’s inter-
to prevent the inadvertent activation of the incorrect pair of rupt on change feature coupled with an interrupt handler. If
MOSFETs. However, the folks at Firgelli and BCIT put together you’re not familiar with how R/C hobby servos work, here’s
some firmware to safely drive the PQ12 linear actuators without some quick schooling. An R/C transmitter emits a chain of
the need for the extra PIC-to-MOSFET gate logic. pulses with each pulse aimed at a specific R/C servo. The R/C
The portion of the PQ-CIB controller you see in Photo 3 is receiver decodes these pulses and routes them to the target
designed to be separated from the battery pack for use in a servo. Typically, an R/C hobby servo actuator will operate
38 SERVO 11.2007
Eady.qxd 10/9/2007 3:18 PM Page 39
over a range of 180°. A pulse width of 1.5 ms will cause Prescaling the TIMER0 clock by 4 means that TIMER0 will
the servo to center its actuator at 90°. To rotate the servo increment every four instruction cycles, or once every 4 µs.
actuator to 0°, a 1.25 ms pulse is transmitted. Sending a 1.75 Once everything I/O is set up and the A-to-D converter
ms pulse will cause the servo to rotate its actuator to the and TIMER0 mechanisms are primed, the PQ-CIB controller
180° position. Thus, a hobby servo system operates in firmware begins its input scanning. The first order of the input
response to the width of the pulse coming into the servo. scanning business is to turn off the linear actuator motor and
The pulse width measurement is defined when the pulse hide for a second or so to avoid picking up some noise:
is logically high and the PQ-CIB controller firmware takes
advantage of that fact. The PQ-CIB controller firmware will *********************************************************
void ScanInputs( void )
begin a pulse width measurement when it detects a low to {
high transition on the R/C input. When the pulse transitions unsigned long In_Voltage = 0, In_Current = 0;
from high to low, the value in TIMER0 — which is also called unsigned long waiting = 0;
RTCC in the source code — is read and loaded into the vari- MotorOff(); // Motor off and delay to avoid
able RC_In_Voltage. The manipulation of TIMER0, or RTCC, is // false signal on start up
triggered by the PIC’s interrupt on change mechanism. Here’s delay_us(500000);
the code that makes up the RC input interrupt handler: delay_us(500000);
*********************************************************
The V_PWM_I_SourceAp function works on the premise the A-to-D inputs used in the V_PWM_I_SourceAp function:
that if the motor feedback voltage is greater than the input
voltage, the actuator will retract. On the other hand, if the *********************************************************
motor feedback voltage is less than the input voltage, the #define InputV 6
#define InputC 5
actuator will extend. Obviously, if the feedback and input #define FBVolts 4
voltages are within a preset hysteresis window, the motor *********************************************************
will not move.
Like the ScanInputs function, the V_PWM_I_SourceAp And, if you’re wondering about the hysteresis value, it is
function is a never ending do-while loop. The linear also defined in the firgelli.h file:
actuator’s feedback voltage from its internal potentiometer
wiper is continually read and compared against the voltage *********************************************************
of the selected voltage control input: #define hysteresis 0x03 //(FYI 0x10 = approx. 0.175V)
*********************************************************
*********************************************************
void V_PWM_I_SourceAp( unsigned int Input ) All of the inputs are tested against the linear actuator’s
{
unsigned long In_Voltage = 0, FB_Voltage = 0;
feedback voltage using an algorithm that looks like this:
unsigned long Previous_FBv = 0;
unsigned int Direction = 0, FB_count=0; *********************************************************
unsigned int OK_to_ext = 0x01, OK_to_ret = 0x01; if((abs(In_Voltage - FB_Voltage)) < hysteresis)
{
do MotorOff();
{ }
FB_Voltage = GetADCResult( FBVolts ); else if((FB_Voltage > In_Voltage) &&
do (OK_to_ret== Yes))
{ {
//store the previous FBv for stall condition OK_to_ext=Yes;
Previous_FBv = FB_Voltage; MotorRetract();
In_Voltage = GetADCResult( Input ); delay_us(10);
FB_Voltage = GetADCResult( FBVolts ); }
if((abs(In_Voltage - FB_Voltage)) else if((In_Voltage > FB_Voltage) &&
< hysteresis) (OK_to_ext== Yes))
{ {
MotorOff(); OK_to_ret=Yes;
Direction = Stopped; MotorExtend();
} delay_us(30);
********************************************************* }
*********************************************************
Note that a copy of the linear actuator feedback voltage The OK_to_ret==Yes statement is related to the stall
is stored in a keeper variable every time that the linear sensing code. Note that as the contents of the function are
actuator feedback voltage is read. The keeper variable is executed, the OK_to_ret variable is loaded with the Yes
compared to the next feedback voltage reading to check for value, which is also defined as 0x01 in firgelli.h. If a stall
a stalled actuator condition. Basically, if the new feedback condition is sensed, the stall code will equate the OK_to_ret
voltage is equal to the keeper variable value, the actuator variable to No, which is defined as 0x00 in firgelli.h. The stall
motor must be stalled. Here are the firgelli.h definitions for code is executed within every input function:
Sources
Saelig — www.saelig.com
Cleverscope
Firgelli — www.firgelli.com
PQ12; PQ-CIB Controller; L12
40 SERVO 11.2007
Eady.qxd 10/9/2007 3:18 PM Page 41
********************************************************* I’ll supply the entire PQ-CIB controller firmware package to you
if((Direction==Extend)||(Direction==Retract))
{ via the SERVO website at www.servomagazine.com.
if((abs(Previous_FBv - FB_Voltage))<0x01)
{
FB_count++; Extend and Retract
//count threshold indicates a stall condition
if(FB_count>0xA0)
{ You have everything you need to move the actuator of a
FB_count=0x00; PQ12, almost. Here’s some PIC code you can play with to
MotorOff(); generate the kHz PWM signal for the PQ-CIB controller:
if(Direction==Retract)
{
OK_to_ret=No; *********************************************************
} TMR2ON = 0;
else if(Direction==Extend) CCP1CON = 0x0F;
{ CCPR1L = 0x4F;
OK_to_ext=No; T2CON = 0x02; //prescale=16
} PR2 = 0x9C;
Direction=stopped; TMR2ON = 1;
} *********************************************************
}
else I used the code above with a PIC18F2680 running at 10
{
FB_count=0x00; MHz to generate the Cleverscope shot you see in Screenshot 1.
} Now, change your PIC clock to 4 MHz and run this code:
*********************************************************
*********************************************************
Recall that earlier I pointed out the use of firmware by TMR2ON = 0;
the PQ-CIB controller to replace hardware. Well, here are the CCP1CON = 0x0F;
core functions that are used to command the H-bridge: CCPR1L = 0x5F;
T2CON = 0x02; //prescale=16
PR2 = 0xFF;
********************************************************* TMR2ON = 1;
void MotorOff(void) *********************************************************
{
OUTPUT_LOW( PIN_C3 ); As you can see in Screenshot 2, the update rate is a bit
OUTPUT_LOW( PIN_C4 );
OUTPUT_LOW( PIN_C5 ); faster than 50 Hz, but this 250 Hz, 1.5 mS PWM pulse train
OUTPUT_LOW( PIN_A4 ); will center an R/C servo and the actuator of your PQ12. Fiddle
delay_us(10); with the CCPR1L value and bits 4:5 of CCP1CON to change the
}
duty cycle of the waveforms I’ve shown you. The CCP1CON
void MotorRetract(void) bits are the least significant bits of the PIC18F2680’s 10-bit
{ PWM resolution range. If things go as they should for you, the
MotorOff();
OUTPUT_HIGH( PIN_C3 ); PWM waveform will be present on RC2.
OUTPUT_LOW( PIN_C4 ); We can stop now because you do have everything you
OUTPUT_LOW( PIN_C5 );
OUTPUT_HIGH( PIN_A4 ); need to put a Firgelli PQ12 linear actuator to work in your
} next robotic project. Feel free to email me at fred@edtp.com
if you have any questions or comments. SV
void MotorExtend(void)
{
MotorOff(); SCREENSHOT 2. R/C servos want to see a pulse every 20 mS,
OUTPUT_LOW( PIN_C3); which equates to a 50 Hz PWM signal. This shot is updating
OUTPUT_HIGH( PIN_C4); every 4 mS. I tied this signal to my PQ-CIB controller and my
OUTPUT_HIGH( PIN_C5); PQ12 jumped to center stroke.
OUTPUT_LOW( PIN_A4);
}
**************************************
I
really enjoy working on the older caused a lot of TOPO robots to and on the body, which show the
personal robots from the ‘80s. It’s become nice display pieces instead of direction of movement. The later
fun to keep them running and I am working bots. TOPO II/III robots switched to a
always looking at ways to enhance bi-directional I/R link (closed loop),
them while keeping the original robot Background Information had some smarts onboard, and could
intact. Recently, a friend asked me to on TOPO talk. These had a red button on the
fix up his old Androbot TOPO robot. head where the I/R transceiver was
This revived my interest in a project Back in the early ‘80s, Androbot located, black trim, a black cutout
that I have been thinking about for manufactured and sold TOPO robots. for a speaker, and red LEDs near
quite some time. I wanted an easy way There were a few different versions, the wheels. Some of the other LEDs
to use my own TOPO robot without but for the most part there were two were eliminated.
setting up an entire Apple II+ system to distinct varieties. The early ones The TOPO III is basically the
support it. (TOPO I) are RF based control (open same as the TOPO II, but eliminated
Another reason is that the original loop), which allows just the remote the rest of the LEDs and had a slightly
RF transmitter modules required to control movements of the main drive different body which replaced the
run the robot usually get lost. Without motors. These have a single white fold down arms with a mount that
the transmitter, TOPO can’t do button on the head, silver trim, and could accept optional drink and
anything. For the most part, this has red/green LEDs near the wheels food trays.
42 SERVO 11.2007
Doerr.qxd 10/10/2007 8:24 AM Page 43
Servo will most likely using the extra two channels (3 and 4)
reversing
switches. be backwards on the radio to control extra devices. It
though. This is can make TOPO a bit more interesting
easily corrected. On the than just taking him for a spin. You
front of the transmitter, could use small servos in these ports
there is a set of switches for other things.
that control the direction Perhaps you may want the head
of travel for each of to move. You could use one of these
the servo channels. Just extra channels for that purpose.
flip the switches for Another option is to use an R/C switch
Channel 1 and Channel 2 to control other devices. Some that
to REV. The transmitter I’ve used with excellent results are
should now move the wheels made by Team Delta. Once a certain
assemblies but do not remove them in the proper directions with the threshold is reached on the channel, it
completely. We just need to lift them correct joysticks. can turn on a relay or other device.
up a bit for clearance to unsolder and If there is any movement of the One in particular has two relays on
swap the wires. wheels when the joysticks are board. If one of these were plugged
Once that is done, unsolder the centered, then adjust the trim tabs on into Channel 4, then moving the
three leads on Channel 1 (right/left each joystick until the wheels stop with left stick side to side will energize
on right stick) and Channel 2 the sticks centered. When properly the appropriate relay. This could be
(up/down on left stick). Solder wick adjusted, all of the LEDs should be off connected to a module with canned
works well if you don’t have any and will light when the wheels move. phrases so when driving the robot
special de-soldering equipment. There That’s it! around via the remote, it can say a
is a plastic housing holding the three With this, you now have a large few things. Get creative and have
wires together for each channel so remote control robot that you can some fun!
the leads won’t get mixed up. Just easily turn on and use at any time
reroute each set of wires to the other without the grief of setting up a whole Some Plug-in Enhancements
joystick and solder them back in Apple II+ system to support it. This
place. The spacing is set up so it will makes it much easier if you just want to There are a couple ways to
only go in one way. take TOPO somewhere to drive it proceed. First, you can just use the
Once that is complete, screw the around. The biggest benefit is for those Futaba receiver that comes with the
joystick assemblies back in place and people that have a TOPO robot and radio. The first two channels (1 and 2)
re-install the back cover. If you have never been able to use it. Now will remain empty while Channels 3
unplugged the power lead to set the you can finally see it do something and and 4 are open to use. You don’t even
back cover off to the side, then make have some fun with it! have to touch the original TOPO
sure to plug that back in before putting mainboard if you use a separate
the cover back on. Ideas for Further battery pack for the receiver. With
Now when you turn on the radio Enhancements this setup, the original receiver on the
and turn on TOPO, the right stick robot handles the drive and the Futaba
should make the right wheel move There are some other things that receiver handles the extra stuff.
and the left stick should make the you can do with the robot to easily add Another option which I chose to
left wheel move. The directions more features. This can be done by use leverages some of the untapped
Upgraded board
plugged into the
TOPO main board.
44 SERVO 11.2007
Doerr.qxd 10/10/2007 8:26 AM Page 45
J2 expansion
TOPO I electronics. connector.
potential of the original robot. The and +12V power for servos, solid-state gem that I found while going over the
LM1872 receiver chip on the main switches, and other devices. main board. It is the odd jumper
board normally decodes four channels There are also some filtering caps installed on connector J3. This is where
(two analog and two digital) but to help condition the power. The the decoded signals for Channels 1 and
with a couple extra ICs, it can actually signals for Channels 3 and 4 on pins 7 2 connect to the drive system. By
decode eight channels. This is the and 8 can be routed to a three-pin removing that jumper, it is possible to
way that it was done on the TOPO header to connect to a standard servo isolate the receiver section from the
main board. They just happen to or solid-state switch module. To test it, drive system and feed your own signals
be routed to an unused eight pin I connected a pair of regular Futaba to the drive electronics.
expansion connector at J2 on the R/C servos to these two extra channels. You need to feed the R/C signal
main board. Sure enough, moving the joysticks side into pin 7 for the right motor and in pin
The connector J2 (starting at pin to side on Channels 3 and 4 controlled 8 for the left motor. The ground signal
1) provides +24V, GND, CH5, CH6, the servos perfectly. can come from J2, as well as any
CH7, CH8, CH3, and CH4. Since One really cool idea is to try required power. Since these are
Channels 1 and 2 are dedicated to the something like the SpeakJet (SpeakGin) standard servo style signals, a regular
main drive motors, those are not chip in its R/C mode. That way, just receiver on a completely different
routed to the expansion connector. by moving the joysticks from side to frequency can be plugged in here. This
These extra channels respond to the side the robot can say a few things
Futaba radio and are available. Since
we’re using a four channel radio, only
while moving.
For those that may want to do a
References
Channels 3 and 4 work. little more with TOPO, there is another Robot Workshop
I did look at all the signals with the www.robotworkshop.com
scope and it appears that the Futaba The original Apple II + I/O Author of this article and
radio actually transmits six card and transmitter. service/repairs/upgrades of old robots
channels. It may be possible to
Robot Gallery
modify the radio (depending www.robotgallery.com
upon its chipset) and add a cou- Information about the early personal
ple extra switches or controls to robots including Androbot robots
leverage the extra channels but
I’ll leave that up to you to exper- Tower Hobbies
iment with. Finding all these www.towerhobbies.com
signals on J2 was fantastic. It Supplier of Futaba four Channel
AM radio
makes it easy to expand the
robot without the need for Team Delta
another receiver in the robot. I www.teamdelta.com
just made a small adapter that R/C switches and relay modules
plugged into J2. The 24V from
pin 1 and the ground on pin 2 Parallax
goes to a couple of voltage www.parallax.com
regulators to generate +5V BASIC Stamp modules
SERVO 11.2007 45
Doerr.qxd 10/10/2007 6:49 PM Page 46
is great If you want to drive around circuitry for controlling the robot. This upgrades and modifications can be
two robots independently since all the would give TOPO some sort of brain done without altering the original
TOPO robots I’ve seen come on the of his own. Going this route, you robot. That way, you can always
same frequency. wouldn’t need any transmitter at all. go back to the way it was made.
A more interesting option is to use I think that is important since
a small microcontroller (such as the Final Thoughts these are classic robots and worth
BASIC Stamp) to send the R/C style being preserved. Just something to
signals to the original TOPO H-bridge If done carefully, many of these keep in mind. SV
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
I M S e r v ic e
D e sk to p C N C
S o lu tio n s
P .O . B o x 1 4 2 , N e w H u d s o n , M I 4 8 1 6 5
P h o n e : 8 8 8 -4 5 1 -1 6 7 0
Electronic Parts & Supplies
Since 1967
o r : 2 4 8 -4 8 6 -3 6 0 0 i m s r v .c o m
46 SERVO 11.2007
Miller2.qxd 10/9/2007 10:09 AM Page 47
Building an
ANDROID
ARM by Mark Miller
Part 2
Last time, the main drive systems
were built in detail. Now we are ready
to put the arm together.
FIGURE 1
FIGURE 2
SERVO 11.2007 47
Miller2.qxd 10/9/2007 10:10 AM Page 48
FIGURE 3
FIGURE 4 FIGURE 5
(tensioned) to remove any play between to allow rotation of the arm forward or supporting the arm at a right angle, as
the parts, yet smoothly transition in a back. The joint is assembled as all others shown in Figure 8. To move the arm at
full range of motion without drag. with a single 1/4-20 bolt and fender the elbow, a circular disc of aluminum
washer in between. Figure 6 shows was used with an OD of 1-3/4 inches.
The Shoulder Joint the final assembly from the outside, It is 3/4 inches thick and secured to the
while Figure 7 is the backside. It is now bicep out shaft from the gearing with
To replicate the shoulder’s motion, ready to be mounted to a test stand for two set screws and right angles to
a three axis system was devised, consist- further work. each other for maximum holding force.
ing of three distinct components. Figure Figure 9 shows the installed disc. You
4 shows the right angle nature of the Getting Things could also use a pulley, instead.
first joint component from the bicep. Moving For maximum joint movement, a
This is a 90 degree angle from the inside machine screw has been tapped near the
of the bicep which will face toward the You will find it considerably easier outer edge of the disc, from which a drag
body. This joint will allow the arm to to do the next operations if the arm is arm will be mounted extending down to
move in and away from the body (as in fastend temporarily to a test stand. The the forearm. This, in effect, will be a
raising your elbows up even with your one shown in the photos was made simplified crankshaft-type drive system.
shoulders). This joint can be manually from wood scraps. The arm is attached You can select the best distance
“locked” into position or motorized with at the new shoulder joint by drilling from the forearm joint you wish to
a pusharm system later, if desired. Figure and tapping into the shoulder hub and mount the drag arm with the following
5 shows the mating joint surface added securing the joint to the stand, in mind: The closer you place the drag
48 SERVO 11.2007
Miller2.qxd 10/9/2007 10:13 AM Page 49
FIGURE 10 FIGURE 11
FIGURE 9
arm to the elbow joint, the more range fabricated from 1/4 inch Lexan materi-
FIGURE 12
of motion you will receive. However, al as shown in Figure 11. This one was
this is at the cost of overall torque made so one side of the gripper is fixed
available at the wrist. The photo (upper in photo) and the lower portion across the fingers. This is a very simple
depicts the drag arm (1/2 inch wide, (with a small protruding leg near the gripper made from scrap. You can
.062” thick aluminum stock) located at joint) opens. These have been drilled purchase a conventional servo-type
2-1/2 inches from the joint center, and tapped into the custom wrist hub gripper from several sources that
allowing a two pound load to be car- using 6-32 screws. may be more suited for your purpose.
ried at the wrist. You can experiment To make the movable side open, a The power leads from such a gripper
for best results for your application. small piece of piano wire was run can be fed through the wrist tubing,
Figure 10 shows the drag arm link through the wrist joint tubing and as well.
connected to the forearm with a short pushes against the protruding leg on Driver circuitry for the wrist and
stub of 1/2 inch aluminum drilled and the claw. I drilled about 1/4 inch into bicep motors can be mounted in any
tapped at both ends for 8-32 machine this leg so the wire would not jump out leftover space on the arm. There is
screws. I used a piece of brass tubing during wrist rotation. As a simple plenty of open flat area on the
under the drag arm screw so the threads actuator, the tubular pusher solenoid aluminum plates to mount some stand-
were not riding against the metal surface mounted in the foream opens the claw offs and the circuitry.
itself. After attaching, run the motor to to its maximum (about 1-1/2 inches)
test for binding or other problems. You when powered. Exterior Covering
will note the whole joint is very rigid and The connection between the
precise with excellent repeatability. There solenoid plunger and the piano wire is The covers shown in Figure 14
should be no slop in the assembly. a small leftover Lexan cutoff epoxied to were made from a fiberglass layup over
The bicep disc also makes an both. The wrist can operate while the a cardboard tube. Cutouts were made
excellent place to mount an encoder claw opens and closes. This is
which will allow you to keep track of detailed in Figure 12. A return
FIGURE 13
the arm’s position. You may note — spring is mounted across the flat
due to the offset crank-style design — part of the claw to keep it in
the arm can be set in continuous tension while unpowered. The
motion in either direction without the spring has the maximum
need for stops or limit switches. amount of tension that the sole-
noid is capable of overcoming.
A Simple End You can experiment and
Effector easily determine this tension for
your solenoid. Figure 13 shows
A simple claw-type gripper can be the tensioning return spring
SERVO 11.2007 49
Miller2.qxd 10/9/2007 10:13 AM Page 50
by Michael Simpson
GPS PART 2
SERVO 11.2007 51
Simpson.qxd 10/9/2007 11:29 AM Page 52
52 SERVO 11.2007
Simpson.qxd 10/9/2007 11:30 AM Page 53
• 12 channel receiver
• External antenna connector
• High sensitivity: -152 dBm
• NEMA 0813, TSIP, and TAIP protocols
supported
• Cold start: 39 seconds FIGURE 10 FIGURE 11
• 28.5 mA power consumption
• 3.3–5 volt operation e-339488/Copernicus_Monitor_ FIGURE 13
• Small foot print: 30 mm x 30 mm x V1-02-07.exe.
8.6 mm Use the port marked Port B on
• Free GPS utility available the evaluation board to interface with
the module.
You may have noticed that the The software called Trimble GPS
Copernicus module does not Monitor (Figure 16) is quite extensive
support WAAS. It is rumored that a and comes with its own manual.
WAAS firmware upgrade will be made The monitor allows you to log
available in the near future. GPS data and monitor key data points
such as satellite signal strength as
• STEP 1: There’s not much to the shown in Figure 17. It also has a real
installation of the Copernicus module. time plotter shown in Figure 18.
You simply slip the module into the eval- I have created a special version of
uation board as shown in Figure 14. the QuikTerm and Satellites programs
for the Copernicus module. The
• STEP 2: I recommend you sandwich
the board between two pieces of
plastic as we did earlier. You will also
need to connect an external antenna
to the module as shown in Figure 15. FIGURE 14
The Copernicus module does not
come with a built-in antenna.
SERVO 11.2007 53
Simpson.qxd 10/9/2007 11:31 AM Page 54
54 SERVO 11.2007
Simpson.qxd 10/9/2007 11:31 AM Page 55
FIGURE 22
SERVO 11.2007 55
RoboResources.qxd 10/10/2007 4:53 PM Page 56
Australia Telerobot
http://telerobot.mech.uwa.edu.
au/Telerobot/index.html
Telerobotics from the down under.
BARt-UH
www.irt.uni-hannover.de/irt/asr
BARt-UH is a bipedal autonomous
walking robot designed at the
University of Hannover in Germany.
Web page is in English.
Biorobotics
http://biorobots.cwru.edu
Bots at the Biologically Inspired
Robotics Lab at Case Western Reserve
University. According to the site, the
lab “is dedicated to the advancement
of the field of robotics using insights
gained through the study of biological
mechanisms.”
56 SERVO 11.2007
RoboResources.qxd 10/9/2007 11:09 AM Page 57
Bruno Jau Robotic Hand Be sure to check out the archives: www.cs.cornell.edu/Info/Projec
http://uirvli.ai.uiuc.edu/tlewis/ ts/csrvl/csrvl.html
pics/hand.html 1996 archive: Past and current projects at Cornell
Finally, a robot that will give you http://ranier.hq.nasa.gov/telerobotics Robotics and Vision Laboratory in
a hand. _page/coolrobots96.html Ithaca, NY.
http://ai.eecs.umich.edu/cogarch0/
http://ai.eecs.umich.edu/cogarch0/
subsump/
in Philadelphia, PA. Iowa State University Robotics MIT: Artificial Muscle Project
Club www.ai.mit.edu/projects/
Georgia Tech Intelligent http://nukelab1.student.ias- muscle/muscle.html
Systems & Robotics tate.edu/wiki/Main_Page The Artificial Muscle Project at the
http://robotics.gatech.edu Iowa State University. Project MIT Artificial Intelligence Laboratory
The goal of the Intelligent Systems Cybot is a unique combination of plays around with linear actuators
and Robotics group at the College a continuous senior design project and using a substance known as polymer
of Computing at Georgia Tech is a club open to all students at ISU. hydrogel. This material is said to
to understand and design systems have characteristics similar to human
which use intelligence to interact IRIDIA Projects and Activities muscle.
with the world, making computer http://iridia.ulb.ac.be/Projects
controlled systems more autonomous Artificial intelligence white papers MIT: Leg Laboratory
and ubiquitous. and project summaries. From IRIDIA, www.ai.mit.edu/projects/leglab
the Artificial Intelligence research The Leg Lab is world-renowned for
Georgia Tech Mobile Robot Lab laboratory of the Universit Libre its designs of various single- and
www.cc.gatech.edu/ai/robot- de Bruxelles. multi-pedal robots. Movies are available
lab for many of the designs.
According to the website, the JPL Rover and Telerobotics
Mobile Robot Laboratory’s charter is to www-robotics.jpl.nasa.gov MIT: Logo Foundation
discover and develop fundamental If it walks on another celestial http://el.media.mit.edu/logo-
scientific principles and practices that body — like Mars — and is launched by foundation
are applicable to intelligent mobile NASA, JPL built it. Here you can read Informational page about the
robot systems. about JPL’s past, present, and future Logo programming language, original-
projects. Be sure to check out the ly developed by professors at MIT.
Hexplorer 2000 Robotic Vehicles Group page.
http://real.uwaterloo.ca/~robot MIT: MindFest
/www/index.xml Laboratory for Perceptual www.media.mit.edu/mindfest
The Hexplorer is a six-legged walk- Robotics (LPR) MindFest is a yearly gathering
ing robot at the University of Waterloo, www-robotics.cs.umass.edu of LEGO-heads. You can see pictures
located in Ontario, Canada. University of Massachusetts of past events, and read up on
Construction details and programming Perceptual Robotics lab. upcoming ones.
overview are provided. See also the
main page for the Motion Research LEGO: Distributive Intelligence Mobile Robots at
Group at http://real.uwaterloo.ca. with Robots Loughborough
www.ceeo.tufts.edu/me94 www.lboro.ac.uk/depart-
Image Science and Machine How they got LEGO Mindstorms ments/el/robotics
Vision Group robots to work together. Demonstrations There are lots of robots at the
www.ornl.gov/sci/ismv include: Whistling Brothers, Travel by Department of Electronic & Electrical
The Image Science and Machine Beacon, and Wandering Cyclops. Engineering at Loughborough
Vision Group is currently involved University in England.
in three programmatic areas: Machine Intelligence
measurement and controls for indus- Laboratory Mobility and Robotics Systems
try, biological sciences, and surveillance www.mil.ufl.edu http://telerobotics.jpl.nasa.gov/
and security. The goings-on at the Machine tasks/tmr
Intelligence Laboratory, at the Here you’ll find detailed descrip-
Intelligent Systems and University of Florida in Gainesville, FL. tions of the activities of the Mobility
Robotics Center (ISRC) and Robotic Systems Section, as well as
www.sandia.gov/isrc/home.html Massachusetts Institute of related robotics efforts around the Jet
Among other projects, ISRC Technology Propulsion Laboratory. Approximately
contemplates robots for warfare and http://web.mit.edu 100 engineers work on all aspects of
national security. Research includes This is the main website for robotics for space exploration and
Surveillance And Reconnaissance the Massachusetts Institute of related terrestrial applications.
Ground Equipment (SARGE), Miniature Technology (MIT) in Cambridge, MA.
Autonomous Robotic Vehicle (MARV), Links on the main page take you to NASA
Accident Response Mobile Manipulator various labs and research centers www.nasa.gov
System (ARMMS), and a Robot That at the campus. Spend some time on The main home page of the
Makes Up Acronyms (RTMUA). this one. National Aeronautics and Space
58 SERVO 11.2007
RoboResources.qxd 10/9/2007 11:10 AM Page 59
Administration — the outfit in the US Robotics and Intelligent Robotics Center (ISRC) is a world leader
that launches the Space Shuttle and Machines Laboratory in creating miniature to macro-sized,
the occasional robot. http://robotics.eecs.berkeley.ed teleoperated to autonomous vehicles
u/wiki/pmwiki/pmwiki.php for military and industrial applications.
NASA JPL: Mars Pathfinder Research and activities at the From environmental clean-up to
http://mars.jpl.nasa.gov/MPF/ Robotics and Intelligent Machines the battlefield, the ISRC is expert in
index1.html Laboratory at the University of developing unique intelligent mobile
Informational site about the Mars California at Berkeley. systems.
Pathfinder mission. The mission may be
over, but the interest in it is not. See Robotics Group at Columbia Side Collision Warning System for
also www.nasa.gov/mission_pages University Transit Buses
/mer/index.html for current Mars www.cs.columbia.edu/robotics www.ri.cmu.edu/projects/project_
exploration details. Research in robotics — both mobile 324.html
and stationary — at Columbia Just imagine the collision system
Navy Center for Applied University in New York, NY. on a big robot instead of a bus. From
Research in Artificial Carnegie Mellon University.
Intelligence Robots at Space and Naval
www.nrl.navy.mil/aic/index.php Warfare Systems — SPAWAR Stanford Robotics Laboratory
The Navy Center for Applied www.nosc.mil/robots www.robotics.stanford.edu
Research in Artificial Intelligence A look at robotics at SPAWAR How robots live at the Robotics
(NCARAI) has been involved in both (Space and Naval Warfare Systems Laboratory in Stanford, CA. See also
basic and applied research in AI since Center) in San Diego, CA. Most of the Stanford’s autonomous helicopter
its inception in 1982. NCARAI, part of robots are for military, urban defense, work at http://sun-valley.stanford.
the Information Technology Division or other applications where weapons edu/projects/helicopters/helicop
within the Naval Research Laboratory, systems — both lethal and non-lethal — ters.html.
is engaged in research and develop- are involved.
ment efforts designed to address the Talking Heads
application of artificial intelligence Sandia Intelligent Systems & www.haskins.yale.edu/fea-
technology and techniques to critical Robotics Center tured/heads/heads.html
Navy and national problems. www.sandia.gov/isrc This website provides an overview
The Intelligent Systems and of the rapidly growing international
Poly-PEDAL Lab
http://polypedal.berkeley.edu/ Informational page about the Logo programming language,
twiki/bin/view/PolyPEDAL/Web originally developed by professors at MIT.
Home
The Poly-PEDAL Lab studies motion
in animals and insects. The walk (gait)
and balance studies often help in
designing legged robots.
Polypod
http://robotics.stanford.edu/
users/mark/polypod.html
Polypod is a bi-unit modular
robot.This page presents work done in
1993 and 1994. Work on the next gen-
eration, called “PolyBot” started mid
1998 at Xerox PARC as part of the
modular robotics project under the
smart matter theme.
effort to create talking heads Programming Laboratory in Carnegie research goes on here in the fields of
(physiological/computational/cognitive Mellon’s Robotics Institute. robot navigation. Be sure to read the
models of audio-visual speech), the details of the Mobile Robot Positioning
historical antecedents of this effort, Union College Robotics Club and Obstacle Avoidance research. The
and related work. Links are provided www.vu.union.edu/~robot book Where am I? (in print, CD-ROM,
(where possible) to the sites of Schenectady, New York. and electronic download) published by
many researchers and commercial the university’s Johann Borenstein, is a
entities working in this diverse and University of Edinburgh AI classic and is required reading in many
exciting area. Machine Vision Unit mechatronics courses. See also Dr.
www.ipab.inf.ed.ac.uk/mvu Borenstein’s home page where he
Tarry Walking Machines Overview of the Machine Vision provides links to many more online
www.tarry.de/index_us.html Unit at the University of Edinburgh robotics resources at www-personal.
According to the page, the Tarry (that would be in Scotland). engin.umich.edu/~johannb.
walking machines which were devel-
oped and built by the Department of University of Michigan Artificial University of New Hampshire
Engineering Mechanics at the University Intelligence Laboratory Robotics Lab
of Duisburg. Good detailed look at hexa- http://ai.eecs.umich.edu www.ece.unh.edu/robots/rbt_
pod designs. Recommended reading. People and projects at the AI lab home.htm
at the University of Michigan in The research emphasis of the
Toy Robots Initiative Ann Arbor. Robotics Laboratory in the Department
www.cs.cmu.edu/~illah/EDU of Electrical and Computer Engineering
TOY University of Michigan Mobile at the University of New Hampshire
The Toy Robot Initiative aims to Robotics Lab is the application of fast associative
commercialize robotics technologies in www.engin.umich.edu/ memories and other neural network
education, toys, entertainment, and research/mrl learning techniques (such as CMAC
art. Operated out of the Mobile Robot Among other things, special neural networks) to problems in
60 SERVO 11.2007
RoboResources.qxd 10/10/2007 1:15 PM Page 61
control, pattern recognition, and University. Check out past and a series of fully autonomous vehicles
signal processing. present projects, including the stair- (both air and ground). The goal is to
climbing robot and the omnidirectional have a fleet of robots that can work
University of Reading wheel designs. cooperatively toward some predefined
Department of Cybernetics goal without the slightest bit of help
www.cirg.reading.ac.uk/home.htm Waterloo Aerial Robotics Group from any human crew. SV
The Cybernetic Intelligence http://ece.uwaterloo.ca/~warg
Research Group studies intelligence In the words of the website, The CONTACT THE AUTHOR
and its real-life applications. Waterloo Aerial Robotics Group [at the
University of Waterloo in Canada] is a Gordon McComb can be reached via
email at robots@robotoid.com
University of Southern team of engineers who are developing
California Robotics Research
Laboratory
www-robotics.usc.edu
Robotics research at USC spans a
large number of labs and projects.
These include:
Tough Enough for Varsity
• USC Robotics Research Lab
Engineering Games
• Interaction Lab (control and learning
in multi-robot and humanoid systems) GEARS-IDS™™
• Computational Learning and Motor
Control Lab
THIS MONTH:
Welcome to the Family
T
he holiday season is almost here four-legged, crab-like spider-like, wide- Roboquad is ready for the clubs.
— a time for family and fun. One eyed envoy from another world or the The Roboquad’s epic personality is
family gathering that would be most mysterious corners of ours. The comprised of three elements that can
very interesting to see would be the Roboquad is billed as the most aware be mixed and matched with three
reunion of the WowWee robotics of the WowWee clan thanks to an levels of intensity per element. Those
family; the Robosapien clan. WowWee advanced vision system that relies on three components are: awareness,
robotics has produced some of the “deep IR scanning.” After seeing the activity, and aggression. Awareness
coolest robotics toys around, and Roboquad in action, we are inclined to refers to Roboquad’s tendency to
we are proud to introduce two new agree. The bot plods around like a pause, take a moment for reflection,
members of the tribe: Roboquad curious crab, and instead of relying and scan with its IR sensors.
and Robopanda. on touch sensors like its ancestor Roboquad’s impressive sensors can
the Robosapien, the Roboquad relies discern obstacles up to six feet away,
Surf and Turf completely on its keen sense of sight. and higher awareness levels will scan
Another thing that the Roboquad more often and at the maximum range.
The Roboquad looks like no has on all of its WowWee relatives is Conversely, lower awareness
identifiable creature (a Gridbug from that it is by far the best dancer. With its means rarer scans at shorter range. No
hte movie Tron? - Ed.) It’s like a hip tunes and flashing lights, the matter what the Awareness setting,
the Roboquad can gather an
ROBOQUAD. ROBOQUAD ALL BOXED UP. extraordinary amount of infor-
mation through its sensors. It
can tell if it is light or dark, and
will turn its headlights on in
the dark. The Roboquad can
even sense movements
and the shape of objects like
doorways or steps.
Activity refers to
Roboquad’s speed and
magnitude of reactions.
Higher activity levels mean
faster wandering and more
involved responses. For
62 SERVO 11.2007
TwinTweaks.qxd 10/9/2007 11:20 AM Page 63
Friend Mode is also where the Robopanda’s feet so it could really spirit of economy. They use a
Robopanda will demand its Teddy move around — ever so often minimal number of motors to achieve
either for hugs or a game of peek-a- Robopanda will declare its intention to complicated movements, and the bots
boo. The Robopanda can actually crawl around, but unless it is on the are designed to take advantage of
identify its Teddy through radio- perfect surface it amounts to little reflexive motion to use less energy.
frequency identification, and the chip more than crawling in place. BEAM robots are also character-
was so seamlessly implanted in the ized by simple electronics that use
stuffed animal that we would have to From Homosapien logic circuits as opposed to
cut open the hapless bear to find it — microprocessors. We weren’t able to
though that does leave the compelling to Robosapien and get a look at the electronics of the
possibility of switching Teddy’s chip Beyond Roboquad or Robopanda, but if their
with a banana or a roll of toilet paper relatives are any indication, we imagine
and having Robopanda play peek-a-boo One thing that is true of the that they are paragons of simplicity
with that instead. Robopanda, Roboquad, and all of the and efficiency.
Robopanda will rarely repeat itself WowWee family is that they are very The A in BEAM is aesthetics, and
while going through its vast repertoire, sophisticated in their simplicity. The the WowWee bots have always done
but that repertoire is essentially limited. Roboquad is particularly surprising. Its well in this department. From the sleek
Such a limitation, however, does not crab-like walk and multitude of variants color schemes to the expressive faces,
pose much of a threat to Robopanda’s surely seem to be the result of a com- the Roboquad and its ilk are works of
fun factor because its repertoire is plicated arrangement of motors and art as much as robotic toys.
actually cartridge based, and the bear gears, but in reality the endearing gaits The final element is mechanics,
bot comes with two cartridges. Each are achieved simply by one motor per and with sparse usage of motors and
cartridge comes with its own set of leg (the whole bot has six motors total; creative reflexive motion, the WowWee
stories, jokes, games, and panda trivia. four in the legs and two in its neck). bots are mechanical works of art, as
While this is exciting simply for the The exceptional cleverness that well. Complex movements can be
promise of hours of panda fun, it also makes the Roboquad so full of person- achieved in a complicated way, but
opens the door to the possibility of ality is in the design of the bot itself. achieving it in a simple way is far
new cartridges being released in It’s not surprising that this bot was greater of a challenge. The Roboquad
the future. These future cartridges designed by Mark Tilden, the designer achieves its spider-crab gait though
could contain even more stories and of the Robosapien and father of BEAM four motors instead of the eight or 10
jokes and panda trivia, and ensure that (Biology, Electronics, Aesthetics, and it easily could have used. And the
the fun of the Robopanda never Mechanics) Robotics. In their achieve- real trick with this whole thing is
becomes obsolete. ment of such a high caliber of sophisti- that the Roboquad doesn’t sacrifice
The other side of the cartridge cation and coolness, the Roboquad any of its realism or charm by
potential is the possibility of hacking and all of the WowWee robots seem to using fewer motors — that is good
the panda. Perhaps custom external be guided by similar principles as those mechanical design.
devices could be attached via the guiding BEAM robotics — simplicity, As for the Robopanda, while it
connector for the cartridges. But what efficiency, and elegance. might not meet all of those conditions
about more traditional hacking by Many BEAM robots use solar of BEAM robotics, we think that it will
opening up the Robopanda itself? The power, and even though the Roboquad still make an astounding contribution
Robopanda, unfortunately, also seems and Robopanda run on batteries the to the world of robotics as a whole for
to have been designed to discourage efficiency of their design is in the same crossing that difficult boundary
hacking. On every segment of the
panda’s shell, we were able to remove ROBOPANDA TEDDY. THE FAB TRIO.
all but one or two screws, with the
troublesome screws simply being to far
inset into the shell to reach with our
screwdriver. And even if a hacker was
able to crack open the panda (as
terrible as that sounds), we think they
would have to be very careful with
their hacks indeed. Robopanda’s
primary functionality is in its speech, so
any electronics additions should be
careful to avoid compromising that.
Perhaps a mechanical hack would be
best, like adding wheels or treads to
SERVO 11.2007 65
TwinTweaks.qxd 10/9/2007 11:21 AM Page 66
$79.99 $119.99
$29.99 Scorpion XL
Scorpion HX
Scorpion Mini 6 Dual 2.5A (6A pk) H-bridges 6 Dual 13A H-bridge 45A Peak!
6 2.5A (6A pk) H-bridge 6 Plus 12A fwd-only channel 6 5V - 24V
6 5V - 18V 6 5V - 18V 6 2.7“ x 1.6” x 0.5”
6 1.25“ x 0.5” x 0.25” 6 1.6“ x 1.6” x 0.5”
Introducing Dalf
P erform proportional speed, direction, and steering with
6 Closed-loop control of two motors
6 Full PID position/velocity loop
6 Trapezoidal path generator only two Radio/Control channels for vehicles using two
6 Giant Servo Mode!
$250
separate brush-type electric motors mounted right and left
6 PIC18F6722 CPU
6 C source for routines provided with our mixing RDFR dual speed control. Used in many
6 See www.embeddedelectronics.net successful competitive robots. Single joystick operation: up
H-bridges: Use with Dalf or with your Micro/Stamp goes straight ahead, down is reverse. Pure right or left twirls
vehicle as motors turn opposite directions. In between stick
OSMC Simple-H
6 6-28V 25A!
positions completely proportional. Plugs in like a servo to
6 Monster power!
6 14-50V 160A! 6 2.25”x2.5 ”x0.5” your Futaba, JR, Hitec, or similar radio. Compatible with gyro
6 3 wire interface
6
6
3.15”x4.5”x1.5”
3 wire interface 6 current & temp steering stabilization. Various volt and amp sizes available.
$79 protection
The RDFR47E 55V 75A per motor unit pictured above.
MADE IN www.vantec.com
Give the
gift that
lasts all
year!
Go to
www.servomagazine.com
to enter your gift order!
Be sure to use promotion code Y7WXMS when ordering.
U.S. Prices
1 Yr – $24.95
2 Yr – $45.95 Subscribe online at: www.servomagazine.com
3 Yr – $65.95 or call: 877-525-2539 (toll free) / 818-487-4545 (outside US)
DifferentBits.qxd 10/9/2007 11:17 AM Page 68
DIFFERENT
BITS
NEURAL NETWORKS FOR THE PIC MICROCONTROLLER
PART 3 — HEBBIAN LEARNING by Heather Dewey-Hagborg
H
ebbian learning is based on a input sum = (input0 * weight0) + weight change = learning
simple and intuitive principle: (input1 * weight1) + … constant * neuron A activation *
connections between neurons neuron B activation
that tend to fire together increase in And so on, for as many inputs as the
strength. The converse of this is also neuron has. As you can see, connection
true: Neurons that rarely fire together Learning can be either supervised strength will only increase between
have weak connections. This means or unsupervised. So far in this column, correlated neurons; neurons with acti-
that neurons become “associated” and we have discussed only supervised vations of the same sign. For example,
assist in each other’s activity. Hebbian models of learning where we play the if we want an output neuron to have
learning allows neural networks to role of teacher and effectively tell the an activation of 1 and it has two inputs
form simple behavioral conditioning. By neural network the correct answer — one input activated to -1 and the
repeatedly presenting a set of input repeatedly until it gets it right. Hebbian other input activated to +1 — the
and output patterns together to the learning can involve a teacher or can weight change will be positive
network, it will learn over time to work on its own without anyone telling between the neurons with the same
associate the input and other similar the network what is right and wrong. sign, and negative between the
inputs with the output. Both forms of learning go through neurons with opposite signs.
The most basic Hebbian learning the same cycle of sensing and updating
networks have only two layers of connection strengths, but the unsuper- EX: weight change = 0.2 * 1 * -1
neurons, inputs, and outputs. They use vised model computes weight updates weight change = -.2
the same linear, hard-limiting activation based on what values are present
function as the perceptron neural together, whereas the supervised weight change = 0.2 * 1 * 1
network from July’s column: version computes based on what the weight change = .2
output should be. The learning rule is
activation = sign(input sum) as follows: Hebbian learning is often used in
neural networks that model psycholog-
In other words, if the input sum weight change = learning constant ical theories. The most common
is > 0, the activation is 1; otherwise, * desired output * input value example of this is a form of Pavlovian
the activation is -1. The input sum is classical conditioning where an animal
computed in the same way as always: Or, in the unsupervised model: (or robot) learns to associate two
68 SERVO 11.2007
DifferentBits.qxd 10/9/2007 11:17 AM Page 69
DIFFERENT BITS
FIGURE 1. Circuit
schematic.
SERVO 11.2007 69
DifferentBits.qxd 10/9/2007 11:17 AM Page 70
DIFFERENT BITS
FIGURE 2. Hebbian robot the learning functions first.
neural network diagram.
• sign — Simply returns the sign
and Jacques Ludik (ISBN: (positive 1 or negative 1) of the
0-521-57163-4). floating point argument.
DIFFERENT BITS
• main — First, we run the setup able to generalize from what it has
command. Second, we initialize the learned to gracefully handle new
connections array with small floating situations is great. But it would be
point random weights. Third, the nice if you didn’t have to imagine a
neural network goes through its bunch of situations beforehand and
learning phase which generally takes program them explicitly. One solution I
less than 50 iterations. It prints what have imagined for this is using a
iteration it is out the serial port and remote control as an on-the-fly teacher
then randomly chooses an input set for for an embodied robot. The robot
training. It finds its activation, runs the would start with the same randomly
learning function, and computes the initialized neural network as in this
current root mean squared error. program, but rather than defining a
When the learning phase is com- set of inputs and correct responses,
plete, the program switches to an infinite the robot would go through a
loop of sensing, processing the input learning cycle every time it received
array through the neural network, and a remote control instruction; the
activating the output motors. The public instructions would function as
array outs[] holds the motor command behavioral corrections. This is an
outputs from the neural network. A appealing idea because it allows
value of +1 means motor forward, and a the robot to learn in a more natural
value of -1 means motor backward. way, similar to a pet.
To implement this process, you just
After programming, you should need to change the main function by
see the following behavior from deleting the learning phase and
your circuit: adjusting the loop to check for serial
data after each move. If a command
1) The status LED turns on and has been received, the robot adjusts its
the “Hello!” message prints to your position and runs the learn function
serial monitor. with the new information loaded. The
learn function needs to be revised to
2) Initial weight values print out the calculate the delta value based on the
serial port. actual output neuron values rather
than desired values:
3) Documentation of the learning
process prints out showing you what delta = constant*(float) outs[k]*
iteration and error level the network is (float) ins[j];
at. This completes almost too quickly
for you to notice. And finally, I would include a serial
interrupt function so that you don’t
4) The motors will start turning have to lose instructions waiting for a
forward and debugging information byte that never arrives:
will print out the serial port telling you
what input values are read and what #int_rda
void serial_isr() {
output values are calculated. cmd=getc();
putc(cmd);
Evaluate the neural network. Test new=1;
it by changing the sensor values and }
seeing how it responds. Does it act the
way you taught it to? How does it Have fun experimenting with these
respond to ambiguous input situations concepts! I would love to hear from
that you did not explicitly program in? any of you that attempt to implement
Does it generalize well? or modify these algorithms in your
own projects. If you want to share your
Next Steps ... successes (or frustrations) with me,
drop me a line at heather@servo
Having a robot that learns and is magazine.com. SV
SERVO 11.2007 71
WebstoreNov07.qxd 10/10/2007 9:51 AM Page 72
Insectronics
by Karl Williams
This complete project
book delivers all the step-
by-step plans you need
to construct your own
six-legged insect-like
robot that walks and
actually responds to its
environment. Using
inexpensive off-the-shelf
parts hobbyists can “build a better bug”
and at the same time have loads of fun
honing their knowledge of mechanical
construction, programming, microcontroller
use, and artificial intelligence. $19.95
72 SERVO 11.2007
WebstoreNov07.qxd 10/10/2007 9:52 AM Page 73
NEW 7
!
0
NEED MORE
INFO?
JU N -
Go where
Maniacs, the new
MINDSTORMS kit has
been updated to
include a program-
ming brick, USB cable, RJ11-like cables, SERVE’
motors, and sensors. This book updates the
robotics information to be compatible with
the new set and to show how sound, sight,
goes!
touch, and distance issues are now dealt
with. $39.95
The online store @
www.ser v omagazine .com
Forbidden LEGO
by Ulrik Pilegaard / Mike Dooley
SERVO 11.2007 73
WebstoreNov07.qxd 10/10/2007 9:53 AM Page 74
SERVO'S CUSTOM
EMBROIDERED HAT
SERVO 11.2007 75
Appetizer.qxd 10/9/2007 2:16 PM Page 76
Lessons
Learned
According to the
ITESO team leader, Alan
Collins, the greatest
challenges associated
76 SERVO 11.2007
Appetizer.qxd 10/9/2007 2:16 PM Page 77
SERVO 11.2007 77
Then&Now.qxd 10/10/2007 10:17 AM Page 78
Then NOW
a n d
HUMANOID ROBOTS
b y T o m C a r r o l l
Why Humanoids?
What is the draw for experimenters
to build a humanoid robot rather that a
wheeled machine? They are more
expensive to construct, especially if
the designer uses a pair of legs for
propulsion instead of wheels. They are
more unstable and can be easily tipped
over, either accidentally or on purpose.
Reliability is another factor; one bad leg
joint or actuator out of many and the
robot is out of commission.
I’ve followed a series of postings on
the Seattle Robotics Society’s website
(www.seattlerobotics.org) entitled
“Legs not Wheels” for over a month.
78 SERVO 11.2007
Then&Now.qxd 10/10/2007 10:17 AM Page 79
There are strong feelings for both types Mellon University had developed some
of robots and the reasoning is sound for amazing one-legged walkers, but the
both camps. If you want to showcase very expensive Asimo gave the world’s
your robotics talents, your biped robot experimenters the unofficial go-
humanoid robot walking across a table ahead to develop their own creations.
and taking a bow is certainly a great way Human-sized humanoid robots
to add a feather to your hat. Coolness proved to be quite expensive to
comes up strong as a reason for experi- develop due to the many DOF (degrees
menters to want to build legged robots, of freedom) or axes of motion required
especially bipedal robots. They just reek to approximate human leg, body, and
of coolness. Plus, humanoids look like the arm motions, so small humanoid
creatures we are most familiar with — us. walkers became very popular.
Another strong point for humanoid Quadruped and hexapod robots had
robots is the technical challenge been the ‘walker of choice’ for decades
required to design and build a humanoid among robot experimenters.
robot. A designer of humanoids just The availability of numerous types FIGURE 3. Honda’s Asimo.
doesn’t make two legs cycle one in front of model aircraft servos as the drive
of the other. He must take into consider- source for each axis of the legs became he worked with NASA, JPL Labs, and
ation the center of gravity and balance, the final solution for the potential DARPA to develop energy efficient
natural resonance of the mechanisms humanoid robot designer. These servos robots for space and other harsh
involved, foot design, kinematics, were as cheap as $10-$15 per axis so environments. He formed his own com-
synchronizing all of the joints and the transition to a bipedal humanoid pany to sell his very unique creatures
actuators, hip and upper body position, from the small table-top wheeled robot and then joined with WowWee Toys to
and a multitude of other factors. was a bit easier. sell his most noteworthy creation, the
The builder must also take into Robosapiens and its offshoot creations.
account just where the robot will be used Humanoid Robots Robosapiens make an ideal first
— outside, indoors, on a table, in a robot for those interested in humanoid
competition, or all of the above. Statically Become Available to designs. It comes ‘ready to roll’ right
stable gaits have been the easiest for Experimenters out of the box and is priced as low as
bipedal robot builders to achieve, though $100, with later improved models
a few experimenters have built running It did not take long for the major under $200. The cost is low, not only
robots. We must remember, however, walking robot kit manufacturers to because of the mass production in Asia
that many large companies have investi- make the leap from hexapod or but the simplistic mechanical design
gated walking robots as a natural way for quadruped robots to bipedal that makes use of just a few motors to
a machine to traverse a specific area, and humanoids. Mark Tilden — long known perform many degrees of freedom
have found out that legs are better for for his work with the Physics Division of motion to the arms and legs, much the
certain tasks, while other applications the Los Alamos National Laboratory — same as the old Armatron robot arm.
work better with wheels. General Electric the UK born, ex-Canadian resident is Tilden’s humanoid robot can walk
built several large walking robots that best known for his tiny BEAM (Biology, at two different speeds, turn, dance,
ended up with no application, yet Boston Electronics, Aesthetics, and Mechanics) and has two types of grippers (it
Dynamics built the Big Dog robot that robots powered by the smallest solar reminds me of a robot lobster, in a
just might make it onto the battlefield in cells and capable of interaction with the way). It also has various sound effects
the near future. environment without even a simple (one is a caveman type of speech)
microcontroller. Quite a few of us are and 67 pre-programmed functions.
Humanoid Robots familiar with Isaac Asimov’s Three Laws
Become a Reality of Robotics, but Tilden has come up FIGURE 4. V2 Robosapiens.
with his own rules, uniquely suited to
Despite all the movies and the many his early robot designs and their need to
decades of wishing that true humanoids extract power from the environment:
were among us, it wasn’t until Honda’s
series of almost human-sized robots 1) A robot must protect its existence at
leading up to Asimo that humanoids all costs.
actually became a reality (see Figure 3). 2) A robot must obtain and maintain
The company spent uncounted millions access to its own power source.
of dollars (billions of Yen) in research 3) A robot must continually search for
and development of this amazing robot. better power sources.
Certainly university labs had toyed with
the idea and Marc Raibert of Carnegie- Through his work at Los Alamos,
SERVO 11.2007 79
Then&Now.qxd 10/10/2007 10:18 AM Page 80
Humanoids features and subtle muscle movements open and closed air
I would be remiss if I didn’t men- are extremely difficult to produce, but cells in the Frubber
tion the spectacular lifelike humanoid this is what draws Hanson to the task. skin is what allows
robots created by David Hanson. David The Einstein robot head is actuated it to move much
Hanson has produced a unique style of by 33 servo motors and related linkages, like human skin.
humanoid that very few other robot and requires just 10W of power at 6V to The fact that it can
builders have yet to do. The faces of his achieve its full range of expressions. be moved by small
robots mimic the appearance and move- People have compared his creations to the servos with little FIGURE 10.
ments of a real human face. Outside of many animatronic displays at Disneyland force makes it use- Hanson’s Philip K.
a few robotic mannequins produced in and other theme parks. They require many ful for humanoid Dick robot head.
Asia, virtually all humanoid robots still kilowatts of electric power and even robot faces. It is so
have abstract faces and expressions. hidden hydraulic and pneumatic power flexible that it can be stretched as much
People have found that realistic sources to operate. The Abraham Lincoln as 900%, though damage may occur
human facial features rendered on exhibit is a great example. Created beyond 450% stretching. Figure 12
robotic faces are pretty much creepy. decades ago, it was quite lifelike but had illustrates how Hanson has mimicked
“That’s a view I completely reject. We many motors, linkages, and power human facial expressions with his
are naturally attracted to faces and sources under the stage which were fed Frubber-based robot faces.
gestures,” says Hanson, president of through Lincoln’s feet (see Figure 11). Hanson is working with well-known
Hanson Robotics, Inc. “Robots don’t Hanson is convinced that the major Japanese robot designer, Tomotaka
just have to make the right expression, contributor to the success of his robots is Takahashi to produce RoboKind, a robot
they have to make the right expression the special skin that he has developed. His
at precisely the right time,” he says. ‘Frubber’ — a patented silicone elastomer FIGURE 12. Photo by Chris Buck of
Hanson began his interest in realistic whose mechanical properties allow the Hanson’s robot’s facial expressions.
robot faces when he studied art at the complex facial movements — is a foamed
Rhode Island School of Design and later platinum-based elastomer that contains
received a Ph.D. in Interactive Arts and up to 70 percent air by volume. The
Engineering from the University of Texas. control of the size and distribution of the
His well-known renderings of
Albert Einstein’s head applied to a FIGURE 11. Abraham Lincoln animatronic figure.
Korean-designed humanoid robot
is a bit on the creepy side (see
Figure 9). I found his rendering of
Sci-Fi writer, Philip K. Dick (see
Figure 10) absolutely amazing as it
displays many thousands of
nuanced, believable facial expres-
sions. Many people steer clear of
very realistic human faces on
humanoid robots as the facial
SERVO 11.2007 81
Then&Now.qxd 10/10/2007 10:20 AM Page 82
that will be 14 inches tall with a body and a standard model will cost about will forge those steps to finally produce
designed by Takahashi and a head $3,000. Hanson is also studying many that one humanoid who will be indistin-
designed by Hanson. These cartoon-like other more efficient power sources for guishable from a human being. Maybe
robots will be able to walk around and the appendages and facial movements not in our lifetime, but there will be
offer a range of facial expressions. of his humanoids. He feels that humanoids that can stand beside us and
“Biped robots aren’t that unusual in humanoids are the ideal robot design be the robotic equivalent of Turing’s Test
Japan. There are even soccer matches to interact with people. for AI. Meanwhile, go to the various man-
for them,” says Hanson. “But our new As with all my articles, I have only ufacturers such as CrustCrawler, Trossen
robot will be the only one capable of scratched the surface of the many tech- Robotics, Lynxmotion, or Robotis to see
complex facial expressions.” nologies that I discuss. The vast potential what is already available. Buy a kit or
A limited edition version of the of humanoid robots is just beginning. It is ready-made robot, modify it, and then cre-
new robot will sell for about $10,000 you — the readers of this magazine — who ate your own. Take that giant step. SV
Advertiser Index
Active Robots .............................................3 Images Co. ................................................46 Robot Power ............................................66
All Electronics Corp. ..........................31, 46 IMService ............................................31, 46 RobotShop, Inc. .................................46, 82
AP Circuits/e-pcb.com ............................60 Jameco .................................................2, 46 Schmartboard .....................................31, 75
AWIT ..........................................................46 Lorax Works ........................................31, 46 SCON .........................................................31
CrustCrawler .............................................13 Lynxmotion, Inc. .......................................19 Solarbotics/HVW .......................................9
Maxbotix ...................................................46
Electronics123 ..........................................31 SORC ..........................................................60
Maximum Robotics ............................20, 46
Floatation Center — Art Gallery ..............77 Net Media .................................................83 SPSU ...........................................................17
Futurlec .....................................................46 Parallax, Inc. ...............................Back Cover Technological Arts ...................................46
Gears Educational Systems, LLC .............61 PCB Pool .............................................46, 55 TORMACH .................................................12
Hitec ..........................................................16 Pololu Robotics & Electronics ..........21, 46 Vantec .......................................................66
Hobby Engineering .................................46 Robotis Co. Ltd. ..........................................7 Yost Engineering .......................................71
82 SERVO 11.2007
CoverInside.qxd 10/10/2007 11:34 AM Page 2
4
CANADA
74470 58285
$5.50
U.S.
0
Vol. 5 No. 11 SERVO MAGAZINE TOUCH BIONICS • KILLER ROBOTS • HUMANOIDS • ANDROID ARMS November 2007
Page 84
7:56 PM
10/10/2007
Cover.qxd