# NTC 熱敏電阻 (`ntc`)

> 溫度升高時電阻下降的電阻，用來限制湧入電流。

![ntc](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/img/ntc.svg)

[元件參考](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/) · [English](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/passive/ntc/)

**分類:** 被動元件 · **種類:** `{"kind":"ntc"}`

## 何時使用

串在電源輸入，用來限制對大電容充電的湧入電流。接在熱網路上時也可當作溫度感測器。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `p` | 電氣 | 一端 |
| `n` | 電氣 | 另一端 |

## 常用參數

- `r25`: Resistance at 25 °C (預設值: 10)
- `b`: B value: how fast the resistance falls with temperature (預設值: 2818)
- `delta`: Dissipation factor: heat it loses per kelvin above its surroundings (預設值: 10m)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 |
|---|---|---|---|---|
| `r25` | Ω | 10 |  | Resistance at 25 °C |
| `b` | K | 2818 |  | B value: how fast the resistance falls with temperature |
| `delta` | W/K | 10m |  | Dissipation factor: heat it loses per kelvin above its surroundings |
| `cth` | J/K | 0.7 |  | Heat capacity |
| `ta` | °C | 25 |  | Temperature of its surroundings |
| `thermal` | — | 選填（預設關閉） |  | Thermal net for its heat and temperature; replaces delta and cth |
| `imax` | A | 3.5 |  | Largest steady current; above it the part is in a surge |
| `ct` | F | 300u |  | Test capacitance: the capacitor it may charge in one surge from the peak of vt |
| `vt` | V | 230 |  | RMS mains voltage the test capacitance is given at |

_參數說明在兩種語言中都是英文。_

**適用於:** 湧浪電流限制 · 溫度感測

**不適用於:** 精密溫度感測 → [`ntcSensor`](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/meters/ntcSensor/) · 可復歸過電流保護 → [`ptc`](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/passive/ptc/)

## 公式

| 公式 | 方程式 | 出處 |
|---|---|---|
| 本體溫度下的電阻 | R = r25·exp(b·(1/(tb + 273.15) − 1/298.15)) | IEC 60539-1:2016, B value |
| 維持在 tb 所需功率 | P = delta·(tb − ta) | IEC 60539-1:2016, dissipation factor |

## 快速驗算

輸入:

- `r25`: 25 °C 電阻 = 10 Ω, `r25`
- `b`: B 值 = 2.818k K, `b`
- `delta`: 散熱係數 = 10m W/K, `delta`
- `ta`: 環境溫度 = 25 °C, `ta`
- `tb`: 本體溫度 = 100 °C

輸出:

- `rt`: tb 下的電阻 = `r25*exp(b*(1/(tb + 273.15) - 1/298.15))` Ω
- `p`: 維持在 tb 所需功率 = `delta*(tb - ta)` W
- `ihold`: tb 下的穩態電流 = `sqrt(p/rt)` A

## 模型邏輯

- 每一步它是本體溫度 T（上一步結束時的溫度）下的電阻 r25·exp(b·(1/T − 1/298.15 K))。
- 它從 ta 開始；每個接受步之後 T 以時間常數 cth/delta 趨向 ta + P/delta，對定功率是精確解。
- 設定 thermal 時，T 取自該熱網路的溫度，其發熱流入該網路；此時不使用 delta 與 cth。
- 電流高於 imax 期間吸收的能量會與 ½·ct·(√2·vt)² 比較，超過時發出警告；元件本身不會損壞。

## 模型

電阻依照 R = r25 * exp(b * (1/T - 1/298.15 K))。它自己的功率會讓它發熱：沒有熱網路時，溫度 T 依功率除以 cth 上升，並依散熱係數 delta 往 ta 降低，所以會穩定在 ta + P / delta。設定 thermal 時，T 就是該熱網路的溫度，它的熱也流入該網路。T 在每一步之後更新，所以每一步用的是上一步結束時的電阻。沒有熱網路時，它的溫度是波形 T(name)。

## 常見錯誤

- 熱的 NTC 電阻很低，所以很快重新開機時幾乎沒有限流效果。在意這一點時，請把關機的時間也模擬進去。
- 電阻的變化以秒計。只模擬幾毫秒時，只看得到冷態電阻。

## 規格書與來源

r25 取自訂購表，delta（散熱係數）與 cth（熱容量）取自一般技術資料，b 取自 B 值。規格書只給 Imax 時的 Rmin 時，b = ln(r25 / Rmin) / (1/298.15 K - 1/T)，其中 T = 298.15 K + Imax² * Rmin / delta。imax 取自最大電流，ct 取自市電電壓 vt 下的測試電容：單次突波最多可吸收 ½ * ct * (√2 * vt)²，超過時會出現警告。只有電流超過 imax 期間吸收的能量算作突波。預設值是 TDK B57236S0100M（S236 系列，10 Ω），2019 年 7 月版規格書，imax 與 ct 取自 TDK Product Center 的 B57236S0100M000 頁面。

## 範例

以指令 `file.openExample` 開啟範例，名稱為 `demo:ntc`.

---
由 `cargo xtask reference` 依使用說明文字與參數規格產生，請勿手動編輯。
