SmaTrig 2.1
!!! Go to the SmaTrig 2.1 page !!!

SmaTrig 2 - The improved smart 15-in-1 trigger
for SLRs

SmaTrig 2 SmaTrig 2 front view SmaTrig 2 hot shoe mount

On this site you will find complete instructions how to build a versatile 15-in-1 camera trigger, the SmaTrig 2. Everything needed to build the device is provided including the PCB design, firmware, drill plans, etc. The SmaTrig 2 is the second improved version of the multi-purpose 15-in-1 smart camera and flash trigger, SmaTrig (1). Compared to the old version, it boasts some completely new features. The existent one has been optimised for better usability. The enclosure hasn't changed, so the trigger is still very compact -- being the size of a match box.
The SmaTrig 2 is based on an AVR microcontroller, and is equipped with sensor circuitry for detecting sound and light pulses for capturing lightnings or high-speed photography. The 15 functions can be divided into four groups: bulb mode bracketing programs for HDR photography, interval and timer modes, sensor modes and other functions like manual camera triggering or configuration. Many of the modes have some hidden advanced options, but I paid great attention not to obscure their usability. Ritual instruction manual spurners can use the SmaTrig 2 just using their intuition.
The SmaTrig 2 controls the camera using the remote release cable. There is no need to modify the camera in any way. The various sound or light trigger functions use either the integrated photo diode for light detection, or an external microphone that can be plugged into the sensor connector. Flash units can also be connected to the trigger directly to allow high-speed photography.

The features are:

  • manual trigger
  • bulb trigger
  • IR remote control (many camera brands supported)
  • sound and light trigger (rising or falling edge detection)
  • high-speed mode with camera control via IR
  • integrated photo-diode
  • external sensor input (common 3.5mm jack plug)
  • direct microphone support
  • lightning trigger (low shutter lag)
  • slave flash trigger with pre-flash suppression (TTL)
  • discrete interval function (1s - 8 h) with camera wake-up function
  • variable interval function
  • inverse interval function for "long exposure by parts"
  • self timer / long exposure (1s - 8h)
  • configuration using EEPROM
  • 4 bulb mode bracketing functions with 3 to 9 shots and an EV step of 1 to 4 for HDR (DRI)
  • all functions of HDR-Jack are included
  • quartz-controlled clock
  • integrated buzzer for acoustic feedback
  • low-power design
  • only budget parts with good availability used

Compared to the old version the new SmaTrig consists of less exotic parts and has less "loose" wired parts making the assembly easier. This was achieved at the cost of a more dense, but still DIY-manufacturable PCB.
The pictures below show the SmaTrig 2 (prototype version with old label and big knob) attached to the camera during IR photography experiments.

SmaTrig 2 on EOS 400D SmaTrig 2 on EOS 400D

Trigger modes


1-4. HDR-modes (bulb mode bracketing)

To overcome the +-2 EV bracketing limit and the 30 s maximum exposure time found in many cameras, the bulb mode can be used to shoot user-controlled bracketing series in a certain range of exposure times. The image series can be used to generate HDR (High Dynamic Range) images. The technique is also called DRI for Dynamic Range Increase. Read the description of the HDR-Jack 2 for more details on the idea. The nominal exposure time of this function ranges between the purely theoretical 1/1000s and 8 minutes, letting you catch the last photon in the scene. The shortest effective exposure time in bulb mode depends on the camera used. Older pre-live-view Canons are the best performers going down to approx. 1/180 s. Newer Canons, Nikons and cameras from other manufacturers range between 1/8 s and 1/4 s. Shooting bracketing series on sunny days with these cameras won't work. Refere to this table for more details.
The nominal center times of the bracketing series for the four modes are (see documentation for full list):

modecenter time
11/8 s (* selectable by user, see configuration)
21/2 s
32 s
48 s

In each mode, 3 to 9 images can be shot around the center time, depending on how many times the button has been pressed. By default, one press corresponds to 5 shots, two presses to 7 shots, 3 presses to 9 shots and four presses to 3 shots. The number of presses lets the user cycle through the bracketing widths of 3, 5, 7 and 9 shots. The starting point (one push) can be set in the configuration for better usability. Mode 1 (the user mode) can be changed independently from mode 2, 3 and 4. The EV step can be selected in the configuration between 1, 2, 3 or 4 EV. Again, mode 1 can be changed independently from mode 2, 3 and 4.
In mode 1, also the center exposure time can also be selected by the user allowing to define a quick-access custom bracketing series.
The bracketing mode supports the mirror lock-up function, as well as the long exposure noise reduction where a dark image is taken internally in the camera after the actual exposure (Canon only?). These optional features are activated by holding down the button for longer time during the last press. The SmaTrig 2 beeps every second while the button is held down (up to three times). The beeps correspond to the following options:

# of beepspress durationoption
0t < 1 snormal usage
11 s < t < 2 smirror lock-up on
22 s < t < 3 sdenoising on
33 s < t mirror lock-up and denoising on

