alternate pin assignment for NRF24L01 on the MEGA

As an after thought, I decided to try and incorporate an NRF24L01 radio module into an exiting mega project. At present, almost all the pins from 13 down have been used. I know I can use 50, 52 and 52 for MISO, MOSI, and SCK respectively.

Most of the examples I am seeing are using the 8, 9 and 10 for the IRQ, CE and CSN respectively. Can I use other pins for for the IRQ, CE and CSN, and if so, are there constraints I need to be aware of. I was thinking maybe 47, 48 and 49 just to keep it in the same area as the others.

Any concerns I should be aware of?


You can use any pins for CE and CSN. You must use a pin that can cause an interrupt if you want to use the nRF24 IRQ feature (which I have never used).

You must also set Mega Pin 53 as OUTPUT to ensure that it behaves as an SPI master (this is the equivalent of pin 10 on the Uno).

Simple nRF24L01+ Tutorial