Arduino Uno PIR Motion Sensor

This project demonstrates how to use a Passive Infrared (PIR) motion sensor with an Arduino Uno to detect motion in its surroundings.

The Arduino reads the sensor's output and prints motion detection status to the Serial Monitor.

Components Needed

Circuit Diagram

Hardware Wiring Explanation:

Connect PIR Motion Sensor to Arduino Nano:

Connect the output pin of the PIR motion sensor to digital pin 2 on the Arduino Uno.

Connect the VCC pin of the sensor to 5V on the Arduino Uno.

Connect the GND pin of the sensor to GND on the Arduino Uno.

Wire the PIR motion sensor to the Arduino Nano as described in the circuit setup section.

Software (Arduino IDE):

Open the Arduino IDE and create a new sketch.

Copy and paste the provided Arduino code into the sketch.

Upload the code to the Arduino Uno.

Project Operation:

Open the serial monitor with a baud rate of 9600.

Observe the output on the Serial Monitor, which will indicate "Motion detected!" when motion is detected by the PIR sensor.

Applications

Notes

Ensure the PIR sensor is mounted in a location where it can effectively detect motion without obstruction.

Adjust sensitivity and time settings on the PIR sensor module if supported, to fine-tune detection parameters.

Consider power management strategies to optimize battery life if using the sensor in portable or battery-operated projects.