Saturday, December 31, 2011

Laser trigger for high speed flash photography, final

This is probably my final post about the design of the laser trigger circuit.

I was running a number of tests with the design I had a couple of days ago and there were two things that irked me.  After every test, I had to drain the capacitor with the CapacitorDrainSwitch switch and had to turn the main PowerSwitch switch off and back on.  I also think the PowerSwitch on and off switch might be damaging to the IC chips.  Thus, I redesigned the circuit by adding an XOR gate and moving the CapacitorDrainSwitch switch--it is now called CircuitResetSwitch and has two functions.  The XOR gate keeps the power to the circuit on as long as the CircuitResetSwitch switch is not closed.  When the CircuitResetSwitch switch is closed, the XOR gate will turn off voltage (in a digital sense, i.e. pull voltage low) to the circuit and will activate the TransistorSwitch to drain the capacitor at the same time.  So now, after each test, I simply need to press the CircuitResetSwitch and I am ready for the next test.


P.S.  The circuit does not look correct.  The XOR gate will pull the voltage down when the CircuitResetSwitch is closed, so the ORgate1 gate will get a digital input of "0" on the left pin but the right pin has an input of "1" already from the ORgate1Loop loop, so ORgate1 will keep outputing a "1".  What is not shown in the circuit is that the OR gates are powered by a 5V input line.  This input line is controlled by the XOR gate now so effectively, ORgate1 is shut down when the CircuitResetSwitch is closed.  (The XOR gate is powered directly from the main power source.)

Tuesday, December 27, 2011

Couple of high speed flash tests


My first few tests turned out not too bad.  The breadboard was taped on a computer tower.  I had a laser pointer on a mini-tripod on a box about 50cm from the computer tower at the same height.  The laser beam is about 50cm from the floor.  Under the path of the laser beam, I laid a cup I made from the bottom of a water bottle.  I placed the Nikon SB-25 flash gun just to the left and in front of the cup.

I then set the camera to the smallest aperture possible to keep the shutter open for 10 seconds in the semi darkness of my room.  I set the focus to manual.  I could not really focus properly here as the camera sat on the floor.  I think I will move everything on a table so it will be easier to work with.

Anyways, I took a number of shots of a water droplet falling from about 70cm high, cutting through the laser beam.

I started with a wide angle shot, to see where the water droplet would be.  I am still not sure where it was when the flash went off.  What is seen in the photo could have been from an earlier droplet.

I then zoomed into the cup.  The focus was not spot on but I think I can fix this problem if I place everything on a table.

BTW, I tried to use a camcorder to figure out where the droplet would be when the flash goes off.  Of the many water drops, I could see only one in the movie frames.  I guess the camcorder is not fast enough.

P.S.  Except for the photo-resistors from Slovenia, my eBay orders have not arrived yet!!  I wish the flash PC Sync cord has arrived already as my home-made alternative can easily come loose.

Laser trigger for high speed flash photography, part 4

From my first successful test, I realized there needs to be some delay in the circuit.  The flash went off way too fast.  The use of an Arduino microcontroller makes a lot of sense to me, but I thought I'd keep the circuit as simple as possible, so I redesigned it with a capacitor and a potentiometer.  With the new circuit, after each trigger, I have to reset the circuit with the main off-on power switch.  I also added a secondary off-on MOM switch to drain the capacitor quickly as it would take a long time for the capacitor to self-discharge completely.

The idea behind the capacitor is to draw current into the capacitor until the voltage is high enough to trigger the second OR gate.  The delay should be some fraction of the R x C time constant (which in this case is 10,000 (Ohms) x 100 (uF) = 1 second.)  I am not sure what the exact trigger voltage and therefore what the exact time it takes to trigger the second OR gate, but there is some delay now in the circuit.

I added back the loop of the first OR gate.  Without this loop, the capacitor will not have enough time to charge up and the voltage would not then be high enough to trigger the second OR gate.

So, here is the new design:


... and the breadboard:

 

Note that the trimpot (potentiometer) might as well be a fixed 10KOhm resistor.  I thought I might need to adjust the resistance value but 10KOhm seems about right.

Monday, December 26, 2011

Laser trigger for high speed flash photography, part 3

Success!  I taped over the photo-resistor with a piece of paper to reduce the area of exposure to the laser beam.  Effectively, I reduced the part of the laser beam that matters so that a water droplet could easily break the laser beam.

Also, the ORgate1 loop in the schematic is not needed.  There is no need to keep pulling the voltage high after the initial flash trigger, so I removed the loop.  The flash goes off fine without the loop.

Laser trigger for high speed flash photography, part 2

Well, my first real test with water failed miserably.  I bought a key chain laser pointer from one of those dollar stores.  It costed me $1.40 or something like that for the laser pointer.  I taped the laser pointer onto my tripod and pointed it at the photo-resistor.  When I turned on the circuit, everything behaved as expected.  The LED does not turn on as long as the laser beam hits the photo-resistor.  If I run my finger quickly across the laser beam, the LED turns on and the flash would go off as expected.  The only problem is that when I tried it with water, the water droplet either is too small or falls too quick.  I could see half a flicker on the surface of the photo-resistor where the laser beam, but the half flicker was not sufficient to cause enough of a voltage change to trigger the LED and the flash.

I have to go back to the drawing board now.

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): 



Sunday, December 11, 2011

CHDK

Unleashing the power of the PowerShot ... I ran across this Canon Hack Development Kit (CHDK) that adds more functionality to a number of Canon PowerShot cameras.  I had checked the CHDK for my SD110 but it was not supported but they have support for SD990IS!

