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
-
@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.
-
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 53
and you are good.
-
thanks a lot @ayo this wiring run perfectly thanks
-
@ayo for me didn't worked.. maybe because i have an updated mysensor library?
-
@Edoardo-Macrì hour you describe "not working" in more detail?
The MySensors library has not been updated since July and even if it had been updated it should work.
-
@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.
-
@ayo I have this problem too, I can't get the radio modules work, the modules are nRF24L01 and I have tested with two arduino nano and two Arduino mega2560, but there is no result. The transmitter and receiver can not contact each other.