multiple IR receivers on one Arduino nano
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- leroylee13
- Posts: 1
- Joined: Sat Jan 25, 2020 11:19 pm
multiple IR receivers on one Arduino nano
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?
- zener
- Posts: 4567
- Joined: Sat Feb 21, 2009 2:38 am
Re: multiple IR receivers on one Arduino nano
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.
https://github.com/z3t0/Arduino-IRremote/issues/20
I am guessing the IRLib2 library would have similar issues.
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: multiple IR receivers on one Arduino nano
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.
- Disciple
- Posts: 852
- Joined: Tue Jan 06, 2015 8:13 pm
Re: multiple IR receivers on one Arduino nano
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
Maybe there's a clever semiconductor way they can share one pin.
Now I'm curious, too.
Hallelujah!
Disciple
- gerivega
- Posts: 1
- Joined: Mon Oct 11, 2021 11:35 am
Re: multiple IR receivers on one Arduino nano
I have done some modifications on the library. Please try the link https://github.com/gerivega/Arduino-IRremote
Please be positive and constructive with your questions and comments.