Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Build and Code Creative Robots with LEGO BOOST
Build and Code Creative Robots with LEGO BOOST

Build and Code Creative Robots with LEGO BOOST: Unleash your creativity and imagination by building exciting robotics projects

eBook
$20.98 $29.99
Paperback
$38.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Build and Code Creative Robots with LEGO BOOST

Chapter 2: Building Your First BOOST Robot – Tabletop Fan

In the summers when we feel hot, a tabletop fan comes in handy! Have you ever come across a situation where you thought of having a portable tabletop fan to beat the summer heat? Let's try to build and code our own portable tabletop fan that we can take anywhere and use!

In this chapter, we will cover the following topics:

  • Building the tabletop fan
  • Programming the tabletop fan
  • Running your tabletop fan at different speeds
  • Time for a challenge

By the end of this chapter, you will have a clear idea of how to build basic robots that are similar in complexity to this tabletop fan, as well as completing basic forward-backward programming using the Scratch 3.0 programming language.

Technical requirements

In this chapter, you will need the following:

  • A LEGO BOOST kit with six AAA batteries, fully charged
  • A laptop/desktop with the Scratch 3.0 programming language installed and an active internet connection

Building the tabletop fan

Before building this fan using your LEGO bricks from the LEGO BOOST kit, let's look at the elements needed to build this fan:

  • BOOST Hub
  • Motor
  • The wings of the fan

Great! We will be building the tabletop fan shown in the following figure:

Figure 2.1 – Building a tabletop fan with a LEGO BOOST kit

Figure 2.1 – Building a tabletop fan with a LEGO BOOST kit

Follow these steps to build this tabletop fan. Make sure that you select the right pieces from your kit, as mentioned in the building instructions:

  1. Take your LEGO BOOST Hub. Make sure that the BOOST Hub has fully charged batteries in it:
    Figure 2.2

     

    Figure 2.2

  2. Take five 4x6 bricks and stack them on the BOOST Hub, as shown here:
    Figure 2.3

     

    Figure 2.3

  3. Take two 1x6 plates (orange) and place them on the top of the stack:
    Figure 2.4

    Figure 2.4

  4. Now, take the external motor and mount it on the orange plates that you just attached:
    Figure 2.5

    Figure 2.5

  5. Now, take a 1/2 bush and one 3M yellow cross axle and attach them to the motor:

     

    Figure 2.6

    Figure 2.6

  6. Take a 2x2 round brick and insert it into the 3M axle:
    Figure 2.7

    Figure 2.7

  7. Take a 2x6 plate and attach it to the white brick with a cross:
    Figure 2.8

    Figure 2.8

  8. Take two 2x3 white plates and attach them to the 2x6 blue plate:
    Figure 2.9

     

    Figure 2.9

  9. Take another 2x8 plate and attach it between the two white plates. This will form the base for the fan's wings:
    Figure 2.10

    Figure 2.10

  10. Take four 2x6 black bricks with bows and attach them to the white and gray plates. These are the wings of your fan:
    Figure 2.11

     

    Figure 2.11

  11. Take four orange 1x2 plates and attach them to the fan's wings:
    Figure 2.12

     

    Figure 2.12

  12. Take a 2M cross axle and one white brick with a cross. Attach it to the gray plate, as shown here:
    Figure 2.13

     

    Figure 2.13

  13. Take a sprocket and attach it to the 2M cross axle. At this point, your tabletop fan is ready to use! Connect your motor to port C:
    Figure 2.14

 

Figure 2.14

Now that your tabletop fan is ready, let's program it.

Programming the tabletop fan

In this section, we will be coding the model we created using the LEGO BOOST kit. There are various ways you can code your BOOST:

  • The LEGO BOOST official app:

    a. It can only be used on mobile and tablets.

    b. Only the offline version is available.

    c. Only works on Android, Windows, and iOS devices.

    d. It has built-in building instructions for some of the coolest BOOST robots!

    Most of you will be first-time users of this app.

  • LEGO BOOST extension in the Scratch 3.0 programming language:

    a. It can be used on any device – mobile/tablet/laptop.

    b. It is available as an online as well as an offline version.

    c. It can be used on any OS – Chrome OS/MacOS/Windows/Linux.

    d. The building instructions can be easily and freely downloaded from LEGO Education's official website.

Most of you will have come across the Scratch programming language at least once!

Important Note

