Simple PIR DSLR Camera Trap





Introduction: Simple PIR DSLR Camera Trap

The biggest problem I have capturing images of wildlife is not getting close enough to the subject. I never have enough time to sit and wait for them to come to me or they are easily spooked, and fly away at the first sign of movement. Using an simple, widely-available PIR motion sensor, I can leave my DSLR in the yard to capture images while I run errands, cut the grass, or even leave it out overnight.

Step 1: What Is a Camera Trap?

The Simple PIR Sensor DSLR Camera Trap uses an industry standard PIR sensor to send a signal to a DSLR camera to fire the trigger when it detects motion. I have access to Canon cameras so this Instructable is specific to Canon DSLRs with an N3 connector or stereo connector, but this will work with all DSLR cameras that have a shutter input port. A PIR sensor is what is commonly used in home security motion detectors. Instead of tripping an alarm, we are going to use the PIR sensor to fire a camera.

This Eastern Bluebird was fairly predictable on where he would land, only if the yard was free of people. By placing the Simple PIR Sensor DSLR Camera Trap aimed at his perch, I could set up the sensor, set focus, exposure, shutter speed, and ISO on the camera, and walk away. This image was captured at distance of 10' allowing for greater detail and a pleasing background blur.

Step 2: Materials and Tools

To make this project, you will need the following items.


  • soldering iron
  • glue
  • multimeter
  • drill

Step 3: Canon N3 Shutter Cable

Canon uses a propitiatory cable to its high-end DSLRs for remote triggering. Ebay and Amazon are full of remote shutter release cables that you can modify for this project.

  1. Remove the screws on the shutter release cable plastic case
  2. Remove the screws holding the motherboard in the case
  3. Remove the motherboard form the case.
  4. Desolder, cut, or otherwise detach the cables from the motherboard
  5. On this cable, we are interested in the Red (Photo) and Yellow (Ground) cables, as shorting these cable, or touching them together, will trigger the camera. Other shutter release cables from different manufactures use different colors. Most boards are labeled.

The shutter release is basically a couple of contact switches. Connecting the focus pin to ground and the camera will focus, while connecting the shutter pin to ground and the camera takes a picture. For our camera trap. we will create a switch to connect the ground pin to the shutter pin to take a picture when motion is detected. We could do this directly to the camera, but if something goes wrong, you can damage your camera, so make sure we use an Optocoupler described in the next step.

Step 4: Getting to Know the Optocoupler 4N26

Pin Numbers

Locate the circular notch on the Optocoupler, this is is the Pin 1 indicator. Use the Optocoupler diagram to reference the pin numbers.

What does it do?

The PIR module OUT pin is connected through a resistor to an Optocoupler 4N26 that closes the circuit of the camera when motion is detected. An Optocoupler is a digital switch that uses LED emitters paired with a photo detector transistor. This means that you can use them to isolate the battery and PIR sensor from the camera connection without having any electrical contact between the two circuits.

Do not connect the PIR and battery directly to your camera.

Step 5: Building the Simple PIR Camera Trap


Follow these steps to complete the Simple PIR DSLR Camera Trap. Use the fritzing diagram as a reference.

Note the the PIR sensor's specs require 3-5VDC power. Whichever battery pack you use, make sure the volts are between 3-5VDC.

  1. Connect the positive (+) pin on the PIR sensor to the power wire on the battery pack
  2. Connect the negative (-) pin on the PIR sensor to the ground wire on the battery pack and then to Pin 2 on of the Octocoupler.
  3. Connect the signal or OUT pin on the PIR sensor to a 220 resistor and then to Pin 1 of the Octocoupler
  4. Connect the ground wire of your shutter cable to Pin 4 of the Octocoupler
  5. Connect the postive (+) wire of your shutter cable to Pin 5 of the Octocoupler.

Step 6: Using the Simple PIR Camera Trap


