Hello,
I'm connecting my Arduino Uno to MPU-6000 sensor and In order to change the scale range of the gyroscope from 250dps to 1000dps
I'm changing this line:
SPIwrite(0x1B,0x00,ChipSelPin1);
with this line:
SPIwrite(0x1B,0x02,ChipSelPin1);
And this is my function for reading the yaw axis of the gyro:
int GyroZ(int ChipSelPin)
{
uint8_t GyroZ_H=SPIread(0x47,ChipSelPin);
uint8_t GyroZ_L=SPIread(0x48,ChipSelPin);
int16_t GyroZ=GyroZ_H<<8|GyroZ_L;
return(GyroZ);
}
But nothing in the output changes(the readings are from -32768 to 32768). Can anyone help me with this problem, what else should I do or am I doing something wrong? Thanks.