Skip to the content
2 layers54 × 33 mmLm317 fan 36v, the printed circuit board in 3D

This project is a robust, solid-state analog fan speed controller I designed to regulate fan speed based on temperature. It uses an **LM317** linear voltage regulator throttled by an **MPSA27 Darlington transistor** in response to an NTC thermistor.

Size
54 × 33 mm
Copper layers
2
Thickness
1.6 mm
Parts
13
Nets
6
Pads
28
Tracks, vias
34, 4
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
6 Jan 2026
Updated
2 Mar 2026

Overview

Lm317 fan 36v is an open-source printed circuit board by kbralten, from the kbralten/lm317-fan-speed-controller repository on GitHub, published under the CERN-OHL-W-2.0 licence. It is a 2-layer board of 54 × 33 mm with 13 parts on 6 nets, routed with 34 tracks and 4 vias.

It is built around the MPSA27. Its parts include 4 resistors, 3 capacitors, 3 connectors, 1 IC and 1 diode. It belongs with the power boards of this library.

Main components

1

README

README.md

Analog Thermal Fan Speed Controller (LM317 + MPSA27)

This project is a robust, solid-state analog fan speed controller I designed to regulate fan speed based on temperature. It uses an LM317 linear voltage regulator throttled by an MPSA27 Darlington transistor in response to an NTC thermistor.

I designed it to provide a smooth "Soft Start" ramp-up thanks to the capacitor-damped base.

image

Current Build Specifications

I configured this specific implementation for a 36V Power Supply driving a 48V Server Fan (running at ~34V max).

  • Input Voltage: 36V DC
  • Fan Voltage: 48V Rated (Operates 10V - 34V)
  • Sensor: 15kΩ NTC Thermistor (B3950)
  • PCB: Single-sided, CNC milled

Bill of Materials (As Built)

ComponentValueNotes
U1LM317TO-220, mounted on tall/thin heatsink
Q1MPSA27NPN Darlington Transistor (TO-92)
D11N4007Protection Diode (Input to Output)
NTC15kΩBeta 3950
R1240ΩReference Resistor
R2 (R_Max)6.8kΩSets Max Speed (~34V)
R4 (R_Stall)2.2kΩSets Idle Speed (~10V)
R5 (Trigger)47kΩSets Trigger Temp (~40°C)
C1 (In)0.1µFCeramic (50V+ Rated)
C2 (Out)1.0µFCeramic (50V+ Rated)
C3 (Delay)10µFCeramic (50V+ Rated)

Configuration Tables

I included these tables to help adapt the circuit for different fan voltages or thermistors.

Assumptions:

  • R1 is always 240Ω.
  • Transistor is always MPSA27.
  • Capacitors must be rated higher than the Power Supply Voltage.

Table A: For 15kΩ Thermistor (Current Sensor)

Fan VoltagePower SupplyR3 (Max Speed)R5 (Trigger)R4 (Idle Speed)
12V12V1.8kΩ15kΩ - 18kΩ1.2kΩ
12V24V2.0kΩ33kΩ1.2kΩ
24V24V3.9kΩ33kΩ2.2kΩ
24V36V4.3kΩ47kΩ1.8kΩ
48V36V6.8kΩ47kΩ2.2kΩ

Table B: For 10kΩ Thermistor (Standard Sensor)

Fan VoltagePower SupplyR3 (Max Speed)R5 (Trigger)R4 (Idle Speed)
12V12V1.8kΩ12kΩ1.2kΩ
12V24V2.0kΩ22kΩ1.2kΩ
24V24V3.9kΩ22kΩ2.2kΩ
24V36V4.3kΩ33kΩ1.8kΩ
48V36V6.8kΩ33kΩ2.2kΩ

Assembly Notes

1. Heatsink Clearance

  • The LM317 requires a heatsink for this application (dissipating ~2-4W).
  • Caution: I had to ensure the heatsink did not physically collide with the resistors (R1, R2) or the protection diode (D1). I mounted the LM317 slightly elevated (3-5mm off the PCB) to allow the heatsink to clear adjacent components. I ended up drilling a mid-point M3 mounting hole on my heatsink to both allow it to clear and to lower the overall height.

