Comment Comment by folli Thanks for giving it a try!I'm using a low pass filter on the raw sensor data to minimize any jittery input.The code I'm using is as follows: alpha = 0.1; output = previous_output + alpha * (new_input-previous_output); If anyone knows a better way to get a stable and also current read-out, I would be more than interested! parent folli 10 years ago
I'm using a low pass filter on the raw sensor data to minimize any jittery input.
The code I'm using is as follows:
If anyone knows a better way to get a stable and also current read-out, I would be more than interested!