Start here
Pair one or two BLE EMG nodes, build a stable baseline, and train with live EMG feedback.
Set up Arduino
Flash both XIAO nodes
Upload the BLE sketch and give each XIAO node a unique DEVICE_ID.
Set node identities
Use DEVICE_ID 1 / EMG-Node-A for the Left slot and DEVICE_ID 2 / EMG-Node-B for the Right slot.
Check the wiring
Keep A0 for EMG signal and D2 for detect. Configure power and vibration pins only if they are wired.
Power the nodes
Turn on both battery-powered nodes and keep them near the computer for pairing.
Use MyoPatch
Use Chrome or Edge
Web Bluetooth is required for online BLE pairing.
Pair one or two nodes
One connected slot shows a single waveform. Two connected slots automatically enable comparison.
Use the device slots
Pair the first node in Left slot and the second node in Right slot. No Single/Dual switch is needed.
Run Setup
After pairing, press Setup and complete six smooth, standard actions.
Start training
Train once the baseline is Ready and the left-right balance tile looks stable.
Arduino code
BLE notify at 100 Hz. Internal EMG sampling stays at 500 Hz.
Arduino code preview is hidden so the live waveform stays lightweight. Use Copy Arduino Code, or show the preview when you need to inspect it.
Real-time signal
Last 60 seconds by default. Red marks high left-right risk.
Left filteredLeft envelopeRight filteredRight envelope
Waiting for data
Connect a device or Demo Sensor to see the signal.
Setup State
Setup Needed
Baseline
Needs Setup
Press Setup and complete 6 smooth actions.
Left-right balance
N/A
Compares left and right signal levels.
Dual offFatigue
--
Tracks signal drop over time.
NormalDevice
Not selected
Pair the left or right BLE node.
Latest Frame
Waiting
Test records
Stored only in this page session. Export saves a JSON file.
Reset after a test to create the first record.