Final Project – Motion Sensor

For the final project my partner Dwayne and I decided to make an Arduino based motion sensor. If was a challenge at first for us to find an interactive project for the final. Then we came across the motion sensor and we kind of just ran with the idea. We thought it would be fun and there were so many ways to make it into an interactive project.

Bill Of Materials

  • PIR sensor: The Passive Infrared Sensor measures infrared light from objects in its field of view.
  • Jumper wires
  • Arduino Uno
  • Breadboard
  • USB cable
  • Arduino Software

IMG_4142

Above is a image of the components (Bill of materials) we used for this project.

IMG_4143

First step we began connecting all the jumper wires from the breadboard to the Arduino. We connected a jumper wire (green jumper wire) from pin2 to row one on the breadboard which is the input for the PIR sensor. The second jumper wire connects from pin 5V and row 2 on the breadboard. And lastly the ground pin connects to row 3. These three jumper wires are the powers the PIR sensor from the Arduino (power supply).

IMG_4144 IMG_4145

Next we connected the PIR sensor to the breadboard. The ground pin on the PIR sensor connects to the ground row. The power pin connects to the 5V row and the output pin connected to the pin 2 on the Arduino.

IMG_4146

Next we connected the LED to the arduino. The purpose of the LED when lit the buzzer is supposed to go off and to show us that their is power running through the board.

IMG_4303IMG_4304

After we connected the piezo buzzer which is that black component showed above. This thing makes the most annoying noise ever but its purpose to go off when motion is detected by the PIR sensor.

THE CODE

FullSizeRender (2)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s