Scratch is a block-based programming language developed by MIT Media Labs, US. It is one of the most widely used programming languages by elementary school students across the globe, owing to its user-friendly interface, easy-to-understand programming blocks, and flexibility to connect to various platforms such as BOOST, WeDo, EV3, Arduino, micro:bit, and so on.

Considering these pointers, we shall be using the Scratch 3.0 offline/online editor to code our BOOST robots. Before you begin coding, here are some important instructions you must follow:

  1. Before you use the Scratch programming language, you need to install Scratch Link on your device, which will help you connect your BOOST kit to the device over Bluetooth. You can download Scratch Link from https://scratch.mit.edu/boost.
  2. Now, make sure that it is active and appears on your toolbar and that your laptop's Bluetooth is on. Now, let's look at the Scratch programming software.
  3. If you wish to use the offline version of Scratch 3.0, you can download it from here: https://scratch.mit.edu/download.
  4. If you wish to use the online editor for Scratch 3.0, bookmark this link on your device: https://scratch.mit.edu/.
  5. Once you open this link, click on Create. The coding screen will open.

    Tip

    You may consider signing in on this software for the online version if you wish to save your program and eventually share it with the world, or even use it for yourself in the future!

  6. Now that the programming screen is open, click on the Add Extension icon, as shown in the following screenshot. This icon has been highlighted with a square here:
    Figure 2.15 – Programming screen

    Figure 2.15 – Programming screen

  7. Now, select/click on LEGO BOOST, as shown in the following screenshot:
    Figure 2.16 – Adding the BOOST extension

    Figure 2.16 – Adding the BOOST extension

  8. Now, turn on your BOOST by pressing the blue button. Make sure that it has six AAA-sized battery cells in it. It will start flashing blue the moment you press it.
  9. The following screen will appear on your device. Click on Start Searching:
    Figure 2.17 – Starting the scanning process

    Figure 2.17 – Starting the scanning process

  10. Keep your BOOST on and close to the device. The following screen will appear once it has detected your BOOST kit and is connecting:
    Figure 2.18 – Connecting with BOOST

    Figure 2.18 – Connecting with BOOST

  11. Once connected, the following message will appear:
    Figure 2.19 – Connection successful

    Figure 2.19 – Connection successful

    If you face any difficulties connecting your BOOST Hub to your device via Bluetooth, please visit https://scratch.mit.edu/boost for troubleshooting help.

  12. The LEGO BOOST programming blocks will be available just below My Blocks, under the BOOST header:
Figure 2.20 – BOOST programming blocks

Figure 2.20 – BOOST programming blocks

Voilà! With that, you are all set.

In the next section, we will challenge ourselves by running the tabletop fan you built at different speeds!

Running your tabletop fan at different speeds

Now, let's code our tabletop fan motor (motor C) so that it moves this way at 70% speed for 10 seconds when the green flag is clicked.

Tip

Break down your problem statement into small problems before approaching it!

Let's break our problem statement into smaller steps:

  • Step 1: Set the event to when the green flag is clicked.
  • Step 2: Set motor C's speed to 70 percent.
  • Step 3: Set motor C's direction to this way.
  • Step 4: Turn motor C on for 10 seconds.
  • Step 5: Turn motor C off.

If you break down your problem statement like this and write these step-by-step instructions each time, your coding job will be extremely easy and fun! Since this is your first time coding, please use the following sample code for this task:

Figure 2.21 – Sample program

Figure 2.21 – Sample program

Test it and see how much fun it is to use your fan to beat the summer blues!

Now, can you write some code that will move your tabletop fan motor C that way at 50 percent power for 10 seconds when the green flag is clicked?

Write down your problem steps here:

  • Step 1: ____________________________________________________________
  • Step 2: ____________________________________________________________
  • Step 3: ____________________________________________________________
  • Step 4: ____________________________________________________________
  • Step 5: ____________________________________________________________

Now, write your code and see how it works! Identify any errors and rectify them. Make sure that your code works exactly the way we want it to work!

Now that you know how to run your tabletop fan, the next section will test your skills.

Time for a challenge

Now, it's time to test your learning! Read the following problem statement twice:

P1: Code your tabletop fan to move this way at 80 percent power for 5 seconds, then move this way at 50 percent power for 5 seconds, and then stop!

Problem fragmentation:

P2: Code your tabletop fan to move that way at 70 percent power for 6 seconds, then move that way at 30 percent power for 3 seconds, and then stop!

