Steve LeibsonLeibson's Law: It takes 10 years for any disruptive technology to become pervasive in the design community. This blog is about the disruptive technologies that either have or will win over electronic engineers, some that won't, and why. Please feel free to link to these blog entries! Written by Steve Leibson, marketing consultant and former Editor in Chief of EDN. See my Web site at www.sleibson.com and my history site at www.hp9825.com. You can email me at steven.leibson followed by the magic email symbol @ followed by att.net.

View Steve Leibson's profile on LinkedIn


   Advertisement

Profile

RSS Feed

  • Add this blog to your RSS newsreader!

Recent Posts

Recent Comments

Most Commented On

Archives

By Category

Blog

Wednesday, October 22, 2008

Home Brew Macro Photo Illuminator

Oct 22 2008 12:00AM | Permalink |Email this|Comments (16) |


I’ve been excited about photography since I was pretty young and bought my first SLR, a Canon FTb, in 1972. The FTb was an exciting camera at the time because it had a revolutionary feature, for the time. The lens stayed wide open for focusing and (manual) metering and then automatically stopped down when you pressed the shutter. That was then. Now we’ve got auto everything: focus, exposure, flash control, etc. More important, we’ve completely entered the digital age, which is great for me because it allows me to develop my skills in close-up and macro photography.

I’ve long been interested in closeup and macro photography, but using film I found that skill development was too costly. It’s really hard to see the effects of focus, depth of field, and various lighting techniques when you’ve got the latency of film development between snapping the image and seeing the result. Digital photography short circuits the delay.

Since I got my Canon 20D a few years ago, I’ve experimented with macro shots but didn’t like my lighting alternatives. I’ve tried desk lamps and multiple flashes but I really wanted something more purpose-built. Well-heeled photographers use halogen lamps with fiber-optic light extensions to put the light exactly where needed but I found such equipment to be too far out of my budget, even on eBay.

I decided to build an illuminator using white LEDs. First, I needed the LEDs. Look on eBay and you’ll find you can get 100 20,000 mcd white LEDs for about $10. A perfectly-sized breadboard from the same company is another $3 on closeout. That’s a good start. Then, I started to think about how to drive a bunch of them. The easiest way, of course, is to just add some resistors and run 'em off some voltage. That’s especially attractive because the eBay LEDs often come with free resistors. However, I wanted a way to control the amount of light output.

So started to think about processor-based control. In my last LED project, I used a PIC microcontroller to PWM some LED light strips for undercabinet kitchen lighting. However, a camera doesn't see the same way that an eye does. At high shutter speeds, I wouldn't get much advantage from bang-bang PWM. I needed current regulation and continuous light output.

So my researches took me to National's LM3914. Perfect, I thought. It's an LED bar-graph driver. Vary an input voltage and 1-10 bars light up. There's my variable light output. The LM3914 is not picky about supply voltage. Anything up to 35 volts seems OK. Hard to kill, probably.

I designed a circuit and bought some parts. Picked up some "17 volt" wall warts at Halted Specialties, one of the local surplus shops here in Silicon Valley. However, the wall warts actually run at 24v. Hmm, I thought, maybe I'll regulate the LM3914 down a bit to 9v so it doesn't run at "high" voltage. Wired the thing up. Voila, it works. Each LM3914 output drives a string of five white LEDs in series, for about a 15v drop in the LED string. The rest drops across the LM3914.

Uh oh. String number 9 has a problem. With any supply voltage over about 21v, string number 9 glows dimly all the time. Must have a wiring error. Nope. Pull the IC (ha ha, I socketed it!) and there's no ghosting. No sneak path in the wiring. A little voltmeter work shows that the number 9 output voltage "floats" a bit lower than the others when the LM3914 isn't driving the string. Could it be the lower voltage power supply on the LM3914 not tolerating the higher LED supply? Nah, couldn't be. The data sheet says the outputs aren't sensitive to that sort of thing. I clipped the LM78L09 regulator out of the circuit and bypassed it so that the LM3914 also runs on the 24v supply. Voila! No ghosting. Clearly, you can’t pull that particular LM3914 output pin much above the supply voltage, although all the other output pins are perfectly happy with the overvoltage.

