Go Down

Topic: Arduino Sound triggered photography (Read 6932 times) previous topic - next topic

hdborges

yes, everything looks ok, but no sucess.

Any sugestions?

AWOL

Put a LED in place of the SCR and see if it lights.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

hdborges

No Light.

I tried with another code only for the flash and works ok only with flash, so the problem must be the code, any sugestions?

hdborges

I have made little change in the code and add the follow:

pinMode(flashPin, OUTPUT)

Now i am havin a "little" light in led but is "not strong" to trigger the PT-04TM.
Anyway to increase the power OUTPUT


hdborges

Solved!!!

I made same modifications.

Who is having trouble to connect the flash or a wireless trigger like PT-04TM can try this:

The circuit is the same, the modifications are:

- The connection from breadboard to Arduino, in second SCR, the G (Gate) is wired to arduino in output (PWM)  ~11

The code is:

                       
const int ledPin = 13;     
const int meetPin = 2;   
const int flashPin = 11;   

int meet = LOW;             

void setup() {                     
pinMode(flashPin, OUTPUT);   
pinMode(ledPin, OUTPUT); 
pinMode(meetPin, INPUT);
digitalWrite(flashPin, LOW); 
digitalWrite(meetPin, HIGH);   
digitalWrite(ledPin, LOW);       
}

void loop()                             
{
meet = digitalRead(meetPin);       

if (meet == LOW){                     
delay(100); // delay between sound and flash
for (int value=0; value<255; value++)     //Increase "Power" from output ~11 to Gate in SCR flash
digitalWrite(flashPin, HIGH);       // flash goes off
digitalWrite(flashPin, LOW);       
digitalWrite(ledPin, HIGH);         // LED during 'dead time'
delay(4000);                            //to make sure I only get one flash
digitalWrite(ledPin, LOW);         
  }

}

AWOL

#20
May 27, 2011, 03:00 pm Last Edit: May 27, 2011, 03:02 pm by AWOL Reason: 1
Code: [Select]
for (int value=0; value<255; value++)     //Increase "Power" from output ~11 to Gate in SCR flash
  digitalWrite(flashPin, HIGH);       // flash goes off  (??)

not really seeing the point of this - why not simply put a delay after the "digitalWrite (flashPin, HIGH);" ?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

hdborges


Code: [Select]
for (int value=0; value<255; value++)     //Increase "Power" from output ~11 to Gate in SCR flash
  digitalWrite(flashPin, HIGH);       // flash goes off  (??)

not really seeing the point of this - why not simply put a delay after the "digitalWrite (flashPin, HIGH);" ?


Neither me, my problem was increase the signal of digital output arduino to SCR that was not strong enough to trigger the wireless trigger PT-04TM to flash, i solved the problem this way.

I don´t understand anything of arduino or electronics, my first contact with this "world" was in this project, so if anyone who understand about this want to analyse the question and turn the code better go for it!!!

Anyway thank´s for the help!

AWOL

Code: [Select]
if (meet == LOW){                     
  delay(100); // delay between sound and flash
  digitalWrite(flashPin, HIGH);
  delayMicroseconds (20);  //stretch or contract this
  digitalWrite(flashPin, LOW);

would be my first guess.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

hdborges


Code: [Select]
if (meet == LOW){                     
  delay(100); // delay between sound and flash
  digitalWrite(flashPin, HIGH);
  delayMicroseconds (20);  //stretch or contract this
  digitalWrite(flashPin, LOW);

would be my first guess.


It works, so where was the problem with the power of SCR

Kaouthia


I use an optocoupler with a lot of success, 2n35 I think.  I'd think a SSR (Solid State Relay) would be overkill, but would work.  Just remember older external flashes (and cheap new ones) sometimes dump a couple hundred volts or more across those terminals.  An NPN transistor isn't enough.

I use 4N25 optoisolators in mine too, so I can keep everything separate.  I've stolen the 3 pin socket off an RF-602 receiver so I can hook cameras or flash up to it.  Don't fancy something going wrong and it frying a D300s. :)

I haven't seen too many newer cheap flashes running on high voltage though.  I've tested mine with the the Yongnuo YN460-II and YN-560 flashes with no problems (dirt cheap, and as powerful as an SB-800, although only the YN-560 has the zoomable head).  Also used mine with SB-600 and SB-900 flashes, as well as wirelessly through an RF-602 Tx to half a dozen flashes on receivers.

http://www.flickr.com/photos/kaouthia/5618517731/in/photostream

If I'm triggering flashes (as opposed to the camera), I just use the "Full Press" signal ("Half Press" happens about half a second before I actually need it to go off to ensure the camera's woken up, and ready to take a shot the instant it sees a full press signal).
John

AWOL

Quote
It works, so where was the problem with the power of SCR

You're the one with the hardware, you tell me.

My guess was the pulse was too short, but I haven't used an SCR in over twenty years, and don't have one to try anything with.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Kaouthia

My guess was the pulse was too short

I don't know about the SCR, but using the 4N25 optoisolators, I just used a 50ms delay to hold the pin high.  That'll trigger a Nikon camera (assuming half-press was set in advance) or a flash (once) no problem.
John

AWOL

I use relays (focus/shutter) for my camera and usually give them at least 100ms, but I know my Vivitar 283s will trigger from a one microsecond pulse to a MOC3020, so the inherent delay in a digitalWrite HIGH then LOW would be overkill.

My recollection of SCRs was that they latched on very short pulses, but back then, I didn't have a 'scope.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Go Up