Offline
Newbie
Karma: 0
Posts: 3
|
 |
« on: September 28, 2012, 05:14:10 pm » |
Hi all, I'm totally new to Arduino and I'm trying my first little project. I'm using the Arduino Button tutorial with Debounce ( http://arduino.cc/en/Tutorial/Debounce) and have successfully been able to trigger my pocket wizard by replacing the led with connections to the pocket wizard, but it stays on when I want it to turn off when the button is released. The LED light I tested turns off just fine when the button is released. I would also like to add a slight delay from when the button is pressed to when the pocket wizard is triggered. A pocket wizard is a wireless flsah trigger, which uses a standard 1/8" jack. When you short the top pin and ground, it triggers the pocket wizard. Here is a reference video https://www.youtube.com/watch?v=rSSJNjfKDmIThank you!
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 138
Posts: 19067
I don't think you connected the grounds, Dave.
|
 |
« Reply #1 on: September 28, 2012, 05:54:19 pm » |
When you short the top pin and ground, If you don't know what you're doing, then a simple reed relay to short the contacts would protect both your Arduino and your trigger.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 3
|
 |
« Reply #2 on: September 28, 2012, 07:41:56 pm » |
I don't know what I'm doing, but I did just figure out the triggering. Now just trying to get the delay working...
|
|
|
|
|
Logged
|
|
|
|
|
California
Offline
Edison Member
Karma: 41
Posts: 1888
|
 |
« Reply #3 on: September 28, 2012, 08:08:03 pm » |
I don't know what I'm doing, but I did just figure out the triggering. Now just trying to get the delay working...
It's easier to give you direction if we can see the code you've got so far...
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 138
Posts: 19067
I don't think you connected the grounds, Dave.
|
 |
« Reply #4 on: September 28, 2012, 08:49:42 pm » |
I did just figure out the triggering. but it stays on when I want it to turn off when the button is released. But not, it seems, the untriggering. If you use a reed relay to short the contacts, you'll avoid damage to your Arduino and your trigger.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 35
Posts: 5947
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #5 on: September 28, 2012, 09:10:23 pm » |
I agree with AWOL. Use a reed relay. A reed relay is essentially the two wires you were holding in the video. Instead of using hands to touch the wires, it uses magnetic force to touch the two wires. To generate the magnetic force, use arduino pin to write HIGH to the relay. A transistor is recommended.
What amount of delay are you trying to get? Seconds, milliseconds or minites?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 3
|
 |
« Reply #6 on: September 29, 2012, 06:24:43 am » |
Thanks guys. By switching the low to high and high to low in the original debounce code it will now trigger and "untrigger" the PW. I will look into the reed relay though as it sounds like the better/safer option.
As far as the delay goes, I will need about a 1/2 to 1 second delay.
|
|
|
|
|
Logged
|
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 35
Posts: 5947
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #7 on: September 29, 2012, 06:14:16 pm » |
Thanks guys. By switching the low to high and high to low in the original debounce code it will now trigger and "untrigger" the PW. I will look into the reed relay though as it sounds like the better/safer option.
As far as the delay goes, I will need about a 1/2 to 1 second delay.
Not hard to get that kind of delay. The logic is to detect a key press and then wait with delay(1000) for 1 second or 1,000 milliseconds.
|
|
|
|
|
Logged
|
|
|
|
|
Ayer, Massachusetts, USA
Offline
Edison Member
Karma: 28
Posts: 1115
|
 |
« Reply #8 on: September 29, 2012, 07:34:28 pm » |
There are various ways to isolate the Arduino from the device you are triggering. I find Terry King's explanation of relays, etc to be useful (I found his wikis from his store links): http://arduino-info.wikispaces.com/ArduinoPower. For lower powered DC devices, you can use an opto-isolator (pc817, 4n25, 4n26). Here is Terry's explanation of opto-isolators: http://arduino-info.wikispaces.com/Popular-ICs. The same link also describes the 555 circuits, which is a way to add a delay without an Arduino. My telegraph shutter release is probably similar to what you want: http://arduino.cc/forum/index.php/topic,117629.0.html.
|
|
|
|
« Last Edit: September 29, 2012, 07:38:25 pm by MichaelMeissner »
|
Logged
|
|
|
|
|
|