Book Image

Build and Code Creative Robots with LEGO BOOST

By : Ashwin Shah
Book Image

Build and Code Creative Robots with LEGO BOOST

By: Ashwin Shah

Overview of this book

LEGO BOOST is a feature-rich creative toolbox that helps kids to develop science, technology, engineering, and mathematics (STEM) skills in a fun way. The LEGO BOOST kit consists of motors, sensors, and more than 840 LEGO pieces to bring various multifunctional robots to life. This book will take you on an interesting and enjoyable journey where you will have fun building robots while developing your problem-solving and logical thinking skills. This book is an end-to-end guide that will take you from a beginner to expert level of robot building with LEGO BOOST and Scratch. Starting with the unboxing and a brief introduction to LEGO BOOST, you'll quickly get your first robotic model up and running. You'll understand how to use the electronic and non-electronic components and have fun building a range of intriguing robotics projects with increasing complexity and advanced functionality. Throughout the book, you'll work on a variety of amazing projects, such as building your own R2D2, a fictional character from Star Wars, that will pique your curiosity to learn robotics and help you explore the full potential of the LEGO BOOST kit. Once you've had fun working with the projects, you'll be introduced to an interesting challenge for you to solve by yourself! By the end of this book, you'll have gained the skills to build creative robotics projects with the LEGO BOOST creative toolbox, and have built on your logical thinking and problem-solving skills.
Table of Contents (20 chapters)
14
Bonus Chapters

Time for a challenge

In this section, you will build some game elements from LEGO bricks on your own. Your robot already has a grabber hand attached to it. You must build three elements that represent copper, iron, and gypsum, respectively. The grabber should be able to pick up these three elements. Now, set up the route shown in the following diagram. These elements should be called iron ore, copper ore, and gypsum ore:

Figure 17.5 – Challenge route set up

Now, let's get started!

Challenge #1

After completing this setup, write some code that will make the robot do the following:

  1. Pick up the ore from their respective locations and drop them at their drop locations.
  2. Display the pickup and drop on the screen.
  3. Use sound blocks appropriately.
  4. If possible, play with the BOOST Hub brick light as well.

You can try to add more features to this robot and try to complete more interesting tasks on the surface of the moon with...