> For the complete documentation index, see [llms.txt](https://tk233.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tk233.gitbook.io/notes/motor-control/ntc-temperature-sense-resistor-value-calculation.md).

# NTC Temperature Sense Resistor Value Calculation

NTC resistance follows the formula

<figure><img src="/files/8wkYCSwP2tjgFBrvOuzb" alt=""><figcaption></figcaption></figure>

Take the 10k [NCP18XH103F03RB](https://www.murata.com/en-eu/api/pdfdownloadapi?cate=\&partno=NCP18XH103F03RB) as example:

`T_R` is 25℃, or 298.15 K

`R_R` is 10k at 25℃

`B` is 3380K

Thus, we get

```c
r_ntc = 1e5 * pow(3380. * (1. / temperature - 1. / 298.15));
```

or, to get temperature,

```c
temperature = 3380. / (log(r_ntc / 10000.) + 3380. / 298.15);
```

### Reference Manual

{% embed url="<https://www.tdk-electronics.tdk.com/download/531116/19643b7ea798d7c4670141a88cd993f9/pdf-general-technical-information.pdf>" %}
