Hi there,
I am trying to transmit data from a Nano to a Leonardo using RF24modules.
When using the Nano as the transmitter and an UNO as receiver, every thing works well.
However, when moving the pins from the Uno to the Leonardo using the same sketch, it does not work anymore.
I need the Leonardo in my project because I need to use the Keyboard capabilities.
The ISCP headers are used on both, the Uno and Leonardo.
I have read multiple threads on the forum which cover this issue but it did not give me a solution for the problem.
Hi Bob,
nothing else is connected. Only the RF24 module.
And yes, I did try to use the following pin configuration:
pin 7 (CE)
pin 8 (CSN)
pin 11 (MOSI)
pin 12(MISO)
pin 13 (SCK)
the modules are always connected to 3.3v and I also use a capacitor between the 3.3v and GND
the CE and CSN are set in the RF24 object . I also tried pins 9, 8 and 8, 10 as a possible solution mentioned in some threads.
Because it works fine using the UNO but not with the Leo, it must have something to do with the Leo board itself.
To rule out a possible defect in the Leo, I tried a second Leo: same problem.
thanx for your reply 6v6gt.
I am using the SPI pins on the ICSP header. But even then, it is not working.
Using the exact same pin's on the Uno does work.
I would suggest powering the radio module on the Leonardo with an external supply like a 2 AA series cell (3V) battery pack in case the 3.3V regulator on the Leonardo cannot supply sufficient current (even with the cap). Lack of sufficient power is, in my experience, the number one reason for failure.