Chapter 4. Sensors

In this chapter, we will cover the following topics:

  • Simple sensor – potentiometer
  • Temperature sensor
  • Detecting motion – PIR Sensor
  • Measuring distance – infrared and ultrasonic
  • Noise reduction
  • Accelerometer
  • Localization – GPS

Introduction

Acquiring data from the environment is the fundamental function of any autonomous system. And on the Arduino, this feature is so simple and powerful. We can find sensors for anything these days, from high radiation to sound. Most of them even share the same interface, so connecting and using them is easy once we understand the simple logic underneath. In this chapter, we will dive into the most common groups of sensors and we will see how easy it is to use them.

We can acquire interesting and useful ...

Get Arduino Development Cookbook 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.