I have wired up an infrared transmitter using a Teensy 3.1 and a raw IR LED. The anode is connected to pin 5, running through a 47 Ohm resistor, and the cathode is connected to ground. I'm controlling a Raspberry Pi wired to a typical IR receiver, running LIRC. It works pretty well in low light (consistent results from about 10 feet away), but with all the room lights on I need to be within about 4-5 feet for the remote to work. This is poor compared to any off the shelf IR remote control.
I assume it's a current issue, since the Teensy 3.1 can only output 10ma on pin 5 but the LED is capable of 100ma when pulsed. I plan to run the LED on a 4-5 foot cable away from the Teensy too, so that will further degrade the power. Any recommendations? How would I drive the power off the 5V supply using pin 5 just for signal rather than voltage supply?
I assume it's a current issue, since the Teensy 3.1 can only output 10ma on pin 5 but the LED is capable of 100ma when pulsed. I plan to run the LED on a 4-5 foot cable away from the Teensy too, so that will further degrade the power. Any recommendations? How would I drive the power off the 5V supply using pin 5 just for signal rather than voltage supply?