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.
8 years, 4 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
8 years, 4 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:
Connect the nRF24L01(+) to the NUCLEO-F411RE board as follows:
NUCLEO-F411RE | nRF24L01 |
---|---|
+3V3 | VCC |
GND | GND |
D11 | MOSI |
D12 | MISO |
D13 | SCK |
D6 | CSN |
D7 | CE |
Zoltan
7 years, 5 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:
- include "mbed.h"
- 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?