Book Image

Smart Robotics with LEGO MINDSTORMS Robot Inventor

By : Aaron Maurer
Book Image

Smart Robotics with LEGO MINDSTORMS Robot Inventor

By: Aaron Maurer

Overview of this book

LEGO MINDSTORMS Robot Inventor is the latest addition to the LEGO MINDSTORMS theme. It features unique designs that you can use to build robots, and also enable you to perform activities using the robot inventor application. You'll begin by exploring the history of LEGO MINDSTORMS, and then delve into various elements of the Inventor kit. Moving on, you'll start working on different projects which will prepare you to build a variety of smart robots. The first robotic project involves designing a claw to grab objects, and helps you to explore how a smart robot is used in everyday life and in industry. The second project revolves around building a working guitar that can be played and modified to meet the needs of the user. As you advance, you'll explore the concept of biomimicry as you discover how to build a scorpion robot. In addition to this, you'll also work on a classic robotic challenge by building a sumobot. Throughout the book, you'll come across a variety of projects that will provide you with hands-on experience in building creative robots, such as building a Dragster, Egg Decorator, and Plankton from Spongebob Squarepants. By the end of this LEGO book, you'll have got to grips with the concepts behind building a robot, and also found creative ways to integrate them using the application based on your creative insights and ideas.
Table of Contents (12 chapters)

Adding the color sensor detection triggers

Now that you have installed the sensors, you have to find a way to activate the scorpion as it would act and behave when feeling threatened. In this build, you will use red and yellow 3L beams to create a trigger in our code so that when something bumps into the scorpion from the front, it will go into attack mode by lunging its tail forward toward the enemy. Through the use of pins and rubber bands, you can create a trigger mechanism that will push the red and yellow pieces forward to activate the color sensor.

When nothing is pressing on these elements, the rubber bands will pull them back to their original starting position.

You will need the following pieces:

  • Two yellow 3L beams
  • Two red 3L beams
  • Two black 3x7 angular beams
  • Two blue connector pins
  • Two tan axle pins
  • Two gray axle pins
  • Two gray bush stops
  • Two gray connector pins with bush stops

In the following screenshot, you can see how...