

Lm317 fan 36v
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
1README
README.mdAnalog 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.
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)
| Component | Value | Notes |
|---|---|---|
| U1 | LM317 | TO-220, mounted on tall/thin heatsink |
| Q1 | MPSA27 | NPN Darlington Transistor (TO-92) |
| D1 | 1N4007 | Protection Diode (Input to Output) |
| NTC | 15kΩ | Beta 3950 |
| R1 | 240Ω | 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µF | Ceramic (50V+ Rated) |
| C2 (Out) | 1.0µF | Ceramic (50V+ Rated) |
| C3 (Delay) | 10µF | Ceramic (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 Voltage | Power Supply | R3 (Max Speed) | R5 (Trigger) | R4 (Idle Speed) |
|---|---|---|---|---|
| 12V | 12V | 1.8kΩ | 15kΩ - 18kΩ | 1.2kΩ |
| 12V | 24V | 2.0kΩ | 33kΩ | 1.2kΩ |
| 24V | 24V | 3.9kΩ | 33kΩ | 2.2kΩ |
| 24V | 36V | 4.3kΩ | 47kΩ | 1.8kΩ |
| 48V | 36V | 6.8kΩ | 47kΩ | 2.2kΩ |
Table B: For 10kΩ Thermistor (Standard Sensor)
| Fan Voltage | Power Supply | R3 (Max Speed) | R5 (Trigger) | R4 (Idle Speed) |
|---|---|---|---|---|
| 12V | 12V | 1.8kΩ | 12kΩ | 1.2kΩ |
| 12V | 24V | 2.0kΩ | 22kΩ | 1.2kΩ |
| 24V | 24V | 3.9kΩ | 22kΩ | 2.2kΩ |
| 24V | 36V | 4.3kΩ | 33kΩ | 1.8kΩ |
| 48V | 36V | 6.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
- 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Ω).
- 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.
- Hysteresis: The 10µF capacitor provides a small delay, preventing fan surging/hunting due to minor sensor noise.
Parts
13| Qty | Value | Footprint | References |
|---|---|---|---|
| 1 | 0.1uF | Capacitor_THT:C_Disc_D4.3mm_W1.9mm_P5.00mm | C1 |
| 1 | 10uF | Capacitor_THT:CP_Radial_D10.0mm_P5.00mm | C3 |
| 1 | 1N4007 | Diode_THT:D_DO-41_SOD81_P10.16mm_Horizontal | D1 |
| 1 | 1uF | Capacitor_THT:CP_Radial_D10.0mm_P5.00mm | C2 |
| 1 | 2.2k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R4 |
| 1 | 240R | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R2 |
| 1 | 47k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R5 |
| 1 | 6.8k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R3 |
| 1 | Fan | Connector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_Vertical | J1 |
| 1 | LM317_TO-220 | Package_TO_SOT_THT:TO-220-3_Vertical | U1 |
| 1 | MPSA27 | Package_TO_SOT_THT:TO-92L_Inline | Q1 |
| 1 | Therm | Connector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_Vertical | J2 |
| 1 | Vin | Connector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_Vertical | J3 |
Similar boards
- 2 layers40 × 20 mm

- 2 layers74.9 × 49.5 mm

- 2 layers35 × 29 mm

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 mm

AO-03 signal amplifier
fossasia/pslab-scripts
Pocket Science Lab - Scripts for Sensor Experiments
13 parts1.6kApache-2.0 - 2 layers47 × 35.6 mm

- 2 layers95 × 95 mm

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 mm

Pt100stick
VoronDesign/Voron-Hardware
Cool Hardware designed by the Voron Design group
13 parts1.1kGPL-3.0 - 2 layers53.9 × 23.2 mm

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).