Of course, the camera settings have to be consistent with the chosen option. The SmaTrig 2 can't change any camera options automatically!
For exposures longer than 4 s, the exposure gap is increased automatically by approx. 3 s to allow a quick look on the histogram and abort the bracketing in case of overexposure. Thanks Daniel (Berlin) for this good idea.
The bracketing can be configured to go from short to long (default) or long to short (e.g. nice for sunrise). There is also the ability to start the bracketed exposure using a cable remote release. The release must connect the ring contact of the sensor port to ground to start the bracketing sequence. This option was meant to use the SmaTrig 2 with automated panorama systems like the Merlin/Orion/Papywizard. Please note that Canon cameras round exposure times < 1 s to 1 s in the EXIF data when used on bulb mode. The actual exposure times might be shorter.

HDR bracketing HDR bracketing HDR bracketing

5. Configuration

In this function, the user steps through a short menu where multiple settings can be made to customise the SmaTrig 2. The possible settings and its default values are listed in the documentation available in the download section below. The table lists which function is affected by which option. All settings are saved in the EEPROM of the AVR permanently. They can be changed any time. The usage of the configuration function is explained below.

Example:
The camera brand is to be changed from Canon (default) to Nikon to allow the usage of the IR remote function with a D5000 for example.
Procedure: Set the dial wheel to Configuration (function 5). First we're going to check the current settings. Push the button 11 times to go into the camera brand menu. The trigger beeps the code for the camera brand menu: long, short, short, short (B in Morse alphabet). This allows you to verify you are in the right menu. Then it steps automatically through all possible options beeping twice for the option currently set and only once for all others. If your Smatrig 2 has the default settings you will hear a double beep followed by 7 single beeps, because Canon is set as default and is the first option in the list. The list consists of 8 brands. After going through all options the trigger restarts. Nothing has been changed until now. Now, a look into the configuration table tells you that Nikon is the second option in the list. To choose it, you have to push the button after the second beep. We go through the menu again. Push again 11 times, wait for the menu code and then for the second beep. Push the button after the second beep within 1 second. You will hear a special sound. Now Nikon is set as the camera brand in use. Go through the menu again to verify the change. All other menus work this way.
If you want to interrupt the configuration, simply turn the rotary switch forth and back. The EEPROM will not be corrupted.


6. Lightning trigger

Contrary to the popular opinion, it is possible to photograph lightnings by light-triggering the camera directly. If the shutter lag (the delay between lightning detection and exposure start) isn't too long, the results can be fairly good. The lower the shutter lag, the better the results. This trigger mode is similar to the sound and flash trigger mode, but it minimises the shutter lag of the camera. It reduces the lag by keeping the mirror up in a smart way while waiting on the lightning. In case of a detection, the mirror does not need to be lifted before the shutter opens. In the case of the Canon EOS 400D, the pre-release of the mirror reduces the shutter lag by half -- from about 120 ms to 60 ms (see measurements) Users of non-Canon camras should use Mode 7.

lighting

The operation is explained in more detail in the following description. The function is tailored to Canon cameras where the mirror is raised with an extra release pulse and released automatically after 30 s if the shutter-button wasn't pressed for the second time.

  1. The camera is set to mirror lock-up mode by the user and the SmaTrig 2 is in lightning mode.
  2. Push the button multiple times to tell the SmaTrig how long the camera will expose after triggering. This avoids triggering a busy camera or missing a lightning while waiting too long after triggering. Look up the number of presses in the presses/exposure table or the trigger label. After pressing the button the trigger operation starts immediately. The camera is triggered once and the mirror goes up. If a lightning is detected within the next 30 seconds, the camera is triggered for the second time and the exposure starts - a lightning was captured! The exposure "time slot" corresponds to the number of times the button was pushed at activation
  3. After the exposure, the camera is triggered again and the mirror goes up as in step 2. The trigger waits again for a lightning...
  4. If no lightning was detected within 30 seconds the mirror is released automatically by the camera. One second later the camera is triggered by the SmaTrig 2 again and waits for a lightning as in point 2.
  5. Pushing the button again will deactivate the function.

