Chapter 13. ANTY: the robotic ant

By now, you’ve gotten the hang of building models that move on wheels. Another fun, but slightly more challenging, kind of model you can build is an animal robot that uses legs to move instead of wheels. In this chapter, you’ll build and program ANTY (see Figure 13-1). ANTY is a six-legged, insect-like creature that walks around and responds to its environment by expressing different types of behavior based on what its sensors “see.”

The Infrared Sensor serves as ANTY’s eyes, allowing the robot to detect objects in its surroundings and to find food. The Color Sensor in the robot’s tail enables ANTY to detect changes in its environment. Different surroundings—that is, different colored objects—make the robot behave ...

Get The LEGO MINDSTORMS EV3 Discovery Book (Full Color) now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.