Introduction: Motion Following Security Camera Platform
This instructable was created in fulfillment of the project requirement of the Makecourse at the University of South Florida (www.makecourse.com).
The following will detail how to create a Motion Following Security Camera Platform.
Device Purpose: To increase the range of view for a small WIFI security camera. This device achieves this by rotating the camera back and forth to increase the area the camera can monitor. In addition to this, the device can detect motion and direct the camera towards it. Although this project was specifically designed to support a Lorex MCNC100 camera, it would work with almost any WIFI camera that can be mounted within the 100mm circular diameter of the bezel platform.
Skill Level: A basic level of skills in electronics, 3-D CAD software, and C++ programing are required for this project. For those that may need to brush up on these skills, please review the various tutorial videos available at www.makecourse.com and www.eeawesome.com . The video link above provides more information.
Step 1: Obtain the Required Materials
1. Computer with 3-D CAD software (Autodesk Inventor Pro) and internet access
2. Access to a 3-D printer and associated software
3. Soldering Iron Station
4. Breadboard Test Station
5. Dremel Tool Kit
1. Lorex MCNC100 WIFI Security Camera or Equivalent (QTY:1)
2. Arduino Uno R3 or Equivalent Microcontroller (QTY: 1)
3. MOVI Arduino Audio Shield (QTY:1)
4. HC-SR501 PIR Motion Sensors (QTY: 3)
5. Futaba 3003 Servo (QTY: 1)
6. LM2596 24V DC Step-Down Power Regulator (QTY:1)
7. T-Power 12V/1-amp Power Adapter or Equivalent Power Supply (QTY: 1)
8. eMylo Remote Control, 12V/2 Channel Relay System (QTY: 1)
9. 5 watts/8 ohms Rectangular Speaker 2.8” X 1.6” (QTY: 2)
10. 5V Dual Channel Audio Amp (3 watt/channel) PAM8403 (QTY: 1)
11. DC-47P Heavy Duty Electronics Enclosure (QTY: 1)
12. 3.5mm Mono TS Connector (QTY: 1)
13. 5.5mm x 2.5mm Male Barrel Jack Connector (QTY: 1)
14. 5mm LED indicators, Assorted Colors (QTY:4)
15. Limiting Resistors: 220 Ohms (QTY: 4)
16. Pull-Up Resistor: 10K Ohms (QTY: 1)
17. 2.1mm x 5.5mm DC Power Jack socket (QTY: 1)
18. 5mm LED Holder Mount (QTY: 4)
19. 5mm Steel Ball Bearings (QTY: 60)
20. Assorted Breadboard Jumper Wires (QTY: Package)
21. Heat Shrink: Assorted Sizes (QTY: Package)
22. RTV Glue (QTY: Tube)
Step 2: Designing & Printing Device
Autodesk Inventor Pro software was used for designing each part. The attached CAD files include the: Rotating Bezel, Servo Housing, and the PIR Sensor Housing. Download the attached files and print out each part.
Step 3: Creating the Control System
As indicated in the block diagram, the system is controlled via an Arduino microcontroller. The Arduino receives motion data from the 3 PIR sensors and directs the camera via the servo towards the motion. Power and mode selection is controlled remotely. Feedback is provided via 4 LED indicators and a voice synthesizer.
Step 4: Writing the Code
The attached link provides the operating code. The notations help detail each line of code. Download this file and upload it into your Arduino as required.
Step 5: Assembling the Device
Assembly of the device is fairly straight forward. All of the sections are joined together via the screws listed in the parts list. Screw holes need to be drilled onto the top of the electronics housing to join the printed sections to the electronics housing. A piece of paper can be used to outline the holes on the PIR housing and use it as a template to align and drill the required 3mm holes into the lid of the electronics housing. Additionally, the speaker and LED indicator cutouts will need to be made. A Dremel tool comes in very handy and is recommended for making these various cutouts. RTV glue is used to hold each PIR sensor in place. When appropriate, wire connections have been soldered and heat shrink applied. Last but not least, silicone grease is used to lubricate the ball-bearing track.