You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Projects/EMG.md
+43-43Lines changed: 43 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,35 +28,35 @@ This page will guide you step-by-step through the required setup and knowledge t
28
28
First, we need to establish an understanding of what we are trying to measure.
29
29
30
30
{: .TIP}
31
-
Highly recommended to watch the video [Neuromuscular Junction](https://youtu.be/_k6QINRcdV4?si=TG5Yw0wvDcTJtR6G) by [Byte Size Med].
31
+
Highly recommended watching the video [Neuromuscular Junction](https://youtu.be/_k6QINRcdV4?si=TG5Yw0wvDcTJtR6G) by [Byte Size Med].
32
32
33
33
The most important structure that we need to focus on is the [Neuromuscular Junction](https://en.wikipedia.org/wiki/Neuromuscular_junction) (NMJ). This is a specialized [synapse](https://en.wikipedia.org/wiki/Synapse) that acts as a communication bridge between [motor neurons](https://www.simplypsychology.org/motor-neuron.html) and skeletal muscle fibers. The NMJ plays a fundamental role in converting neural signals into muscle contraction. Let's break down its working principle step by step.
34
34
35
35
The process begins with a motor neuron transmitting an electrical signal called an [Action Potential]. This signal travels along neuron's [axon](https://en.wikipedia.org/wiki/Axon) until it reaches the NMJ. It activates **voltage-gated sodium channels**, which allow positively charged sodium ions (Na⁺) enter the cell. The influx of sodium causes the cell membrane to become *"less negatively charged"*, a change known as **depolarization**.
36
36
37
37
Continuous depolarization of the cell membrane subsequently activates **voltage-gated calcium channels**. Calcium ions (Ca²⁺) flow into the cell which triggers [little containers](https://en.wikipedia.org/wiki/Synaptic_vesicle) with [neurotransmitters](https://en.wikipedia.org/wiki/Neurotransmitter) to fuse with the membrane and release [Acetylcholine](https://en.wikipedia.org/wiki/Acetylcholine) (ACh).
[Exocytosis](https://en.wikipedia.org/wiki/Exocytosis) process at the Neuromuscular Junction (source: [Byte Size Med])
43
-
{: .text-center .mt-0}
43
+
{: .text-center .mt-0 .fw-500}
44
44
45
-
Acetylcholine travels across the synaptic space and binds to specialized receptors on the muscle cell's membrane. These receptors, also known as [ligand-gated ion channels](https://en.wikipedia.org/wiki/Ligand-gated_ion_channel), respond to the chemical messenger (neurotransmitter) by opening and allowing ions to enter the muscle cell. This process triggers membrane **depolarization**, causing the resting membrane potential of the muscle cell (normally at around -90mV) to become less negative.
45
+
Acetylcholine travels across the synaptic space and binds to specialized receptors on the muscle cell's membrane. These receptors, also known as [ligand-gated ion channels](https://en.wikipedia.org/wiki/Ligand-gated_ion_channel), respond to the chemical messenger (neurotransmitter) by opening and allowing ions to enter the muscle cell. This process triggers membrane **depolarization**, causing the resting membrane potential of the muscle cell (normally at around -90mV) to become less negative.
[Depolarization](https://en.wikipedia.org/wiki/Depolarization) caused by the opening of ligand-gated ion channels (source: [Byte Size Med])
51
-
{: .text-center .mt-0}
51
+
{: .text-center .mt-0 .fw-500}
52
52
53
53
As more ACh molecules bind to their receptors, the membrane voltage continues to rise. Once it reaches a threshold of approximately -50 mV, **voltage-gated sodium channels** open, allowing sodium ions (Na⁺) to rush into the muscle cell. This influx of sodium completes the process of membrane depolarization and generates an **Action Potential**. This electrical signal propagates along the muscle membrane, eventually leading to a muscle contraction.
If you feel overwhelmed by the details, the main takeaway: a neural electrical signal is converted to a chemical signal and then back into electrical signal in the muscle. The sequence **Neural Action Potential** → **Acetylcholine Release** → **Muscle Action Potential**. The muscle action potential then propagates along the muscle cell membrane and ultimately triggers muscle contraction.<br><br>The most important point is that this **muscle action potential can be measured**, providing valuable information about muscle activity.
@@ -72,25 +72,25 @@ In SensEdu we use surface EMG. From now on, whenever we mention EMG or electrode
72
72
73
73
## Hardware Setup
74
74
75
-
This section describes all necessary connections and hardware details required for proper setup and writing the script for MCU. Below you can find a Figure of how the whole system would look like.
75
+
This section describes the necessary connections and hardware details required for the proper setup of the EMG BioInputs system and writing the script for MCU. Below is an illustration of the overall system architecture.
Typical electrode consists of 3 connectors: **Reference**, **Positive Input**, and **Negative Input**. So in reference to 4-Pin headers the connection would look like this. Notice that the voltage pin is not connected to anything.
93
+
A typical electrode consists of 3 connectors: **Reference**, **Positive Input**, and **Negative Input**. Below is a table detailing how these connectors correspond to the pins on the headers. Note that the voltage pin (1st pin) on the headers is not used in this connection.
94
94
95
95
| Electrode Connector | Signal | Header Pin |
96
96
|:--------------------|:-------|:-----------|
@@ -99,50 +99,50 @@ Typical electrode consists of 3 connectors: **Reference**, **Positive Input**, a
99
99
| Reference | GND | 4th Pin |
100
100
101
101
{: .WARNING}
102
-
Most electrodes that you can buy use various connectors that cannot directly be connected to typical headers like on SensEdu. So, you need to come up how to make this connection soldering, either by soldering, building adapters or buying ones.
102
+
Most commercially available electrodes use connectors that are not directly compatible with typical 2.54 headers. For specific chosen electrode you will need a solution how to make this connection possible via soldering, custom adapters, or ready-made solutions.
103
103
104
-
In our example we used the next electrodes:
104
+
In our example, we used the following electrodes:
105
105
106
106
| Manufacturer | Product Title | Product Code | Datasheet | Store |
| MTG Imiella Medizintechnik | Liquid Gel Disposable Electrodes for ECG (Ø40mm) | S40LG |[link](https://static.mercateo.com/ec/2c36d66dd9904e92ad9e3075734affb2/pdf/106366.pdf?v=2297)|[link](https://www.mercateo.at/p/2768-028002/Einmal_Klebeelektroden_40_mm_Liquid_Gel_30_Stueck.html)|
110
110
111
-
These specific electrodes use a mini-jack connector. To make the usage of these electrodes more convenient, we designed a simple PCB adapter called **MiniJack2Jumper**. All PCB source files, including the Gerber files, can be found in the directory: `/Projects/EMG-BioInputs/pcbs/MiniJack2Jumper`.
111
+
These electrodes use a mini-jack connector. To simplify the connection, we designed a simple PCB adapter called **MiniJack2Jumper**. This adapter is inserted vertically into the SensEdu header, providing a mini-jack socket and eliminating the need for soldering. All PCB source files, including Gerbers and BOM, are available in the directory: `/Projects/EMG-BioInputs/pcbs/MiniJack2Jumper`. To replicate our setup, you can use archive `MiniJack2Jumper/manufacturing/MiniJack2Jumper-Gerber.zip` to order the PCB from any cheap Chinese manufacturer. The cost typically ranges from $15–$30 depending on shipping.
As a base of the circuit SensEdu offers Dual-Channel Instrumentation Amplifier [AD8222](https://www.analog.com/media/en/technical-documentation/data-sheets/ad8222.pdf). On the shield we have x2 of them, which allows to have**up to x4 EMG channels**. All channels are accessible from female 2.54mm sockets:
As a base of the circuit SensEdu offers Dual-Channel Instrumentation Amplifier [AD8222](https://www.analog.com/media/en/technical-documentation/data-sheets/ad8222.pdf). On the shield we have x2 of them, which allows having**up to x4 EMG channels**. All channels are accessible from female 2.54mm sockets:
A 1-second history allows the filter to capture multiple cycles of low-frequency components, such as 10Hz (1 cycle every 100ms) or even lower frequencies (e.g., motion artifacts below 10Hz). This improves:
199
199
200
200
The filter's ability to attenuate noise and artifacts.
@@ -207,7 +207,7 @@ For example, a 5Hz low-pass filter requires at least 200ms of data for one full
207
207
208
208
Use a 1-second buffer for filtering and envelope detection, but process overlapping chunks (e.g., update every 40ms). This ensures that decisions are updated frequently without sacrificing the filtering accuracy of the longer window.
0 commit comments