Instead of IR transmitter / receiver, wire directly?

GekoCH:
Hy

I currently use an Arduino to control a device over an IR LED.
Is it possible to use two wires directly from the Arduino
output to the IR of the device and use the same code I used
before to control it via the IR LED?

Andy

Probably the easiest way to do it (and avoid any ground loop or polarity problems) would be to use an opto-isolator.

The circuit that drives the IR LED would go to the opto input and it's output would go to the IR receiver circuit.