Guide to gyro and accelerometer with Arduino including Kalman filtering

i have a problem using gyro with arduino if i power with external power supply of 5V then the arduino is callibrating again and again and if connect it directly it has no issues please look at my problem.