Skip to content

Basamasa/speedOfSound

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 

Repository files navigation

Sound of speed

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.

Why is it important?

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.

Study Methods

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.

Apple Watch App

Choose feedback.

  • 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.

Calculate Target Heart Rate Zone based on age

Choose Start Cadence(BPM)

Running Workouts.

With Metronome(Watch B), without Metronome(Watch A, iOS B)

     

Feedback with Sound

 

iOS App

Running test and All workouts

 

Metronome Player

Play and pause automatically with Apple Watch when start the running

 

Workout Details

Data That Are Collected

 

Collected Data

  • 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

How to build

  • Clone the repo and run MetronomeZones.xcodeproj
  • Change team and bundle identifier when necessary
  • Make sure Apple Watch and iOS have same bundle identifier

About

An feedback metronome app for target heart rate zone developed on Apple Watch and iPhone using Swift and SwiftUI. The application is for studying the influence of metronome sound on keeping the heart rate zone when running using a feedback application.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages