@odd thanks! It uses a piezo element as a knock sensor which I also repurposed to play a song when you hit the ball really hard ;-)