Reading Sensor Values from Myoware Muscle Sensor

I'm trying to read the sensor values from the Myoware muscle sensor using the Atmega328p microcontroller. I've done tests before and they were successful. However, after a while of having the circuit connected and not using the sensor, I've come back to read values again but now I'm not getting any useful readings.


void setup() {
 
  Serial.begin(9600);
}


void loop() {
 
      int sensorValue = analogRead(A3);  // read the input on analog pin 3 and store in sensorValue

      Serial.println(sensorValue); 

      delay (100);
}

Please do not post screen shots of code. Follow the advice in How to get the best out of this forum and post the full sketch using code tags


void setup() {
 
  Serial.begin(9600);
}


void loop() {
 
      int sensorValue = analogRead(A3);  // read the input on analog pin 3 and store in sensorValue

      Serial.println(sensorValue); 

      delay (100);
}

That code is so simple that it is difficult to image that it is wrong

However, it is possible that you have a hardware or wiring problem

  • is the sensor connected between A3 and GND ?
  • are all 4 connections sound ?
  • disconnect the sensor, run the code and touch the connector you unplugged from the sensor. Does the reading change ?
  • disconnect the sensor from the board, run the code and touch pin A3. Does the reading change ?
  • try a different analogue pin


This is the result of disconnecting the sensor and touching the connector repetitively

Having the sensor connected to Analog Pin4 and adjusting the code to read from that pin, gave this result:

This is also the same result with connection to pin A3
I am not sure what else to try, and this project is due very soon. Please help.

Hey ,

Any progress, i am using Arduino UNO mc. Followed the same as mentioned here
How to Use EMG Muscle Sensor to Control Anything (MyoWare) - YouTube

Getting the same output that you are receiving. Stuck on the same, no progress.