Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

3Axis Accelerometer(LIS3DH) code help needed urgently

Status
Not open for further replies.

TejaswiniGowda

Newbie level 2
Joined
Nov 26, 2012
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,300
Hi,


I'm using LIS3DH 3-axis accelerometer interfaced with the microcontroller, I'm supposed to simulate "HARSH ACCELERATION" & "HARSH BREAKING". Currently using my driver code, I'm able to read X,Y,Z axis values via interrupt. This is interfaced via SPI to microcontroller. But I'm not able to simulate exactly "HARSH ACCELERATION" by taking values, please if anyone has worked on it, let me know what values to be taken as threshold to simulate above mentioned conditions.

I'm reading X,Y,Z axis values & comparing with the set threshold of -300mg to simulate "HARSH ACCELERATION" & +300mg to simulate "HARSH BREAKING", with output data rate of 25Hz,But at presently i am getting same interrupt for breaking,Bump,vibration, i am not able to segregate really which is break.& also i am able find to keep the threshold for 1st gear,2nd gear etc... for Harsh acceleration. Please any one worked on this suggest for this.:!:
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top