Ask HackADay: Network Security Camera

Today we received the question,

“How to control a web cam via internet,
i want to use it for security reasons, always out of the house and my PC connected want to open the cam from time to time to checkout if something wrong!!”

- [Mohamed Saleh]

What a fun project we thought! And so many different ways of tackling it. Find out what we suggested to [Mohamed] after the break.

Initially we wanted to create an extremely complicated setup, using a USB camera, server, webhosting, and a ton of scripts/programming to create a rather sweet camera setup.

But of course, complication breads problems, and while digging through our box of parts and supplies we stumbled upon an old Axis 206 IP Network Camera. What could be easier than all of the above built into one slick device!

The camera comes with an Ethernet cable, wall-wort for power, and a CD with instructions – we just threw the latter away and winged it, by finding out how to reset the device, then its default ip, we had view of the camera within our network in no time.

A simple port forward of 80 and we could view it outside of our network (so long as we typed in our IP). What we would recommend however, is setting up a DNS (DynDNS is great) service on a computer within the network that points to the cameras IP. That way the URL becomes http://www.HADCamera.com, a lot easier than 249.135.184.204:80. (Both are fake URLs sorry).

Taking it further, if you had a computer nearby you could setup a simple stepper motor and control the position of the camera.

This is of course our take on the matter and part of Ask HackADay is what our readers would do, so how would you setup a home security camera?

