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

Motion Sensor

In this chapter, we will look at how to use the HC-SR501 motion sensor. It is a very easy sensor to connected to the Arduino and program, which is why it is usually one of the first sensors that people experiment with when they start working with microcontrollers. It is also very inexpensive and often comes with most starter kits.

In this chapter you will learn:

  • How to connect an HC-SR501 motion sensor to the Arduino
  • How to read the output of the HC-SR501 motion sensor
  • Read the Fritzing diagram of the motion sensor project

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