> For the complete documentation index, see [llms.txt](https://help.imotions.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.imotions.com/lab/sensor-setup/shimmer/shimmer-ecg-emg-exg-device-connection-and-configuration-in-imotions.md).

# Shimmer ECG / EMG / EXG: Device Connection and Configuration in iMotions

Connect a Shimmer 3 ECG/EMG to iMotions Lab, choose ECG or EMG mode and sampling rate, and get inter-beat interval and heart rate from the ECG.

*This article provides information about initial set-up for the Shimmer 3* *ECG/EMG (previously referred to as EXG) only. For information about the Shimmer GSR, please refer to this* [*article*](https://help.imotions.com/lab/sensor-setup/shimmer/shimmer-3-gsr-device-connection-and-configuration-in-imotions.md)*.*

***Before connecting your Shimmer ECG / EMG to iMotions, make sure the sensor is set up and the firmware is updated via Consensys. Please click*** [***here***](https://help.imotions.com/lab/sensor-setup/shimmer/shimmer-3-initial-setup-and-firmware-updates.md) ***for instructions.***

With the Shimmer ECG/EMG device you can collect the following bio-physiological signals depending on your software configuration:

* **ECG - Electrocardiogram** Heart rate
* **EMG - Electromyogram** Muscle activity

Additionally, the device has integrated several telemetry sensors such as acceleration, gyro, magnetometer, and pressure sensors (including respiration).

Note: iMotions Analysis tools include R Notebooks for signal processing of ECG, EMG, and Accelerometer data (but not for Respiration data). For Respiration, raw data can be recorded/exported with iMotions. More details can be found on [Shimmer website and documentation](https://www.shimmersensing.com/support/documentation/).

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-3ed5553034650dd42ae32eab8c3e080a2fbca067%2Fdd7415d0d1_blobid0-2-.webp?alt=media)

The connection and configuration of the Shimmer sensor is accomplished directly in iMotions.

1. First make sure your Shimmer device is on, charged, and configured (see [Shimmer 3 - Initial Setup and Firmware Updates](https://help.imotions.com/lab/sensor-setup/shimmer/shimmer-3-initial-setup-and-firmware-updates.md))
2. In iMotions, click “Preferences” > “Global Settings”, and select the tab “Sensors”.

   ![ECG\_ibi\_configuration.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-c7223b1b7ec902f232dc719ddd43ede3a40cd772%2Fc5cb705ee0_ecg_ibi_configuration.webp?alt=media)
3. Click "Search" next to the Bluetooth section. iMotions will find all the Shimmer devices within range.
4. Use the pull-down menu to select the correct device you want to pair with. The device ID can be found on the back of the device as four alphanumeric characters.

   ![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-6ed380ccf6c5dbee3633676da16e4cc9f421f8af%2Fa643cc6f2e_vxzvxnmxu2sduz1mkbza.webp?alt=media)
5. Next, select your configuration under "Shimmer Type". If you wish to record heart rate, select "ECG". If you wish to record muscle activity, select "EMG".
6. **Uncheck** "Use config from Consensys". This box should only be checked off if you wish to use the default Shimmer configuration as defined by Consensys, which will override iMotions Global Settings. When this box is unchecked, the Options parameters will become available for modification (see below). Hover over the 'i' for more information.

   ![Shimmer3.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-69884d15ac60a90962e32820359db492e881584a%2F3fc13f449d_a1sle8xvx0am5vh9qsvaxg.webp?alt=media)

   ![gsr\_and\_ecg\_sample\_rate.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-faf960cf9d7404e203eb188ee35cb72d43c90ac3%2Ff98da43030_pwg6ewhp30ctrzdvyaufq.webp?alt=media)
7. Options: The Options parameters will become available by unchecking the "Use config from Consensys" box.

   ![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-8123cf6b052a90e292f2cf65a7f9ec4d625ab573%2Fd6f2a6c99f_blobid3-2-.webp?alt=media)

   The parameters are described below:

   * Sample Frequency: For ECG, a sampling rate of 512 Hz or higher is recommended. For EMG, use 1024 Hz: surface EMG contains frequencies up to about 450 Hz, and a sampling rate must be at least twice the highest frequency in the signal.
   * Heart Rate: Check this box in ECG mode if you wish to have IBI and beats/minute calculated within iMotions (see below)
   * Accelerometer: Check this box if you want acceleration in the X, Y, and Z planes to be included in your data collection.

Finally, check off "Enable data collection", and press Okay.

The Shimmer widget in the LiveViewer should display 'Connecting', followed by 'Configuration' and 'Collecting'.

## Inter-Beat-Interval and Beats/Minute

Shimmer ECG also provides you with IBI. To get IBI as seen in the image below, you need to configure the shimmer device, as seen in the picture above.

![IBI\_ecg.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-71a801454eeafaff6c7c1f045c373ec3a89f4fbf%2Fad94bbee98_ibi_ecg.webp?alt=media)

Heart Rate is listed as ECG LL - RA (Beats/Min), and thus requires specific electrode placement. LL and RA must form a cross-body signal (see example below).

![image\_\_5\_.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-19e418f3c333b25e153e75359ff49db206b33e20%2Fcec42e539f_image__5_-3-.webp?alt=media)

![blobid0.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-3ed5553034650dd42ae32eab8c3e080a2fbca067%2Fdd7415d0d1_blobid0-2-.webp?alt=media)

## EMG configuration

For EMG use the following configurations:

![EMG.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-2c493d29b105dd754b7b4fbcf97bcd4f27baf007%2F97ba3c8629_emg.webp?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.imotions.com/lab/sensor-setup/shimmer/shimmer-ecg-emg-exg-device-connection-and-configuration-in-imotions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
