Here is a complete IR remote-control system that consists of a simple transmitter (A) and an equally simple receiver (B).