GPIO IR Sensor - Not working
|
2nd Mar, 2014, 07:24 AM
Post: #1
|
|||
|
|||
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 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 I ran these commands: Terminal sudo lsmod sudo modprobe lirc_rpi sudo lsmod Terminal Module Size Used by lirc_rpi 4756 3 lirc_dev 6580 1 lirc_rpi 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? |
|||
2nd Mar, 2014, 09:46 AM
Post: #2
|
|||
|
|||
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
|
|||
2nd Mar, 2014, 12:24 PM
Post: #3
|
|||
|
|||
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? |
|||
2nd Mar, 2014, 07:08 PM
Post: #4
|
|||
|
|||
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
|
|||
3rd Mar, 2014, 08:48 AM
Post: #5
|
|||
|
|||
RE: GPIO IR Sensor - Not working | |||
3rd Mar, 2014, 10:18 AM
Post: #6
|
|||
|
|||
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
|
|||
3rd Mar, 2014, 04:53 PM
(This post was last modified: 3rd Mar, 2014 04:54 PM by f1vefour.)
Post: #7
|
|||
|
|||
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. |
|||
4th Mar, 2014, 02:32 PM
Post: #8
|
|||
|
|||
RE: GPIO IR Sensor - Not working
(3rd Mar, 2014 04:53 PM)f1vefour Wrote: Try it on the raspberries 5v power output. 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. |
|||
4th Mar, 2014, 03:55 PM
Post: #9
|
|||
|
|||
Re: GPIO IR Sensor - Not working
I also think the sensor is broken.
pilight - modular domotica solution
|
|||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies | Views: | Last Post | |
[PROBLEM] Problem detecting IR Sensor on GPIO | John Holmwood | 5 | 16,707 |
14th Jul, 2015 07:58 AM Last Post: f1vefour |
|
TSOP4838 on GPIO, mode2 works, irw not working. | valurgud | 13 | 36,382 |
2nd Dec, 2013 07:52 AM Last Post: CurlyMo |