An Open-Source Workbench Pipeline for Non-Invasive BMI Mechatronics

An Open-Source Workbench Pipeline for Non-Invasive BMI Mechatronics

From Brain Signal Detection to Servo Command: SENSACT × CORTEX ONE as a Modular Development Environment

Author: Thomas Schüller · Syntagma Forschung · Vienna Contact: forschung@tschueller.com · ORCID 0009-0003-9799-6747 Affiliation: Independent, no institutional affiliation, privately funded Version: v0.1.1 (Preprint) · Date: 2026-09-01 · First release 2026-05-17 License: CC BY 4.0 (documentation) · MIT (code)


Abstract

Brain-Machine-Interface (BMI) research suffers from a reproducibility gap between the classification pipeline (EEG acquisition, feature extraction, model training) and the actuation pipeline (mechatronic hand, servo control, force control). Most available frameworks address either one or the other; integrated workbenches are commercial and proprietary. This work documents an open-source pair of 60 functioning engineering tools (SENSACT for mechatronics, CORTEX ONE for BMI), available as browser-based React artifacts and coupled via a BLE protocol. It is argued that such modular workbenches lower the threshold for reproducible BMI prosthesis development — not through new algorithms, but through consolidation of established methods in a verifiable form.

Keywords: Brain-Machine-Interface · Mechatronics · Open Source Hardware · Prosthetics · Reproducibility · EEG Classification · Forward Kinematics


1. Introduction

1.1 Problem Statement

The development of BMI-controlled prostheses requires the integration of at least three disciplines: neurophysiology (EEG acquisition, artifact cleaning), machine learning (classification of neural patterns), and mechatronics (actuator design, force control, sensor fusion). In academic literature, these strands are typically treated separately. Common pipelines exist — Brain Computer Interface 2000 (BCI2000), OpenViBE, BrainFlow — but they focus on the BMI part; the actuator side remains either a black box (proprietary prosthesis APIs) or requires separate software stacks (ROS2, MoveIt, GraspIt!).

This separation has practical consequences for reproducibility: a study reporting “BMI-controlled grasping with 87% success rate” can rarely be documented in a way that another lab could replicate it without considerable implementation effort (Pasley et al. 2012; Kübler 2020).

1.2 Contribution of This Work

A workbench pair is presented in two single-file React artifacts:

Both artifacts are usable independently but couple via a documented BLE packet format:

EEG signal → CSP+LDA classification → BLE packet(0xAA, type=0x01,
   grip_id, force, speed, servos[5], chk) → PCA9685 PWM → servo movement

The contribution is not algorithmic — all methods used are known from the literature — but methodological: the bundling in a verifiable, browser-based form that runs without backend, without cloud dependency, and without API keys.

Figure 1: pipeline from EEG acquisition (CORTEX ONE) via the BLE coupling to servo control and grip physics (SENSACT)

Figure 1 — The end-to-end BMI-workbench pipeline from EEG acquisition (CORTEX ONE) through the documented BLE coupling to servo actuation and grip physics (SENSACT), including the PID control loop with sensor feedback. Both workbenches are usable independently; the figure shows the coupled constellation as a whole.


2. Methodology

2.1 EEG Pipeline (CORTEX ONE)

EEG classification follows the established pipeline schema:

  1. Bandpass filter (FIR/IIR, configurable): 0.5–40 Hz for general BMI applications, 8–13 Hz for SMR (Sensorimotor Rhythm), 1–30 Hz for P300
  2. Artifact removal: ICA or ASR (Artifact Subspace Reconstruction; Mullen et al. 2015)
  3. Feature extraction: Common Spatial Patterns (CSP; Ramoser et al. 2000) for motor imagery, Riemannian Geometry (Barachant et al. 2012) for more robust classification, EEGNet (Lawhern et al. 2018) for end-to-end deep learning
  4. Classification: Linear Discriminant Analysis (LDA) as baseline, SVM/Random Forest for comparison, EEGNet-CNN for comparison

The pipeline is parameterizable in the AutoML wizard; the code generator produces corresponding Python scripts (Scikit-learn, PyTorch).

2.2 Mechatronics Pipeline (SENSACT)

The actuator side implements classical Forward Kinematics for a 5-finger hand with thumb opposition:

Ttip(θ)=∏i=1nAi(θi)T_{\text{tip}}(\theta) = \prod_{i=1}^{n} A_i(\theta_i)

with AiA_i as Denavit-Hartenberg transformation matrices and segment lengths L=[45,28,18]L = [45, 28, 18] mm per finger (typical anthropometric values; NASA-STD-3000 Vol. I).

Grip physics use the Coulomb friction model:

Fmin=m⋅gμ⋅ηgripF_{\min} = \frac{m \cdot g}{\mu \cdot \eta_{\text{grip}}}

with μ\mu as friction coefficient (object-specific) and ηgrip\eta_{\text{grip}} as the efficiency of the grip type (cylindrical=1.0, pinch=0.4, tripod=0.5).

For servo sizing, the standard equation applies:

τrequired=F⋅Lηgear\tau_{\text{required}} = \frac{F \cdot L}{\eta_{\text{gear}}}

The recommendations implemented in the tool are based on servo datasheets (SG90, MG90S, MG996R, DS3218; source: TowerPro datasheets and independent measurements).

2.3 PID Controller

The PID tuner uses standard PID with anti-windup:

u(t)=Kpe(t)+Ki∫0te(τ)dτ+Kdde(t)dtu(t) = K_p e(t) + K_i \int_0^t e(\tau) d\tau + K_d \frac{de(t)}{dt}

with ∫e⋅dτ\int e \cdot d\tau limited to [−50,50][-50, 50]. The step response is simulated on a mass-damper-spring model:

