Author Topic: ADXL345 spike value  (Read 1674 times)

0 Members and 1 Guest are viewing this topic.

Offline eminemparkTopic starter

  • Newbie
  • Posts: 1
ADXL345 spike value
« on: May 16, 2013, 09:18:29 am »
I would like to ask why in the sensed data that I have, it has a spike value. For example:
(x y z)
(0.027 0.988 -0.113)
(0.035 0.988 -0.125)
(-2 0 -1.004)
(0.035 0.984 -0.125)
(0.035 0.984 -0.125)
For your information, i'm using accelerometer ADXL345 sensor. Why it can be happened? |O

Offline ConnorGames

  • Regular Contributor
  • *
  • Posts: 97
Re: ADXL345 spike value
« Reply #1 on: May 16, 2013, 10:32:59 pm »
Do you have a scope? If so, check that the power supply and the i2c lines are nice and clean. I have also found these chips quite sensitive to inadequate decoupling. Make sure there is at least a few uF of ceramic capacitance as close as possible to the supply pins. On my 9dof stick from sparkfun, adding a 10uf ceramic in parallel with the existing .1uF dropped the noise floor to 1/4 of it's previous value.

I am assuming the code you are using is not at fault, but make sure to try some example code from the web if you are not doing so already.

Good luck!

Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo