Arduino UNO Board with PIR Motion Sensor

Facebooktwitterredditpinterestlinkedinmailby feather

Arduino UNO Board with PIR Motion Sensor

In this project, we will create a simple circuit with an Arduino UNO and PIR motion sensor detects movement. An LED light up when the movement is detected.

Requirements of hardware in this Project:

  1. Arduino UNO  board
  2. PIR Motion Sensor (HC-SR501)
  3. 1 LED bulb
  4. Jumper Cables
  5. A USB cable for connecter Arduino UNO board
Arduino UNO Board with PIR Motion Sensor

Requirements of software in this Project:

  1. Arduino IDE software

The Working principle of the Project:

The module consists of a Pyroelectric-sensor that generates energy when exposed to heat. It means that when a human or animal body enters in the sensor area, it detects movement and emits heat in the form of infrared radiation. From here comes the name of the sensor, a Passive infra-red sensor. The term “passive” means that the sensor does not use energy for detection purposes. It only works by detecting the energy released by other objects.

Write the following program in the Arduino IDE:

Save the program and compile it.

Arduino UNO Board with PIR Motion Sensor2

Connect your Arduino UNO board to your laptop or desktop computer via Arduino UNO USB cable. Remove all other connections with the Arduino UNO board, such as PIR Motion Sensor and LED bulb, and then Upload the program to the Arduino UNO board, as  Shown in the following figure.

Arduino UNO Board with PIR Motion Sensor3

Before uploading the code to the Arduino UNO board, make sure that your Arduino serial port is selected. Otherwise, it shows an error message Serial port not selected.

To select your serial port in your laptop or desktop:

Open Device Manager -> Ports ->Arduino Uno, and then upload your program.

Arduino UNO Board with PIR Motion Sensor4

After uploading the program in the Arduino UNO board, connect all modules with the Arduino UNO board, such as the PIR Motion Sensor and LED bulb. The Digital circuit diagram is shown below.

Arduino UNO Board with PIR Motion Sensor5

After all, modules connected to the Arduino UNO board. Then connected the Arduino UNO board with the help of Arduino USB cable.

Arduino UNO Board with PIR Motion Sensor6
Arduino UNO Board with PIR Motion Sensor7
Arduino UNO Board with PIR Motion Sensor8
Facebooktwitterredditpinterestlinkedinmailby feather