mÿ+cẏ+ky=u(t)−d(t)m \ddot{y} + c \dot{y} + k y = u(t) - d(t)

with disturbance d(t)d(t) as a step function for robustness testing. Three plant models are available: finger grip force, wrist rotation, linear actuator.

2.4 BLE Protocol

The coupling protocol between CORTEX ONE and SENSACT follows a minimal binary format:

| Header (0xAA) | Type (1B) | Length (1B) | Payload (0–N) | Checksum (1B) |

Type codes: 0x01 = Grip Command, 0x02 = Sensor Data, 0x03 = State Change. Checksum is a simple 8-bit sum modulo (sum & 0xFF). Deliberately no CRC-16/32 — sufficient for the targeted latency (10 ms servo cycle) and limited address space (1 receiver).


3. Reproducibility and Limitations

3.1 What is Reproducible

3.2 What is Not Claimed

3.3 Known Weaknesses

  1. EEG simulation in CORTEX ONE: Live data in the demo is synthetic (sine components + noise), not real EEG recordings. For real application, ADS1299 hardware connection is required
  2. Grip physics in SENSACT: Simplified Coulomb model without rolling friction, without compliant contact, without tactile feedback loop
  3. PID model: Assumed linear, no friction-stiction, no nonlinearities of servo gearing
  4. No multi-user synchronization: BLE 5.0 theoretically supports multiple clients, not implemented in the tool

4. Discussion

4.1 Workbenches vs. Black-Box APIs

The trend in the BMI industry is toward integrated but proprietary solutions (Neuralink, Synchron, Blackrock Cereplex). These are clinically validated but difficult to access for independent research. Open-source alternatives (OpenBCI, Muse SDK) offer access to the EEG layer but leave the actuator side open.

The workbench logic presented here closes this gap not through a new SDK but through making the pipeline visible in browser-based tools that invite inspection, modification, and verification. This is epistemically closer to Pearl’s “Book of Why” idea (Pearl & Mackenzie 2018) than to classical algorithm publication: the focus is not innovation but verifiability of the constellation.

4.2 Interfaces

4.3 Ethics

These workbenches are explicitly developed for civilian, prosthetic, and assistive applications. Use in military or weapons contexts is not excluded by the license (MIT permits any use), but is not desired by the author’s declared stance (Helbing 2019; Müller 2020 on the autonomous weapons debate).


5. Conclusion

The SENSACT × CORTEX ONE workbench pipeline closes a concrete gap in open-source BMI prosthetics development: it makes the entire chain from brain signal detection to servo command visible and verifiable in two browser-based artifacts. The scientific novelty does not lie in the algorithms used — these are established — but in the consolidated, reproducibly documented form. For the reproducibility crisis in applied neurotechnology (Chen et al. 2020; Vidaurre et al. 2020), this form is useful: not because it proposes a new paradigm but because it provides the existing paradigm in a verifiable, modifiable form.

Follow-up work should document the hardware connection to ADS1299, prepare a first clinical pilot study with shoulder disarticulation patients (Class I MDR), and publish the integration with OpenBCI/BrainFlow as a formal bridge specification.


Closure

Closure type: USE-CASE CLOSURE — The scope of this working paper is fixed (pipeline documentation for BMI×mechatronics workbench). Extension only via fork or follow-up paper. Hardware connection and clinical validation are explicitly outside this paper and subject to future work.


References

  1. Barachant, A., Bonnet, S., Congedo, M., & Jutten, C. (2012). Multiclass Brain-Computer Interface Classification by Riemannian Geometry. IEEE Trans. Biomedical Engineering, 59(4), 920–928. doi:10.1109/TBME.2011.2172210
  2. Chen, X., et al. (2020). The reproducibility crisis in EEG research and possible solutions. NeuroImage, 220, 117119.
  3. Helbing, D. (2019). Towards Digital Enlightenment. Springer. ISBN 978-3-319-90869-8
  4. Kübler, A. (2020). The history of BCI: From a vision for the future to real support for personhood in people with locked-in syndrome. Neuroethics, 13, 163–180.
  5. Lawhern, V. J., et al. (2018). EEGNet: a compact convolutional neural network for EEG-based brain–computer interfaces. J. Neural Engineering, 15(5), 056013.
  6. Mullen, T. R., et al. (2015). Real-time neuroimaging and cognitive monitoring using wearable dry EEG. IEEE Trans. Biomedical Engineering, 62(11), 2553–2567.
  7. Müller, V. C. (2020). Ethics of Artificial Intelligence and Robotics. In Stanford Encyclopedia of Philosophy. URL: plato.stanford.edu/entries/ethics-ai
  8. Pasley, B. N., et al. (2012). Reconstructing speech from human auditory cortex. PLoS Biology, 10(1), e1001251.
  9. Pearl, J., & Mackenzie, D. (2018). The Book of Why: The New Science of Cause and Effect. Basic Books. ISBN 978-0465097609
  10. Ramoser, H., Müller-Gerking, J., & Pfurtscheller, G. (2000). Optimal spatial filtering of single trial EEG during imagined hand movement. IEEE Trans. Rehabilitation Engineering, 8(4), 441–446.
  11. Vidaurre, C., et al. (2020). Sensorimotor functional connectivity: a neurophysiological factor related to BCI performance. Frontiers in Neuroscience, 14, 575081.

Code and Data Availability


Author: Thomas Schüller · Syntagma Forschung · Vienna · forschung@tschueller.com · ORCID 0009-0003-9799-6747 Affiliation: Independent, no institutional affiliation, privately funded License: CC BY 4.0 (documentation) · MIT (code) Version: v0.1.1 (Preprint, Zenodo Threshold A) · Date: 2026-09-01 · First release 2026-05-17 Word count: ~1850 · Pages: ~7 (A4)