Giter Club home page Giter Club logo

speedofsound's Introduction

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

speedofsound's People

Contributors

basamasa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

siilats

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.