-
I'm building a race start / finish gate that needs multiple IR receivers along the top of the main gantry to capture the signals from the IR transmitters mounted to cars that pass along underneath across the width of the track. I'm using ESP32s to send and receive signals and this all works fine for a single IR Receiver test setup. I need to alter the receiver now to handle scanning multiple input pins for a valid signal to decode. I don't mind if it sequentially tests each receiver in turn very quickly, or it monitors all the receiver pins for an input at the same time. Any ideas on the best way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Try the MultipleReceivers example from the latest version from this repository. |
Beta Was this translation helpful? Give feedback.
-
That example gives me the following error: |
Beta Was this translation helpful? Give feedback.
-
To me, this does not sound like a problem to be solved with consumer-IR, which is what the current library handles. Consumer IR is for applications that are fairly time-uncritical (commands take 20-70ms), moderate requirements on reliability, possibility to distinguish between a large number of different commands. Your application is time-critical with high reliability required, not many different "commands". Also, also transmissions from the different cars may "collide" if sent simultaneously. |
Beta Was this translation helpful? Give feedback.
Don't worry, I found your error for you without your help.
In the example MultipleReceivers, the line that has:
void UserIRReceiveTimerInterruptHandler();
Should actually be:
void UserIRReceiveTimerInterruptHandler(){};
It all compiles fine now.