DIY Sound-Activated High-Speed Photography 106
eldavojohn writes "Have you ever wanted to catch the perfect photo with your SLR camera but couldn't time the shot just right? Photography enthusiast Matt Richardson brings us an instructional video over at Make Magazine that shows how to use some very basic breadboarding and an Arduino Nano to do some high-speed flash photography that is timed by sound instead of your finger hitting the button on the camera. He pops a balloon and smashes a wine glass to show some results. His code is available on Github, and you can find more of this sly hardware hacker on his YouTube channel."
OK (Score:5, Insightful)
Seriously, why do we need an Arduino to make a sound trigger?
Oh yes, all the cool kids use arduinos now, so if you make an electronics project without one, no one is going to read your article.
Re: (Score:2)
Yeah, I'd just whip up a bit of python,
Oh, you mean your camera doesn't run Linux. How odd.
Re: (Score:3, Interesting)
Oh, you mean your camera doesn't run Linux. How odd
I used to have an HP dig cam that allowed you to write programs against a public API, that you could load into the camera via the CF card and then run from the camera.
Re: (Score:2)
I used to have an HP dig cam that allowed you to write programs against a public API, that you could load into the camera via the CF card and then run from the camera.
Huh, I'd piss my pants for something like that.. What model was it and are there still cameras like that ?!?
Re: (Score:1)
Re: (Score:2)
Seriously, why do we need an Arduino to make a sound trigger?
Oh yes, all the cool kids use arduinos now, so if you make an electronics project without one, no one is going to read your article.
Well how about that the system:
Try doing all of that with 74xx gates and see how long it takes you to debug it
Re: (Score:2)
Yes. But this "system" just fires the flash. It doesnt do anything else.
Re: (Score:3, Funny)
Yes. But this "system" just fires the flash. It doesnt do anything else.
Ummm .. You didn't watch the video did you?!?!!?
Re: (Score:1, Flamebait)
I just skipped through it. Still, the only EXCITING thing it does is to turn off the lights. Still doesn't impress me. You know what would have impressed me?
If he could trigger Nikons (cheap models allow only "smart" USB triggering) [difficult one]. Also IR transmitter is OK.
If it had a pot to set the delay [stupid-easy]
Re: (Score:2)
I personally would prefer a combination of 40xx. Should not take more than 3 ICs, and will work more reliably than the microcontroller, probably take less power and have wider voltage range in operating.
Re: (Score:1)
Re: (Score:2)
What an epic waste of a microcontroller. He and you should turn in your geek card if you haven't figured out how to make this all USB controlled and coded up a computer interface within the afternoon.
Re: (Score:2)
Re: (Score:3, Funny)
Food, water, a cave and high-speed internet.
Re: (Score:2)
All right, but apart from the sanitation, medicine, education, wine, public order, irrigation, roads, the fresh water system and public health, what have the Romans ever done for us?
Re: (Score:2)
in plenty of situations, it appears like the education part was left out
Re: (Score:2)
Brought peace?
Re: (Score:2)
The quality of replies indicates the sad state of affairs that most slashdotters are unfamiliar with the greatest movie ever financed by a former Beatle.
Re: (Score:2)
What do you mean? An african or european former Beatle?
Oh wait, wrong movie.
Re: (Score:2)
Food, water, a cave, high-speed internet, and hookers.
Re: (Score:2)
Food, water, a cave, high-speed internet, blackjack and hookers.
Re: (Score:1)
In fact, forget the food, water, cave, high-speed internet, and blackjack!
Re: (Score:3, Insightful)
1. Easier to rapidly prototype, tweak your setup, or add features. (It's faster to re-code your Arduino than to rewire some electronics you soldered.) You can increase the scope/complexity of your project quite easily.
2. If you're already familiar with the Arduino, and have one on-hand
Re: (Score:1, Flamebait)
The guy is just another youtube-star-wannabe douche. If you want to make a "tutorial" do it for something real, not a quick and dirty prototype.
Re: (Score:2)
...recreating something done closer to XIX than to XXI century. Very much DIY back then, too.
Re: (Score:1)
Re: (Score:3, Interesting)
Discrete components. Google for "sound trigger" and you'll see how easy it is to build one out of an opamp or even 2 transistors and a few resistors.
Re: (Score:1)
I'd have just used an 8 bit micro because it's cheap and minimizes parts, just not an Arduino because I don't use Arduinos.
Think of it this way: you can be glad it was done with a "coder friendly" AVR platform rather than some beast of a processor running Java on Linux with breakneck 10ms latency.
Re: (Score:3, Interesting)
Seriously, why do we need an Arduino to make a sound trigger?
I agree that the Arduino is overkill for a basic sound trigger - but projects like the Camera Axe [cameraaxe.com] make a lot more sense. I use a variation on the Camera Axe for photographs of lightning among other things.
Re:Trigger the Arduino (Score:2)
I'm surprised the piezo had enough output, without amplification, to trigger the chip.
Re:OK (Score:5, Interesting)
I did this in the 1970's for a photography project using an SCR to handle the high strobe trigger voltage (used to be ~160 volts on the shutter contacts) and the amplifier from a portable tape recorder to amplify a microphone to enough voltage to trip the SCR. With a strobe mounted off the camera and the camera on bulb setting, I took pictures of light bulbs crashing onto the sidewalk. Due to the lighting angle, most people thought it was taken in the daytime in sunlight. I adjusted the delay after impact by changing the distance of the mic from the bulb. 6 feet provides a good delay. With the mic too close, the bulb looks like it is sitting on the sidewalk with a few cracks in the glass. The delay was necessary to get the bulb in a reasonable amount of shards.
Re: (Score:2)
Re: (Score:2)
That sounds a lot like the "Thunderbolt" article I read in the magazine. Nice job!
Re: (Score:2)
I'd guess because people are familiar with them.
But you should hop on there and show us how to make one without the expensive Arduino! Lots of us out there can follow instructions, and learn a little in the process, but wouldn't know how to make our own from scratch. :)
Re: (Score:3, Insightful)
Because otherwise there wouldn't be anyone to complain about it on Slashdot? Do you read your email in pine over a serial terminal too?
The photographer had minimal electronics experience and simply used what knowledge and equipment he already had on-hand to create a useful hack. The great thing about Arduino is that it's flexible and simple. It allows people to slap together all manner of interesting projects without the benefit of an electronics engineering degree. In fact, it was explicitly designed as a
Re: (Score:2)
Somewhere in a box here I have a copy of Hobby Electronics from the early 1980s, which has a sound-triggered flash sync unit. If I recall correctly, it used a couple of opamps as a mike amplifier/filter and a comparator, and an SCR to actually trigger the flash.
It's a shame there aren't any pictures, or any description of how it actually works. It would have been nice to see his results.
Re: (Score:2)
Hell, somewhere in a box here I've got a reprint of an old Gernsback magazine from the 50's which has a sound-triggered flash unit with delay. It uses a single valve as a class C amp (to give an adjustable threshold & immunity from background noise), a longish-timebase switchable R-C filter as an adjustable delay, and another single valve output stage to drive (IIRC) a B-C flash.
Also, didn't Doc Egerton publish the schematics of his strobes (not the same thing, admittedly, but close) back in the 30's?
I
Re: (Score:3, Interesting)
Seriously, why do we need an Arduino to make a sound trigger?
To generalize your question:
I'll take a stab at it: Because it allows a software developer to do things that previously required a hardware developer (EE), for certain problems. This unbinds prototyping from a certain educational requirement, opening the field to more participants. For one-off projects of value, the cost of an Arduino board may be low enough to be considered negligible.
It's exceedingly d
Quicker Than Sound (Score:2)
Re: (Score:2, Informative)
To do that, you'd need to trigger a high speed shutter, which is a lot harder to do.. there's usually a lag between when a shutter is triggered and when it actually takes a picture, and the mechanical shutters on most SLR's don't actually go much faster than 1/250s.
Re: (Score:1)
The power triggered by an LDR or light dependent diode via a comparator. Maybe a capacitor and a potmeter somewhere to set the shutter time. Set the trigger up so it is default ON.
The LCD cover could theoretically be taken from some 3d shutter glasses (preferably glasses which have been mauled by a dog/crushed by a behind, but with one glass intact)
Re: (Score:2, Insightful)
Re: (Score:2, Informative)
Re:Quicker Than Sound (Score:5, Funny)
Re: (Score:2)
So far I have been able to resist grabbing them by their collars and screaming at them...
Then you, sir, are a better man than I.
...It sure was nice of them not to press charges that night, though.
Re: (Score:2)
So why am I surrounded by people taking flash pictures of the sky whenever I go to a fireworks show?
Because they have crappy point-and-shoot cameras that trigger the flash automatically whenever the light that reaches the lens falls below a certain level.
Re: (Score:2)
Some people don't know how to turn the flash off, or don't want to go through the trouble of switching modes when taking sky pictures vs. near-object (friends at the show) pictures.
Re: (Score:3, Informative)
Re: (Score:2)
Re: (Score:2)
I just used a cable release and a camera in "bulb" mode. Point the camera in the general direction of the storm, hold the shutter open for 15 seconds or until you get a good lightning strike, repeat. For daytime work, add a neutral density filter and reduce the exposure time.
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Just Google it [google.co.uk] :-)
6ms isn't very long, but we're back into the real world for estimating how far the balloon will have moved in that time, so someone else can take over.
Re: (Score:3, Informative)
6ms is long enough for something (like a balloon starting to pop) to happen.
Most people, if they try hard enough, can count to 10 aloud in 1 second. That means they are speaking with the capable thought around 100ms. Now, just imagine how high you can count in your mind, not speaking aloud, in 1 second. How many instant thoughts can you get? How many milliseconds is it to process the next number in your counting scheme for you?
Now try watching a baloon pop. Try capturing that moment where the shape is Juuuu
Re: (Score:3, Interesting)
Seeing how light travels much faster than sound, my initial reaction is that this is a terrible idea.
Didn't bother viewing the linked video, eh?
The idea works pretty well because things with mass tend to move slowly, so despite the latencies involved and differential speed of sound and light, the described mixed digital / analog device works quite well to capture a mid-pop baloon or breaking wine glass. But then there are all of those classic Doc Edgerton photos that were taken with just analog circuitry, and they worked fine, too. Indeed, Prof. Edgerton made quite a career for himself at MIT using just
Re: (Score:1)
So, basically, with a sound trigger or
The hell? (Score:1, Informative)
Why is that worthy of a Slashdot submi... OMG ARDUINO, WOOT!
Get a Canon with CHDK (Score:1)
Re: (Score:2)
Re: (Score:1)
Re: (Score:2)
A large portion of the canon cameras support CHDK (canon hack devkit).
Just as a minor nitpick about nomenclature: No they don't.
CHDK supports the cameras, not the other way around.
And yeah, playing with it is really fun.
I saw this done in the 70's! (Score:5, Interesting)
Back then, a similar project used op amps to trigger a flash unit. It was an article in one of the electronics mags I saw back in the late 1970's, titled "Build the Thunderbolt". (I Googled it, but came up empty.)
You adjusted the timing of when the flash was triggered, by moving the microphone closer or farther from the sound source. You could also have added a 555 timer, if you needed a longer delay than was feasible with a longer distance.
It reminds me of a discussion at the Electronics firm I am consulting for. They needed to add a 1/2 second delay to the startup of a device in a new product. I suggested they add a 555 timer circuit. They looked at me like I had two heads. Their solution was to throw a microcontroller into the product. Come on, guys! It can be done with a 555, a cap, and two resistors. It's crash-proof, too. Whatever happened to K.I.S.S?
Re: (Score:2)
Whatever happened to K.I.S.S?
No money in it.
Re: (Score:2)
If you already have microcontroller, and know how to use it, it may be simpler than a 555. With most microcontrollers you won't need any external parts, and you can easily adjust the timing.
Re:555 vs MCU (Score:2)
They were talking about *adding* a micro to a mostly analog product. A 555 with the C and two R's would actually be cheaper. It was not meant to add features or function, *only* a .5 sec delay.
Re: (Score:2)
Of course, it all depends, and I've not seen your design, so it could be that a 555 is simpler. In other cases, a microcontroller may be simpler. What's cheaper also depends on the circumstances. Price at digi-key for a NE555 from TI is 29 cents, while their cheapest microcontroller (PIC10F200) is only 34 cents (both @ 100 pieces). The microcontroller also comes in SOT23-6, so it takes up less board space, not even including the C and Rs. And maybe the microcontroller, in the same circuit, can also replace
Re: (Score:1)
Come on, guys! It can be done with a 555, a cap, and two resistors.
A 555, a cap and ONE resistor if all you need is a monoshot as in this application.
Re: (Score:2)
I suggested they add a 555 timer circuit. They looked at me like I had two heads. Their solution was to throw a microcontroller into the product. Come on, guys! It can be done with a 555, a cap, and two resistors. It's crash-proof, too. Whatever happened to K.I.S.S?
A PIC like the 12F675 has eight pins, like the 555, and needs no external components at all. What can be simpler than that?
After I got a 100-pack of 12F675s at a special discount price I decided never to use a 555 again.
Re:PIC vs 555 (Score:2)
Multiply it by thousands. Those chips all have to be flashed and tested. That's time & money. With the R and C, the 555 just works, out-of-box. Crash-proof, foolproof.
Re: (Score:2)
Multiply it by thousands and those capacitors and resistors begin to add up, multiply it by millions and the printed circuit real estate plus solder needed for the passive components start having a price impact. Flashing and testing a PIC takes less time than inserting, clipping leads, and soldering a couple of components.
Anyhow, when was the last time you needed just a half-second delay and nothing else from a circuit? With a PIC, the connections are the limit. From six pins in an 8-pin DIP to 40+ or more
Re: (Score:2)
The units being made are all surface-mount. No insertion or drilling or clipping. There are already dozens of parts. The "real estate" is a non-issue, as there is PLENTY of room on the board. This device was already developed, and testing was being done on a few production prototypes, when the need for a brief delay was noticed.
In this application, there is absolutely no question that the 555 would be the MUCH better choice.
Cool -if you add an arduino (Score:2)
Dude, that would be awesome!
Re: (Score:2)
K.I.S.S. operates on many levels. Maybe they already use the microcontroller elsewhere,
Re:Throwing a MCU into a product (Score:2)
Reiterating - this is a mostly analog product. It does not already have or need an MCU.
They were thinking of throwing one in, *ONLY* to add a .5 sec power-on delay. There are other chips dedicated to this same function, but the 555 is universal. (Or, at least, it USED to be.) 3 parts; the IC, a cap and a resistor. No need to flash and test. Piece of cake for most assembly houses.
The MCU would require at least a crystal or some other clock. There is also the potential for some RFI being generated, or the MCU
Re: (Score:2)
That's not reiterating, as that wasn't in your original message. It's adding additional details after the fact. Details that are utterly irrelevant to the design principles I enumerated in my message. This, along with the balance of your reply, shows you can't tell the difference between design principles and blind dogma
I would expect an intelligent consultant
Re: (Score:2)
It *is* a reiteration, because in my original post, I said, "Their solution was to throw a microcontroller into the product."
This implies the following:
1) This product does NOT already have one. .5 sec delay.
2) It was being inserted for no other purpose than a
I think you missed that.
It is pure assumption on your part, to say that I am spouting some kind of "dogma". What "dogma", pray-tell? That using a common, inexpensive, very reliable, simple device is better than a highly sophisticated (comparatively spe
Re: (Score:2)
Not to disagree, but most PICs have internal oscillators these days.
Re: (Score:2)
That's fine... but it is still a source of RF, and could still be susceptible to the effects of external RF.
Re: (Score:1)
Without more details. it's hard to judge
So why are you judging?
Announcer already has more details. Let them judge.
Re: (Score:2)
Just taking a dig at you, I do not know the full details and sure a 555 may have been the best implementation. But seriously the K.I.S.S principle died when electrical engineers started being taught computer systems engineering ra
To use 555 or not to... that is the ? (Score:2)
The place I worked for was very much analog. My former boss worked for CBS Labs, and was absolutely amazing. He could design almost anything using op amps! I assisted with the design of a number of nice little products.
That company I worked for was bought by another that specialized exclusively in CPU-based devices. Gobbling-up a product line that is 99% analog has proven to be quite the paradigm shift for them, so I have been consulting and providing tech support to their staff for a while, now. I like the
Re: (Score:2)
Why may I ask did a CPU based company acquire a company with analogue expertise if they are hell bent on using a CPU for a simple analogue task?
Re: (Score:2)
They wanted to expand their horizons. The company they bought was already successful and doing a good business, so this acquisition also will add to their bottom line.
Now they are developing new products, which are "marrying" the two technologies. I am pleased by what I have seen and have been involved with, thus far.
This particular product I mentioned earlier had no CPU in it, just a basic USB to serial converter chip, surrounded by analog interface circuitry. Essentially, it is an "update" of a now-obsole
Re: (Score:2)
Re: (Score:2)
I am familiar with FTDI, as my former employer used their chips in several products. Nice little devices, to be sure.
Re: (Score:2)
You don't even need the 555 if the delay signal consumer can stand a slow voltage ramp w/o oscillating. A simple RC circuit w/ a time constant of 500mS would work. The 555 adds a nice Schmitt trigger, of course.
Re: (Score:2)
I don't know too many IC's that "like" having their power ramped up slowly, thus the 555 ckt.
Re: (Score:2)
Ironically, the RESET pin of most PICs have a Schmitt trigger on their input for just this case. If the input if a set/reset flip-flop or some other latching input, the quality of the signal doesn't matter that much. If it's a CMOS input or mosfet gate, then yeah, the 555 makes sense (or a discrete Schmitt or FF).
I first read.. (Score:1)
sound is slow and late (Score:2)
This is a cool proof of concept and neat little hack. But sound really isn't the best way to do high speed photography.
Look at the balloon in the video, you see the end of the action. I think ideally we want to see the moment the pin pricks it. Same with the glass, we want to see the hammer smashing it, not the moment after when the pieces are falling.
The CHDK [wikia.com] has been around for awhile and can produce flash sync at least up to 1/60,000th of second [wikia.com] on some pretty cheap cameras.
Simpler, i
need for copylefted educational photos (Score:4, Interesting)
The coolest image (Score:1)
High School project (Score:2)
High-Speed? (Score:2)
How is making a noise faster than clicking a button would be?
Re: (Score:2)
It times easier if you're trying to photograph a gunshot or some such thing.
Re: (Score:2)
You mean like this [dangerousminds.net]?