Welcome to Upside Down Labs docs site!

Muscle BioAmp Shield#

v0.3

Overview#

Muscle BioAmp Shield is an all-in-one Arduino Uno ElectroMyography (EMG) shield for learning neuroscience with ease which is inspired from BackYard Brains (BYB) Muscle Spiker shield and provides similar features like hobby servo output, user buttons, LED Bar, Audio output, and battery input. It is perfect for beginners as they can easily stack it on top of Arduino Uno to record, visualize and listen to their muscle signals to make amazing projects in the domain of Human-Computer Interface (HCI).

../../../_images/muscle-bioamp-shield.jpg

Features & Specifications#

Muscle BioAmp Shield comes with various plug-and-play options so you can connect hundreds of extension boards like OLED screens, character displays, accelerometers, and servo controllers to name just a few using the STEMMA I2C interface. You also get STEMMA digital and STEMMA analog ports. On STEMMA analog port you can connect additional BioAmp EXG Pill or any other sensor with analog output. On STEMMA digital port you can connect any digital sensor or actuator of your choice.

../../../_images/shield-pamphlet.jpg

Input Voltage

5V

Input Impedance

10^11 ohm

Fixed Gain

x2420

Bandpass filter

72 – 720 Hz

Compatible Hardware

Arduino UNO

BioPotentials

EMG (Electromyography)

No. of channels

1

Electrodes

3 (Positive, Negative, and Reference)

Dimensions

6.0 x 5.3 cm

Open Source

Hardware + Software

Hardware#

Images below shows a quick overview of the hardware design.

PCB Front

../../../_images/Muscle-BioAmp-Shield-Front.png

PCB Back

../../../_images/Muscle-BioAmp-Shield-Back.png
../../../_images/24_Assembled.jpg

Assembled PCB#

../../../_images/dimensions2.png

PCB Layout#

../../../_images/Schematic.png

Schematic Diagram#

Contents of the kit#

There are 2 variants available for Muscle BioAmp Shield v0.3 kit - one comes with the shield assembled and the other one contains bare PCB of the sensor and the components separately which you can assemble pretty easily.

../../../_images/kit-contents-assembled.png

Assembled Muscle BioAmp Shield kit content#

../../../_images/kit-contents-unassembled.png

Unassembled Muscle BioAmp Shield kit content#

Software requirements#

Before you start using the kit, please download Arduino IDE v1.8.19 (legacy IDE). Using this you’ll be able to upload the arduino sketches on your development board and visualise the data on your laptop.

../../../_images/arduino-ide.png

Assembling the Kit#

You can get your own Muscle BioAmp Shield bag of parts from our online stores (shipping worldwide) and for assembling your shield you can take a look at this interactive BOM or the step by step guide below.

Note

Follow the highlighted yellow shapes to assemble your shield!

../../../_images/01_Bare_Board.jpg

Step 1 - Bare Board#

../../../_images/02_1M_Resistors.jpg

Step 2 - 1M Resistors#

../../../_images/03_330R_Resistors.jpg

Step 3 - 330R Resistors#

../../../_images/04_10K_Resistors.jpg

Step 4 - 10K Resistors#

../../../_images/05_22K_Resistors.jpg

Step 5 - 22K Resistors#

../../../_images/06_1K_Resistors.jpg

Step 6 - 1K Resistors#

../../../_images/07_220K_Resistors.jpg

Step 7 - 220K Resistors#

../../../_images/08_1nF_Capacitors.jpg

Step 8 - 1nF Capacitors#

../../../_images/09_100nF_Capacitors.jpg

Step 9 - 100nF Capacitors#

../../../_images/10_100pF_Capacitors.jpg

Step 10 - 100pF Capacitors#

../../../_images/11_Angled_Header_Pins.jpg

Step 11 - Angled Header Pins#

../../../_images/12_5x5mm_Buttons.jpg

Step 12 - 5x5mm Buttons#

../../../_images/13_OptoIsolator.jpg

Step 13 - OptoIsolator#

../../../_images/14_JST_PH_Angled_Connectors.jpg

Step 14 - JST PH Angled Connectors#

../../../_images/15_JST_PH_Straight_Connectors.jpg

Step 15 - JST PH Straight Connectors#

../../../_images/16_IC_Socket.jpg

Step 16 - IC Socket#

../../../_images/17_IC.jpg

Step 17 - IC#

../../../_images/18_LEDs.jpg

Step 18 - LEDs#

../../../_images/19_3.5mm_Headphone_Jack.jpg

Step 19 - 3.5mm Headphone Jack#

../../../_images/20_2.2uF_Capacitor.jpg

Step 20 - 2.2uF Capacitor#

../../../_images/21_1uF_Capacitor.jpg

Step 21 - 1uF Capacitor#

../../../_images/22_470uF_Capacitor.jpg

Step 22 - 470uF Capacitor#

../../../_images/23_Header_Pins.jpg

Step 23 - Header Pins#

../../../_images/24_Assembled.jpg

Step 24 - Assembled Shield#

Still can’t figure out the assembly? You can follow the video provided below to assemble your Shield.

Using the Sensor#

Step 1: Stack on Arduino Uno#

Stack the Muscle BioAmp Shield on top of Arduino Uno properly.

