O'Reilly logo

Arduino Development Cookbook by Cornel Amariei

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

Noise reduction

Noise is everywhere. This world is made of noise. This is what everybody related to sensors will constantly repeat. But what is noise? It's unexpected data generated by sensors or signal sources. It can completely ruin the behavior of an autonomous system if not treated properly.

Here, we will use the implementation from the Measuring distance – infrared and ultrasonic recipe. The Sharp IR is known for its interference with basically anything, and here we will explore two standard methods of filtering the data generated by the sensor.

Getting ready

The following are the ingredients needed for this recipe:

  • An Arduino board connected to a computer via USB
  • A Sharp infrared proximity sensor such as the GP2Y0A21YK or the GP2Y0A02YK0F

How ...

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