Consider where you want to place your PIR camera Trap and determine the best settings for your location and lighting.

  1. Position the sensor where you want to capture an image.
  2. Use something that you can pre-focus the camera and then set lens to manual focus.
  3. Make ISO, TV, and AV adjustments
  4. Connect PIR camera trap to the camera
  5. Test that it is working BEFORE leaving.


Get down on the ground and stick your face where you think the animal will be and take a sample picture to test your camera trap. Then go check the camera and confirm that focus is sharp, camera settings are correct, and that everything works. So many things can go wrong with a camera trap: low batteries, loose connections, out of focus subjects, bad lighting, and the list goes on and on. I've lost more great images than I've captured. Also check the weather, if your camera trap is not weatherproof, make it weatherproof or bring it inside.

Step 7: Finishing Touches

You will want to enclose your electronics in a weather-proof enclosure if you are using it outside. I'm constantly modding my cases, but Radio Shack project cases and Harbor Freight ammo cases are great starting points. Pelican cases and even Tupperware cases are great for Simple PIR DSLR Camera Trap photography.

I usually place my sensor on paths, trails, or logs where I pre-focus the camera. I don't want movement from outside the path to trigger the sensor, so I added a tube to the end of the sensor so it picks up movement directly in front of the sensor. I started using toilet paper holders, then found some plastic tubing that is weatherproof and keeps the sensor out of the way.

Nighttime images require the use of off-camera flashes or strobes that are beyond the scope of this Instructable.

Step 8: Sample Images

The Simple PIR DSLR Camera Trap allows me to capture images that otherwise would be impossible for me to capture. These images are captured in the early morning hours where I'm sleeping and the critter is comfortable enough to cross through my sensor. If I was physically there waiting for these images to happen, I'd still be waiting.

Sensors Contest 2017

Second Prize in the
Sensors Contest 2017



    • Make it Move Contest

      Make it Move Contest
    • Woodworking Contest

      Woodworking Contest
    • Oil Contest

      Oil Contest

    We have a be nice policy.
    Please be positive and constructive.




    Every time i try to make this with the opto, i cant get the signal from the output pins :( I tried with 4N26 and 4N25. I see this is very simple sketch, but i dont know why i cant get the outter circuit closed :(

    What is the battery life like with the 3 AAs? Is it possible to use a large battery holder to extend the lifetime?

    Beautiful. One point though, why would someone need an SLR (Single Lense Reflex) when there is no one to watch through the viewfinder?

    3 replies

    Better quality images.

    A camera being DSLR does not mean better quality it only means that the camera is digital plus it shows same image through viewfinder that it captures through lens.

    Better Quality is by the pixel and contrast rating of that camera.

    Better quality is mostly a function of the glass.

    You could do this with a point-and-shoot if it had a compatible shutter release interface. At ten feet you'd still need decent focal length and, for the blurred background, a large aperture.

    Or you could call it "automated National Geographic reporter" :D

    Brilliant idea and stunning implementation!

    good luck with the contest!

    great idea and brilliant photos i am going to try this

    you have my vote!

    I forgot to add my thanks for posting this tutorial. I only wish all of my old lenses for film would work on digital camera housings. I've just finished setting up a trail camera, so I can catch the antics of a pine squirrel, as it uses the feeder I made. I had to modify the feeder by adding swinging doors to block birds from eating all of the food.

    Thanks! I've never heard of a PIR before. This is fascinating.

    Oops... Your material list shows a 3 AA battery pack, equaling 4.5 VDC, but the photo indicates the pack is 8 AA's, equaling 12 VDC.

    1 reply

    Fixed. Thanks for noticing.

    I love the shot of the raccoon - wonderful work, thank you for sharing.

    I only work with Canon cameras, but as long as you have a method to trigger your Nikon with a cable, you should be able to use this Instructable.

    Super project. I will have to try this. One camera only has a wireless remote. Any easy way to make this circuit operate that remote?