Monday, April 30, 2012

DIY $7 Night Vision Baby Monitor

Checking the kid on my iPod Touch.  See sample video at bottom!

The Problem
This project had simple motivation: I wanted a video baby monitor, and I didn’t have a lot of money.  I didn’t need sound, as the baby’s room is right next to ours, but I didn’t want to have to get up every time I heard him cry to see if he’s okay.  There are great products out there if you’re willing to throw down $100, but I’m a grad student with a budget.
 
 Thinking of a solution
My first thought was just to train a webcam on him, but I didn’t want to have to shine lights in his face all night.  So, I needed a way to see in the dark.  In my brief research, I found two basic ways people do night vision.  One is to use photomultipliers, which basically just shine 10 photons of light at you for every one its sensors see.  Good for military night vision, bad for us.  The other is to flood the area with IR light and use an IR sensitive camera to detect it.  This is easy enough, but where do you find an IR sensitive camera?  Well, between your phone, webcams, etc. you already have a lot of them. 

The IR Webcam You Already Own
The light sensors on digital cameras are sensitive to a huge range of light, ranging from the IR spectrum through the visible and a bit into UV.  To achieve their goal of only capturing visible light, digital cameras put IR filters somewhere between the lens and detector.  These aren’t perfect (you can test your remote control by pointing it at a webcam and you should see a faint white light), but they block out most of the IR.  Basically, to make an IR-sensitive camera you can just take an average webcam and remove the IR filter.

The Big Picture
So what we’re going to do here is remove the IR filter from our webcam, make some USB-powered IR lights, and broadcast the webcam feed over our local network.  By the end, you should be able to view your night-vision webcam on any computer, smartphone, iPad, iPod Touch, PS3, or anything else on your network with a web browser.

Parts List
3 IR LEDs ($0.60, 20 pcs for $4)
1 25 ohm (or greater) resistor ($0.01, 1000 for $7.50 on eBay)
1 USB Cord ($1 at any dollar store.  Get an A/A (Male/Male) one and you can use it twice!)
1 old useless CD (come on, you know you have one)

OPTION A:
1 Super Cheap Webcam ($5, I used a Creative Live! Cam Vista Webcam.  Works fine, easy to remove filter, does NOT work with Mac OS).
1 Old computer (Everyone has an old laptop around, right? If not, you could just not use your laptop when baby is sleeping.)

OPTION B:
1 Wireless Wifi IP Webcam ($50ish on eBay.  I haven’t used them, so good luck.)
--------------------------------------------------------------------------
Total Cost = about $7 with an old computer.
                   = about $50 with an IP webcam

Step-By-Step
Step 1:  Remove your webcam’s IR filter.  There are a few good sites describing how to do this.  For the webcam I used the hardest part was opening the case, and that wasn’t bad.  After that, I just unscrewed the lens until it came off and the IR filter popped right out.  Try here for help, or just google it!  http://www.hoagieshouse.com/IR/

The ridiculously simple LED light circuit diagram in poorly-focused picture form!
Step 2: Weld together the IR lights.  As with my flashing alarm clock demo, I like to set LEDs in old CDs because they are rigid, easy to work with, and you probably have a bunch lying around.  They also have a hole in the middle convenient for putting the lens of a webcam through.  For the power, just take scissors and cut your USB cord in half.  There should be 4 wires inside.   Red is +5V and black is 0V/ground.   The white and green wires are for data: we won’t be using these. 

The CD happens to have a convenient lens-sized hole right in the middle!

View from the back.  I used electrical tape to hold it together before I bought a glue gun, so forgive the black junk.

(Note: I really like using USB power supply for all sorts of electronics projects.  One is because years of cameras, cell phones, etc. have left me with a handful of ACàUSB converters.  The other is that if I utterly destroy the USB cord, they’re cheap and easy to replace.)

Step 3: (Note: If you’re using the Wifi IP Webcam approach, you don’t need this). Get some software that lets you broadcast your webcam on your local network.  I found Yawcam to be super convenient and easy to use.  In Yawcam, it’s the “Stream” option that you’re looking for. 

Step 4: Fire up your Kindle, iPhone, Laptop, or whatever and point it to whatever address Yawcam tells you.  For sanity’s sake, try not to be too compulsive checking it!


Video feed during an afternoon nap

Video taken at night.  The blanket at the bottom is actually 
blue with white dots, but in the IR it all looks the same.

7 comments:

  1. Has there ever been a study into shining infrared light on sleeping babies for nights on end...

    ReplyDelete
    Replies
    1. There has not been a formal RCT-type study that I know of. But there has been a natural experiment running for decades... incandescent light bulbs. They crank out tons of light in the IR range and have been in use for years.

      As far as I'm aware, the major safety concern associated with IR light sources is the potential for heating exposed tissue. Given that each LED here is only operating at about 23 milliwatts (total, not per cm^2 on the skin), that's really a non-issue with this setup.

      Delete
  2. Choosing a baby monitor can be very confusing; do you go with an audio? Or, audio video? Does it have split screen? is it two way? Can you view it from your tablet or phone? What is the range distance? Is 600 feet enough? Can you add on additional cameras? Is the display colour? Is it LCD? Does it come with a stand? Can you zoom with it? Baby Ride Safe has a variety of top notch baby monitors that you can choose from to monitor one or more children. These baby items are cost effective, high technology and are great as baby gifts or to put on your baby registry.

    ReplyDelete
  3. It might seem like an explicit question these days, but unborn baby monitors are a relatively new innovation.

    Medical Equipments | Unborn Baby Monitor | Office Hysteroscope

    ReplyDelete
  4. It is remarkable baby monitoring camera review. I wanted to learn such type of the things that I have got from here at one platform. Thanks.

    ReplyDelete