Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Build and Code Creative Robots with LEGO BOOST

You're reading from  Build and Code Creative Robots with LEGO BOOST

Product type Book
Published in Nov 2021
Publisher Packt
ISBN-13 9781801075572
Pages 428 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Ashwin Shah Ashwin Shah
Profile icon Ashwin Shah

Table of Contents (20) Chapters

Preface Chapter 1: Introduction to the LEGO BOOST Kit Chapter 2: Building Your First BOOST Robot – Tabletop Fan Chapter 3: Moving Forward/Backward Without Wheels Chapter 4: LEGO BOOST Rover Chapter 5: Getting into Gear – My First Geared Robot Chapter 6: Building a Forklift Chapter 7: Building a Helicopter Chapter 8: Building R2-D2 Chapter 9: Building an Automatic Entrance Door Chapter 10: Building a Candy Dispenser Robot Chapter 11: Building a Color-Sorter Conveyor Belt Chapter 12: Building a BOOST Racing Car Chapter 13: Final Challenge Bonus Chapters
Chapter 14: The Grabbing Robot Chapter 15: Obstacle Avoidance Robot Chapter 16: The BOOST Humanoid Chapter 17: The Moon Rover Other Books You May Enjoy

Let's code the robot to perform various tasks

Let's start coding this helicopter. Using the extra LEGO bricks from your BOOST kit, build the following:

  • A food element with orange LEGO bricks
  • A water element with blue LEGO bricks
  • A rescue equipment element with yellow LEGO bricks

Make sure that you don't use more than three bricks to build any element. This ensures that the element can be placed on the helicopter with ease and without adding too much load to it.

Activity #1

Program your helicopter to move forward for two rotations. While moving, it should also rotate its wings at 60% power for 3 seconds. You can also add the sound of a helicopter to make it more interesting. The sample code for the activity is given here:

Figure 7.47

As we mentioned previously, a helicopter is used for rescue purposes, military operations, intracity travel, and more. In this activity, we will take our helicopter on a rescue mission...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}