It does not work with the supplied sample code pingpair_irq. The sender doesn't get into the loop() and I have had to disconnect the interrupt wire to pin2 for the sender to get it into the loop. It will now loop and says it is sending and looping...
I have also tried with the attachInterrupt line of code commented out but with no joy in improving matters.
The receiver will not receive anything unless I have modified the sender in the above fashion where it will receive 5 times and produce 4 'ack' payloads on the last four ... first one doesn't do it. The receiver then appears to be locked up. The interrupt jumper is still connected to pin2 on the receiver.
I have a UNO sender and a Nano receiver. The other supplied example sketches work.
Anyone any experience with this aspect of the library?
I've used the RF24 library a fair bit but never used any interrupt-based event handling. Do you actually need to use interrupts in your case, or is this just something you're doing out of interest?
PeterH:
I've used the RF24 library a fair bit but never used any interrupt-based event handling. Do you actually need to use interrupts in your case, or is this just something you're doing out of interest?
I would like to find out if it will give me some new opportunity/ies and the best way is to try it out.
Waiting for some more NRF24's to arrive so that the full 'system' can be end2end prototyped... that's three independent Arduinos on wireless and one of them is also wired to a fourth via I2C.
My first tests with standard values worked fine, but if I add the servo support via ISR(PCINT2_vect) and ISR(PCINT1_vect) functions the sketch crashes immediatly (not yet finished the setup() routine).
Does anybody have any ideas to get the ISR routines to work with the RF24 library ?
I am confident to get what I want working even though there were/are issues in understanding and/or function expectations. The BIGGEST issue is the hidden one in that some of the boards supplied seem to perform really badly depending upon the supplier. I have all but thrown out 5 that were nearly ten times SLOWER. I wouldn't have noticed if it wasn't for having some that were significantly faster.