This repository documents a two-channel stimulation-device test instrument and waveform reference source driven by a Digilent Analog Discovery 2. It reproduces TENS/EMS/NMES-class waveform envelopes and high-voltage capacitive-discharge pulses into resistive dummy loads. The setup supports verification of electrodes, cables, isolation barriers, and dosimetry, calibration of measurement setups, and compliance testing of stimulators.
Channel A is a stereo, transformer-isolated constant-current biphasic/triphasic output stage. Channel B is a separately isolated, high-voltage capacitive-discharge stage. The design uses four galvanic domains, independent sensing and limiting, hardware relays, and a mechanical stop chain. The ctrl/ directory contains the A0 emulator and controller software. See the design record for the full topology, limits, component references, and test gates.
Revision 3 is a design record with staged build and commissioning gates. The controller emulator is software; the complete hardware build and commissioning are not represented as finished. Parts availability and prices are lookup snapshots and must be rechecked before ordering.
Technical review is welcome, especially on component availability, switching ratings, isolation layout, and the proposed verification gates. Start with the specific feedback questions, then open a GitHub issue or discussion with the question number, relevant design-record section, assumptions, and any datasheet or measurement evidence. Please keep feedback focused on electrical engineering and implementation.