RPI IR
Install and Demo Record
Header text | Header text | Header text |
---|---|---|
Install LIRC | sudo apt-get install lirc | Example |
config GPIO |
|
lirc_dev lirc_rpi gpio_in_pin=18 gpio_out_pin=17 |
Config modules | ||
Config LIRC | sudo nano /etc/lirc/hardware.conf |
edit: LIRCD_ARGS="--input –listen" DRIVER="default" DEVICE="/dev/lirc0" MODULES="lirc_rpi" if file not avaialble, then just create as follow LIRCD_ARGS=”–uinput –listen” LOAD_MODULES=true DRIVER=”default” DEVICE=”/dev/lirc0″ MODULES=”lirc_rpi” |
Config LIRC 02 | sudo nano /etc/lirc/lirc_options.conf |
Edit line driver = default device = /dev/lirc0 |
Try it service |
Command sudo /etc/init.d/lirc stop sudo /etc/init.d/lirc start Or sudo /etc/init.d/lircd stop sudo /etc/init.d/lircd start | |
Run on receiver | mode2 -d /dev/lirc0 |
Data receive like below
|
Record and Send
- nice reference tutorial here.
Header text | Header text | Header text |
---|---|---|
config send |
|
config common keys
|
Back up lircd.conf, and replace it by ed.lircd.conf |
|
|
List commands in name space called ed | irsend LIST ed "" |
|
Send commands |
|
,