NRF24L01 + Arduino Leonardo - Not working

3,861 views
Skip to first unread message

Daniel Cintra Cugler

unread,
Jul 16, 2013, 11:16:45 AM7/16/13
to nrf24-...@googlegroups.com
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
GND
Arduino 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-leonardo-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

unread,
Jul 16, 2013, 9:36:04 PM7/16/13
to nrf24-...@googlegroups.com, Daniel Cintra Cugler
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

Daniel

unread,
Jul 17, 2013, 11:09:01 AM7/17/13
to nrf24-...@googlegroups.com, Daniel Cintra Cugler
Hi Mike,

I really appreciated your hint.
I'll try to do this tonight and then I'll post here the results.

Thank you!
Message has been deleted

Daniel

unread,
Jul 21, 2013, 1:55:27 AM7/21/13
to nrf24-...@googlegroups.com
Sorry the delay to answer this message.

Now it is working properly. Problem solved! =)

Thank you so much.

Best,

Daniel

fatih ozturk

unread,
Jan 7, 2014, 8:31:17 AM1/7/14
to nrf24-...@googlegroups.com, Daniel Cintra Cugler
Hello,


17 Temmuz 2013 Çarşamba 04:36:04 UTC+3 tarihinde mikem yazdı:

fatih ozturk

unread,
Jan 7, 2014, 8:43:58 AM1/7/14
to nrf24-...@googlegroups.com
Hello,

I am trying to use Arduino Leonardo boards and nRF24L01+ wireless moduls . I connected SPI pins on the ICSP header pins and connected CE-Pin8, CSN-Pin-10.( http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo )  In the code " RF24 radio(CE_PIN, CSN_PIN); " command changed new CE_PIN and CSN_PIN number. But it didn't work.Which library for nRF24L01+ can i use? Can you help me?




16 Temmuz 2013 Salı 18:16:45 UTC+3 tarihinde Daniel yazdı:

Mike McCauley

unread,
Jan 7, 2014, 5:42:35 PM1/7/14
to nrf24-...@googlegroups.com, fatih ozturk
Hello,

Did you read about Leonardo connections in the NRF24 library documentation?

Cheers.

On Tuesday, January 07, 2014 05:43:58 AM fatih ozturk wrote:
> Hello,
>
> I am trying to use Arduino Leonardo boards and nRF24L01+ wireless moduls .
> I connected SPI pins on the ICSP header pins and connected CE-Pin8,
> CSN-Pin-10.( http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo ) In
> the code " RF24 radio(CE_PIN, CSN_PIN); " command changed new CE_PIN and
> CSN_PIN number. But it didn't work.Which library for nRF24L01+ can i use?
> Can you help me?
>
> 16 Temmuz 2013 Salı 18:16:45 UTC+3 tarihinde Daniel yazdı:
> > Hi everyone,
> >
> > I has just bought a NRF24L01 from eBay (
> > http://www.ebay.com/itm/221249727728?ssPageName=STRK:MEWNX:IT&_trksid=p398
> > 4.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-leona
> > rdo-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 VK4AMM mi...@airspayce.com

fatih ozturk

unread,
Jan 9, 2014, 1:59:30 AM1/9/14
to nrf24-...@googlegroups.com, fatih ozturk
Hello Mikem;
I read about Leonardo connections in the NRF24 library documentation.But Leonardos not communicate with them. ( http://airspayce.com/mikem/arduino/NRF24/ )Correct this page tell connection Leonardo with nRF24L01 modul ?

8 Ocak 2014 Çarşamba 00:42:35 UTC+2 tarihinde mikem yazdı:

Mike McCauley

unread,
Jan 9, 2014, 3:54:12 AM1/9/14
to nrf24-...@googlegroups.com
Helo,

the documentation shows how to connect a Leonardo to a Sparkfun WRL-00691.
This is known to work.

Are you are using the Sparkfun WRL-00691?

If not, I cannot help you: the only device I have here is Sparkfun WRL-00691

Cheers.
Reply all
Reply to author
Forward
0 new messages