How to basically test IR sensor?

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
RoccoJones
 
Posts: 2
Joined: Thu Mar 26, 2015 10:26 am

How to basically test IR sensor?

Post by RoccoJones »

I bought an IR sensor for my R.Pi B+ and I'm having a hard time testing it. I haven't been able to get any reaction from lirc and documentation on the matter is broken. I'd like to at least know if this is a hardware or software problem. The best clue I have that the hardware is right is the result from dmesg | grep lirc:
[ 5.676481] lirc_dev: IR Remote Control driver registered, major 248
[ 5.696589] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[ 6.596333] lirc_rpi: auto-detected active low receiver on GPIO pin 18
[ 6.596725] lirc_rpi lirc_rpi.0: lirc_dev: driver lirc_rpi registered at minor = 0
[ 6.596747] lirc_rpi: driver registered!
[ 14.886629] input: lircd as /devices/virtual/input/input1
Does this mean I've hooked it up right or are there more tests I can do?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: How to basically test IR sensor?

Post by adafruit_support_rick »

I don't think that the driver can automatically detect the sensor. I think that the dmesg just indicates that the driver is loaded. Post some pictures of your wiring.

User avatar
RoccoJones
 
Posts: 2
Joined: Thu Mar 26, 2015 10:26 am

Re: How to basically test IR sensor?

Post by RoccoJones »

I wonder if I could take a pic of the quality required to see any potential problems with the wiring.
In any case, I guess we aren't going to find out, since my problems seem to be about incorrect use of the software. The tool "mode2" was able to confirm that the thing is receiving IR signals. Thanks anyway.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”