Showing posts with label flash. Show all posts
Showing posts with label flash. Show all posts

Sunday, December 25, 2011

Laser trigger for high speed flash photography

My little pet project:  I wanted to experiment with high speed photography, capturing for example, the moment a water droplet hits the surface of water, so I started researching online for various solutions.  Just look for "Arduino" and "flash".

A few weeks ago, I ordered a number of a electric and electronic components on eBay.  Well, I could no longer wait for the orders I made to arrive.  Only the photo-resistor arrived this past week.  Everything else is still finding its way to my home.  Thus, I went to a local electronic store yesterday to purchase most of the components I needed to build the laser trigger.  The night before though, I had built my circuit on a Logic Gate Simulator (http://www.kolls.net/gatesim/) first but because it did not have the electric components I needed, I then used the Quite Universal Circuit Simulator (QUCS) downloadable for Linux and Windows platforms from http://qucs.sourceforge.net/.  The QUCS simulator still lacked one or two components I wanted to try but it was good enough.  It allowed me to test a few different ideas and see what the results would be--I must say my Grade 11 electrical course was helpful but I really needed a refresher on the basic electrical properties and laws.  The following original design was not exactly what I implemented but was close enough:


With "DC Simulation", I can run a simulation by hitting F2 in the software.  On another page, I created a table that displays voltages at different points on the circuit (where the labels are).

From the simulator, I was confident my design would work so I compiled the list of electric and electronic components from it.  Note that the Arduino is not in the design.  In all other implementations I have seen, an Arduino microcontroller ($30-$40) is used to sample some analog 5V input and generate some output for a brief 100ms or so.  Instead of the Arduino, I decided to use an OR gate ($0.50) and feed its output back into its input so that if a 5V current comes into the OR gate, it will be maintained until I shut down the circuit manually.  (An alternative is to use a timer chip with some resistors and capacitors in combination with some NOT and AND gates to zero out the OR output after some 100ms....)

Anyway, my shopping cart consisted of a HEF4071BP chip (CMOS quad 2-input OR gate), an NTE3041 opto-isolator (with an NPN transistor output), a bag of 1Kohm resistors, a bag of 62Kohm resistors, a bag of five LEDs, one switch, one breadboard, and a 5V power adapter.  Everything was a $1 or less each except for the breadboard ($6.75) and the power adapter ($2).



I ran a test.  When I depress the manual switch, current flows through the circuit.  The LED is only there as visual evidence that current is flowing through the opto-isolator.  That is, if I have the flash gun wired up, the opto-isolator should pass current from the collector to the emitter pin, causing the flash gun to fire.  (BTW, I could have used a PN2222A transistor instead of the opto-isolator but this opto-isolator will protect the circuit from any potentially high current from the flash.)

The photo-resistor has a resistance of 1Mohm in the dark and 10-20Kohm in bright light.  I designed the circuit such that when a laser beam hits the photo-resistor, its resistance goes down to 10 ohms.  Most of the current would then flow to ground.  If the laser beam is broken, the photo-resistor's resistance goes up to 1Mohm and current would then flow to the OR gate.  Once the current hits the OR gate (at 4.7 volts or so), it will raise the OR output to 5V.  The 5V OR output is fed back to the OR input pin, so that even if the laser beam is restored and most of the current flows to ground through the photo-resistor, the OR gate will maintain a 5V input and output.  In the implementation, the 5V output of one OR gate is passed to another OR gate.  The output of the second OR gate is then fed to the opto-isolator.  This is needed because if the output of the first OR gate is passed directly to the opto-isolator, most of the current will flow through the opto-isolator to ground--only 1V would remain, not enough to feed back to the input of the OR gate.

Well, now, I just need to wait for the PC sync cable and the laser pen to arrive, unless there is a local store that carries them ... and it's Christmas day.  The stores must be closed today, or are they?

Merry Christmas!

P.S.  I thought I would redo the circuit design so it comes as close to the actual implementation as possible:



QUCS does not have an opto-isolator so the npn transistor is actually the opto-isolator with npn output.  The FlashPowerSource is the positive cathode of the PC sync port on the flash gun.  It connects to the Collector pin of the opto-isolator.  The negative anode of the PC sync port connects to the Emitter pin of the opto-isolator.  The voltage of the FlashPowerSource was set to 3.7V as per some information I gathered about the Nikon SB-25 that I will be using for this project.

And here are the simulation results after changing the resistance value of the photo-resistor to 1Mohm (i.e. as when the laser beam gets broken): 



Tuesday, August 30, 2011

Exposure, HDR, and Fill-in Flash…

Taking Bryan Peterson’s advice, I have decided to go “manual” on my DSLR as much as possible.  It has been a very interesting learning experience so far (that’s another way of saying I have been pulling my hair trying to understand and experiment how I can get the _shot_ the way I envisioned with my own eyes.

For example, I was trying to take a couple shots of my living room to work on getting familiar with coming up with the correct aperture, shutter speed, and ISO (and hopefully eventually move onto getting the creatively correct combination).

First problem I ran into is getting the right amount of light into my camera so I can get a “correct” exposure.   With ISO set to 100 (yes, Auto-ISO is off), I realized I will need a very slow shutter (1/2 second) and the largest aperture I could to get enough light through.  But a 1/2 second shutter requires a good stable tripod (and pretty much remote trigger) to avoid the fuzziness as the result of camera’s movement during the exposure.  Increasing the ISO to 400 made it possible for me to capture the correct exposure at 1/10 second shutter and f/11 aperture.
DSC_0047
As you can see from the picture above, the side lighting from the street gave the objects plenty of shadow and texture, but perhaps a little too much shadow.  At the same time, the tremendous lighting difference between the object in-door and out-door made it impossible for me to capture both objects in-door and out-door.

Well, almost impossible.  With Nikon D5100’s build-in High Dynamic Range (HDR) imaging capability, I should be able to combine shots with different exposures and get more details out of both the dark and bright areas.  So that’s what I did.
 DSC_0048
Clearly this is an improvement – we can now see a lot of details that wasn’t available before.  Do not despair if you don’t have HDR as part of your camera, auto-exposure bracketing and some post-processing by software (even the lowly Nikon ViewNX2) will give you the same result (or better, some have argued).

At the same time, I can’t help wonder how it would look like if I just use fill-in flash to illuminate the room…  With camera still configured for 1/10, f/11, and ISO 400, I popped the flash and snapped a frame.
DSC_0049
As it turns out, flash did illuminate the room very well and bring out a lot of details inside the room.  The downside is the out-door objects remain over-exposed and I lost a lot of shadow that, in my opinion, really adds to the atmosphere (or the character) to the picture.

What did I learn today?   HDR is a very nice feature to have when you are shooting a composition of great light contrasts.  Flash is okay if you want to “freeze” the moment.

As I am writing this, I realized I have left out two more parameters to experiment: White Balance and lowering the aperture to dampen the effect of the flash (the flash was triggered even though I have already achieve correct exposure with my setting).  Oh well, I guess that would be something to experiment tomorrow.

Sunday, November 2, 2008

Flash, again, part 2

I forgot to include the bounce card in my test. Well, I needed to reshoot my control.

Natural light:


Speedlight pointing toward the popcorn ceiling:


Speedlight pointing toward the popcorn ceiling, with a white bounce card:


Speedlight pointing toward the popcorn ceiling, with a white bounce card with a one-inch vertical black strip:

Flash, again

I needed to do some comparisons again to remind myself of what settings and what orientation works best when using the built-in and the hotshoe speedlight flash in combination with the dome diffuser.

Here is Cal Ripken, my bobble head, in natural light. (There was not much light outside this morning and my blinds were half open.) Everything looks as I see it with my eyes.


Built-in flash:


Built-in flash, with a diffusion dome held in front of it:


Speedlight, pointing toward my popcorn ceiling:


Speedlight with the diffusion dome, pointing toward the popcorn ceiling:


Speedlight, pointing directly at Cal.



Speedlight with the diffusion dome, pointing directly at Cal.



You might wonder what all the crap is behind Cal. Those of some of my camping gears that I will be taking with me to Costa Rica. The lens beside Cal is the Tokina AT-X 80-400mm.

Also, notice that I have popcorn ceiling so light does not bounce back as uniformly as if I had a flat ceiling.

Potensic Atom Follow-Me Mode

The Potensic Atom's Follow-Me mode is one of its "intelligent flight" modes.  It's a really nifty feature that uses visual...