The circuit shown is from an optoelectronics manual by Texas Instrruments. The bipolar can be u BC548. This circuit can be used as a shield for microcontrollers.