Skip to the content
2 layers120 × 76.1 mmTemperature Activated Fan Controller, the printed circuit board in 3D

Temperature Activated Fan Controller

jiroegbu-eng/Temperature_Activated_Fan_Controller

A 12V fan controller circuit designed in KiCad. The board turns a cooling fan on or off based on temperature using a 10k NTC thermistor, an LM358 comparator, and an IRLIZ44N MOSFET.

Size
120 × 76.1 mm
Copper layers
2
Thickness
1.6 mm
Parts
15
Nets
10
Pads
38
Tracks, vias
77, 0
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
16 Jun 2026
Updated
16 Jun 2026

Overview

Temperature Activated Fan Controller is an open-source printed circuit board by jiroegbu-eng, from the jiroegbu-eng/Temperature_Activated_Fan_Controller repository on GitHub. It is a 2-layer board of 120 × 76.1 mm with 15 parts on 10 nets, routed with 77 tracks and 0 vias.

It is built around the LM358 and IRLIZ44N. Its parts include 5 resistors, 2 capacitors, 2 diodes, 2 connectors and 1 IC.

Main components

2

README

README.md

Temperature-Activated Fan Controller

A 12V fan controller circuit designed in KiCad. The board turns a cooling fan on or off based on temperature using a 10k NTC thermistor, an LM358 comparator, and an IRLIZ44N MOSFET.

This project is part of my electronics design portfolio. The focus was on building a practical thermal management circuit with a clean schematic, routed PCB layout, and proper ERC/DRC verification.

Project Summary

The circuit senses temperature through an NTC thermistor voltage divider. A 10k potentiometer sets the fan turn-on threshold. The LM358 compares the thermistor voltage against the threshold voltage, then drives the MOSFET gate when the fan should turn on.

The fan is switched using a low-side MOSFET arrangement. The fan positive terminal is tied to +12V, while the MOSFET controls the ground side of the fan. A 1N4007 diode is placed across the fan output to protect the MOSFET from voltage spikes when the fan turns off.

Why I Built This

This project is more practical than a simple light sensor circuit because thermal control is common in real electronics systems. Power supplies, motor drivers, amplifiers, embedded boards, and battery systems often need basic fan control or thermal protection.

The project demonstrates:

  • Analog sensor interfacing
  • Comparator-based switching
  • Adjustable threshold control
  • Hysteresis feedback
  • MOSFET load switching
  • Inductive load protection
  • PCB layout for power and signal separation

Main Specifications

ItemDetail
Supply voltage12V DC
Temperature sensor10k NTC thermistor @ 25°C
ComparatorLM358
Switching deviceIRLIZ44N N-channel MOSFET
Fan control methodLow-side switching
PCB type2-layer PCB
Design softwareKiCad 10.0.1
SimulationNot included for this project

Circuit Operation

The NTC thermistor and a 10k resistor form a voltage divider. As temperature changes, the resistance of the thermistor changes, which also changes the voltage at the TEMP_SENSE node.

The 10k potentiometer creates an adjustable reference voltage called REF_SET. This lets the fan turn-on point be tuned manually.

The LM358 compares TEMP_SENSE against REF_SET. When the sensed temperature crosses the set threshold, the LM358 output changes state and drives the MOSFET gate through a 100Ω gate resistor.

The MOSFET switches the fan on the low side. This means the fan receives +12V directly, while the MOSFET connects or disconnects the fan’s ground path.

A 100k resistor provides hysteresis feedback from the comparator output back to the sensing node. This helps stop the fan from rapidly switching on and off when the temperature is close to the threshold.

Key Design Choices

NTC Thermistor Divider

The 10k NTC thermistor was paired with a 10k resistor to create a simple temperature-dependent voltage divider. Using equal nominal values around room temperature gives a useful mid-range voltage for the comparator input.

Adjustable Threshold

A 10k potentiometer was used so the fan turn-on point can be adjusted without changing resistor values. This makes the circuit more flexible and easier to tune.

Hysteresis Resistor

A 100k feedback resistor was added between the LM358 output and the temperature sensing node. This creates a small amount of hysteresis, which prevents fan chatter around the switching point.

MOSFET Switching

The IRLIZ44N was selected because it is suitable for low-side switching of 12V fan loads and can be driven from a logic-level control signal. The MOSFET handles the fan current while the LM358 only drives the gate.

Flyback Protection

The 1N4007 diode is placed across the fan output. Since a fan is an inductive load, it can produce a voltage spike when switched off. The diode gives that energy a safe path and protects the MOSFET.

PCB Layout

The high-current fan path was routed with wider traces. The low-current sensor and comparator traces were routed separately using smaller traces. The thermistor was placed away from the MOSFET and fan output area to reduce unwanted heating and noise coupling.

Main Components

