Git Product home page Git Product logo

Comments (6)

adlr avatar adlr commented on May 18, 2024

Sorry, touch up and touch down latency need the accelerometer.

from walt.

kamrik avatar kamrik commented on May 18, 2024

Yes, as Andrew mentioned, tap latency measurement needs the accelerometer. It is used to detect when the probe physically touches the screen. We experimented with other methods, but those were way less accurate.

The result should not depend much on speed, I would expect the variability from speed to be on the order of 1 ms. One way to reduce it is to always do a fairly quick and firm tap.

from walt.

AlphaZhang1990 avatar AlphaZhang1990 commented on May 18, 2024

Can I know what is the sample rate of the accelerometer?

from walt.

adlr avatar adlr commented on May 18, 2024

Mark may know for sure. Looking at the code, the accelerometer is probed in a tight loop without fixed frequency. Thus I would expect it's thousands of times per second. Note that this is an educated guess, not confirmed.

from walt.

kamrik avatar kamrik commented on May 18, 2024

It should be at least several kHz. The accelerometer output is analog and as Andrew mentioned, the microcontroller samples it in a tight loop with no sleep. The ADC on Teensy is known to handle 44.1 kHz audio sampling well, so I would expect it to be in the tens of kHz. But I don't remember ever measuring the actual rate.

from walt.

AlphaZhang1990 avatar AlphaZhang1990 commented on May 18, 2024

OK,I will try quick and firm tap to reduce the result change.

from walt.

Related Issues (20)

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.