I’m working with some others on a domotica project. We use a Raspberry Pi for the server, and communicate with Arduino Unos with 1 Xbee each Arduino. To make everything run fast, the receivingpacket method should be in a loop, right? I can’t do this in a loop because I also use an I2C bus frequently. I can’t run I2C and the receiving[packet method at the same time, because the I2C interaction is also in a loop. Is using an interrupt for the receivepacket method the solution? How should I do this?
It’s not clear to me yet. Any other solutions are welcome as well.
I came across this: http://arduino.cc/en/Tutorial/BlinkWithoutDelay
Is that usefull? EDIT: Probably not because the interval is pre-defined…