Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[PROBLEM] Problem detecting IR Sensor on GPIO
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: Problem detecting IR Sensor on GPIO
29th Jun, 2015, 08:17 AM
Post: #1
John Holmwood Offline
Registered
Posts: 2
Joined: Jun 2015
Reputation: 0
Problem detecting IR Sensor on GPIO
Software
XBian version: 1.1
XBMC/Kodi version: 14.2
Overclock settings: default

Hardware
Device type and model: Raspberry Pi Model B+
Power supply rating:
SD card size and make/type: 8 GB
Network (Ethernet or wireless): Wireless
Connected devices (TV, USB, network storage, ...): NFS mounted NAS; connected to media centre via HDMI

Log files
Link to logfile(s):

Problem description:
I looked at "IR Prob" in the threads as it seemed to be similar but couldn't see a solution.

I am attempting to add a GPIO IR sensor following:
(http://www.instructables.com/id/Raspberry-Pi-2-Media-Center-Kodi-on-XBian/step6/Step-6-Optional-Install-and-configure-infrared-rem/) Raspberry Pi 2 Media Center: Kodi on XBian

Everything else is working as expected.

However when I try to detect the output from the remote (a UEI DVR-1055) the system doesn't detect anything with either irw or mode2. I placed a LED in series with the sensor output. The led is not very bright but I can see it flicker when I press keys on the remote.

My question is what do I do next? The sensor is working and sending in pulses but the RPi doesn't seem to detect them. How can I troubleshoot the GPIO input?

How to reproduce:
I tried following the troubleshooting steps in:

(http://aron.ws/projects/lirc_rpi/) Raspberry Pi lirc_rpi - (IR Remote control) LIRC GPIO driver

xbian@xbian ~ $ sudo modprobe lirc_rpi debug=1
xbian@xbian ~ $ dmesg | grep lirc
[ 10.496277] lirc_dev: IR Remote Control driver registered, major 247
[ 10.548769] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[ 11.463637] lirc_rpi: auto-detected active high receiver on GPIO pin 18
[ 11.463956] lirc_rpi lirc_rpi.0: lirc_dev: driver lirc_rpi registered at minor = 0
[ 11.463971] lirc_rpi: driver registered!
[ 16.912180] input: lircd as /devices/virtual/input/input0
[ 50.620376] lirc_rpi: AIEEEE: 0 0 55906714 559066f3 19e7b 8301c

This show the IR sensor is auto-detected on GPIO18 so lirc is running OK

xbian@xbian ~ $ sudo irw
^Cxbian@xbian ~ $ sudo cat /proc/interrupts
CPU0
3: 744615 ARMCTRL BCM2708 Timer Tick
16: 0 ARMCTRL bcm2708_fb dma
24: 258 ARMCTRL DMA IRQ
25: 2004 ARMCTRL DMA IRQ
32: 1183279 ARMCTRL dwc_otg, dwc_otg_pcd, dwc_otg_hcd:usb1
52: 148 ARMCTRL BCM2708 GPIO catchall handler
65: 23 ARMCTRL ARM Mailbox IRQ
66: 37830 ARMCTRL VCHIQ doorbell
75: 1 ARMCTRL
79: 101 ARMCTRL bcm2708_i2c.1
80: 0 ARMCTRL bcm2708_spi.0
84: 8848 ARMCTRL mmc0
188: 148 GPIO lirc_rpi
FIQ: usb_fiq
Err: 0

This shows the interrupt has been set up. Note that irw did not detect any key presses.
Find all posts by this user
Quote this message in a reply
29th Jun, 2015, 06:09 PM
Post: #2
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Problem detecting IR Sensor on GPIO
http://wiki.xbian.org/doku.php/remotes

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
30th Jun, 2015, 02:22 AM
Post: #3
John Holmwood Offline
Registered
Posts: 2
Joined: Jun 2015
Reputation: 0
RE: Problem detecting IR Sensor on GPIO
Thanks. I already tried the suggestions on this page. However neither irw nor mode2 give any output so I can't get beyond step 1.
Find all posts by this user
Quote this message in a reply
30th Jun, 2015, 04:09 AM
Post: #4
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Problem detecting IR Sensor on GPIO
If mode2 doesn't give any output then either you loaded the module wrongly or your connection are bad.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
1st Jul, 2015, 11:38 AM
Post: #5
John Holmwood Offline
Registered
Posts: 2
Joined: Jun 2015
Reputation: 0
RE: Problem detecting IR Sensor on GPIO
Problem solved. I shorted the output of the IR sensor to +5v This caused mode2 to detect pulses so the problem is in the sensor. Time for a new one.
Find all posts by this user
Quote this message in a reply
14th Jul, 2015, 07:58 AM
Post: #6
f1vefour Offline
Administrator
******
Posts: 1,342
Joined: Mar 2013
Reputation: 58
Re: RE: Problem detecting IR Sensor on GPIO
(1st Jul, 2015 11:38 AM)John Holmwood Wrote:  Problem solved. I shorted the output of the IR sensor to +5v This caused mode2 to detect pulses so the problem is in the sensor. Time for a new one.

Some sensors require 5v, some 3.3, and some will work on either.

Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us.
Visit this user's website Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  GPIO IR Sensor - Not working IYellowSnowI 8 25,365 4th Mar, 2014 03:55 PM
Last Post: CurlyMo

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 20th May, 2025, 07:41 AM Powered By MyBB, © 2002-2025 MyBB Group.