|
|
View previous topic :: View next topic |
Author |
Message |
Monk9514524 Guest
|
LIS3LV02DQ |
Posted: Thu Oct 30, 2008 9:49 am |
|
|
After KamPutty SPI code, I can finally read the data from the Accelerometers(LIS3LV02DQ).
But there is another problem- when Accelerometers stay still on my desk, my data is a little strange, as following data.
Code: | [1428] X=141 Y=-334 Z=16885
[1429] X=140 Y=-334 Z=16890
[1430] X=141 Y=-334 Z=16878
[1431] X=140 Y=-332 Z=16885
[1432] X=140 Y=-334 Z=16881
[1433] X=141 Y=-332 Z=16878
[1434] X=141 Y=-335 Z=16884
[1435] X=139 Y=-332 Z=16881
[1436] X=141 Y=-334 Z=16893 |
Is that normal when it's still, or I need to find another way to calibrate it ? |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
|
|
Posted: Thu Oct 30, 2008 10:51 am |
|
|
Looks like real data to me. Assuming you have set the sensor for +-2G full scale,
Z = is obviously measuring the acceleration due to gravity (1G = 16384). The other non zero values would be due to the minor inclination of the sensor from horizontal and minor offset error. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|