1

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/lirc0

With 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.

askedJan 8, 2018 at 14:04
Andreas's user avatar
4
  • You could trypiscope ormonitor GPIO with the IR connected and pulses being received. If neither show activity it suggests the IR is bust.CommentedJan 8, 2018 at 16:25
  • @joan Thank you for the suggestions, I'll definitely check them out.CommentedJan 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... :-/CommentedJan 30, 2018 at 20:47
  • Nvm, got it answered in separate question!CommentedJan 31, 2018 at 0:13

1 Answer1

0

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.

answeredMar 1, 2022 at 17:41
Andreas's user avatar

Your Answer

Sign up orlog in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

By clicking “Post Your Answer”, you agree to ourterms of service and acknowledge you have read ourprivacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.