Go Down

Topic: Virtual switch (Read 2 times) previous topic - next topic

Carnyworld

I have a camera flash that is triggered by putting two wires together. Is there any way to trigger that by plugging the wires into my arduino duemilanove and typing something into the serial monitor? It will need to be triggered my a left mouse click.
C program run. C program crash. C programmer quit.

CrossRoads

Yes.
See the Learning or Playground section for accepting Serial input.
Use a relay like this to close the contacts
http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=PB1110-ND
http://media.digikey.com/pdf/Catalog%20Drawings/Relays/FX2%20RELAY%20NON%20LATCHING%20FTPRNT.jpg
Connect one side of the Coil to +5V (Pin 1), the other (Pin10) to one side of a 15 ohm resister, the other side of the resister to an arduino output pin that you will drive low to energize the relay (and you may not need the resister, but start with it). Put a diode across pins  1 (cathode) and 10 (anode) to voltage spikes away from the arduino pin
(such as http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=1N4004FSTR-ND).
Connect pins 4 & 5 to your contacts.
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Carnyworld

Is there anyway I can do this all without external hardware?
C program run. C program crash. C programmer quit.

Carnyworld

All I need to do really is touch two wires together momentarly. The problem is it is needs to be triggered by a left click as the program I am using converts sound into a left click
C program run. C program crash. C programmer quit.

CrossRoads

The arduino does not have isolated pins that allow you to connect external signals together.
Without knowing what the two wires have on them for voltage and how much current flows when connected, the best you can do is an external part to keep from blowing out the arduino.
Do you have a multimeter? Can you make some measurements on the pins? Is there a ground that the arduino ground can connect to?
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Go Up