Comments

  1. barry99705 says:

    @ pittom

    Do those cameras require internet exploder to run the pan tilt, or even view the stream? I had one of the older Cisco cams that was that way. Completely useless to me.

  2. mad_max says:

    @Vivalie You’ve got it. Just hook up any webcam to your computer and access it remotely with LogMeIn. I do it all the time.

  3. Rak0ribz says:

    I think the Axis cam is a fine solution; my only objection is that you should always use example.com for example URLs to avoid unintended consequences.

  4. /dev/random says:

    The Axis camera uses an Axis ETRAX SoC, which has an OpenWRT build available. You could then run whatever software you want inside the camera itself, eliminating the need for a separate computer for performing tasks like motion sensing. The ETRAX SoC also has plenty of GPIOs, so if you poke around on the board you may be able to locate them and get the camera to control its own pan/tilt assembly. You could also use one of the serial ports I am sure are brought out to command a microcontroller to control the pan/tilt. If you got the Axis cam from an FRC kit of parts, you may as well use the pan/tilt assembly that comes in the kit as well.

  5. sanchoooo says:

    i run a ubuntu(9.04), zoneminder(1.23),ssl setup w/a logitech quickcam pro 4000. Works great.

  6. edyagi says:

    Dealextreme has wonderfully cheap internet-based surveillance camera’s for under 100. They recently dropped the price of their pan and tilt camera: http://www.dealextreme.com/details.dx/sku.32073

  7. JimSocks says:

    What? You didn’t use an arduino in this project? I’m confused.

  8. HAL0_F00 says:

    Thanks, Hack a Day, for making a few more home “surveillance” cameras publicly accessible! :D

    Anyways, a better way to setup remote access would be to restrict the camera to the LAN and SSH tunnel or use a VPN to access the entire lan, instead of relying on the camera’s built in “authentication” which fails horribly…

  9. Anton Zalutsky says:

    I actually managed to program my G1 phone with some home automation stuff I did with an apache server. Anyways, I use a free program called YawCam which does several things. It can save a picture to FTP, send it to an HTML address(a preset port), or just save the file on a given time interval, if motion is detected, or on request.

    http://sphotos.ak.fbcdn.net/hphotos-ak-ash1/hs438.ash1/24191_10150144319405707_547600706_11778955_3313901_n.jpg

    Thats a picture of how my program looks :-)

  10. Simon says:

    Just use (a) small Linux-Server(s), Zoneminder (http://www.zoneminder.com) and a bunch of cheap USB-Cams.

    ———–8<—–(snip)————–
    Feature List
    Runs on any Linux distribution!
    Supports video, USB and network cameras.
    Support Pan/Tilt/Zoom cameras, extensible to add new control protocols.
    Built on standard tools, C++, perl and php.
    Uses high performance MySQL database.
    High performance independent video capture and analysis daemons allowing high failure redundancy.
    Multiple Zones (Regions Of Interest) can be defined per camera. Each can have a different sensitivity or be ignored altogether.
    Large number of configuration options allowing maximum performance on any hardware.
    User friendly web interface allowing full control of system or cameras as well as live views and event replays.
    Supports live video in mpeg video, multi-part jpeg and stills formats.
    Supports event replay in mpeg video, multi-part jpeg, stills formats, along with statistics detail.
    User defined filters allowing selection of any number of events by combination of characteristics in any order.
    Event notification by email or SMS including attached still images or video of specific events by filter.
    Automatic uploading of matching events to external FTP storage for archiving and data security.
    Includes bi-directional X.10 (home automation protocol) integration allowing X.10 signals to control when video is captured and for motion detection to trigger X.10 devices.
    Highly partitioned design allow other hardware interfacing protocols to be added easily for support of alarm panels etc.
    Multiple users and user access levels
    Multi-language support with many languages already included
    Full control script support allowing most tasks to be automated or added to other applications.
    Support external triggering by 3rd party applications or equipment.
    xHTML mobile/cellular phone access allowing access to common functions.

    ———–8<—–(snip)————–

  11. pittom says:

    @barry99705
    i have it on my cell phone with ptz.
    or look at http://www.ivimg.com/products/vcmobile.htm
    works great

  12. pittom says:

    http://www.dealextreme.com/details.dx/sku.32073
    THIS IS A FAKE IT IS NOT A FOSCAM
    go to foscam under support to see there dealers so you don’t get riped off with a fake

  13. pittom says:
  14. Brian Gaut says:

    To all those offended by HaD “advertising” a commercial product: stfu.

    Just because this is hackaday doesnt mean everyone wants to BUILD their own camera. Some things need to be bought sometimes. I salute HaD for actually finding a relatively cheap network camera in a sea of expensive ones.

    Im just chiming in to say that the D-Link DCS-900 (wired) and the DCS-910 (wireless) are also good network cam choices and can be found for well under $100 every few months when Amazon has a high inventory.

    Also, I agree with the several other commenters here who have recommended using the linuix package “motion”. Ive been using this for a long time and have been very pleased with it.

    The DCS-900 and motion have been running my Blender Defender setup for a while and I havent had any problems with it. (www.plasma2002.com/blenderdefender)

  15. Bob says:

    I’ve used Linux +camserv or you could just buy a wowee rovio. They were $99 on woot a bit ago, they’re $119 on buy.com

  16. ClutchDude says:

    Zoneminder is great. I’ve got it doing a wonderful job with motion detector recording and passive monitoring.

    It does have a *small* learning curve, but I’ve been very pleased with it in it’s small use.

  17. strider_mt2k says:

    Oh no you didn’t mine the Bauxite for the Aluminum yourself?? NOT A HACK

    LOL Sometimes you just have to enjoy yourself.

  18. 5318008 says:

    “wall-wort”
    “wall-wart”

    Also, I know this is a lost cause, but while there is a ‘Duck’ brand of it, it’s called duct tape.

    For all the other misspellings, you guys are on your own.

  19. Joe says:

    For those interested in a Windows software that has a HTTP server and does motion detection, check out Zone Trigger:

    http://www.zonetrigger.com

    Plus it’s great for diy projects because it lets you add independent hot spots for motion detection.

  20. jeicrash says:

    SheevaPlug + a few usb cameras = cheap security system. Or just plug them into your computer and head over to a webcam site and watch your own stream. Even cheaper.

  21. D- says:

    Stop now, if you are looking to read a comment with redeeming qualities, because this most likely has no redeeming qualities. Suggestion to HaD, post the question, and let your readers come up with the suggestions. Because you can’t win no matter what you do.

  22. bob says:

    is this hackaday or buyareadymadeproductaday?

  23. JonnieCache says:

    Don’t expose the cam’s webserver to the internet directly. Use one of the many hacked router firmwares that support running VPN servers so you can tunnel into your network. Or perhaps some kind of ssh tunnelling.

    I reccomend one of the mods of the tomato firmware: http://en.wikibooks.org/wiki/Tomato_(firmware)

  24. Miles says:

    Ah this is always an interesting project to try.

    I bought a couple of those cheap USB cannons you see around. They support a huge pan range (Nearly 360*!) but sadly the tilt isn’t so great, around 45*.

    I combined that with a webcam (enter rubber band) and used a combination of .Net WCF and a simple C# asp.net forms page using Ajax to control the cannon. Then I went ahead and used Windows Media Encoder to stream the video to the page.

    I originally used peice of javascript to pull a snapshot from a custom peice of code on the host machine but it used so much processing power I decided to drop it. The disadvantage is the delay (buffering) makes the cannon hard to control accurately.

  25. edyagi says:

    About buying a premade ip camera not being a hack, neither is hooking up a usb cam and installing a app. Some of the cited ip cams are more hackable since it has an embedded unix that you can customize, update firmware, and script custom ftp jobs. I have mine ftp’ing motion captures to godaddy which has a cron using ImageMagick to convert the days image to a animated GIF, which allows me to pull and watch all the captured images in a easily viewed movie, but all the while having the full resolution image stored offsite from my residence securely. More hackery involved than plugging in a usb cam and installing software. Added bonus, fanless, and low powered ip cam humming along rather than a dedicated laptop/desktop just for the usb cam.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s