How to Build a Safe and Functional TDCS Circuit From Scratch

tdcs circuit diagram

For accurate and reliable stimulation, incorporate a current-controlled source capable of delivering 1–2 mA with a compliance voltage of at least 18 V. Linear regulators like the LT3092 or LM334 provide stable output, while digital potentiometers (e.g., MCP4131) allow programmable adjustment without manual trimming. Use a microcontroller–such as the ATtiny85 or STM32–to pulse the signal at 1–5 kHz, reducing skin irritation and enhancing comfort compared to continuous DC.

Avoid relying on alkaline batteries; opt for a lithium-polymer cell (3.7–4.2 V) paired with a step-up converter (e.g., MT3608) to maintain consistent voltage under load. Include a hardware safety cutoff via a comparator (LM393) that disrupts the circuit if current exceeds 2.5 mA or voltage drops below 2 V, preventing thermal risks. Fuse resistors (15–33 Ω, 1 W) should be placed in series with electrodes to mitigate short-circuit failures.

Electrode impedance significantly impacts performance. Use sintered Ag/AgCl pads (surface area: 3–5 cm²) for minimal polarization. A saline-soaked sponge interface requires 30–50 µL of 0.9% NaCl solution to ensure even conductivity. For dry-contact applications, silver-graphite composites reduce resistance drift over time but demand a secondary current-limiting resistor (470 Ω) to compensate for variability.

Frequency modulation improves tolerability. Implement a biphasic waveform (50–100 µs pulse width) via PWM on the microcontroller to reduce electrochemical reactions at the electrode-skin junction. Test pulse parameters on an oscilloscope with a dummy load (4.7 kΩ resistor + 100 nF capacitor in parallel) to verify symmetry and avoid DC offset, which can cause ion accumulation and discomfort.

Isolate all conductive paths from ground using optocouplers (PC817) or isolated DC-DC converters (e.g., TDK CC3-1212) to prevent leakage currents. Encase high-voltage sections in a shielded enclosure (copper tape or conductive plastic) to block EMI from nearby electronics. Label all inputs/outputs with polarity and current ratings–incorrect placement (e.g., anode/cathode swap) can reduce efficacy or cause skin burns.

Building a Safe Transcranial Stimulation Setup: Step-by-Step Schematic

