ManiacBug library example for NRF24 IRQ problem

Good Afternoon

I am trying out the library RF24 from maniacbug RF24: Driver for nRF24L01(+) 2.4GHz Wireless Transceiver and have a problem with the interrupt example which I hope you can help with.

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.

Hi...

I'm glad that I'm not the only one with the IRQ issue.

I'm actually working on a tool to scan RC servos and transfer the servo signals via a nRF24L01 to a receiver. I'm using an Arduino UNO, the RF24 library and a standard nRF24L01 board. I tested using the pages http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo and Low-Power Wireless Sensor Node | maniacbug.

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 ?

Your help is much appreciated.

Many thanx in advance
gismow

I made some progress with these but not finalized yet. Will be cutting down the library to something that just has the code I need.

I have a short tail of woes ...
http://forum.arduino.cc/index.php?topic=175578.msg1322503#msg1322503
http://forum.arduino.cc/index.php?topic=178511.msg1323329#msg1323329

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.