dzhu / myo-raw

MIT License
218 stars 115 forks source link

Sleep mode and EMG data processing #12

Open luizf15 opened 9 years ago

luizf15 commented 9 years ago

Hi,

I am currently trying to use the Myo Armband for myoelectric control of a prosthetic arm. There are two issues though that I came across:

  1. After some time of inactivity, it goes into sleep mode. How can I turn that off?
  2. I've never programmed in python or any other object-oriented language before so I'm having a hard time trying to understand the code. I basically need to check the emg data from any channel (let's say emg[0]) and then enable a pwm signal to spin a motor every time the value is over 200, for example (if emg[0] > 200 then pwm write). Where in the code should I include that? I tried replacing "print(emg)" on line 450 with that "if" statement but it did't work.

I would really appreciate if someone could answer these questions.

Thank you!

arnoldad0423 commented 8 years ago

Hi Luiz. Have you sorted the issue out? I am facing the same issue here.

Regards, Arnold A.