O'Reilly logo

The LEGO MINDSTORMS EV3 Discovery Book (Full Color) by Laurens Valk

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 15. using data operations blocks and my blocks with data wires

Now that you know how data wires work, you can do some really interesting things with more of the programming blocks. For example, you can make the EV3 combine and process sensor values so that they can be used as input values for other actions. With the tricks you learn in this chapter, you’ll be able to program your robot to choose a random action or do something only when two sensors are triggered at the same time, rather than performing strictly preprogrammed actions.

You’ll learn in this chapter how to use the Math block to allow your robots to make calculations you can use in your programs. For example, the robot can calculate the distance it should travel based on a sensor ...

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