Muscle Sensor V3 with Arduino

Hello guys, I'm working on a project on Muscle Sensors V3 together with Arduino.
I've connected the Sensor to the Arduino Uno board accordingly to the picture attached using two 9v batteries. And the code that i used for this program is:

int sensorPin = A0; // select the input pin for the potentiometer
int ledPin = 13; // select the pin for the LED
int sensorValue = 0; // variable to store the value coming from the sensor

void setup() {
// declare the ledPin as an OUTPUT:
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
pinMode(sensorPin,INPUT);

}

void loop() {
// read the value from the sensor:
sensorValue = analogRead(sensorPin);
Serial.println(sensorValue);
delay(2000);
}

When i compile and Run it on Serial Monitor, it outputs a continuously value of 164 no matter what i do. Why is it so? Am i on the right track? Below is the pictures of the result that I've gotten when i run this together with the program code. Please feel free to highlight if there is any mistakes that I've done for this program. Thank you and hope you have a nice day.

code is ok.
sensor is almost identical to http://www.instructables.com/id/Muscle-EMG-Sensor-for-a-Microcontroller/
(other chips - same concept)
How about connections to your body?

edwardanthony:
Hello guys, I'm working on a project on Muscle Sensors V3 together with Arduino.
I've connected the Sensor to the Arduino Uno board accordingly to the picture attached using two 9v batteries. And the code that i used for this program is:

int sensorPin = A0; // select the input pin for the potentiometer
int ledPin = 13; // select the pin for the LED
int sensorValue = 0; // variable to store the value coming from the sensor

void setup() {
// declare the ledPin as an OUTPUT:
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
pinMode(sensorPin,INPUT);

}

void loop() {
// read the value from the sensor:
sensorValue = analogRead(sensorPin);
Serial.println(sensorValue);
delay(2000);
}

When i compile and Run it on Serial Monitor, it outputs a continuously value of 164 no matter what i do. Why is it so? Am i on the right track? Below is the pictures of the result that I've gotten when i run this together with the program code. Please feel free to highlight if there is any mistakes that I've done for this program. Thank you and hope you have a nice day.

Probably has to do with your connections. Can you post come pics of your hardware?

Hello i connect +Vs to the one of the positive +9V Battery and i short the Negative of both batteries together and connect to GND, for the -VS i connected it to the other positive side of the +9V battery.
And the SIG i connect it to Analog Pin A0 and the Gnd to Gnd. Pic attached as shown. Abit messy though :smiley: Thanks guys!!!

image2.JPG

image3.JPG

knut_ny:
code is ok.
sensor is almost identical to http://www.instructables.com/id/Muscle-EMG-Sensor-for-a-Microcontroller/
(other chips - same concept)
How about connections to your body?

Yes it's the same! :smiley: Pics of connections as attached on above post! :smiley: Thanks for ur help!

edwardanthony:
Hello i connect +Vs to the one of the positive +9V Battery and i short the Negative of both batteries together and connect to GND, for the -VS i connected it to the other positive side of the +9V battery.
And the SIG i connect it to Analog Pin A0 and the Gnd to Gnd. Pic attached as shown. Abit messy though :smiley: Thanks guys!!!

There's your problem! Your batteries aren't wired right. Did any of the chips on your board get hot or smoke? Your current connection could burn out the chips on the board.

To fix your setup, you should connect the positive of one battery to +Vs, the positive of the second battery to the negative of the first battery and connect to GND, then connect the negative of the second battery to -Vs.

You should use a multimeter to check the voltages at the +Vs and -Vs pins. They should read +9V and -9V respectively.

Advancer:
There's your problem! Your batteries aren't wired right. Did any of the chips on your board get hot or smoke? Your current connection could burn out the chips on the board.

To fix your setup, you should connect the positive of one battery to +Vs, the positive of the second battery to the negative of the first battery and connect to GND, then connect the negative of the second battery to -Vs.

You should use a multimeter to check the voltages at the +Vs and -Vs pins. They should read +9V and -9V respectively.

yes!! i smelt some smell coming from the device!! Oh my god! :frowning: what a mistake i've done!! Thank you i will try and let you know the results! :smiley:

now the value is continuously zero! Oh my god did i fried the board? :frowning:

Sorry but you probably did. :cry:

Advancer:
Sorry but you probably did. :cry:

Hello, i've tried it with a new board..... but it's still constantly 0.

Advancer:
Probably has to do with your connections. Can you post come pics of your hardware?

Hey friend, the code first line. "int sensorPin = A0; // select the input pin for the potentiometer". I merely connect the SIG from the muscle sensor to the A0 in the arduino only. Do i have to connect thru a potentiometer? Now i'm abit confused :confused: Have you attempted doing this project before? :confused:

edwardanthony:
Hello, i've tried it with a new board..... but it's still constantly 0.

What voltages do you measure at the +Vs and -Vs pins? Can you post a pick of your new connections?

edwardanthony:
Hey friend, the code first line. "int sensorPin = A0; // select the input pin for the potentiometer". I merely connect the SIG from the muscle sensor to the A0 in the arduino only. Do i have to connect thru a potentiometer? Now i'm abit confused :confused:

You don't need a potentiometer. Where did you get this code? It looks like the Arduino Analog Input example. That example uses a potentiometer to create a variable analog signal.

edwardanthony:
Have you attempted doing this project before? :confused:

Yes, I actually work for the company that makes the sensors.