Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
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:
nRF24L01 | STM32F407VET6 |
---|---|
Vcc | +3.3V |
GND | GND |
MOSI | PB_5 (SPI1 MOSI) |
MISO | PB_4 (SPI1 MISO) |
SCK | PB_3 (SPI1 SCK) |
CSN | PB_7 (CS) |
CE | PB_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) //...