Академический Документы
Профессиональный Документы
Культура Документы
Time-Lapse Photography
by randofo on February 5, 2008 Table of Contents Time-Lapse Photography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Intro: Time-Lapse Photography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Step 1: Go get stuff. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Step 2: Open the case. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Step 3: Press my buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Step 4: Socket to me. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Step 5: I'm sticking with you . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Step 6: Close the case. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Step 7: Relay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Step 8: Plug and play . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Step 9: Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Step 10: Try it out . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 2 3 3 4 4 4 5 5 6 7 8 8
http://www.instructables.com/id/Time-Lapse-Photography/
Author:randofo
Randy Sarafan loves you! I am the author of the book '62 Projects to Make with a Dead Computer' and Community Manager here at Instructables. I'm always sharing tons of awesome projects. Subscribing to me = fun and excitement!
http://www.instructables.com/id/Time-Lapse-Photography/
http://www.instructables.com/id/Time-Lapse-Photography/
http://www.instructables.com/id/Time-Lapse-Photography/
Step 7: Relay
Take your relay and solder wires to each pin. The color doesn't matter too much.
http://www.instructables.com/id/Time-Lapse-Photography/
Step 9: Programming
Now is time to program the Arduino and test your setup. Follows is my code: /* Time-Lapse Camera Controller -----------------* Hits a camera shutter at a set interval for time-lapse photography. The rate of the delay can be manipulated for unique effects. * Created 5 February 2008 by Randy Sarafan http://www.randysarafan.com * */ int camPin = 7; // sets the camera shutter pin int stupidvar = 30000; // sets the delay between pictures void setup() { pinMode(camPin, OUTPUT); // defines pin as an output } void loop() { digitalWrite(camPin, HIGH); // presses the button delay(5000); // waits digitalWrite(camPin, LOW); // release the button delay(stupidvar); // delay between pictures // stupidvar = stupidvar + 1000 // increments delay by one second for unique effect. }
http://www.instructables.com/id/Time-Lapse-Photography/
http://www.instructables.com/id/Time-Lapse-Photography/
Related Instructables
Comments
50 comments Add Comment view all 77 comments
Ryutso says:
So how's it work? Turn the Arduino on, Turn the camera on and it just starts snapping pictures like mad?
randofo says:
Nov 27, 2010. 9:34 AM REPLY Pretty much, the Arduino just keeps running at whatever interval you set. Simply connect them together and turn them both on.
purpulhaze says:
Oct 13, 2010. 7:07 PM REPLY I followed your instructable but I don't think it's stable. For some reason when I set the picture delay more than 30000 it's acts sketchy. Even if it does work eventually will not stay sync. Can you tell me whats going on here?
randofo says:
What do you mean by acts sketchy or won't stay sync? There should be no problem with setting it over 30 seconds, as far as I know.
If the delay is too long for some reason, you could try making a for loop that delays the chip for 1000 milliseconds at a time and then have that repeat for as many seconds as you need it to wait between pictures.
purpulhaze says:
Oct 14, 2010. 3:07 AM REPLY Maybe there's something wrong with my arduino. At first when I set to 75 seconds it worked for maybe 10 or more minutes then for some reason would end up eventually triggering every 10 seconds.
tinstructable says:
instead of using an arduino, couldn't you use a 555 timer?
http://www.instructables.com/id/Time-Lapse-Photography/
randofo says:
Sure.
ChickenGrylls says:
Jul 9, 2010. 3:40 PM REPLY I made this Instructable and it's totally awesome. I too (like someone else in the comments) used this for Kite Aerial Photography. I want to make the rig lighter though and get rid of the Arduino board and it's powerpack. Could I use a 555 timer chip and leach power off the camera? I know this is plausible. I just have no idea how to begin!
randofo says:
They do this in an old volume of Make magazine. http://blog.makezine.com/archive/2006/03/how_to_kite_aerial_panogr.html
Single-Use Digicam for Kite Aerial Photography by Limor Fried in DIY: Imaging. A simple, lightweight timer circuit triggers a shot every minute. MAKE 02 - Page 130.
Rmal says:
source for the 5v relay?
randofo says:
Radioshack or Jameco.com
p13m4n says:
This is very wasteful for what it is - why not just use a 555 timer?
randofo says:
Why is it wasteful?
smb says:
Dec 20, 2009. 10:06 PM REPLY Nice Thing A Day. I didn't see this tutorial and inadvertently rediscovered the technique when hacking around with $10 keychain cameras from drug stores. So, if you don't mind me cross-posting: For folks who see this who are hesitant to break open their fancy cameras, you can do pretty much the same procedure with an off-the-shelf keychain camera by following along with my Instructable here: Hacking a keychain digital camera for arduino control That said, I opted for transistors and not relays - in part because I was less worried about messing up the camera if I didn't get the levels right. ;)
Now that I've seen this, you've given me the courage to find a really nice camera cheaply and see if I can't crack it open to do the same thing with a relay. (I probably wouldn't have had the guts to try it if I hadn't seen you do it here. :P) Thanks! :)
ReCreate says:
Why Isn't this featured?
Dandeman321 says:
May 19, 2009. 8:42 AM REPLY What is the relay for? Is it to create a large enough voltage for the camera's switch to be tripped to make the camera take a picture?
randofo says:
May 19, 2009. 9:09 PM REPLY The relay is so you can trigger the camera's switch using a micro controller circuit that is electrically isolated from the camera's circuit. Basically, it allows you to use one circuit to control another without their separate power supplies ever meeting.
Dandeman321 says:
Ahh Ok Ok. Makes sense. Do you need the relay? could you do this without it?
ReCreate says:
Well, The relay is like the ardurino's "capture" button...So it is necessary...
http://www.instructables.com/id/Time-Lapse-Photography/
Dandeman321 says:
May 20, 2009. 3:36 AM REPLY Yeah I understand that, I was just wondering what the relay was needed for? Doesn't the microcontroller put out a 5 volt high? Isn't that enough for it to trigger the camera button?
andrew101 says:
Aug 15, 2009. 5:36 PM REPLY see that isnt really the issue. the camera button is pressed by closing the curcuitbetween those 2 points. the way it does so will vary from camera to camera. and you would risk damaging the camera to apply more voltage to it in some cases. if you really cant find a relay, it would be possible with an NPN transistor i added a picture
Dandeman321 says:
Thanks! I'll have to check it out. I may be getting a broken camera soon. May try this.
andrew101 says:
Aug 15, 2009. 5:38 PM REPLY you would need a multimeter to test wich way the voltage is trying to travel. and this would work similar to a relay. when a voltage is applied it allows current to go from the collecter to the emitter. note, you need to add a resistor between the base and the 1/0 pin, otherwise you risk burning out the pnp transistor.
randofo says:
May 20, 2009. 3:19 PM REPLY The camera is operating on 2 AA batteries at 3V. I didn't want to try sending a 5V signal into what is probably a 3V circuit. It's just easier to keep them separated.
ReCreate says:
Wow, this i great, I don't see Why it is not features, I understand everything, Even the Code, For once :P
kholdsworth27 says:
did the camera have any problems auto focusing? good work on all fronts
randofo says:
No, but I never shot anything close/small enough where that would really become an issue.
Radioactive_Legos says:
May 24, 2009. 12:50 PM REPLY If you didn't want to modify your camera, couldn't you put a servo into +5V, Ground, and one of the PWM-supporting digital pins and then have the servo push the button? I am hoping to pick up an Arduino Duemilanove at the Maker Faire this upcoming weekend and want to try this without sacrificing an innocent camera :-)
randofo says:
May 24, 2009. 11:27 PM REPLY You should be able to trigger it with a servo how you described. However, you would have to reverse the motor polarity for it to let go of the button and the response to do this will be relatively slow. Stop by the Instructables booth!
Radioactive_Legos says:
May 25, 2009. 9:06 AM REPLY Thanks! Will do! One more question: is it critical to "press" the button for 5 seconds, like your program shows? Could it be for less time, say 500ms? Thanks again!
randofo says:
May 25, 2009. 3:26 PM REPLY 500 ms might be a bit short. I forget what the exact timing is on my camera, but you can get an idea of what will work for your camera by pressing down the trigger and counting until it takes a picture. If it's a Canon camera, check this out: http://chdk.wikia.com/wiki/CHDK_in_Brief
http://www.instructables.com/id/Time-Lapse-Photography/
halfblinddado says:
This is great I made something similar and used it as a kite camera (Kap) http://forums.parallax.com/forums/default.aspx?f=21&m=331526
jhorton says:
Jun 9, 2008. 2:14 PM REPLY Dumb question, but what part number did you use for the relay? Or what search terms can I plug into Mouser or Digi-Key? They have a bazillion different relays with vague or cryptic descriptions. Thanks!
randofo says:
Jun 9, 2008. 5:47 PM REPLY It would be easier to just go to Radioshack and buy a 5V reed relay. You'll spend more on shipping costs than the relay buying it online.
jhorton says:
Jun 10, 2008. 8:53 AM REPLY Well, there is a Radio Shack next door, but since I'm planning on placing a big order with Digi-key soon, figured I could add a few relays to my order.
Derin says:
You could try searching for "5V reed relay"
randofo says:
Dec 29, 2008. 12:15 PM REPLY That's not me. And yes, yes she does. We actually might cut most of her hair off tonight as over the course of the last month it has turned into a untangleable mess. Instructable to follow (she willing).
firehazrd says:
Dec 28, 2008. 9:15 PM REPLY This is a cool project I'd like to build. There are, however some problems that could probably be addressed. I would like it to be much slower maybe once an hour over a period of days. Most cameras turn off automaticly after a few mins. Maybe I could add a second relay for the power switch and add some code to turn the camera on first and off when done. This would also help save battery power. Can't wait to get my boardino in the mail so I can start playing.
randofo says:
Dec 28, 2008. 9:21 PM REPLY When I used this, I wired a DC transformer onto the battery terminals and powered it off the wall. A second relay hooked up to the power button sounds like it should do the trick if your camera turns off by itself.
fkuk says:
how to you expect the battery to last a long time?
randofo says:
Dec 4, 2008. 3:27 PM REPLY I did not expect them to. When I actually used this to make time lapse videos I hard-wired the battery terminals to a standard 3V wall transformer (not shown).
randofo says:
You could also use the 3V source from the Arduino if you have a deicimilla
Newblit says:
Nov 12, 2008. 9:46 AM REPLY I wonder if you could use the digital cameras drugstores sell that are disposable, then use the hack to take infinite pictures with them or however many you can store and then use it with your post that would be really cool.
keefurxxcore says:
I am attempting this with a kodak c340, with a change to D battery. Will post when I'm done.
http://www.instructables.com/id/Time-Lapse-Photography/
therandomperson says:
Very good instructable! 5/5
mortaldoom780 says:
Can this be done with a TIP120 Darlington transistor? 2N222 transistor? 2N3904 transistor? Thanks
randofo says:
Apr 27, 2008. 4:17 PM REPLY You could probably use some sort of switching transistor. At the very least, it probably won't hurt too much to try. If you did it that way, you would probably just need to take note of the polarity of the switch... and also, you probably need to share ground... Relay would the easiest.
collard41 says:
Aug 13, 2008. 4:24 AM REPLY the darlington transistor and and the others would 'amplify' the current and might damage the circuit if you got the voltage wrong. a relay would simply act as a switch and it would not matter if you got the voltage wrong
http://www.instructables.com/id/Time-Lapse-Photography/