arduino mega nrf wiring
-
I want to connect my nRF24L01 on my Arduino Mega created for a gateway Mysensors
I do not know how to do ?
thank you for your help cordially
-
I want to connect my nRF24L01 on my Arduino Mega created for a gateway Mysensors
I do not know how to do ?
thank you for your help cordially
@Michel-Lallemand the Mega has different pins for SPI. I don't have a Mega myself, but this thread should cover what you need to do.
Please post the result here. If the instructions work, I will add them to the radio page.
-
thanks a lot @ayo this wiring run perfectly thanks
-
Just connect it like this


That should Work.
In your arduino code add the following before the #include <SPI.h>
#include <MySensors.h>// Pin Confuguration for Arduino Mega #define MY_RF24_CE_PIN 40 #define MY_RF24_CS_PIN 53and you are good. :)
@ayo for me didn't worked.. maybe because i have an updated mysensor library?
-
@ayo for me didn't worked.. maybe because i have an updated mysensor library?
-
@Edoardo-Macrì It should work irrespective of the library version. Cross check your connection again, don't forget about capacitors too and lastly make sure you add that #define part into your code.