Skip to Content

How to Start

From the box to a live muscle signal (EMG) in the Arduino Serial Plotter, in six steps. The same steps work for ECG, EOG and EEG: only the jumper and the electrode positions change.

The four steps: wiring, electrodes, upload, read the signal

Gather the parts

You need the EasyEXG, an Arduino (any UNO, Nano or UNO R4), 3 jumper wires, a 3-lead snap cable with a 3.5 mm plug, 3 gel electrodes and a USB cable. See What’s in the Box.

Set the gain jumper JP1

MeasurementJP1Gain
EMG (muscle), EOG (eyes)Open (as shipped)221×
ECG (heart), EEG (brain)Bridged with a solder blob1 048×

For this first test (EMG), leave JP1 open. Details: Gain jumper JP1.

Wire J3 to the Arduino

Use three jumper wires, with the Arduino unplugged:

EasyEXG pin (J3)Arduino pinWire colour in the pictures
GNDGNDgrey
VCC5V (or 3.3V)red
OUTA0yellow
VREFnot connected—

EasyEXG wired to an Arduino UNO R4 WiFi

Using an ESP32 or a Raspberry Pi Pico? Power EasyEXG from 3.3 V, see Connection & Pinout.

Upload the sketch

  1. Install the Arduino IDE .
  2. Open EasyEXG_Arduino.ino from the Arduino folder of the EasyEXG repository.
  3. Plug the Arduino into the computer, choose your board and port in Tools, and click Upload.

The sketch samples A0 at 500 Hz, removes the resting level (about 512 counts = VCC/2) and prints two numbers per line: the signal and its envelope (muscle activity level).

Place the electrodes

Clean the skin with an alcohol wipe, snap the electrodes onto the cable and stick them on:

ElectrodePlug contactWhere (EMG, forearm)
IN+TipOn the forearm muscle, a hand-width from the wrist
IN−RingSame muscle, 2–3 cm further along
REFSleeveOn a bony spot: the elbow

Plug the cable into the 3.5 mm jack J1.

EMG electrode placement on the forearm

EasyEXG has no isolation. Before the electrodes go on, unplug the laptop charger so the laptop runs on battery, or switch to the Wi-Fi sketch and power the Arduino from a power bank. Never record from a computer plugged into the mains.

Read the signal

Open Tools → Serial Plotter and set 115200 baud.

TestWhat you should see
Relax the armBoth traces close to flat
Clench your fistBursts on the blue trace (signal), the yellow trace (envelope) rises
Relax againBoth traces go flat

Next steps

  • ECG, EOG or EEG: change JP1 and the electrode positions, see Electrode Placement.
  • Wireless, filters, CSV recording: use the Wi-Fi sketch and the Python viewer, see Software.
  • Noisy or flat signal? See Troubleshooting.
Last updated on