Introduction: Portable Person Detector

About: Lush cheetah boy who wears knee high socks and likes German Chocolate.

This PPD will buzz and flash lights when it detects a person! Read on to build this security measure. Construction requires minimal soldering and shop skills, along with moderately-priced electronics components.

Step 1: Acquire Parts

For this project, you'll need:

1 Simply Lemonade Mini Bottle

1 Alligator Anchor box

1 Arduino

1 Buzzer

1 LED

1 220 ohm resistor

1 PIR sensor

1 Mini Breadboard (for prototyping)

1 Tiny Breadboard

1 Power Distribution board

2 Pin headers

1 Soldering Iron

1 Package Rosin-Core Solder

1 Handful of Wires

1 Drill

1 Utility Knife

1 Hot-Glue Gun

5 Hot-Glue Sticks

Step 2: Glue in Parts

Hot-melt glue the 9 volt battery, mini breadboard, Arduino, and power distribution strip into your box.

Step 3: Solder Parts

Solder the 220 ohm resistor to the anode of the LED. Then solder the positive lead of the battery to a terminal on the switch, and solder another positive wire onto the other terminal. You may also want to solder the leads of the buzzer onto pin headers (not shown here)

Step 4: Modify Electronics Enclosure

Mark and drill holes for the switch and LED. Then, mark where the buzzer will rest and cut that out with a utility knife. Insert the buzzer into its hole.

Step 5: Fabricate Sensor Enclosure

For the PIR sensor enclosure, we'll be using a Simply Lemonade mini bottle. Cut the bottom off using scissors, then drill a medium-sized hole in the back for wires. Trial-fit your tiny breadboard and PIR sensor inside, then glue the breadboard inside. I then coiled the wires for a nice heavy-duty effect.

Step 6: Wire Electronics

Insert the LED leads into GND on the Arduino and pin 6. Wire up the PIR sensor as shown above. A diode is not necessary, but I used one because I wanted to protect my PIR sensor from any party crashers. Put the +9V and -9V leads from the battery and switch into their respective columns on the power distribution board. Connect a GND on the Arduino to the -9V column and the VIN pin to the +9V Column. I'm sorry for the poor quality of the Fritzing diagram, it was my first.

Step 7: Code Arduino

Next, code the Arduino. The code is simple, but here it is!

#define buzzerPin 12

#define pirPin 10

#define ledPin 6

int pirVal = 0;

void setup()

{

pinMode(buzzerPin, OUTPUT);

pinMode(pirPin, INPUT);

pinMode(ledPin, OUTPUT);

}

void loop()

{

pirVal = analogRead(pirPin);

if (pirVal >= 50) {

digitalWrite(buzzerPin, HIGH);

delay(100);

digitalWrite(buzzerPin, LOW);

digitalWrite(ledPin, HIGH);

delay(100);

digitalWrite(ledPin, LOW);

}

else {

digitalWrite(buzzerPin, LOW);

digitalWrite(ledPin, LOW);

}

}

Once you have coded your Arduino, you are ready to go! Just flip the switch to the "on" position, point the Sensor Module at the place you want to secure, and you are done! Thanks for taking a look at my project, and I would appreciate a vote.

Microcontroller Contest

Participated in the
Microcontroller Contest

Tech Contest

Participated in the
Tech Contest

Formlabs Contest

Participated in the
Formlabs Contest