Effectively the camera is waiting for a lightning with a locked-up mirror. The SmaTrig tries to minimise the time where no capture is possible. During the second in which the camera is "reloaded" no lightning can be captured. This results in a theoretical probability of 1/31 of missing a lightning flash.
You can also set the exposure time by holding the button down for longer than 1 s (you'll hear a beep) like in the interval mode. The exposure time is then equal to the holding time. This mode is not limited to capturing lightnings. It can be used whenever a reduced shutter lag is necessary, also with a microphone.


7. TTL servo trigger

In this mode the trigger responds to the 2nd flash in the sequence of two flashes as usually generated by TTL-cameras/flashes. The delay between the fist and the second flash must be less than 0.5 sec. This mode is primarily intended for servo flash control, so you will need a cable with a jack plug on one end and a PC sync plug for the flash at the other.


8. High-speed trigger

This mode was explicitly designed for high-speed photography. It's a one-shot trigger, meaning that it will deactivate itself after firing to prevent unintended multi-triggering. The self-deactivation is of particular importance when triggering with sound, where falling objects can cause a series of sound peaks after the main triggering event.
Another key feature of this mode is the possibility to control the camera via the integrated IR-LED. The trigger sends out an IR signal after activation (push-button press) and another one after triggering or user (self-)deactivation. This allows you to start the bulb exposure automatically with the trigger and terminate it right after firing. This trick will only work if your camera has an IR sensor which can start and stop the bulb exposure when receiving the IR signal. Nikon and Canon work this way (D60 and 400D at least). This feature only makes sense if taking high-speed images in a dark-room using bulb mode and a flash unit. .

pop

9. Sound & light trigger

In this mode, the attached camera or flash unit is triggered by the integrated photo-diode, a microphone, or another external sensor connected to the sensor connector (see electrical data). Typical applications of this function are high-speed photography or servo flash triggering.
When there is no plug in the sensor connector, the internal photo-diode is used as signal source (internal switch in connector). The SmaTrig 2 can be used to detect lightnings, flashes, abrupt changes of light intensity or as a light barrier in connection with a laser pointer (for example).
To use the SmaTrig 2 as a sound trigger, a sound-card-compatible electret microphone must be plugged into the sensor port. The power supply is integrated in the trigger.
The connection of a sensor is described in the sections below.
Two modes of operation are available depending on how often the button was pressed during the activation of the function.
Activation with one press means the trigger is "live" continuously, but it's blocked for about one second (default value) after firing. The blocking time can be changed in the configuration.
A double press means the trigger is permanently "live", there is no dead time. It can be connected to a music signal to trigger a flash at each beat for example.

Presses Description
Continuous operation, no blocking
••Continuous operation, trigger blocked after firing for time X

10. Alternating trigger

If you try to capture very rare events like falling meteoroids, or want to shoot lightnings like a pro, this option may be something for you. It allows a 100% interruption-free capturing of events by overlapped exposing using two cameras. The cameras are triggered in a way that each exposure overlaps 1/8 or 12.5% with the previous one. The camera timing is shown in the picture below.

alternating camera trigger

The exposure time can be selected starting from 1 second to 8 hours. The camera can be used in bulb mode or manual mode (times >30 s bulb mode only). If used in manual exposure mode the exposure time in the camera must agree with the time set in the trigger, otherwise the timing will be incorrect.
To start the function the exposure time must be entered first by pressing the button multiple times (see presses/exposure table in interval section or trigger label). After the entered time is acoustically verified the triggering can be started by pressing the push-button again.

TODO: movie of alternating trigger at work

To connect two cameras to the SmaTrig 2 you will need a cable which connects the focus wire in the trigger with the shutter of cam 1 and the shutter wire of the trigger with the shutter of cam 2. The wiring is shown below. The dashed wires are necessary for some cameras (Sony, Nikon, Canon EOS 40D...)

2 cam wiring

11. Inverted interval trigger

This mode is based on a slight but significant variation of the standard interval mode (mode 12.). It might be interesting for astro-photographers or (night-)time lapse fans. The only difference is that the trigger signal is inverted compared to the standard operation described below. Instead of short trigger pulses and long pauses, long trigger pulses and short pauses of 0.5 s are generated. If you set the camera to BULB now, it's possible to do very long exposures spread over different images. To merge these multiple images to one you can average them or better apply a "maximum of" operator (GIMP, Photoshop). This way you can prevent the final image from overexposure and reduce long exposure noise. Imagine a scene with a lit house and stars in the background. If you try to make the star trails visible using long exposure, you'll definitely "burn" the house. Exposing "by parts" and applying the max operation (or locally max or avg) to the image stack will give better results. This mode should also be useful for night traffic photography, airplane trails, ferris wheels, etc...
The usage is analog to the interval trigger described below.
The first example image shows different operators applied to a stack of 96 images with an exposure time of approx. one minute. Note the cool airplane trails. In the secod example four images with an exposure of 8 min. and two with shorter exposure are merged.

max min and mean operator max min and mean operator

12. Interval trigger

As the name implies, the camera (or flash) is triggered periodically at different time intervals. This mode can be used to shoot time-lapse movies of growing flowers, moving clouds, traffic, construction and demolition of buildings, melting ice, parties, rotting food, crowds of people, sunrises, sunsets, etc. Capturing lightnings, surveillance, astronomy, time stamping, scientific experiments, stop-motion movies, averaging (noise reduction) or tourist removing are other possible applications. All this in Full HD or better!
In the second version of the SmaTrig, the clock precision has been greatly improved by using a quartz oscillator (see clock movie below). The timer allows 16 different intervals listed in the following table, where " stands for seconds, ' for minutes and h for hours. The table is also printed on the label of the SmaTrig 2.

Presses12345678910111213141516
Interv.1"2"4"8"15"30"1'2'4'8'15'30'1h2h4h8h

To activate the timer proceed as follows: Press the button N times to set the interval according to the table above. The trigger will verify the user entry by beeping N times (the beeps come in pairs to simplify counting). Now press the button again to start the timer. It can be stopped anytime by pushing the button again.

There is another "hidden" mode": If you push the button once as for the 1 s setting, but hold it down for more than 1 s (you will hear a beep), the variable interval trigger will be activated. The button hold time will be converted to the interval time. Example: If you press the button for 12.4 s you get an interval of 12.4 s. The duty cycle of this function is about 50%, meaning that if you set your camera to bulb it will expose for 50% of the interval time and wait for the remaining 50%. After setting the time by holding down the button, the button must be pressed again to activate the function. The timer can be stopped anytime by pushing the button again.

At very long interval times, the camera battery life becomes a problem. The camera should fall asleep between the shots to avoid exhausting the battery to early. To wake up the camera in a controlled manner, the trigger pulls down the focus wire 4 s before the shutter is released (only possible for intervals > 4 s). This feature can be also used to control lighting equipment as described here. The shutter wire is pulled down for 4 s. This is long enough to shoot multiple images as needed for HDR time lapse movies.

time lapse movie time lapse movie time lapse movie



13. Long self-timer / Long exposure

This mode can be used in two different ways: as an extended self-timer, or for taking very long exposures as needed for astro or infra-red photography. The delay or exposure time can be set in discrete steps between 1 second and 8 hours.
Usage: Press the button multiple times to set the exposure/delay time according to this table. The time setting is beeped back by the SmaTrig 2 for verification. Then, press the button once for the self-timer function or twice for long exposure function. If the last press (both self-timer or long exposure) is longer than 1 s, an additional mirror lock-up pulse is generated. The trigger pulse of the self-timer function lasts for 2 seconds to wake up the camera reliably from stand-by. The trigger ticks every second while waiting in self-timer mode to signal activity.


14. IR remote release

This function uses the integrated infra-red LED to send a trigger signal to the camera. The SmaTrig 2 replaces the Canon RC-1 / Nikon ML-L3 / ... remote control. For now, the codes for Canon, Nikon, Fuji, Pentax and Olympus are implemented. Because each camera brand needs a different IR code, the camera type must be specified in the configuration. Besides the normal usage for taking pictures remotely, many cameras allow to start and stop the bulb exposure with the IR remote control, so you don't have to keep the shutter-button pressed. It's also possible to shoot a bracketing sequence at once instead of pressing the shutter-button three times, very useful for HDRs.


15. Manual/Bulb trigger

This is the simplest mode of operation. The push-button works as an extension of the shutter button in the camera (only the fully pressed state is available: focus + shutter). If the button is pressed longer than 1 second, the trigger locks up allowing continuous (bulb) exposure without keeping the button pressed. The lock-up is signaled by a beep. The continuous exposure is terminated by pressing the button again.
The lock-up function in connection with the continuous shooting option of a camera can be also used to capture lightnings, etc...

lighting

Usage

Shooting bracketed shots for HDRs

Set camera to MF • set camera to BULB exposure • connect SmaTrig • choose mode (1 to 4) • push button according to desired bracketing width • push button again to stop function in case of overexposure • merge images (check out the free tool called "enfuse" and "enfuseGUI")

Shooting lightnings (all cameras)

Mount SmaTrig on the camera (hot shoe mount) • set camera to MF and RAW quality, manual or auto exposure • set SmaTrig to mode 9 • start function by pressing the button, the camera will be triggered at each lightning • terminate function by pressing the button again

Shooting lightnings (mirror lock-up support, Canon only)

Mount SmaTrig on the camera (hot shoe mount) • set camera to MF, RAW quality and manual exposure (or time priority) • enable mirror lock-up in camera • set SmaTrig to mode 6 • press button multiple times to tell SmaTrig how long it should wait after triggering. The time should be equal to or greater than the exposure time set in the camera. • press button again to start function • observe operation • terminate operation by pushing the button again

Taking high-speed shots (example: popping champagne bottle)

Prepare darkroom • position and fix champagne bottle • Set up and connect camera, flash unit, SmaTrig and microphone (sensor plug) • set SmaTrig to mode 8 • point the IR diode of the SmaTrig at the cameras IR sensor • set camera to MF, bulb exposure, RAW quality, and remote trigger mode • light off, torch on • wake up camera and flash • put finger on push-button of SmaTrig • torch off • press button (SmaTrig sends IR signal to camera, camera begins bulb exposure, do manually if no IR sensor in camera) • let the cork pop (most difficult point, try not to have your hands in the picture) • BENG! • SmaTrig terminates bulb exposure by sending IR signal to camera • check result, clean up, drink champagne...

Interruption-free capturing

Connect focus wire of SmaTrig with the focus and shutter wire of camera A • connect shutter wire of SmaTrig with the focus and shutter wire of camera A • connect all ground wires • set cameras to MF • set SmaTrig to mode 10 • choose bulb exposure or a fixed exposure time in camera • press the button multiple times to tell SmaTrig the exp. time • count the beeps to verify your entry • start function by pressing the button again • stop function by pressing the button again

Electrical data

Connecting a flash unit to the SmaTrig 2

The SmaTrig 2 can trigger cameras and flash units, as both rely on the same trigger principle. Connect the pin of the PC sync contact to either the ring or the tip of the camera jack connector (and the grounds of course). You can connect two flashes using ring and tip. The trigger voltage should not exceed 50 V (limit of BSS138 transistor).

Sensor connector

In contrast to the old SmaTrig version, the microphone is connected externally with a jack connector. Instead of the mic, other sensors can be used. The sensor signal has to be connected to the tip of the sensor jack plug. Refer to the schematics below for details. The microphone power supply on the ring of the jack plug can be used as power supply for external sensor circuitry if the current consumption is low enough. A voltage of about 2.4 V through a 2.7 kΩ resistor is available there. Keep in mind that the capacity of the coin cell is limited (approx 200 mAh). The mic supply is enabled only if one of the sensor modes is active. It can be disabled completely in the configuration.

Light and sound trigger lag

The oscilloscope screenshot below shows the timing of the sound and light trigger. The upper trace shows the voltage at the photo-diode with a peak caused by a flash. The lower trace visualises the voltage at the trigger output, where 0 V is the triggered state. The trigger lag is about 0.2 ms. The article shutter lag measurements might be also interesting for you.

lighting

Falling and rising edge triggering

All sensor modes (6,7,8,9) can be configured to trigger on the rising (default) of falling edge of the sensor signal. For events like lightnings or sound pulses, the detection of the rising edge of the sensor signal is the obvious choice. However, if using a light barrier it's usually better to trigger on the falling edge, which corresponds to the moment where the obstacle enters the barrier and the light beam is interrupted. Using the rising edge setting in connection with a light barrier will result in triggering in the moment the object has just passed the barrier. For small fast moving objects the difference between both settings is negligible.
Please note that the falling edge detection will not respond to very short positive spikes generated by events like flashes or lightnings.

Switching heavy loads with SmaTrig 2

With some simple additional circuitry the SmaTrig 2 can switch heavy electrical loads such as lamps, solenoids or ventilators. This extension of the trigger is practical in connection with the interval function which activates the focus 4 s before the shutter is released. Connect the switch to the SmaTrigs focus wire to activate additional lighting equipment before each exposure. You don't have to keep your 8 kW lamp switched on for a week to record your plants growing;-).
The safest way to switch heavy loads is to use an opto-isolated device. The schematic below shows how to connect an opto-triac to the SmaTrig 2 to switch loads connected to the mains. There is a big variety of opto-triacs on the market. The circuit below was copied from a data sheet of the MOC3062. It is not tested!

opto-triac output for SmaTrig

Another option is to use a solid-state-relay with an optical input like the S202SE/S216SE series from Sharp. The connection of the low voltage side is analog to the opto-triac. The S216SE types can switch up to 16A. Remember that high voltage is nothing for beginners and it might stop you from photographing permanently!

External powering

The SmaTrig 2 can be powered externally by applying a voltage 3 V < U < 6 V to ring (+) and the ground (-) of the sensor port. This feature might be useful when one of the sensor functions is used for long times (animal photography, surveillance). If you want to use the microphone, connect it's ring to the external power (+) via a 2.2-10k resistor and the tip to the tip of the sensor connector of the SmaTrig 2. It is recommended to disable the mic powering in the configuration.

Battery life

The only significant energy consumer in the circuit the the integrated analog comparator of the ATmega88V. It is only enabled if one of the sensor modes (6 to 9) is active. The current consumption is about 200 uA resulting in in a theoretical battery life of about six weeks (non-stop operation). If a microphone is connected to the SmaTrig another 200 uA are consumed. The battery life reduces to three weeks. The mic is powered only if one of the sensor modes is active. All other modes range below 10 uA if active (couple of years battery life) and <3 uA if inactive (several years of battery life). If you do not intend to use the SmaTrig 2 for longer time, set the rotary switch to OFF to disconnect the circuit from the battery.

Build your own SmaTrig 2

The Circuit

The SmaTrig 2 is based on the ATmega88V microcontroller from Atmel (It is becoming obsolete and will be replaced by the ATmega88A/PA). This relatively small and versatile chip is a low power device which works down to 1.8 V. The ATmega88 is available in a TQFP32 package (used here) and the prototyping-friendly narrow DIP28 package. It is perfectly suited for battery operated equipment. It provides power-saving timer functions using a 32.768 kHz clock crystal. A lithium coin cell was chosen as power supply. The schematic of the trigger circuit is depicted here

SmaTrig 2 schematics

The most important sections of the circuit are explained below.
Triggering: Q2 and Q3 are responsible for triggering the connected device by pulling the focus and shutter wire to ground. The BSS138 transistor is rated with 50 V and 220 mA.
Rotary switch: The switch has two functions: it sets the operation mode of the trigger and connects the AVR to the battery. The switch provides a connection between the input pins and the power supply in all positions except the "0", where the circuit is disconnected completely from the battery. The AVR is supplied in a "parasitic" way through the protection diodes of the input pins. Refer to the SmaTrig 1 description for more details.
Sensor input circuitry: C2 and R5 form a high-pass filter between the sensor input (tip of jack plug) and the built-in analog comparator of the ATmega88. Only transient (changing) signals can be detected by the SmaTrig 2. The positive comparator input is connected to the reference voltage at PD6 which sets the trigger threshold. The voltage is generated by the voltage divider consisting of R9 and R11. By changing the potential at PD5 and PD7 the reference can be switched between approx. ??50 mV?? for rising edge detection and VCC-??50 mV?? for falling edge detection. In case of the falling edge, the input signal at PC5 is pulled up by the internal pull-up resistor to range slightly above the reference voltage. A negative spike at the input will bring the negative comparator input below the threshold and trigger.
Mic power: To allow the direct connection of a standard (sound card type) electret microphone to the trigger a power supply at the ring contact of the mic plug must be provided. This is accomplished via PD2 and R8. The supply can be also used to power some low-power input circuitry. The ring contact should _not_ be connected directly to ground (mono jack plug, etc.) to avoid high power consumption and shortening of the battery life. The power supply can be disabled in the configuration.
IR-LED: The IR-LED is controlled by Q4 which is connected to PC0. The inner resistance of the battery and the on-resistance of the FET make a serial resistor for the LED unnecessary. C4 boosts the current for a longer operation range of the IR remote control.

PCB

The one-sided board was designed with Eagle. The minimum path width and the clearance are 10 mils. This means advanced home-brew methods are necessary for reproduction. The PCB shown below was manufactured by www.leiton.de on one-sided FR4 1.5 mm material. The drills are exactly in the center of the pads. The quality is good enough to place a nice raster graphic somewhere on the PCB - next time. The PCB layout can be found in the documentation (see download section).

SmaTrig 2 PCB

Parts

All parts necessary to build the SmaTrig 2 are listed in the documentation available in the download section below. I tried to use standard parts only. All analog functions are based on the integrated comparator of the ATmega88V, reducing the part count significantly. The most exotic part is the code switch. It is a hex-type with 16 positions manufactured by many companies. You can use any type compatible with the PT65 from Hartmann. There are types with a spindle and with an integrated (detachable) knob.

hex-type code switches

The BSS138 FET transistor can be replaced by a different n-type conducting at 2 V at the gate. The buzzer has no electronics inside. Any piezo-type can be used. It has a pin spacing of 7.5 mm. The photodiode can be replaced by any daylight type. A high sensitivity type is preferable.

The circuit is mounted in a small pocket enclosure (50x38x13mm). A hot shoe mount can be attached to it for better usability. It can be recycled from an old flash or made of two plastic plates glued together. It has no electrical connection to the camera. The light sensor must point in the direction of the lens if you plan to use the trigger for lightning capturing.

I designed a drill aid and a label for the rotary code switch. They can be found in the documentation in the download section of the page. The red symbols on the label correspond to modes which involve timer functions where the user has to push the button multiple times to set the time. The red numbers below the switch legend describe how many pushes are necessary for which time.

Assembly - tools and skills needed

We start with the circuit as it is more exciting than the enclosure preparation. You can find all detailed plans in the documentation in the download section. You should have some experience in soldering to avoid frustration. If you have never soldered fine pitch SMD devices before, read one of the countless tutorials on the net, an exhaustive one can be found here. German readers may have a look here.
The most difficult part to solder is definitely the ATmega88V in its TQFP32 package. You will need thin solder (≤ 0.5 mm), a soldering iron with a pencil tip, and a loupe. Solder paste and a gas soldering iron are also a very good or even preferred options. Please, double-check the orientation of the chip before soldering! There is a small dot on the PCB where the mark on the AVR should be. Use the photos in the documentation for orientation. Be careful with the SMD caps (all 1206 types), as they usually have no marking. The resistors (all 1206 types) have a number printed on top where the last digit corresponds to the number of zeros that must be attached to the preceeding numbers to obtain the resistance in Ohm: 3304 and 335 mean 3.3 MΩ. The jack connectors have to be mounted at a certain angle to fit the slope of the enclosure side wall they are mounted to, see pictures below. Do not mix up the IR and the photo-diode, watch the polarity. Some buzzers also have a polarity marking. If you use the integrated code-switch (left on picture above) solder it at about 1.7 mm above the PCB to align the knob nicely with the enclosure surface. Put two 1 or 2 Eurocent coins under the switch while soldering it. The spindle type switch is mounted in the regular way without any extra spacing.

Mounting the code switch

After all parts have been soldered, the circuit can be tested. The simplest indicator of "life" is the buzzer. Switch to position "F" (Manual/Bulb) and press the button down for more than one second. You should hear a "beep-beep". If you don't hear the beep, set the switch to "0" to disconnect the battery and search for the problem. Compare your PCB to the pictures in the documentation. Some solder bridges? Is the orientation of the IC and rotary switch ok? Battery?
If the Manual/Bulb function works fine, but some others don't, you probably forgot to program the EEPROM. Many functions look for settings in the EEPROM and find just a '255' if it was not programmed.
If the buzzer is ok, but you can't hear no clock "ticking" in the (active) interval modes, probably there is a problem with the crystal.
If everything is fine, the board can be mounted in the enclosure. Set the rotary switch to "0", or remember the setting to attach the knob at the right angle later (applies only to spindle version of code switch). For the integrated switch version the knob must be removed (see picture above) for mounting.
Now the enclosure has to be drilled. Print out the drill aid from the documentation ensuring the scaling is set to none (1:1). Cut out the aid and fix it on the bigger part of the enclosure with adhesive tape as shown below.

SmaTrig 2 drill aid 1 SmaTrig 2 drill aid 2

The dashed lines must align with the edges of the enclosure. Double check the symmetry and then copy the centers of the holes to the enclosure with a sharp device. Now drill the holes as precise as possible. Use a drill stand if possible. The bigger the holes, the higher the tolerance to misalignment. Too big holes look bad. The drill aid is a hit-and-miss thing, so be prepared to use a file to make everything fit. Now insert the PCB into the enclosure. The procedure is rather intuitive, but some force must be applied. The PCB fits very tightly. Use a screw driver to push the spindle of the rotary switch into the hole. Proceed as shown in the pictures below. Inserting the no-spindle version is easier. Now the label (and the knob) can be attached. You will find the label in the documentation ready for printing (1:1).

SmaTrig 2 PCB top side SmaTrig 2 PCB bottom side jack connector mounting PCB in enclosure PCB in enclosure PCB in enclosure SmaTrig 2 assembled SmaTrig 2 with label

Software and programming

The controller was programmed in C. The hex and the eep (EEPROM) file necessary for programming the AVR can be found in the download section. Use the programming pads on the edge of the PCB (reset has a special pad close to the chip) to transfer the code. I used an STK200 clone and Ponyprog. The fuse bit setting is shown below

Fuse bit setting SmaTrig 2

Don't forget to feed back to www.doc-diy.net and contribute to the gallery! Any suggestions on the trigger and the web site are welcome!

Good luck!

Last but not least:
The author takes no responsibility for any injury or damage resulting from the operation or construction of the device presented here. The commercial use of the site contents is not permitted.

Download

smatrig2_doc_english.pdf - SmaTrig 2 manual & DIY info
smatrig2_doc_deutsch.pdf - SmaTrig 2 Bedienungsanleitung und Bauplan
smatrig2_v7.hex - ATmega88 flash hex file, version 7 (supports new ATmega88PA version)
smatrig2_v7.eep - ATmega88 EEPROM hex file, version 7 (supports new ATmega88PA version)


Contact

You can contact me if you have questions. My address is

contact

Please use "Smatrig 2 (your_camera_type)" as subject.

Gallery

In this section images taken with the SmaTrig 2 are presented. Your images are welcome!

Smatrig 2 in screw box

SmaTrig 2 built by Simon from Switzerland. He used a small screw box for the enclosure.

Firecracker exploding

Shot by Michael, more images are here.

Old radio, bracketed shot, merged with enfuse

Own work, shot with a EOS 400D + Samyang fish eye. The four input images were merged with enfuse.

16 Century Cellar HDR

Shot by Luca aKa CapZicco.

By Piotr Bartkowiak

Shot by Piotr Bartkowiak.

Lightning strike Lightning strike Lightning strike

These incredible images were shot by Rob Kessel in New Mexico, USA.

Milky Way Time Lapse over Morden Manitoba: Composite with Star Trails

Time lapse by Darren Enns from Morden Manitoba, Canada. Note the growing star trails in the movie.

By Clarissa Stroemer

Shot by Clarissa Strömer.

By Piotr Bartkowiak

Shot by Florian Schulz using the sound trigger function.


Links

http://www.atmel.com/dyn/resources/prod_documents/doc2545.pdf
ATmega88V data sheet

http://www.lancos.com/prog.html
PonyProg, AVR programming tool

http://www.maxell.co.jp/e/products/industrial/battery/cr/index.html
2032 lithium battery discharge curve

http://www.avrfreaks.com
AVR freaks - the page for microcontrollers

http://www.mikrocontroller.net
Mikrocontroller.net - the page for microcontrollers in German

http://research.edm.uhasselt.be/~tmertens/papers/exposure_fusion_reduced.pdf
An interesting paper about exposure fusion, a must for enfuse users


Выбрать язык English German Greek Portuguese (BR) Russian

Комментарии (14)

Self
Do you have any kits or PCB's you would sell ?
#14 - Mark - 08/02/2020 - 15:13
SmartTrig2 in Australia
Hi,

Is there any way to order a working SmarTrig2 in Australia.

Cheers Glenn
#13 - Glenn - 09/18/2012 - 10:27
Smatrig 2.1
Hi Dirk,

sounds like a great project. Please take a look on the new Smatrig 2.1 on this site. The new device has an interval
function which generates an IR pulse at each release. You could put the trigger into a jelly jar and use the infrared
signal for wireless*) triggering. I've got some of the Smatrig 2.1 spare. Contact me per email.

