So, my next move will be changing that IR sensor and installing the leds (link below) -> solder them (2) in series with aprox 17ohm reistor and power them from the 5V pin, through a transistor which will be controlled by "IR ledpin".
Lets see if it it going to work better this way...
Are you going to use a logic level mosfet or NPN transistor.
An NPN transistor also has some dropout voltage.
Calculate 0.5volt for e.g. a 2N2222 with 470ohm base resistor.
In that case your CL resistor should be 12ohm.
Leo..
No.
Emitter to Arduino ground.
470ohm resistor between Arduino pin and base.
String of "resistor and two LEDs" between 5volt and collector.
Fifth image on this page.
Leo..
wvmarle:
Or you have to use a PNP transistor, like this:
That's an NPN transistor used as emitter follower.
Dropout voltage is higher than grounded emitter, and could be too much for two IR LEDs in series.
The circuit I suggested should work when the LEDs are at the end of a 7meter wire.
Just leave the 12ohm resistor and the transistor near the Arduino.
Post a diagram, so we can check.
Leo..