Jaws

Here is a fun operating mode, inspired by the famous movie of the same name. In this mode, the Timmyton will frantically move its jaws and tail, hunting down the infrared beacon while playing the infamous music! This is a beacon-seeking program, very similar to the one we made for the Security Tank.

Navigate over to the switch tab that has the right brick button highlighted. As usual, add the display reset and display print blocks at the beginning. Then, add a medium motor block (port A, On, 100 percent power). This motor block keeps the jaws and tail moving continuously while the operating mode is active:

Now, it is time for something ...

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.