KINGSTON-115/llm-pid-tuner
About
LLM-based minimalist PID auto-tuning system (CLI version)
AI & Machine LearningMeasured star growth
- in 24h
- 0
- in 7 days
- +3
- in 15 days
- +1
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
docs/en-US/README.md
OriginalLLM-PID-Tuner
Use an LLM to help tune PID controllers: propose gains from response data, measure the result, retain improvements, and roll back regressions. For temperature, motor, and other systems with an existing PID loop.
Download desktop v2.5.0 · Download Agent Skill DLC v1.0.0 · 中文
Star History
Choose a starting point
| What you want to do | Start here |
|---|---|
| Try tuning without hardware or an API key | Windows desktop with offline rules |
| Use your existing agent to analyze data and plan experiments | PID Tuning Skill DLC |
| Connect an Arduino, ESP32, or another controller | Hardware and API configuration |
| Tune an existing Simulink model | MATLAB / Simulink guide |
| Modify the code or follow development | Run from source |
Agent Skill DLC
Bring the tuning workflow to your existing agent. The standalone pid-tuning/
folder covers controller equations and units, evidence-based tuning, parameter bounds,
small experiments, verification, and rollback. It includes CSV analysis, offline
simulation, and proposal validation tools. No main application or additional model
API configuration is required; scripts use only Python 3.10+ and its standard library.
- Download the ZIP and extract
pid-tuning/. - Copy the whole folder into your agent's configured skills directory and reload. Without automatic discovery, ask the agent to read its
SKILL.mddirectly. - In hosts supporting
$skill-name, try:
Use $pid-tuning to analyze this temperature-control CSV, compare overshoot and tail error by round, and propose one small experiment.
Installation and usage guide · Skill source
The DLC is released independently. Its scripts perform offline calculations; live equipment connections use your existing authorized tools.
Desktop quick start
- Download
llm-pid-tuner-v2.5.0-windows-x64.zipfrom the v2.5.0 release. - Extract the entire folder to a writable location, open
llm-pid-tuner-desktop.exe, and keep_internalbeside it. - Keep Local thermal simulation / Offline rules selected and start tuning. No Python installation, hardware, or API key is needed.
The desktop includes live plots, Chinese/English switching, light/dark themes, and
CSV/JSON export. For AI tuning, fill in the model API under Connection settings
and select AI automatic tuning. Select serial hardware or Simulink when connecting
a device or model. Copy your existing config.json into a new release folder to retain settings.
See the desktop guide for details. The package also includes a terminal launcher:
.\llm-pid-tuner.exe --tui # Terminal mode selector
.\llm-pid-tuner.exe sim # Simulation TUI
.\llm-pid-tuner.exe tune COM5 # Serial tuning
Configuration and tuning
Use Connection settings in the desktop, or start from
config.example.json
when running from source. AI mode supports OpenAI-compatible endpoints, the native
Claude API, OrcaRouter, and local services such as Ollama / LM Studio.
Offline rules need no model service.
The configuration guide covers providers, hardware protocols, proxies, CSV export, gain limits, and troubleshooting. Model preparation, block paths, multiple controllers, and MATLAB Engine installation belong in the Simulink guide.
Express preferences such as limiting overshoot or prioritizing response speed. The application evaluates suggestions against response data and parameter bounds, then holds gains for observation when configured acceptance criteria are met. Validate final gains under actual operating conditions before saving them in firmware or controller configuration.
Run from source
Use Python 3.10+; Simulink also requires a Python version supported by your installed
MATLAB Engine. dev is the default development branch. Use tag v2.5.0 to reproduce
the desktop release; main receives user documentation but its code may lag release tags.
git clone -b dev https://github.com/KINGSTON-115/llm-pid-tuner.git
cd llm-pid-tuner
python -m pip install -r requirements.txt
python launcher.py
Other entry points:
python simulator.py # Simulation TUI; configure a model API for AI tuning
python tuner.py # Serial tuning
python doctor.py # Configuration and connectivity checks
Use python simulator.py --plain for plain text output or --lang en for English.
See the project documentation for controller internals, the serial
protocol, and system identification.
Documentation
| Guide | Contents |
|---|---|
| Skill DLC | Installation, portability, offline examples, and independent releases |
| Desktop workbench | UI, run controls, exports, and packaging |
| Configuration | Providers, hardware, tuning settings, and troubleshooting |
| MATLAB / Simulink | Model setup, Engine installation, and multiple controllers |
| Project internals | Core modules, protocols, and tuning workflow |
| Releases | Downloads, changes, and previous versions |
Supervise real equipment and retain independent temperature limits, sensor fault protection, and a physical power cutoff. The software's Stop action ends host-side tuning; it is not an equipment emergency stop.
Community and tutorials
QQ group: 1082281492 · Bilibili tutorial · YouTube tutorial
Explore related projects
Loading…