Available Controllers
Kinematrix includes seven advanced control implementations:PID Controller
Enhanced PID with auto-tuning (Ziegler-Nichols, Cohen-Coon) and EEPROM persistence
Fuzzy Logic
Three fuzzy systems: Mamdani, Sugeno, and Tsukamoto inference engines
Machine Learning
Decision Trees and K-Nearest Neighbors for classification and prediction
Examples
Over 30 real-world examples demonstrating control applications
Key Features
Industrial-Grade PID Control
Industrial-Grade PID Control
- Auto-tuning: Ziegler-Nichols (Type 1 & 2) and Cohen-Coon methods
- Anti-windup: Configurable integral limits
- Derivative filtering: Low-pass filter for noise reduction
- Setpoint ramping: Smooth setpoint transitions
- Output rate limiting: Prevents actuator saturation
- EEPROM persistence: Save/load tuned parameters
Fuzzy Logic Systems
Fuzzy Logic Systems
- Three inference methods: Mamdani, Sugeno, Tsukamoto
- Multiple membership functions: Triangular, trapezoidal, Gaussian, singleton
- Flexible defuzzification: Centroid, bisector, MOM, SOM, LOM
- Rule-based control: Intuitive IF-THEN rule syntax
- Model persistence: Save/load on ESP32 SPIFFS
Machine Learning
Machine Learning
- Decision Trees: Information gain splitting with pruning
- KNN Classification: Multiple distance metrics (Euclidean, Manhattan, Cosine)
- Cross-validation: K-fold validation with confusion matrices
- Feature importance: Identify critical variables
- Data normalization: StandardScaler for KNN
- Mixed data types: Numeric and categorical features
Performance Characteristics
| Algorithm | Execution Time | Memory Usage | Best For |
|---|---|---|---|
| PID Controller | ~100μs | Minimal | Temperature, motor speed, flow control |
| Fuzzy Logic | 500μs - 2ms | Low-Medium | HVAC, irrigation, robot navigation |
| Decision Tree | ~200μs | Medium | Soil classification, weather prediction |
| KNN | Variable | Medium-High | Gesture recognition, pattern matching |
Platform Support
Quick Start Examples
Basic PID Temperature Control
Simple Fuzzy Fan Control
KNN Pattern Classification
Real-World Applications
Smart Home
- HVAC temperature/humidity control
- Lighting automation
- Energy management
Industrial
- Process control systems
- Motor speed regulation
- Flow rate management
Agriculture
- Irrigation scheduling
- Greenhouse climate control
- Soil classification
Robotics
- Path planning
- Obstacle avoidance
- Sensor fusion
Environmental
- Weather prediction
- Air quality monitoring
- Water level control
Education
- Control theory demonstrations
- Machine learning labs
- Embedded AI projects
Choosing the Right Controller
Need precise setpoint tracking?
Use PID Controller for systems requiring accurate target maintenance (temperature, pressure, speed)
Working with imprecise or linguistic rules?
Use Fuzzy Logic for systems with human-like reasoning (comfort levels, qualitative states)
Need classification or pattern recognition?
Use KNN for real-time classification with small training sets
Next Steps
PID Controller
Learn about auto-tuning, advanced features, and optimization
Fuzzy Logic
Explore Mamdani, Sugeno, and Tsukamoto systems
Machine Learning
Implement Decision Trees and KNN classifiers
Examples
Browse 30+ real-world control examples