I sent this info to EDN’s analog editor Paul Rako and he forwarded the email to National’s analog guru and god, Bob Pease. Uh, not what I was expecting, but hey it’s great to hear from Mount Olympus every so often. Here’s what Bob wrote after he got back from his vacation:

I looked in the LM3914 datasheet, as soon as I got to my office. In the drawing “Block Diagram of Mode pin function,” it shows a little “battery” connected to pin 11. Assuming there is not a real BATTERY inside the package, that indicates there is some offset to connect to a little buffer.

It IS sorta documented. Exactly what it is, is not defined, but obviously something is leaking some current out of that pin. About 80 to 100 uA. In the paragraph, “Dot mode Carry,” it talks about the current flowing from pin 11. Etc. “If this is bothersome, the simple cure is to shunt LED (at pin) No. 11 with a 10k resistor.” Several Applications do show pin 11 with a 20k up to the + rail.

So, we really did try to tell people that pin #11 is DIFFERENT.

However, it does SEEM that the electrical characteristics do have an error. It says that output leakage is 10 uA max for pins 10-18. That seems to be not true for pin 11. I'm not sure, but I'll have to look into that. I'm not sure who else besides ME, knows much about the LM3914.

If you want 9 or 10 output currents to be well matched at all levels, you can probably get them matched OK at one level, but the current at pin 11 will not match at ALL levels. Maybe you'd best use just 9 outputs?

My solution: Go back to Halted and find a pair of regulated, switching, 18v wall warts. Add 100 ohm resistors to each LED string and eliminate the LM7809 regulator on the LM3914 power supply. The result: a macro illuminator box that does exactly what I want. A little trim pot lights 1 to 10 LED strings for increasing illumination. The whole thing fits in a clear, polycarbonate Hammond box. Here’s the pix, one showing one illuminated string of LEDs and one showing all LEDs on:

 

 

 

 

 

 

 


Related entries in: Analog | Digital Camera | Displays and indicators | Driver | 


Reader Comments



at 10/22/2008 11:46:36 AM, Moe Rubenzahl said:
Sweet. Nice to know there are still some seasoned EEs who know how to solder.



at 10/22/2008 12:25:03 PM, Steve Leibson said:
Hi Moe. The only problem is I forget and grab the wrong end of the soldering iron if I go too long without wiring something up. ;-)



at 10/22/2008 2:23:52 PM, Tom in Silicon Valley said:
Wouldn't it have been easier to buy one or two LED flashlights? You can control the amount of light by moving the flashlight closer to or further away from the subject.



at 10/22/2008 3:23:14 PM, Steve Leibson said:
Tom, I've tried the flashlights. I've found the inexpensive ones to be poorly made with strangely formed beams. They were weak illuminators and not even very good as flashlights. Perhaps the expensive ones are better, but really I didn't want a battery-powered illuminator. I wanted a line-powered one. Each of my illuminators uses 50 20,000 mcd LEDs, which sheds a lot of light on the subject.



at 10/22/2008 3:40:37 PM, Larry Martin said:
Yep - I''ve done the same thing. You can also make a great ringlight bu using a magnifier light and removing the glass magnifier.



at 10/22/2008 5:10:37 PM, Gene said:
All nice and all makes sense but why tell the entire tale? Cut to the case and give the up the solution up front. It is encouraging that one would build this from scratch since these things are expensive off the shelf items. I may just hop in the car and get the goodies needed and build a couple my self for use as copy light illumination of old photos. Great stuff, thanks,



