loading

Turning one of my old Android phones into a webcam is something I've been thinking about doing for a long time now. A couple of years ago, I backed a 3D printer project on Kickstarter (RigidBot, if you're interested). It took a long time to finally get the thing, and it's frequently glitchy and buggy. I'd like to be able to keep an eye on it when I'm out of the room or at work. Besides just wanting to monitor progress as it prints, I've read a couple of horror stories about 3D printers glitching out and causing house fires. With how many times this thing has freaked out and frozen in place with the heat still on, that's got me pretty worried--especially when I'm at work.

At first I looked into the Nest wifi smoke detector and drop cam, but that's a pretty pricey option. I decided to go this route as it will allow me to keep an eye on things without straining my wallet too much, with is stretched pretty thin these days.

It's pretty straightforward and simple process, and well worth it. I've even shared the password with some friends so if they're interested in this sort of thing they can check up on my progress . . . and if they're really lucky they just might catch me swearing and trying to fix the latest problem that's cropped up with my RigidBot.

Step 1: Gather Materials

It's a pretty simple list this time, all that's actually required is an old (but still functional) Android phone, cable, charger and wifi. I'm using a Droid Razr Maxx that works just fine, except the charging port has broken loose. More on that later.

In addition, depending on your phone and application, you might want to get your hands on some sort of mount. I'm using mine as a monitor for my printer so I simply found a couple of models on thingiverse already designed for my phone and printer, printed them out, cobbled them together and was ready to install.

Depending on your phone, for tools you may need a soldering iron, bench top power supply, hot glue gun, and a set of teeny tiny screw drivers. I was recently provided this soldering station from thediyoutlet.com, and this project was it's maiden voyage. Worked like a charm, more about it in the next step.

Step 2: Prep Your Phone

An android phone may fall out of use for a variety of reasons. Maybe you just upgraded to the latest and greatest model, and held on to your old one. Maybe it stopped working properly in some way, but wasn't totally ruined so you felt bad throwing it out. Maybe like me, you're a pack rat and horde all sorts of shiny, semi-working technology . . . you know, just in case.

I'm a buy it used and avoid long term contracts kind of guy--I'm on pageplus and get my 4G from a router from Ting, which is a kludge of a way to do your phone service, but it keeps me out of expensive contracts that I have to stick with for years and years. One of the downsides, however, is a total lack of warranty. So, when my fancy Razr Maxx stopped charging about a year ago (hey, so I'm three generations behind the times, sue me), I simply had to set it aside and buy a new phone (S3, hurray!). The Razr still worked fine, I just had to drill a hole in it and extend a battery wire out so I could attach some alligator clips to those and attach that to a USB charger. Not an elegant solution, but it worked out okay until I replaced it!

So if you're lucky and your phone is just old but still working, all you'll need to do here is plug it in near the location you want the webcam. For me, I had to open the case and modify some things.

Here's where that soldering station from thediyoutlet came in. I have no reservations whatsover recommending this tool, some of you may have seen my old soldering station instructable, but this is waaaaaay better than that mess. It served me well for many years, but this is a definite upgrade. This one has a soldering iron, hot air gun, and a variable power supply, all of which I ended up using for this project.

My first thought was to try and repair the actual USB charging port. The heat gun that comes as part of the station worked great to loosen the solder on the port, allowing me to remove it. I then tried to wire the end of a USB cable directly to the circuit board. The soldering iron worked great and had a really pointy nib for use on SMD circuit boards, but my hands just aren't steady enough for that delicate of work, I guess. I made a mess of things and had to start over.

I realized there's no real need for a USB connection! I decided to make the direct battery connection permanent (and less messy). I took that same USB cable, stripped the positive and negative wires (usually red and black, but in this case gray and black--green and white are data, so you don't need those here). I decided to remove the battery completely since the phone would be permanently powered, and lighter without it. Before I attached the USB wires to the power inputs, I attached the phone to the benchtop power supply and made sure it was working fine without the battery. No problems! I screwed the wires in place, and added a dollop of solder to each for good measure.

