Skip to content

DIY intervalometer based on Arduino

..the making of Intervallino..

I would like to share with you my Intervallino project with all the steps and details it involved. When I started looking for similar projects on the web I found extremely useful to have a look at either the circuit schematics or snippets of code or even soldering videos!

For this reason I try here to be the most complete and precise that I can, so to give some hints and ideas to anyone willing to make a similar project.

That said, I assume one has some basic electronics knowledge and is not too afraid of writing a program… Indeed, this is not a manual on electronics nor an arduino programming tutorial but, as the title says, just a detailed “making of” ;)

Part 0 (prerequisite): Motivation

I have seen many beautiful time-lapse photography in the last times (e.g. The mountain or Mountain Light  to name just two of the most inspiring) that I wanted to humbly approach this ‘art’ as well. (Un)fortunately my camera (a Leica V-Lux 1) has no intervalometer possibilities built-in but only a jack for an external remote. So I thought I would build one with the features I would like to have.

I thought a do-it-yourself (DIY) intervalometer would perfectly fit as my first electronic project since it would merge many things I like – photography, electronics and programming – into a compact, portable, box!

Part 1: Is it doable?

So, the first thing is to make sure the project is actually doable! This essentially means to find out what is the correct signal the camera expects from the input jack to either focus or shoot. Once found, it would be just a matter of using some electronics magic to take care of the timing.

Googling around I found that most remote shutters have a simple resistance circuit to control the focus/shoot but I did not find any specifics for my camera model. So I preferred to buy an extremely basic and cheap remote for my camera on ebay and reverse-engineer it. As a bonus, the remote came with a pluggable 3.5 audio jack which I could use putting my intervalometer in series in case I also need a manual shot overriding the intervalometer. Essentially, the schematics would be the following:

where the remote looks like this:

that said, the rest is crafting :)

Part 2: Feature wish list

This is the nice step where you just think and write down a list of additional (reasonable) features you would like to have.  After disposing the most useless and impracticable, my list turned out to be as follows:

  • set sec/min/hours interval for photos (!)
  • optional focus before shooting
  • different conditions to start (timer, light threshold)
  • possibility to shoot on sharp light changes (think of lightnings..)
  • be conveniently reprogammable (in case of bugs or new features)
  • use either batteries or plug for indoor use
  • have a simple and nice interface (LCD) with a navigating menu with possibility to switch off for battery save
  • small number (4) of press buttons to navigate the menu/set the values
  • be small / light enough to fit in a (jacket) pocket to be carried around
  • minor cheap, fairly useless, goodies (a buzz for  beeps,  a thermistor for measuring the temperature..)

Part 3: What do I need  for that ?

The brain

Many DIY intervalometers I have seen relies on either an Arduino or its ATmega328 chip. Arduino is very easy to use and gives a lot of options for all the features I had in mind, moreover it has a large community, development tools, it is open… and made in Italy :)

So I ordered my first Arduino UNO board, an electronic starter kit (with LEDs, resistors, transistors..) and programmed a first bare version of the software to make a simple proof of concept test:

Arduino UNO board 

I quickly realized a whole Arduino Uno board with a LCD shield would be far overkilling for the project, and I preferred to stick to a more minimal ATmega328 microcontroller and a 16×2 LCD.

So to use the ATmega328 microcontroller as a standalone (or bare arduino) one has to supply some basics electronics: a crystal for the timing and capacitors.

  • 1 x ATmega328 microcontroller (with arduino bootloader)
  • 1 x DIP socket (to avoid burning the chip upon soldering it)
  • 1 x 16 MHz crystal
  • 2 x 22 pF radial capacitors

The display

I opted for a 2 lines, 16 characters per line type giving me enough room to display some human readable  data (words and sentences!):

  • 1 x LCD 16×2 with HD44780 chipset (to directly use the Arduino LCD library)
  • 1 x 100k variable resistor (to manually regulate the contrast)
  • 1 x npn BC547, TO92 transistor (to switch power off)
  • 1 x 10k resistor (to reduce the transistor base current)

The power

