Recording and Visualizing Muscle Signals (EMG) Using Muscle BioAmp Patchy (wearable Muscle Sensor)
by Upside Down Labs in Circuits > Sensors
2548 Views, 6 Favorites, 0 Comments
Recording and Visualizing Muscle Signals (EMG) Using Muscle BioAmp Patchy (wearable Muscle Sensor)
In this tutorial we are going to show you how to create a simple EMG system at your home so that you can easily record and visualize muscle signals in real time using Muscle BioAmp Patchy (wearable muscle sensor) and Arduino Uno.
But before moving forward, let's understand a brief about Electromyography.
What is Electromyography (EMG)?
Electromyography (EMG) is a technique for evaluating and recording the electrical activity produced by skeletal muscles. Some applications of EMG:
- Prosthetic hands,
- Human augmentation,
- Games controllers,
- Rehabilitation and
- Physical therapy
Even doctors are using them for the diagnosis of various neuromuscular ailments.
Recently, it was in the news that Meta is working on wearable EMG sensors to track user movements in the metaverse.
About Muscle BioAmp Patchy:
Muscle BioAmp Patchy is a small wearable muscle sensor for precise EMG sensing. It can be snapped directly to the electrodes, eliminating electrode cables.
The entire BioAmp series of sensors from Upside Down Labs is designed in a way to teach you the basics of the instrumentation amplifier, active bandpass filtering, soldering, programming, neuroscience, HCI, and BCI just to name a few concepts.
Supplies
HARDWARE:
1 x Muscle BioAmp Patchy Kit (Upside Down Labs Store | Amazon India | Tindie Store)
- The kit will include:
- 1 Muscle BioAmp Patchy,
- 1 Reference Cable,
- 3 Jumper Wires,
- 3 Boxy Gel Electrodes
1 x Arduino Uno with USB Cable
1 x Nuprep Skin Preparation Gel (Upside Down Labs Store | Tindie Store)
1 x Wet wipe
SOFTWARE:
Arduino IDE
Connecting Reference Cable
Connect the reference cable to the Muscle BioAmp Patchy as shown in the above diagram.
Connecting Muscle BioAmp Patchy to Gel Electrodes
Connect the Muscle BioAmp Patchy to gel electrodes (Don't peel the plastic from the electrodes at this moment).
Skin Preparation
Apply Nuprep Skin Preparation Gel on the skin surface where electrodes would be placed to remove dead skin cells and clean the skin from dirt. After rubbing the skin surface thoroughly, clean it with a wet wipe.
About Nuprep Gel:
Nuprep skin preparation gel is a mildly abrasive, highly conductive gel that should be applied before placing the electrodes on the skin to improve measurements. When applied gently, it strips away the top layer of skin and moistens the underlying skin layer which reduces the skin impedance with minimal skin irritation and discomfort.
Electrode Placements
Now peel off the plastic backing from the gel electrodes and place the Muscle BioAmp Patchy on the muscle from where you want to record muscle signals (EMG). In this project, we are targeting the ulnar nerve on the forearm.
Connections
Connect the Muscle BioAmp Patchy to your Arduino Uno using jumper cables as directed below:
- OUT to A0
- GND to GND
- VCC to 5V
Download Arduino IDE
Download the Arduino IDE from the link given below:
https://www.arduino.cc/en/software
(We have used Arduino IDE version 1.8.19 for this project)
After downloading, connect the Arduino Uno to your laptop using the USB Cable (Type A to Type B)
Note: Make sure your laptop is not connected to a charger and sit 5m away from any AC appliances for best signal acquisition.
Check All the Conections
Now that you have made all the connections and downloaded the Arduino IDE. Once again check everything as shown in the diagram.
Coding Time!
Copy paste any one of the Arduino Sketches given below in Arduino IDE:
- EMG Envelop: https://github.com/upsidedownlabs/BioAmp-EXG-Pill/blob/main/software/EMGEnvelop/EMGEnvelop.ino
- EMG Filter: https://github.com/upsidedownlabs/BioAmp-EXG-Pill/blob/main/software/EMGFilter/EMGFilter.ino
After flashing the code, open the serial plotter to visualize the EMG signals.
Flex Your Muscle
Now flex your arm to visualize the muscle signals in real time on your laptop. Similarly you can try to record muscle signals from other parts of your body like biceps, triceps, cheeks, thighs, etc.
You are all set to explore on your own and make amazing HCI projects at the comfort zone of your home.
Let us know your feedback in the comments and feel free to ask any questions.
You can also mail us at support@upsidedownlabs.tech for any kind of support while you are making this project.