3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.


Cheap Motion Detection Wildlife Camera

Cheap Motion Detection Wildlife Camera

I have always wanted an inexpensive way to take unobserved pictures of wildlife in my neighborhood.  This instructable takes parts of two existing instructables and brings them together with added features to create a cheap motion detection wildlife camera.

This project uses a re-purposed PIR sensor module from an air freshener to provide motion detection, an inexpensive key chain camera to capture images, and a TI msp430 microprocessor to provide the necessary brains. The microprocessor comes with TI's $4.30 Launchpad experimenter kit.

 

 
Remove these adsRemove these ads by Signing Up
 

Step 1Parts and Tools

Parts and Tools
«
  • IMG_3878x.jpg
  • IMG_3851x.jpg
  • IMG_3534x.jpg

Materials:

      1.  Re-purposed PIR sensor module from an Air Wick Freshmatic Compact i-Motion
           Air Freshener. See the links below.
      2.  Key chain Vivitar Mini digital camera (available at CVS or Walgreen's)
      3.  Project box from Radio Shack (270-1803) size 5" x 2.5" x 2"
      4.  MSP430G2211 microprocessor (part of TI Launchpad experimenters kit)
      5.  Proto board from Radio shack (276-148) size 1.5" x 1.75"
      6.  2 - 4.7k resistors
      7.  3 - 0.01 uF capacitors
      8.  1 - 1.0 uF Ta capacitor
      9.  1- 14 pin DIP IC socket
      9.  2 - general purpose NPN transistors (example: 2n2222 or 2n3904)
    10.  Single AA battery holder salvaged from air freshener
    11.  Single throw Single pole mini slide switch salvaged from air freshener
    12.   AA battery salvaged from air freshener
    13.  Hook up wire
    14.  Optional - Stained Glass Copper Foiling Tape (available at Hobby Lobby or other
                               stores that deal with Stained Glass supplies)

Tools:  
 
       1.  Solder gun and solder
       2.  Wire cutters
       3.  Needle nosed pliers
       4.  Drill and drill points (I prefer brad points for cutting plastic project boxes.)
       5.  hand or powered jig saw
       6.  Hot glue gun and hot glue

Important Links:

PIR Module
http://www.instructables.com/id/Re-purposing-an-Air-Wick-Freshmatic-Compact-i-Moti/step4/Aproach-1B-Digitized-Sensor-Output-Small-Module

Camera
http://www.instructables.com/id/Hacking-A-Keychain-Digital-Camera-for-Arduino-Cont

TI Launchpad
http://processors.wiki.ti.com/index.php/MSP430_LaunchPad_%28MSP-EXP430G2%29?DCMP=launchpad&HQS=Other+OT+launchpadwiki

Craftman Drill
http://www.sears.com/shc/s/p_10153_12605_00917310000P?prdNo=3&blockNo=3&blockType=G3


 

« Previous StepDownload PDFView All StepsNext Step »
61 comments
1-40 of 61next »
Feb 26, 2012. 8:50 PMTGGrimler says:
Could the battery life issue be fixed by gutting some solar powered yard lights and adding a blocking diode? Unfortunately I don't know enough about electronics to know what it would take.
Oct 28, 2011. 5:45 PMrastamouse says:
I have been thinking about doing something like this for along time but all the others i have looked at seem to involve a microprocessor board of some sort so thanks for this simple instructable
Jul 30, 2011. 6:10 PMneetz says:
would it be possible to send me some pictures of your finished circuit?
i think i totally messed mine up and i just wanted to see what i did wrong.

thanks!
Jul 17, 2011. 3:08 PMparkeralton says:
How do you make the runs? sorry, I'm new to this
Jul 3, 2011. 2:53 PMbioyas says:
I'm planning on using the Radio Shack PIR module, which goes high on motion detection. If I read your code correctly, the PIR module you use goes low on motion detection. C isn't my native language. How do you modify that piece of code to change the polarity of the interrupt edge select?
Jul 13, 2011. 6:56 PMbioyas says:
For some reason, I couldn't get the code to work with low to high transitions. I was using the LaunchPad and a breadboard to simulate the camera.

But for future reference, the Radio Shack PIR module produces enough pulses that it works with your original code despite outputting a low-high detection transition.

The one thing I had to do to make it work was add an NPN transistor between the PIR and pin 5 of the microprocessor as a switch. Base to PIR output, emitter to ground and collector (pulled up to Vcc with the 47 k resistor) to pin 5. That's because the output level was about 70% of Vcc, which doesn't seem to be enough to trigger the microprocessor. With the switch added, the system seems to be working fine.
Jul 14, 2011. 12:41 AMbioyas says:
I don't see any rev info on the lens or the pcb, although it's packaged now, so I don't have complete access. The slip of paper that came with it specifies a voltage range of 3.3-5 volts, so perhaps it's a rev B.

Any inversion from the transistor is irrelevant. The PIR module puts out a high level pulse when motion is detected, which returns after a period of several seconds, so for each detection, you get both a rising and falling edge. The falling edge is delayed by the length of the pulse, which for my purposes doesn't matter. So it should work no matter which polarity of pulse edge you set up the MSP430 for. I just couldn't get the low-high transition setup to work at all - not sure why.

The purpose of the transistor switch wasn't to invert the signal, but to bring the high level output of the PIR closer to Vcc. Even with the 47k pullup resistor (external only - I'm aware of the internal pullup option but didn't try it) it only went up to around 1.8 volts when directly connected, which wouldn't trigger the MSP430. The transistor brought the high level up to close to Vcc, and allowed the MSP430 to trigger properly.

So in any case, the code works with the Parallax PIR, provided the extra transistor switch is inserted between the PIR output and the MSP430 input. Further work might result in a simpler solution, but I'm out of time and it's working ...
Jul 4, 2011. 4:18 PMbioyas says:
Thanks! I think I got the Portion#1 but didn't pick up on the Portion#2 part. I'll work it and see what happens. I don't have the camera yet, so I'm still working in emulation and trying to understand the CCS compiler.
Apr 25, 2011. 5:15 AMScelos says:
Hello (Sorry if i'm hard to understood. English isn't my mother langage).
The download link for the code seem to be broken.
It only allow you to download a .tmp file. I don't know for what it's useful. It appear in the link too.

Can you verify the download link?

Thanks (your project interest me).
Apr 22, 2011. 5:56 PMneetz says:
hello,i just have one question.do you have a picture of your wired bread board because i think i messed mine up so i wanted to see how you did it.
thanks!
Apr 11, 2011. 6:43 PMsillywilly says:
Doug,
I just wanted to thank you for this "ible" and for introducing me to the Texas Instruments MSP430-series micro controller at $4.30/shipped each! Who knew a fun and versital little controller could be bought so cheap so I bought several! I am well on my way to collecting all items necessary to complete the motion camera. I also wanted to tell you and audience that I found a cheaper source for the PIR on Ebay if you can wait for it to be shipped from China. It's from seller "hi-etech" and is less than $5 (or offer) called "Pyroelectric Infrared PIR Motion Sensor Detector Module". If you want a PIR with LED lights that can be used at night, there is another ebay source item called the "Infrared PIR Sensor 6-LED Light Lamp Motion Detector" for cost of $4.15/shipped from seller "700store", also from China. Use as is or swap out the LEDs for 850n infrared LED so you don't startle the critters! With the PIR detector mocule you don't hack anything to obtain it. (it's not just the PIR but the whole module!) The other one just needs disassembly. With either one you just give it power and tie the output lead into your "ible"! With your camera sourced at $10, the micro controller at $4.30, and the PIR sourced under $5, that comes to $19.30 which leaves plenty of wiggle room for purchase of project box, breadboard, transistors, etc. One other thing. If you spend just $3.88 over the recommended camera, you save 2/3rds the space making it possible to use a project box 1/2 the recommended size. The cheapest miniature "spy" cameras can be had on Ebay, again from China, for $6.98/shipped plus Sandisk 2gb memory card for $6.88/shipped. Note: by changing to different camera, you may need to modify the source code for the MSP430 and if you do, please post it? Happy snipe hunting!
Apr 1, 2011. 7:07 PMneetz says:
how should i alter it?
thanks!
Mar 26, 2011. 9:08 PMneetz says:
hello , i just started gathering up the stuff for it but i want to know if you have to have that specific camera or could i use a different kind? . thanks!
Mar 22, 2011. 8:50 AMneetz says:
thanks! do you now if you can get it a like radio shack or something because i want to get stared on it today! sooo neet!!!!!!!!!!!!!!!!
thanks!
Mar 21, 2011. 9:20 PMneetz says:
hello, i think this was a great idea! i am going to make this but i do not know where to get the microprocessor kit , could you tell me?
thanks!
Mar 18, 2011. 3:04 PMjosefrancisco says:
Great this is my first time hacking something and I have done well!, I did buy 2 sets of everything so I build at least 1 that will work.

