vroland / MyoIMUGestureController

This library provides gesture detection functionality using almost exclusively the IMU data of the Myo Armband.
GNU General Public License v2.0
30 stars 8 forks source link

Detection of rotation #2

Open LarryByndon opened 5 years ago

LarryByndon commented 5 years ago

Dear VRoland,

I am in a project to control motor with the MYO armband and I am using your MyoBridge project to control this motor by the detection of gesture which works perfectly.

And now I want to control the duty cycle of each motor (I have 2 motors) to control the speed of the motor rotation. So I found this project that seems really helpful for my project by for example make an arm rotation after a detection of gesture which the angle of rotation of the arm can be proportional to the duty cycle.

But actually I have some difficulty to understand your code so maybe you can help me with my example of angle detection after gesture detection (for example after a wave out).

I will be very grateful if you can help me.

vroland commented 5 years ago

As explained in #3, this library basically works by recording orientation data and then matching a data to this recording. This currently only detects very basic gestures... You could try to detect a very carse angle from this data, but that will not be very precise using this approach.