Luk

*) in case IR works under water
#12 - luk - 03/21/2011 - 10:06
smatrig2 - who likes to build one
Hi to everyone,
the project is really great. I would like to use the SMATRIG2 in an Underwater-Housing. I already used a time - interval recording unit to document movement of sea stars and sea urchins underwater, but with the SMATRIG2 much more would be possible. I am really looking for someone who has time to build such a unit. It would be great if someone would contact me:
dirk.schories@gmx.de
Greetings Dirk
#11 - Dirk - 03/20/2011 - 10:59
ATMEGA88 version
You can't use the ATMEGA88-20AU, because it won't work at 2.5 V. You need a 88V, 88PV or the 88PA version. The max clock is not an issue. The chip runs at 1 MHz in the SmaTrig usually.
#10 - luk - 02/28/2011 - 13:45
ATMega88 version
Fatih,

you need one of those:
ATMEGA88V-AU
ATMEGA88PV-AU
ATMEGA88PA-AU (new version, not tested)
You need the AU package. Take a look at rs-components.com, digikey.com or http://www.conrad-international.com

Luk
#9 - Luk - 11/11/2010 - 09:19
Minimum bulb times for 500D and 7D
I had the oportunity to check myself the minimum bulb time for the 500D. Its about 1/2s. For the 7D one user reported about 1/100s. Both numbers agree with the results by Carols. I updated the table on the HDR-Jack 2 page.
#8 - luk - 11/05/2010 - 09:43
Great work!
Superb photography swiss knife hardware! Sadly I've no electronic knowledge, I hope someone starts to build and sell it. To anyone have the skills to make it I'll buy it. iridium912@gmail.com
#7 - iridium - 11/01/2010 - 01:41
Bulb mode bracketing vs Canon EOS 500D
Thanks for your reply, Luc.