at 10/22/2008 5:41:45 PM, Photographer said:
My first camera was also a Canon FTb. Great camera, although it has become a museum piece with the advent of digital cameras (instant feedback, cheap film, etc...



at 10/22/2008 10:21:22 PM, Steve Leibson said:
Photographer: I recently sold my FTb (and my Canon T70 and my FD lenses). I hadn't used the FTb in years. The felt light gaskets had gotten gummy. The PX625 mercury batteries for the meter are no longer available due to health hazards. The diaphragms in the lenses had gotten oily. It's simply not realistic to pretend that these cameras and lenses last forever. They are indeed museum pieces, as you said. I loved them, but have to move on if I want to continue to make images.



at 10/23/2008 5:22:18 AM, Bob M. said:
Somehow this distorts the history of the SLR with "The FTb was an exciting camera at the time because it had a revolutionary feature, for the time. The lens stayed wide open for focusing and (manual) metering and then automatically stopped down when you pressed the shutter". If this was a revolution, it was a late one. The introductions of through-the-lens metering and instant return mirrors took place earlier, by a fair number of years. You can get an overview of the history and some nice photos of trend-setters at www.taunusreiter.de/Cameras/SLR_History_1950_e.html As for the illuminator, why not just run the whole array of lamps and a single current regulator to control the brightness, or if there are several parallel strings of LEDs to keep the voltage down, then use a regulated (LM317?)voltage and those series resistors to attain roughly uniform distribution of the current among the strings. The LM3914 is cute but hardly seems like a better choice.



at 10/23/2008 9:17:16 AM, Dave J said:
Cool project. Steve, what did you get for your T70? I've been holding onto mine for its strong sentimental value and because, even though I never use it, it still works.



at 10/23/2008 9:24:19 AM, Steve Leibson said:
Bob M: I regret that you inferred I was crediting the FTb with being the first camera with the metering features that I wrote about. I didn't mean to imply that at all. However, there were still many cameras on the market in those days with stop-down metering. The FTb, introduced in 1971, replaced Canon's FT (circa 1966), which had stop-down metering. Canon introduced its FD lenses that supported full-aperture metering in 1971. (Note: I'm not claiming that Canon invented full-aperture metering, so please don't read that into my response.) As for your proposed approach to building an LED macro illuminator, many approaches would work. However, if you string 50 white LEDs on a single current regulator, you need 80 volts or you risk unequal currents through multiple parallel legs. The voltage drops across the LEDs don't seem to be all that consistent. I liked the LM3914's ability to sink 10 individual strings and it's a cheap part that does all I need with the addition of very few extra parts. The ability to light up individual rows of LEDs matched the layout of my eBay circuit board. It was a good match and I'm happy with the way the project turned out. However, you can control the current through all 10 outputs of the LM3914 with one resistor so you could use a pot on that resistor and simultaneously control all 10 current sinks in parallel if you preferred. I simply chose not to do it that way. Pretty slick for an 18-pin part that costs a couple of bucks, in my opinion. Please feel free to design and build your own version any way you like.



at 10/23/2008 9:29:00 AM, Steve Leibson said:
Dave J: I got much less than $100 for the T70. It's now classified as a "student" camera and cameras in that category sell for for about $25 with lens. Sad to say. The T70 with its built in autowinder in a compact body was a truly great camera in its day, although completely overshadowed by the bigger, brawnier Canon T90.



at 10/23/2008 2:19:56 PM, Jay said:
Would it be asking too much to ask you to post a schematic of your circuit along with the names of your parts sources? Thanks.



at 10/23/2008 3:29:15 PM, Steve Leibson said:
Happy to oblige, Jay. See today's post for a schematic.



at 10/23/2008 3:32:51 PM, Dave J said:
Yeah, I saw that KEH wouldn't even take a T70. For $25 I think I'll just keep it and transition it into tchochke/curio. It was my first SLR and I bought it at age 12 with saved up allowance and an advance on Bar Mitzvah proceeds. One day it'll be something for my son to make fun of.



at 10/24/2008 8:28:08 AM, Steve Leibson said:
Dave J: In the not too distant future, you won't be able to buy 35mm roll film for your T70 the way I could no longer buy PX625 mercury batteries for my FTb. I heard a segment on the radio last month saying that Kodak was unsure when or if there would be a next time for making basic Kodachrome stock. Polaroid already stopped making instant film for all those thousands and thousands of cameras they made for 60 years. Can you spell "buggy whips"?

Post a comment



Display Name

Change Image
Before submitting this form, please type the characters displayed above.
Note the letters are NOT case sensitive.


ADVERTISEMENT

©1997-2009 Reed Business Information, a division of Reed Elsevier Inc. All rights reserved.
Use of this Web site is subject to its Terms of Use | Privacy Policy

Please visit these other Reed Business sites