It takes just minutes to get the software (not firmware) loaded onto the camera--I chose to activate it manually instead of using the autostart approach.  I looked at the CHDK software because I wanted to do time lapse photography.  For many Nikon DLSR's, one can find these remote shutter control on eBay to do time lapse photography--I just found out my D7000 does this built-in--but heck, this simple software for the Canon point-and-shoot that resides on SHDC card can do the same, easily.

CHDK can do a lot more than just time lapse photography.  The platform allows uBASIC scripts to run so some programming can unleash the power of the PowerShot in virtually any way possible (within the hardware limitations of the camera of course.)

Check out CHDK at http://chdk.wikia.com/wiki/CHDK.

Back to point-and-shoot?

This afternoon, I drove out to the east side of downtown Toronto to pick up a "Canon IXUS 980 IS" compact point-and-shoot.  I paid $100 for it.  I have no idea how much this camera really costs nowadays but it falls within my $0-100 range I am willing to pay for a decent compact point-and-shoot.  Noone carries it anymore but three years ago, for a 205g camera, it used to weigh more like a ton on your wallet.


This camera has a maximum ISO sensitivity setting of 1600 with a decent maximum shutter speed of 1/1600 seconds.  The lens can zoom in up to 3.7x optically (36-133mm in 35mm format) with maximum f-stops of f/2.8-5.8.  The 14.7MP CCD sensor is fairly big for a compact camera at 1/1.7" so there should be less noise than other compacts at the same image resolution.

The IXUS is a UK model.  In North America, the equivalent model Canon uses is the "ELPH".  In North America, this is the ELPH SD990IS model (yes, "990" and not "980").  The IXUS came with a battery charger and a USB cable.  The USB cable is a normal USB cable.  The battery charger has the round UK power plug, so I had to purchase a $2 adapter to plug into our North American power outlet.


No, I am not back to point-and-shoot but for my winter camping trip, I am thinking of using something light that I can keep close to my body (to keep it warm).  I would just use my Canon SD110 but the battery can no longer maintain much of a charge.  I will also likely bring my Canon VIXIA HG20 camcorder.

http://www.clubtread.com/articledetail.aspx?id=49


Addendum

There is something wrong with Amazon or with some store.  Even today, Amazon still posts a price of $650 and in one case nearly $900 for the SD900IS from some stores.  How is that possible?  Back in late 2008, when this camera came out, its MSRP was $399.  What is with the bloated prices at some of these stores?  We know this product has been discontinued.  Well, I checked out the couple of stores that show up in Amazon that carries this camera and sure enough, they are run by "crooks" out of New York and their listings probably never got updated.  When buying cameras online, be sure to check out ResellerRatings.com (see link on right hand side).

Sunday, December 4, 2011

Underwater camera

Every now and then, my mind wanders onto the world map in search of the next adventure trip.  My next destination in South America is still Peru.  There, I would definitely carry with me the D7000 with an assortment of lenses.  If not Peru, where could I go?  I am not sure yet but a trip to a beach resort (not to stay at the resort per se) where I could do snorkeling around a coral reef would be spendid.  My fingers have not found the perfect vacation trip yet but assuming they have, I think I would need an underwater camera.

From the reviews I have read about the Canon Powershot D10, it is a near perfect camera for the rough treatment of a beach and an underwater excursion. It is just one of the best underwater camera all around today with best overall sharpness and image quality.  The only downside I see of the camera is its bulky body design.  It is too big to insert into the pocket of your pants--it would look really weird!  The camera is too dense to float also, but this should not be a real problem if a strap is used.  On the upside, the D10 has a very practical lens zoom lenths equivalent to 35-105mm in 35mm format with image stabilization.  It can also be taken down to 10 metres deep, and as with any new cameras these days, 30fps video can be taken with it at 640x480.

The price of the Canon D10 ranges from $260 to $350.  Someone is making big bucks somewhere.  I do not want to spend more than $100 on a compact point-and-shoot but this is a waterproof compact point-and-shoot.

Saturday, December 3, 2011

Epson Stylus Photo 1280 woes, final, really

So, it was not so final.  Today, I thought I'd print the photo of Parliament Hill.  The printing started out fine and then the printer refused to print black.  I knew right away what to do this time around.  I brought out the syringe, distilled water, and Windex.  I have unclogged the black print head, but how could this be?  It was printing fine then all of a sudden the whole black print head got clogged.  Air bubbles or did the nozzles did get clogged up with old ink?  The last time I used the printer was two weeks ago.  I meant to run a print job once a week to keep the print nozzles free of gonk build-ups but got lazy last week.  Well, I will try to run one print job once a week and see.

I would like to print from a laser printer but any wide format laser printer would set me back by $4000+.  Too expensive for a hobby, unless I hit a 6/49 jackpot.  For now, I will keep on battling with this inkjet printer.

Oh, I forgot to mention there are these nasty ink streaks.  I think the print head is dirty.  Other than that, the colours are coming out really nice.  I am now printing at 1440dpi some flower I took on a trip to San Francisco a couple of years ago.

Fujifilm FinePix X100

I wondered when the compact point and shoot cameras will rival the big DSLR's in image quality.  Well, the day came a year ago from Fujifilm.  The X100 is no dinky compact point and shoot though.  I think Fujifilm saw the trend of the mirrorless camera and decided that they were going to fit a DLSR in the body of an old 35mm body and it looks really good too.  I have not played with one yet but I have read some good reviews about this camera.  It comes with a 12MP CMOS sensor that is almost as good as the Nikon D7000 sensor and a 23mm (equivalent to 35mm in 35mm cameras) f/2 lens, solid, tiny and easily portable for trips and vacations, very discreet, but with a price tag of $1200, I am not sure if I want to buy one of these yet.  Yes, I am so tempted by the cool factor but it is still $1200 with a fixed lens!

Invasion of What?

What are these bugs? I've never seen them before. I saw them at my parents' place the other day. Lots of them in soil or grassy areas.