I need to determine if a Raspberry Pi would be appropriate for a project I am developing. I am trying to create a game (non-commercial) that includes a soft, pillow-like object that will be thrown. I would like to insert a sensor that would detect changes in acceleration, and respond by playing a sound from an internal speaker. The internal apparatus must be self contained and battery operated. I have considered using a Raspberry Pi with a lithium ion battery pack, and an attached speaker and sensor (piezo disk?). When the "pillow" is thrown, the acceleration is detected and a sound is played. When that "pillow" lands, the deceleration is detected and a different sound is played.
Question: Do you think this can be done with a Raspberry Pi, and if so, do you think the Raspberry Pi and components could withstand the acceleration and deceleration associated with being thrown about?