Inspiration
We aimed to infuse more excitement into running.
What it does
BeatFlow elevates your running experience by syncing Spotify music with your cadence. Using your phone's accelerometer, it adjusts the track playing by energy to match your cadence.
How we built it
BeatFlow runs on a Python Flask server, utilizing the phone's accelerometer to detect acceleration peaks for precise stride calculations. It interacts with Spotify's API to fetch track information and play the appropriate song. The system dynamically selects high or low-energy tracks based on your steps per minute, with this selection being relayed to the server, which then uses Spotify's API to play the chosen track on your device.
Challenges we encountered
We faced intricate challenges in cadence calculations and had difficulty finding relevant resources. Additionally, the frontend JavaScript code became convoluted, requiring extensive refactoring.
Accomplishments we're proud of
We successfully integrated the Spotify API with smartphone accelerometer data, providing users with a personalized, real-time music experience during their physical activities.
What we learned
We discovered that VSCode lacks comprehensive syntax checking for JavaScript, which was a valuable lesson in our development process.
What's next for BeatFlow
Our future plans for BeatFlow include integrating additional metrics like heart rate and introducing gamification features where users can attempt to match their cadence with the song's tempo.
Log in or sign up for Devpost to join the conversation.