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.
1 out of 3
Suggested Topics
-
Communication problems between MQTT Gateway (OrangePi) and Node (Arduino Nano)
Troubleshooting • 1 May 2019, 19:22 • gammlerstyle 5 May 2019, 18:01 -
💬 Arduino Pro Mini IO Shield
OpenHardware.io • 13 Dec 2017, 05:59 • openhardware.io 13 Dec 2017, 09:53 -
nrf24 gateway don't send ack
Troubleshooting • 13 Mar 2016, 11:05 • gerard 13 Mar 2016, 11:05 -
Sonoff Basic Wifi Gateway for NRF24
Hardware • 9 Jul 2017, 16:31 • Technovation 9 Jul 2017, 17:23 -
Is this the end of nrf24l01?
General Discussion • 14 Aug 2021, 15:35 • benhub 16 Aug 2021, 08:57 -
New nRF24 driver in MySensors 2.0.0
Announcements • 27 Apr 2016, 18:39 • tekka 3 May 2016, 04:41