Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

Designing an Arduino-based EMG monitor

By Nikhil Agnihotri June 6, 2021

Electromyography (EMG) is a medical procedure that evaluates the health conditions of muscles and nerve cells. These cells transmit electrical signals that cause muscles to contract or relax. EMG is used to read these signals and plot them as numbers or graphs.

Typically, EMG is performed by doctors as one part of a diagnostic tool that can detect a potential muscle or nerve disorder. However, EMG sensors are also used in muscle-controlled electronic applications — such as for controlling a servo motor or robotic arm by using muscle-like movements.

In this project, we’ll use an AD8226-based EMG sensor to plot an EMG graph with the help of Arduino. AD8226 is an instrumentation amplifier that’s widely used to design sensors. It provides gains from 1 to 1000. It’s also widely used in medical instrumentations, bridge amplifiers, industrial process control, and portable data-acquisition systems.

Here, we’ll learn how to interface an AD8226-based EMG sensor with Arduino UNO and plot the electrical activities of a muscle group on Arduino UNO. The sensor can be used to measure the activation of any group of muscles, including biceps, quads, calves, etc.

 

Components

1. Arduino UNO x1
2. AD8226-based EMG sensor x1
3. 52mm electrode pads x3
4. A 3-lead connecting cable x1
5. 9V batteries x2
6. Connecting Wires & Jumper wires

Software

  • Arduino IDE

The EMG sensor
The EMG device used in this project is a 3-lead differential muscle/electromyography sensor. It comes with an onboard, 3.5mm cable port that can be used to attach regular EMG/ECG electrodes.

Although the sensor is not an industry-grade EMG device, it is effective for measuring and monitoring muscle activation. It can be used for robotics, prosthetics, and a variety of control applications.

The sensor board has this pin configuration:

The sensor is ideal for use with microcontrollers. Unlike industry-grade medical sensors, however, it does not output raw EMG signals. Rather, an amplified, rectified, and smooth signal is delivered that can be read at Arduino’s analog input pin (or any other microcontroller).

 

The board is powered by DC voltage that ranges from +/-3.5 to +/-18V. The output signal voltage can range to 0V. The sensor’s gain can be changed using an onboard potentiometer, which can be adjusted between 0.002 for 0.01Ω to 20,700 for 100KΩ on the pot. The output differential signal can vary from 0mV to the supply voltage/gain.

 

The sensor board uses an AD8226 instrumentation amplifier. It requires only one external resistor to set the gain from 1 to 1000. The amplifier operates on supplies, ranging between +/-1.35 to +/-18V (for dual supplies) and 2.2 to 36V (for a single supply).

It’s can also handle voltages beyond its rail-to-rail voltage. For example, even with a 5V supply, the IC can withstand up to +/-35V.

The AD8226 is a small form factor, multichannel, low-cost, and low-power amplifier.

Circuit connections
The sensor board has two sets of pins:

  • A 3-pin set that includes -+Vs, GND, and -Vs terminals. It’s used to provide a dual-supply to the AD8226 amplifier. 
  • A 2-pin set that includes the signal and GND terminals. It’s used to interface the board with the microcontroller. 

To begin, you’ll need the two 9V batteries. Connect the positive terminal of one battery to the +VS pin. Then, connect the negative terminal of that same battery with the positive terminal of the second battery, joining it to the GND pin in the 3-pin header. 

Next, connect the negative terminal of that second battery to the -Vs pin. This provides the +/-9V dual-supply to the sensor. 

To interface with Arduino, connect the GND pin in the 2-pin header to any of the two ground pins on Arduino UNO. Lastly, connect the signal pin to any analog input pin, such as A1.    

Circuit diagram 

 

The electrodes
Ensure the 3-lead cable that’s equipped with a 3.5mm jack, is connected to the sensor board. The EMG/ECG electrodes can, then, be attached to the cable. 

Pick a muscle group to monitor, such as a bicep or calf. Place one electrode in the middle of this muscle group and attach the red cable’s snap connector to this electrode. Next, place a second electrode at one end of this muscle group, attaching the green cable’s snap connector to this electrode. 

Then, place the third electrode on a bony or non-muscular part of the body that’s near the same muscle group. Attach the yellow cable’s snap connector to this electrode. 

Arduino sketch  

int EMGPin = A1;
int EMGVal = 0;

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

void loop() {
EMGVal = analogRead(EMGPin);
Serial.println(EMGVal);
}

How it works
The EMG signals can range from 50u to 30 mV. The AD8266 sensor offers a gain of up to 1000, which can amplify the EMG potentials to the mV level. The “read” EMG signals are amplified, rectified, and smoothed by the AD8226 instrumentation amplifier. 

When the electrodes are properly placed on a muscle group, their contraction and relaxation produce EMG potentials. These potentials are picked up by the sensor and amplified to a measurable range. The sensor board’s gain can be adjusted by using an onboard potentiometer. 

The output signal from the sensor board is read via Arduino’s input pin. As the output signal from the sensor board is rectified (and in mV range), Arduino can easily read it. Arduino is programmed to read the analog input at its A1 pin and print the readings to the serial port.

These EMG readings can be set and monitored as numbers, ranging from 0 to 1023, on Arduino IDE’s serial monitor or as a graph on its serial plotter.     

The code
The sketch begins by assigning A1 as the pin to read the EMG sensor’s analog signals. A variable ‘EMGVal’ is declared to store the analog values that are received from the sensor. 

In the setup() function, the baud rate for serial communication is set to 115200. In the loop() function, the sensor’s analog voltages are read and stored in the ‘EMGVal’ variable. 

The analog readings are printed to the serial port, where they can be monitored on Arduino IDE’s serial monitor or serial plotter.  

The results

You may also like:


  • What are the top tools for developing embedded software?
  • wearables
    How wearable electronics are transforming healthcare

  • Small Electrical Device can recognize Speech and monitor heart

  • How To Use MikroC Pro For PIC16F877A Microcontroller?

  • Science of Sleep

  • BITalino: What if you could make your own body signals…

Filed Under: Arduino Projects, Electronic Projects, Sensors, Tutorials, Video
Tagged With: Arduino
 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: 5G Technology
This Tech Toolbox covers the basics of 5G technology plus a story about how engineers designed and built a prototype DSL router mostly from old cellphone parts. Download this first 5G/wired/wireless communications Tech Toolbox to learn more!

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • Identification of a 6 pin smd chip (sto-23-6) marked E2
  • Dynacord enter protect
  • IGBTs without negative gate drive
  • Need suggestions in task NI6363 retrigger (analog trigger)
  • Monte-Carlo simulation error on ADE-XL

RSS Electro-Tech-Online.com Discussions

  • Does US electric code allow branching ?
  • Faulty heat air gun (dc motor) - problem to locate fault due to Intermittent fault
  • Fun with AI and swordfish basic
  • Sump pit water alarm - Kicad 9
  • turbo jet fan - feedback appreciated.

Featured – LoRa/LoRaWan Series

  • What is the LoRaWAN network and how does it work?
  • Understanding LoRa architecture: nodes, gateways, and servers
  • Revolutionizing RF: LoRa applications and advantages
  • How to build a LoRa gateway using Raspberry Pi
  • How LoRa enables long-range communication
  • How communication works between two LoRa end-node devices

Recent Articles

  • How IoT network topologies work
  • The top five AI startups to watch in 2025
  • STMicroelectronics unveils SoC based on secure MCU
  • Nexperia’s 48 V ESD diodes support higher data rates with ultra-low capacitance design
  • Taoglas releases Patriot antenna with 18 integrated elements covering 600 to 6000 MHz

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe