Skip to the content
2 layers68.6 × 53.3 mmBatteryPCB, the printed circuit board in 3D

BatteryPCB

akawaiga/InTENS

Senior Project Design

Size
68.6 × 53.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
22
Nets
13
Pads
86
Tracks, vias
62, 0
Pours
1
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
5 Feb 2024
Updated
16 Apr 2026

Overview

BatteryPCB is an open-source printed circuit board by akawaiga, from the akawaiga/InTENS repository on GitHub. It is a 2-layer board of 68.6 × 53.3 mm with 22 parts on 13 nets, routed with 62 tracks and 0 vias.

It is built around the R05-100B, LF50CV and 64WR5KLF. Its parts include 6 capacitors, 4 connectors, 3 ICs and 2 switches.

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

22
QtyValueFootprintReferences
4MountingHole_3.2mmArduino_MountingHole:MountingHole_3.2mmMH1, MH2, MH3, MH4
3Conn_01x01Connector_Pin:Pin_D1.0mm_L10.0mmJ1, J2, J3
24700pFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC4, C6
247μFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC3, C5
264WR5KLF64WR5KLF:RES3_64W_TTERV1, RV2
2ANT11TFHQE100SP1T1B4M2QE:100SP1T1_EWISW1, SW2
2R05-100BPackage_DIP:DIP-24_W15.24mmU2, U3
10.1μFCapacitor_THT:C_Rect_L4.6mm_W2.0mm_P2.50mm_MKS02_FKP02C2
10.33μFCapacitor_THT:C_Rect_L4.6mm_W2.0mm_P2.50mm_MKS02_FKP02C1
1Battery0039296028:CON_39296028BT1
1Conn_01x01_SocketConnector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_VerticalJ4
1LF50CVLF50CV:LF50CVU1

More from akawaiga/InTENS

3
  • 4 layers143 × 73 mmMctens, the printed circuit board in 3D

    Mctens

    akawaiga/InTENS

    Senior Project Design

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

    Arduino Shield V2

    akawaiga/InTENS

    Senior Project Design

    24 parts

Similar boards

  • 2 layers158.8 × 159.8 mm1dcoinctrl, the printed circuit board in 3D

    1dcoinctrl

    hharte/1dcoinctrl

    Western Electric 1D/2D Payphone Controller for Asterisk

    115 parts76MIT
  • 2 layers35.5 × 50 mmTobo, the printed circuit board in 3D

    Tobo

    kelu124/echomods

    Open source ultrasound processing modules and building blocks

    23 parts463
  • 2 layers158 × 11 mmDaylight Matchstick, the printed circuit board in 3D

    Daylight Matchstick

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    22 parts1.1kGPL-3.0
  • 2 layers57 × 65 mmRgb to hdmi, the printed circuit board in 3D

    Rgb to hdmi

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    22 parts1kGPL-3.0
  • 2 layers81 × 57.2 mmRP2040-Macropad, the printed circuit board in 3D

    RP2040-Macropad

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    22 parts915
  • 2 layers54.6 × 70.9 mmBeagleLogic Cape, the printed circuit board in 3D

    BeagleLogic Cape

    abhishek-kakkar/BeagleLogic

    A Software Suite that implements a logic analyzer with the PRU on the BeagleBone / BeagleBone Black.

    22 parts479GPL-3.0
  • 2 layers66.4 × 24.5 mmConnecting piece, the printed circuit board in 3D

    Connecting piece

    Chrismettal/flipper-zero-backpacks

    Backpack-style addon boards for the Flipper Zero!

    22 parts456

Questions

How big is the BatteryPCB PCB?

It measures 68.6 × 53.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the BatteryPCB use?

22 parts, built around the R05-100B, LF50CV and 64WR5KLF. 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 BatteryPCB KiCad files?

From the akawaiga/InTENS repository on GitHub, at the commit this page was made from: the board is BatteryPCB/BatteryPCB.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 BatteryPCB design in my own project?

Its repository states no licence, so its author keeps all rights: ask akawaiga before reusing the design.