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.
-
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.
Suggested Topics
-
Over the air updates
General Discussion • 23 Mar 2014, 21:38 • ToSa 1 Mar 2015, 11:21 -
Sensor to detect marijuana vape/smoke
Hardware • 21 Jan 2025, 06:36 • Hellmark 25 Feb 2025, 20:56 -
Best VOC sensor for detecting a wide range of VOC's?
Hardware • 26 Oct 2023, 23:59 • NeverDie 18 Nov 2023, 01:41 -
hlk-pm01 are to noisy for rfm69?
Hardware • 5 Aug 2023, 21:16 • Tmaster 9 Aug 2023, 16:28 -
Sensors and more
Hardware • 19 Jun 2023, 00:41 • Robert Leverett 19 Jun 2023, 00:41 -
"Remote Irrigation with LoRaWAN: LM27313 Challenges and PCB Design"
Hardware • 24 Jan 2024, 23:06 • wrendral 3 Feb 2024, 07:13