jonny789
Posts: 51
Joined: Tue May 14, 2013 2:34 pm
Location: Near My Raspberry Pi

lirc IR receiver problem

Fri Sep 06, 2013 2:00 pm

I am trying to make IR receiver - tsop 1136 work with openELEC and control with my TV remote.
Got all the parts, updates, lirc, configurations done, but i have a problem. When starting

Code: Select all

dmesg | grep lirc_rpi
i get ::

Code: Select all

[   35.442930] lirc_rpi: module is from the staging directory, the quality is un                      known, you have been warned.
[   35.450315] lirc_rpi lirc_rpi.0: lirc_dev: driver lirc_rpi registered at mino                      r = 0
[   35.450340] lirc_rpi: driver registered!
[   36.407388] lirc_rpi: auto-detected active high receiver on GPIO pin 11
On

Code: Select all

mode2 -d /dev/lirc0
i get non-stop spaces and pulses like this::

Code: Select all

space 9086
space 10907
space 50
space 9079
space 10916
pulse 35
space 9088
space 10961
pulse 29
space 9
space 9090
space 10905
pulse 50
space 9088
space 10950
pulse 49
space 9073
space 10971
pulse 33
space 9030
space 10964
pulse 48
space 9055
space 10963
pulse 30
pulse 11
space 9056
space 10980
pulse 50
space 9041
space 10974
pulse 25
space 9032
space 10995
pulse 29
pulse 11
space 9069
space 10923
pulse 29
pulse 8
pulse 27
space 9047
space 10971
pulse 63
space 9025
space 10965
pulse 26
pulse 8
space 8
pulse 8
space 9060
space 10951
pulse 26
pulse 22
space 9068
space 10993
pulse 31
space 9067
space 10944
pulse 65
space 9029
space 10972
pulse 26
space 9070
space 10970
pulse 33
space 9027
space 10984
pulse 45
pulse 10
space 9057
space 10972
pulse 62
space 9035
space 10989
space 9106
space 10959
pulse 26
space 9049
space 10989
pulse 30
space 9070
space 10987
pulse 27
pulse 8
space 9073
space 11003
pulse 25
pulse 8
space 7
space 9032
space 10989
pulse 47
space 9062
space 10991
pulse 32
pulse 29
space 9101
space 10917
pulse 29
space 9078
space 11034
space 9025
space 11008
pulse 32
space 9082
space 10986
pulse 48
space 9067
space 10985
pulse 29
space 9012
space 10996
pulse 50
space 9015
space 10990
space 9038
space 11032
space 9027
space 10998
pulse 40
space 9032
space 11036
space 9003
space 11033
pulse 30
space 8971
space 11043
space 9012
space 11049
pulse 31
space 8948
space 11104
space 8961
space 11098
space 8978
space 11108
pulse 29
space 8974
space 11039
And it goes on and on and on, without pressing any buttons of remote. Also if i disconnect the cable from the data pin of the IR receiver, it also doesn't stop. If i remove the wire from the PIN18 of the raspberry it stops, but if i touch it with my finger it starts again.
Plz help me out...

f1vefour
Posts: 6
Joined: Sat Mar 23, 2013 7:09 pm

Re: lirc IR receiver problem

Fri Sep 06, 2013 4:04 pm

What is your kernel revision and which distribution are you using?

Vypr
Posts: 55
Joined: Tue Apr 09, 2013 2:02 am

Re: lirc IR receiver problem

Sat Sep 07, 2013 4:00 pm

Which GPIO pin do you have the signal pin on the IR module plugged into?

Lirc defaults to accepting signals from GPIO 18, to override this you need to edit /etc/modules.conf and put the following in it:

Code: Select all

lirc_dev
lirc_rpi gpio_in_pin=11
where lirc_rpi_gpio_in_pin points to the gpio pin you have connected the ir receiver to.

f1vefour
Posts: 6
Joined: Sat Mar 23, 2013 7:09 pm

Re: lirc IR receiver problem

Sat Sep 07, 2013 4:31 pm

Good catch Vypr

jonny789
Posts: 51
Joined: Tue May 14, 2013 2:34 pm
Location: Near My Raspberry Pi

Re: lirc IR receiver problem

Sun Sep 08, 2013 12:11 pm

Vypr wrote:Which GPIO pin do you have the signal pin on the IR module plugged into?

Lirc defaults to accepting signals from GPIO 18, to override this you need to edit /etc/modules.conf and put the following in it:

Code: Select all

lirc_dev
lirc_rpi gpio_in_pin=11
where lirc_rpi_gpio_in_pin points to the gpio pin you have connected the ir receiver to.
I was testing it on wheezy-raspbian too and set data pin to 11. But I got same results with both 11 & 18..

Vypr
Posts: 55
Joined: Tue Apr 09, 2013 2:02 am

Re: lirc IR receiver problem

Sun Sep 08, 2013 9:58 pm

jonny789 wrote:
Vypr wrote:Which GPIO pin do you have the signal pin on the IR module plugged into?

Lirc defaults to accepting signals from GPIO 18, to override this you need to edit /etc/modules.conf and put the following in it:

Code: Select all

lirc_dev
lirc_rpi gpio_in_pin=11
where lirc_rpi_gpio_in_pin points to the gpio pin you have connected the ir receiver to.
I was testing it on wheezy-raspbian too and set data pin to 11. But I got same results with both 11 & 18..
Have you got the pins on the IR module the right way round?
I used a TSOP 4838 which has the following pin layout:
Pin 1 - GND
Pin 2 - Vs
Pin 3 - V+

From what I can see, the TSOP1136 has the GND and Vs swapped
Pin 1 - Vs
Pin 2 - GND
Pin 3 - V+

jonny789
Posts: 51
Joined: Tue May 14, 2013 2:34 pm
Location: Near My Raspberry Pi

Re: lirc IR receiver problem

Mon Sep 09, 2013 1:08 pm

Vypr wrote:
jonny789 wrote:
Vypr wrote:
Have you got the pins on the IR module the right way round?
I used a TSOP 4838 which has the following pin layout:
Pin 1 - GND
Pin 2 - Vs
Pin 3 - V+

From what I can see, the TSOP1136 has the GND and Vs swapped
Pin 1 - Vs
Pin 2 - GND
Pin 3 - V+
The first & foremost problem ..I m facing is : I got those space-pulses output continuously..even though there is no IR receiver connected with pins...
This is weird..

Vypr
Posts: 55
Joined: Tue Apr 09, 2013 2:02 am

Re: lirc IR receiver problem

Mon Sep 09, 2013 3:55 pm

jonny789 wrote: The first & foremost problem ..I m facing is : I got those space-pulses output continuously..even though there is no IR receiver connected with pins...
This is weird..
You'll get pulses and spaces because Lirc is getting input from the pin it is monitoring.

Can you describe your pin layout?
Do you have anything in /etc/modules?

Return to “Media centres”