Skip to the content
4 layers50 × 37 mmSensorAnalog, the printed circuit board in 3D

College of Marin Physics Club Needle Fabrication Unit Controller Project

Size
50 × 37 mm
Copper layers
4
Thickness
1.6 mm
Parts
25
Nets
18
Pads
76
Tracks, vias
115, 23
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
1 Oct 2026
Updated
13 Oct 2026

Overview

SensorAnalog is an open-source printed circuit board by kai-carlin, from the kai-carlin/STM-Needle-Fab-Controller repository on GitHub, published under the MIT licence. It is a 4-layer board of 50 × 37 mm with 25 parts on 18 nets, routed with 115 tracks and 23 vias.

It is built around the LD1117V50, TL3016CPW and BS170. Its parts include 6 resistors, 3 capacitors, 3 ICs and 2 transistors.

Main components

3

README

README.md

STM-Needle-Fab-Controller

College of Marin Physics Club Needle Fabrication Unit Controller Project

What it is

STM tips are commonly made by electrochemically etching tungsten wire in sodium hydroxide. The wire necks down at the liquid surface until the lower section drops off, and the etching current falls abruptly. Etching that continues after the break blunts the tip, so the faster the current is cut, the sharper the tip. This project is an open, low-cost controller that detects the break and cuts the current in hardware, with a microcontroller for arming, display, alarm and logging.

How it works

The cell current flows through a low-side switch and a small sense resistor to ground. The voltage across the sense resistor goes through an op-amp differentiator, which responds to the fast current drop at the break and largely ignores the slow decline before it. A fast latching comparator compares the differentiator output with an adjustable threshold and turns the switch off, and the latch holds that decision until it is reset. The cut-off path involves no firmware. A Teensy 4.1 sets the threshold, arms and resets the latch, drives the displays and buzzer, and can log the etching current.

Operator interface

The front panel uses industrial-style controls on a small panel. Three five-digit seven-segment displays, driven over SPI by the Teensy, show the run time, the applied etch voltage, and the etching current. A Power toggle and a Solution Voltage toggle each have an indicator LED. Knobs adjust the etch voltage and the lowering and raising speeds of the wire stage, and pushbuttons cover Start, Abort, and manual raise and lower. They are read by the Teensy through pull-up inputs, and driven by the Teensy through MOSFETS

Design choices

  • Low-side current sensing, so the signal doesn't depend on the supply voltage or pick up its ripple.
  • A differentiator instead of a fixed current level, because the current at drop-off varies with wire diameter and immersion depth.
  • A latch, because the detector output is only a brief pulse.
  • Safe signal polarity: switching the current on moves the detector away from its trip point, so a restart doesn't trigger it.
  • Quiet power: linear regulators for the analog and etch rails, since switching noise looks like events to a high-gain differentiator. A buck converter is used only for the digital loads.

Methods

Simulation (KiCad). A behavioral cell model with a slow current decline followed by a fast drop, plus noise sources, is used to sweep the edge speed and threshold. The goal is a detector that trips on the drop-off but not on noise or the decline.

Measuring the real cell. Before building the board, we plan to wire a bench supply, the cell and a 10 ohm sense resistor, and record the whole etch, the noise before the break, and the break itself with a single-shot oscilloscope trigger over several etches. The size and speed of the break, compared with the largest noise slope, decide whether the detector works and how to size it. The captured waveforms are then replayed in simulation.

Parts

25
QtyValueFootprintReferences
410kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1, R3, R9, R10
31kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR_in1, R4, R8
21uCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC2, C3
2Screw_Terminal_01x03TerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-3-2.54_1x03_P2.54mm_HorizontalJPWR1, JSIG1
110Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderRsense1
1100pCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC_diff1
110nCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1
115kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR_fb1
12N7000Package_TO_SOT_THT:TO-92_InlineQ2
133kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR2
14.7pCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC_fb1
1500Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR5
1BS170Package_TO_SOT_THT:TO-92_InlineQ1
1LD1117V50Package_TO_SOT_SMD:SOT-223U3
1OPA835IDBVROPA835IDBVR:DBV6U2
1R='10/((0.0563 - 0.0513*min(max((time-500u)/20u, 0), 1))*(1 - 0.996*min(max((time-530u)/1n, 0), 1))) - 15'TerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-2-2.54_1x02_P2.54mm_HorizontalRload1
1Screw_Terminal_01x02TerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-2-2.54_1x02_P2.54mm_HorizontalJKTAP1
1TL3016CPWTL3016CPW:PW8U1

More from kai-carlin/STM-Needle-Fab-Controller

1
  • 4 layers101 × 88 mm.history, the printed circuit board in 3D

    .history

    kai-carlin/STM-Needle-Fab-Controller

    College of Marin Physics Club Needle Fabrication Unit Controller Project

    70 partsMIT

Similar boards

  • 2 layers91.2 × 82.6 mmBuck converter, the printed circuit board in 3D

    Buck converter

    Niels-Clayton/self-tuning-buck-converter

    Variable frequency and PWM buck converter, controlling for both output voltage and inductor ripple current of the converter.

    54 parts2
  • 2 layers58 × 56 mmVera MRS-22, the printed circuit board in 3D

    Vera MRS-22

    AxelHenriksson/Vera-MRS-22

    37 parts
  • 2 layers81 × 156.1 mmNollbricka24, the printed circuit board in 3D

    Nollbricka24

    CASE-Association/nollbricka24

    Nollbricka 2024

    26 parts
  • 4 layers63.2 × 40.7 mmSerial pogo, the printed circuit board in 3D

    Serial pogo

    JonathanBheri/USB-to-UART-I2C-pogo-pins-

    This PCB will help with production EOL testing or electrical Functional test (FCT)

    17 parts
  • 2 layers80 × 90 mmM2MRover, the printed circuit board in 3D

    M2MRover

    SoftwareCornwall/Mission-to-Mars-Rover

    Design and build instructions for the Software Cornwall Mission to Mars Rovers

    61 parts
  • 4 layersMaster of muppets, the printed circuit board in 3D

    Master of muppets

    y3i12/master_of_muppets

    Eurorack USB MIDI interface for CVs

    147 parts
  • 2 layers75.2 × 40.1 mmPwm esc, the printed circuit board in 3D

    Pwm esc

    ChipCE/juice-plus-pcb

    Varios PCB design for 3D printers and drones

    29 parts2GPL-3.0

Questions

How big is the SensorAnalog PCB?

It measures 50 × 37 mm and has 4 copper layers, 1.6 mm thick.

What parts does the SensorAnalog use?

25 parts, built around the LD1117V50, TL3016CPW and BS170. 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 SensorAnalog KiCad files?

From the kai-carlin/STM-Needle-Fab-Controller repository on GitHub, at the commit this page was made from: the board is SensorAnalog/SensorAnalog.kicad_pcb and its schematic SensorAnalog/.history/SensorAnalog.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the SensorAnalog design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).