nRF24L01 2.4GHz Radio/Wireless Transceivers

Hello
I try to use the nRF24L01 between the Arduino Uno to Arduino Mega 256
When I try to transmit from Arduino Mega to Arduino Uno everything works fine but not vice versa
Here’s the code:

Arduino Uno

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>

/*
   1 - GND
   2 - VCC 3.3V 
   3 - CE to Arduino pin 9
   4 - CSN to Arduino pin 10
   5 - SCK to Arduino pin 13
   6 - MOSI to Arduino pin 11
   7 - MISO to Arduino pin 12
*/

#define CE_PIN   9
#define CSN_PIN 10

const uint64_t pipe = 0xE8E8F0F0E1LL;


/*-----( Declare objects )-----*/
RF24 radio(CE_PIN, CSN_PIN); // Create a Radio
/*-----( Declare Variables )-----*/
int joystick[2]; 

void setup()
{
  Serial.begin(9600);
  radio.begin();
  radio.setRetries(15,15);
  radio.openWritingPipe(pipe);
}


void loop()
{
  joystick[0] = 123;
  joystick[1] = analogRead(JOYSTICK_Y);
  
  radio.write( joystick, sizeof(joystick) );

}

Arduino Mega 2560

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>

/*
   1 - GND
   2 - VCC 3.3V
   3 - CE to Arduino pin 49
   4 - CSN to Arduino pin 53
   5 - SCK to Arduino pin 52
   6 - MOSI to Arduino pin 51
   7 - MISO to Arduino pin 50
*/

#define CE_PIN  49
#define CSN_PIN 53


const uint64_t pipe = 0xE8E8F0F0E1LL; 


/*-----( Declare objects )-----*/
RF24 radio(CE_PIN, CSN_PIN); 
/*-----( Declare Variables )-----*/
int joystick[2];

void setup()
{
  Serial.begin(9600);
  delay(1000);
  Serial.println("Nrf24L01 Receiver Starting");
  radio.begin();
  radio.setRetries(15,15);
  radio.openReadingPipe(1,pipe);
  radio.startListening();;
}


void loop()
{
  if ( radio.available() )
  {
    bool done = false;
    while (!done)
    {
      done = radio.read( joystick, sizeof(joystick) );
      Serial.print(joystick[0]);  
      Serial.println(joystick[1]);
    }
  }

}

What is wrong?
Thanks

It looks like you have posted the code that is NOT working.

Can you also post the code that does work? (So I can see where the differences are - even better if you tell me)

...R

if all you are doing is uploading the code to the other then there lies your problem. the code predefines pins. when you upload the code for the mega to the uno the pins change. if its something else then upload that code please