Programming ERROR please HELP!!!

Hi,
I have made a code with adxl accelermeter, mpu gyro, nrf24l01 wireless module and two pots
When I’m running the code it told me no radio available whats wrong?
please hel[p me
here are my codes

Transmitter:

//----------------( #INCLUDE )--------------------------------
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
#define CE_PIN 9
#define CSN_PIN 10

#include "Wire.h"
#include "I2Cdev.h"
#include "MPU6050.h"

#define JOYSTICKFINGER A0 //reads from finger
#define JOYSTICKARM    A1 //reads from arm
#define accel_module (0x53)
//--------------( INT)-----------------------------------

MPU6050 mpu;
int16_t ax, ay, az;
int16_t gx, gy, gz;

int valy, valx, prevValy, prevValx, xservo, yservo;
char output[512];
byte values[6] ;
int VAL[4];

const uint64_t pipe = 0xE8E8F0F0E1LL;
RF24 radio(CE_PIN, CSN_PIN);

//-------------------( void setup )------------------

void setup()
{
  Wire.begin();
Serial.begin(9600);
//----nrf
radio.begin();
radio.openWritingPipe(pipe);
//----mpu
Serial.println("Initialize MPU");
mpu.initialize();
Serial.println(mpu.testConnection() ? "Connected" : "Connection failed");
//-----adxl
Wire.beginTransmission(accel_module);
Wire.write(0x2D);
Wire.write(0);
Wire.endTransmission();
Wire.beginTransmission(accel_module);
Wire.write(0x2D);
Wire.write(16);
Wire.endTransmission();
Wire.beginTransmission(accel_module);
Wire.write(0x2D);
Wire.write(8);
Wire.endTransmission();
}

//--------------------( voide loop )-----------------

void loop()
{
  mpu.getMotion6(&ax, &ay, &az, &gx, &gy, &gz);
 VAL[0] = analogRead(JOYSTICKFINGER);
 VAL[1] = analogRead(JOYSTICKARM);
 VAL[2] = map(ay, -18000, 18000, 0, 180); //EXAMPLE
 Serial.print("\t");
if (VAL[2] != prevValy)

 VAL[3] = map(ax,-18000,18000,0,180);//EXAMPLE
Serial.print("\t");

//------------------( ADXL )---------------------
 
int x, y, z;
int xyzregister = 0x32;
Wire.beginTransmission(accel_module);
Wire.write(xyzregister);
Wire.endTransmission();

Wire.beginTransmission(accel_module);
Wire.requestFrom(accel_module, 6);

int i = 0;
while(Wire.available()){
values[i] = Wire.read();
i++;
}
Wire.endTransmission();


x = (((int)values[1]) << 8) | values[0];
y = (((int)values[3])<< 8) | values[2];
z = (((int)values[5]) << 8) | values[4];
if (x < -255) x = -255; else if (x > 255) x = 255;
if (y < -255) y = -255; else if (y > 255) y = 255;

VAL[4] = map(y, -255, 255, 0, 180);

sprintf(output, "%d %d %d", x, y, z);
Serial.print(output); 

Serial.write(10);
radio.write( VAL, sizeof(VAL) );
}

Receiver:

//------------( #include )------------------
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
#include <Servo.h>
#define CE_PIN 9
#define CSN_PIN 10
//------------( INT )--------------------
int prevValy, prevValx, yservo, valfinger, valarm;
Servo servofinger;//POT
Servo servoarm;//POT
Servo servoTURN;//adxl
Servo servox;//mpu
Servo servoy;//mpu
const uint64_t pipe = 0xE8E8F0F0E1LL;
RF24 radio(CE_PIN, CSN_PIN);
int VAL[4];

//-----------(Void Setup)----------------
void setup()
{
Serial.begin(9600);
delay(1000);
Serial.println("Nrf24L01 Receiver Starting");
radio.begin();
radio.openReadingPipe(1,pipe);
radio.startListening();;
servofinger.attach(0);//POT
servoarm.attach(1);//POT
servoTURN.attach(2);//adxl
servox.attach(3);//mpu
servoy.attach(4);//mpu
}
//----------(Void Loop)------------------
void loop()
{
if ( radio.available() )
{
bool done = false;
while (!done)
{
done = radio.read( VAL, sizeof(VAL) );

valfinger =  VAL[0];  //finger joy
valfinger = map(valfinger, 0, 1023, 0, 179);
servofinger.write(valfinger);

valarm = VAL[1];
valarm = map(valarm, 0, 1023, 0, 179);
servoarm.write(valarm);

if (VAL[2] != prevValy)
{
  servoy.write(VAL[2]);//mpu y
Serial.print("Y=");
Serial.print(VAL[2]);
prevValy = VAL[2];
}
if (VAL[3] != prevValx)
{
  servox.write(VAL[3]);//mpu
Serial.print("x=");
Serial.print(VAL[3]);
prevValx = VAL[3];
}
servox.write(VAL[3]);//mpu x

servoTURN.write(VAL[4]);//ADXL
}
}
else
{
Serial.println("NO radio available");
}
}

Have you tried any of the sample programs that are usually distributed with the nrf24l01 wireless library? Did they work as expected? If not, then you may have something connected wrong. If they did work, then you know the module is working.

I have tested it with example and it works great

So your code says: "Connection failed"? If so, then you need to test each call in:

  Wire.begin();
  Serial.begin(9600);
//----nrf
  radio.begin();
  radio.openWritingPipe(pipe);
//----mpu
  Serial.println("Initialize MPU");
  mpu.initialize();

I don't have matching hardware, so I can't be of any help there.

i dont know what to do:/

Read the documentation and see what each function call

radio.begin(); radio.openWritingPipe(pipe); mpu.initialize();

is supposed to do and if there is some variable in the class that can be displayed/tested in some way. Since the examples worked, try to look for values in those examples and test them in your code. Look for differences between your code and the examples.

When I tested it I haven't connected the sensors..but when I tested the example without the sensor it worked..

How can it be tested with the sensors missing? You need to connect everything up and then run a sample program first. If the sample programs work, that means the sensors are okay and hooked up correctly. If they don't, that tells you that you may have them connected incorrectly or that they are defective. You need to try one test point at a time, not multiples at the same time.

I tested the code again with all sensors and seems to work beter but on serial monitor saws me many errors why?

but on serial monitor saws me many errors why

Please copy and paste the messages that you saw here.

on serial monitor i’m taking values from sensors but most of the time it told me ‘‘no radio available’’

You are indexing past the end of the array.

int VAL[4];

/...
     servoTURN.write(VAL[4]);//ADXL

How are you powering your servos ?

Try using a modified sketch which uses the sensors, the radio and the diagnostic output, but doesn't have any servos.

Maybe is the package of bytes? For example the package of bytes transmitted is too long for nrf?

Try cleaning up the mess in your receiver program and checking all the curly braces match the way you expect.

Also, your "no radio available" message, will appear whenever the loop( ) function of the receiver program runs, when there is no new data from the other device.

If the loop( ) function of the receiver sketch is running more often than the loop( ) function of your sending sketch, then you will expect to see this "no radio available" message often, it will be normal.

When I'm using only the two pots and the adxl345 the code is fine bur when I connect mpu6050 then it saws me no radio available. Why?