Introduction: Arduino Security System

Picture of Arduino Security System

Hello everybody! Today, I'm going to show you how to make an Arduino Security system.

I also have a video on that project, so if you want your instructions in video format, give it a click.

Step 1: Parts

Picture of Parts

For this project, you will need:

  1. Arduino Uno
  2. 10k Potentiometer (1)
  3. Breadboard
  4. Pan & Tilt platform *
  5. Drone Camera w/ Antenna w/ wifi module**
  6. Jumpers (several)
  7. USB B cable

*I wrote a previous instructable about making a pan and tilt platform. You can buy one or make on yourself, either way works. If you'd like to make one yourself, here's my instructable: https://www.instructables.com/id/Simple-Arduino-Pan-Tilt-System/.

**I used the camera from a cheap WL toys drone.

Step 2: Wiring the Circuit

Picture of Wiring the Circuit

Let's get right in to the build:

  1. Wire the 5v pin and one of the Gnd pins of the Arduino to the power bus of the breadboard.
  2. Connect the two servos to those power buses (positive to positive and ground to ground). The colors of the Servo wires will indicate whether said wires are positive or ground.
  3. Now wire the pan servo's input jumper to PWM pin 10 and the tilt servo's input jumper to PWM pin 9.
  4. Place the 10k pot in to the breadboard. Wire V+ to the right lead and Gnd to the left lead of said pot. Connect the middle lead of the potentiometer to analog pin "0".

That's it for the circuit. Now just tape the camera to the tilt platform and the wifi module to a stationery portion of the pan/tilt platform. Now to the code!

Step 3: Code

Picture of Code

I attached the .ino file above. This particular program causes the base servo to constantly sweep. The "tilt" servo can be adjusted by the 10k pot and any adjustment made will be made at the end of the sweep cycle that said adjustments were made.

Now for operation. You will need to connect your smart device to the wifi network of the camera. Now open whatever app you would use to drive that drone and, Ouila, you have a live feed from your camera. If you used the same camera as I did, you should be able to record, which is an added bonus.

Alright, that's pretty much it. Thanks for reading, and as always, Happy Making!

Comments

ajayt7 (author)2017-08-07

Great learning project

About This Instructable

1,272views

27favorites

License:

More by DerpyCyclops:Mini Hovercraft W/ Arduino NanoUSB Mouse W/ Circuit PlaygroundIlluminati Backlight-Lamp
Add instructable to: