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

Chapter 5: Getting into Gear – My First Geared Robot

A wheel with teeth on it is called a gear. A gear is used for various applications, including the following:

  • Changing the speed of an object
  • Changing the direction of the force that's being applied
  • Changing the torque of an object

Whether it is your parents' car or their bike, vehicles use gears to move. Gears are used in almost all machines, mechanisms, and robots. You can find at least one application of gears in your printer, machine tools such as drills, industrial robots, packaging machines, and so on. The most common example of where you can find gears is in the wall clock in your home! The hours, minutes, and seconds hands are all interconnected with the help of complex gear mechanisms.

In this chapter, you will learn about various concepts surrounding gears, such as gear ratios and torque, by performing some useful hands-on experiments. We will be covering the following topics:

...

Technical requirements

In this chapter, you will need the following:

  • A LEGO BOOST kit with six AAA batteries, fully charged
  • A laptop/desktop with Scratch 3.0 installed on it and an active internet connection
  • A diary/notebook with a pencil and eraser

Using different types of gears based on your requirements

Gears can be made from different materials such as plastic and metal, depending on their use. Different types of gears have different applications. Let's understand each of them by referring to the following table:

Table 5.1 - Different types of gears

In your LEGO BOOST kit, gears such as bevel, crown, conical, double conical, and spur gears are provided. We used spur gears to construct our robot.

Understanding some important terminologies

Before we learn more about gears and perform this chapter's activities, let's learn about some important terminologies:

  • Drive gear: A gear that is connected to the motor.
  • Driven gear: A gear that is connected to the drive gear.
  • Mesh: This is when the drive and driven gears are connected to each other.
  • Gear ratio: The ratio of number of teeth of driving gear / number of teeth of driven gear.
  • Torque: The amount of force needed to bring your wheel into motion.
  • Gear up: When your gear ratio is greater than 1, this is known as the gear up mechanism. With gear up, your driven gear moves at a faster speed than the drive gear and offers less torque.
  • Gear down: When your gear ratio is less than 1, this is known as the gear down mechanism. With gear down, your driven gear moves at a slower speed than the drive gear and offers more torque.

Basically, whenever you need more power – for example, to...

Building the geared robot

In this section, we will be building the following robot:

Figure 5.1

To do this, perform the following steps:

  1. Take your LEGO BOOST Hub and insert six working AAA batteries into it before you start constructing your robot.

    Figure 5.2

  2. Take two 4x6 bricks and connect them to the top and bottom of the BOOST Hub:

    Figure 5.3

  3. Take two 2x5 plates and two 1x4 plates with knobs. Connect the 2x5 plates to the 4x6 brick. Then, connect the 1x4 plates with knobs to the back of the Hub, on both sides:

    Figure 5.4

  4. Take two 1x4 flat tiles and connect them to the 1x4 plates with knobs:

    Figure 5.5

  5. Take two 3M pegs and connect them to the last hole of the 4x6 brick, as shown here:

    Figure 5.6

  6. Take two 1x2 bricks with holes. Connect them to the recently connected 3M pegs:

    Figure 5.7

  7. Take two 4M cross axles and connect them to motor A and motor B.

    Figure 5.8

  8. Take two eight-teeth spur gears and connect them to the 4M cross axles...

Let's code the robot in gear up and gear down mechanism

In this chapter, you will not be learning about any new programming blocks. Instead, you will be using the programming blocks you learned about previously in this book and carrying out some fun activities with your BOOST robot. Before you get started with these activities, you will need to set up the following:

  • A clear path for your robot to move around – at least 3 feet long.
  • Fix the starting point of the robot. Mark it with a clear demarcation. You will be starting your robot from this position in every activity.
  • A measuring tape.

Now let's perform a few activities.

Activity 1

Program your robot to move forward for five rotations at 70% speed. You can change the brick's light if you wish. Measure the time taken, and distance traveled, and then fill in the following table:

Table 5.3 - Measuring the time taken and distance traveled by the robot

The sample...

Time for a challenge

Challenge #1

Get your robot back in the gear up combination. Now, create a ramp using the resources available in your home. Try implementing a different height for this ramp and reach a point where your robot is no longer capable of going up that ramp in this gear up combination!

Figure 5.23 – Representation of the setup

The height of this ramp = ________ cm.

Now, change your gear combination, so that it's in the gear down combination and see whether it can cross this ramp. I am sure it will. This is because the robot is slower, but its torque is quite high! Can you find a height for this ramp where this robot can't climb, even when using the gear down combination?

The height of this ramp = _______ cm.

One major conclusion we can draw from this chapter is that when you try to gain one thing, you lose the other. For example, when you gain speed, you lose power and vice versa! It takes a lot of engineering prowess...

Summary

In this chapter, you learned about how to use gears. You also learned about the different types of gears that are available in the market, along with their advantages, disadvantages, and practical applications. To understand the difference between the gear up and gear down mechanisms, you performed two activities and compared some critical parameters such as time taken and distance traveled for a specific number of motor rotations. To understand the importance of high torque in certain conditions, such as going up a ramp, you tried to crack the challenges provided and understood the impact of the gear down mechanism in achieving high torque.

In the next chapter, you will be building an amazing forklift that will be able to lift the load from one place to another, all by itself. A forklift is widely used in warehouses and industries to make human work easy. The forklift will be made with the application of simple machines and a gear mechanism.

Further reading

You can learn more about gears at https://www.thomasnet.com/articles/machinery-tools-supplies/understanding-gears/.

Gears can have a lot of wear and tear issues, but if maintenance is done at the right time, these gear mechanisms can add a lot of power and speed to your machinery, while also helping change the direction of the force you're applying.

lock icon The rest of the chapter is locked
You have been reading a chapter from
Build and Code Creative Robots with LEGO BOOST
Published in: Nov 2021 Publisher: Packt ISBN-13: 9781801075572
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}