Overview
Enable definitions control which modules, sensors, and add-ons are compiled into your project. Define these flags before includingKinematrix.h to activate specific functionality.
Usage Pattern
Add-ons
Complete application systems providing ready-to-use functionality.AutoLight base system for automated lighting control
AutoLight version 1 - legacy implementation
AutoLight version 2 - enhanced features
AutoLight version 3 - latest implementation with optimizations
Development
Experimental and debugging modules for development workflows.Ceria serial communication development module
Ceria development operations and utilities
Communication Modules
Wired - I2C
I2C port expansion module
I2C bus scanner for device detection
General I/O expansion via I2C
Wired - Modbus
Modbus RTU/ASCII protocol support
Wired - Serial
Enhanced serial communication with buffering
Hardware serial port management
NMEA protocol parser for GPS data
Software serial implementation
Serial pin swapping capability
Wired - SPI
LED dot matrix display control via SPI
SPI-based serial communication
Wireless - LoRa
LoRa communication base module
LoRa communication version 2 with enhanced features
Ebyte E220 LoRa module support
Wireless - ESP-NOW
ESP-NOW mesh networking for ESP32/ESP8266
Control Modules
Algorithms for automation, control, and machine learning.Decision tree classifier with pruning support
Mamdani fuzzy logic controller
Sugeno fuzzy logic controller
Tsukamoto fuzzy logic controller
K-Nearest Neighbors classifier with cross-validation
Basic PID controller implementation
Advanced PID controller with auto-tuning (Ziegler-Nichols, Cohen-Coon)
Data standardization for machine learning preprocessing
Dataset splitting for model training and validation
Debug Modules
Full-featured serial debugger with detailed logging
Lightweight serial debugger for memory-constrained devices
Enhanced serial debugger with categorized logging levels
Display Modules
LCD menu system with I2C support
OLED menu system for SSD1306 displays
Menu system for SH1106 OLED displays
Driver Modules
Motor Drivers
DC motor control with PWM speed regulation
Servo Drivers
PCA9685 16-channel servo driver
File Modules
EEPROM storage management
ESP8266-specific EEPROM implementation
SD card support for Arduino platforms
ESP32 SD card module with optimizations
Filter Modules
Basic Filters
Moving average filter for signal smoothing
Exponential moving average with weighted samples
Low-pass filter for noise reduction
High-pass filter for DC component removal
Median filter for impulse noise removal
Kalman filter for optimal state estimation
Complementary filter for sensor fusion
Band-stop (notch) filter for frequency rejection
Dynamic Type Filters
Template-based moving average filter supporting multiple data types
Template-based exponential moving average filter
Template-based high-pass filter
Template-based median filter
Template-based complementary filter
Template-based band-stop filter
I/O Modules
Digital input management with debouncing
Digital output control and management
PCF8574 I2C input expander
PCF8574 general I/O expander
PCF8574 I2C output expander
Rotary encoder reading with direction detection
Base 7-segment display control
7-segment display via PCF8574 I2C expander
7-segment display via 74HC595 shift register
Direct 7-segment display control
Task Modules
FreeRTOS task management for ESP32
Non-blocking task scheduling system
Time Modules
Duration measurement and timing utilities
Multiple timer management system
Task scheduling with timer-based triggers
Utility Modules
Simplified logic operations and conditions
Complex condition management with rule evaluation
State machine with action triggers
Variable monitoring with change detection
WiFi Modules
Connection Management
Basic WiFi connection handler
Enhanced WiFi handler with reconnection logic
WiFi module abstraction layer
WiFiManager for captive portal configuration
Time Synchronization
NTP time synchronization
Enhanced NTP with timezone support
Firebase Integration
Firebase V1 legacy handler
Firestore V2 database operations
Firestore V3 with enhanced query support
Firebase Cloud Messaging V2
Firebase Cloud Messaging V3
Realtime Database V2
Realtime Database V3 with streaming support
Firebase Storage V2 for file uploads
Firebase Storage V3 with chunked uploads
Firebase Application V3 unified interface
Cloud Services
Google Sheets API integration
MQTT client with auto-reconnect
Telegram Bot API integration
WhatsApp Bot API integration
Sensor Modules
Sensor Framework V1
Sensor Module V1 base framework
Sensor Module V1 utility functions
Sensor Framework V1 - Calibration
Analog sensor calibration system
Interactive serial-based analog sensor calibration
Interactive serial-based general sensor calibration
Multi-sensor calibration management system
Sensor calibration module V1
Sensor Framework V1 - Individual Sensors
Abstract sensor base class V1
AHT10/AHT20 temperature and humidity sensor
Generic analog sensor wrapper
BME280 environmental sensor (temperature, humidity, pressure)
DHT11/DHT22 temperature and humidity sensor
Generic digital sensor wrapper
DS18B20 1-Wire temperature sensor
Dust/particulate matter sensor
Flow meter V1
Flow meter V2 with enhanced accuracy
Flow meter V3 with calibration support
GM67 barcode scanner module
GPS/GNSS module support
HX711 load cell amplifier
INA219 current/voltage/power sensor
I2C keypad module
MAX30100 heart rate and SpO2 sensor
MAX30102/MAX30105 heart rate and SpO2 sensor
MAX30102/MAX30105 V2 with enhanced algorithms
MAX31865 RTD temperature sensor
MAX6675 K-type thermocouple sensor
MLX90614 infrared temperature sensor
MQ series gas sensors (MQ-2, MQ-135, etc.)
pH sensor module
PZEM-004T power monitoring module
RFID reader module (RC522, PN532)
RPM/tachometer sensor
Real-time clock module V1
SCD30 CO2, temperature, and humidity sensor
Soil moisture sensor
Soil pH sensor
TCS3200 color sensor
TDS (Total Dissolved Solids) sensor
Turbidity sensor for water clarity
Ultrasonic distance sensor (HC-SR04, etc.)
Voltage divider sensor module
Sensor Framework V2
Sensor Module V2 base framework with enhanced features
Sensor Module V2 utility functions
Sensor Framework V2 - Systems
Alert system for threshold-based notifications V2
Integrated filtering system for sensor data V2
Sensor Framework V2 - Tools
Interactive serial-based sensor calibration V2
Sensor calibration module V2
Sensor Framework V2 - Individual Sensors
Abstract sensor base class V2
Generic analog sensor V2
BME680 environmental sensor V2 (temperature, humidity, pressure, gas)
Custom sensor template V2 for user-defined sensors
DHT11/DHT22 sensor V2
GP2Y dust sensor V2
INA219 current/voltage sensor V2
MH-RTC real-time clock V2
MLX90614 infrared temperature sensor V2
MQ series gas sensors V2
Real-time clock module V2 base
DS1307 RTC module V2
DS3231 high-precision RTC module V2
PCF8523 RTC module V2
PCF8563 RTC module V2
Include Pattern Examples
Basic Sensor Application
WiFi-Connected IoT Device
Control System with Fuzzy Logic
Display Menu System
Memory Optimization Tips
Use helper versions (ENABLE_MODULE_HELPER_*) for utility-only access without full implementation.
See Also
- Kinematrix.h Reference - Master include header documentation
- Modules Overview - Detailed module documentation
- Sensors Guide - Sensor framework reference