Hi,
As I've said in the title, I'm trying to rig my Arduino Mega to read EMG signals, to use as control signals for other fun things.
However, after setting up my breadboard, no matter how much I've connected and reconnected, or generally futzed around with it, all I've managed is for the plotter to return the signal maxed at 1023.
The code I'm using is, quite literally, only to read the signal, but I'll add it in just on the off chance that I'm an idiot and got something wrong there:
//Pin number where the sensor is connected. (Analog 14)
#define EMG_PIN 14
// the setup routine runs once when you press reset:
void setup() {
// initialize serial communication at 57600 bits per second, due to speed of other sensor:
Serial.begin(57600);
}
// the loop routine runs over and over again forever:
void loop() {
// read the input on analog pin 14:
int sensorValue = analogRead(EMG_PIN);
// print out the value you read:
Serial.println(sensorValue);
}
Setup is as follows:
-
The sensor operates between ±9V (Acquired from the two 9V batteries)
-
The midway-point is taken as 0V and grounded (to the Power Supply-Gnd as well as Arduino-GND)
-
Signal is connected to A14
-
Signal Gnd is connected to Arduino GND
Any insight you can provide me with is greatly appreciated, thanks!