Prerequisites
Before installing Kinematrix, ensure you have one of the following development environments:PlatformIO
Recommended - Advanced build system with better dependency management and multi-platform support.
Arduino IDE
Traditional Arduino development environment with library manager support.
Supported Platforms
- ESP32
- ESP8266
- Arduino AVR
- ESP32 DevKit v1
- ESP32-WROOM-32
- ESP32-S2/S3/C3
- Any ESP32-based board
Installation Methods
- PlatformIO (Recommended)
- Arduino IDE
- Manual Installation
Clone Kinematrix Repository
Clone the repository to your Arduino libraries folder:
Alternatively, you can clone to your project’s
lib/ directory for project-specific installation.Common Dependencies
Depending on which modules you enable, you may need these libraries:Core Dependencies (Always Required)
Core Dependencies (Always Required)
Sensor Dependencies
Sensor Dependencies
Communication Dependencies
Communication Dependencies
Display Dependencies
Display Dependencies
WiFi/Cloud Dependencies
WiFi/Cloud Dependencies
WiFi libraries (WiFi.h for ESP32, ESP8266WiFi.h for ESP8266) are included in the board packages.
Module Configuration
Kinematrix uses conditional compilation to include only the modules you need. There are two ways to configure modules:Method 1: Edit lib/enable.h (Global Configuration)
Method 2: Define Before Include (Per-Sketch Configuration)
This method is recommended for project-specific module selection and keeps your global installation clean.
Verification
Test your installation with this complete example:Troubleshooting
Compilation Error: 'Kinematrix.h' file not found
Compilation Error: 'Kinematrix.h' file not found
Solution: Ensure Kinematrix is in the correct libraries folder:
- PlatformIO:
~/.platformio/lib/Kinematrixorproject/lib/Kinematrix - Arduino IDE:
~/Arduino/libraries/Kinematrix
Compilation Error: Multiple definition of [module name]
Compilation Error: Multiple definition of [module name]
Cause: Module enabled in both
lib/enable.h and sketch with different configurations.Solution: Choose one configuration method (either global or per-sketch) and stick with it.Out of Memory / Stack Overflow
Out of Memory / Stack Overflow
Cause: Too many modules enabled for your platform.Solution:
- Disable unused modules
- Use lighter module variants (e.g.,
SerialDebuggerLiteinstead ofSerialDebugger) - Upgrade to a platform with more memory (ESP32 instead of ESP8266 or AVR)
Upload Failed / Port Not Found
Upload Failed / Port Not Found
Solution:
- Check USB cable connection
- Install CH340/CP2102 drivers if needed
- Verify correct port selection in IDE
- Press BOOT button on ESP32 during upload if auto-reset fails
Next Steps
Quick Start Guide
Build your first complete IoT project with Kinematrix
Architecture Overview
Learn about the modular compilation system and framework design