2. Ceramic Capacitors & DC Bias

  • When building, I used MLCC (Multi-Layer Ceramic Capacitors) exclusively.
  • Advantage: Immune to reverse polarity (non-polarized).
  • Note: High-K dielectrics (X7R/X5R) lose capacitance at high voltage. The 10µF Delay Capacitor (C3) effectively operates at ~3µF at 36V. This results in a faster "soft start" ramp (approx 0.2s) but does not appear to affect stability.

3. Protection Diode (D1)

  • There is a 1N4007 diode across the LM317 (Cathode to Input, Anode to Output).
  • Function: Protects the regulator from reverse current discharge from the fan capacitor when power is cut.
  • Diagnostic: If the circuit Output = Input (e.g., stuck at 36V), D1 is likely shorted.

4. PCB Fabrication

  • I designed the board for single-sided routing.

Tuning Guide

  1. Idle Speed: If the fan stalls when cold, increase R4 (e.g., from 2.2kΩ to 2.7kΩ). If it runs too loud when cold, decrease R4 (e.g., to 1kΩ).
  2. Trigger Temperature: If the fan speeds up too late (gets too hot), decrease R5. If it speeds up too early (at room temp), increase R5.
  3. Hysteresis: The 10µF capacitor provides a small delay, preventing fan surging/hunting due to minor sensor noise.

Parts

13
QtyValueFootprintReferences
10.1uFCapacitor_THT:C_Disc_D4.3mm_W1.9mm_P5.00mmC1
110uFCapacitor_THT:CP_Radial_D10.0mm_P5.00mmC3
11N4007Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD1
11uFCapacitor_THT:CP_Radial_D10.0mm_P5.00mmC2
12.2kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR4
1240RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR2
147kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR5
16.8kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR3
1FanConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalJ1
1LM317_TO-220Package_TO_SOT_THT:TO-220-3_VerticalU1
1MPSA27Package_TO_SOT_THT:TO-92L_InlineQ1
1ThermConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalJ2
1VinConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalJ3

Similar boards

  • 2 layers40 × 20 mmUsb uart, the printed circuit board in 3D

    Usb uart

    earthtojake/text-to-cad

    Design physical products with AI

    13 parts26kMIT
  • 2 layers35 × 29 mmMagSpoofTC, the printed circuit board in 3D

    MagSpoofTC

    samyk/magspoof

    A portable device that can spoof/emulate any magnetic stripe, credit card or hotel card "wirelessly", even on standard magstripe (non-NFC/RFID) readers.

    13 parts4.2k
  • 2 layers20.6 × 23.6 mmAO-03 signal amplifier, the printed circuit board in 3D

    AO-03 signal amplifier

    fossasia/pslab-scripts

    Pocket Science Lab - Scripts for Sensor Experiments

    13 parts1.6kApache-2.0
  • 2 layers47 × 35.6 mmMX7-C-35PL C11, the printed circuit board in 3D

    MX7-C-35PL C11

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    13 parts1.2k
  • 2 layers95 × 95 mmCube batteryboard, the printed circuit board in 3D

    Cube batteryboard

    willem-pennings/balancing-cube

    A cube that balances itself in a corner or edge using reaction wheels

    13 parts1.1kGPL-3.0
  • 2 layers15.2 × 20.3 mmPt100stick, the printed circuit board in 3D

    Pt100stick

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    13 parts1.1kGPL-3.0
  • 2 layers53.9 × 23.2 mmBuffer, the printed circuit board in 3D

    Buffer

    hoglet67/RGBtoHDMI

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

    13 parts1kGPL-3.0

Questions

How big is the Lm317 fan 36v PCB?

It measures 54 × 33 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Lm317 fan 36v use?

13 parts, built around the MPSA27. 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 Lm317 fan 36v KiCad files?

From the kbralten/lm317-fan-speed-controller repository on GitHub, at the commit this page was made from: the board is lm317 fan 36v.kicad_pcb and its schematic lm317 fan 36v.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Lm317 fan 36v design in my own project?

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