$$\rightleftharpoonup{xx}$$
$$\longleftharp{xx}$$,
$$\longrightharp{xx}$$,
System architecture
In Figure 1, a low-power microcontroller acts as the core of the system, controlling waveform generation, signal processing, and the protocol of communication. The amplitudes of the waveforms are controlled by the programmable current source used. The system uses an integrated H-Bridge circuit for alternating the current direction, and thus creates the biphasic waveforms required to stimulate neural activity. A microcontroller-aided digital resistor, in combination with a shunt resistor, enables programmable waveform modifications through an I2C interface protocol. To ensure that the current passing through electrodes remains constant and consistent with a predefined set of parameters, a feedback loop is provided through a microcontroller. To ensure reliable power delivery and operational stability, a low-dropout voltage regulator is implemented, supplying a 3.3 V power source to the microcontroller along with additional components. The system's communication with external devices, such as a computer, is facilitated by a USB-to-serial converter, which allows for USB connectivity necessary for data acquisition or system configuration. These neural signals obtained from the electrodes are passed through a stage of amplification and filtering to maximize their quality before being processed through the microcontroller. The amplified and filtered signals can either be forwarded for later analysis or stored for further processing, while the system continues to stimulate the neural tissue with the biphasic waveforms generated. A complete block diagram view of the system is shown in Figure 1.
Hardware and schematics
The hardware system consists of several subsystems that work together to produce biphasic waveforms and capture neural signals in real time. It is designed for wireless, remote operation and incorporates low-power components, dependable communication, and robust signal acquisition. Below is a detailed overview of the hardware architecture. The schematic design is shown in Figure 2; also see the Table of Materials.
Power management unit
The device can be powered by a rechargeable lithium-polymer battery or via USB. The battery supplies power to all components: the microcontroller, DAC, amplifiers, and the BLE module. To ensure efficient and stable operation, a voltage regulator is used to provide a consistent 3.3 V power supply to critical components. This regulator's low dropout feature helps extend battery life. Additionally, a battery management system (BMS) is integrated to monitor and manage the battery charging and to prevent overdischarging9. The BMS communicates with the microcontroller to deliver real-time battery updates, which are transmitted to the remote interface via the BLE module. The BMS continuously monitors battery levels and triggers a low-power mode when the charge falls below a specified threshold, disabling non-essential components like the DAC and BLE module to conserve energy.
Signal acquisition and conditioning
To process the low-amplitude weak neural signals captured by the electrodes, the system includes amplification and filtering stages. The design of the recording unit is shown in Figure 3. An operational amplifier is used for low-noise signal amplification and effective filtering, ensuring high signal quality.
Low-noise pre-amplification
The preliminary stage uses an operational amplifier as a low-noise pre-amplifier with a gain factor of 100. Neural signals, typically ranging from microvolts to millivolts, are amplified to levels suitable for further processing. The opamp was chosen because of its low input noise density of 4.5 nV/√Hz at 1 kHz and high precision, making it suitable for the capture of low-amplitude neural signals without distortion. Its ability to produce a clean signal with a high signal-to-noise ratio (SNR) is crucial, as even minor noise can obscure important data5.
Post-amplification and filtering with low-noise opamp
This amplified signal now becomes even more amplified by a gain of 2.5 to reach an ideal level for ADC. A band pass filter is also utilized; it allows a specified frequency band to pass while canceling the interference and noise. The bandwidth of opamp and its zero offset voltage enable appropriate filtering without introducing phase distortion and delay. In general, the bandpass filter is structured in such a way that allows the transmission of frequencies from 1 Hz to 11kHz, embracing most neural signals, while simultaneously dampening low-frequency drift and high-frequency noise, including interference from mains.
Analog-to-digital conversion (ADC)
After filtering, the conditioned signal is digitized by an ADC operating at a 20 kHz sampling rate. The ADC converts the amplified analog signals into discrete digital values for analysis. The opamp ensures the signal quality is preserved, free from noise and distortion. The high sampling rate of 20 kHz captures rapid changes in neural activity with precision, avoiding aliasing.
Waveform generation and current control
The system generates biphasic waveforms using an H-Bridge circuit, allowing current to flow in both directions through the electrodes and creating alternating positive and negative phases necessary for neural stimulation.
Microcontroller control
The microcontroller controls the H-Bridge based on PWM signals. It controls both the frequency and amplitude of the biphasic signal through adjustment in the PWM duty cycle. The current digital-to-analog converter model behaves as a programmable current source, allowing the waveform amplitude to be controlled precisely. This DAC produces an analog signal that adjusts the current flowing through the H-Bridge, thereby ensuring adherence to the specified current parameters.
Feedback loop
A current-sensing resistor placed in series with the electrodes lets the system monitor how much current it is running using an ADC. The microcontroller can make real-time adjustments to the output of the DAC and its waveform by using feedback from the system combined with a PID controller to maintain the specified current levels.
Wireless communication
The BLE module is used in the system to allow communication of wirelessly transmitted data through BLE communication. This module uses the UART protocol for real-time as well as bidirectional communication between the apparatus and a remote user interface. In this design, the BLE module is connected directly to the microcontroller to achieve low-latency integration within wireless data transmission, including neural signals, current settings, and system status, while receiving user commands for adjustment of waveform parameters like duration, amplitude, and frequency. However, the module has low power consumption, thus it is quite suitable for portable neural devices. The module has a communication range of ~30 m, which is ideal for clinical or lab environments.
Remote control and monitoring interface
The system is wirelessly controlled using an app, nRF Connect, which is available on Android and IOS platforms. The terminal communicates with the BLE module using the UART protocol, enabling users to monitor neural activity and to configure waveform parameters in real time. The features include waveform configuration that can adjust waveform type, current amplitude, frequency and phase duration; and wireless programming unit that monitors system configuration and firmware updates can be transmitted wirelessly to the microcontroller, enabling easy customization without physical access to the hardware.
Software
The control software is essential for regulating the device's functionality and operational parameters. It uses the BLE UART protocol for wireless communication between external control interfaces and the device. This setup allows real-time programming of current-controlled biphasic waveforms and other key parameters like frequency and pulse width. Bluetooth-compatible mobile application connect provides a user-friendly interface for sending commands and adjusting parameters. The system can execute preprogrammed stimulation protocols or accept user-defined commands in real time, all while ensuring low power consumption.
Final design and PCB fabrication
We designed this device using commercial PCB design software. It can be used as a backpack for animals. PCB is double-sided with 0.4 mm thickness and dimensions of 30 x 30 x 1 mm. It only weighs 9 g; the final product is shown in Figure 4.
Operational modes
The device has two operational modes, each mode optimized for specific neural applications: stimulation mode and recording mode. These modes are controlled wirelessly through the BLE UART protocol, enabling communication with a mobile device.
Artifacts rejection: As the device works in two modes -- stimulation mode and recording mode -- it is important to ensure artifact rejection is incorporated so that the recorded data reflects genuine brain activity and not electrical noise from stimulation. During recording, the stimulation module is temporarily turned off for a brief time window, usually milliseconds, to avoid stimulation interference. This prevents the recorder from picking up the high-voltage stimulation artifacts.
Stimulation mode: This mode generates current-controlled biphasic waveforms for neural stimulation. The control software dynamically adjusts parameters like pulse amplitude, pulse width, frequency, and inter-pulse intervals. The H-Bridge topology is able to provide very fine control over the direction of the current and shape of the signal waveform. preventing tissue damage during long-term stimulation by minimizing residual charge. The current source permits very fine adjustment in output current to µA resolution.
Recording mode: This mode involves capturing neural signals via electrodes. The signals, normally in the micro-volt (µV) range, are amplified using low-noise amplifiers and filtered through a band pass filter to remove the undesirable noise. The filtered signals are subsequently digitized by an ADC with a sampling rate of 20 kHz and transmitted wirelessly for analysis. Impedance monitoring ensures continuous assessment of electrode contact quality, which is essential for accurate signal capture. The device supports closed-loop operation, enabling real-time adjustment of stimulation parameters based on recorded neural activity, making it suitable for brain-computer interfaces (BCIs), neuroprosthetics, and other closed-loop neuromodulation applications.