trying_to_build:
Hello,
I have a general feasibility and further "how to" questions regarding a project I am trying to complete. The general goal is to use a humidity/temperature sensor, and when there is a change in either reading to trigger the camera to fire.
Is it possible to use a humidity sensor in this capacity?
Thank you,
dawn
It depends on the camera, but in general, the answer is yes.
If your camera has an electronic shutter release that fires the camera, you can use two opto-isolators to complete the 2 circuits on the electronic shutter release. Most electronic shutter releases have 3 wires. One is a common ground, and if you connect the ground to one wire, it acts like 1/2 press of the shutter button on the camera, and the camera would typically focus. If you connect the ground to the other wire, it fires the shutter. Some cameras need both the focus and shoot wires to be connected to ground to shoot, while others only need the ground connected to the non-focus wire to shoot.
You can buy cheap ebay clone shutter releases that you can hack up, or you can get the cables for the Cactus V5 shutter release for your camera, and those cables have the camera specific cable on one end, and a 2.5mm 3 connection phono cable on the other end. You can get cable mounts for these cables at places like Radio Shack that have the female end, and you can solder 3 wires to bring out the 3 connections.
Various people have used the Arduino to control a camera, including: http://yourduino.com/camera-control.htm
Many older cameras supported an infrared shutter release. If your camera does, you could put an infrared LED on the arduino, and figure out which sequence to use from the IR control library: http://sebastian.setz.name/arduino/my-libraries/multi-camera-ir-control/
Unfortunately, if your camera does not support an electronic shutter release, you would need to rig up a servo to press the button. If you wanted to shoot movies, some cameras (like my recent Olympus cameras) will not use the electronic shutter release to start/stop movies, and you would need to use a servo: Ryosuke's Projects: Remote Shutter Release.
Another method if you don't care about voiding the camera's warranty, is add your own electronic release to cameras that don't support electronic shutter releases: http://www.instructables.com/id/Time-Lapse-Photography/step3/Press-my-buttons/
There are other methods as well, but a lot of these involve fairly complex setups. Some cameras can be controlled via USB tethering to a computer, and in theory, a Leonardo or Due might be able to fire the camera if you know the protocol. Some cameras can be controlled via wifi, and in theory using a wifi shield could trigger the camera if you know the protocol. On some Canon cameras, you can replace the firmware, and add custom support.
I would suggest you put in a threshold for the change. You don't want the camera to be firing off if the analog sensor cycles quickly between two values (i.e. one time AnalogRead returns 53 and the next it returns 54).
If you have a camera with lots of controls, you typically would want to manually focus the camera, and perhaps set aperture and/or shutter speed .
If you were doing high speed photography like balloon popping, you typically don't want to fire the camera because it is too slow, but put the camera in a dark room, and have the camera in bulb mode where the shutter is open, and then you have the Arduino fire off a flash to take the picture. The flash is much faster than the camera, and the flash pulse will stop the action.
Note, if you are doing this for a long period of time, many cameras batteries won't last that long. Ideally you would want a camera that can be externally powered.
There are two companies that produce Arduino shields for doing the setup (or full fledged boxes with Arduinos inside, but those are rather pricy):