Skip to the content
4 layers143 × 73 mmMctens, the printed circuit board in 3D

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

3

README

README.md

InTENS 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

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
QtyValueFootprintReferences
60.1uFCapacitor_THT:C_Disc_D3.4mm_W2.1mm_P2.50mmC1, C2, C4, C5, C6, C11
5100Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R2, R3, R6, R7
51uFCapacitor_THT:C_Disc_D3.4mm_W2.1mm_P2.50mmC3, C12, C13, C14, C15
410kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR10, R13, R14, R15
41N4005Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD1, D2, D3, D4
48R2 2WResistor_THT:R_Axial_DIN0414_L11.9mm_D4.5mm_P7.62mm_VerticalR4, R5, R8, R9
4CONNConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ2, J3, J4, J5
4FQP19N20CPackage_TO_SOT_THT:TO-220-3_VerticalQ1, Q2, Q3, Q4
4MountingHoleMountingHole:MountingHole_4.3mm_M4H1, H2, H3, H4
4OMITCapacitor_THT:C_Disc_D3.4mm_W2.1mm_P2.50mmC7, C8, C9, C10
4Transformer_1P_1Sarduino-shield:42TL-transformer-v2T1, T2, T3, T4
32kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR11, R16, R17
2LEDLED_THT:LED_D3.0mmD5, D6
112V_3.3V_DCPackage_TO_SOT_THT:TO-220-3_VerticalU2
11kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR12
15KPotentiometer_THT:Potentiometer_Bourns_3266P_HorizontalRV1
1ARDUINO_PRO_MINIarduino-shield:MODULE_ARDUINO_PRO_MINI_3DU5
1COM-15140arduino-shield:rotary-RG-3DSW2
1Conn_01x02Connector_Molex:Molex_Mini-Fit_Jr_5566-02A_2x01_P4.20mm_VerticalJ1
1Conn_01x16arduino-shield:LCD_module_3DJ6
1Conn_02x03_Odd_EvenConnector_PinSocket_2.54mm:PinSocket_2x03_P2.54mm_VerticalJ7
1FT231X_breakoutarduino-shield:FT231X_breakoutU1
1LM358Package_DIP:DIP-8_W7.62mm_Socket_LongPadsU3
1MAX4678Package_DIP:DIP-16_W7.62mm_Socket_LongPadsU4
1SW_SPSTarduino-shield:SW-A11AB-3DSW1

More from akawaiga/InTENS

3
  • 2 layers68.6 × 53.3 mmArduino Shield V2, the printed circuit board in 3D

    Arduino Shield V2

    akawaiga/InTENS

    Senior Project Design

    24 parts
  • 2 layers68.6 × 53.3 mmBatteryPCB, the printed circuit board in 3D

    BatteryPCB

    akawaiga/InTENS

    Senior Project Design

    22 parts

Similar boards

  • 2 layers132.1 × 45.7 mmIPoS, the printed circuit board in 3D

    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 mmZArduino, the printed circuit board in 3D

    ZArduino

    zmaker/arduino_cookbook

    gli sketch del nuovo progetto Arduino Cookbook e dei video di YouTube

    46 parts269
  • 2 layers152 × 88 mmRFBitBangSMT, the printed circuit board in 3D

    RFBitBangSMT

    profdc9/RFBitBanger

    A QRP digital transceiver created from readily available parts for off-the-grid maintenance

    271 parts222
  • 2 layers118 × 103.5 mmEV Charger2, the printed circuit board in 3D

    EV Charger2

    fotherja/EV_Charger

    Arduino Uno Code for EV Charger

    62 parts167MIT
  • 2 layers113 × 62.2 mmFullScope, the printed circuit board in 3D

    FullScope

    tvlad1234/pillScopePlus

    Oscilloscope based around the STM32F401 Black Pill and a color LCD screen

    15 parts165Apache-2.0
  • 2 layers75.2 × 61.1 mmHelios, the printed circuit board in 3D

    Helios

    Grix/helios_dac

    Helios Laser DAC

    102 parts132
  • 2 layers144.1 × 182.2 mmSHVC CPU-01, the printed circuit board in 3D

    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 mmVNA, the printed circuit board in 3D

    VNA

    profdc9/VNA

    Vector Network Analyzer based on the STM32F103C8T6 bluepill

    178 parts93

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.