Introduction: Get IR Keypad Value by Linker Infrared Receiver on PcDuino

Picture of Get IR Keypad Value by Linker Infrared Receiver on PcDuino

1 x pcDuino V2
1 x Infrared Controller  *1
1 x Linker Infrared Receiver Module
Several Jumper wires

Step 1: Wiring Diagram

Picture of 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
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

Picture of 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

Comments

craftclarity (author)2014-04-01

This looks cool, what can you use it for?

About This Instructable

2,002views

16favorites

License:

More by Yanny Guo:Use pcDuino as Photo Booth ControllerUse Si4703 FM Breakout Board on Arduino UnoUse SIM900 GPRS/GSM Shield on pcDuino
Add instructable to: