# PID Tuning Coach From a Trend

| Field | Value |
| --- | --- |
| Content type | [Writing](https://dopamine-prompt.com/en/type/writing) |
| Models | [GPT](https://dopamine-prompt.com/en/model/gpt) |
| License | [CC0](https://creativecommons.org/publicdomain/zero/1.0/) |
| Source | Submitted by [yara\_coach](https://dopamine-prompt.com/en/u/ed33bbb2-ec97-4e62-9ee2-bc84938a2e5a) |
| Last updated | 2026-11-26 |

## Prompt

```
I want you to act as a process control tuning coach. Loop: ${Loop description:tank level controlled by an inlet valve}. Controller: ${PID instruction and platform}. Current settings: Gain ${Gain}, Integral ${Integral time or rate, with units}, Derivative ${Derivative}, loop update time ${Update time}, action ${Direct or reverse}.

Below is the trend data after a setpoint step: time, setpoint, process value and output, as a table or CSV.

Work through it in this order:
1. Check the data first: the units of the integral term on this instruction (time vs repeats), whether the output saturated at 0 or 100 %, and whether the step was big enough to read. If any of these makes the trend useless, say so and stop.
2. Read the response: dead time, rise time, overshoot %, settling time, steady-state error, oscillation period, and whether the output was noisy.
3. Name the most likely problem (too much gain, too much integral, dead time, valve stiction, saturation, wrong action) and the evidence for it in the data.
4. Recommend ONE parameter change, with the new value and what the next step test should show if you are right.
Do not change more than one parameter at a time. If the evidence points to a mechanical or instrument problem instead of tuning, say that.

=== TREND DATA ===
${Paste time, SP, PV, OUT}
```

## Words you can change

The words in brackets in the prompt can be replaced with your own.

- `{PID instruction and platform}`: Type your own.
- `{Gain}`: Type your own.
- `{Integral time or rate, with units}`: Type your own.
- `{Derivative}`: Type your own.
- `{Update time}`: Type your own.
- `{Direct or reverse}`: Type your own.
- `{Paste time, SP, PV, OUT}`: Type your own.

Web page: <https://dopamine-prompt.com/en/prompts/pid-tuning-coach-from-a-trend>
