Eonasdan
Posts: 2
Joined: Wed Oct 15, 2014 8:52 pm

IR Receiver: lirc doesn't display anything

Wed Oct 15, 2014 9:24 pm

Info:
PI: B
IR Receiver: http://www.radioshack.com/product/index ... Id=2049723
Jumper cables: http://schmartboard.com/index.asp?page= ... pers&id=42

Issue:
I'm trying to get my pi to be a remote. I've started with trying to get a receiver to pick up the signal from a (Panasonic) tv remote.

I purchased the IR package and the jumper cables listed above from Radio Shack. I have the long side of the detector plugged into the pin 1 (3.3 right?) and the short side into pin 12 [18] (I've also tried pin 16 [23]).

I've added this to /etc/modules

Code: Select all

lirc_dev
lirc_rpi gpio_in_pin=12 gpio_out_pin=22
and this to /etc/lirc/hardware.confg

Code: Select all

# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS="--uinput"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false

#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false

#Try to load appropriate kernel modules
LOAD_MODULES=true

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="default"
# usually /dev/lirc0 is the correct setting for systems using udev 
DEVICE="/dev/lirc0"
MODULES="lirc_rpi"

# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""
if I run mode2 -d /dev/lirc0 nothing happens when I press a button on the remote.

If I move the jumper cable around I could get some pulses and spaces to spit out, but I was assuming that's just noise.

If I run dmesg | grep lirc_rpi I get this (since I saw that on another post.

Code: Select all

[   13.402957] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[   14.379391] lirc_rpi: auto-detected active low receiver on GPIO pin 18
[   14.393032] lirc_rpi lirc_rpi.0: lirc_dev: driver lirc_rpi registered at minor = 0
[   14.405034] lirc_rpi: driver registered!
I even tried to stripe two jumper cables down and carefully connect them to the pins and the detector, but still nothing :cry:

What am I do wrong here?

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5645
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: IR Receiver: lirc doesn't display anything

Wed Oct 15, 2014 10:19 pm

FWIW, these are my notes from when I tried out lirc etc. quite some time ago:
http://www.cpmspectrepi.webspace.virgin ... board.html
and the associated circuitry:
http://www.cpmspectrepi.webspace.virgin ... blePi.html
(You can ignore the LED display stuff in the latter).
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

Return to “Troubleshooting”