harvey_slash
Posts: 34
Joined: Fri Apr 04, 2014 10:17 am

LIRC / Raspberry PI 2 , No input

Tue Mar 10, 2015 7:42 am

I want to use LIRC with my new RPI 2. To do that, I followed http://alexba.in/blog/2013/01/06/settin ... spberrypi/tutorial. Basically it is telling me to do the following:

Add this to your /etc/modules file:

lirc_dev lirc_rpi gpio_in_pin=25 gpio_out_pin=22
2.
Change your /etc/lirc/hardware.conf file to:

#
/etc/lirc/hardware.conf

#

Arguments which will be used when launching lircd LIRCD_ARGS="--uinput"

Don't start lircmd even if there seems to be a good config file

START_LIRCMD=false

Don't start irexec, even if a good config file seems to exist.

START_IREXEC=false

Try to load appropriate kernel modules LOAD_MODULES=true

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"

Default configuration files for your hardware if any LIRCD_CONF="" LIRCMD_CONF=""

#
3.

Edit your /boot/config.txt file and add:

dtoverlay=lirc-rpi,gpio_in_pin=25,gpio_out_pin=22
(ive done gpio_in_pin=25, because thats where I want the receiver to be ).

Another thing: I dont have a three pin IR receiver, so I tried to make my own receiver(two pins) like this: One pin is coming from the PI's 5v , going to the collector of the transistor. Another one is coming from the GPIO 25 , and the emitter.

Image


But, when I run mode2 -d /dev/lirc0 and press a few buttons on the remote (2cm away from the sensor), I get nothing.

What is wrong ? I have run rpi-update, apt-get upgrade and apt-get update also.

User avatar
Paul Webster
Posts: 797
Joined: Sat Jul 30, 2011 4:49 am
Location: London, UK
Contact: Twitter

Re: LIRC / Raspberry PI 2 , No input

Tue Mar 10, 2015 9:07 am

The guide that you are following is pre-DeviceTree era but you are using software that defaults to having Device Tree enabled.
If you search forum for Device Tree and LIRC you will find various tips.

You could try to verify things by (temporarily) disabling Device Tree through a config.txt setting.

harvey_slash
Posts: 34
Joined: Fri Apr 04, 2014 10:17 am

Re: LIRC / Raspberry PI 2 , No input

Tue Mar 10, 2015 9:53 am

I have disabled device tree, but it still doesnt show any pulses. What should I try now ?

DirkS
Posts: 9871
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: LIRC / Raspberry PI 2 , No input

Tue Mar 10, 2015 10:50 am

Looking at the photo 5V and GPIO26 are connected.
In your settings you're using GPIO25...

harvey_slash
Posts: 34
Joined: Fri Apr 04, 2014 10:17 am

Re: LIRC / Raspberry PI 2 , No input

Tue Mar 10, 2015 11:08 am

whaaaaaa?
i thought THAT is pin 25. Just checked, you were totally right!
IT WORKS!!! couldnt imagine it was this simple a problem

Thanks a ton :)

Return to “Troubleshooting”