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 👍


  • Mod

    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.


Log in to reply
 

Suggested Topics

54
Online

11.4k
Users

11.1k
Topics

112.6k
Posts