Introduction
AutoLight is a comprehensive LED matrix control system built on the Kinematrix framework, designed for automotive and industrial applications. It provides intelligent LED control with hardware I2C expansion, dynamic configuration, and web-based management.AutoLight V3
Current generation with dynamic PCF distribution and multi-modal buttons
Web Client
Next.js web interface with Pattern Builder for LED sequence development
Pattern Builder
Visual and code-based LED pattern creation tools
REST API
Complete API reference for device control and monitoring
Four Generations of Evolution
AutoLight represents four generations of LED control evolution, each building upon the previous while maintaining backward compatibility:AutoLight V1 - Foundation Architecture
Key Features:- Foundation architecture with “Keed” naming convention
- 24 channels, 3 PCF8574 I2C expanders
- Hardcoded LED sequences
- Basic 4-button control (ON/OFF/NEXT/PREV)
AutoLight V2 - Web Connectivity
Key Features:- Web interface and namespace organization
- 64 channels, 8 PCF8574 expanders
- FreeRTOS task management
- Integrated web server
AutoLight V3 - Dynamic Distribution
Current Generation - See AutoLight V3 for complete documentation. Key Features:- Dynamic PCF8574 distribution with 4 strategies
- Multi-modal button system (5 modes)
- Integrated REST API server (port 8000)
- CLI interface via SerialCommander
- 64 channels, 8 PCF expanders
AutoLight V4 - Fully Dynamic (Future)
Key Features:- Zero-configuration automatic mode
- 128 channels, 16 PCF expanders
- Auto-detection and auto-distribution
- Intelligent auto-fixing
- Builder pattern configuration
Hardware Platform Support
- ESP32
- ESP8266
- Arduino AVR
Primary Platform - Full feature support
- All AutoLight versions (V1-V4)
- FreeRTOS task management
- WiFi AP/STA modes
- Web server and REST API
- Up to 128 channels (V4)
- Hardware I2C with multiple PCF8574 expanders
LED Sequence System
All AutoLight versions support 16 total lighting modes:Mode 0 - OFF
Mode 0 - OFF
Complete OFF state - all channels disabled
Mode 1 - Static ON
Mode 1 - Static ON
Static ON - all channels continuously high
Modes 2-15 - LED Sequences
Modes 2-15 - LED Sequences
14 customizable LED sequence patterns:
- Mode 2: Blink all channels simultaneously
- Mode 3: Fill from two points (center outward)
- Mode 4: Fill from right to left
- Mode 5: Fill from both ends inward
- Mode 6: Blink one LED at a time sequentially
- Mode 7: Blink two LEDs while filling
- Mode 8: Snake pattern with reverse
- Mode 9: Random LED activation
- Mode 10: Wave propagation effect
- Mode 11: Complex multi-pattern coordination
- Mode 12: Advanced pattern matrix
- Mode 13: Custom blink patterns
- Mode 14: Advanced pattern combinations
- Mode 15: All sequences in rotation
Key Architectural Patterns
Progressive Enhancement
Each version maintains 100% backward compatibility while adding revolutionary features:Modular Component Design
All versions follow consistent component organization:Hardware Abstraction System
- I2C Expansion: PCF8574 I/O expander support (8-128 channels)
- Dynamic Distribution: Intelligent channel allocation across multiple PCFs
- Platform Support: ESP32 primary, ESP8266/AVR compatibility
- Button Systems: 1-4 button configurations with 5 interaction modes
Development Guidelines
Version Selection Strategy
New Projects
Use AutoLight V4 for maximum capabilities and intelligent auto-configuration
Production Systems
Use AutoLight V3 for robust features with proven stability and web integration
Legacy Systems
V3 for dynamic features, V2 for web requirements, V1 for simple control
Educational
Start with V1, progress through versions to understand evolution
Memory Optimization
Platform Considerations
| Platform | V1 | V2 | V3 | V4 | Recommended Use |
|---|---|---|---|---|---|
| ESP32 | ✅ | ✅ | ✅ | ✅ | All versions, full features |
| ESP8266 | ✅ | ✅ | ⚠️ | ❌ | V1/V2 only, limited |
| AVR | ❌ | ❌ | ❌ | ❌ | Not supported |
Integration with Kinematrix
Enable Flags
Include Patterns
Namespace Usage
- V1: Global namespace with “Keed” prefix
- V2-V4:
AutoLightnamespace for clean organization
Build Commands
All AutoLight versions are built using PlatformIO:Next Steps
Get Started with V3
Learn about AutoLight V3 firmware architecture and features
Web Interface
Explore the Next.js web client for device control
Create Patterns
Use the Pattern Builder to design custom LED sequences
API Reference
Complete REST API documentation for integration