Myoware sensor not working

Hello. We’ve been trying to work with our new myoware sensor, but all of our attempts have been unsuccessful. Despite setting it up the way the website describes, the analog input just fluctuates randomly. Additionally, the red signal light on the sensor turns on and off sporadically; the muscle movements seem to have no effect on the sensor. We used the AnalogInOutSerial example code.

Video: https://drive.google.com/file/d/1kn-vBZ … p=drivesdk

Thanks for reaching out to us on this.

After reviewing the video, the first suggestion would be to move the sensor to a large, easy-to-isolate muscle for testing (the middle of a bicep is a good spot) - the sensor in the video is too far off-center to detect the wrist flexors being flexed…it would need to be down in the middle of the muscle band(s), the smooth portion between the vein that surround the muscle group.

The random noise the signal shows is the passive noise from our bodies…the sensor detects changes in the analog amplitude along the fiber bundles - use code to ‘smooth’ these readings out, set a ‘normal’ value, etc…then display the change however you’d like

Hope this helps, and happy sparking!

Try this sketch instead and see how that goes.

/*
  ReadAnalogVoltage
  Reads an analog input on pin 0, converts it to voltage, and prints the result to the serial monitor.
  Graphical representation is available using serial plotter (Tools > Serial Plotter menu)
  Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.
  This example code is in the public domain.
*/

// the setup routine runs once when you press reset:
void setup() {
  // initialize serial communication at 9600 bits per second:
  Serial.begin(9600);
}

// the loop routine runs over and over again forever:
void loop() {
  // read the input on analog pin 0:
  int sensorValue = analogRead(A0);
  // Convert the analog reading (which goes from 0 - 1023) to a voltage (0 - 5V):
  float voltage = sensorValue * (5.0 / 1023.0);
  // print out the value you read:
  Serial.println(voltage);
}

Okay thank you guys I’ll get back to you tomorrow with a status update!

So we ended up getting the sensor to work, but every other day the sensor simply stops working. The red signal light just does not come on at all, regardless of what we do. If we touch the metal contact points occasionally it flashes but besides that, it does not turn on. When we come in the next morning, we set everything up the same as the day before, and it starts working. But the next day, when we set it up the same as the day before, it stops working. It continued this on-off cycle all week. Does anyone have any tips for this?

Sounds a lot like a loose connection or a bad wire. Make sure your soldered connections are done well and try different jumper wires.

We have replaced all the wires and double checked soldering and the red light is still not turning on. Do you have any other tips?

We changed absolutely nothing and the sensor is now working. However I reckon in the next hour/day it will stop working lol.