I am using a NRF24 module and I want it to transmit some data like "Hello World" and other messages like that. But it doesn't seem to work. I attached the nrf24 to 2 arduino (mega, adafruit Metro/Uno). But the message doesn't seem to go through. Then I tried running Robins Test run and I found out that the Nrf24 transmitting module does work and the Nrf24 module on the receiver end works too. So I think there is a problem with the code. So do you know what is wrong with the code. i am going to link both the transmitter and receiver down below.
I will take a SWAG and say it sounds like a power supply problem to me. I would guess the Arduino not an external power supply powers the nRF24L01. A Power Supply the Arduino is NOT!
I tried your code the 2 Unos with rf24 radio modules attached that I use for development. The code works fine.
Is that the connection diagnostic sketch, CheckConnection.ino?
Can you post clear photos of your wiring and a schematic.
Make sure the rf24 power supply can provide enough current. This is especially true for the high power (external antenna) modules. I use homemade adapters like these. They are powered by 5V and have a 3.3V regulator on the board. Robin2 also has suggested trying with a 2 AA cell battery pack.
If using the high powered radios make sure to separate them by a few meters. They may not work too close together. Try the lower power settings.
Reset the radios by cycling power to them after uploading new code. I have found that to help. They do not reset with the Arduino.