Mario Ferrari Giulio Ferrari - 10 Cool LEGO Mindstorms Ultimate Builder Projects - Amazing Projects You Can Build in Under An Hour (2002) PDF
Mario Ferrari Giulio Ferrari - 10 Cool LEGO Mindstorms Ultimate Builder Projects - Amazing Projects You Can Build in Under An Hour (2002) PDF
Mario Ferrari Giulio Ferrari - 10 Cool LEGO Mindstorms Ultimate Builder Projects - Amazing Projects You Can Build in Under An Hour (2002) PDF
com
With more than 1,500,000 copies of our MCSE, MCSD, CompTIA, and Cisco
study guides in print, we continue to look for ways we can better serve the
information needs of our readers. One way we do that is by listening.
Readers like yourself have been telling us they want an Internet-based ser-
vice that would extend and enhance the value of our books. Based on
reader feedback and our own strategic plan, we have created a Web site
that we hope will exceed your expectations.
Best of all, the book you’re now holding is your key to this amazing site.
Just go to www.syngress.com/solutions, and keep this book handy when
you register to verify your purchase.
Thank you for giving us the opportunity to serve your needs. And be sure
to let us know if there’s anything else we can do to help you get the
maximum value from your investment. We’re listening.
www.syngress.com/solutions
1 YEAR UPGRADE
BUYER PROTECTION PLAN
LEGO
®
M indst
in dsto o r ms
Ultimate Builders Projects
™
Syngress Publishing, Inc., the author(s), and any person or firm involved in the writing, editing, or
production (collectively “Makers”) of this book (“the Work”) do not guarantee or warrant the results to be
obtained from the Work.
There is no guarantee of any kind, expressed or implied, regarding the Work or its contents.The Work is
sold AS IS and WITHOUT WARRANTY. You may have other legal rights, which vary from state to state.
In no event will Makers be liable to you for damages, including any loss of profits, lost savings, or other
incidental or consequential damages arising out from the Work or its contents. Because some states do not
allow the exclusion or limitation of liability for consequential or incidental damages, the above limitation
may not apply to you.
You should always use reasonable care, including backup and other appropriate precautions, when working
with computers, networks, data, and files.
Syngress Media®, Syngress®,“Career Advancement Through Skill Enhancement®,” and “Ask the Author
UPDATE®,” are registered trademarks of Syngress Publishing, Inc. “Mission Critical™,”“Hack Proofing®,”
and “The Only Way to Stop a Hacker is to Think Like One™” are trademarks of Syngress Publishing, Inc.
Brands and product names mentioned in this book are trademarks or service marks of their respective
companies.
KEY SERIAL NUMBER
001 66YH7V43GY
002 RT5N7TF6CV
003 QASHF35TXA
004 XC4H8976NY
005 H74PR33T5S
006 UJF7NCES64
007 EC34EQ2APK
008 A2DMRDKJ67
009 V8NKP7HV6F
010 W6XF79UM3Z
PUBLISHED BY
Syngress Publishing, Inc.
800 Hingham Street
Rockland, MA 02370
10 Cool LEGO® MINDSTORMS™ Ultimate Buider Projects
Copyright © 2002 by Syngress Publishing, Inc. All rights reserved. Printed in the United States of America.
Except as permitted under the Copyright Act of 1976, no part of this publication may be reproduced or
distributed in any form or by any means, or stored in a database or retrieval system, without the prior
written permission of the publisher, with the exception that the program listings may be entered, stored,
and executed in a computer system, but they may not be reproduced for publication.
Printed in the United States of America
1 2 3 4 5 6 7 8 9 0
ISBN: 1-931836-60-4
Technical Reviewers: Mario Ferrari and Giulio Ferrari Cover Designer: Michael Kavish
Acquisitions Editors: Catherine B. Nolan and Page Layout and Art by: Shannon Tozier
Jonathan E. Babcock Copy Editor: Kate Glennon
Distributed by Publishers Group West in the United States and Jaguar Book Group in Canada.
Acknowledgments
We would like to acknowledge the following people for their kindness and support in
making this book possible.
A special thanks to Matt Gerber at Brickswest for his help and support for our books.
Karen Cross, Lance Tilford, Meaghan Cunningham, Kim Wylie, Harry Kirchner, Kevin Votel,
Kent Anderson, Frida Yara, Jon Mayes, John Mesjak, Peg O’Donnell, Sandra Patterson, Betty
Redmond, Roy Remer, Ron Shapiro, Patricia Kelly, Andrea Tetrick, Jennifer Pascal, Doug Reil,
David Dahl, Janis Carpenter, and Susan Fryer of Publishers Group West for sharing their
incredible marketing experience and expertise.
Duncan Enright, AnnHelen Lindeholm, David Burton, Febea Marinetti, and Rosie Moss of
Elsevier Science for making certain that our vision remains worldwide in scope.
David Buckland, Wendi Wong, Daniel Loh, Marie Chieng, Lucy Chong, Leslie Lim, Audrey
Gan, and Joseph Chan of Transquest Publishers for the enthusiasm with which they receive
our books.
Kwon Sung June at Acorn Publishing for his support.
Jackie Gross, Gayle Voycey, Alexia Penny, Anik Robitaille, Craig Siddall, Darlene Morrow,
Iolanda Miller, Jane Mackay, and Marie Skelly at Jackie Gross & Associates for all their help
and enthusiasm representing our product in Canada.
Lois Fraser, Connie McMenemy, Shannon Russell, and the rest of the great folks at Jaguar
Book Group for their help with distribution of Syngress books in Canada.
David Scott, Annette Scott, Delta Sams, Geoff Ebbs, Hedley Partis, and Tricia Herbert of
Woodslane for distributing our books throughout Australia, New Zealand, Papua New
Guinea, Fiji Tonga, Solomon Islands, and the Cook Islands.
Winston Lim of Global Publishing for his help and support with distribution of Syngress
books in the Philippines.
v
Contributors
Dr. Soh Chio Siong (commonly known as CSSoh on the Internet) is a Public
Health Physician who has a penchant for things scientific, mechanical, and elec-
tronic. Since he was a child, he has built crystal sets, microscopes, telescopes,
steam engines, digital clocks, and computers, among other things.
Dr. Soh became interested in using LEGO as a tool for creative learning in
1998, with the purchase of some LEGO Dacta sets and, later on, the MIND-
STORMS RIS set. He developed a special interest in pneumatics, particularly
pneumatic engines, and is author of the world-renowned site on LEGO
Pneumatics (www.geocities.com/cssoh1). He is an active member of the LUGNET
community and has led many interesting discussion threads.
His current interest is the use of LEGO in the teaching of science and cre-
ativity. He thinks robotics should be the fifth R, after Reading, wRiting,
aRithmetic, and computeR. He lives with his wife and daughter in Singapore.
Other LEGO claims to fame for Dr. Soh include:
In September 1999, Dr. Soh’s RCX Controlled Air Compressor Tester
(www.lugnet.com/robotics/?n=7407) created quite a stir on the LUGNET Robotics
Discussion list.
CSSoh’s LEGO Pneumatics Page (www.geocities.com/cssoh1) was voted
LUGNET’s Cool LEGO Site of the Week for January 9–15, 2000. This was the
first site from Singapore to receive this recognition from LUGNET.
In June 2000, Dr. Soh, in collaboration with P.A. Rikvold and S. J. Mitchell of
Florida State University, participated in a poster presentation at the Gordon
Conference. The presentation, entitled “Teaching Physics with LEGO: From
vi
Steam Engines to Robots,” can be viewed at www.physics.fsu.edu/users/rikvold/
info/gordon00a.html.
Dr. Soh is the creator of Robot 5: Nessie, and Robot 6: Nellie.
David Astolfo recalls that Lego first stimulated his imagination at about 4 years
old. It was not long before he received my first Lego Technic set. As a person
who loves to take things apart, figure out how then work, and sometimes put
them all back together, Technic was the ideal toy,. he would spend hours
building various Technic trucks, cranes and tractors, only to tear them apart and
start something new. One of his earliest Technic creations was a front wheel
drive steering-capable mechanism built from the parts of the 853 Technic Auto
Chassis set (1977).
A few years ago, David discovered that Lego had been working with MIT to
produce a “smart brick”., he knew then, that his “dark period” was over and he
was going to have to dust off the bricks and start building again. Soon after, he
picked up his first MINDSTORMS Robotics Invention System set I could get my
hands on. David now owns 5 RIS sets and a number of other Technic sets
totaling a part inventory over 25000 pieces.
David lives with his wife Rebecca in Burlington Ontario Canada. Currently
employed at ASI Technologies Inc. as Manager of Applications Systems, David’s
specialties include: Web application development and deployment, mapping with
GIS software tools, database modeling & design and a variety of network infras-
tructure management tasks. His educational background consists of a Bachelor of
Science Degree, as well as a Geographic Applications Specialist (GIS) Certificate.
When not working, David’s hobbies consist of Karate, mountain biking,
and creating robots with LEGO of course. He also occasionally attends robotic
competitions that are held by the rtlToronto group in Toronto. This group offers
some great challenges and a friendly and fun environment to test ones robot-
building skills against others. For information on David’s other Lego creations,
visit his Web site at www.astolfo.com/bots.
David is the creator of Robot 7: The DominoBot.
vii
modify other LEGO designs. Larry spent ten years in the defense industry inte-
grating factory automation and also integrating engineering computer aided
design with manufacturing.
Dr. Whitman, in conjunction with Tonya and Alex Witherspoon, is the cre-
ator of Robot 8: The Drawbridge.
viii
McDonalds on the lower level. He has made that clubhouse a reality in his back-
yard (minus the McDonalds). Alex presented his robot “Catapult Mania” at MIT’s
Mindfest when he was nine and broke the code to unlock the LEGO Knight’s
chain, which was a challenge posed to all Mindfest participants. His reward was
to take home the four-foot LEGO Knight. Upon returning from Mindfest, Alex
and his mother started a school-funded robotics club, at the invitation of Alex’s
elementary school principal.
The journey to MIT showed Alex that his type of creativity has ample appli-
cation in our world, and has spawned different inventions using LEGOs and
other materials to consummate the tenuous relationship between idea and
reality. Alex has participated on robotics teams that have received the top prize
for two years in a row at WSU’s MINDSTORMS Robotics Challenge. This
summer, he sent for a free patent attorney’s kit.
Alex Witherspoon, in collaboration with his mother, Tonya, contributed
Robot 9: The Wrapper Compactor. Alex was also a special collaborator with
Dr. Larry Whitman on Robot 8: The Drawbridge.
Kevin Clague graduated in 1983 from Iowa State University with a bachelor’s of
Science degree in Computer Engineering. For the past 18 years, Kevin has worked
as a Diagnostic Engineer at the Amdahl Corporation. For the last two years, he has
also acted as a Senior Staff Engineer doing verification work at Sun Microsystems
on their Ultra-Sparc V RISC processor. Kevin has two major hobbies: theatrical
lighting and LEGO MINDSTORMS. Kevin has been playing with the RIS 1.5 for
several years now and is currently working on LPub, an application to revolu-
tionize the world of creating online LEGO building instructions.
Kevin Clague contributed Robot 10: Robo-Hominid.
ix
Technical Reviewers
Mario Ferrari received his first LEGO box around 1964, when he was four-
years-old. LEGO was his favorite toy for many years, until he thought he was too
old to play with it. In 1998, the LEGO MINDSTORMS RIS set gave him reason
to again have LEGO become his main addiction. Mario believes LEGO is the
closest thing to the perfect toy. He is Managing Director at EDIS, a leader in fin-
ishing and packaging solutions and promotional packaging. The advent of the
MINDSTORMS product line represented for him the perfect opportunity to com-
bine his interest in IT and robotics with his passion for LEGO bricks. Mario has
been an active member of the online MINDSTORMS community from the
beginning and has pushed LEGO robotics to its limits. Mario holds a bachelor’s
degree in Business Administration from the University of Turin and has always
nourished a strong interest for physics, mathematics, and computer science. He is
fluent in many programming languages and his background includes positions
as an IT Manager and as a Project Supervisor. With his brother Giulio Ferrari,
Mario is the co-author of the highly successful book Building Robots with LEGO
MINDSTORMS (Syngress Publishing, ISBN: 1-928994-67-9). Mario estimates he
owns over 60,000 LEGO pieces. Mario works in Modena, Italy, where he lives
with his wife, Anna, and his children, Sebastiano and Camilla.
x
About This Book
Each of the ten cool robots in this book is presented using a method that makes its con-
struction as easy and intuitive as possible. Each chapter begins with a picture of the com-
pleted robot, accompanied by a brief introduction to the robot’s history, its unique challenges
and characteristics, as well as any concerns that the robot’s creator wants you to be aware of
during construction.
The instructions for building each robot are broken down into several sub-assemblies,
which each consist of an integral structural component of the finished robot. (For example,
the first robot presented in this book, WideBot, is broken down into four sub-assemblies: the
Chassis, the Right Drive, the Left Drive, and the Head.) You will see a picture of each fin-
ished sub-assembly before you begin its construction.
You will be guided through the construction of each sub-assembly by following the indi-
vidual building steps, beginning with Step 0. Each step shows you two important things—
what parts you need, and what to do with them—by using two pictures. The parts list picture
shows you which LEGO bricks you will need for that particular step, as well as the quantity
of parts required, and the color of the parts (if necessary). Since this book is printed in black
and white, we have used the following key to represent the colors:
■ B Blue
■ G Green
■ M Magenta
■ LB Light Blue
■ Y Yellow
■ Ppl Purple
■ TLG Transparent Light Green
■ TY Transparent Yellow
The instructional picture next to the parts list shows how those parts connect to one
another. As the robot’s construction progresses, it gets harder to see where parts get added,
so you’ll see we have made the parts that you add in each particular step darker than those
added in previous steps. Many of the steps also have a few brief lines of text to more fully
explain building procedures that may not be obvious from the pictures alone, or to discuss
what role this step plays in the larger scheme of the robot’s construction.
Once you have finished building all of the separate sub-assemblies, it’s time to put them
all together to complete the robot. The set of steps at the end of each chapter titled “Putting
It All Together” walks you through the process of attaching together the sub-assemblies.
xi
Throughout the chapters you will see three types of sidebars:
■ Bricks & Chips… These sidebars explain key LEGO building concepts and termi-
nology.
■ Developing & Deploying… These sidebars explain why certain building tech-
niques were used with a particular robot and what purpose they serve.
■ Inventing… These sidebars offer suggestions for customizing the robots. Building
robots with LEGO MINDSTORMS is all about creativity, so we encourage you to
experiment with these suggestions, and try different building techniques of your
own.
Building your robots is, or course, only half the fun! Getting them to run using the RCX
brick is what distinguishes MINDSTORMS robots from ordinary models created with LEGO
bricks. Some of the robots in this book will use the programs that come hard-wired into the
RCX brick. Many of them will use unique programs that the authors have written specifi-
cally for their robots. Keep an eye out for the black and white syngress.com icons scattered
throughout the book.
These icons alert you to the fact that there is code for this particular robot available for
download from the Syngress Solutions Web site (www.syngress.com/solutions). The programs
for the robots in this book are written in two of the most common programming languages
used for LEGO MINDSTORMS:
■ RCX LEGO’s official programming language.
■ NQC Standing for “Not Quite C,” NQC is a programming language created by
Dave Baum. Very similar in many ways to the C computer programming language,
NQC is a text-based language that is more powerful and flexible than RCX.
For instruction on uploading these programs to your RCX brick, refer to the documenta-
tion that came with your LEGO MINDSTORMS RIS 2.0 kit.
The Syngress Solutions Web site (www.syngress.com/solutions) contains the code files for
the robots found in 10 Cool LEGO Mindstorms Ultimate Builders Set Projects: Amazing
Projects You Can Build in Under an Hour. The code files are located in a BotXX directory.
For example, the files for Robot 5 are located in folder Bot05. Any further directory structure
depends upon the specific files included for the robot in that particular chapter.
xii
Contents
HunterBot, Robot 4
xiii
Foreword
xvi
Robot 1
WideBot
1
Robot 1 • WideBot
2
Robot 1 • WideBot
WideBot uses the latter method, the same principle as the cat in the robotic
tag game. By rotating on its wide wheelbase, WideBot can carefully scan a
room for the light source. WideBot’s width isn’t just for looks: The wide turning
circle makes a side-to-side scanning motion that is slow and easily controlled.
You can find the program for WideBot on the Syngress Solution Web site
(www.syngress.com/solutions). It is a simple light-seeking program. The robot
will keep turning in one direction until either the light exceeds the
LIGHT_THRESHOLD value or until one of the bumpers is hit. The direction
the robot turns is determined by which bumper is hit (if the left bumper is hit,
the robot seeks to the right and vice-versa). The robot moves straight ahead
while the light is above the threshold.
3
Robot 1 • WideBot
The Chassis
The chassis sub-assembly is the frame on which WideBot is built. It supports the RCX brick and pro-
vides a solid connection for the other parts. Using the open-centered transparent bricks, you can
quickly build WideBot’s sturdy frame.
Chassis Step 0
4
Robot 1 • WideBot
Chassis Step 1
5
Robot 1 • WideBot
Chassis Step 2
Chassis Step 3
6
Robot 1 • WideBot
Inventing…
Casters, Skids, or Sliding?
Because WideBot uses skids it runs best on a smooth surface. If
a smooth surface is not available you could try to adapt the
caster wheel that appears in Robot 5, Nessie, or the sliding
wheel that appears in Robot 6, Nellie.
Chassis Step 4
7
Robot 1 • WideBot
The right drive sub-assembly is a complete drive unit that includes the motor, gearbox, and right
wheel. The gearbox turns the rotation angle 90 degrees and reduces the rotation speed by a ratio
of 5:1. In other words, for every five revolutions of the motor, the wheel turns only once.
WideBot has two drive sub-assemblies, the right and the left, which include connectors and
supports for the chassis.
1x2 plate
1x2 plate
8
Robot 1 • WideBot
9
Robot 1 • WideBot
10
Robot 1 • WideBot
11
Robot 1 • WideBot
12
Robot 1 • WideBot
The left drive sub-assembly is a mirror image of the right drive sub-assembly, with the exception of
the gearbox. To ensure that the wheels drive in the same direction, the gearbox setup is identical in
both motor assemblies (that is, it is not a mirror of the right drive, but is exactly the same).
13
Robot 1 • WideBot
Begin assembling
1x2 plate the left drive sub-
assembly as you did
for the right drive
sub-assembly.
1x2 plate
14
Robot 1 • WideBot
15
Robot 1 • WideBot
16
Robot 1 • WideBot
17
Robot 1 • WideBot
The Head
The head sub-assembly provides WideBot with two senses: touch and sensitivity to light. With touch
sensors behind the left and right bumpers, WideBot can respond appropriately when it bumps into
an object. The light sensor measures brightness directly ahead.
18
Robot 1 • WideBot
Inventing…
Heads Up or Heads Down?
If you want to build a line-following robot instead of a light-following
robot, rotate the bricks with axle holes 90 degrees forward. The light
sensor can then point downward instead of forward.
19
Robot 1 • WideBot
Head Step 3
Head Step 2
Insert the
#4 axles
into the
angle
connec-
Slide the axles into the liftarms. tors and slide
them onto the
assembly. Make sure that the
half-bushings don’t squeeze the angle
connectors—they should pivot freely.
Slide the
two touch
sensors
onto the
axles, and
attach the
light sensor
to the green bricks so that
it faces forward.
20
Robot 1 • WideBot
Head Step 6
Secure the touch sensors with
the 1x2 liftarms, and slide the
1x4 liftarm onto
the axle pins at
the back of the
assembly.
Head Step 7
Inventing…
Customizing the Bumpers
WideBot uses the blue and yellow liftarms as bumpers, but you can
use other parts, such as flexible tubes or a combination of axles and
connectors.
21
Robot 1 • WideBot
Head Step 9
22
Robot 1 • WideBot
Head Step 10
Head Step 11
23
Robot 1 • WideBot
You’re almost there. Now that you’ve built the chassis, head, and left and right drive sub-assemblies,
you can put them together to complete WideBot.
Final Step 0
To begin the final assembly,
start with the chassis sub-
assembly. Attach the
right drive
sub-assembly
to the right
side of the
chassis as
shown.
24
Robot 1 • WideBot
Final Step 1
Now, attach the left drive sub-
assembly the same way to the
left side of the chassis.
Final Step 2
Snap the head sub-assembly
onto the yellow double pin at
the front of the chassis.
25
Robot 1 • WideBot
Final Step 3
Light Sensor to
Input Port 2
26
Robot 1 • WideBot
27
Robot 2
SumoBug
29
Robot 2 • SumoBug
30
Robot 2 • SumoBug
The SumoBug program requires that both opponents have the following char-
acteristics:
■ Left and right front bumpers with touch sensors attached to Input
Ports 1 and 3
■ A downward-pointing light sensor attached to Input Port 2 and
mounted on the rear of the robot
■ Left and right motors connected to Output Ports A and C, respectively
Place the two robots so that they are facing each other across the length of
the Test Pad. Run the program to start the match. If your SumoBug is forced
backward over the black line, it loses the match and sends a “you win” mes-
sage to the victor. If your SumoBug receives a “you win” message before
crossing the black line, it does a little victory dance and plays a tune.
31
Robot 2 • SumoBug
To begin, you will build the right drive sub-assembly, which includes the motor, gearbox, and right
tractor tread. The gearbox uses a worm gear and a 24t gear to reduce the rotation speed by a ratio
of 24:1. In other words, for every 24 revolutions of the motor, the wheel inside the tractor tread
turns only once.
SumoBug’s two drive sub-assemblies, the left and right drives, include connectors and supports
for the RCX brick.
32
Robot 2 • SumoBug
33
Robot 2 • SumoBug
34
Robot 2 • SumoBug
The left drive sub-assembly is almost a mirror image of the right drive sub-assembly, and includes
the motor, gearbox, and tractor tread.
35
Robot 2 • SumoBug
Slide the
three axles though
the 1x16 TECHNIC brick
and secure them with the
bushings and the 24t gear.
36
Robot 2 • SumoBug
37
Robot 2 • SumoBug
38
Robot 2 • SumoBug
Attach the
sprocket wheels
to the three axles using the
bushings, and slide the tractor
tread onto the sprocket wheels.
39
Robot 2 • SumoBug
The Head
SumoBug’s head is more than just a pretty face. It holds the light sensor and two bumpers equipped
with touch sensors. During a match, SumoBug uses the light sensor to see the black line on the RIS
Test Pad. Separate bumpers let SumoBug know which side the opponent is on.
Head Step 0
40
Robot 2 • SumoBug
Head Step 1
Slide
the remaining
liftarms and bushings onto
the axles.
Head Step 2
Slide the
#4 axles
through the
liftarms
added in
Head Step 1
as shown.
Next, using the angle
connectors with the #5
stamped on the side, add these to both
ends of each axle. The angle connectors allow
the front bumpers to pivot freely on the axles. Finally,
add the pins to the exterior axle connectors on each
side and the #2 axles to the interior axle connectors
on each side.
41
Robot 2 • SumoBug
Head Step 3
Use the
half-bushings to
secure the angle connectors.
Head Step 4
Connect a wire to each of the two
touch sensors, and slide them onto
the axle under the black liftarms.
Once the bumpers are attached,
the pivoting angle connectors will
cause the bumper to push the touch
sensor’s yellow button when SumoBug
encounters an obstacle.
Head Step 5
42
Robot 2 • SumoBug
Head Step 6
43
Robot 2 • SumoBug
Head Step 7
Attach the
light sensor to the
green bricks with axle
holes so that the end of the
light sensor extends slightly below the
bottom of the touch sensors.
44
Robot 2 • SumoBug
Head Step 8
Inventing…
Customizing SumoBug’s Head
Although SumoBug’s big, googly eyes are cute, not everyone will like
them on their wrestler robot! Play around with different decorations,
like antennae or smaller eyes to give your robot a different expression—
or none at all!
45
Robot 2 • SumoBug
The RCX
RCX Step 0
Insert three-quarter-length
pins into each of the four
holes on the RCX brick.
46
Robot 2 • SumoBug
RCX Step 1
Snap the
yellow liftarms
onto the pins on
each side of the RCX, as
shown. You’re now ready to
begin the final assembly!
Now that you’ve completed all four major components—the left and right drive sub-assemblies,
the head sub-assembly, and the RCX sub-assembly—you can go ahead and begin the final construc-
tion steps.
47
Robot 2 • SumoBug
Final Step 0
Final Step 1
48
Robot 2 • SumoBug
Final Step 2
49
Robot 2 • SumoBug
Final Step 3
Light Sensor to
Input Port 2
50
Robot 3
Hopper
51
Robot 3 • Hopper
52
Robot 3 • Hopper
The left drive and right drive sub-assemblies are used to rotate the large pulley wheels which pro-
vide the hopping action for the legs. The beveled gears turn the angle of rotation 90 degrees and
reduce the speed.
53
Robot 3 • Hopper
Inventing…
Choosing the Gears
Your choice of gears determines speed and torque. You should
experiment with different gear ratios—for example, if you replace
Hopper’s gears with an 8t gear and a 24t crown gear, Hopper will
move more slowly.
54
Robot 3 • Hopper
The right drive sub-assembly is a mirror image of the left drive sub-assembly.
55
Robot 3 • Hopper
56
Robot 3 • Hopper
The Chassis
Hopper’s chassis is a simple frame onto which of all of the other parts are added.
Chassis Step 0
57
Robot 3 • Hopper
Chassis Step 1
Chassis Step 2
58
Robot 3 • Hopper
The RCX
Before the RCX can be mounted onto Hopper’s chassis, you need to add liftarms, which provide the
attachment points.
RCX Step 0
59
Robot 3 • Hopper
RCX Step 1
RCX Step 2
Inventing…
Choosing Part Colors
Your choice of part colors can influence the overall look of your robot.
If you prefer, you can use the blue 1x7 liftarms that came with the
Ultimate Builders Set. I chose the black ones simply for looks.
60
Robot 3 • Hopper
Now that you’ve built the left and right drive, chassis, and RCX sub-assemblies, you’re ready to start
Hopper’s final assembly.
Final Step 2
61
Robot 3 • Hopper
Final Step 3
Build
Hopper’s head by
adding the sloped
bricks before sliding the
two green bricks with axle
holes onto the axle under-
neath. To make the right eye,
slide a wheel on to one end of a
#6 axle and slide it through the first hole in the beam
as shown.
Using the #10 axles and bushings, build the legs on
both sides of the robot.
62
Robot 3 • Hopper
Final Step 5
Inventing…
Starting Off on the Right Foot
Your choice of parts for the feet can change
how Hopper moves. Try different parts in place
of the ones shown to see what happens.
Final Step 6
63
Robot 3 • Hopper
Final Step 7
Light Sensor
to Input Port 2
Finally, connect the light sensor to
Input Port 2, and connect the left
and right motors to Output Ports
A and C.
You’re done! Once you down-
load the program, you’re
ready get hopping.
64
Robot 4
HunterBot
65
Robot 4 • HunterBot
HunterBot is a treaded robot designed to locate and grab objects. It’s based on
one of my favorite robots—a wheeled robot with a claw, two RCX bricks, three
touch sensors, two light sensors, and a rotation sensor. All of this hardware
works towards the single objective of gathering pop cans.
Here’s how it works. I wrapped a piece of blank, white paper around a few
empty cola cans. I then placed the white cans in strategic spots on the floor.
Using only the patterns on the floor to navigate, the robot would locate the
cans, grab them, and check to see if its claws held something white. If the
object wasn’t a white can, the robot opened its claws and continued the search.
Several schools have set up similar challenges in which the robots have to
locate the cans and move them to a specified location. This is an excellent way
to test your skills at building and programming with MINDSTORMS.
I designed HunterBot with this challenge in mind. The HunterBot’s main
features are the grabber arms, which can close firmly on objects, and the pow-
erful tractor treads, which help the robot drag cans to another location. The
bumpers play an important role, too. As HunterBot wanders around the floor, it
will eventually bump into something—like a pop can, for example. When this
happens, it turns and grabs the object.
A robot, of course, is only as good as its programming. Using the HunterBot
program, which is an NQC program that you can download from the Syngress
Solutions Web site (www.syngress.com/solutions), this robot can successfully grab
and move cans or other small objects, should it happen to bump into them.
Given an efficient search pattern, HunterBot should be able to bump into several
cans. Consider this a starting point for a more sophisticated search strategy.
Your challenge is to observe HunterBot in action, think up ways to improve
its ability to find cans, and modify the HunterBot program accordingly. Try
altering the search pattern so that it’s more efficient. If you fill the RIS Test Pad
with objects, how long will it take HunterBot to remove them?
66
Robot 4 • HunterBot
The right drive sub-assembly includes the motor, gearbox, and right tractor tread. The gearbox
reduces the rotation speed to a one–fifth of the motor’s speed.
67
Robot 4 • HunterBot
68
Robot 4 • HunterBot
69
Robot 4 • HunterBot
70
Robot 4 • HunterBot
Inventing...
Wheels or Treads?
HunterBot is designed to run on treads, but you could adapt
it to run on wheels with very little modification.
The left drive sub-assembly mirrors the right drive sub-assembly, but notice that the gears are
exactly the same in both modules. This ensures that the wheels drive in the same direction when
the motors run forward.
71
Robot 4 • HunterBot
72
Robot 4 • HunterBot
73
Robot 4 • HunterBot
74
Robot 4 • HunterBot
75
Robot 4 • HunterBot
Now you begin the interesting part of HunterBot: the grabber arms. The business end of the grabber
“claw” is a simple assembly of four angled liftarms on a series of axles. When the 24t gears rotate,
the grabber arms open or close.
Inventing...
Arming Your Robot
For HunterBot’s arms, I chose the black, angled liftarms. You
may prefer the brightly-colored ones that came with the
Ultimate Builders Set.
76
Robot 4 • HunterBot
77
Robot 4 • HunterBot
78
Robot 4 • HunterBot
The grabber motor sub-assembly powers the grabber arms using a worm gear.
79
Robot 4 • HunterBot
80
Robot 4 • HunterBot
The Bumpers
These are probably the simplest bumpers you will ever build. While they aren’t pretty, they work
reliably, and they’re very easy to put together. You will need to build two of these.
81
Robot 4 • HunterBot
Bumper Step 0
Attach
the
TECHNIC bricks
and touch sensor to
the two 2x4 plates with
holes, as shown.
Bumper Step 1
Bumper Step 2
Finally,
complete
the bumper with
the #8 axle and
bushings, and connect the
wire to the sensor. Remember
to build two of these
bumper sub-assemblies!
82
Robot 4 • HunterBot
The RCX
The RCX brick needs a beam on either side so that it can be attached to the body of the robot.
RCX Step 0
RCX Step 1
83
Robot 4 • HunterBot
This is the moment you’ve been working towards—the final assembly! This is the easiest yet the
most satisfying part of building a robot.
First you’ll create the HunterBot’s head, which includes the grabber motor, grabber arms, and
bumper sub-assemblies you built earlier, plus a light sensor. The various angled liftarms will connect
the head to the body later in the final assembly.
Final Step 0
Locate the grabber
arms sub-assembly
that you built
earlier.
84
Robot 4 • HunterBot
Final Step 1
This step may be a little tricky. Locate the
grabber motor sub-assembly that you
built earlier, and slip the motor’s axle with
the worm gear between the two 24t
gears. The axle should fit securely inside
the blue axle connector on the front of
the grabbers. The worm screw should
mesh with the gray gears.
As you do this, make
sure that the left and right
arms are open about the
same distance.
Final Step 2
85
Robot 4 • HunterBot
Final Step 3
Final Step 4
86
Robot 4 • HunterBot
Final Step 5
87
Robot 4 • HunterBot
Final Step 6
Put the head you just built
aside for a moment. Locate
the right drive sub-assembly.
Final Step 7
Connect the two drive
sub-assemblies together
as shown.
Inventing...
Space Available
Connector blocks, like the transparent blue ones that hold
HunterBot’s drive modules together, are often used to attach
other accessories. Have a look at the RIS 2.0 Constructopedia
for some ideas for things to attach to HunterBot.
88
Robot 4 • HunterBot
Final Step 8
Final Step 9
89
Robot 4 • HunterBot
Grabber Motor
to Output Port B
Right Motor to
Left Motor to Output Port C
Output Port A
Nessie
91
Robot 5 • Nessie
Nessie was built as a simpler yet versatile alternative to the RoverBot that can
be found in the RIS 2.0 Constructopedia. Nessie is a small robot base that can
be configured for a variety of functions. It makes a good beginner’s model
because it uses few parts and can be built within half an hour. In this imple-
mentation, Nessie is equipped with a dual light sensor for line following, for
which it is eminently suitable. The two light sensors enable Nessie to negotiate
a sharp 90-degree bend in both a clockwise and counter-clockwise direction.
The two light sensors also create a variety of programming options.
Nessie is powered by two of the LEGO geared motors in a differential drive
arrangement. The motors are placed in front, creating a sort of front-wheel
drive, for better traction and ease of turning. A gear reduction of 3:2 (or 1.5:1) is
used to give Nessie a balance between speed and reliability when used as a line
follower. Nessie also features a trailing caster wheel, which gives it great
maneuverability, which is an important factor for line following.
As we said, Nessie’s base can be easily customized—we encourage you to try
the following changes, observing the effect on the robot’s performance:
■ Motor placement Move the motors back relative to the driving
wheels.
■ Gear ratio Try different combinations of gears.
■ Wheels Try different types of wheels.
■ Trailing wheel Replace the trailing caster with other wheel arrange-
ments, such as a sliding pulley wheel. We will show you how to build
this type of wheel in Robot 6, Nellie. Nellie is a close cousin of Nessie.
■ Sensors Attach bumpers that activate touch sensors, to turn the robot
into an obstacle avoidance vehicle. We will also show you how to
incorporate a rotation sensor when building Nellie.
92
Robot 5 • Nessie
This is the caster wheel sub-assembly that gives Nessie its great maneuverability, which is so impor-
tant for line following.
93
Robot 5 • Nessie
94
Robot 5 • Nessie
95
Robot 5 • Nessie
The Base
This is the main robot base, which can be customized for various functions.
Base Step 0
Base Step 1
Double up
each of the side
frames with the long
beams. Attach the
long plates to the
bottom of the beams, then pass
the axles through the beams.
96
Robot 5 • Nessie
Base Step 2
Base Step 3
The
plates
in front
form a well, which
will accommodate
the rounded
bottom of the
motors.
Base Step 4
97
Robot 5 • Nessie
Base Step 5
Base Step 6
98
Robot 5 • Nessie
Base Step 7
Base Step 8
99
Robot 5 • Nessie
Base Step 9
Brace the
back of the
robot base
in order to
keep the caster
wheel sub-assembly
firmly in place.
Base Step 10
The wires for the right-
side motor connect to Connect the left-
Port C on the RCX. side motor wires to
Port A on the RCX.
100
Robot 5 • Nessie
Base Step 11
Base Step 12
101
Robot 5 • Nessie
With two light sensors, line following is a cinch. Nessie will negotiate a sharp 90-degree bend in
both a clockwise and counter-clockwise direction. Furthermore, Nessie can be programmed to detect
a T-junction on the line, where she can be made to stop, change direction, or carry out a specified
task such as dumping a cargo into a receptacle.
102
Robot 5 • Nessie
103
Robot 5 • Nessie
104
Robot 6
Nellie
105
Robot 6 • Nellie
At first glance, Nellie closely resembles Robot 5, Nessie. However, as you build
this robot you will see that Nellie employs a significant change in how it moves
by replacing the caster wheel with a sliding rear wheel. Nessie used a freely
movable caster to give it great maneuverability for turning, which is advanta-
geous for line following. However, as you may have already realized, following
a straight line offers results that could be considered poor.
Nellie differs from Nessie by using a sliding rear wheel and an additional
rotation sensor. The wheel rotates freely when the robot is going straight. The
sliding wheel receives it name from the turning action of the robot. When
Nellie makes a turn, the wheel doesn’t rotate but instead slides (or skids) over
the surface of the floor. Thus, for the sliding wheel to work there should be
very little friction between the wheel and the floor. To achieve this minimal
friction we will use a wheel without a tire. The addition of the rotation sensor,
and a rear-sliding wheel will allow you to program your robot to travel a given
distance. Nellie uses a rotation sensor paired with a light sensor, and can be
programmed to follow a line until it reaches a designated point where it can
then carry out a specified task.
106
Robot 6 • Nellie
The Slider
The sliding wheel and rotation sensor are incorporated in this sub-assembly, which is then attached
to the main robot base.
Attach
a 2x2 plate with holes to
the bottom of the rotation
Insert a long pin with friction sensor. Be sure to position the rotation
into a 1x12 TECHNIC beam. sensor with the wires pointing upward.
Push the plate onto the free end of the
long pin with friction. Align the axle hole of
the rotation sensor with the holes in the
TECHNIC beam.
107
Robot 6 • Nellie
Slider Step 2
108
Robot 6 • Nellie
Slider Step 4
109
Robot 6 • Nellie
The Base
This is the main robot base of Nellie. This is similar to the base that was built in Robot 5, Nessie. Be
sure to follow these steps closely as there are minor variations between the two.
Base Step 0
110
Robot 6 • Nellie
Base Step 1
Base Step 2
111
Robot 6 • Nellie
Base Step 3
Base Step 4
112
Robot 6 • Nellie
Base Step 5
Base Step 6
Fit a pair
of yellow wheel hubs with the
large notched tires. Slide the wheels onto the axles
on each side of the base with the concave sides of
the tires facing outwards.
Then, attach a pair of 1x4 TECHNIC beams on
each side at the rear of the chassis. This will form
the rear support for the RCX.
113
Robot 6 • Nellie
Base Step 7
Attach the slider sub-assembly to
the base. Check that the sliding
wheel is able to rotate freely.
Base Step 8
Add another 1x4 TECHNIC beam
to each of the stacks of 1x4
beams attached in Base Step 6.
Attach a short connector wire to
each of the motors.
114
Robot 6 • Nellie
Base Step 9
Base Step 10
Attach a 1x5
liftarm on each side
of the stack of 1x4 beams.
These liftarms provide
vertical bracing for the base.
115
Robot 6 • Nellie
Base Step 11
116
Robot 6 • Nellie
Base Step 12
117
Robot 6 • Nellie
Base Step 13
118
Robot 6 • Nellie
119
Robot 6 • Nellie
120
Robot 6 • Nellie
121
Robot 7
The DominoBot
123
Robot 7 • The DominoBot
The process of laying dominoes by hand takes a great deal of time, accuracy,
and patience. I was interested in seeing what it would take for a robot to do
the same. The idea behind DominoBot was to create a robot that could be
loaded with dominoes and program it to follow a black line on a white back-
ground while laying dominos at a preset distance along the path. This proved
to be more of a challenge than I imagined!
In order to build this robot, you will require a set of dominos. The domi-
noes used for this design are Double Nine Color Dot Dominoes. These domi-
noes are approximately four LEGO studs in width by seven studs in height. It is
possible that other dominoes of similar size will work as well.
To perform this task, some important details had to be worked out. There
are three major components to the DominoBot that enable it to accomplish its
many simultaneous actions. First, there is the drive mechanism, which consists
of left and right track drive units that serve the purpose of moving the
DominoBot in any direction. The drive also contains the second major compo-
nent, the distance sensor. The distance sensor uses a differential connected
between the two drive units. This component detects the distance the
DominoBot has traveled by way of registering clicks to a touch sensor (set up
as a PULSE touch sensor in NQC). The differential allows for clicks to be regis-
tered only when both drive tracks are moving forward; it does not register
clicks if the DominoBot is turning. This was an important feature since I did
not want the dominos being placed too closely or too far apart.
The third major components are the loader and loader arm. These parts are
responsible for the main domino-placement action. The loader takes a stack
of dominoes and places each one. It does this by use of a touch sensor to
124
Robot 7 • The DominoBot
determine when a domino has been ejected out of the loader and also when
the loader arm has reset itself. The loader arm proved to be the greatest chal-
lenge in designing this robot. Since the dominoes did not fit snugly in any part
of the loader mechanism, I had to find a way to accurately and carefully place
each domino as it slid out of the loader. Some patient experimenting revealed
that the LEGO flexible hoses would do the trick for the placement process. The
loader arm consists mostly of these flexible hoses arranged in such a way that
they form a path for the domino to slide down and stand up on the ground.
The ability of the hoses to flex allows for the orientation of each domino to be
corrected if it does not come out of the loader smoothly.
Another challenge was the limited number of available motors for this
project. I had to find a way to make all this work with one motor (the two
others are used to drive the robot). The design that I came up with allows for
all domino-placement actions to be done with one motor and touch sensor. The
loader and loader arm both run in sync with each other from the motor, while
the touch sensor is used to inform the RCX when a domino has been released
and when the loader mechanism has reset itself.
The NQC program for the DominoBot is available for your use and modifi-
cation on the Syngress Solutions Web site (www.syngress.com/solutions).
Programming DominoBot consists of a few core routines. When DominoBot
first begins, its will move left to right in a sweeping patter while it calibrates
light sensor values. Since the LEGO light sensor reads light values based on
surrounding light, it is hard to use specific values to identify black and white.
Once it has calibrated light, it begins moving forward along the black line.
This action is monitored by the checklight() task. While doing this the distance
sensor is incremented each time it is tripped by the cam gear. Testing revealed
that three clicks would be an adequate distance for placing each domino. The
checkdistance() task is responsible for this.
Once the checkdistance() task counts three clicks, it calls on the
dodomino() task. This task stops all other tasks while it proceeds to place a
domino. It makes sure that the loader arm has reset itself so that it does not
clip the just-placed domino when beginning to move forward again.
All the above tasks are repeated for each domino in the loader. You will
have to keep the loader full of dominos while DominoBot is navigating the
course. You will also have to stop DominoBot once the dominos have all been
placed.
125
Robot 7 • The DominoBot
The Loader
The loader sub-assembly delivers a domino from the stack to the loader arm by using a push mech-
anism. It also uses a touch sensor to alert the program that a domino has been delivered.
Loader Step 0
126
Robot 7 • The DominoBot
Loader Step 1
Loader Step 2
127
Robot 7 • The DominoBot
Loader Step 3
Loader Step 4
128
Robot 7 • The DominoBot
Loader Step 5
129
Robot 7 • The DominoBot
Loader Step 6
Loader Step 7
130
Robot 7 • The DominoBot
Loader Step 8
Loader Step 9
131
Robot 7 • The DominoBot
Loader Step 10
Loader Step 11
132
Robot 7 • The DominoBot
Loader Step 12
Loader Step 13
Similar to
Loader Step
12, create
another layer. Note
the additional 1x2 gray
plates attached to the 1x8
TECHNIC beam.
133
Robot 7 • The DominoBot
Loader Step 14
134
Robot 7 • The DominoBot
Loader Step 15
135
Robot 7 • The DominoBot
Loader Step 16
136
Robot 7 • The DominoBot
Loader Step 17
137
Robot 7 • The DominoBot
Loader Step 18
Liftarm
138
Robot 7 • The DominoBot
The right drive sub-assembly provides motion to the DominoBot. Tracks provide the ability to turn
on a tight radius.
139
Robot 7 • The DominoBot
140
Robot 7 • The DominoBot
141
Robot 7 • The DominoBot
142
Robot 7 • The DominoBot
143
Robot 7 • The DominoBot
144
Robot 7 • The DominoBot
145
Robot 7 • The DominoBot
146
Robot 7 • The DominoBot
147
Robot 7 • The DominoBot
148
Robot 7 • The DominoBot
The distance sensor allows the DominoBot to track how far forward it has moved. The program will
need this information in order to place the dominoes an equal distance from each other.
The differential enables the mechanism to register a click only when both the left and right
drive units are moving forward. If either drive is in reverse (when steering or turning), the differen-
tial will keep the cam gear idle.
149
Robot 7 • The DominoBot
150
Robot 7 • The DominoBot
The left drive sub-assembly connects to the right drive sub-assembly to form the driving base of the
DominoBot. Or course, its purpose is to give it mobility.
151
Robot 7 • The DominoBot
152
Robot 7 • The DominoBot
153
Robot 7 • The DominoBot
154
Robot 7 • The DominoBot
155
Robot 7 • The DominoBot
156
Robot 7 • The DominoBot
157
Robot 7 • The DominoBot
158
Robot 7 • The DominoBot
159
Robot 7 • The DominoBot
160
Robot 7 • The DominoBot
161
Robot 7 • The DominoBot
The Base
The base sub-assembly consists of the left drive sub-assembly, the right Drive sub-assembly, and the
distance sensor sub-assembly. You will connect them together in the following series of steps.
Base Step 0
162
Robot 7 • The DominoBot
Base Step 1
163
Robot 7 • The DominoBot
Base Step 2
The loader sensor sub-assembly completes the essential function of identifying to the RCX when the
loader mechanism has dispensed a domino, and when the loader has reset and is ready for the next
domino.
164
Robot 7 • The DominoBot
165
Robot 7 • The DominoBot
166
Robot 7 • The DominoBot
167
Robot 7 • The DominoBot
168
Robot 7 • The DominoBot
169
Robot 7 • The DominoBot
170
Robot 7 • The DominoBot
Finally, put the entire DominoBot together. Here you will take all the components that you have
built and put them together to complete the DominoBot!
171
Robot 7 • The DominoBot
Final Step 0
Final Step 1
172
Robot 7 • The DominoBot
Final Step 2
173
Robot 7 • The DominoBot
Final Step 3
174
Robot 7 • The DominoBot
Final Step 4
Final Step 5
175
Robot 7 • The DominoBot
Final Step 6
176
Robot 7 • The DominoBot
Final Step 7
177
Robot 7 • The DominoBot
Final Step 8
178
Robot 7 • The DominoBot
179
Robot 8
The Drawbridge
181
Robot 8 • The Drawbridge
When you think of a drawbridge, you might see an image of a castle’s draw-
bridge spanning a moat, ready to be drawn up at a moment’s notice when ene-
mies appear on the horizon. Modern Drawbridges use motors to lift and lower
the bridge, instead of the chains, ropes, counterweights, and pulleys that were
used in the past. These days, most drawbridges are used to lift a section of road
or railway so that ships can travel into a bay or down a river.
Frequently, modern drawbridges do not span an entire waterway. Instead,
they connect two extension bridges to one another. The portion of the bridge
that is actually “drawn up” is typically located over the deepest (and therefore
most navigable) portion of the waterway. You might want to make your
Drawbridge the middle section of a series of extension bridges that span a
wide channel.
The gear box of the drawbridge is created by using a worm gear to create a
large gear reduction so that the power from the motor is increased and the
speed is decreased. This allows the motor to slowly move the heavy bridge out
of the way.
The Island Footbridge is an additional bridge for pedestrians. The foot-
bridge is not attached to one side of the waterway but rather anchored out in
the middle like an island. The footbridge rotates around on a turntable clearing
the waterway so that objects may pass down the river.
The Drawbridge is programmed to use the light sensor to detect when a
ship or boat is approaching. The RCX beeps a tone and lifts the movable por-
tion, or bascule or balance. When the light sensor detects that the ship has
passed by, the RCX beeps another tone and begins to lower the bascule. When
the bascule is completely lowered it will press against the touch sensor, causing
the motor to stop lowering the bascule and sounding another tone so that cars
will know it is safe to pass over the Drawbridge. The program for the
Drawbridge can be downloaded from the Syngress Solutions Web site
(www.syngress.com/solutions).
182
Robot 8 • The Drawbridge
Bridge Base
The bridge base sub-assembly supports the bridge as it moves up and down. The base of the bridge
must be sturdy enough to support the weight of cars and trucks passing over it.
Base Step 0
183
Robot 8 • The Drawbridge
Base Step 1
This
side
of the base
sub-assembly
provides support for
the “geared” side of
the Drawbridge.
Base Step 2
184
Robot 8 • The Drawbridge
Base Step 3
This step provides the base for
the sensors. The 1x2 TECHNIC
brick is attached to the underside
of the 2x8 plate. Use the long pin
with the stop bushing to connect
the 1x2 brick and the frame.
Base Step 4
185
Robot 8 • The Drawbridge
Inventing…
Adding Warning Lights
Program the light sensor to detect a flashlight
that acts as a warning to lift the bridge.
Inventing…
Touch Sensor Placement
Try placing the touch sensor on the end of the bridge to stop
the motor when the bridge contacts the far support.
186
Robot 8 • The Drawbridge
Motor Assembly
The motor assembly includes a gearbox with two worm gears that provide low speed and high
torque, which is exactly what is needed to lift the heavy bascule.
187
Robot 8 • The Drawbridge
188
Robot 8 • The Drawbridge
189
Robot 8 • The Drawbridge
190
Robot 8 • The Drawbridge
The Bascule
The Bascule sub-assembly is the moveable part of the bridge that will lift or draw. It is often also
called a balance.
Inventing…
Lengthening the Bascule
This same pattern can be used to extend the bascule even further
(be careful, as the gears can only lift so much weight!).
191
Robot 8 • The Drawbridge
Bascule Step 0
192
Robot 8 • The Drawbridge
Bascule Step 1
193
Robot 8 • The Drawbridge
The island footbridge sub-assembly is anchored in the middle of the waterway like an island.
The island footbridge rotates on a turntable to move out of the way to let even larger types of
boats pass.
194
Robot 8 • The Drawbridge
195
Robot 8 • The Drawbridge
196
Robot 8 • The Drawbridge
197
Robot 8 • The Drawbridge
198
Robot 8 • The Drawbridge
199
Robot 8 • The Drawbridge
Continue adding
beams to build up
the footbridge.
200
Robot 8 • The Drawbridge
Run a #6 axle
through the bridge
and secure it with the
bushings as shown.
201
Robot 8 • The Drawbridge
Inventing…
Building a Bigger Bridge
Another way to lengthen the bridge is to build a non-moveable
extension bridge segment on either side of the movable bascule.
202
Robot 8 • The Drawbridge
The final steps include addition of the RCX, and snapping together of all of the previously built sub-
assemblies. The RCX controls the movement of the Drawbridge and Island Footbridge, and sounds
warning tones to let others know when the Drawbridge is lifting, lowering, and when it is safe
again for traffic to cross.
203
Robot 8 • The Drawbridge
Final Step 0
Final Step 1
204
Robot 9
205
Robot 9 • Candy Wrapper Compactor
Unlike the trash compactor you may have in your home, the Candy Wrapper
Compactor is made for small pieces of trash—like candy wrappers.
Compactors compress waste so that two to three times as much trash fits in
the same size space. This saves storage space, removal time, and disposal labor.
Special compactors called balers are used to bale or bundle recyclable material
such as cardboard, paper, plastics, metal, and so on for resale to a recycling
company. Compactors and balers are especially helpful in compacting waste on
airplanes, ships, and restaurants. Compactors are also used to pack hazardous
materials into drums for safer removal.
The Candy Wrapper Compactor is made so that you can eat a bag of
Hershey’s kisses at your desk, or in your room, and compact all of the wrappers
into one small and neat bale that can easily be recycled or tossed into the
wastebasket. This will take care of the problem of little wrappers collecting
everywhere during snack time.
This is how the Candy Wrapper Compactor works:
■ The compactor will start when the touch sensor (start button) is
pressed.
■ The compressor motor will start and move the pump up and down
pushing air through the tubing.
■ The RCX Compressor Control motor will turn on and move the valve
allowing the air to move through the tubing engaging the piston.
■ The piston will fire, which will push the ram plate down.
206
Robot 9 • Candy Wrapper Compactor
207
Robot 9 • Candy Wrapper Compactor
The Bin
The bin holds items to be compacted. The sides contain the waste so that the ram can compress
the waste.
Bin Step 0
208
Robot 9 • Candy Wrapper Compactor
Bin Step 1
Attach
the large plate
first, and then
connect the beams to
begin the frame of the bin.
Bin Step 2
209
Robot 9 • Candy Wrapper Compactor
Bin Step 3
210
Robot 9 • Candy Wrapper Compactor
Bin Step 4
Add the corner pieces to guide
the ram as it moves up and
down. These corner pieces
work with the 2x2 bricks that
you have the option of adding
in Pneumatic Ram Step 0.
Bin Step 5
211
Robot 9 • Candy Wrapper Compactor
212
Robot 9 • Candy Wrapper Compactor
The RCX Air Compressor Control sub-assembly controls the flow of air. The RCX is programmed to
power the motor when the touch sensor is pressed.
Inventing…
Programming Ideas
Program the touch sensor to turn the compressor motor on to start the
Candy Wrapper Compactor. Make sure to write the program to have
the start action of the touch sensor correspond with the Input Port 1.
213
Robot 9 • Candy Wrapper Compactor
214
Robot 9 • Candy Wrapper Compactor
215
Robot 9 • Candy Wrapper Compactor
The Compressor
The compressor sub-assembly consists of a motor with a gear. This will move the pump in and out
to create air pressure; the air will then be pushed through the tubing to move the piston.
Compressor Step 0
216
Robot 9 • Candy Wrapper Compactor
Compressor Step 1
Connect a beam to the side of
the frame. This beam will hold
the motor you are going to add
in Compressor Step 1.
Compressor Step 2
217
Robot 9 • Candy Wrapper Compactor
Connect the pneumatic tubing, electrical wires and all of the finished assemblies to complete the
Candy Wrapper Compactor.
Final Step 0
218
Robot 9 • Candy Wrapper Compactor
Final Step 1
219
Robot 9 • Candy Wrapper Compactor
Final Step 2
Final Step 3
220
Robot 9 • Candy Wrapper Compactor
Final Step 4
Final Step 5
221
Robot 9 • Candy Wrapper Compactor
Attach the end of the electrical wire connected to Input Port 1 to a touch
sensor.
The touch sensor is the start button for the Candy Wrapper Compactor. The
touch sensor can be placed anywhere on the bin sub-assembly or even held in
your hand as a wired remote control. The touch sensor is the start button that
will begin the wrapper compression process.
Place the candy wrappers into the trash container bin sub-assembly and
press the touch sensor start button. The motor starts the pneumatic compressor
system that slowly lowers the pneumatic ram sub-assembly. The pneumatic
ram sub-assembly exerts pressure on the trash, which flattens it. When the
pneumatic ram pressure reaches its setpoint, the motor reverses and raises the
pneumatic ram back up to the top of the compactor. Additional wrappers may
be added and the compactor can be started again, and the process can be
repeated until the bin is full. The bottom plate in the trash container bin may
be removed for easy cleaning. The turntable allows the bin to be rotated as
needed.
222
Robot 10
Robo-Hominid
223
Robot 10 • Robo-Hominid
224
Robot 10 • Robo-Hominid
Left Leg
225
Robot 10 • Robo-Hominid
226
Robot 10 • Robo-Hominid
227
Robot 10 • Robo-Hominid
228
Robot 10 • Robo-Hominid
229
Robot 10 • Robo-Hominid
230
Robot 10 • Robo-Hominid
231
Robot 10 • Robo-Hominid
Now begin construction of the right leg sub-assembly, which is a mirror of the left leg sub-assembly.
232
Robot 10 • Robo-Hominid
233
Robot 10 • Robo-Hominid
234
Robot 10 • Robo-Hominid
235
Robot 10 • Robo-Hominid
236
Robot 10 • Robo-Hominid
237
Robot 10 • Robo-Hominid
238
Robot 10 • Robo-Hominid
The Hips
239
Robot 10 • Robo-Hominid
Hips Step 0
Hips Step 1
240
Robot 10 • Robo-Hominid
Hips Step 2
Hips Step 3
Hips Step 4
241
Robot 10 • Robo-Hominid
Hips Step 5
Hips Step 6
242
Robot 10 • Robo-Hominid
Hips Step 7
Hips Step 8
The Drive
243
Robot 10 • Robo-Hominid
Drive Step 0
Drive Step 1
Drive Step 2
Connect an electrical
cable to the top of the
motor, with the wire
pointing towards the
back of the motor as
shown. Leave the other
end of the cable
unconnected for now.
244
Robot 10 • Robo-Hominid
Drive Step 3
Drive Step 4
Drive Step 5
245
Robot 10 • Robo-Hominid
Drive Step 6
246
Robot 10 • Robo-Hominid
Drive Step 7
Drive Step 8
247
Robot 10 • Robo-Hominid
Drive Step 9
248
Robot 10 • Robo-Hominid
Drive Step 10
249
Robot 10 • Robo-Hominid
Drive Step 11
250
Robot 10 • Robo-Hominid
Drive Step 12
251
Robot 10 • Robo-Hominid
Drive Step 13
252
Robot 10 • Robo-Hominid
Drive Step 14
253
Robot 10 • Robo-Hominid
Drive Step 15
Drive Step 16
254
Robot 10 • Robo-Hominid
Drive Step 17
255
Robot 10 • Robo-Hominid
Drive Step 18
256
Robot 10 • Robo-Hominid
Drive Step 19
Drive Step 20
257
Robot 10 • Robo-Hominid
It’s now time to put all of the sub-assemblies you have constructed together to complete the finished
Robo-Hominid.
258
Robot 10 • Robo-Hominid
Final Step 2
Final Step 3
259
Robot 10 • Robo-Hominid
Final Step 4
Attach the RCX
brick, as shown.
Final Step 5
260
Robot 10 • Robo-Hominid
Final Step 6
Hook the
left leg
sub-
assembly’s
touch sensor cable
to the Input Port 1.
Final Step 7
Hook the
right leg sub-
assembly’s
touch sensor
cable to the Input
Port 1.
261
Robot 10 • Robo-Hominid
Final Step 8
Hook
the rotation
sensor’s cable to
the Input Port 3.
Final Step 9
262
Robot 10 • Robo-Hominid
Final Step 10
263
SYNGRESS SOLUTIONS…
AVAILABLE NOW
ORDER at
www.syngress.com
solutions@syngress.com