O'Reilly logo

Mastering Arduino by Jon Hoffman

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

Challenge

This challenge is going to be a little different than most. There isn't really a project to do; instead, it is a thinking challenge. The challenge is to think about how all three of these sensors work can work together to create an autonomous robot. To do this, think about how all three of the sensors work:

  1. Crash sensor: A digital sensor that is tripped when the sensor bumps into something
  2. Infrared sensor: A digital sensor that is tripped when something gets close
  3. Ultrasonic range finder: Analog sensor used to detect how far an object is from the sensor

Here are the answers:

The Ultrasonic range finders are the most expensive by far, so I usually use only two of these sensors facing out form the front of the robot. These are used ...

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