Using NRF24L01 with Arduino MKRZero
-
Hi All,
I can not figure out how to connect the nrf24 radio to my Arduino mrknano.
nrf24 mrkNano GND gnd VCC vcc CE ? CSN/CS ? SCK 7 COPI/MOSI 8 CIPO/MISO 10 IRQ 2
Where do i connect the CE and CSN pins to ??
Thx.
Rob.
-
For future reference,
I was checking the myconfig.h file and found some variable definition regarding the NRF24 radio.
There were two variables referencing the CE and CS pin.
/** * @def MY_RF24_CE_PIN * @brief Define this to change the chip enable pin from the default. */ #ifndef MY_RF24_CE_PIN #define MY_RF24_CE_PIN (DEFAULT_RF24_CE_PIN) #endif /** * @def MY_RF24_CS_PIN * @brief Define this to change the chip select pin from the default. */ #ifndef MY_RF24_CS_PIN #define MY_RF24_CS_PIN (DEFAULT_RF24_CS_PIN) #endif
I have set these two variables in my sketch for my MRKZERO and got the radio working.
Problem Solved
-
Nice work @thedutch, thanks for reporting back.
In case you need anything similar, https://www.mysensors.org/apidocs/group__RF24SettingGrpPub.html lists the co figuration options for the nrf24 radio.
3 out of 3
Suggested Topics
-
nrf24 gateway don't send ack
Troubleshooting • 13 Mar 2016, 11:05 • gerard 13 Mar 2016, 11:05 -
Help Finding Problem
Troubleshooting • 23 Jan 2018, 13:02 • Soloam 23 Jan 2018, 14:56 -
Is this the end of nrf24l01?
General Discussion • 14 Aug 2021, 15:35 • benhub 16 Aug 2021, 08:57 -
💬 USB RF Gateway
OpenHardware.io • 6 Sept 2019, 11:44 • openhardware.io 6 Feb 2020, 11:36 -
💬 Arduino Pro Mini IO Shield
OpenHardware.io • 13 Dec 2017, 05:59 • openhardware.io 13 Dec 2017, 09:53 -
Step-by-step procedure to connect the NRF24L01+ to the GPIO pins and use the Raspberry as a Serial Gateway (MySensors 1.x)
Hardware • 22 Nov 2015, 20:40 • mfalkvidd 10 Oct 2017, 19:43 -
Communication problems between MQTT Gateway (OrangePi) and Node (Arduino Nano)
Troubleshooting • 1 May 2019, 19:22 • gammlerstyle 5 May 2019, 18:01