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

GPIO IR Sensor - Not working
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
GPIO IR Sensor - Not working
2nd Mar, 2014, 07:24 AM
Post: #1
IYellowSnowI Offline
Registered
Posts: 4
Joined: Mar 2014
Reputation: 0
GPIO IR Sensor - Not working
Software
XBian version: Latest
XBMC version: Latest
Overclock settings: Turbo

Hardware
Power supply rating: 5V @2A
RPi model (model A/B 256mb/512mb): Model B 512MB
SD card size and make/type: Transcend 8GB Class 10 SDHC
Network (wireless or LAN): LAN
Connected devices (TV, USB, network storage, etc.): Powered USB 2 Hub (with USB Flash Drive running the OS), TV via HDMI (older Samsung that does not support CEC), Network drive via Samba share

Problem description:

I ordered these parts (from adafruit) and tried setting up the sensor/remote with the instructions on the wiki.

It tells me to run the following commands via SSH:
Terminal
xbian@xbian:~# sudo su
root@xbian:~# /etc/init.d/lirc stop
root@xbian:~# mode2
And after I run the "mode2" command, nothing happens, and I either wait a long time or reconnect via SSH to do anything. I pressed every button on my remote at least twice, around 5 inches in front of the sensor.

I've tried different things, such as this post related to Logitech Harmony issues, but still get nothing when I try to run the mode2 command.

I tried running (from this thread):
Terminal
sudo modprobe lirc_rpi
sudo kill $(pidof lircd)
sudo mode2 -d /dev/lirc0
but still get no output after the mode2 command.

I ran these commands:
Terminal
sudo lsmod
sudo modprobe lirc_rpi
sudo lsmod
and one of the results was:
Terminal
Module Size Used by
lirc_rpi 4756 3
lirc_dev 6580 1 lirc_rpi
so I think that means the sensor is being detected.

I've changed the wires connecting to the IR sensor several times, making sure they are in the correct place. I used a camera to see if the IR remote was working (and it appears so). I am wondering if my sensor is "dead" or if I am doing something wrong (most likely). Is there a way I can know if the IR sensor is working or not?
Find all posts by this user
Quote this message in a reply
2nd Mar, 2014, 09:46 AM
Post: #2
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: GPIO IR Sensor - Not working
No it means the kernel module loaded correctly. If mode2 doesn't output anything when pressing buttons, then your connections are wrong.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
2nd Mar, 2014, 12:24 PM
Post: #3
IYellowSnowI Offline
Registered
Posts: 4
Joined: Mar 2014
Reputation: 0
RE: GPIO IR Sensor - Not working
(2nd Mar, 2014 09:46 AM)CurlyMo Wrote:  If mode2 doesn't output anything when pressing buttons, then your connections are wrong.

I connected the IR sensor the same way it is connected in this diagram. Is this how it's supposed to be connected?
Find all posts by this user
Quote this message in a reply
2nd Mar, 2014, 07:08 PM
Post: #4
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: GPIO IR Sensor - Not working
Can you connect a led in between the sensor and the RPi to see if it's working?

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
3rd Mar, 2014, 08:48 AM
Post: #5
IYellowSnowI Offline
Registered
Posts: 4
Joined: Mar 2014
Reputation: 0
RE: GPIO IR Sensor - Not working
(2nd Mar, 2014 07:08 PM)CurlyMo Wrote:  Can you connect a led in between the sensor and the RPi to see if it's working?
I don't have any LEDs lying around, but I hooked up a voltmeter and was getting 3.3V on the sensor.
Find all posts by this user
Quote this message in a reply
3rd Mar, 2014, 10:18 AM
Post: #6
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
Re: GPIO IR Sensor - Not working
That doesn't say anything, because it can be an active high or active low sensor.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
3rd Mar, 2014, 04:53 PM (This post was last modified: 3rd Mar, 2014 04:54 PM by f1vefour.)
Post: #7
f1vefour Offline
Administrator
******
Posts: 1,342
Joined: Mar 2013
Reputation: 58
Re: GPIO IR Sensor - Not working
Try it on the raspberries 5v power output.

Top right pin instead of the top left.

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
4th Mar, 2014, 02:32 PM
Post: #8
IYellowSnowI Offline
Registered
Posts: 4
Joined: Mar 2014
Reputation: 0
RE: GPIO IR Sensor - Not working
(3rd Mar, 2014 04:53 PM)f1vefour Wrote:  Try it on the raspberries 5v power output.

Top right pin instead of the top left.

Tried that. Still got nothing over mode2. I installed Raspbmc and tried to get it working (both on the 3.3V and the 5V), but mode2 was still giving me nothing. I'm gonna see if I can get the sensor replaced.
Find all posts by this user
Quote this message in a reply
4th Mar, 2014, 03:55 PM
Post: #9
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
Re: GPIO IR Sensor - Not working
I also think the sensor is broken.

pilight - modular domotica solution
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
  [PROBLEM] Problem detecting IR Sensor on GPIO John Holmwood 5 17,451 14th Jul, 2015 07:58 AM
Last Post: f1vefour
  TSOP4838 on GPIO, mode2 works, irw not working. valurgud 13 37,603 2nd Dec, 2013 07:52 AM
Last Post: CurlyMo

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

Current time: 12th May, 2025, 05:54 AM Powered By MyBB, © 2002-2025 MyBB Group.