5 years, 11 months ago.

Hello. This question is about NRF2401 interfacng with mbed.

I am trying to setup wireless connection beween two STM32F407 black boards(https://os.mbed.com/users/hudakz/code/STM32F407VET6_Hello/shortlog/) using the NRF2401 slot in these boards. But for more than 5 days I have not made any progress :-/ I tried the code from this link , changing pin nos for my board. But I am still failing. https://os.mbed.com/cookbook/nRF24L01-wireless-transceiver

If anyone can provide any help I will be eternally grateful. Thank you.

1 Answer

5 years, 11 months ago.

Hello,

  • Connect your nRF24L01 module to the NRF24L01 connector located on the STM32F407VET6 board as follows:
nRF24L01STM32F407VET6
Vcc+3.3V
GNDGND
MOSIPB_5 (SPI1 MOSI)
MISOPB_4 (SPI1 MISO)
SCKPB_3 (SPI1 SCK)
CSNPB_7 (CS)
CEPB_6 (CE)
  • Modify the example program accordingly:

//...
//nRF24L01P my_nrf24l01p(p5, p6, p7, p8, p9, p10);    // mosi, miso, sck, csn, ce, irq
nRF24L01P my_nrf24l01p(PB_5, PB_4, PB_3, PB_7, PB_6);    // mosi, miso, sck, csn, ce, (irq=Not Connected)
//...

I tried this and failed. I couldn't successfully transmit anything. I have switched to ESP8266 now but even there I am failing. Can you help please?

posted by swarm robot 22 Jan 2019

Have a look at here and use the wiring above.

posted by Zoltan Hudak 22 Jan 2019