Well, since my results don't match with yours, I've made some test.

Get an oscilloscope a setup it for a slow refresh (100 ms by division).
Then point my 500D to the oscilloscope and set it to full manual mode with exposure set to bulb.
Plug a 2.5mm jack on the place for the external trigger and very quickly, short the tip to the ground of the jack to force the shutter to open and take a photo.

The result photo is in this link (http://picasaweb.google.pt/caladeira/PartilhaWEB#5512044996782754466) and indicates that the shutter was open for slightly more than 500ms.

No matter how many times I try, with RAW, JPEG, MIRROR LOCK, STABILIZER OFF, etc. ; the result is always the same.

Off course if instead of a quick short between tip and ground, I make one of several seconds, then I’ll get a photo with exposure of several seconds.

Unless I’m making some mistake, I’m in position to say that the minimum exposure time of my 500D in bulb mode is: 0”5

My canon has the firmware version 1.1.0
#6 - Carlos Ladeira - 09/01/2010 - 20:49
I found out, that the shortest possible exposure time in bulb mode for all new Canon cameras (like the 500D) is about 1/4 s. Read the HDR-Jack 2 article on this site for more details. The EXIF information in bulb is always rounded to full seconds in all Canon cameras.

Luk
#5 - Luk - 09/01/2010 - 07:54
PCB size
The pcb size is 34mm x 45.7mm. I will provide the size in the next version of the documentation. You can check the precision of your printer by printing page 14 of the documentation. There is a scale in centimeters in x and y direction.

Luk
#4 - luk - 05/17/2010 - 16:24
DIY-kit
Hallo XL,

hier die Antworten
1. STRAPUBOX 2046
2. Ja, ich habe einen Satz Platinen bestellt und wollte ein Paar DIY-Kits zusammenstellen. Kontaktiere mich per mail (sihe "Contact" weiter oben.
3. Der code ist nicht offen.

Viele Grüße,
Luk
#3 - luk - 05/04/2010 - 10:17
SmaTrig-2 Works GREAT !!!
I just thave to say that SmaTrig2 is working GREAT !!!

Thanks Luk for this nice development!!!

#2 - Geert - ON1DQD - 12/15/2009 - 14:53
Oh Boy, Oh Boy, Oh Boy,

I cant wait till i get my hands on SmaTrig2 ;-)

Two thumbs up for the developer!!!
#1 - Geert - ON1DQD - 11/10/2009 - 14:48
Имя
E-mail (Не будет выведен онлайн)
Домашняя страница
Заголовок
Комментарий
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.

PHP Scripts   Disposable Email   Throwaway Email