Git Product home page Git Product logo

Comments (2)

mayorhao avatar mayorhao commented on June 12, 2024

Hi, @RaphaelDuan, Has you figured out how to set the sample rate? also, since the Thamlic is dead, could you share the Myo connect for the windows installer? Thanks a lot

from pewter.

david-olivier-cs avatar david-olivier-cs commented on June 12, 2024

Hi @mayorhao
I worked on a project using the myo a few years back. However, it's been years since I worked with this code.

Here is information that might be useful.

Digging through the myo.js (https://github.com/thalmiclabs/myo.js) file, which pewter uses to communicate with the myo, you can see that it uses a web socket to send commands to the armband.

Ex:
Myo.socket.send(JSON.stringify(["command", {
"command": "unlock",
"myo": this.id,
"type": "hold"
}]));

Now, the myo.js file doesn't seem to be modifying the armband's output frequency. However, when looking at another project "myo-raw" (https://github.com/Alvipe/myo-raw), which communicates with the myo via Bluetooth and is implemented in Python, there is a line where the armband's output frequency is set :

https://github.com/Alvipe/myo-raw/blob/680775071d0dd4defb88b35f91d9122c0645eedb/myo_raw.py#L279

self.write_attr(0x19, pack('BBBBHBBBBB', 2, 9, 2, 1, C, emg_smooth, C // emg_hz, imu_hz, 0, 0))

Communicating with the myo via Bluetooth seems to allow finer configuration.

from pewter.

Related Issues (5)

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.