GithubHelp home page GithubHelp logo

hyang23333 / airpodspro-motion-sampler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tukuyo/airpodspro-motion-sampler

1.0 0.0 0.0 2.05 MB

This project is a sample to get the motion sensor values of the AirPods Pro / Max.

License: MIT License

Swift 100.00%

airpodspro-motion-sampler's Introduction

AirPodsPro-Motion-Sampler

Code Examples of CMHeadphoneMotionManager in CoreMotion.

Requirements

  • Xcode: 12.0+
  • iOS : 14.0+
  • iPhone, iPad (*1)
  • AirPods Pro / AirPods Max(*2)

*1: iPod Touch (7th generation) is not supported.
*2: The necessary sensors are included, so it should work.

How To Build

Open AirPodsProMotion.xcodeproj on Xcode12 or later, then connect your iPhone or iPad to build it.
As for more details, Yihan wrote a very organized tutorial.Here is the link:https://github.com/liyihann/CAirPods After exporting CSV file, you can find your files from: Files >>> AirPodsPro.

Contents

Infomation View Rotate the Cube
By Head Motion
Table scrolling
By Head Motion
Export motion data to CSV
         
  • infomation View
    Displays the information (CMDeviceMotion) obtained from AirPodsPro.

  • Rotate the Cube By Head Motion
    The cube rotates in sync with the orientation of the face.

  • Tabel scrolling By Head Motion
    Move the face up and down to scroll the TableView.
    We don't use any hands at all.

  • Export motion data to CSV
    Export the motion data acquired from AirpodsPro as a CSV file.
    You can check the data by using a file App.

Reference

Author

Yoshio Tsukuda

airpodspro-motion-sampler's People

Contributors

tukuyo avatar

Stargazers

Juntao Peng avatar

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.