Finally, using a dremel I carved the hole at the bottom of the phone's casing a bit deeper, to fit the fatter USB wire. Sticking it in place with hot glue, I then tested everything on a USB wall charger before using epoxy to keep the USB cable in place at the bottom of the phone, reassembled it, and was ready to go!

Step 3: Get the App

There are several webcam apps available in the google play store, but I went with IP Webcam. They've got a free version which I used to set everything up and make sure it works. I ended up kicking in the $4 for the full version to get rid of the ads and the watermark on the video feed. Totally worth it to support the work of the designer!

When you first load the app, you'll see the settings screen. There are lots of ways to customize this app for your purposes, but the important ones are these:

Login/password: If, like me, you're going to stream this over the internet, you'll probably want to make a login and password.

Stream on device boot: Just in case your phone decides it's time to reboot, this will turn the webcam back on afterwards.

Start server: Click the last entry on the list, and the video will start streaming!

Just a side note-- I didn't need any of these options for my own setup, but you can set up this app to act as a security camera. It can record video loops, be motion, light, or sound activated, take a picture at certain intervals, etc.

Look at the bottom of the screen, and you'll see an IP address. In my case, it's 10.0.0.21:8080 . If all you want is to be able to keep an eye on something from another room in the house, you're done! Mission accomplished!

However, if you want to be able to check on things while you're away, there's more to do--it's a little techy, but even an amateur shouldn't have too much trouble. Write down that IP address and head over to your desktop PC.

Step 4: Give Your Phone a Permanent IP Address

Logging into a wifi router and messing with its setting can be a daunting task for someone who's never done it before, but it's not that difficult--most likely you'll be able to find a manual either in your stuff or available online.

The first step is finding it's local IP address. My phone's webcam address was "10.0.0.21:8080", which means that it's port 8080 at that IP address. In MOST cases, you'll find that your wifi router is located at X.X.X.1, or in my case "10.0.0.1". Simply type that into your browser's address bar, and you'll very likely find yourself at the login page for your router! If not, you'll probably find it printed on the bottom of the router or somewhere in the manual.

If you've never logged in, the router's password and login are probably still set to their default values (find this again on the bottom of your router or in the manual). I like to write that info down on a piece of masking tape and stick that to the bottom of my router, just so there's no confusion, since I don't have to log in more than once in a great while.

****Update 12/18/14:AtlantaTerry points out that leaving your router set to the default login/password is a big security hole. If you find it is, now it a great time to change the login and password, then write that down on a piece of masking tape and stick it to the bottom of your router.

Once you're logged in, you need to find your phone and give it a static (unchanging) IP address. Standard router procedure is to issue temporary IP addresses that change every week or so, but you want your webcam to keep the same IP address at all times. You may have to poke around a bit in the management screen or in your manual to find out how to do this, but in mine I found it simply under "Connected devices", where I was able to hit edit, change it from DHCP to Reserved IP, enter my IP address, and hit save.

Step 5: Make Your Webcam Available Online

Now that the local IP address is locked down, you need to make that available over the internet. Basically, your router acts as a gateway between your local network and the outside world, and the IP addresses on each side of that gate are different. So, you need to tell your router to forward an outside address to the IP address and port of your webcam. Sounds complex, but it's not all that bad.

On my router, I found it under "Advanced" and "Port Forwarding". Most routers will have it similarly filed away. You'll want to add a port to forward, in my case it's 10.0.0.21, port 8080. You'll probably also have to turn on port forwarding, as it's usually set to off by default. Now point your browser to google, type "What's my ip address" into the search bar, and see what it says. You'll get a string of numbers back. To access your webcam, simply type that string of numbers into a browser with :8080 at the end (xxx.xxx.xxx.xxx:8080). You may need to check from a different network or over a working phone's data connection as there is a bug in some routers' firmware that doesn't always allow you to connect back to the same IP address over the internet. If all has gone well, you've got a working webcam!

