For infrared remote control design, it should be said that every development board now has infrared modules, and most of them are equipped with corresponding programs. But in fact, you can write decoding programs by yourself, and you can practice what you have learned, without talking about how the programs are written. In this process, you will certainly benefit a lot. Now I will share the decoding program I wrote in the afternoon with you, looking forward to the presence and correction of experts. First of all, we must understand some basic principles. In fact, when you press a key of the remote control, the remote control will send out a series of modulated signals. After the signal is received by the infrared integrated module, the demodulated digital pulse will be output. Each key corresponds to a different pulse, so you can identify different keys by identifying different pulses.