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.

Hacking A Keychain Digital Camera for Arduino Control

Step 5Hook the Camera to Your Arduino

Hook the Camera to Your Arduino
«
  • IMG_0867.JPG
  • IMG_0869.JPG
  • IMG_0870.JPG
  • IMG_0871.JPG
  • IMG_0872.JPG
  • IMG_0876.JPG
  • IMG_0878.JPG
  • IMG_0882.JPG
  • last photo ←
»
Now it's time to start hooking your camera up to your Arduino.

First, load some code that will control the camera to the Arduino.
Below, we've uploaded/attached some sample Arduino code that we've used here in order to take time-lapse photography. The code will turn the camera on, take a picture, and then delay for a full minute (during which time the camera will automatically power off) before powering back on and taking another picture - repeating this for twenty photographs (the capacity of my first hacked camera.)

Now, let's hook your Arduino to your camera.
First, a bit of explanation: to control the camera fully, our code takes two digital output pins and map one to the on switch, and another to the shutter switch. When the code wants to turn the camera on or off or switch modes, it briefly holds the camera on output pin high - and when the code wants to take pictures, it holds the camera shutter output pin high. This action is translated to the actual pressing of the button by turning a transistor on and off, which is in turn connected via our camera wires to the switches on the real camera. The grounds of the camera and the Arduino are linked to give the Arduino and external camera circuits a common ground, allowing the transistors to work properly.

Take two wires to connect these two output pins (camera on and camera shutter) to different lines on the breadboard. Then, connect the base pin of a transistor to each of the two outpit pins. Finally, connect your two wires for each corresponding switch from your actual camera to the other two (collector and emitter pins) of the transistor. You may have to experiment with which wire goes to the collector and which goes to the emitter in each pair; which is which will depend on the internal wiring of the specific camera you're hacking.

Finally, **and this is important**, take your ground wire from the camera and plug it into the ground pin on the Arduino. This is necessary for your transistors to work and thus for your camera to respond to your arduino!

« Previous StepDownload PDFView All StepsNext Step »
2 comments
Feb 17, 2010. 5:15 PMEmptyFlash says:
For some odd reason I can't view the pde file. I'll try to make one on my own though.
Mar 1, 2010. 4:57 AMmarthaaa says:
 i also can't view the pde file. can you help??????
Mar 5, 2010. 2:30 PMzoltzerino says:
 I'm guessing your problem it that it downloads as a .tmp?

You need to change the extension of the file once it has downloaded to a .pde and open with the Arduino developing environment.

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!
6
Followers
2
Author:smb(Biskerrific.com)
I'm a technology designer currently studying Tangible Interaction Design at Carnegie Mellon University. I'm particularly interested in applications of technology to cities, on the go, and generally in...
more »