EN / USD
32
of 76
TEP , The Engineering Projects , Image

syedzainnasir

TEP , The Engineering Projects , Rating 7.5 7.5 / 10
TEP , The Engineering Projects , Icon Level: Moderator
TEP , The Engineering Projects , Icon Joined: 20 Mar 2022
TEP , The Engineering Projects , Icon Last Active: 2:21 PM
TEP , The Engineering Projects , Icon Location: TEP , The Engineering Projects , Flag
TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon
Problem with Nrf24L01+ and arduino mega
TEP , The Engineering Projects , Calender Question: 24-Feb-2017
TEP , The Engineering Projects , Category In: Arduino Projects
I have two Arduino (a mega and nano) and two nRF24L01 + to communicate them.

The connection of the wires according to the library and using the SPI pins modeled on arduino.

NANO 328:
MISO -> 12
MOSI -> 11
SCK -> 13
CE -> 8
CSN -> 7
GND -> GND
VCC -> 3.3v

MEGA 2560:
MISO -> 50
MOSI -> 51
SCK -> 52
CE -> 8
CSN -> 7
GND -> GND
VCC -> 3.3v

Use the library "Mirf" found in the playground (http://www.arduino.cc/playground/InterfacingWithHardware/Nrf24L01) and the examples ping_server and ping_client (without changing anything).

The problem is that the communication fails. If I connect the nano as a server and a mega as a client, mega sends the message to the nano, it receives and sends the replay although but mega not receives and displays a timeout.

If I do the contrary, the mega as a server and nano as a client, the nano sends the message and the mega does nothing.

At the time I thought of any of the Nrf24L01 + bad but I have exchanged and error remains the same so it is clear that the problem has to be in the mega arduino that is unable to receive any message.

And after that summarize, someone has managed to use an arduino Nrf24L01+ with and mega with the library "Mirf" or with another library.

Thank you.
TEP , The Engineering Projects , Icon Answer: 1 TEP , The Engineering Projects , Icon Views: 150 TEP , The Engineering Projects , Icon Followers: 85
Small Bio
TEP , The Engineering Projects , Image

adiono

TEP , The Engineering Projects , Rating 7.5 7.5 / 10
TEP , The Engineering Projects , Icon Level: Moderator
TEP , The Engineering Projects , Icon Joined: 20 Mar 2022
TEP , The Engineering Projects , Icon Last Active: 2:21 PM
TEP , The Engineering Projects , Icon Location: TEP , The Engineering Projects , Flag
TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon

RE:

Problem with Nrf24L01+ and arduino mega
TEP , The Engineering Projects , Calender Comment: 24-Feb-2017
TEP , The Engineering Projects , Category In: Arduino Projects
[quote=Watters post_id=150 time=1487943234 user_id=78] I have two Arduino (a mega and nano) and two nRF24L01 + to communicate them.

The connection of the wires according to the library and using the SPI pins modeled on arduino.

NANO 328:
MISO -> 12
MOSI -> 11
SCK -> 13
CE -> 8
CSN -> 7
GND -> GND
VCC -> 3.3v

MEGA 2560:
MISO -> 50
MOSI -> 51
SCK -> 52
CE -> 8
CSN -> 7
GND -> GND
VCC -> 3.3v

Use the library "Mirf" found in the playground (http://www.arduino.cc/playground/InterfacingWithHardware/Nrf24L01) and the examples ping_server and ping_client (without changing anything).

The problem is that the communication fails. If I connect the nano as a server and a mega as a client, mega sends the message to the nano, it receives and sends the replay although but mega not receives and displays a timeout.

If I do the contrary, the mega as a server and nano as a client, the nano sends the message and the mega does nothing.

At the time I thought of any of the Nrf24L01 + bad but I have exchanged and error remains the same so it is clear that the problem has to be in the mega arduino that is unable to receive any message.

And after that summarize, someone has managed to use an arduino Nrf24L01+ with and mega with the library "Mirf" or with another library.

Thank you. [/quote]
[quote] NANO 328:
MISO -> 12
MOSI -> 11
SCK -> 13[/quote]
Note that the pin numbers are not in order. [quote] MEGA 2560:
MISO -> 50
MOSI -> 51
SCK -> 52[/quote]
Note that the pin numbers are in order.

Are the connections on the Mega correct?
Recommended: [url=http://www.theengineeringprojects.com/2015/07/interfacing-arduino-nrf24l01.html]interfacing of Arduino with nrf24l01[/url]
TEP , The Engineering Projects , Tick Correct Answer
Comment Bio
TEP , The Engineering Projects , Tags
PLC
Robot
STM32
Arduino
AI
ESP32
Ladder Logic
PLC Projects
Programming
Communicates STM32
PLC Projects
Communicates PLC
Font Style
Alignment
Indenting and Lists
Insert Media
Insert Items

Want to leave an answer!

Word Count :0 Draft Saved at 12:42 am.