Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Muse S optical sensor support #51

Closed
kylemath opened this issue Oct 28, 2021 · 4 comments
Closed

Muse S optical sensor support #51

kylemath opened this issue Oct 28, 2021 · 4 comments

Comments

@kylemath
Copy link
Contributor

Hey @urish can I open this one back up and suggest a feature I can help with to expose the PPG data in the Muse 2 and Muse S headbands.

based on the address of the data in the raw packets here:
#42 (comment)

I think the main parsing of the data files happens here:
https://github.com/urish/muse-js/blob/master/src/muse.spec.ts

I believe a function would be needed here to parse the data, and define data types in another file:
https://github.com/urish/muse-js/blob/master/src/lib/muse-parse.ts

@CaydenPierce
Copy link
Collaborator

Giving this a shot.

The characteristic for PPG on Muse are defined here: https://github.com/alexandrebarachant/muse-lsl/blob/master/muselsl/constants.py

One thing worth noting is that things are different between Muse 2 and Muse S for PPG.

Muse 2

PPG_1 - ambient
PPG_2 - infrared
PPG_3 - red

Muse S

PPG_1 - ambient
PPG_2 - green
PPG_3 - ? (all zeros with some random ints every 10 packets or so)

Muse Meditation App

User @chatchavan logged Muse S bluetooth packets from InterAxon Muse application here: ErikBjare/thesis#9

He said they are only using PPG_2 and assumes that it's the green light.

Result

Let's subscribe to and supply PPG_1, PPG_2, and PPG_3. Library users can determine which channel they want to use.

@kylemath
Copy link
Contributor Author

Good, plan, we should get our hands on a muse S2 and see if its different

@CaydenPierce
Copy link
Collaborator

Working on this here: https://github.com/CaydenPierce/muse-js/tree/ppg

@CaydenPierce CaydenPierce mentioned this issue Nov 17, 2021
Merged
@kylemath
Copy link
Contributor Author

Great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants