I've tried to follow some tutorials on installing an IR sensor to GPIO, with the goal of using an old Xbox remote with OSMC. They basically say to connect it up to pins 1 (3V3), 6 (GND) and 12 (GPIO 18). My sensor is for 4.5V, tsop1556, that I salvaged from a broken Xbox dongle, so I've also tried making it work on 5V.
Some tutorials say to disable GPIO IR support in Kodi to be able to test the sensor withmode2, but when I disable it I can no longermodprobe lirc_rpi after a reboot. Instead I getmodprobe: ERROR: could not insert 'lirc_rpi': No such device. I don't know what to make of that.
I disable it inMy OSMC → Pi Config → Hardware Support → Enable LIRC GPIO Support
One osmc dev said to do
sudo systemctl stop lircd_helper@lirc0mode2 -d /dev/lirc0With that I get the same results, i.e. nothing shows up after running mode2 and pressing some buttons on a remote.
The IR receiver seems to work when testing it with batteries and a LED.
The ir sensor pins:
Gnd
Vs
Out
The configs I tried:(Numbers are pi pins)
Gnd — 6
Vs — 1 (3V3)
Out — 12
Not working:mode2 -d /dev/lirc0 gives no output. Not unexpected, since sensor minimum voltage is 4.5.
Gnd — 6
Vs — 2 (5V)
Out — 1 kOhm — 12 — 1.2 kOhm — 6
Not working:mode2 -d /dev/lirc0 gives no output. Not sure what I did wrong here. I also tried with two 1k resistors.
- You could trypiscope ormonitor GPIO with the IR connected and pulses being received. If neither show activity it suggests the IR is bust.joan– joan2018-01-08 16:25:40 +00:00CommentedJan 8, 2018 at 16:25
- @joan Thank you for the suggestions, I'll definitely check them out.Andreas– Andreas2018-01-08 16:35:27 +00:00CommentedJan 8, 2018 at 16:35
- @joan Monitor GPIO didn't show any activity. Measuring GND and OUT in the second setup shows they're 0.3 V apart. I was under the impression that OUT would be low only when the sensor receives a signal. Does this mean it's broken? It worked with a battery and LED... :-/Andreas– Andreas2018-01-30 20:47:54 +00:00CommentedJan 30, 2018 at 20:47
- Nvm, got it answered in separate question!Andreas– Andreas2018-01-31 00:13:33 +00:00CommentedJan 31, 2018 at 0:13
1 Answer1
Using a 56 KHz sensor with more tolerance for lower source voltages (< 3.3 V) worked much better.
A few layers of printer paper is needed to stop interference (phantom input) from the TV's CCFL backlight PWM when at low backlight levels.
Explore related questions
See similar questions with these tags.