Skip to the content
2 layers68 × 42 mmK40-current sensor, the printed circuit board in 3D

K40-current sensor

MikonosII/k40-laser-panel

One small board that replaces the two-module build in docs/tube-current-sensor.md. It does the same job with the same chips (INA226 + ADM3260) and needs no firmware changes: the panel finds it at address 0x40.

Size
68 × 42 mm
Copper layers
2
Thickness
1.6 mm
Parts
28
Nets
14
Pads
81
Tracks, vias
181, 7
Pours
9
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
17 Oct 2026
Updated
20 Oct 2026

Overview

K40-current sensor is an open-source printed circuit board by MikonosII, from the MikonosII/k40-laser-panel repository on GitHub. It is a 2-layer board of 68 × 42 mm with 28 parts on 14 nets, routed with 181 tracks and 7 vias.

It is built around the INA226AIDGSR, ADM3260ARSZ and SMAJ5.0CA. Its parts include 9 resistors, 8 capacitors, 3 connectors, 2 ICs and 1 diode. It belongs with the sensors and measurement boards of this library.

Main components

3

README

hardware/current-sensor-pcb/README.md

Tube current sensor PCB

One small board that replaces the two-module build in docs/tube-current-sensor.md. It does the same job with the same chips (INA226 + ADM3260) and needs no firmware changes: the panel finds it at address 0x40.

  • 68 × 42 mm, 2 layers, 1.6 mm, four M3 holes (3.2 mm)
  • All SMT parts on the top, sized for JLCPCB assembly
  • 3 screw terminals (through-hole) you solder yourself
  • 5.1 mm copper-free isolation gap between the panel side and the tube side
TopBottom
topbottom

Connections

