BlackMark b7a2e50506 Keep the curve and thermistor comments timeless
Both headers described the port transformation ("legacy cubic becomes",
"no hand-rolled series needed") rather than what the code is. State the
cubic and the __builtin_log rationale directly.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-18 10:10:47 +02:00
2020-03-29 01:29:59 +01:00
2020-03-29 01:29:59 +01:00
2026-07-18 04:37:26 +02:00
2026-07-18 04:37:26 +02:00
2026-07-18 04:37:26 +02:00
2020-03-29 01:29:59 +01:00
2026-07-18 04:37:26 +02:00

fantemp

Temperature-controlled fan firmware (ATmega328P, 16 MHz), rewritten on libavr: thermistor on ADC0 sampled free-running and averaged over 1000 conversions, fan on OC0B at 50 kHz, 115200 Bd serial console (help lists the commands), temperature histogram persisted to EEPROM, watchdog-reset path into a boot-section bootloader.

The SteinhartHart math of the legacy firmware (runtime doubles + libm log) is gone: the Beta equation and the cubic fan curve are evaluated consteval into flash tables — the firmware itself never touches floating point.

Build against a libavr checkout:

LIBAVR_ROOT=/path/to/libavr cmake --preset atmega328p-generated
cmake --build --preset atmega328p-generated

Legacy (yazoalfa submodules) stays on master.

Description
Firmware for temperature controller board
Readme 229 KiB
Languages
C++ 100%