ReferenceComponentValue / Part
U1Op-amp / comparatorLM358
Q1N-channel MOSFETIRLIZ44N
RT1NTC thermistor10k @ 25°C
RV1Potentiometer10k
R1Divider resistor10k
R2Hysteresis resistor100k
R3Gate resistor100Ω
R4Gate pulldown resistor100k
R5LED current-limit resistor2.2k
D1Flyback diode1N4007
D2Power indicator LEDLED
C1Decoupling capacitor100nF
C2Bulk capacitor10µF
J1Power input connector2-pin screw terminal
J2Fan output connector2-pin screw terminal

Verification

The design was checked in KiCad before finalizing the board.

CheckResult
ERC0 errors
DRC0 errors
Unconnected items0

Project Images

Schematic

Schematic

ERC Result

ERC 0 Errors

PCB Layout

PCB Layout

DRC Result

DRC 0 Errors

3D View

3D View

Repository Structure

text
Temperature_Activated_Fan_Controller/
├── README.md
├── hardware/
│   ├── Temperature_Activated_Fan_Controller.kicad_pro
│   ├── Temperature_Activated_Fan_Controller.kicad_sch
│   ├── Temperature_Activated_Fan_Controller.kicad_pcb
│   └── Temperature_Activated_Fan_Controller.kicad_prl
├── images/
│   ├── schematic.png
│   ├── erc_0_errors.png
│   ├── pcb_layout.png
│   ├── drc_0_errors.png
│   └── 3d_view.png
└── docs/
    └── bom.md

Tools Used

  • KiCad 10.0.1
  • KiCad Schematic Editor
  • KiCad PCB Editor
  • KiCad 3D Viewer

Status

Completed.

  • Schematic finished
  • PCB layout finished
  • ERC passed with 0 errors
  • DRC passed with 0 errors
  • 3D board preview generated

Parts

15
QtyValueFootprintReferences
1100R gateResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR3
1100k gate pulldownResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR4
1100k hysteresisResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR2
1100nFCapacitor_THT:C_Disc_D3.0mm_W1.6mm_P2.50mmC1
110kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1
110k thresholdPotentiometer_THT:Potentiometer_Bourns_3386P_VerticalRV1
110uFCapacitor_THT:CP_Radial_D5.0mm_P2.50mmC2
112V_INTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_HorizontalJ1
11N4007 flybackDiode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD1
12.2k LEDResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR5
1FAN_OUTTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_HorizontalJ2
1IRLIZ44NPackage_TO_SOT_THT:TO-220-3_VerticalQ1
1LM358Package_DIP:DIP-8_W7.62mmU1
1NTC 10k @25CResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalRT1
1PWR LEDLED_THT:LED_D5.0mmD2

Similar boards

  • 2 layers70 × 80 mmInatorStation, the printed circuit board in 3D

    InatorStation

    HiIamChaitanya/InatorStation

    InatorStation - Soldering Station

    37 partsCERN-OHL-S-2.0
  • 2 layersLed kitchen light controller, the printed circuit board in 3D

    Led kitchen light controller

    mattwach/avr_pico

    My AVR libraries I've created over the years. Many of them have been augmented to be usable with Pi Pico as well.

    15 parts6
  • 2 layersRaposfly UPS, the printed circuit board in 3D

    Raposfly UPS

    LenaicElsig/ups-RaspberryPi

    Uninterrupted power supply for Raspberry Pi

    45 parts4
  • 2 layers102.9 × 105.4 mmLeder, the printed circuit board in 3D

    Leder

    Enweave/remolight

    136 parts1
  • 2 layers160 × 100 mmPCB multi-160x100, the printed circuit board in 3D

    PCB multi-160x100

    mkeller0815/MOSFET-RGB-PWM-Control

    A small controllerboard that can be used by microcrontrollers to control bigger loads with MOSFET drivers

    121 parts1CC0-1.0
  • 2 layers80 × 40 mmTest2, the printed circuit board in 3D

    Test2

    HydrogreenPollub/pcb-fuel-cell-module

    Current sensors, FC short and Current control

    25 partsMIT
  • 2 layers79.9 × 40.1 mmOpenmv breakout, the printed circuit board in 3D

    Openmv breakout

    opinau/cv-2

    Projekt je sufinancirala Europska unija iz Europskog fonda za regionalni razvoj

    14 partsGPL-3.0

Questions

How big is the Temperature Activated Fan Controller PCB?

It measures 120 × 76.1 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Temperature Activated Fan Controller use?

15 parts, built around the LM358 and IRLIZ44N. 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 Temperature Activated Fan Controller KiCad files?

From the jiroegbu-eng/Temperature_Activated_Fan_Controller repository on GitHub, at the commit this page was made from: the board is hardware/Temperature_Activated_Fan_Controller.kicad_pcb and its schematic hardware/Temperature_Activated_Fan_Controller.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Temperature Activated Fan Controller design in my own project?

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