time lapse with arduino need help shorting pins

im trying to build a time lapse setup with my dslr and my arduino
my camera has 3 pins on it if you connect focus to ground it will focus and if you connect shutter to ground it takes a picture

how do i make a program that takes a picture every hour

any help would be apreciated

sorry for my terrible english

Without knowing the specifics of the camera wiring, the best that I can recommend is a small relay for each of the lines. The shutter and focus lines would connect to the NO terminal of each relay and the COMM terminals to GND. The Arduino would control the relay coils. How accurate is the 1 hour requirement? If the timing can be off a ways (several seconds) you can use the millis() timer. If the timing must be very accurate, a real time clock (RTC) will be needed.

Chances are the camera inputs could be triggered with an optocopler between the Arduino for electrical isolation.
(Better safe than sorry!)

NPN optocouplers - collectors to the focus/trigger pins, and emitters to common.
The opto inputs come from the Arduino pins via current limiting resistor (like any other LED).

Bingo.

you mean something like this:

so if i give this thing power it will short pins ?

and about that optocoupler what kind of optocoupler do i need to buy for this do i need to watch out for any specific things when buying theseto be compatible with an arduino?

thanks for your replies

Two of those relays would work, although kind of overkill. It has the driver and flyback diode (required with any relay) plus an indicator LED. I was thinking of a small reed relay that could be directly driven by an output. Coil current of less than 30mA (greater than 200 ohm coil resistance). Like this reed relay. Addd a 1N914 or 1N4148 flyback diode.

Some info on optocouplers

optocoupler tutorial