Here's an example of my webcam watching my 3D printer print. I'm not sure why the video is such low quality, as the stream is waaaaay better than this. There's probably a setting I missed somewhere, had it turned to low quality or something.

Step 6: Monitoring A 3D Printer

This won't apply to everyone, but I thought I'd include this step about my personal use of the webcam. As I mentioned, I wanted to be able to keep an eye on things while it's running but I'm away from the house. So, I printed a swing arm, mounting bracket, and a phone case for the phone. Everything is assembled and attached to the frame of the printer.

The last thing I did was install a smoke detector on the ceiling above the printer. This way I can have my stream up and running in the background at work, and if the smoke alarm goes off I'll be able to hear it!

Step 7: Final Thoughts

This was a fun project and the result was great, but I kept having setbacks! My stupid printer broke down twice while I was making parts for this, something went wrong with the phone and it refused to turn on for a while, etc. It was frustrating, but the result is awesome and totally worth it.

If you set up your own webcam using my instructable, post a picture in the comments and I'll send you a digital patch and 3 month pro membership!

Please take a minute to favorite, comment, and follow me! This project gave me an idea for an even bigger and better project along the same lines, so hopefully I'll be able to finish that soon and post it here. If you have any comments or need a little help figuring things out let me know and I'll do my best to set you straight!

***Update 12/28/14 - Instructables user Menneset posted this link to his own thingiverse design, using the instructions here to monitor his Da Vinci 3D printer with his Droid Bionic!

