Go Down

Topic: how to play an mp3 when you move using an accelerometer? (Read 26 times) previous topic - next topic


Hello! I am a maker beginner and I need some help!  :(

I am trying to make a device that detects when it is moving and then plays a song from the computer. Right now I have an accelerometer from adafruit which is attached to the adafruit flora. the information is being displayed through the serial monitor and now I am struggling with trying to play an mp3 file when it hits a certain coordinate that is being displayed in the serial monitor.

does anyone know how they would go about it? Is there any tutorials online that I can reference?

I know it may be a simple question but I am not sure what to do...

Thank you!


Have you got an mp3 shield?

Look at the examples in the libary for how to trigger it. Use the reading of your sensor in an if statement to trigger the playing of a file.

For more specific help post a schematic and your code.

Go Up