Base Input

📡 IR Remote Control (Transmitter)

📌 Description

An IR remote control sends signals using infrared light. Each button has a unique code that the receiver can read. These codes can be expressed as raw hexadecimal values or simplified hex‑commands. Using hex‑commands makes programming easier and cleaner.

🎯 Use

In our projects, the IR remote is used to:

  • Control robots wirelessly.
  • Send commands like forward, backward, left, right.
  • Trigger actions such as turning LEDs on/off or changing modes.

👉 Think of the IR remote as the robot’s wireless joystick — it sends instructions with button presses.


🖥️ Button Codes (Hex‑Command)

Here’s the simplified mapping of buttons to hex‑commands:

Button Hex‑Raw Hex‑Command
1 0xba45ff00 0x45
2 0xb946ff00 0x46
3 0xb847ff00 0x47
4 0xbb44ff00 0x44
5 0xbf40ff00 0x40
6 0xbc43ff00 0x43
7 0xf807ff00 0x07
8 0xea15ff00 0x15
9 0xf609ff00 0x09
* 0xe916ff00 0x16
0 0xe619ff00 0x19
# 0xf20dff00 0x0d
Up 0xe718ff00 0x18
Left 0xf708ff00 0x08
Right 0xa55aff00 0x5a
Down 0xad52ff00 0x52
Ok 0xe31cff00 0x1c

✅ Conclusion

  • Each button on the IR remote has a unique hex‑command.
  • Using these codes, you can program your robot to respond to button presses (e.g., move forward when pressing “Up”).
  • The hex‑command format is shorter and easier to handle than raw codes, making your code cleaner.
On this page