The circuit shown in the figure modulates a low power infrared LED with TTL signals. The circuit can be used on a digital link. Transistors support equivalents. We found this configuration in a Texas Instruments optoelectronics manual.