I wanted the device to be both independent of an external power source (in case of outdoor use) but also able to be powered and reprogrammed through a USB cable. So I chose a standard 9V battery which has to be regulated to supply the 5V for the chip together with the very convenient USB FTDI cable. This cable already contains the circuitry to convert the USB signals to TTL serial UART interface as used to communicate with the ATmega328 chip (we have to keep in mind to reserve the RX/TX ATmega328 pins for that). Summing up, the components used for these tasks are:

  • 1 x TO92 5V voltage regulator
  • 2 x 10uF capacitors
  • 2 x 100nF capacitors
  • 1 x LED
  • 1 x 220 resistor
  • 1 x diode
  • 1 x 9V snap connector
  • 1 x commutator (to switch between power sources:battery or USB)
  • 1 x USB to UART cable TTL-232R-5V (ends with 6 pins, spaced 0.1″, on a single line)

The functional parts

So here are the components that actually do the Intervallino work:

  • 2 x npn BC547, TO92  transistors (used as switches)
  • 4 x 2.2K resistors (to output the correct current)
  • 1 x plug-jack cable (to plug into the remote)
  • 1 x electronic buzzer (to make some beeps)
  • 1 x 10K thermistor (to measure the temperature)
  • 2 x 10k resistors (for the thermistor)
  • 1 x photoresistor (to measure luminosity)


Finally, to connect the components, to interface the device with the USB connector and to interact with it:

  • some single line male-male pins
  • some wires and female-female connectors
  • 4 x push-buttons
  • 1 x nice containing box (I used a spare iPod transparent case)

I should also mention that I first used a bread-board to test the circuit. I highly recommend this step that ensures the circuit is properly designed and the various components are all working.

To make the project permanent I then used a stripboard together with a resin core solder and a 30W soldering iron.


To design the circuit, design the menu, write and transmit the code and make the project fit in the case I used in order the following tools:

Where to buy – costs

I bought the tools and the electronic components at different times and in different shops (both online and in retail stores) depending on the availability and cost of the single component. Overall, I spent for the project about 50 eur (65 $) distributed over these shops: Sparkfun, Cooking Hacks, Electan and RS. Half of the cost comes from one single component that is the USB-FTDI cable (24 eur). I counted it as part of the project even if it is not necessary, strictly speaking, and it is usable for any other project (you can use a battery for power and directly plug the microcontroller on the arduino board if you need to update the code without this convenient cable). The second most expensive component is the LCD (7 eur), all the remaining are well below.

Part 4: Designing the circuit

After trying different softwares (gEDA, Fritzing), I eventually found that the trial version of the EAGLE software is what I was looking for: easy to use, largely adopted, large component library, possibility to switch from circuit schematics to PCB layout with a simple click, easy and fun to route the connections in the PCB layout, and moreover it is free! The only limitation for the free version is in the size of the circuit one can design. But in this case, this was not a problem!

As you can see, I left all the I/O (buttons, LCD, thermistor, photoresistor..) as separate pluggable devices to have more freedom during assembly (since I still did not know what would have been the final case).

Part 5: Designing and writing the code

With the hardware features set, what remains is the second half of the project: the software that runs in the electronic veins :)

After some thinking, I convinced myself that I needed a navigating menu and at least these 4 different operating modes:

  1. input mode: set the various options
  2. confirmation mode: sum up the settings and wait confirmation
  3. running mode: change the output resistance according to the settings (to focus/shoot) and display the progression (number of pictures taken so far, time to next picture)
  4. end mode: inform it is finished, display the total number of picture taken

The input mode is by far the trickiest one and the one that requires most coding, the others are fairly trivial since they require small or none user interaction being mostly informative. In fact, during input mode, Intervallino has to display the correct information depending on where we are in the menu, wait for the button inputs and respond to them accordingly.

So first thing was to think and design the menu for input mode, I did it using the open source vector graphics editor inkscape:

To each menu window I associated an identifier (called G_menu_id in the code and showed on the top left corner of each window).

As an example if G_menu_id=1, the LCD should show the first and second line of the 01 menu (Home), if G_menu_id=2 the second and third line of the same menu. G_menu_id=142 should show the third and fourth line of the Backlight menu and so on.. To allow for future rearrangements I left some room between menu indexes.

