multiple IR receivers on one Arduino nano

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
leroylee13
 
Posts: 1
Joined: Sat Jan 25, 2020 11:19 pm

multiple IR receivers on one Arduino nano

Post by leroylee13 »

I am trying to connect 3 IR sensors (TSOP38238) to an Arduino nano. I am using the IRLib2 library as explained in the adafruit learning subject Using an Infrared Library on Arduino. I am unable to determine if I can use more than one sensor, and if so, what pins will work without timer issues?

User avatar
zener
 
Posts: 4567
Joined: Sat Feb 21, 2009 2:38 am

Re: multiple IR receivers on one Arduino nano

Post by zener »

I can't answer the question but this might shed some light on it:

https://github.com/z3t0/Arduino-IRremote/issues/20

I am guessing the IRLib2 library would have similar issues.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: multiple IR receivers on one Arduino nano

Post by adafruit_support_mike »

IRLib2 uses interrupts IIRC, so it probably doesn't have a way to use more than one sensor. You'd have to deal with all sorts of priority and timing issues.

User avatar
Disciple
 
Posts: 852
Joined: Tue Jan 06, 2015 8:13 pm

Re: multiple IR receivers on one Arduino nano

Post by Disciple »

Will the sensors all be watching for the same signal from just one transmitter?
Maybe there's a clever semiconductor way they can share one pin.
Now I'm curious, too.

Hallelujah!
Disciple

User avatar
gerivega
 
Posts: 1
Joined: Mon Oct 11, 2021 11:35 am

Re: multiple IR receivers on one Arduino nano

Post by gerivega »

I have done some modifications on the library. Please try the link https://github.com/gerivega/Arduino-IRremote

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

Return to “Arduino”