formula ev3: a racing robot - no starch press · 12 formula ev3: a racing robot now that you’ve...

8
12 Formula EV3: a racing robot Now that you’ve learned how to program the EV3 to control motors and sensors, you can begin making more sophisticated robots, such as autonomous vehicles, robotic animals, and complex machines. This chapter presents the Formula EV3 Race Car , shown in Figure 12-1. Unlike the EXPLOR3R you built earlier, the race car uses three motors. Two Large Motors in the rear make the car drive, while the Medium Motor lets you steer the front wheels. Think of the rear motors as the car’s engine and the motor in the front as the car’s steering wheel. Once you’ve built the race car, you’ll create several My Blocks to make it easy to program the car to drive and steer. Then you’ll combine these blocks in one program that lets you control the car remotely and another program that makes the robot drive around autonomously and avoid obstacles. Finally, you’ll be challenged to add more functionality to the design and to make it race faster using gears. Figure 12-1: The Formula EV3 Race Car The LEGO MINDSTORMS EV3 Discovery Book © 2014 by Laurens Valk

Upload: ngotuyen

Post on 19-Jul-2018

284 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Formula eV3: a racing robot - No Starch Press · 12 Formula eV3: a racing robot Now that you’ve learned how to program the EV3 to control motors and sensors, you can begin making

12Formula eV3: a racing robot

Now that you’ve learned how to program the EV3 to control motors and sensors, you can begin making more sophisticated robots, such as autonomous vehicles, robotic animals, and complex machines. This chapter presents the Formula EV3 Race Car, shown in Figure 12-1.

Unlike the EXPLOR3R you built earlier, the race car uses three motors. Two Large Motors in the rear make the car drive, while the Medium Motor lets you steer the front wheels. Think

of the rear motors as the car’s engine and the motor in the front as the car’s steering wheel.

Once you’ve built the race car, you’ll create several My Blocks to make it easy to program the car to drive and steer. Then you’ll combine these blocks in one program that lets you control the car remotely and another program that makes the robot drive around autonomously and avoid obstacles. Finally, you’ll be challenged to add more functionality to the design and to make it race faster using gears.

Figure 12-1: the Formula eV3 race car

The LEGO MINDSTORMS EV3 Discovery Book © 2014 by Laurens Valk

Page 2: Formula eV3: a racing robot - No Starch Press · 12 Formula eV3: a racing robot Now that you’ve learned how to program the EV3 to control motors and sensors, you can begin making

142 chapter 12

building the Formula eV3 race car

Build the race car by following the instructions on the subse-quent pages. Before you start building, select the pieces you’ll need to complete the robot, shown in Figure 12-2.

Figure 12-2: the pieces needed to build the Formula eV3 race car

The LEGO MINDSTORMS EV3 Discovery Book © 2014 by Laurens Valk

Page 3: Formula eV3: a racing robot - No Starch Press · 12 Formula eV3: a racing robot Now that you’ve learned how to program the EV3 to control motors and sensors, you can begin making

ForMula eV3: a racinG roBot 143The LEGO MINDSTORMS EV3 Discovery Book

© 2014 by Laurens Valk

Page 4: Formula eV3: a racing robot - No Starch Press · 12 Formula eV3: a racing robot Now that you’ve learned how to program the EV3 to control motors and sensors, you can begin making

144 chapter 12

The LEGO MINDSTORMS EV3 Discovery Book © 2014 by Laurens Valk

Page 5: Formula eV3: a racing robot - No Starch Press · 12 Formula eV3: a racing robot Now that you’ve learned how to program the EV3 to control motors and sensors, you can begin making

ForMula eV3: a racinG roBot 145The LEGO MINDSTORMS EV3 Discovery Book

© 2014 by Laurens Valk

Page 6: Formula eV3: a racing robot - No Starch Press · 12 Formula eV3: a racing robot Now that you’ve learned how to program the EV3 to control motors and sensors, you can begin making

146 chapter 12

link to dd #21

The LEGO MINDSTORMS EV3 Discovery Book © 2014 by Laurens Valk

Page 7: Formula eV3: a racing robot - No Starch Press · 12 Formula eV3: a racing robot Now that you’ve learned how to program the EV3 to control motors and sensors, you can begin making

ForMula eV3: a racinG roBot 147The LEGO MINDSTORMS EV3 Discovery Book

© 2014 by Laurens Valk

Page 8: Formula eV3: a racing robot - No Starch Press · 12 Formula eV3: a racing robot Now that you’ve learned how to program the EV3 to control motors and sensors, you can begin making

148 chapter 12

The LEGO MINDSTORMS EV3 Discovery Book © 2014 by Laurens Valk