Joystick Accelerometer error ( I don't even... )
So lately I have been messing around with the joystick accelerometer to make something with it, but the amount of bizarre noise that I get from it is absolutely ridiculous. You might be thinking "well, all sensors like that pretty much have a bit of random noise," which I know, but the noise I am talking about is a bit different.
I have done tests on the outputs of multiple joysticks, and all seem to have the same exact problem, problem being that they spike from 0 to extremely high values. I've taken data from a run of the accelerometer (with the controller sitting still) and plotted it in excel.
I've plotted both x and y on the same graph.
Frequently, the data from X spikes from 0 to 127 and -127, as well as frequently -81, sometimes -61 as well.
Y spikes from zero to -58 and -61.
Does anyone have a solid explanation for this? I've used the vex three axis accelerometers, which have understandable noise, but the joystick accelerometer values just seem like a mess...
Any ideas or explanation is welcome. Thanks!