So I am trying to trigger a Canon camera with an Arduino Mega. The camera has a little port where two wires need to be connected to take a picture. This part is simple. Just short the wires, and the shutter is triggered. I am trying to short these two cables with a 6n137 Optocoupler. I have 10 of them, so I might as well use them if they work for this.
I do not understand the shematic in the data sheet. I am an engineer. I can get stuff to work from tutorials, but I find it hard to come up with the circuit for this myself and I did not find any tutorials using this optocoupler.
How do I connect this optocoupler to the Arduino? So far, all pins are available.
Do I need a resistor or a diode anywhere?
For the code, do I just need to digitalwrite a pin to 1 or 0 to switch the optocoupler? Like a normal relay?
Thanks a lot and feel free to ask me any engineering questions or design tips. Thats something that I can help with. : )