Thursday, December 27, 2012

Turn a normal webcam into a IR webcam

The CMOS sensors in digital cameras like webcams are actually so sensitive that they can detect IR radiation as well as reular light. Well, they cant sense the whole infrared spectrum, so it's not usable as a heat sensing camera. But it will pick up the IR light given off from remote controls and other IR LED's.

However, since humans cant see infrared we dont really want our cameras to pick up on it either, as it dont make sense to show it on a screen, when it's not really how the image looks (with eyes).
So all cameras have in them a IR filter. A piece of glass that dont let infrared light thru.
And so by opening up your webcam and gently taking the filter you have suddently got a IR camera.

I started with my Microsoft VX-800:
And started disasembling it:
Then find the optical sensor and lens inside the camera. Then unscrew the lens:
Webcam with the lens removed, revealing the photosensitive sensor. 

The lens, the blue dish on the right is the IR filter
On the underside of the lens there is a small glass dish that has a tint. This is the IR filter. Carefully remove it with a knife, and then screw the lens back on and reassemble the camera. Don't throw the IR filter away, as you might want to put it back at some point.

I have not been able to come up with any really good uses for my IR camera. The IR LED i use cant really
illuminate things that are more than a few feet away, and i have to carry my laptop around with the hideous
ducktape hanging on it. And since the camera dont get much light it puts out a real slushy video.
PCB with IR LED from sparkfun.com 

And with the IR filter gone all the colors are wrong. Plants look white, my black fleece sweater is now grey, nothing has any clear color anymore, every color gets it's own shade of gray to it.

I also tried hacking open my old cellphone, in the hopes of being able to make a compact night-vision rig, but
unfortunately the IR filter in phones is muh harder to get out. They have placed the filter directly on the sensors so just a slight slip with any tool will shatter the chip.
The webcam and the IR LED taped to my laptop
I didnt stand a chance disecting the camera with plyers and a leatherman knife. The phone survived, but when i start the camera it just says "camera failed".
Not what you wanna see
The CCD is really thin and fragile once you remove the packaging
Update:
So now the  VX800 can see IR light, but one side-effect is that the colors don't look right anymore:
And here is a comparison shot done with a normal, proper camera:

5 comments:

  1. Would you mind showing an example image (not with the IR LEDs, just a shot of e.g. outside)? - I'm considering modifying my camera but am a little worried about your "slushy image" comment. Thanks :)

    ReplyDelete
    Replies
    1. I should say Microsoft VX-800 camera, not phone camera! Cheers

      Delete
  2. I would say don't do it unless the camera is expendable. The colors don't look right after you remove the IR filter. I even have a black sweater that looks grey with that camera

    ReplyDelete
  3. That's not unexpected (see e.g. http://eye.de/ejp.pdf)

    ReplyDelete
  4. Interesting stuff, thanks for the link. I especially liked how Coke and red wine is as transparent as water when seen with IR. Might be some more uses for this than i thought

    ReplyDelete