A feedback metronome app for heart rate target zone, developed for Apple Watch and iPhone with Swift and SwiftUI. The application is used to study the influence of the metronome sound on keeping the heart rate zone while running with a feedback application.
Target heart rate zone is an important method for professional athletes to avoid training too hard and recover faster, as well as many other benefits. The metronome is also a widely used tool for runners to speed up the runner's cadence, so that the runner needs less leg power to run and can use more gravity, trunk and upper body instead. So, for the sports study, it is important to know whether the metronome can help keep the runner's heart rate zone more constant.
We will monitor the runners' heart rate during the race with Apple Watch. And we will use an watchOS app to give feedback to runners when the runner is outside the target heart rate zone. The mobile app should be able to give metronome feedback in addition to the normal feedback from watchOS app (notification). We will first test the normal feedback (notification) without metronome to see how the app makes the runner stay in the target heart rate zone, then we will use both the normal feedback (notification) and metronome to see the difference from the first experiment.
- Watch A:
- Normale feedback (Apple Watch vibration notification)
- Watch B:
- Sound feedback (Apple Watch vibration notification + Metronome sound from apple watch)
- iOS B:
- Sound feedback (Apple Watch vibration notification + Metronome sound from iPhone app)
For our study we only need Watch A and iOS B.
With Metronome(Watch B), without Metronome(Watch A, iOS B)
Play and pause automatically with Apple Watch when start the running
Data That Are Collected
- Heart rate ❤️
- Age
- Chosen feedback
- Mean correction time (The time that runner takes to get back to target zone after leaving it)
- Number of feedback given while running
- Number of times that the runner rised their wrist to see the Apple Watch
- Percentage stayed in target heart rate zone
- Average cadence
- Calories
- Clone the repo and run MetronomeZones.xcodeproj
- Change team and bundle identifier when necessary
- Make sure Apple Watch and iOS have same bundle identifier