EMG Sensor Problem

Hi Guys

I have a prosthetic arm project that uses 2 Myoware Muscle Sensors and an Arduino Uno. We have problems with the grip --> the servos always glitch or does not work at all.

Also, It does not accurately read the readings from the muscle sensors even though we use electro pads properly. Even though we didn't flex our muscles, the servos are moving...

Here is the Code:

#include <Servo.h>

Servo servo2; //Elbow
Servo servo3; //middle finger
Servo servo4; //Thumb
Servo servo5; //Index finger
Servo servo6; //Ring + pinky finger

void setup()
servo2.attach(10); //Elbow
servo3.attach(9); //Middle finger
servo4.attach(8); //Thumb
servo5.attach(7); //Index finger
servo6.attach(6); //Ring + pinky finger

void loop()
Serial.println(analogRead(2)); //read EMG 1(bicep)
if(analogRead(2) > 500) { //if bicep flex... bend elbow

else if (analogRead(2) < 500) {

Serial.println(analogRead(3)); //read EMG 2(forearm)
if(analogRead(3) > 500) {
//fingers close


else if (analogRead(3) < 500) {
//fingers open


About 95% of servo problems mentioned on this forum result from inadequate servo power supplies. Always use a separate power supply, budgeting at least 1 Ampere/servo for small servos like the SG90, and at least 2.5 Amperes/servo for the larger ones, like the MG996.

Don't forget to connect all the grounds.

Any circuitry involved with detection of tiny voltages must be carefully isolated from external influences, like overhead lighting, household wiring, power supply fluctuations and the like. The detection circuitry must have a good ground reference connection at the source as well. Avoid ground loops!

I have the Myoware sensor and it can work sometimes, but for me it was not possible to make it work consistent every time.

The sensor works best when there is no path to the mains. With a battery powered Arduino or with a laptop (running on its batteries) there is less noise.
The position of the pads is very important and there must be muscle power, not just moving an arm.

Some use better pads, perhaps you can try to get a few.
I don't know what to do to make it work, I never got there myself :frowning_face:

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.