The time interval of the pulse is used to distinguish whether it is a 0 or 1
signal and the encoding is made up of these 0, 1 signals.
The user code of the same remote control is unchanged. The data code can
distinguish the key.
When the remote control button is pressed, the remote control sends out
an infrared carrier signal. When the IR receiver receives the signal, the
program will decode the carrier signal and determines which key is pressed.
The MCU decodes the received 01 signal, thereby judging what key is
pressed by the remote control.
Infrared receiver we use is an infrared receiver module. Mainly composed
of an infrared receiver head, it is a device that integrates reception,
amplification, and demodulation. Its internal IC has completed
demodulation, and can achieve from infrared reception to output and be
compatible with TTL signals. Additionally, it is suitable for infrared remote
control and infrared data transmission. The infrared receiving module
made by the receiver has only three pins, signal line, VCC and GND.
According to the picture above, the integrated port of the infrared receiver
is connected to the G port on the motor driver board and controlled by the
the P9 of the micro:bit.