Start with a current-controlled design using a 9V alkaline battery as the power source–avoid rechargeables due to voltage instability. A low-dropout linear regulator (LDO) like the LM317 ensures precise current delivery (1-2 mA target), with a 1kΩ potentiometer for fine adjustment. Place a 100Ω resistor in series with the electrodes to prevent current spikes if the potentiometer fails, followed by a 10kΩ resistor to ground as a safety discharge path when the device is off. Use Ag/AgCl electrodes (35mm diameter) for consistent impedance (

Critical Component Specifications

tdcs circuit diagram

Component Recommended Value Purpose Risk of Substitution
LM317 (or equivalent) TO-220 package Current regulation Overheating, inaccuracy
Potentiometer 1kΩ linear Current adjustment Noise, drift
Series resistor 100Ω, 1/4W Current limiting Electrode damage
Discharge resistor 10kΩ, 1/4W Post-session charge dissipation Residual voltage
Electrode material Ag/AgCl, 35mm Low polarization, stable impedance Increased skin resistance

Mount all components on a perforated breadboard with 22-gauge solid-core jumper wires, minimizing trace lengths to reduce noise. For polarity switching, add a DPDT toggle switch (ON-ON type) between the regulator output and electrodes–this allows reversing stimulation sites without rewiring. Add a 1N4007 diode in reverse across the battery terminals to protect against accidental reverse polarity, and include a 100nF ceramic capacitor in parallel with the potentiometer to filter high-frequency noise. Before first use, calibrate the current output against a multimeter by placing one electrode on a saline-soaked towel with the other–record readings at 0.5 mA increments and mark the potentiometer dial. Replace batteries when voltage drops below 8.2V (≤1.8V per cell) to maintain consistent stimulation parameters.

Core Elements for a Non-Invasive Brain Stimulation Setup

Begin with a 9V alkaline battery as the primary power source–any higher voltage risks current spikes exceeding safe thresholds. Pair it with a 1kΩ to 10kΩ potentiometer to regulate output levels between 0.5mA and 2mA, the clinically validated range for safety. Avoid using fixed resistors alone; variability in skin impedance demands adjustable resistance to maintain consistent stimulation. Include a 1N4007 diode in series to prevent reverse polarity, which could damage both the device and tissue.

A 100μF electrolytic capacitor smooths current fluctuations, critical for stable neural modulation. For monitoring, integrate a panel-mounted milliammeter (0-5mA range) to track real-time current–cheap digital multimeters often lack the resolution needed. Solder 5mm diameter sponge electrodes soaked in saline solution (0.9% NaCl) to the output terminals; avoid conductive gels, as they dry out and alter impedance unpredictably. Secure connection points with gold-plated clip leads to minimize resistance at junctions.

Step-by-Step Assembly of Neurostimulation Electrode Pads

Begin by cutting conductive fabric or sponge into 5×5 cm squares–optimal for cortical targeting. Use medical-grade saline (0.9% NaCl) to moisten the material; insufficient hydration reduces conductivity by 30%, while oversaturation causes current leakage. Secure each pad with a 2.5 cm border of hypoallergenic tape to prevent edge effects that distort stimulation zones.

  • Select 2 mm thickness for sponges–thinner layers (3 mm) diffuse current density.
  • Solder 0.3 mm diameter silver chloride wires at a 45° angle to reduce mechanical stress on the connection point.
  • Test impedance with a multimeter: target 1–5 kΩ; values above 10 kΩ indicate poor contact or dried substrate.

Position the active electrode over the dorsolateral prefrontal cortex (F3/F4 according to 10-20 EEG system) or motor strip (C3/C4) based on functional goals. Fix the reference pad on the contralateral supraorbital ridge or mastoid–avoid muscle tissue where impedance fluctuations degrade focality. Apply 0.5–2 mA current, never exceeding 0.06 mA/cm²; higher densities risk skin irritation or paradoxical inhibition.

For reusable setups, rinse pads with distilled water post-session to remove saline crystallization that increases impedance by 15% over 5 uses. Store in a sealed container with 1 ml of 70% isopropyl alcohol; this preserves conductivity for 20–25 sessions. Replace pads if impedance exceeds 8 kΩ or visible discoloration occurs–signs of electrode degradation that reduce efficacy by 40%.

Current Limiting Resistor Calculation for Safe Neural Modulation

tdcs circuit diagram

Select a resistor value between 1 kΩ and 5.6 kΩ for 2 mA stimulation to prevent skin burns and electrode degradation. For a 9V supply, a 4.7 kΩ resistor ensures 1.91 mA output (I = V/R), staying within FDA-recognized safety limits of 0–4 mA. Higher resistances (5.6 kΩ+) reduce current further but may weaken modulation effects, while lower values risk exceeding thermal thresholds.

Verify calculations with a multimeter–measure voltage drop across the resistor during active delivery. If the reading deviates >5% from expected (e.g., 8.9V instead of 9V), adjust resistor value or check battery impedance. For lithium-ion sources, account for internal resistance (~0.1–0.5 Ω), which subtly alters current. Always prioritize resistors with ±1% tolerance to minimize drift during extended sessions.

Adhere to these specifications: 1/4W power rating for resistors handling

Battery Selection and Voltage Regulation in Neurostimulation Modules

For portable direct current stimulation setups, lithium-polymer (LiPo) cells with a nominal 3.7V rating provide the optimal balance between energy density and weight–no heavier alternatives exceed 220 Wh/kg. A single-cell configuration eliminates multi-battery balancing issues while maintaining 90-minute runtime at 2 mA load, sufficient for typical session durations. Always verify the cell’s continuous discharge rating matches or exceeds the device’s peak current draw; underspecced batteries risk thermal runaway or premature voltage sag under load.

Linear voltage regulators introduce inefficiencies but offer simplicity and low noise–ideal for low-power applications under 10 mA. A low-dropout (LDO) regulator like the MCP1700 (quiescent current 1.6 μA) maintains output within 1% of target voltage down to 0.1V input-output differential. For currents exceeding 10 mA, buck converters (e.g., TPS62743) improve efficiency to 95% but require external inductors, increasing PCB footprint. Calculate power dissipation: (Vin − Vout) × Iload determines heatsink requirements–exceeding 300 mW mandates thermal vias or copper pours.

Cell Chemistry and Safety Margins

LiFePO4 cells (3.2V nominal) offer superior safety and cycle life (>2000 cycles) but require 22% larger volume than LiPo for equivalent capacity. Avoid alkaline or NiMH cells: their 1.2–1.5V per cell output necessitates impractical series stacking, introducing voltage ripple and leakage current risks. For medical compliance, incorporate a 10 kΩ bleed resistor across the battery terminals to drain residual charge below 2.0V within 48 hours, preventing deep discharge damage. Test cutoff behavior with a 10 Ω load–valid designs should halt output before terminal voltage drops below 2.75V.

Add a Zener diode (e.g., BZX84C3V6) in parallel with the regulator output to clamp voltage spikes from inductive loads–set breakdown 10% above target voltage (5.1V for 4.5V systems) to avoid false triggers. For adjustable outputs, a 10-turn trimpot (Bourns 3296) allows 0.1V resolution; use a 1 kΩ series resistor to limit current through the adjustment network, preventing wiper damage. Measure output noise at 1 MHz bandwidth–linear regulators typically achieve 30 μVrms, while switched-mode designs may reach 2 mVpp, necessitating post-regulation filtering for sensitive applications.