L3GD20 readings error

Hi. I am trying to verify the readings with ±500d/s scale . So i just need to change modify this line only from L3G library :writeReg(CTRL_REG4, 0x01) , correct?

Then I used a tachometer with a spinning wheel to check the readings (degree/sec). I use this code with arduino:
data=((int)gyro.g.z)*17.5/1000;

The rotation speed is ~120 degree/sec ,but the data is already 573 degree/sec.

Would you please show me how to verify readings from the sensor?

Khang

Hello, Khang.

To get ±500dps, you should write 0x10 to CTRL_REG4. Does it work as you expect if you make that change?

-Jon

Thanks, I just realized that i have to put 10 too. I will try.