Pages: [1]   Go Down
Author Topic: how to ignore data inputs ADXL 345  (Read 339 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi guys,

Im quite new to all this coding stuff, so bear with me.

basically, I have set up my ADXL345 as a sensor on a motorbike, however every time I initiate the alarm, the initial readings are 511, way over the thresholds set.

Simply put, I need a way of ignoring the first 10 readings, or having an arming period of say 5 seconds.

Any help would be great.

Thanks,

steve
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 240
Posts: 24425
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
having an arming period of say 5 seconds
Code:
delay (5000);
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 170
Posts: 12480
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Posting your code of what you have allready helps us to understand the issue.
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Pages: [1]   Go Up
Jump to: