User Manual
114
Step 2: Download the LIRC library
sudo apt-get install lirc
Step 3: Set up lirc:
Open your /etc/modules file:
sudo nano /etc/modules
Add this to the end:
lirc_dev
lirc_rpi gpio_in_pin=23 gpio_out_pin=22
Press Ctrl +O and Ctrl +X, save and exit .
Open the /etc/lirc/hardware.conf file:
sudo nano /etc/lirc/hardware.conf
Modify the file as shown below:
# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="default"
# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE="/dev/lirc0"
MODULES="lirc_rpi"
Press Ctrl +O and Ctrl +X, save and exit.
Copy the configuration file to/home/pi and /etc/lirc:
cd /home/pi/SunFounder_SensorKit_for_RPi2
cp lircd.conf /home/pi
sudo cp lircd.conf /etc/lirc/
Open the /boot/config.txt file:
sudo nano /boot/config.txt
Add the following line to the end:
dtoverlay=lirc-rpi:gpio_in_pin=23,gpio_out_pin=22
Press Ctrl +O and Ctrl +X, save and exit.
Reboot the Raspberry Pi after the change.
sudo reboot
Step 4: Test the IR receiver










