Hello,
I'm working on changing the intensity of 6 vibration motors independently based on the readings from a 2-axis accelerometer. Basically, the more the accelerometer deviates from 'straight up', the more the vibrators should vibrate. Everything is working pretty well, except for a certain range of accelerometer values. When the deviation is small, the vibrators turn on just a bit. When the deviation is large, the motors turn on a lot. But, somewhere in the middle, the accelerometer readings oscillate from really low to really high. So, for example, when it should be reading 11, it reads 11, then 150, then 9, then 70, and that repeats.
When I turn off the vibrators and just read the accelerometer, everything works great. So I guess my question is, what could be causing these strange readings? If it is the vibration itself, wouldn't the readings be strange for the entire range of the accelerometer? Does anyone have any ideas?
Thanks!
I'm working on changing the intensity of 6 vibration motors independently based on the readings from a 2-axis accelerometer. Basically, the more the accelerometer deviates from 'straight up', the more the vibrators should vibrate. Everything is working pretty well, except for a certain range of accelerometer values. When the deviation is small, the vibrators turn on just a bit. When the deviation is large, the motors turn on a lot. But, somewhere in the middle, the accelerometer readings oscillate from really low to really high. So, for example, when it should be reading 11, it reads 11, then 150, then 9, then 70, and that repeats.
When I turn off the vibrators and just read the accelerometer, everything works great. So I guess my question is, what could be causing these strange readings? If it is the vibration itself, wouldn't the readings be strange for the entire range of the accelerometer? Does anyone have any ideas?
Thanks!