Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Complete Sensor Guide
      • Engineering Deep Dives
      • AI
      • ARDUINO Compatible Coding
      • Audio Electronics
      • Battery Management
      • Beginners Electronics Series
      • Brainwave
      • Digital electronics (DE)
      • Electric Vehicles
      • EMI/EMC/RFI
      • EVs
      • Hardware Filters
      • IoT tutorials
      • LoRa/LoRaWAN
      • Power Tutorials
      • Protocol
      • Python
      • RPI Python Programming
      • Sensors
      • USB
      • Thermal management
      • Verilog
      • 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
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Tech Terms
    • Webinars & Digital Events
  • Resources
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • White Papers
  • Guest Post Guidelines
  • Advertisers
    • Advertise
    • PR Submissions
    • Eblast Submissions
  • 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, Complete Sensor Guide, Electronic Projects, 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

Log in to leave a comment:

Lost your password?

Don't have an account? Register here

Submit a Guest Post

submit a guest post

EE TECH TOOLBOX

“ee
Tech Toolbox: Wide Bandgap Semiconductors
Moving from silicon to GaN or SiC feels like a whole new ballgame, doesn’t it? It isn’t just about faster switching; it’s about managing the layout parasitics and thermal realities that come with that speed. This month’s Tech Toolbox features a curated eBook that tackles these design hurdles head-on.

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 feed: EDABOARD.com Discussions. EDABOARD.com Discussions.

  • PCB not properly made
  • Flyback converter working incorrectly
  • voltage amplifier for a signal generator
  • What do they connect Y capacitors to in ships?
  • Two Educational Electronics Trainer Projects from Algeria – Detailed Project Overview and Seeking Technical Collaboration

RSS feed: Electro-Tech-Online.com Discussions Electro-Tech-Online.com Discussions

  • Jumper Wire Assortment From Digikey
  • How to size the capacitor for ripple
  • Getting rid of old magazines
  • Electronics and PIC Programming Assembler Update
  • PIC code for 2.42" I2C OLED Display?

Featured Tutorials

LoRa and LoRaWAN: A Complete Guide to Wireless Communication

  • Best practices for securing LoRa networks
    Best practices for securing LoRa networks
  • Understanding LoRa architecture: nodes, gateways, and servers
    Understanding LoRa architecture: nodes, gateways, and servers
  • Revolutionizing RF: LoRa applications and advantages
    Revolutionizing RF: LoRa applications and advantages
  • How to build a LoRa gateway using Raspberry Pi
    How to build a LoRa gateway using Raspberry Pi
  • How LoRa enables long-range communication
    How LoRa enables long-range communication
  • How communication works between two LoRa end-node devices
    How communication works between two LoRa end-node devices
More Tutorials >

Recent Articles

  • Texas Instruments adds agentic AI to CCStudio
  • onsemi adds trench SiC for power systems
  • Silanna launches matched chipset for multi-channel LiDAR
  • Renesas launches browser-based embedded development hub
  • Diodes targets EV charging current sensing

EE ENGINEERING TRAINING DAYS

engineering
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • 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 © 2026 Arrowfly 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 Arrowfly
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Complete Sensor Guide
      • Engineering Deep Dives
      • AI
      • ARDUINO Compatible Coding
      • Audio Electronics
      • Battery Management
      • Beginners Electronics Series
      • Brainwave
      • Digital electronics (DE)
      • Electric Vehicles
      • EMI/EMC/RFI
      • EVs
      • Hardware Filters
      • IoT tutorials
      • LoRa/LoRaWAN
      • Power Tutorials
      • Protocol
      • Python
      • RPI Python Programming
      • Sensors
      • USB
      • Thermal management
      • Verilog
      • 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
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Tech Terms
    • Webinars & Digital Events
  • Resources
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • White Papers
  • Guest Post Guidelines
  • Advertisers
    • Advertise
    • PR Submissions
    • Eblast Submissions
  • Subscribe