The IR LED and the normal LED are both similar and can easily be mixed up so be careful when you store them. The fully black one is the receiver and it has to be connected in reverse bias (see the circuit). This is a fairly simple circuit and I don’t think It need much explanation. Go ahead and complete the circuit as it is. 2. The Comparators: I forgot to tell you before, the range of conduction of the IR Receiver varies with the variation the intensity of Infrared light falling on it in other words, the line sent the comparator in the previous circuit returns an analog value (0-5v) depending on the IR incidence.
It’s going to be obnoxious to use ADC’s to convert them into digital. This is when a comparator comes in handy. A comparator is a device that compares a reference voltage with the input voltage and return logic HIGH or LOW based on the comparison. In short, it converts the analog values into digital values based on a reference input given to it.