Aquarium Cooling Controller
ESP32 firmware for aquarium cooling fan control, monitoring, telemetry, and fault handling.
Loading...
Searching...
No Matches
Classes | Variables
fan_driver.h File Reference

PWM fan output driver with low-speed start boost. More...

#include <Arduino.h>
Include dependency graph for fan_driver.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FanDriverConfig
 PWM output settings for the cooling fan. More...
 
class  FanDriver
 Drives the cooling fan with an ESP32 LEDC PWM output. More...
 

Variables

constexpr FanDriverConfig kDefaultFanDriverConfig
 Default PWM settings for the configured cooling fan.
 

Detailed Description

PWM fan output driver with low-speed start boost.

The driver hides ESP32 LEDC details behind a percent-based interface and keeps track of both the requested PWM and the value currently applied to the hardware. A short boost can be applied when a stopped fan is asked to start below its reliable spin-up threshold.