PLL Parameter Tuning Tool
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md and install @user_28a3fa40/pll-designer.
About this skill
Problem context
Tuning an SRF-PLL PI controller is often reduced to adjusting Kp and Ki, but closed-loop bandwidth, damping ratio, and phase error also depend on phase voltage magnitude, fundamental frequency, and per-unit base. Experience-only tuning can produce insufficient bandwidth, excessive overshoot, or poor phase tracking, especially when moving between voltage levels such as 690V and 380V.
How it works
The skill uses a second-order linearized model as the calculation basis: it derives wn, zeta, and the bandwidth extension factor C from the open-loop transfer function, then converts the result into practical per-unit PI parameters.
- Forward design: given
f_BW_target, together withUnom,f0, andzeta, it computesKPLLp_puandKPLLi_pu - Reverse analysis: given existing per-unit PI values, it back-calculates
wn,zeta, and actual bandwidth - Interaction guard: if
Unomor direction-specific parameters are missing, it prompts for them instead of silently using defaults
Boundaries
It is intended for engineering estimates and parameter cross-checks, not full nonlinear stability simulation. Results rely on linearized assumptions; strong harmonics, saturation, weak-grid impedance, or frequent switching conditions should still be verified with simulation or measurements.
Use Cases
- Design a 690V wind-converter SRF-PLL and compute per-unit PI values from a 10Hz bandwidth target.
- Review a legacy controller by back-calculating bandwidth and zeta from existing KPLLp_pu and KPLLi_pu.
- Convert PI values for a 380V low-voltage case and compare bandwidth behavior against a 690V base.
- Run calc_pll_bandwidth.m to check production PI parameters and output wn, zeta, and bandwidth.
Best For
- Power electronics engineers developing wind-converter control who need PI values from a target bandwidth.
- Embedded control engineers maintaining SRF-PLL code who need to infer bandwidth and damping from PI values.
- Graduate researchers validating grid-connection parameters who want to check voltage base, frequency, and zeta.
- Automation engineers writing MATLAB control scripts who want reusable forward and reverse calculation functions.
Related Skills
Analyzes code to extract control and data flow, then outputs Markdown with Mermaid source and high-resolution PNG diagrams.
For development and programming scenarios around VSCode and TypeScript IDE.
A TypeScript-oriented Windmill Wrap development reference.
A Python-based Selenium wrapper for engineering browser automation workflows.