Introduction: Camera Surveillance Controller System

Picture of Camera Surveillance Controller System

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

Picture of 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

Picture of 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

Picture of 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

Picture of 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

Picture of 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)

Picture of 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)

Picture of 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

Picture of 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..


현승김 (author)2017-02-16

Android source :

PetarungS (author)현승김2017-11-13

please send me source code arduino and android source

PetarungS (author)2017-11-03

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

PetarungS (author)2017-11-03

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

PetarungS (author)2017-11-03

helle faziefazie, please give source code and schematic


windhoarfrost (author)2017-08-12

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.


현승김 (author)2017-02-16

My E-mail:

Thanks you!

michaelmatt (author)2016-12-08

Hello !

I am interested in your project

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

CaraA6 (author)2016-10-13

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...

CaraA6 (author)CaraA62016-10-13

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...

oomgalih (author)2016-09-24

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

Ahmad910 (author)2016-07-15

Can you send me the full code at

Ahmad910 (author)2016-07-15


dessyiztamia (author)2016-07-15

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.

AnS3 (author)2016-07-07

My E-mail:

Thanks you before!

AnS3 (author)2016-07-07

My E-mail:

Thanks you before!

AnS3 (author)2016-07-07

My E-mail:

Thanks you before!

AnS3 (author)2016-07-07

My E-mail:

Thanks you before!

AnS3 (author)2016-07-07

My E-mail:

Thanks you before!

AnS3 (author)2016-07-07

My E-mail:

Thanks you before!

AnS3 (author)2016-07-07

Can you send me your code ino? Hopefully you will be kindly help me!

AkenF1 (author)2016-05-20

Hello !

Iam interested in doing your project

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

by the way its also for my final project from school so maybe you can help me :)

Thank you by the way ! Great project !

theolee (author)2016-05-11

Any links to download the ipcamera.rar? Thanks.

Drexsprint (author)2016-04-26

Saya tertarik sekali dengan project yang bang fazie buat. Mohon kirimkan source code nya email Saya sedang mencari project untuk tugas kuliah. Terimakasih banyak.

Drexsprint (author)2016-04-26

Drexsprint (author)2016-04-26

Can i get the full code I'm working in a very similar project, I would apreciate it.

ReskyY (author)2016-04-21

Bang, tolong kirim kodenya ke email saya, sama skematik & aplikasinya kalau ada. Terimakasih.

Pkwarrior (author)2016-04-15

KIndly send me source code
My email:

Windexatron (author)2016-04-04

Could you send me the source code, i just need to view the cameras feed not move the camera but the source code will help. Thank you.

leandro_samorim (author)2016-04-01

Where can I find the source code for arduino and android?

coronis (author)2016-03-22


very interesting work, can you please share the source code and the camera model you used?

Thank you.

lucatech (author)2016-02-04

Well-done for the good work. I need help to download the source code for the microcontroller(ARDUINO) i.e ipcamera.rar

ErwinF4 (author)2016-01-12

does it have an effective range?? or you can control it anywhere as long as you have a internet?

faziefazie (author)ErwinF42016-01-13

Because I'm using local connection with router, yes of course it has an effective range. but it is really possible to control it anywhere as long as we have an internet, but there might be little change in the code. Please be noted that most internet router will prevent external access by default so you will need to configure your router to allow access, (Port Forwarding or Port Triggering) depending on your router brand.

nmaxero (author)2014-08-29

This is very good, I'm so hard to find android application that combine MJEG with buttons. Thank you

faziefazie (author)nmaxero2015-12-16

Thank you for your nice comments.

loegiono (author)2014-08-27


faziefazie (author)loegiono2015-12-16

Thank you for your nice comments.

faziefazie (author)loegiono2015-12-16

Thank you for your nice comments.

altairkims (author)2014-11-24

Thank you

Pleas more open source.

faziefazie (author)altairkims2015-05-25

I already shared the source code.

megasoul (author)faziefazie2015-06-12

Please share your source code

faziefazie (author)megasoul2015-12-16

Hi, I already shared the code in the git hub. Please check the tutorial step 6 & 7.

Artfar (author)2015-06-02

Hey, i want to add up down command? What should i change in the source code? Thx before.

faziefazie (author)Artfar2015-12-16

hi, sorry for my late reply, I was rarely check this website due to my work.

for the arduino code, you can refer to this instructable :

it's quite clear tutorial, I hope it's helpful for you.


jhentap (author)2015-07-18

can i use wifi shield instead ? What's the difference between wifi shield and ethernet shield ?

faziefazie (author)jhentap2015-12-16

sorry for my late reply.

Yes you can. Wifi shield just a wireless Ethernet port.

The only difference between Wifi and Ethernet shield is that one is
wired to the router and the other is wireless connected to the router. but there are a couple of things to bear in mind, you should check whether your wifi shield are SPI based or UART based.

Please note that the hardware UART in the arduino is used for
programming sketches and communicating with the pc, so if your wifi shield is UART based then you're going to
have to use software UART if you want to use both at the same time.

AimanH1 (author)2015-12-12

can u email to me the pdf?

faziefazie (author)AimanH12015-12-16

the PDF of this instructables?

vinhhai.tan (author)2014-10-29

very good....!

About This Instructable




Bio: Bachelor of Wireless Telecommunication Engineering from Bandung State Polytechnic, Indonesia | Software QA - Junior Engineer at Oberthur Technologies | A Rhesus(+) | Aries | Photography | Computer Geek | Chiliphobia | Art ... More »
More by faziefazie:Multifunction Box AutomationCamera Surveillance Controller SystemSky on the Wall (Mood Lighting-IR remote)
Add instructable to: