SmaTrig 2.1

Delay circuit for (high speed) photography

delay circuit with legend

This article describes a uC based delay circuit for photographic applications like drop or high speed photography. It can be used to control the trigger lag of cameras or flash units. The input and output of the circuit use standard 3.5 mm jack connectors, so the delay element can be looped into your existing trigger circuitry like the SmaTrig for example.
As simplicity and budget components were important design goals, there is no text display or any sophisticated analog input stage. The circuit allows three delay ranges which are indicated by LEDs:

  • 1 s, red LED
  • 0.1 s, yellow LED
  • 0.01 s, green LED

A short press on the button switches the circuit on and off. The range is chosen by holding down the button when switching on the delay. The current range is saved in EEPROM so you don't have to set it each time. The actual delay is set by two potentiometers. The left one is used for the coarse time setting (0-100% of the chosen range), the right one allows finer tuning (0-10% of the chosen range) of the delay time. The coarse/fine solution proved to be very convenient in practical use (dark room). For drop photography, the absence of a display turned out to be unproblematic, because you keep your eyes on the drop and not the delay while adjusting the time.
The minimum lag of the circuit in the green mode for both potentiomenters set to 0 is about 12 us (microseconds).

The Circuit

delay circuit schematics

The circuit is based on the ATtiny24 AVR by Atmel. With its 14 pins the controller is a good compromise between the very small Tinys and the bigger ATmega types. The controller is connected permanently to the battery, because it draws less than 0.5 uA in off-state (sleep mode). The potentiometer voltages are converted into digital numbers by the internal ADC of the AVR. I think, the other components don't need an explanation. The second output can be omitted if not needed. The parallel transistors at each output are necessary to avoid a permanent connection between the shutter and the focus wire. Otherwise pressing the shutter button half-way will trigger the camera. With Canon cameras or flashes, the focus transistor can be dropped completely. You can also use a diode instead (cathode to shutter, anode to focus). The chip should be mounted on a socket for easier programming. Three types of batteries can be used with the PCB: CR24xx print type, CR20xx print type or two AAA batteries when the battery holders are used, see title image above.
The PCB layout can be downloaded below in Eagle format or a PDF. The trace clearance is rather DIY friendly.

delay circuit pcb layout

C code

The AVR is programmed in C (AVR Studio). You can download the source code below. The code may serve as an example of how to:

  • use ADC in continuous mode
  • switch ADC ports
  • use the pin change interrupt
  • poll a button
  • write and read EEPROM
  • use timers
  • use the sleep mode

on the ATtiny24. Changing fuses is not necessary.

To do

If you like to further improve the circuit I recommend to

  • add button to simulate a trigger event (just pull input to ground)
  • add a programming port

Download

delay.c - C source code
delay.hex - flash file for ATtiny24
delay.sch - Eagle schematics
delay.brd - Eagle board file
delay.pdf - PDF of board
partlist.txt - part list


drop on drop
Shot by Markus, check www.m-momente.de for more.

delay circuit with legend

Links

http://www.dslr-forum.de/showthread.php?t=837474 - A thread about the circuit in the dslr-forum (in German)

SmaTrig 2.1 - A 15-in-1 trigger with light barrier support for drop photography

Comments

buy
I two would if possible buy one of this compleat or in kit form depending on cost. Hope to here from you soon.

Best regards

Don
#1 - Don Smedley - 06/19/2011 - 15:28
Can I buy this ?
Hello,

would it be possible to by a complete buid circuit from you, or at least this programmed IC ?
#0 - Andreas Merlo - 04/09/2011 - 18:13
Name
E-mail (Will not appear online)
Title
Comment
To prevent automated Bots form spamming, please enter the text you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.



This comment form is powered by GentleSource Comment Script. It can be included in PHP or HTML files and allows visitors to leave comments on the website.