Decoding Of Infrared Remote Control Software


This Infrared Remote Control Software project based on Microchip 16C57 microcontroller is a reference guide to decode infrared remote control signals from television, VCR, air conditioner or other home appliances handset that uses NEC 6121 infrared format. Once one is able to understand how to decode an IR signal of a certain format, decoding another format can be easily done as the flow chart is more or less the same except the timing of the new format.





The NEC 6121 format is based on pulse width timing in determining whether the data transmitted is "1" or "0". The data "1" is determined by the pulse width timing from one rising edge to the next rising edge of 2.24ms. The data "0" is determined by the pulse width timing from one rising edge to the next rising edge of 1.12ms.

Most of the transmitter are modulated using a frequency of 32.75 kHz, 35.0 kHz, 36.0 kHz, 36.7 kHz, 38 kHz, 39 kHz, 40 kHz, 41.7 kHz, 48 kHz, and 56.8 kHz. The ones that are commonly used are 38 kHz and 40 kHz. In order to decode the received signals, the corresponding demodulating receiver must be used.

For instance, if a modulating frequency at the transmitter used is 40 kHz, then the receiver demodulating frequency used should be 40 kHz as well. Modulating the data is a better design as this will make the data integrity better and less susceptible to noise. The demodulating receivers can be obtained from suppliers such as Vishay, LiteOn, Sharp or Kodenshi. One word of caution when using the IR remote control is that it is easily affected by lighting devices that emits the infrared frequency. One such example is the fluorescent tube which emits the infrared frequency in its operation.

When this type of lights is operating, the receiver may not be able to receive the signal from the transmtter due to interference from the signals emitted by the flurescent tube. In situation like this, confirm this by switching off the lights when controlling the device.

You may want to consider using RF frequency as a solution in this particular location. Another way is to place a filter in front of the receiver to narrow the infrared window but this solution will compromise the angle and operating distance of the infrared transmitter. 

Get the schematic and application note of the infrared remote control software here.









New! Comments

Have your say about what you just read! Leave us a comment in the box below.