1 x pcDuino V2
1 x Infrared Controller *1
1 x Linker Infrared Receiver Module
Several Jumper wires
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Wiring Diagram
Linker Infrared Receiver VCC => pcduino +3v
Linker Infrared Receiver GND => pcduino GND
Linker Infrared Receiver OUT => pcduino D11
Note: You can use Linker base Shield for easier connection.
Step 2: Installation
Install relevant software
$ sudo apt-get update && sudo apt-get install pcduino-linux-header-3.4.29+
$ git clone https://github.com/liaods/modules
If you did have git, you need to install it first.
$ sudo apt-get install git-core
Compile the downloaded file mod
$ cd /home/ubuntu/modules
$ make M=`pwd` -C /usr/src/linux-headers-3.4.29+/
Load the infrared module
$ sudo insmod ir-keypad.ko pin=11
pin=11 means Linker Infrared Receiver connected to GPIO11, you can choose the GPIO from GPIO0-4 or GPIO 7-17. Without pin=xx, the default is 8
Step 3: Test
Receive the key value:
$ sudo cat /proc/kmsg
Source has 32 bit, for example 0xe619ff00, the top 8 bit (e6) is data code, the next 8 bit (19) is Anti-code, the last 16 bit (ffoo) is user code.
Note: The same infrared controller has the same user code. Different controller has the different code, you can modify the remote.h file under /home/ubuntu/modules/pcduino-ir-keypad