O'Reilly logo

The LEGO MINDSTORMS EV3 Laboratory by Daniele Benedettelli

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 16. programming the T-R3X

In this chapter, you’ll program the fearsome T-R3X! The first program will make the dinosaur explore its environment by walking, detecting obstacles, looking around, and turning away from obstacles. Then, we’ll model more complex autonomous behavior to make the T-R3X look around, react to “prey” (the IR Beacon), and hunt it down. You’ll also learn the basics of using state machines to model behavior for a robot and how to compute complex logic expressions using mathematical formulas.

building the My Blocks for the Wander program

Before making the first program, Wander, for the T-R3X, we need to prepare the My Blocks. As you build the My Blocks, I’ll point out noteworthy techniques and ideas. The My Blocks include ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required