Question
L3GD20 data stability?
Posted on November 05, 2013 at 18:21
Okay - I've got data flowing from the L3GD20 into the microcontroller using the DRDY/INT2 signal. As I examine the readings that I am receiving from the sensor chip, though, it appears that I receive ''bogus'' values.
The chip is mounted on a development board, so it isn't moving at all. I would expect to see an unending series of near-zero readings. Several times each second, I get back large positive or negative values (like -4865), which make no sense to me at all. I understand that the readings are in twos complement format. I'm confident that my SPI setup is correct, since (1) the chip is being properly identified during startup and (2) my settings match what the datasheet calls for. I'm also able to see the entire SPI ''conversation'' on my oscilloscope, so I can see that the chip is driving the SDO line in a way that allows the bits to be sampled on the rising edge of SCK. I'm very close to completing this project. Solving this mystery would really help. #spi-data-transfer-reading