k8 Lección 4: El sonar
Utilice los sensores ultrasónicos de su robot para navegar y evitar obstáculos.
Robots, like animals, plants, and other living things, are able to use their surroundings to make decisions. While survival is the core instinct that drives the behaviour of living things, with robots the issue becomes a bit more complex.
One of the basic senses that living things have developed is hearing, or listening to pressure waves in an environment. We literally communicate language through the air, and can determine threats in environments where our sight is hindered.
Sound is a signal that computers are very adept in processing. Listening to changes in pressure waves in the way that humans have evolved is much less processing intensive than sensing the behaviour of light.
An ultrasonic sensor listens for echoes, and appropriately, this is behaviour that many animals exhibit as well. We seek to understand behaviours seen in the world with a controlled “experiment” using a robot. Using information such as the distance an object is in front of k8, we can recognize and avoid obstacles.