I am trying to work on swarm robots. So i am trying to develop the basic hardware for now. I am using 12 IR transmitter on single bot, each IR will transmit it's bot number (given by me) and its led no, something like "Bot no 5, led no 4" (and this will keep repeating in loop, sort of broadcasting itself all the time). Now i realized that i will need 2 controllers (Arduino mini pro), independently for transmitting and receiving the data and processing on it.
Now the problem is 12 IR receiver (TSOP 1738) is kind of big number, i realized that i cant use polling since i will miss the message most of time, so i decided to use interrupt, pin change interrupt, but there are only 3 vector routines, so i have to check each pin in routine and then try to get the message and decoded it. I have a feeling that probably there is a better way to do this. I am planning to use RC5 protocol, but ready made libraries are quite big and not suitable for this number i believe.
I am still in planning phase, so any guidance would be very helpful. Thank you