Skip to the content
2 layers60 × 32 mmMcu fancontrol, the printed circuit board in 3D

Fan controller hardware/firmware

Size
60 × 32 mm
Copper layers
2
Thickness
1.6 mm
Parts
52
Nets
28
Pads
162
Tracks, vias
457, 140
Pours
187
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
25 Jul 2020
Updated
9 Sep 2024

Overview

Mcu fancontrol is an open-source printed circuit board by hrandib, from the hrandib/mcu_fancontrol repository on GitHub, published under the MIT licence. It is a 2-layer board of 60 × 32 mm with 52 parts on 28 nets, routed with 457 tracks and 140 vias.

It is built around the STM8S003F3P6, AO3401A and BSS138, with the SS14 among its other parts. Its parts include 16 capacitors, 13 resistors, 11 connectors, 4 ICs and 2 transistors. It belongs with the STM8 boards of this library.

Main components

4

README

README.md

Intent

The main intent of this solution is to provide the functionality similar to PC Fancontrol service but in hardware. There are a lot of equipment around which have fans and are quite noisy for no particular reason. Some of them even have fan controllers but algo/control curve is usually awful. This module can solve this issue.

Brief features

  • The module provides 2 fan control PWM channels.
  • The first channel optionally is able to control 2-3pin fans by regulating DC voltage
  • The second channel is PWM only, this is PCB only limitation (4-pin fans)
  • Channels have independent configuration but can use shared sensors
  • Up to 8 sensors are supported, 4 sensors of type LM75 and 4 sensors of type DS18B20
  • Each controller channel can use up to 4 sensors of any type
  • Controller define:
    • poll period
    • algorithm: PI, 2-Point
    • sensors binding
    • MIN and MAX limits for PWM
    • EMA filtering, etc
  • The module configuration is performed via UART using PC side Python utility, it uses YAML format for the store/upload

The Basic Workflow

  1. Connect all the sensors to the board
  2. Connect the board to PC and set active channels, e.g if you won't use the first channel it can be disabled. The command expects the list of active channel numbers separated by space
shell
python .\fanutil.py -p tty... -e 0 1
  1. Optionally mark channels as analog, it's needed only for proper display in configuration file, functionality is not affected. The command expects the list of analog channel numbers separated by space, an empty means all channels are PWM
shell
python .\fanutil.py -p tty... -a 0
  1. Read current configuration, it'll contain all recognized sensors and controllers template.
    The sample config is available here
shell
python .\fanutil.py -p tty... -r fanconfig.yaml
  1. Edit the configuration file according to the fields description
  2. Upload it to the board
shell
python .\fanutil.py -p tty... -w fanconfig.yaml

Possible alternatives

China market already provides various standalone fan control modules for less than 3 bucks.
In many cases it's enough to solve the issue, but there are cases that can't be covered:

  • Multiple temperature measure points required
  • Multiple controller channels required with ability to share sensors
  • Other than 2-Point algo required, e.g to stabilize the temperature on the certain level

Parts

52
QtyValueFootprintReferences
510uFCapacitor_SMD:C_1206_3216MetricC1, C5, C10, C13, C14
40.1uFCapacitor_SMD:C_0603_1608MetricC2, C3, C11, C12
310kResistor_SMD:R_0603_1608MetricR5, R6, R11
33.3kResistor_SMD:R_0603_1608MetricR1, R2, R13
21-WireConnector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_VerticalJ4, J5
2100Resistor_SMD:R_0603_1608MetricR7, R9
2100kResistor_SMD:R_0603_1608MetricR3, R10
210nFCapacitor_SMD:C_0603_1608MetricC6, C15
21uFCapacitor_SMD:C_0603_1608MetricC4, C8
22.2uFCapacitor_SMD:C_0603_1608MetricC7, C9
2820Resistor_SMD:R_1206_3216MetricR4, R8
2I2CConnector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJ2, J3
2Jumper_2_BridgedJumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mmJP1, JP2
2MountingHoleMountingHole:MountingHole_2.7mm_M2.5H1, H2
1150uHInductor_THT:L_Radial_D7.0mm_P3.00mmL1
1180pFCapacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC16
122kResistor_SMD:R_0603_1608MetricR12
1AO3401APackage_TO_SOT_SMD:SOT-23Q1
1BSS138Package_TO_SOT_SMD:SOT-23Q2
1L78L05_SOT89Package_TO_SOT_SMD:SOT-89-3U1
1LM75CPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU2
1NTC1Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ8
1NTC2Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ11
1Output1Connector:FanPinHeader_1x04_P2.54mm_VerticalJ9
1Output2Connector:FanPinHeader_1x04_P2.54mm_VerticalJ10
1SS14Diode_SMD:D_SMAD1
1STM8S003F3PPackage_SO:TSSOP-20_4.4x6.5mm_P0.65mmU3
1SWIMConnector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJ6
1UARTConnector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_VerticalJ7
1VinConnector_Wire:SolderWire-0.5sqmm_1x02_P4.8mm_D0.9mm_OD2.3mmJ1
1~Package_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalViasU4

Similar boards

  • 2 layers98.8 × 55.1 mmH bridge controller, the printed circuit board in 3D

    H bridge controller

    jayanta525/dual-h-bridge

    Dual H-Bridge Controller with IRF3205 and IR2104 MOSFET Driver, and with ATMega328P-AU PWM Controller

    104 parts5MIT
  • 2 layers304.8 × 95.3 mmSM65, the printed circuit board in 3D

    SM65

    Charading/SM65

    SM65

    290 parts
  • 4 layers170.2 × 111.2 mmE paper picture frame HW, the printed circuit board in 3D

    E paper picture frame HW

    JosefTAv/E-paper-picture-frame-HW

    Hardware files for ESP32 based E-paper picture frame

    110 partsMIT
  • 2 layers45 × 50 mmResources, the printed circuit board in 3D

    Resources

    marian-scientific/projects

    project data, records & publications

    25 parts
  • 2 layers87 × 71 mmSocket, the printed circuit board in 3D

    Socket

    eddyem/STM8_samples

    Some code samples and ready projects based on STM8 (deprecated)

    89 parts80
  • 2 layers100 × 100 mmWm8816x4, the printed circuit board in 3D

    Wm8816x4

    hrandib/wm8816-pcb

    8-channel volume controller based on WM8816

    169 parts
  • 2 layers54 × 54 mmTraktor, the printed circuit board in 3D

    Traktor

    polish-software/tractor-lighting

    Tractor toy lighting project (PCB and STM8 software).

    73 parts
  • 2 layers89.2 × 103.5 mmOas, the printed circuit board in 3D

    Oas

    hubertciebiada/open-ambient-sensor

    OAS — Open Ambient Sensor: DIY multi-sensor indoor environmental monitor (CO2, PM, VOC/NOx, temperature/humidity, mmWave presence) on ESP32-C6 with ESPHome / Home Assistant integration

    64 parts44GPL-3.0

Questions

How big is the Mcu fancontrol PCB?

It measures 60 × 32 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Mcu fancontrol use?

52 parts, built around the STM8S003F3P6, AO3401A, BSS138 and SS14. 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 Mcu fancontrol KiCad files?

From the hrandib/mcu_fancontrol repository on GitHub, at the commit this page was made from: the board is kicad/mcu_fancontrol.kicad_pcb and its schematic kicad/mcu_fancontrol.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Mcu fancontrol 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).