Some years ago, I had the opportunity to create a camera trap based on an Arduino board. The goal of this project was to capture photos of wild animals, and to have fun with electronics and programming.
At the time, I created a website in html, to present the project; but I can't find the source code anymore... That's a shame.
I will try to present this old project again, hoping that it may interest someone.
## Principle
A commercial automatic camera is usually based on a heat sensor (infrared sensor), and takes pictures when it detects movement.
These sensors are similar to the presence detectors that can be found in public toilets, for example.
The project consists simply in using an infrared motion detector (PIR sensor) to trigger the shooting, performed by a digital camera.
The interface between the camera and the sensor is the Arduino board (in my case an Arduino UNO).
## Hardware
- Arduino UNO (or other programmable board, with inputs / outputs)
- Infrared sensor (PIR sensor)
- Spy Camera (here an AdaFruit Spy Camera) with slot for SD card, and connectors for the trigger and the power supply
- SD card
- RTC shield for Arduino (optional but useful to record the date and time of the shots)
## Assembly
The assembly is very simple. The PIR sensor output is connected on the pin 3 of the Arduino board, where the VCC (+5V) et GND (ground) are also connected to the board.
The camera trigger is connected to the pin 4 of the Arduino board, and both the VCC and GND are connected to the board as well.
We can use a 9V battery to power the Arduino board, and the camera, with an adapter. (This way, the system can be autonomous for some hours).
Warning, it is important not to connnect the spy cammera to the computer when it's powered by the Arduino; else it will burn... (I made this mistake, and I had to buy a new camera).