Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Build and Code Creative Robots with LEGO BOOST

You're reading from   Build and Code Creative Robots with LEGO BOOST Unleash your creativity and imagination by building exciting robotics projects

Arrow left icon
Product type Paperback
Published in Nov 2021
Publisher Packt
ISBN-13 9781801075572
Length 428 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Ashwin Shah Ashwin Shah
Author Profile Icon Ashwin Shah
Ashwin Shah
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

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

Let's code the robot to run on different racetracks

First, find out the number of rotations of motor C that are needed for left steering and right steering:

  • Number of rotations for left steer = ________ rotations.
  • Number of rotations for right steer = ________ rotations.

Now, let's do some interesting activities.

Activity #1

Try to use some items in your home and form a race track that looks as follows. Get to the end of this race track using your coding skills:

Figure 12.73 – Race track setup 1

Let's move on to the next activity.

Activity #2

For this activity, simply swap the start and stop positions shown in Activity #1 and run the robot on same race track again:

Figure 12.74 – Race track setup 2

Let's try another activity with the race track.

Activity # 3

Now that you know how to turn left and right, take some extra items from your home, and form the race track...

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 $19.99/month. Cancel anytime