Camera Surveillance Controller System




Introduction: Camera Surveillance Controller System

About: Bachelor of Wireless Telecommunication Engineering from Bandung State Polytechnic, Indonesia | Software QA Engineer at IDEMIA | A Rhesus(+) | Aries | Photography | Computer Geek | Chiliphobia | Art&Design

In this Instructables I will show you how to turn your static IP Camera into moving IP Camera, you can control the movement of the camera and live video streaming at once from your Android. Actually this project was my final year project for college, this project was seriously complicated in a whole completed project, but in this instructables I just want to tell about controlling the movement of the camera.

This system is really effective for monitoring your kids/baby's room, your pets, or other rooms in your house for home security system. With Wi-Fi technology allowing you to view remotely and control camera with a Android App on your Smartphone or Tablet (Android). Requires wireless connection to the internet, for this system I'm using Router for local Wi-Fi network.

Okay, let's get started!

Step 1: Plans

As seen in the figure above, motor servo implemented directly on Arduino with Ethernet Shield, and the IP camera (we will put the camera on the top of the servo) implemented through the router. And this is a big disadvantage - because without a router, all operations with the camera will not work, for example in the street or anywhere outside the city. In the future, I will try to make a direct interaction without a router.

The interaction between the Android and the IP camera using Wi-Fi channel. The project is built on the Arduino and Ethernet shield. As an IP camera I used DLink DCS930 (40-45$).

Step 2: Parts and Tools

Here is all you will need:
(1) Arduino UNO R3

(1) Ethernet Shield (with Wiznet W5100 chip)

(1) Servo

(1) Servo bracket

(1) IP Camera

(1) Router

(1) Adaptor 5 or 12 V (for Arduino)

(1) Male to Female jumper wires

(1) Ethernet/LAN Cable (for IP Camera)

(1) Ethernet/LAN Cable (for Ethernet Shield)

Tools :

- Screw

Step 3: The Circuit

We just need one servo for this project. But if you want to make a pan/tilt camera you need another servo.
The circuit is very easy, you just need to stacking the Arduino with Ethernet shield.

From Servo to Arduino

- white / yellow (data) = pin digital 4

- red = 5v

- black = Gnd

The circuit diagram was made with Fritzing.

Step 4: Set Up

Do the setting as seen in the figure above (see Picture 1)

Step 1

Connect the IP Camera to the LAN Ports of the 3G/4G Router with Ethernet cable. (Picture 2)

Step 2

Connect the Ethernet shield to the LAN Ports of the 3G/4G Router with Ethernet cable. (Picture 2)

Step 3

Connect the power adapter to the power socket on the Router, and the other end into an electrical outlet. The Router will start to work automatically. (Picture 1)

Step 5: Assemble

Step 1
Connect the servo cables to Ethernet shield (see Picture 1)

Step 2

Connect the Ethernet/LAN cable to the LAN port of the Ethernet shield, and the other end into the LAN port of the 3G/4G router. (see Picture 2)

Step 3

Attach the IP Camera to the servo bracket. I'm using cable ties to attach it. (see Picture 3)

Step 4

Don't forget to tighten the servo with a screw. (see Picture 4)

Step 5

Green led indicator means the IP camera already connect with the router. (see Picture 5)

Step 6: The Code (Microcontroller)

Upload the code into your Arduino. And don't forget to change the IP Address and Port of your Ethernet Shield with your own setting. (see Picture 1)

Step 7: Software (Android)

Software written in the open-source IDE Eclipse.

Project contains 2 activity: control the servo and view the live streaming video. To work with MJPEG stream, there are 2 classes: MjpegInputStream and MjpegView. To control the servo, there is 1 class:

IP-camera DLink DCS-930L gives a video stream in a format MJPEG (Motion JPEG), in which each frame is compressed using the popular JPEG image compression algorithm. At a resolution of the video stream 320x240, FPS is 25-30. For Android on the Internet has been found MJPEG class for processing and display of data in activity.

Step 1
Open the and change the IP address andPort like on your Ethernet Shield. It should be the same IP address and Port number so your devices can communicate with each other. (see Picture 1 & Picture 2)

Step 2
Still on the, change the URL of your IP camera. (see picture 3)


Step 8: The Box

Because this project was a part of my final year project for college, I made the box from Acrylic with strange shapes (for some reason). The box as seen in the figure above, I put the Arduino, Ethernet shield and the power adaptor (for Arduino) inside the box. The servo was also attached at the top of the box.

p.s: Don't mind the other objects in the box, because that's my complete project for my final year project.

Okay, that's it. We're ready to control it.

Step 9: Control It!

This is the video of my Camera Surveillance Controller System.
(change the quality for a better view)

p.s: that's my room, it's messy and cramped. so sorry you have to see that. hehehe..



    • Tiny Home Contest

      Tiny Home Contest
    • Metalworking Contest

      Metalworking Contest
    • Fix It! Contest

      Fix It! Contest

    58 Discussions

    why dont you provide the codes?? and the android app also didn't work......

    Camera Surveillance Controller System


    Android source :

    1 reply

    please send me source code arduino and android source

    please give me source code and schmatic "Camera Surveillance Controller System"
    help me

    source code and schematic for project "Camera Surveillance Controller System"
    that is what I mean

    helle faziefazie, please give source code and schematic


    Hello Faziefazie,

    I'm on my 4th year college now. And I find your project almost exactly what I have had in mind. I'm BSIT student, and to be honest.. I don't know much about how Arduino works, but I'm good at programming so I hope I can catch-up with your tutorials very well.
    I wanted to create a Digital Alarm Clock with a hidden camera inside it, that I can control using my Android phone.
    I don't have that much funds, so..instead of buying a router, can I use a WiFi module or Bluetooth?
    This is for my upcoming thesis, and I find it very intimidating to start since our curriculum didn't offer any Arduino classes.
    If you can teach me, it would be of great help and pretty much appreciated.


    My E-mail:

    Thanks you!

    Hello !

    I am interested in your project

    Do you have the source code ? maybe you can send me via e-mail at


    1 year ago

    Please answer me...

    I have WiFi Broadband Modem with 4 LAN port like your 3G/4G Router and of course with the IP too, can i using it for this project? pls, i really need this project to watch my family from my laptop when i'm in work until night :D

    Thank You...

    1 reply

    And if i can, is this possible to controll the ip cam(in my home) with laptop when i'm in my office(far from home), or maybe just streaming? thanks...

    boleh mnta full code nya ga bos?? klo boleh kirim ke email saya terima kasih

    Can you send me the full code at

    halo Mas Fazie, saya tertarik dengan projek ini. boleh saya minta source code buat android dan arduinonya? mohon kirim ke email terimakasih banyak sebelumnya mas.


    2 years ago

    My E-mail:

    Thanks you before!


    2 years ago

    My E-mail:

    Thanks you before!


    2 years ago

    My E-mail:

    Thanks you before!