# Teensy Fan Controller

A PC fan controller with temperature sensor input, for [**Teensy**](https://www.pjrc.com/teensy/index.html) **3.x** USB Development Board(s).

Supports up to 6 fans (4pin/PWM), and up to 5 temperature sensors (thermistors). Each fan may individually operate in PID, temperature-percent table, or fixed-percent control modes.

Designed to control radiator fans on a PC water cooling loop (to maintain supply water temperature), but may be configured for other purposes (for example, see [Demo/Router Cooling Demo](https://mstrthealias.gitbook.io/teensy-fan-controller/demo/router-cooling-demo)).

![Simple 001 PCB in a Raspberry Pi 3 case](https://4099583760-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M1RzmweizdbxT9i_NQb%2F-M5nf84VzQmWf2w_bWN8%2F-M5nf92MbVXI7R6aO_9Z%2Fsimple001.photo.2.png?generation=1587857368707823\&alt=media)

## Releases

* v0.1.0
  * [Firmware (Teensy 3.2, 3.5)](https://github.com/mstrthealias/TeensyFanController/releases/tag/v0.1.0)
  * [Configuration UI (Windows 10)](https://github.com/mstrthealias/TFC-ui/releases/tag/v0.1.0)

## Hardware

The following hardware has been used with Teensy Fan Controller:

* [Prototype - Simple PCB](https://mstrthealias.gitbook.io/teensy-fan-controller/hardware/simple-pcb): requires PCB fabrication (gerber files provided) and through-hole soldering
* [Breadboard](https://mstrthealias.gitbook.io/teensy-fan-controller/hardware/breadboard): breadboard example with a single fan/single sensor
* [Prototype - Hand-made (Schmart Board based)](https://mstrthealias.gitbook.io/teensy-fan-controller/hardware/prototype): uses over-the-shelf components

Related files are available in the [TeensyFanController/Hardware](https://github.com/mstrthealias/TeensyFanController/tree/master/Hardware) folder.

### Hardware Interface

The Teensy Micro USB port is used to configure and monitor the fan controller.

{% hint style="info" %}
It is possible to connect the Micro USB port to an internal motherboard USB 1.1/2.0 header, by making a custom cable, or purchasing a *Micro USB 5pin Male to 1x 5Pin Female 0.1" USB Header PCB Motherboard Cable*.
{% endhint %}

## Software

### Qt UI

[Teensy Fan Controller UI (Qt5)](https://github.com/mstrthealias/TFC-ui): provides a user interface to configure or monitor the fan controller (only needed for initial configuration).

### Linux Kernel module (hwmon)

[Fork of liquidtux](https://github.com/mstrthealias/liquidtux): Linux kernel module for reading temperatures and fan RPMs using *lm-sensors* or *psensor*. Tested on Ubuntu 18.04.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mstrthealias.gitbook.io/teensy-fan-controller/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