Some options are shown but actually not implemented (shot on clap and battery stat..).

Once the menu is set, what remains to be done is to learn (through examples found on the arduino website) what are the basics of programming the ATmega328. I used the ATmega328 microcontroller with the Arduino bootloader already burned so that the Arduino IDE would smoothly take care of compiling and uploading the code to the chip.

The Arduino programming language is in fact C  with some restraints and some special built-in functions to deal with the hardware. Fortunately I am already familiar with C so it wasn’t too difficult to understand the logic and program it: instead of a main() function, a setup() function is called at each power up and a loop() function is then repeatedly called.

Cleared these points, it was finally time to dive into the code! Opened my favorite editor (gVIM), I began to code keeping in mind that I was limited to 32KB of total memory (bootloader+code+data for the ATmega328 microcontroller).

Here you can find the entire working code with some comments (1600 lines). It is not optimized and surely many things could have been done better.. but it works and for the time being I think it is fine!

Once uploaded it using the Arduino IDE to the microcontroller, I was ready to give it a try!

Part 5: The breadboard tests

I first made a breadboard circuit to test it thoroughly together with the software. Here are a few snapshots of the process.

All the components that I used:

What I call the keyboard is a small standalone soldered circuit that I made beforehand to practice with soldering (also because the buttons did not fit into the breadboard, so I had to have them somewhere else!). It contains 4 push-buttons and 4 resistors connected as shown in this circuit schematics:

In so doing, I only need 2 analog inputs (called A2 and A3) instead of one per button. One can do it better (just one analog input for all of them) but I could afford an extra analog input so I preferred to go the easy way!

Then I finally built the circuit:

and tested it in series with the remote and the actual camera:

so far, so good!

Part 6: Making it permanent

First of all, we have to transform our circuit schematics into an actual PCB layout. Of all the steps, probably this one is the one I mostly enjoyed. It is like playing a puzzle and it is almost fun! In essence one has to fit the components following these guidelines/constraints:

  • use smallest room possible (to fit the case)
  • position the connection pins for power cable, photoresistor and commutator near the edges for easy access
  • exploit the stripboard nature at a maximum while minimizing ad-hoc wired connections (i.e. maximize horizontal connections over vertical ones)
  • respect component sizes (no clashes!)
  • respect circuit schematics (obviously..)
  • make it esthetically pleasant (as a plus :) )

I have to say that the EAGLE software really helps you to accomplish all these positioning/routing tasks. After many versions, here is the resulting PCB layout:

The blue horizontal connections are taken care by the stripboard, the vertical ones are wires that have to be soldered. The green crosses are breaks along the stripboard connections (obtained manually enlarging the holes, see below).

Next step is to cut the necessary stripboard by overlaying the printed layout (in actual size) to the board. I did it using a bisturi and for sure it is not the best method as I pained doing it (but I had no other tools..).

Then I marked the holes that have to be enlarged to break the horizontal connections:

This is the result:

Then turned upside down the board and enlarged them. It is very important that you test each one with a tester to check if you correctly break the connection! Do it before soldering any components otherwise it becomes complicated..

In the next step, I created all the necessary connection wires that will be soldered as vertical connections.

and soldered them:

then I inserted the resistors and soldered them as well:

finally, I inserted all the remaining components:

and soldered them:

here is the final circuit:

now I have to make the appropriate holes through the case (for buttons, plugs..) :

This was the most painful step because I did not have the proper tool (a drill):

Finally, I could insert the plug cable and solder it to the PCB:

I forgot the photoresistor hole..:

And finally, after connecting the display and closing the case, here is the final Intervallino:

Part 7: A demo

A short video of the Intervallino at work:

Demo of the shoot on flash feature:

Final notes

Realizing this project took me several months of fun, working on it an average of 3-4 hours per week. I learned a lot and I am sure many things could have been done better, but overall I am satisfied and I think the time was worth spent in designing, planning and testing it since afterward everything rolled out incredibly smoothly!

That’s all folks! I hope you enjoyed and found it useful! Any comment, suggestion, clarification etc.. is encouraged and welcome ;)


PS: Here is a short list of a few, great, online resources that helped me at different stages of the project and that I highly recommend!

Transistor circuits

