I'm trying to turn on a light with my iPhone by using my Arduino board and the C2-TTL cable that I just got. The issue is the desktop light has it's own circuit board and controller that it uses for motion detection, so I took it apart and found the 2 wires needed to complete the switch and turn the light on. The light turns on when I touch these 2 wires together and turns off when you touch the wires together a second time. So my goal is simple, just touch 2 wires together for a split second.
I already made a simple circuit that is using Arduino to send a 'high' signal out of pin 7 and trips a relay to connect the 2 leads when the Arduino board receives the signal from my iPhone app that I made. The relay acts as my switch to turn the light on/off by completing the circuit, but now I want to completely remove the relay from the equation and only use Arduino to connect the two wires digitally. I figured I need to set 1 pin to an input for one of the leads and another pin to an output for the other lead, then just tell Arduino to bridge the connection and take input 1 and connect it to output 2 to send the signal to the light's control board to turn on. But I'm not sure how to put the sketch together to take one pin's input and send it out of another pin's output.
How would I write the sketch to do this? Can anyone help me out with the code? It sounds easy but I can't find much on this topic so any help would be greatly appreciated.