Skip to content

Linux Infrared Remote Control

Is a Linux Software that can be used to send & receive infrared commands

Hardware

IR Emitter

IR Receiver

  • Has 3 pin, when looking at the window (VS1838B)
    • Left: Data → Raspberry Pi
    • Middle: Ground → Ground
    • Right: Power → 3.3v
  • When I'm using it on Raspberry Pi 1
    • Ground = Pin 9
    • Data = Pin 11 (GPIO17)

Software with Raspberry Pi

Receiver setup

Source, assuming IR Receiver on GPIO 17 - apt install lirc - nano /etc/lirc/lirc_options.conf conf driver = default device = /dev/lirc0 - nano /boot/config.txt - At the end of the file: - dtoverlay=gpio-ir,gpio_pin=17 - reboot - systemctl stop lircd.service - mode2 -m -d /dev/lirc0 to see inputs

Mapping table

Record

  • List all spaces: irrecord --list-namespace
  • Record in raw mode: irrecord -f
    • And/or use the mode2 command above to complete the file
  • Replay a command: irsend SEND_ONCE remote KEY