O'Reilly logo

Building Smart LEGO MINDSTORMS EV3 Robots by Kyle Markland

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

Hungry mode

Select the switch tab with the top brick button highlighted; it is time to program Hungry mode! In this mode, you can feed the Timmyton LEGO bricks. The color sensor in the mouth will recognize the color of the blocks, and the robot will react differently to each one.

You may notice that the switch block has expanded quite a bit. It will continue to expand as we add more programming. It will still be very large if you open up an empty switch case because it stretches to meet the size of the case with the largest program chunk and remains that size for all of the other cases.

Start by adding the typical blocks, plus a medium motor block (port A, On for Rotations, total of three rotations), placed directly before  Mode Loop:

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