FYI, I added PeakDetection to my AccelerometerLab utility at: https://github.com/frankcohen/ReflectionsOS/tree/main/Experiments/AccelerometerLab and I recorded a video at: https://youtu.be/6mJDVSoy89I -Frank