CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

LIS3LV02DQ

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Monk9514524
Guest







LIS3LV02DQ
PostPosted: Thu Oct 30, 2008 9:49 am     Reply with quote

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

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Thu Oct 30, 2008 10:51 am     Reply with quote

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!!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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