Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #15 on: May 26, 2011, 05:20:28 pm » |
yes, everything looks ok, but no sucess.
Any sugestions?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 143
Posts: 19380
I don't think you connected the grounds, Dave.
|
 |
« Reply #16 on: May 27, 2011, 01:28:12 am » |
Put a LED in place of the SCR and see if it lights.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #17 on: May 27, 2011, 04:29:48 am » |
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?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #18 on: May 27, 2011, 06:33:05 am » |
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
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #19 on: May 27, 2011, 07:54:23 am » |
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); }
}
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 143
Posts: 19380
I don't think you connected the grounds, Dave.
|
 |
« Reply #20 on: May 27, 2011, 08:00:17 am » |
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);" ?
|
|
|
|
« Last Edit: May 27, 2011, 08:02:27 am by AWOL »
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #21 on: May 27, 2011, 08:25:31 am » |
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!
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 143
Posts: 19380
I don't think you connected the grounds, Dave.
|
 |
« Reply #22 on: May 27, 2011, 08:34:49 am » |
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.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #23 on: May 27, 2011, 08:50:48 am » |
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
|
|
|
|
|
Logged
|
|
|
|
|
Lancaster, England
Offline
Jr. Member
Karma: 0
Posts: 85
|
 |
« Reply #24 on: May 27, 2011, 09:03:16 am » |
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/photostreamIf 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).
|
|
|
|
|
Logged
|
John
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 143
Posts: 19380
I don't think you connected the grounds, Dave.
|
 |
« Reply #25 on: May 27, 2011, 09:21:51 am » |
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.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Lancaster, England
Offline
Jr. Member
Karma: 0
Posts: 85
|
 |
« Reply #26 on: May 27, 2011, 09:48:11 am » |
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.
|
|
|
|
|
Logged
|
John
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 143
Posts: 19380
I don't think you connected the grounds, Dave.
|
 |
« Reply #27 on: May 27, 2011, 09:57:44 am » |
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.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
|