OS/Orange PI
Orange Pi Zero Plus2 H5 - IR Receiver
파란크리스마스
2018. 1. 8. 13:26
728x90
Orange Pi Zero Plus2 H5 - Expansion Board
출처 : How to setup Infrared Remote Control in Orange pi Zero using lircd and python – Codelectron
버섯돌이의 허큘렉스 다루기 - IR 입문(2.LIRC 설정및 테스트) - 국내 최대 전자부품 전문 쇼핑몰 아이씨뱅큐
Orange Pi Zero + USB audio card + LIRC - Allwinner H2 & H3 - Armbian forum
Guide: Configuring Orange PI PC+ to receive IR with LIRC - Allwinner H2 & H3 - Armbian forum
Armbian verion 확인
$ cat /etc/armbian-release ## PLEASE DO NOT EDIT THIS FILE BOARD=orangepizeroplus2-h5 BOARD_NAME="Orange Pi Zero Plus 2" VERSION=5.34.171121 LINUXFAMILY=sunxi64 BRANCH=next ARCH=arm64 IMAGE_TYPE=nightly BOARD_TYPE=conf INITRD_ARCH=arm64 KERNEL_IMAGE_TYPE=Image
IR Receiver 모듈 설치
$ sudo armbian-config
IR Receiver 모듈 설치 확인
$ dmesg | grep sunxi-ir [ 5.845560] rc rc1: sunxi-ir as /devices/platform/soc/1f02000.ir/rc/rc1 [ 5.845702] input: sunxi-ir as /devices/platform/soc/1f02000.ir/rc/rc1/input3 [ 5.851001] rc rc1: lirc_dev: driver ir-lirc-codec (sunxi-ir) registered at minor = 0 [ 5.851144] sunxi-ir 1f02000.ir: initialized sunXi IR driver $ lsmod | grep ir ir_xmp_decoder 16384 0 ir_mce_kbd_decoder 16384 0 ir_sharp_decoder 16384 0 ir_sanyo_decoder 16384 0 ir_sony_decoder 16384 0 ir_jvc_decoder 16384 0 ir_rc6_decoder 16384 0 ir_nec_decoder 16384 0 ir_rc5_decoder 16384 0 ir_lirc_codec 16384 0 lirc_dev 16384 1 ir_lirc_codec sunxi_cir 16384 0 rc_core 32768 15 ir_sanyo_decoder,ir_rc6_decoder,ir_nec_decoder,ir_mce_kbd_decoder,ir_xmp_decoder,ir_sony_decoder,ir_lirc_codec,ir_sharp_decoder,cec,lirc_dev,ir_jvc_decoder,sunxi_cir,ir_rc5_decoder $ ls /dev/lirc* /dev/lirc0
lirc 패키지 설치
$ sudo apt install lirc
mode2 실행하고 리모콘으로 신호 받기
$ mode2 -d /dev/lirc0 space 16777215 pulse 152 space 16944 pulse 216 space 93673 pulse 112 ^C