../../../_images/shield-arduino-connection.gif

Step 2: Connecting Electrode Cable#

Connect the BioAmp Cable to Muscle BioAmp Shield as shown.

../../../_images/electrode-cable-connection.gif

Step 3: 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 an alcohol wipe or a wet wipe.

For more information, please check out detailed step by step Skin Preparation Guide.

Step 4: Electrode Placements#

We have 2 options to measure the EMG signals, either using the gel electrodes or using dry electrode based Muscle BioAmp Band. You can try both of them one by one.

Using gel electrodes#

  1. Connect the BioAmp cable to gel electrodes,

  2. Peel the plastic backing from electrodes

  3. Place the IN+ and IN- cables on the arm near the ulnar nerve & REF (reference) at the back of your hand as shown in the connection diagram.

../../../_images/electrode-placement.gif

Using Muscle BioAmp Band#

  1. Connect the BioAmp cable to Muscle BioAmp Band in a way such that IN+ and IN- are placed on the arm near the ulnar nerve & REF (reference) on the far side of the band.

  2. Now put a small drop of electrode gel between the skin and metallic part of BioAmp cable to get the best results.

    Tutorial on how to use the band:

Note

In this demonstration we are recording EMG signals from the ulnar nerve, but you can record EMG from other areas as well (biceps, triceps, legs, jaw etc) as per your project requirements. Just make sure to place the IN+, IN- electrodes on the targeted muscle and REF on a bony part.

Step 5: Connect Arduino UNO to your laptop#

Connect your Arduino UNO R3 to your laptop using the USB cable (Type A to Type B).

../../../_images/arduino-laptop-connection.gif

Warning

Make sure your laptop is not connected to a charger and sit 5m away from any AC appliances for best signal acquisition.

Step 6: Visualise EMG signals on laptop#

Copy paste any one of the arduino sketches given below in Arduino IDE v1.8.19 that you downloaded earlier:

Go to tools from the menu bar, select board option then select Arduino UNO. In the same menu, select the COM port on which your Arduino Uno is connected. To find out the right COM port, disconnect your board and reopen the menu. The entry that disappears should be the right COM port. Now upload the code, & open the serial plotter from the tools menu to visualize the EMG signals.

After opening the serial plotter make sure to select the baud rate to 115200.

Now flex your arm to visualize the muscle signals in real time on your laptop.

../../../_images/visualise-emg.gif

Step 7: Visualise EMG signals on LEDs#

Copy paste the Arduino Sketch given below in Arduino IDE:

Make sure you have selected the right board and COM port. Now upload the code, and flex your arm. You’ll see the LED bar going up. More strength you apply, more the LED bar goes up.

../../../_images/led-graph.gif

Step 8: Listen to your EMG signals#

You can either listen to the muscle signals (EMG) on a speaker or wired earphones/headphones. Let’s try both of them.

Listening EMG on speakers#

  1. Connect the BioAmp AUX cable on a bluetooth speaker that have 3.5mm jack support.

  2. Switch on the speaker and turn the volume to maximum.

  3. Flex and listen to your muscles.

../../../_images/listening-emg-speakers.gif

Listening EMG on a wired earphones/headphones#

  1. Plug your wired earphones or headphones on the 3.5mm jack of BioAmp v1.5.

  2. Plug it in your ears.

  3. Flex and listen to your muscles.

../../../_images/listening-emg-earphones.gif

Step 9: Controlling a servo motor#

Connect the servo claw to Muscle BioAmp Shield.

Copy paste the Arduino Sketch given below in Arduino IDE:

Make sure you have selected the right board and COM port. Now upload the code, and flex your arm to control the servo claw in real time.

../../../_images/servo-control.gif

Step 10: Controlling a servo claw#

Connect the servo claw to Muscle BioAmp Shield.

Copy paste the Arduino Sketch given below in Arduino IDE:

Make sure you have selected the right board and COM port. Now upload the code, and flex your arm to control the servo claw in real time.

../../../_images/claw-control.gif

Step 11: Connecting 9V battery#

Till now, the power for the EMG system was coming from the laptop via USB cable of Arduino Uno but there can be 2 ways in which you can make the system portable:

  • Using 9V battery: Directly connect a 9V battery to Muscle BioAmp Shield using a 9V snap cable.

  • Using Power Bank: Instead of connecting the USB cable of Arduino Uno to laptop, you can directly connect it to power bank.

../../../_images/9v-battery.gif

Note

Do not use 9V battery while controlling a servo claw using Muscle BioAmp Shield. Instead connect the Arduino UNO to a power bank or directly to your laptop.

Step 12: Other functionalities you can explore#

Using I2C ports#

There are 2 I2C ports available on Muscle BioAmp Shield and you can connect hundreds of devices having I2C compatibility using the 4-pin JST PH 2.0 mm STEMMA cables provided.

Some of the examples are: OLED screens, character displays, temperature sensors, accelerometers, gyroscopes, light sensors, BioAmp Hardware, etc.

Using STEMMA Digital port#

Connect Arduino Uno’s D6 digital I/O pins using STEMMA digital connectors.

Using STEMMA Analog port#

Connect Arduino Uno’s A2 analog input pins using STEMMA analog connectors.

Using user buttons#

Program the 2 user buttons according to your project requirements.