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

Autonomous

During autonomous mode, the Timmyton will roam around randomly until it encounters an object, then charge, stopping and turning around at the last second. This mode will be similar to the one we made for the Omnilander, but we will introduce some new concepts. Navigate over to the switch tab with the center brick button highlighted to program this final operating mode. Start filling in the switch case with the usual initialization blocks, plus a one second wait directly before  Mode Loop:

Within  Mode Loop, add a switch (port 4, Infrared Sensor | Compare | Proximity, threshold value < | 35). This uses the IR sensor in the Timmyton's ...

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