Hello,
I had not previously tested with Leonardo, nor with the NRF24 module you are
using.
However apart from the SPI pins (MISO, MOSI and SCK) being on the ICSP header
and not the digital pins as you note below, the default for the SS pin on the
Leonardo is different to other Arduinos, so you would have to initialise the
NRF24 object like this:
NRF24 nrf24(8, 10);
I have now tested Leonardo successfully with this configuration and the
Sparkfun WRL-00691, and updated the documentation in new version 1.10 to
reflect this.
Cheers.
On Tuesday, July 16, 2013 08:16:45 AM Daniel Cintra Cugler wrote:
> Hi everyone,
>
> I has just bought a NRF24L01 from eBay
> (
http://www.ebay.com/itm/221249727728?ssPageName=STRK:MEWNX:IT&_trksid=p3984
> .m1497.l2649).
>
> I am trying to use the getting started example from the RF24 library with
> two Arduinos (UNO and Leonardo).
>
> But I cannot make it work successfully.
>
> I double checked the wires between the arduino and the radio.
>
> LINE
> GNDArduino pin
> GND
> Radio pin
> 1
> 3V33V3
> 2
> CE9
> 3
> CSN10
> 4
> SCK13
> 5
> MOSI11
> 6
> MISO12
> 7
>
> I've read that with arduino leonardo I need to connect the 5,6 and 7 radio
> pins in the ICSP (link here
>
http://arduinoexamples.wordpress.com/2012/11/11/nrf24l01-com-arduino-leonard
> o-nrf24l01-with-arduino-leonardo/)
>
> However, even doing such modifications, I cannot make the two radios
> communicate yet.
>
> Do you guys have some clue what is the problem? There is something special
> that I need to do in order to make it working in the Arduino Leonardo?
>
> Thanks!
--
Mike McCauley
mi...@airspayce.com
Airspayce Pty Ltd 9 Bulbul Place Currumbin Waters QLD 4223 Australia
http://www.airspayce.com
Phone
+61 7 5598-7474 Fax
+61 7 5598-7070