Reader small image

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

Product typeBook
Published inNov 2021
PublisherPackt
ISBN-139781801075572
Edition1st Edition
Concepts
Right arrow
Author (1)
Ashwin Shah
Ashwin Shah
author image
Ashwin Shah

Ashwin Shah is an Electronics and Communication engineer from India. Teaching is his passion and he started working at the tender age of 16 as a doubt solver for younger kids at after-school classes. Today, he is a successful edupreneur who runs his own STEM-based robotics, coding, and IoT institute - RoboFun Lab. Being one of the pioneers of STEM education in India, he has taught over 3000 students and trained 200+ educators thus far. He has trained 100+ teams for prestigious STEM competitions with 50+ national and 12+ international awards in the bag. Most of his students are now pursuing careers/education in STEM at prominent universities. Ashwin was a state-level badminton player during his college days.
Read more about Ashwin Shah

Right arrow

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 page is locked
Previous PageNext Page
You have been reading a chapter from
Build and Code Creative Robots with LEGO BOOST
Published in: Nov 2021Publisher: PacktISBN-13: 9781801075572

Author (1)

author image
Ashwin Shah

Ashwin Shah is an Electronics and Communication engineer from India. Teaching is his passion and he started working at the tender age of 16 as a doubt solver for younger kids at after-school classes. Today, he is a successful edupreneur who runs his own STEM-based robotics, coding, and IoT institute - RoboFun Lab. Being one of the pioneers of STEM education in India, he has taught over 3000 students and trained 200+ educators thus far. He has trained 100+ teams for prestigious STEM competitions with 50+ national and 12+ international awards in the bag. Most of his students are now pursuing careers/education in STEM at prominent universities. Ashwin was a state-level badminton player during his college days.
Read more about Ashwin Shah