7 years, 10 months ago.

nrf24l01 f411re

Heloo. I am new in ARMmbed. Please. Have someone example code for transmit via nrf24l01 and wiring setup for nrf24l01 and f411re? Thank you very much. Peter.

2 Answers

7 years, 10 months ago.

Hello Peter,
An example code is available here. Import the program into your online compiler (by clicking on the Import this program button at the top-right corner). On line #6 replace the pin names as follows:

#include "mbed.h"
#include "nRF24L01P.h"
 
Serial pc(USBTX, USBRX); // tx, rx
 
nRF24L01P my_nrf24l01p(D11, D12, D13, D6, D7);    // MOSI, MISO, SCK, CSN, CE, (IRQ is not connected/used)


nRF24L01(+) pinout:

/media/uploads/hudakz/nrf24l01.png

Connect the nRF24L01(+) to the NUCLEO-F411RE board as follows:

NUCLEO-F411REnRF24L01
+3V3VCC
GNDGND
D11MOSI
D12MISO
D13SCK
D6CSN
D7CE

Zoltan

6 years, 11 months ago.

ok, a few questions!

I'm trying to do the same thing but with the f401RE, and I belive i can use for the CSN and the CE PIN, any other D# number i Want right?

well, this is the begging of my code:

  1. include "mbed.h"
  2. include "nRF24L01P.h"

Serial pc(USBTX, USBRX); tx, rx

nRF24L01P my_nrf24l01p(D11, D12, D13, D10, D9, D2); mosi, miso, sck, csn, ce, irq

(I*m putting the irq just as a precaution)

Anyway, the code is not working! i keep receving and 0 width on the GetTX fuction!

Anyone could help me plz?