Using the transistor as a switch

Manage menu and LCD display with arduino

(video, español) Tutorial Diseño PCB con Eagle Parte 3 : Layout

Building Circuits for Stripbard using EAGLE

(video) Perfboard prototyping

(video) How and WHY to Solder Correctly

How to solder

  1. Greg permalink

    I really like your use of Eagle for stripboard design. Can you tell me how you managed to rotate your components so they line up with the tracks?

    • Thanks Greg!
      If you switch on the grid display, choose Lines and set 0.1 inch as size then you just have to positions your components on the grid (moving and rotating by multiple of 90 deg). You then have to route the tracks so it is up to you to correctly position the components that have to be connected on the same horizontal line of the guiding grid. Once you are satisfied with the disposition you route manually an horizontal wire (that would represent the strip-board). What is a bit annoying is to find the desired component length in the huge library..
      Hope it helped :)

  2. Fantastic job! I’m planning to build an intervalometer for my Nikon and found your project, now it will be a lot easier to plan my own project. It will be basically the same, but adapted to my camera… I’m also planning to include a GPS module.
    Thanks for sharing this!

    • Thanks!! That’s a nice add-on I didn’t think of :)
      Good work and have fun!!

    • That’s the valid alternative for lazy people :)
      If what you need is a neat intervalometer with no bells and whistles you probably are definitely right, but for me the whole point was to learn and play with some electronics while building something I actually needed!


  3. Aleksey permalink

    Understand. Respect you! good job =)
    big up

  4. Not sure whether i’ve dropped you a comment but just wanted to reiterate that this is great work. Can you drop me a line on my email please.



  5. Can you tell me what thermistor was used? I looked and I came up with a few different thermistors like 10K, 33K, 100K, etc. Thanks

    • Hi Eric, it was a 10K thermistor, I updated the info, thanks.

  6. nick permalink

    Hi. I am very interested in your project and am trying to replicate the circuit schematic. I see that in your initial list of components, you have a 10nf capacitors. However, when I look at your circuit diagram, I do not see them. Instead, I see two 22pf capacitors.

    I am mostly interested in just the minimal arduino, Can you be more specific with your list of parts?

    • Hi nick! You are right, thanks for pointing it out. I corrected the list, they should be two capacitors of 22pF as correctly written in the schematics.
      Anyway for the minimal Arduino, aside for the official web pages, you can also check out this post for example:


  7. Alex permalink

    Great work! But my camera does not even have a remote shutter lol. I’ll have to build a motorized finger.

  8. Great post.

    I’ll definitely look into your guide.

  9. Bhavik permalink

    This is great and a lot of help for a similar project I am starting. I was wondering how long does the 9V battery last with this?

  10. Hi

    Great job with the project, I was in the middle of building a lightning detector using an Arduino so I may look to incorporate an intervalometer with LCD, the only question that I have is can you show the details of what pins you connected on the LCD itself?



    • Hi Dan,
      sorry for the delayed reply! Probably you found your way, anyhow here is the conversion of the numbering between the pins in the scheme and the ones of the actual LCD (that are numbered 1 to 16) in the format: Scheme pins–>actual LCD pins



      Hope this clarifies!

  11. Alessandro Budica permalink

    I concur it’s a terrific work, the code far beyond my understanding in some spot. May I ask some explanation about the
    // menu conversion table
    byte G_menu_id2txtup[] ?
    Is it somehow connected with the
    // menu strings ? If yes, how?
    I see nr. 2 is missing there, but since I cannot understand the use of the table/matrix I can’t figure it out why.
    Would you be so kind of helping me out with this?
    Tks in advance

    • Hi Alessandro,

      indeed, it is related to the menu strings in this way:
      G_menu_id is the global variable that identifies in which menu I’m (so a value between 1 and 220, according to the menu scheme and as explained in the text).
      Then G_menu_txt[G_menu_id2txtup[G_menu_id]] is the text to be displayed. Now I don’t remember exactly why I used this intermediate passage, I think it was to leave some more freedom for adjustments later on. But I guess you could adapt things to your needs and skip the G_menu_id2txtup conversion table if you don’t see any added value.
      Nr. 2 is missing because it corresponds to the ‘XXXXXX…’ string which is actually never used so here again you can remove it and adapt consequently.
      Hope it’s a bit more clear!



      • Alessandro Budica permalink

        Well, my friend, many thanks, I see the light at the end of the tunnel, but I still need to get deeper on this matter. Would you be so kind of suggesting me any source (web, books, other) where I could find further lessons about making menus ?
        Tks again in advance

      • Well, honestly I don’t know where you could look for to design menus… It is more a matter of thinking how you would like them and then programming them!
        I had no clues where to start but writing down a scheme should be your first step.
        Good luck ;)

  12. I really like your project.I want to make it with arduino uno but i don’t know use which components.Can you tell me your components circuit with arduino ? Also, Can you send me picture of circuit ?
    Thanks a lot.

  13. Marc Close permalink

    Very nice job indeed.
    But I encounter a problem when verifying the code in Arduino (1.0.3) : it stopped at line 383 : ……383 ……………. lcd.write(0);
    Arduino program says :
    Intervallometre_2 (It’s the name I gave to your gistfile1.ino) :

    383: error: call of overloaded ‘write(int)’ is ambiguous
    X:\Program Files\arduino-1.0.3\libraries\LiquidCrystal/LiquidCrystal.h:82: note: candidates are: virtual size_t LiquidCrystal::write(uint8_t)
    X:\Program Files\arduino-1.0.3\hardware\arduino\cores\arduino/Print.h:49: note: size_t Print::write(const char*)

    If I understand parts of the program, I’m not a programmer therefore I grab the web for an answer and found this :
    lcd.write((byte)0); —– instead of—– lcd.write(0) at line 383.
    Please could you tell me if it’s correct ? Otherwise, what is the right form ?

    Thank you in advance for your answer.
    Have a nice day.
    Marc C. Belgium.

    • Hi Marc,
      I would try the fix you found, it will probably work. It is just a matter of telling the compiler which write function you are using since it is unable to guess by itself.
      Cheers and have a nice day too!

  14. Marc Close permalink


    It’s Marc again, I hope I don’t disturb you too much but I need some explanations !

    I’ve bought, on eBay, a brand new “intervallometer” that is +/- 10 € worth with many features but I want to realise the circuit you propose. So I’ve bought parts at “Tayda electronics shop” (, incredible prices : 162 parts for less than $17, P&P included) and on ebay (2X1602 for $6, ATMega328 with bootloader and socket for less than $6, boxes, 2.5 stereo cable, … !!!). All that for an amount that exceed the “all-done intervallometer” value by 35 €, at least ! One should be motivated by the project !

    In short, here are my questions :
    – Are the push buttons temporary ones ? – Hope they are, because I bought that type ! If they are not, that will prove that I’ve understand nothing about that !
    – The output on the “keyboard schematic” are A2 and A3, I suppose that they are B2 and B3 on the general circuit schematic ?

    Something else, you videos, that were readable a few days ago, are now unreadable for me (black rectangle when trying to launch them)

    Once more, thanks for your work on that project,

    Have a nice day,
    Regards, Marc Close.

    • Marc Close permalink

      From Marc :
      Videos are now OK (probably just a “temporary bug” ). Pfff……
      There are 3 wires connected to the camera, Jred, Jblack and ? for shutting and focusing (I want to bypass the remote) where does your yellow wire, the third one come from and leads to ?
      Regards, Marc

      • Eric permalink

        3 wires are:
        1 for common ground from the camera
        1 for using focus this can be skipped if you plan to use manual focus or are using fixed focus lens (prime)
        1 for shutter, for shooting picture.

    • Hi Marc, to answer your questions:

      – yes the buttons are temporary, they are not switches, so you got them right :)
      – yes, there is a mislabelling in the circuit, B2 is A2 and B3 is A3 in the keyboard circuit. Sorry for the confusion.

      Also it’s good that the price went down from 2011 ;)

      Thanks and have fun!

  15. Marc Close permalink

    Hello ERIC,
    Thanks for your reply.
    When we enter into such a project, there are at least a few things to know such as the functions of the cable contacts : the tip of the 2.5 mm. jack (JBlack) for triggering, the middle for focusing and the third contact as the common GND (JRed).
    My question was about the connexion of the jack middle contact (yellow wire on the breadboard). Is it useful here and in that case, where is it connected to ?
    Regards, Marc.

    • Hi Marc!
      The yellow wire of the 3 connections jack (not the remote one) is actually not used, so I just soldered it as an isolated dot.
      Thanks for helping in clarifying this.


  16. Marc Close permalink

    Thanks to all for the reply.
    As, here in Belgium, I was waiting (1 month) for a Chinese ATMega 328 + socket with bootloader at low price (<3 €) , my mind was elsewhere.
    So after grabbing the net : no need to get a ATMega 328 P with boot-loader if you own first an Arduino Uno, this one can play the role of a programming unit for an other ATMega328 PIC. Just find the right sketch in the example defaults with Uno in programming mode or ask Google ( ) ! Sorry it's in french, my mother tongue !
    I'm sure you all know that, but for beginners, as I'm, it can be helpful.
    Have a nice day, Marc

  17. THANKS for your Intervallino code and project. I have built one with a few minor changes to run a dolly motor at the same time .It works OK except that if the backlight LCD is Off, the camera is not triggered, although the timer interval still runs. Where should I look for code error (I’m new to coding!!)

    • after going through the code line by line I found a missing ‘curly bracket…OK NOW!

  18. Chapin permalink

    I noticed the LCD used only pin 1-6 and 11-14, does it mean you are not using the LED backlighting (pin 15 and 16)? I would like to use it but I don’t know how to tweak the coding to add a new menu option LED backlight (always off, on when dark (via photo resistor), and always on) where it will be on when LCD itself is set on.

    There are a few unused pins on Arduino that could be used to control LED with a single transistor.

    Or I can take the lazy way and add a manual LED switch.

    • Hi Chapin, pins 15 and 16 are not connected on my LCD so they are useless. To control the LED backlight I use pin 13. Also what you would like to do should be a simple matter of adapting the code since the hardware/circuit already support such feature. There is a menu section regarding the auto switch off of the backlight after a certain amount of time, I suggest you to start tweaking the code from there and adjust it to check on the external brightness (using function MeasureLight() for example).
      Hope this helps!


  19. emilyandjasper permalink

    I’m a mechanical engineer and haven’t dabbled with electrical stuff much, but am wanting it build an intervalometer and love your tutorials! I however am hoping to use the Arduino Uno which I am purchasing in a starter-kit that comes with several parts you list as well as an 16X2 LCD. Reading your tutorials, I noticed that a lot of the parts (to my understanding) are for the board you built yourself since you didnt use an Arduino. That being said, I’m wondering what I would need to actually purchase then if I’m using the Arduino Uno? Thanks in advance! I appreciate it.


    Would this design allow me to set the camera to record from say 9AM to 7Pm every day?

  21. Jonathan permalink

    Good morning, I’m trying to do exactly the same project but using an encoder and 5110. I have got everything together with Arduino nano but I’m terrible at coding. Any ideas.

Trackbacks & Pingbacks

  1. Build an intervalometer with these simple fabrication techniques - Hack a Day
  2. Build an intervalometer with these simple fabrication techniques » Geko Geek
  3. Build an intervalometer with these simple fabrication techniques | ro-Stire
  4. DIY Arduino Intervalometer - Hacked Gadgets – DIY Tech Blog
  5. DIY Arduino Intervalometer – DIY Tech Blog » Geko Geek
  6. DIY Arduino Intervalometer | Price Gadget Reviews
  7. DIY Arduino Intervalometer - Free Plans, Hacks, Howto's and other DIY stuff - Free Plans Online
  8. Build an intervalometer with these simple fabrication techniques « Uncategorized « Cool Internet Projects
  9. Build an intervalometer with these simple fabrication techniques | TechnoFiesta
  10. Build an intervalometer with these simple fabrication techniques | My Blog
  11. Build an intervalometer with these simple fabrication techniques | CisforComputers
  12. DIY Arduino Intervalometer |
  13. Un transistor = interrupteur? | Internet of everything
  14. 200+ Arduino Projects List for Final Year Students- Engineering Solutions

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: