Currently, I'm working on a speedometer with Hall Effect sensor, and I have a variable which is the velocity.
I want to smooth out the sharp changes in the variable. For example: The wheel stands still, the value of the variable is 0. Then, I spin the wheel immediately, and it jumps up from 0 to like 20. What I'm trying to do is to make that jump a lot smoother, like it counts up to 20. Whenever a change occurs in the variable, I don't want to happen instantly. Another case: The wheel is spinning, the value is 20, then I hit the brake a little, and it goes down to 15. But that change is really sharp. Can it count down from 20 to 15?