<p>If anyone discovers that their Internet router is set to the factory default values, that is a HUGE security hole!!!<br><br>Change it NOW!!!<br><br>Then, as advised, write the new values on a piece of masking tape then stick that to the bottom of the router.</p><p>Terry Thomas<br>President<br>PC Tech Support<br>Atlanta, Georgia USA</p>
I always change hardware from the default username &amp; password. A friend came to visit &amp; asked for the password to the WiFi network &amp; was shocked at how complicated it was, lol. But I never write it down on masking tape &amp; stick to the bottom of the router. I have a password manager software &amp; document that I use to keep track of all of my passwords. I save the doc on an encrypted external hard drive &amp; encrypted cloud acct every time I change it. I have kids &amp; parental controls!
<p>I've been considering doing something like that. I've got soooooo many passwords and logins floating around in my brain it's gotten to the point that I can't keep track of them very well!</p>
<p>Use a password manager to help keep the complexity of your passwords high without taxing your brain. I use LastPass.<br>Terry is quite correct, I'm the sort of person who DOES check default and common passwords on devices and proceeds to inform the device owner that their security is lax if I get in, better me than someone sketchy, but people DO put your router password to the test.</p>
I have been using self authored lines of CNC code. Type 2 Data statments are best . They contain letters numbers and symbols and are quite long. I use them frequently so no problem remembering.
<p>I've heard lots of good things about LastPass, it may just be time for me to give them a shot!</p>
<p>Solid point Terry, I hadn't thought to explicitly point that out in the instructable. I'll flag your comment to the top of the list and tweak that step a bit!</p>
<p>SIDE NOTE: Once you have found your WAN IP address make a note to check that it is still valid &quot;once every now and then&quot;. ISP's (Internet Service Providers) will often lease your WAN IP address (IP address on the Internet side of your router) to you for only a select number of days, then it is reset and you get a different one. This is why many people end up purchasing a Static IP address (One that does not change) from their ISP. Keep this in mind so that your not surprised one day when you cannot access your camera. If so IP address likely changed. :-)</p><p>-Zack</p>
Interesting, I didn't know that! I'll flag this comment to the top so it's more visible!
<p>I would like to set this up as a security camera and want to have a l looping storage file for a week or whatever is reasonable. Is that a reasonable project?</p>
<p>I'm pretty sure there are settings in the app that allow you to do just that.</p>
<p>Actually, it is very rare for an individual to purchase a static IP from their ISP. What most people do is use a subdomain from a service such as dyndns which periodically checks for IP address changes and will update accordingly. </p>
<p>Depending on the version of Android, you can also set up a static IP address from the phone instead of the router. In the WiFi settings, long-press the name of the network you are connecting to, and press Modify Network. In the Advanced Settings, change the IP settings from DHCP to Static. Scroll down and choose an ip address for yourself! The Gateway and DNS should autopopulate to the correct values.</p>
Ah, I didn't know that! I'll feature your comment to the top of the list!
The problem I keep running into is that the camera ceases to function on the phone. the app runs into an error where it cannot access the camera and I have to reboot the phone manually every time. it does this at least twice a day. it didn't start doing this until about two to three months into the project. What I'd like to know is how to stop this from doing it or be able to remotely reboot my phone so that the camera will reset and I can again watch my fish tank from work... isn't voice to text wonderful?
<p>Hello, great instructable thanks :-). Got 2 questions if you got the time. </p><p>1) How much traffic does it take on my home network. For example streaming takes up my home bandwidth or am I only affected when I actually connect to the camera?</p><p>2) Have you tried it with a Surveillance Station like the one Synology has on their NAS?</p><p>Thank again</p>
Hi, glad you liked it! I don't know how much bandwidth it takes up on the network, but I've never noticed any lag when it's running. As to other software options, I've not had the opportunity to try. Basically with this, I found something that worked and went with it, I've not really dug into any other options. If you find new ways to implement this I'd certainly like to hear about it!
Thank you for replying. I have checked and it works with the Synology NAS but with no audio.
<p><br> <br>Amazing<br> information about &lt;a href=&quot;http://strantin.com/&quot;&gt;Surveillance<br> Software&lt;/a&gt;. I will keep in mind for my future tasks. Thanks</p>
A useful life hack i would say :)<br><a href="http://www.helpinghomesservices.in/services/tv-mobile-repairing" rel="nofollow">home phone repairing service in ahmedabad</a>
<p>I cannot get this to work outside of my network. I have port forwarding on but when I type in my wan (from my iPhone with wifi off) ip:8080 I just get a white screen saying cannot connect to server. Can anyone provide any help?</p>
Dear how to supply charging 24h to my android device? I want to put my mobile on 24h and watch remotely cam view , if i plug in an Ac adaptor and connect it with mobile and leave it on 24h is it harmful? Please reply soon ,it is argent thank you.
<p>As far as I know it's not harmful. I've had mine up and running for more than a year now and rarely had to turn it off!</p>
thanx for your reply, i have an old china android device , http://uae.souq.com/ae-en/wintouch-m4-dual-sim-4-5-4gb-3g-wifi-white-7602922/i/ , i think that may be thats device become hot or may be short circuit ? Thats why i am asking you deeply ,bcz where i am fixing this camera i come there after 1 or 2 years later my friend, <br>Thanx instructables team!
<p>Cool way to implement security at home with old phone. Picture shows phones video of my desktop shown on my desktop. Nice</p>
<p>Thank you for this instructable! It's the first one I've ever made, and it really works!</p><p>I struggled a bit with switching to a static IP for the phone (my router's menu was a labyrinth!), but I followed a comment by &quot;PeterV3&quot; and found a similar way to do it in my phone's wireless settings.<br><br>I'm using an old HTC, so the camera quality isn't the best, but I screen-captured the live feed as proof! Thanks again!</p>
<p>Sheesh, I'm not getting email updates anymore when people post on my instructables, so sorry for the late reply! Thanks for posting this and I'm glad it worked out, pro membership and patch are on the way!</p>
<p>Hi This is really interesting stuff to do.</p><p>But I facing problems</p><p>I am using DLINK DSL-2730U router,</p><p>1. how can I set the static IP for my Android phone</p><p>2. How to set port forwarding.</p><p>please tell me some links so that I do it too.</p>
<p>What router software are you using? That interface in the images is unlike any I have ever seen. Is it custom firmware? One of the open source options?</p><p>The UI looks great!</p><p>Thanks.</p>
Good idea
<p>Thanks</p>
<p>Holy cats that was easy! :-D</p>
<p>Awesomesauce, patch and pro membership are on the way!</p>
<p>This is Precisely the reason I needed this lesson. My boss has a Makerbot he has been using in his office but found out the fumes can be bad for you. I am setting the printer up in a spare office but wanted a way for us to monitor it during use. This will work great!</p>
<p>Right on, hope it works out!</p>
Thanks so much! I had a fully functioning, outdated Droid RAZR, but no way to see who was at my door in the winter without bidding from my comfy spot by the fire. Your directions made setting up a camera super easy. All i had to do was use Command Strips to sick the thing in the window &amp; i was there! Now i use my outdated Motorola Xoom as a permanent door monitor!
<p>Awesome, I love seeing those &quot;I Made It!&quot; messages pop up! Patch and pro membership are on the way!</p>
<p>Fantastic, worked perfectly on my galaxy s3, thankyou.</p>
<p>Awesome, glad to hear it!</p>
quite verbose.
<p>Indubitably. </p>
<p>Great instructable! I've been trying to do this for a long time, but your tutorial enabled me to get it working! I set my phone up in the garage. That phone is an old Droid.<br><br>I tried setting up a Samsung Galaxy S3. It works, but the phone battery runs out (even though the phone is plugged in) and the phone shuts down. Thinking it was overheating, I pulled the back cover off, but that didn't help. Suggestions?<br><br>Thanks again!</p>
<p>Have a look at your charger - it might not be up to the job. It's output should be in the 2A range and a lot of phone chargers aren't. If you can get hold of a tablet charger you should find it's better, but there's plenty on eBay.</p>
<p>Thanks for the suggestion. I'll give that a try!</p>
<p>Cool, I'm glad you finally got it working!</p><p>My guess on the S3 is that you need a more powerful charger, or to shut down more of the phone's functions. Newer phones like that just need more juice to keep running all the time! A factory reset, switching to airplane mode then turning on wifi, and making sure to shut off the screen will trim down a lot of power drain on the phone. If that doesn't work, try a stronger charger.</p><p>Good luck, patch and pro membership are on the way!</p>
I tried the S3 in the garage where it's cold and didn't have the problem. I'll try your suggestions to see if I can keep it working inside. Thanks!
<p>Thanks for this - set up two old phones as security cams back and front of the house, using a pair of very cheap windscreen holders as mounts. I use noip.com and &quot;no-ip client&quot; app from the Google market to get round the IP problem.</p>
<p>Thanks for the tut! it motivated me to do this project, It has needed to be done for 12 months+ :) could you please get me the working link for thinigiverse? the link only linked to main page and not the project. thx! #makethings</p>
<p>Thanks for sharing, patch and membership are on the way! Here's the links for the 3D files I used, I didn't put in specific links since they're particular to my phone/printer combination.<br><a href="http://www.thingiverse.com/thing:398147" rel="nofollow">http://www.thingiverse.com/thing:398147</a></p><p><a href="http://www.thingiverse.com/thing:515766" rel="nofollow">http://www.thingiverse.com/thing:515766</a></p><p><a href="https://tinkercad.com/things/bWTTrh4YfD9-copy-of-droid-razr-maxx-tiger" rel="nofollow">https://tinkercad.com/things/bWTTrh4YfD9-copy-of-d...</a></p>

About This Instructable

414,973views

1,742favorites

License:

Bio: depotdevoid is short for The Depot Devoid of Thought, the place where you go when you lose your train of thought and you're waiting ... More »
More by depotdevoid:Customize Your Skateboard Deck! Wifi Controlled Roving Webcam! Magnetic Pixel Poetry 
Add instructable to: