I have been working on a project similar to this https://circuitdigest.com/microcontroller-projects/ping-pong-game-using-arduino-accelerometer#comment-30863
I am having problems with reading my values from my accelerometer on processing. It is making my paddle shake essentially because the values that the serial is reading is 140, 141, 57, 58 and so on in that continous pattern. Is there anything I can so that the values are more consistently read by processing? I already implemented a smooth function in my arduino code that eliminates the highest and lowest values and takes the average of the measurements.