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

Tachometer pulse counting and RPM sampling for the cooling fan. More...

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

Go to the source code of this file.

Classes

struct  RpmMonitorConfig
 Configuration for fan tachometer sampling. More...
 
class  RpmMonitor
 Measures fan speed from tachometer pulses. More...
 

Variables

constexpr RpmMonitorConfig kDefaultRpmMonitorConfig
 Default tachometer settings for the configured cooling fan.
 

Detailed Description

Tachometer pulse counting and RPM sampling for the cooling fan.

The RPM monitor converts interrupt-counted tachometer pulses into a sampled speed value. It is intentionally small so the interrupt path only increments a counter while the main loop performs RPM calculation at the configured window.