The pins of the rf board do not align nicely with the arduino pins so I have fabricated an interface board (see atachment). The necessity to use MOSI, MISO and SCLK prompted me to make a board that plugs nicely in the corner of the mega module.
I have used A12 and A15 for CE and CSN.
I have a link to pin 18 for the interrupt.
I have a link to 3.3V for power.
Ground is a small link to the corner ground pins.
I understand any analogue pins can be used as a digital pins.
For the rf24 interface my code is
Yes I had found out about that a capacitor was required on the module. Very strange behaviour without it. Inconsistent transmit and receive. After fitting one everything was fine. The 3.3V supply is working fine for me at the moment but if anything plays up I will bear it in mind. The other end is a pro mini and it has a separate supply.
Nice little module which I have found better than the 433mhz modules. Particularly with the small antenna and I still get the range I need.
Pin 18 is the nearest interrupt available pin on the mega2560 to the corner. In my application I am not using it for anything. I would have preferred to use the a closer pin and used the pin change interrupt but it does not support "FALLING" as easily and since the pin was free I chose it. It could of course be moved.
Yes I was aware of that. I am aware there are other possibilities which all would work well. The physical installation in my application made the corner the best option.
This board was my first attempt to get everything working. In my application, the board is fitted in a box and remote. I wanted to check communication would be successful. I also liked the rigidity the corner offers. Using the ICSP header is an option. I can see there are more options which would all work well.