Building Robots with LEGO Mindstorms NXT
eBook - ePub

Building Robots with LEGO Mindstorms NXT

Mario Ferrari, Guilio Ferrari, David Astolfo, David Astolfo

Share book
  1. 480 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Building Robots with LEGO Mindstorms NXT

Mario Ferrari, Guilio Ferrari, David Astolfo, David Astolfo

Book details
Book preview
Table of contents
Citations

About This Book

The Ultimate Tool for MINDSTORMS® Maniacs
The new MINDSTORMS kit has been updated to include a programming brick, USB cable, RJ11-like cables, motors, and sensors. This book updates the robotics information to be compatible with the new set and to show how sound, sight, touch, and distance issues are now dealt with. The LEGO MINDSTORMS NXT and its predecessor, the LEGO MINDSTORMS Robotics Invention System (RIS), have been called "the most creative play system ever developed." This book unleashes the full power and potential of the tools, sensors, and components that make up LEGO MINDSTORMS NXT. It also provides a unique insight on newer studless building techniques as well as interfacing with the traditional studded beams. Some of the world's leading LEGO MINDSTORMS inventors share their knowledge and development secrets. You will discover an incredible range of ideas to inspire your next invention. This is the ultimate insider's look at LEGO MINDSTORMS NXT system and is the perfect book whether you build world-class competitive robots or just like to mess around for the fun of it.Featuring an introduction by astronaut Dan Barry and written by Dave Astolfo, Invited Member of the MINDSTORMS Developer Program and MINDSTORMS Community Partners (MCP) groups, and Mario and Guilio Ferrari, authors of the bestselling Building Robots with LEGO Mindstorms, this book covers: Understanding LEGO Geometry
Playing with Gears
Controlling Motors
Reading Sensors
What's New with the NXT?
Building Strategies
Programming the NXT
Playing Sounds and Music
Becoming Mobile
Getting Pumped: Pneumatics
Finding and Grabbing Objects
Doing the Math
Knowing Where You Are
Classic Projects
Building Robots That Walk
Robotic Animals
Solving a Maze
Drawing and Writing
Racing Against Time
Hand-to-Hand Combat
Searching for Precision

  • Complete coverage of the new Mindstorms NXT kit
  • Brought to you by the DaVinci's of LEGO
  • Updated edition of a bestseller

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Building Robots with LEGO Mindstorms NXT an online PDF/ePUB?
Yes, you can access Building Robots with LEGO Mindstorms NXT by Mario Ferrari, Guilio Ferrari, David Astolfo, David Astolfo in PDF and/or ePUB format, as well as other popular books in Computer Science & Cyber Security. We have over one million books available in our catalogue for you to explore.

Information

Publisher
Syngress
Year
2011
ISBN
9780080554334
Chapter 1 Understanding LEGO® Geometry
Solutions in this chapter:
image
Expressing Sizes and Units
image
Squaring the LEGO World: Vertical Bracing
image
Tilting the LEGO World: Diagonal Bracing
image
TECHNIC Liftarms: Angles Built In

Introduction

Before you enter the world of LEGO robotics, we want to be sure you know and understand some basic geometric properties of the LEGO bricks and beams. Don’t worry; we’re not going to test you with complex equations or trigonometry. We’ll just discuss some very simple concepts and explain some terminology that will make assembling actual systems easier from the very beginning.
You will discover which units LEGO builders use to express sizes, the proportions of the bricks and beams, and how this affects the way you can combine them with different orientations into a solid structure.
In the past few years, there has been a shift from building with TECHNIC bricks and beams to building with studless beams, pins, and connectors. After we introduce some basic concepts, you will be exposed to these new ideas and see examples of how you can use studless building.
We encourage you to try to reproduce all the examples we show in this chapter with your own LEGO parts. If for any reason, you feel that what we present is too complex or boring, don’t force yourself to read it. Skip the chapter and go to another one. You can always come back and use this chapter as a sort of glossary whenever you need it.

Expressing Sizes and Units

LEGO builders usually express the size of LEGO parts with three numbers, representing width, length, and height, in that order. The standard way to use LEGO bricks is “studs up.” When expressing sizes, we always refer to this orientation, even when we are using the bricks upside down or rotating them in 3D space.
Height is the simplest property to identify. It’s the vertical distance between the top and bottom of the basic brick. Width, by convention, is the shorter of the two dimensions which lie on the horizontal plane (length is the other one). Both width and length are expressed in terms of studs, also called LEGO units. Knowing this, we can describe the measurements of the most traditional brick, the one whose first appearance dates back to 1949, which is 2 × 4 × 1 (see Figure 1.1).
image
Figure 1.1 The Traditional LEGO Brick
LEGO bricks, although their measurements are not expressed as such, are based on the metric system: A stud’s width corresponds to 8 mm and the height of a brick (minus the stud) to 9.6 mm. These figures are not important to remember. What’s important is that they do not have equal values, meaning you need two different units to refer to length and height. Their ratio is even more important: Dividing 9.6 by 8 you get 1.2 (the vertical unit corresponds to 1.2 times the horizontal one). This ratio is easier to remember if stated as a proportion between whole numbers: It is equivalent to 6:5. Figure 1.2 shows the smallest LEGO brick, described in LEGO units as a 1 × 1 × 1 brick. For the reasons explained previously, this LEGO “cube” is not a cube at all.
image
Figure 1.2 Proportions in a 1 × 1 × 1 LEGO Brick
The LEGO system includes a class of components whose height is one-third of a brick. The most important element of this class is the plate, which comes in a huge variety of rectangular sizes, and in some special shapes too. If you stack three plates, you get the height of a standard brick (see Figure 1.3).
image
Figure 1.3 Three Plates Make One Brick in Height
The advent of studless building has thrown a wrench into our understanding and use of the classic brick-and-plate-construction approaches. The new studless components provide a different way to construct LEGO models. The jury is still out regarding which method is better or more preferred—there are proponents on both sides of the fence with this. Figure 1.4 shows the traditional plates and bricks next to a newer TECHNIC beam and a set of three liftarms that are stacked, all to provide some reference on size. You will notice that their stacked heights are not compatible across the studded (left) and studless (right) parts.
image
Figure 1.4 Comparing Bricks to Studless Beams and Liftarms
The one thing that is undeniable is that LEGO has made a significant shift with its TECHNIC and MINDSTORMS lines toward studless components. If you are a die-hard studded builder, you are encouraged to take the plunge and try building studless. Many found the change in approach a challenge at first, but use it almost exclusively now. Studless building offers countless options for connectivity and even allows for building at odd angles that was difficult to accomplish with traditional beams.

Squaring the LEGO World: Vertical Bracing

Why do we care about all these relationships? To answer this, we must travel back to the late 1970s when the LEGO TECHNIC line was created. Up to that time, LEGO was designed and used to build things made of horizontal layers: Bricks and plates integrate pretty well when stacked together. Every child soon learns that three plates count for a brick, and this is all they need to know. But in 1977, LEGO decided to introduce a new line of products targeting an older audience: LEGO TECHNIC. It turned the common 1 × N brick holes into what ...

Table of contents