Introduction: M3_1 Group Motion Sensor Device

A 4H mini project for a motion sensor alarm.

Supplies

Arduino Uno (1)

Breadboard (1)

Wires (8)

Ultrasonic Distance Sensor (1)

Piezo Buzzer (1)

Servo Motor (1)

Cardboard box (1)

Toothpick/Skewer (1)

Paper/Cloth (1)

Paints/Markers (As needed)

Scissors (1)

Tape

Step 1: Ensuring the Correct Programing

This project includes the use of a Servo Motor. Please open the Arduino IDE program, hit the Magnifying Glass search button on the far left and type "Servo". When the Servo.h program appears, click to download. This will be used to call the code later and the project will not work without it.

Step 2: Wiring the Board: Ultrasonic Distance Sensor

Obtain your Ultrasonic Distance Sensor and four wires. Place it on the lefthand side of your board, with pegs on either side of the E-F divide. Connecting the Ultrasonic Distance Sensor to the Arduino Uno needs 3 wires, each placed directly below the 3 pegs of the sensor. With the board facing towards the user, the rightmost peg of the sensor (Red in the example board given) connects to either of the two GND (Ground) slots of the Arduino. The middle peg of the sensor (Green in the example board given) connects to the singular 5V (5 Voltage) slot of the Arduino. Lastly, the leftmost peg of the sensor (Yellow in the example board given) connects to the -3 Digital (PWM-) slot.

Your Ultrasonic Distance Sensor is now properly connected to your Arduino.

Step 3: Wiring the Board: Piezo Buzzer

Obtain your Piezo Buzzer and two wires. Place your buzzer on the right side the Ultrasonic Distance Sensor. Starting with the right peg, place your wire directly below with one space in-between the buzzer and the wire. This rightmost wire (Purple in example board given) connects directly to the remaining GND (Ground) slot. The leftmost wire (Blue in example board given) is placed with the same distance constraints as the right. This wire connects directly to the 4 Digital (PWM-) slot.

Your Piezo Buzzer is now properly connected to your Arduino.

Step 4: Wiring the Board: Servo Motor

Obtain your Servo Motor and three wires. The servo motor can be placed anywhere near your board. It has three prongs to be connected. The Right-to-Left instructions given are made with the assumption that your servo motor is placed with the prongs facing away from the user, as shown in the example board given.

The rightmost prong connects the wire (Grey in example board given) to the 2 Digital (PWM-) slot. The middle prong connects the wire (Red in example board given) to the Red Voltage+ power strip. Finally, the leftmost prong connects the wire (Black in example board given) to the Black Ground- power strip.

Your Servo Motor is now properly connected to your Arduino.

Step 5: Motion Sensor Code

Attached is the code file to run the Motion Sensor program. Test code/board functionality before continuing.

Step 6: Building the Shell

Now that your Motion Sensor code is running, it is time to build the outer casing. In this instruction manual, cardboard is used. Cardboard is used because it is cheap and easy to acquire, making it the most accessible. The outer casing can be made out of any other material desired. Retrieve you scissors, tape, toothpick, paper/cloth and cardboard box from the supply list. Here is where creative freedom reigns.

First, begin by taking your toothpick and paper/cloth. Decorate your paper/cloth however you see fit, then affix it the toothpick, this will function as a waving flag. Then take your tape and affix your flag to the end of the servo motor, now the flag will wave in the wind when motion is detected.

Then, take your cardboard box. This section can be done with little instruction. Decide how big you would like your sensor box to be by measuring your board and Arduino and expand from there. Cut your box into a size you feel is necessary, we recommend a square with one side left open to rest against the floor and to insert components through. Take your scissors and make a hole in the top of the box big enough for your servo flag to poke out of. Lastly, create another hole on the side big enough to affix your Ultrasonic Distance Sensor to without any wires showing.

You now have successfully put together your Motion Sensor Circuit and its encasing! Decorate the encasing however you see fit.