Problem fragmentation:

Use your imagination and use the sound and display blocks creatively to make your project more interactive and fun! For example, you can display the power that your tabletop fan is currently moving at, use sound blocks that replicate the humming sound of a fan, or anything of your choice!

Tip

You can find the display and sound blocks in the looks and sound programming pallets, respectively.

Remember that the sky is the limit due to the tools and the coding platform that you have at your disposal.

Fun Fact

Did you know that the tabletop fan was invented by Schuyler Skaats Wheeler in 1882?

Summary

In this chapter, you built your first robot using the LEGO BOOST kit: a tabletop fan. Your excitement level was taken one step up by us introducing coding in this chapter. You also learned how to add the BOOST extension to the Scratch 3.0 programming language and connect your BOOST to your device using Bluetooth. By completing a basic exercise, you explored the basics of programming, including turning the motor in a certain way, setting the motor's power, and exploring blocks from the looks and sound pallets. With this basic knowledge, you should be able to build some basic robots using your BOOST kit and write some code to make them move.

In the next chapter, we will be building a robot that will be able to move forward and backward without wheels! Exciting, isn't it?

Further reading

To enhance your Scratch programming skills, go to https://scratch.mit.edu/projects/editor/?tutorial=all and build some cool games and animations. This will help you enhance your coding skills, which you will use in the upcoming chapters of this book.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Get up to speed with building your first LEGO BOOST robotic model
  • Build interesting robotics prototypes that can perform tasks just like real-life machines
  • Discover exciting projects to bring classic LEGO bricks to life using motors and sensors

Description

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.

Who is this book for?

This book will help 7 to 12-year-old children who want to learn robotics with LEGO BOOST develop their creativity, logical thinking, and problem-solving skills. Teachers, trainers, and parents who wish to teach robotics with LEGO BOOST and Scratch will also find this book useful.

What you will learn

  • Unbox the LEGO BOOST kit and understand how to get started
  • Build simple robots with gears and sensors
  • Discover the right parts to assemble your robots
  • Program your BOOST robot using the Scratch 3.0 programming language
  • Understand complex mechanisms for advanced robots
  • Develop engaging and intelligent robots using electronic and non-electronic components
  • Create more than 10 complete robotics projects from scratch
  • Develop logical thinking and unleash your creativity

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 25, 2021
Length: 428 pages
Edition : 1st
Language : English
ISBN-13 : 9781801076388
Category :
Concepts :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Nov 25, 2021
Length: 428 pages
Edition : 1st
Language : English
ISBN-13 : 9781801076388
Category :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 127.97
Build and Code Creative Robots with LEGO BOOST
$38.99
Smart Robotics with LEGO MINDSTORMS Robot Inventor
$38.99
Learn Robotics Programming
$49.99
Total $ 127.97 Stars icon
Banner background image

Table of Contents

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

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.2
(5 Ratings)
5 star 80%
4 star 0%
3 star 0%
2 star 0%
1 star 20%
Priyank Goswami Dec 07, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
So many details and pictures. The build guides and lesson ideas are spot on with challenging topics and directions to help you out if you get stuck. All the Students and teachers must have!
Amazon Verified review Amazon
Ishan Dec 29, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is a superb guide that can take anyone from a beginner level to an expert level in robotics, it explains everything from scratch, there is an interesting challenge for us to solve to see how well we have understood the concept!
Amazon Verified review Amazon
Khushboo Shah Jan 21, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I've been using LEGO robotics for more than 10 years and this book has reinvigorated my hobby. It is extremely well-written with unique projects that are easy to follow and understand. The creativity extends beyond the exciting robotic projects into the programming and code provided as well. The various different builds including R2D2 and the Boost Race Car (my personal favorites) are sure to be a hit for students and LEGO fans alike. Highly recommended.
Amazon Verified review Amazon
Umang Banugaria Dec 06, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
There are so many fun and unique projects included in this book that it will keep you and your kids busy for a long time. The instructions are clear and take the frustration out of learning to work with Lego robots. I would definitely recommend this for kids and adults that have an interest in robotics but don't know where to begin.
Amazon Verified review Amazon
Peter Bandzi Dec 14, 2022
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
This is not how Lego book should look like. it looks like a java developer book from 1990'Come on it's a Lego, a toy. it's suppose to be for children. I was lazy to return it back. it's going to the trash
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.