TerminalPinGoes to
J1 (3.5 mm, 4-pin)SCL, SDA, 3V3, GNDPanel I2C-OUT (Grove cable, cut one end; red = 3V3, black = GND, yellow = SCL, white = SDA)
J2 (3.5 mm, 2-pin)+5V, GNDThe 5 V supply (same 5 V that feeds the panel's UART3-IN pin 3)
J3 (5.08 mm, 3-pin)IN, OUT, EARTHTube cathode wire IN → OUT; EARTH to the chassis earth screw

J2 must have 5 V. The isolated side runs at 5 V so the INA226 reads the ADM3260's logic levels reliably, and the ADM3260 can only make 5 V from a 5 V input.

Circuit

text
 Panel side                         |  barrier  |   Tube side (isolated)
                                    |           |
 J1 SCL ──┬─ R6 4.7k ─ 3V3          |   U2      |          VISO (5 V)
 J1 SDA ──┼─ R7 4.7k ─ 3V3          | ADM3260   |   R8/R9 4.7k pull-ups to VISO
          └── SCL2/SDA2 ────────────┤ I2C + DC/DC├── SCL1/SDA1 ─── U1 INA226 (0x40)
 J1 3V3 ── VDDP (C3 100n)           |           |   VISO ── U1 VS (C7 100n)
 J2 +5V ── VIN  (C1 10u, C2 100n)   |           |   VISO (C4 10u, C5 100n), VDDISO (C6 100n)
 PDIS ── GND (converter on)         |           |   VSEL: R4 30k / R5 10k  → 4.9 V
                                    |           |
                                    |           |   J3 IN ─┬─ R1 0.1 Ω ─┬─ J3 OUT (= isolated GND)
                                    |           |          ├ D1 SMAJ5.0CA ┤
                                    |           |          ├ R2 10 Ω ─ IN+ ┐ C8 100n
                                    |           |          │      R3 10 Ω ─ IN− ┘
                                    |           |          └ GDT1 200 V ── J3 EARTH

Full netlist (checked against the board file):

NetPins
+3V3J1.3, U2.4 VDDP, C3, R6, R7
+5VJ2.1, U2.9 VIN, C1, C2
GNDJ1.4, J2.2, U2.1/5/7/10, U2.8 PDIS, C1, C2, C3
SCL_P / SDA_PJ1.1 / J1.2, U2.2 SCL2 / U2.3 SDA2, R6 / R7
VISOU2.12 VISO, U2.17 VDDISO, U1.6 VS, C4–C7, R4, R8, R9
VSELU2.13, R4/R5 junction
SCL_I / SDA_IU2.19 SCL1 / U2.18 SDA1, U1.5 / U1.4, R8 / R9
GNDISOJ3.2 OUT, U2.11/14/16/20, U1.1 A1, U1.2 A0, U1.7 GND, U1.8 VBUS, R1, R3, R5, D1, C4–C7
TUBE_INJ3.1 IN, R1, R2, D1, GDT1
INP_F / INN_FU1.10 IN+ / U1.9 IN−, R2 / R3, C8
EARTHJ3.3, GDT1

Ordering from JLCPCB

  1. Go to jlcpcb.com → Order now → upload fab/k40-current-sensor-gerbers.zip. Defaults are fine: 2 layers, 1.6 mm, any color, HASL lead-free (or ENIG).
  2. Turn on PCB Assembly: Economic, Top side, quantity 2 or 5.
  3. Upload fab/k40-current-sensor-bom.csv and fab/k40-current-sensor-cpl.csv.
  4. On the parts page, confirm every line matched. Check stock for U2 (ADM3260, C208558). It's the scarce, pricey part (about $15). If JLC is out, choose Global Sourcing or pre-order it into your JLC parts library.
  5. On the placement preview, check the pin-1 dots on U1 and U2 line up with the dot on the silkscreen. The CPL already includes the 90° turn U1 needs in JLC's preview; rotate a part there only if it still lands off.
  6. Order. A real order came to about $123 at JLCPCB. Most of that is the ADM3260s (about $15 each) and JLC's $3-per-line fee for extended parts.

OSH Park also takes the same Gerber zip, but it doesn't assemble. You'd hand-solder the SSOP-20 and the 0.5 mm-pitch VSSOP-10 yourself.

Parts you solder yourself (not in the JLC BOM)

RefPartPhoenix #
J1Screw terminal, 4-pos, 3.5 mmPT 1,5/4-3,5-H 1984633
J2Screw terminal, 2-pos, 3.5 mmPT 1,5/2-3,5-H 1984617
J3Screw terminal, 3-pos, 5.08 mmMKDS 1,5/3-5,08 1715734
–Grove 4-pin cable (cut one end) to panel I2C-OUTas in the module BOM
–4 × M3 nylon standoffs and screwskeeps the isolated side off the chassis

Assembled BOM (JLC)

RefValuePackageLCSC
U1INA226AIDGSRVSSOP-10C49851
U2ADM3260ARSZSSOP-20C208558
R10.1 Ω 1 % 1 W (FOJAN FRM121WFR100TM)1206C7467250
R2, R310 Ω0603C22859
R430 kΩ0603C22984
R510 kΩ0603C25804
R6–R94.7 kΩ0603C23162
C1, C410 µF 25 V0805C15850
C2, C3, C5–C8100 nF0603C14663
D1SMAJ5.0CA bidirectional TVSSMAC10756
GDT1200 V gas discharge tube (Brightking 4532-201-LF; alt. 150 V 4532-151-LF C84727)1812C522630

Notes:

  • R4 = 30 kΩ (a JLC basic part) sets VISO ≈ 4.9 V. The datasheet's 30.9 kΩ gives 5.0 V. Either works.
  • R1 = 0.1 Ω matches the firmware's default shunt, so nothing needs changing in menuconfig.
  • LCSC numbers were checked in October 2026; stock changes, so swap in an equivalent if a line shows out of stock.

Build it yourself (Digi-Key or Arrow parts)

Cheaper than JLC assembly if you're OK hand-soldering fine-pitch SMT.

  1. Bare boards: upload fab/k40-current-sensor-gerbers.zip to JLCPCB with assembly off (about $2–5 for 5 boards plus shipping), or to OSH Park (about $22 for 3, shipped in the US).
  2. Parts: upload bom-digikey-arrow.csv to Digi-Key's BOM Manager (myLists → Upload) or Arrow's BOM tool. The resistors and capacitors carry Digi-Key cut-tape part numbers (the CT-ND / -1-ND ones), so you can buy 10 instead of a 5,000-piece reel. If any line still matches a reel, switch its packaging to Cut Tape. The other parts are matched by manufacturer part number, which Arrow also accepts. Quantities are for 2 boards, with 10 of each small resistor and capacitor because they're easy to lose. Expect roughly $45–60 total; most of that is the two ADM3260s (about $13–16 each).
  3. Solder order: U1 and U2 first (flux, tack one corner pin, check alignment, drag-solder, then wick off bridges), then the 0603/0805 parts, R1, D1, GDT1, and the terminals last. U1's pins are 0.5 mm apart, so use plenty of flux and a magnifier.
  4. Check before connecting the panel: power J2 with 5 V only, and measure about 4.9 V between C4's two pads (isolated side). Then connect J1 and look for Current sensor connected on Setup.

GDT1 here is the Yageo 4532-231-LF (230 V); any 1812-size GDT from 150 to 250 V fits the same pads.

Enclosure

A 3D-printable two-part box is in enclosure/ (STL files plus the OpenSCAD source).

Install

  • Mount on nylon standoffs, away from the HV lead, with the TUBE SIDE toward the laser PSU.
  • Earth lead from J3 EARTH to the chassis earth screw, as short as you can make it.
  • Wiring and safety rules are the same as the module build: docs/tube-current-sensor.md.

Files

PathWhat
k40-current-sensor.kicad_pcb / .kicad_proKiCad 7 board (opens in KiCad 7 or 8)
fab/k40-current-sensor-gerbers.zipGerbers and drill files for any fab
fab/k40-current-sensor-bom.csv, -cpl.csvJLCPCB assembly files
drc.rptKiCad DRC: 0 clearance errors, 0 unconnected. Only notes are the terminal silkscreen past the board edge and "library not in table"
tools/The scripts that generated the board (parts.py is the parts list and netlist)

To regenerate after editing tools/parts.py:

bash
cd tools
python3 build.py place                 # board + Specctra DSN
xvfb-run java -jar freerouting-1.9.0.jar -de board.dsn -do board.ses -mp 40
python3 build.py finish                # import routes, pour grounds
python3 export.py                      # Gerbers, BOM, CPL

Parts

28
QtyValueFootprintReferences
6100nFCapacitor_SMD:C_0603_1608MetricC2, C3, C5, C6, C7, C8
44.7kResistor_SMD:R_0603_1608MetricR6, R7, R8, R9
4MountingHole_3.2mm_M3MountingHole_3.2mm_M3H1, H2, H3, H4
210RResistor_SMD:R_0603_1608MetricR2, R3
210uF 25VCapacitor_SMD:C_0805_2012MetricC1, C4
10.1R 1% 1206 1WResistor_SMD:R_1206_3216MetricR1
110kResistor_SMD:R_0603_1608MetricR5
130kResistor_SMD:R_0603_1608MetricR4
15V inTerminalBlock_Phoenix:TerminalBlock_Phoenix_PT-1,5-2-3.5-H_1x02_P3.50mm_HorizontalJ2
1ADM3260ARSZPackage_SO:SSOP-20_5.3x7.2mm_P0.65mmU2
1GDT 230V 1812Resistor_SMD:R_1812_4532MetricGDT1
1I2C to panelTerminalBlock_Phoenix:TerminalBlock_Phoenix_PT-1,5-4-3.5-H_1x04_P3.50mm_HorizontalJ1
1INA226AIDGSRPackage_SO:VSSOP-10_3x3mm_P0.5mmU1
1SMAJ5.0CADiode_SMD:D_SMAD1
1Tube returnTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-3-5.08_1x03_P5.08mm_HorizontalJ3

Similar boards

  • 2 layers100 × 100 mmExplorer, the printed circuit board in 3D

    Explorer

    anyshake/explorer

    🌏 Detecting seismic wave using 3 geophones and 3-axis accelerometer, pack & send data to AnyShake Observer over RS232 / RS485 serial.

    266 parts100
  • 2 layers131.5 × 83.5 mmBadge esp32-s3, the printed circuit board in 3D

    Badge esp32-s3

    BYU-I-eBadge/e-badge

    A hackable eBadge platform for students — a customizable, programmable electronics badge designed for hands-on learning and creative exploration throughout their academic journey.

    218 parts2MIT
  • 4 layers80 × 80 mmKonoha, the printed circuit board in 3D

    Konoha

    aisuneko/konoha

    4-port USB3.0 pure Type-C Hub powered by CH634X

    97 parts1CERN-OHL-S-2.0
  • 4 layers78.5 × 91 mmFuSa1, the printed circuit board in 3D

    FuSa1

    engrtech/STM32_RC01_PCB

    PCB on KiKad 9

    119 parts1
  • 4 layers95 × 95 mmControlBoard, the printed circuit board in 3D

    ControlBoard

    ParadigmEngineering/igvc-2023-hardware

    Intelligent Ground Vehicle Competition (Spring 2023) hardware for the Paradigm Engineering Student Group

    175 parts1
  • 4 layers71 × 64 mmUWB, the printed circuit board in 3D

    UWB

    victorstoica114/UWB_Module_ESP_IDF

    ESP-IDF 6.0.2 firmware for the custom UWB Module V1.0 Rev.B, based on an ESP32-S3-WROOM-1-N16R8. The same application image runs on every module; persistent identity and runtime configuration select the role and active…

    254 parts1
  • 2 layers300.1 × 90.5 mmPolyphonic synthesizer, the printed circuit board in 3D

    Polyphonic synthesizer

    vincentchen18/polyphonic-synthesizer

    a 2 octave pcb musical instrument!!! :)))

    76 parts1

Questions

How big is the K40-current sensor PCB?

It measures 68 × 42 mm and has 2 copper layers, 1.6 mm thick.

What parts does the K40-current sensor use?

28 parts, built around the INA226AIDGSR, ADM3260ARSZ and SMAJ5.0CA. 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 K40-current sensor KiCad files?

From the MikonosII/k40-laser-panel repository on GitHub, at the commit this page was made from: the board is hardware/current-sensor-pcb/k40-current-sensor.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the K40-current sensor design in my own project?

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