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 ...

Get Building Smart LEGO MINDSTORMS EV3 Robots now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.