loading

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: connectivity.java

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 ArduinoActivity.java 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 ArduinoActivity.java, 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..

<p>Android source : https://github.com/faziefaziee/IPCamera</p>
<p>My E-mail: 6319945@gmail.com</p><p>Thanks you!</p>
<p>Hello !</p><p>I am interested in your project</p><p>Do you have the source code ? maybe you can send me via e-mail at</p><p>charlesmatt1996@gmail.com</p>
<p>Please answer me...</p><p>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</p><p>Thank You...</p>
<p>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...</p>
<p>boleh mnta full code nya ga bos?? klo boleh kirim ke email saya antekomp@gmail.com terima kasih</p>
Can you send me the full code at alaghbarey@gmail.com
Hi
<p>halo Mas Fazie, saya tertarik dengan projek ini. boleh saya minta source code buat android dan arduinonya? mohon kirim ke email dessy46@hotmail.com. terimakasih banyak sebelumnya mas.</p>
<p>My E-mail: ansarithan@gmail.com</p><p>Thanks you before!</p>
<p>My E-mail: ansarithan@gmail.com</p><p>Thanks you before!</p>
<p>My E-mail: ansarithan@gmail.com</p><p>Thanks you before!</p>
<p>My E-mail: ansarithan@gmail.com</p><p>Thanks you before!</p>
<p>My E-mail: ansarithan@gmail.com</p><p>Thanks you before!</p>
<p>My E-mail: ansarithan@gmail.com</p><p>Thanks you before!</p>
<p>Can you send me your code ino? Hopefully you will be kindly help me!</p>
<p>Hello !</p><p>Iam interested in doing your project</p><p>Do you have the source code ? maybe you can send me via e-mail at</p><p>aken.fernando@hotmail.com </p><p>by the way its also for my final project from school so maybe you can help me :)</p><p>Thank you by the way ! Great project !</p>
<p>Any links to download the ipcamera.rar? Thanks.</p>
Saya tertarik sekali dengan project yang bang fazie buat. Mohon kirimkan source code nya email herwandi93@gmail.com. Saya sedang mencari project untuk tugas kuliah. Terimakasih banyak.
<p>drexsprint@outlook.com</p>
<p>Can i get the full code I'm working in a very similar project, I would apreciate it.</p>
<p>Bang, tolong kirim kodenya ke email saya yulanda.resky@yahoo.com, sama skematik &amp; aplikasinya kalau ada. Terimakasih.</p>
KIndly send me source code<br>My email:<br>afrasyab.ahmed0321@yahoo.com
<p>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. Windexatron@gmail.com</p>
<p>Where can I find the source code for arduino and android? </p>
<p>hi, </p><p>very interesting work, can you please share the source code and the camera model you used? </p><p>Thank you.</p>
<p>Well-done for the good work. I need help to download the source code for the microcontroller(ARDUINO) i.e ipcamera.rar</p>
<p>does it have an effective range?? or you can control it anywhere as long as you have a internet?</p>
<p>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 <a href="http://en.wikipedia.org/wiki/Router_%28computing%29">router</a> will prevent external access by default so you will need to configure your router to allow access, (<a href="http://mpcam.com/mpcam-video">Port Forwarding or Port Triggering</a>) depending on your router brand.</p>
<p>This is very good, I'm so hard to find android application that combine MJEG with buttons. Thank you</p>
<p>Thank you for your nice comments.</p>
<p>Cool!!</p>
<p>Thank you for your nice comments.</p>
<p>Thank you for your nice comments.</p>
<p>Thank you</p><p>Pleas more open source.</p>
I already shared the source code.
Please share your source code<br>Link.....<br>
<p>Hi, I already shared the code in the git hub. Please check the tutorial step 6 &amp; 7.</p>
Hey, i want to add up down command? What should i change in the source code? Thx before.
<p>hi, sorry for my late reply, I was rarely check this website due to my work.</p><p>for the arduino code, you can refer to this instructable :</p><p><a href="https://www.instructables.com/id/Pan-Tilt-Servo-bracket-controlled-by-Arduino/">https://www.instructables.com/id/Pan-Tilt-Servo-bra...</a></p><p>it's quite clear tutorial, I hope it's helpful for you.</p><p>Regards.</p>
<p>can i use wifi shield instead ? What's the difference between wifi shield and ethernet shield ?</p>
<p>sorry for my late reply. </p><p>Yes you can. Wifi shield just a wireless Ethernet port. </p><p>The only difference between Wifi and Ethernet shield is that one is <br>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. </p><p>Please note that the hardware UART in the arduino is used for <br>programming sketches and communicating with the pc, so if your wifi shield is UART based then you're going to <br>have to use software UART if you want to use both at the same time.</p>
can u email to me the pdf? aimanhazis@gmail.com
<p>the PDF of this instructables?</p>
<p>very good....!</p>
<p>Thank you so much :)</p>
<p>very cool...!</p>
thank you very much.
<p>is there a way to use an usb webcam instead of an IPcam?, my router has usb ports</p>
you can use webcam that supported networking, because you need an IP address of your camera to connect with the router.

About This Instructable

39,263views

382favorites

License:

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 Automation Camera Surveillance Controller System Sky on the Wall (Mood Lighting-IR remote) 
Add instructable to: