

Mctens
Senior Project Design
- Size
- 143 × 73 mm
- Copper layers
- 4
- Thickness
- 1.6 mm
- Parts
- 65
- Nets
- 81
- Pads
- 259
- Tracks, vias
- 298, 28
- Pours
- 3
- Routed
- Yes
- KiCad
- KiCad 5 (file 20171130)
- Created
- 5 Feb 2024
- Updated
- 16 Apr 2026
Overview
Mctens is an open-source printed circuit board by akawaiga, from the akawaiga/InTENS repository on GitHub. It is a 4-layer board of 143 × 73 mm with 65 parts on 81 nets, routed with 298 tracks and 28 vias.
It is built around the LM358, MAX4678EPE+ and FQP19N20C. Its parts include 17 resistors, 15 capacitors, 7 connectors, 6 diodes and 5 ICs. It belongs with the AVR (ATmega, ATtiny) boards of this library.
Main components
3LM358
SOP-8-18V~18V 0℃~+70℃ 1.2MHz 10nA 2 24mA 3V~36V 500uA 50nA 5mV 80dB Built-in compensation SOP-8 Operational Amplifier ROHSMSKSEMIOperational AmplifierMAX4678EPE+
PDIP-16-40℃~+85℃ -5.5V~5.5V、2.7V~11V 1.2Ω 110ns 1:1 200ns 4 66MHz PDIP-16 Analog Switches, Multiplexers ROHSMaxim Integrated (Analog Devices)Analog Switches, MultiplexersFQP19N20C
TO-220-55℃~+150℃ 1 N-channel 1.08nF 110pF 139W 170mΩ@10V 19A 200V 255pF 4V 53nC@10V N-Channel ±30V TO-220 MOSFETs ROHSonsemiMOSFETs
README
README.mdInTENS project
Overview
The InTENS is a high-frequency and high-intensity nerve stimulation treatment for pain management. This project builds on prior research from Boston Univesity's EDF and Bridge BUilders program, guided by a physician, and is supplemented by phantom model testing and a new electrode design.
Features
- single-channel system for compactness
- delivers sine waves instead of commercial TENS pulse for user comfort
- capable of delivering frequecnies up of atleast 1kHz
- capable of delivering high-intensity waves of up to 140 Vpp
Changes required to the board before use:
- Solder a wire between pins 1 and 6 of U1 (best done on the bottom side) This connects DAC reference to 5V
- Solder a wire between J4 pin 3 and J2 pin 5
- Solder a wire between J4 pin 4 and J2 pin 7 This connects the SPI data and clock to the right Arduino pins
- addd a 100kohm resistor to R5 as 2mA is the reccommended ouptut current (for saftey)(ArduinoSheild PCB)
- addd a 100kohm resistor to C4 and C6 to reduce load on DC DC conversrters so both can function at same time (Battery PCB)
- heat sink reccommended on the 5V regulator (U1 on BatteryPCB)
User Interface
Installation of Arduino IDE and Packages
- IDE download - https://www.arduino.cc/en/software
- Pathway to DAC MCP Package - https://github.com/akawaiga/InTENS/tree/main/Arduino
Setup
- Start Arduino IDE and connect the InTens device to the laptop. Ensure the correct board and output port are selected within the IDE.
- Ensure the DAC MCP library is downloaded from the GitHub repository
- Set output baud rate to 11500
- Upload the code to the Arduino and turn on both switches
Controlling Frequency and Amplitude
- The initial frequency can be set using the freq variable.
- The initial amplitude can be set using the desiredAmplitude variable.
- The increment for the frequency can be set by changing the integer value in code line “freq+=10” and “freq-=10”.
- The increment for the amplitude can be set by changing the integer value in code line “desiredAmplitude+=10” and “desiredAmplitude-=10”.
- The frequency can be increased by entering “+” in the Arduino IDE.
- The frequency can be decreased by entering “-” in the Arduino IDE.
- The amplitude can be increased by entering “A” in the Arduino IDE.
- The amplitude can be decreased by entering “a” in the Arduino IDE.
Note:
You can compound your increments by adding multiple inputs at once. For example: “+++++” or “AAAA”. Avoid combining inputs such as “AaA”.
The code currently does not support decimal point increments (float), please use integers such as “1” or “25”.
Conclusion
Though with 2 PCBs we have acheived the orginal goal of creating a TENS device capcable of creating a sine wave, >1kHz frequecny, and 140Vpp amplitude, we recommend the following updates to the next iteration of the device:
- Shaft Encoder:incorporate a knob to manually control frequency and amplitude rather than through the IDE. This has been done in previous versions of the device (2021-22)
- LCD Display:incorporate LCD display to show output frequency and amplitude and various parameter changes when changing parameters using the knob.
- Float type increments: currently the code uses type int for the amplitude and frequency variables, update this to type float to allow decimal increments.
- Safety: consult with electrical engineers to build in further safety features to ensure the device does not provide unwanted currents to the patient.
- Finger Clamp: update the finger clamp design to include jaws (example a claw hair clip) so it can accommodate smaller patient anatomies.
- Phantom Testing: continue developing a phantom model for the finger to demonstrate safety and efficacy.
Parts
65| Qty | Value | Footprint | References |
|---|---|---|---|
| 6 | 0.1uF | Capacitor_THT:C_Disc_D3.4mm_W2.1mm_P2.50mm | C1, C2, C4, C5, C6, C11 |
| 5 | 100 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R1, R2, R3, R6, R7 |
| 5 | 1uF | Capacitor_THT:C_Disc_D3.4mm_W2.1mm_P2.50mm | C3, C12, C13, C14, C15 |
| 4 | 10k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R10, R13, R14, R15 |
| 4 | 1N4005 | Diode_THT:D_DO-41_SOD81_P10.16mm_Horizontal | D1, D2, D3, D4 |
| 4 | 8R2 2W | Resistor_THT:R_Axial_DIN0414_L11.9mm_D4.5mm_P7.62mm_Vertical | R4, R5, R8, R9 |
| 4 | CONN | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J2, J3, J4, J5 |
| 4 | FQP19N20C | Package_TO_SOT_THT:TO-220-3_Vertical | Q1, Q2, Q3, Q4 |
| 4 | MountingHole | MountingHole:MountingHole_4.3mm_M4 | H1, H2, H3, H4 |
| 4 | OMIT | Capacitor_THT:C_Disc_D3.4mm_W2.1mm_P2.50mm | C7, C8, C9, C10 |
| 4 | Transformer_1P_1S | arduino-shield:42TL-transformer-v2 | T1, T2, T3, T4 |
| 3 | 2k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R11, R16, R17 |
| 2 | LED | LED_THT:LED_D3.0mm | D5, D6 |
| 1 | 12V_3.3V_DC | Package_TO_SOT_THT:TO-220-3_Vertical | U2 |
| 1 | 1k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R12 |
| 1 | 5K | Potentiometer_THT:Potentiometer_Bourns_3266P_Horizontal | RV1 |
| 1 | ARDUINO_PRO_MINI | arduino-shield:MODULE_ARDUINO_PRO_MINI_3D | U5 |
| 1 | COM-15140 | arduino-shield:rotary-RG-3D | SW2 |
| 1 | Conn_01x02 | Connector_Molex:Molex_Mini-Fit_Jr_5566-02A_2x01_P4.20mm_Vertical | J1 |
| 1 | Conn_01x16 | arduino-shield:LCD_module_3D | J6 |
| 1 | Conn_02x03_Odd_Even | Connector_PinSocket_2.54mm:PinSocket_2x03_P2.54mm_Vertical | J7 |
| 1 | FT231X_breakout | arduino-shield:FT231X_breakout | U1 |
| 1 | LM358 | Package_DIP:DIP-8_W7.62mm_Socket_LongPads | U3 |
| 1 | MAX4678 | Package_DIP:DIP-16_W7.62mm_Socket_LongPads | U4 |
| 1 | SW_SPST | arduino-shield:SW-A11AB-3D | SW1 |
More from akawaiga/InTENS
3- 2 layers68.6 × 53.3 mm

- 2 layers68.6 × 53.3 mm

- 2 layers68.6 × 53.3 mm

Similar boards
- 2 layers132.1 × 45.7 mm

IPoS
peterheinrich/InternetOverSpaghetti
Transmitting IP packages over a pair of spaghetti thus demonstrating how media independent IP really is.
42 parts342 - 2 layers68.8 × 53.6 mm

ZArduino
zmaker/arduino_cookbook
gli sketch del nuovo progetto Arduino Cookbook e dei video di YouTube
46 parts269 - 2 layers152 × 88 mm

RFBitBangSMT
profdc9/RFBitBanger
A QRP digital transceiver created from readily available parts for off-the-grid maintenance
271 parts222 - 2 layers118 × 103.5 mm

- 2 layers113 × 62.2 mm

FullScope
tvlad1234/pillScopePlus
Oscilloscope based around the STM32F401 Black Pill and a color LCD screen
15 parts165Apache-2.0 - 2 layers75.2 × 61.1 mm

- 2 layers144.1 × 182.2 mm

SHVC CPU-01
starlightk7/OpenSFC
OSHW Reproduction Parts related to the Super Famicom / Super Nintendo game console
498 parts114CERN-OHL-S-2.0 - 2 layers100 × 85 mm

Questions
How big is the Mctens PCB?
It measures 143 × 73 mm and has 4 copper layers, 1.6 mm thick.
What parts does the Mctens use?
65 parts, built around the LM358, MAX4678EPE+ and FQP19N20C. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the Mctens KiCad files?
From the akawaiga/InTENS repository on GitHub, at the commit this page was made from: the board is KiCAD/arduino-shield/mctens.kicad_pcb and its schematic Arduino_Shield_V2/PCB.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Mctens design in my own project?
Its repository states no licence, so its author keeps all rights: ask akawaiga before reusing the design.