-
Notifications
You must be signed in to change notification settings - Fork 25
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
How Can i get both EMG and IMU data at the same time? #21
Comments
You should be able to... Have you tried it? |
Thanks for responding Sir 🙇 I tried with just adding the function that handles IMU data to readEMGData.ino in void setup() : //set the function that handles EMG data
bridge.setEMGDataCallBack(handleEMGData);
//tell the Myo we want the filtered EMG data
bridge.setEMGMode(EMG_MODE_SEND);
//set the function that handles the IMU data
bridge.setIMUDataCallBack(handleIMUData);
//tell the Myo we just want the IMU data
bridge.setIMUMode(IMU_MODE_SEND_DATA); the whole .ino code is:
and the result in Serial Monitor it prints EMG Data twice first, and then IMU Data twice, like this: EMG: -14 -2 -2 -11 -4 0 -2 -3 and sometimes it print EMG Data 3 times first and IMU once So i think the program is collecting the EMG Data in the first sampling time, print it in Serial Monitor, and then collecting the IMU Data in the different sampling time, and print it in Serial Monitor. |
Looks like it's working...? I wrote this a few years ago, so I'm not sure about sampling timing any more. The easiest thing is probably to look at the source code yourself ;) |
I see.. |
I see your example code from the library EMG and IMU data is working independently. Can i get both EMG and IMU data at the same time with this library?
Thank you
The text was updated successfully, but these errors were encountered: