Accelerometer sensor for accident detection
Discussion in "Project Help" started by Praneeth1299 Jun 1, 2017.
Thu Jun 01 2017, 04:39 pm
Hi all,
I'm using ADXL335 accelerometer sensor for accident detection interfacing it with lpc2148
microcontroller, the sensor part works fine i.e., when sensor detects it generates the value 1
else 0, but it run's inside a particular function I mean it won't detect at any point of time, so
I added the interrupt function to enable the sensor value at any point when the sensor is
detected. Now the problem is i'm not getting the sensor value when it's detected, presently
testing the sensors by hand movement variation, when the sensor is detected 1 will be printed on hypertext else 0.
I have attached code for reference, kindly tell me where I'm doing mistake.
Thank you.
I'm using ADXL335 accelerometer sensor for accident detection interfacing it with lpc2148
microcontroller, the sensor part works fine i.e., when sensor detects it generates the value 1
else 0, but it run's inside a particular function I mean it won't detect at any point of time, so
I added the interrupt function to enable the sensor value at any point when the sensor is
detected. Now the problem is i'm not getting the sensor value when it's detected, presently
testing the sensors by hand movement variation, when the sensor is detected 1 will be printed on hypertext else 0.
I have attached code for reference, kindly tell me where I'm doing mistake.
Thank you.
Fri Jun 02 2017, 03:19 am
I tried to build your project but got lots of errors, possibly because I'm using Keil 5.
I don't see any reference to the ADXL335.
The ADXL335 does not generate in interrupt, so how are you generating it ?
I don't see any reference to the ADXL335.
The ADXL335 does not generate in interrupt, so how are you generating it ?
[ Edited Fri Jun 02 2017, 08:21 am ]
Powered by e107 Forum System