sadly in my house all I have is macs, and that is where everything stops, I kind of followed someone on how to connect the TI chip to my computer, it was futile.

i even downloaded xcode, have no idea of what to do.

sadness!

great project to get my hand wet.

Mar 20, 2011. 12:39 PMataylor5 says:
Hope you find the answer, I'm all Mac as well and I'm dying to try this.
Feb 8, 2011. 6:57 AMsafuuhsaaamam says:
hi everyone
could anyone please show me a way to send the pictures from the camera straight to a computer when they get taken
Dec 19, 2010. 11:08 PMRaisedByRobots says:
for some reason the code will not download... I'll try again tomorrow using a different computer...
Nov 22, 2010. 6:46 AMjvangurp says:
Great project. I just got my Launchpad and have been pondering what to do with it. Seems like a perfect project. How long does that battery last?
Dec 2, 2010. 10:20 AMboingx says:
I agree.
Dec 1, 2010. 7:06 AMRanie-K says:
Here's a non soldering way of doing it: Use motion sensing CHDK script instead of the intervalometer script mentioned in this instructable.
Dec 1, 2010. 9:20 AMboingx says:

I wouldn't want to leave my Canon PowerShot unattended, but your suggestion would be good for the backyard. The resolution would be much better. Since the batteries are on all  the time I wonder how long it would last before dieing. Unless you have a spare, the UV filter used in the waterproof case you mention is going to cost you 4 to 9 bucks. You might be able to use a piece of plain glass.

1-40 of 61next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
30
Followers
8
Author:Doug Paradis