Maybe some resistor/capacitor as filter might help. This thread might contain hints in the right direction: "IR Receiver - gives out data only while disconnecting/connecting it to ground"?
[PROBLEM]
I had an old TSOP 1738 infrared receiver (that I used with LIRC over serial happily), and wanted to hook it up to a Raspberry Pi (v1 model B) according to "Using an IR Remote with a Raspberry Pi Media Center
Control your Raspberry" article on Adafruit. My distro was Raspbian Stretch (9.1)
When I try to load the lirc_rpi kernel module, I get the following error message:
modprobe: ERROR: could not insert 'lirc_rpi': No such device
[SOLUTION]
In "/boot/config.txt", search for "lirc" and enable the lirc-rpi module:
Code: Select all
# Uncomment this to enable the lirc-rpi module
dtoverlay=lirc-rpi
Links:
https://github.com/OpenELEC/OpenELEC.tv/issues/3908