PHP Blog

Home Login

IR Send / Receive

IR send/receive (https://www.digikey.de/en/maker/tutorials/2021/how-to-send-and-receive-ir-signals-with-a-raspberry-pi)

  1. config.txt - dtoverlay - verify appropriate GPIO pins
  2. sudo ir-keytable -c -p all -s rc1 -t (-p all) & (-s rc1)
  3. IR Sender: ir-ctl -S rc5:0x10 -d /dev/lirc0

lsmod | grep gpio - to verify that gpio pins are assigned (pinout will also verify IN | OUT)

Setting up a switch to control IR output

  1. send IR signals as before
  2. establish GPIO output (raspi-gpio set ## [BCM] op)
  3. turn switch on/off -> raspy-gpio set ## (dh for 1, dl for 0)





Posted by: admin
2025-02-14 17:10:49

All rights reserved | 2026