---
title: "Project: a silicon temperature sensor"
heading: Use mobility and intrinsic carriers to design a sensor and find its limits
eyebrow: B9 · Lesson 27 · Project
xp: 80
---

::: hook
Car engines, motor windings and battery packs are often watched by silicon temperature sensors: a tiny chip of lightly doped silicon whose resistance rises about 0.8% per kelvin. The physics is all in this course. Doping fixes the number of carriers, so the resistance tracks the mobility, which falls as the crystal vibrates harder. Heat it too far and the intrinsic carriers of lesson 15 flood in, the resistance turns around and falls, and the sensor gives two temperatures for one reading. In this project you'll model the sensor, find where it turns around, and choose a doping for a rated temperature range.
:::

::: play
- A silicon sensor's resistance relative to its value at 300 K, against temperature, for doping $N_d$ (log₁₀ per cm³).
- Over the working range it climbs smoothly, roughly as $T^{2.4}$. Then it peaks and falls as intrinsic carriers take over.
- Lighter doping gives more resistance from a small chip, but it turns around at a lower temperature. Find the lightest doping that still works up to 200 °C (473 K).
:::
:::

```sim plot
view: graph
x: T = 200..750 K
y: R = 0..5
slider: x0 = 13.5..17 step 0.1 = 15
slider: T0 = 200..750 step 5 = 400 K
plot: (10^x0*1350 + 8.8e19/10^x0*450)/((10^x0/2 + sqrt(10^(2*x0)/4 + (2.4e19*(T/300)^1.5*exp(-1.12/(2*8.617e-5*T)))^2))*1350*(T/300)^-2.4 + (2.4e19*(T/300)^1.5*exp(-1.12/(2*8.617e-5*T)))^2/(10^x0/2 + sqrt(10^(2*x0)/4 + (2.4e19*(T/300)^1.5*exp(-1.12/(2*8.617e-5*T)))^2))*450*(T/300)^-2.2) | label: resistance, relative to 300 K | samples: 500
plot: (T/300)^2.4 | label: T^2.4 law | dashed | color: ch2
marker: x = T0 | label: T
readout: relative resistance at T = (10^x0*1350 + 8.8e19/10^x0*450)/((10^x0/2 + sqrt(10^(2*x0)/4 + (2.4e19*(T0/300)^1.5*exp(-1.12/(2*8.617e-5*T0)))^2))*1350*(T0/300)^-2.4 + (2.4e19*(T0/300)^1.5*exp(-1.12/(2*8.617e-5*T0)))^2/(10^x0/2 + sqrt(10^(2*x0)/4 + (2.4e19*(T0/300)^1.5*exp(-1.12/(2*8.617e-5*T0)))^2))*450*(T0/300)^-2.2) | digits: 4
readout: temperature coefficient from the T^2.4 law, %/K = 240/T0 | digits: 3
```

::: predict
## A silicon sensor's resistance follows $T^{2.4}$ near room temperature. What is its temperature coefficient at 300 K?

- [ ] 0.24% per kelvin
- [x] 0.8% per kelvin
- [ ] 2.4% per kelvin
- [ ] It depends on the doping

::: reveal
0.8% per kelvin. For $R \propto T^{2.4}$, $\frac{1}{R}\frac{dR}{dT} = \frac{2.4}{T} = \frac{2.4}{300} = 0.008$ per kelvin. It doesn't depend on doping as long as the doping fixes the carrier count, and it falls slowly with temperature: 0.6% per kelvin at 400 K.
:::
:::

::: nameit
## The model

Lightly doped n-type silicon, with every donor ionized:

- **Carriers:** $n = \frac{N_d}{2} + \sqrt{\frac{N_d^2}{4} + n_i^2}$ and $p = n_i^2/n$ (lesson 15), with $n_i = 2.4 \times 10^{19}(T/300)^{3/2}e^{-E_g/2kT}$ cm⁻³ and $E_g$ = 1.12 eV.
- **Mobilities,** lattice-limited at light doping (lesson 17): $\mu_n = 1350(T/300)^{-2.4}$ and $\mu_p = 450(T/300)^{-2.2}$ cm²/(V·s).
- **Resistance:** $R \propto \frac{1}{\sigma}$ with $\sigma = e(n\mu_n + p\mu_p)$, scaled so $R = R_{300}$ at 300 K.

## The working range

In the extrinsic range $n \approx N_d$ is constant and $R \propto T^{2.4}$: a smooth, monotonic curve with a coefficient of $\frac{2.4}{T}$. As $n_i$ approaches $N_d$, carriers multiply faster than mobility falls, $dR/dT$ shrinks to zero at a **peak**, and beyond it the resistance falls. Above the peak a reading is ambiguous, so the sensor's rated maximum must sit safely below it.

## Design trade-offs

- **Lighter doping** gives a higher resistivity, so a tiny chip still has a convenient resistance, like 1 kΩ, with little current and little self-heating. But it turns intrinsic sooner.
- **Self-heating:** the measuring current dissipates $I^2R$, which warms the chip by $I^2R\theta$, with θ its thermal resistance to its surroundings in K/mW. Keep the current small.
- **Reading back:** in the working range, $T \approx 300(R/R_{300})^{1/2.4}$ K, refined with a calibration table.
:::

::: example
## A sensor reads 1000 Ω at 300 K. What does the $T^{2.4}$ law predict at 400 K, and what temperature does 1500 Ω mean?

::: solution
1. **At 400 K.**
   $$\begin{aligned} R &= 1000 \times (400/300)^{2.4} \\ &= 1995\ \Omega \end{aligned}$$
2. **The temperature for 1500 Ω.**
   $$\begin{aligned} T &= 300 \times 1.5^{1/2.4} \\ &= 355\ \text{K} \end{aligned}$$
   or 82 °C.
3. **Compare with the full model.** The full model agrees closely until intrinsic carriers matter.

**Answer:** 1995 Ω at 400 K, and 1500 Ω means 355 K (82 °C).
:::
:::

::: example
## A 1 kΩ sensor with a thermal resistance of 0.5 K/mW is read with 1 mA. How much does it heat itself?

::: solution
1. **Power.**
   $$\begin{aligned} P &= I^2R \\ &= (10^{-3})^2 \times 1000 \\ &= 1\ \text{mW} \end{aligned}$$
2. **Temperature rise.**
   $$\begin{aligned} \Delta T &= 1 \times 0.5 \\ &= 0.5\ \text{K} \end{aligned}$$
   so the sensor reads half a degree high.
3. **A smaller current.** At 0.1 mA the error drops a hundredfold, to 5 mK.

**Answer:** it heats itself by 0.5 K, so it reads half a degree high.
:::
:::

::: check
given: T = 250 | 350 | 400
answer: 240/T
unit: %/K
tolerance: 0.5%

## A silicon sensor follows $R \propto T^{2.4}$. What is its temperature coefficient at {T} K?

::: right
Right. $2.4/T$ = {answer}.
:::

::: misses
- [0.8] That's the value at 300 K; it falls as $1/T$.
- [any] Not yet. $\frac1R\frac{dR}{dT} = 2.4/T$.
:::
:::

::: check
given: R0 = 1000 | 2000; T = 250 | 350 | 420
answer: R0*(T/300)^2.4
unit: Ω
tolerance: 0.5%

## A sensor reads {R0} Ω at 300 K and follows $T^{2.4}$. What does it read at {T} K?

::: right
Right. {answer}.
:::

::: misses
- [R0*T/300] The resistance goes as $T^{2.4}$, faster than in proportion.
- [any] Not yet. $R_{300}(T/300)^{2.4}$.
:::
:::

::: check
given: r = 1.2 | 1.5 | 2.5
answer: 300*r^(1/2.4)
unit: K
tolerance: 0.5%

## A sensor's resistance is {r} times its 300 K value. What temperature does the $T^{2.4}$ law give?

::: right
Right. $300\,r^{1/2.4}$ = {answer}.
:::

::: misses
- [300*r] Invert the power law: $T = 300\,r^{1/2.4}$.
- [any] Not yet. Solve $r = (T/300)^{2.4}$.
:::
:::

::: check
given: I = 0.1 | 0.5 | 1; R = 1 | 2; th = 0.3 | 1
answer: (I/1000)^2*R*1000*1000*th*1000
unit: mK
tolerance: 0.5%

## A {R} kΩ sensor with a thermal resistance of {th} K/mW is read with {I} mA. How much does it heat itself?

::: right
Right. $I^2R\theta$ = {answer}.
:::

::: misses
- [any] Not yet. Power $I^2R$ in mW, times θ.
:::
:::

::: check
kind: python

## Write `resistance(T, Nd, R300=1000.0)` for the model above: the sensor's resistance at temperature `T` (K) with `Nd` donors per cm³, scaled so it equals `R300` at 300 K.

```python starter
import numpy as np
k = 8.617e-5

def resistance(T, Nd, R300=1000.0):
    return R300 * (T / 300) ** 2.4

print(resistance(400, 1e15), resistance(500, 1e15))
```

```python solution
import numpy as np
k = 8.617e-5

def ni(T):
    return 2.4e19 * (T / 300) ** 1.5 * np.exp(-1.12 / (2 * k * T))

def sigma(T, Nd):
    n = Nd / 2 + np.sqrt(Nd ** 2 / 4 + ni(T) ** 2)
    p = ni(T) ** 2 / n
    return 1.602e-19 * (n * 1350 * (T / 300) ** -2.4 + p * 450 * (T / 300) ** -2.2)

def resistance(T, Nd, R300=1000.0):
    return R300 * sigma(300.0, Nd) / sigma(T, Nd)

print(resistance(400, 1e15), resistance(500, 1e15))
```

```python tests
import numpy as np
assert abs(resistance(300, 1e15) - 1000) < 1e-6, "At 300 K the resistance should equal R300."
r = resistance(400, 1e15)
assert abs(r - 1994.56) < 0.5, f"At 400 K the extrinsic T^2.4 law holds: about 1994.6 Ω; got {r:.1f}."
r = resistance(500, 1e15)
assert abs(r - 3345.63) < 1, f"At 500 K intrinsic carriers start to matter: about 3345.6 Ω; got {r:.1f}. Include n_i in n and the holes' conduction."
r = resistance(500, 1e14)
assert abs(r - 1656.06) < 1, f"With 1e14 donors the sensor has already turned around by 500 K: about 1656 Ω; got {r:.1f}."
```

::: right
Right. The $T^{2.4}$ starter was right at 400 K and wrong at 500 K: the full model is what shows the sensor's limit.
:::
:::

::: check
kind: python

## Write `peak_temp(Nd)`: the temperature (K) where the resistance peaks, found by bisection between 300 and 1200 K on the sign of $dR/dT$. Estimate the slope with a central difference, `(resistance(T + 0.01, Nd) - resistance(T - 0.01, Nd)) / 0.02`.

```python starter
import numpy as np
k = 8.617e-5

def ni(T):
    return 2.4e19 * (T / 300) ** 1.5 * np.exp(-1.12 / (2 * k * T))

def resistance(T, Nd, R300=1000.0):
    def sigma(T):
        n = Nd / 2 + np.sqrt(Nd ** 2 / 4 + ni(T) ** 2)
        return n * 1350 * (T / 300) ** -2.4 + ni(T) ** 2 / n * 450 * (T / 300) ** -2.2
    return R300 * sigma(300.0) / sigma(T)

def peak_temp(Nd):
    return 1200.0

print(peak_temp(1e15))
```

```python solution
import numpy as np
k = 8.617e-5

def ni(T):
    return 2.4e19 * (T / 300) ** 1.5 * np.exp(-1.12 / (2 * k * T))

def resistance(T, Nd, R300=1000.0):
    def sigma(T):
        n = Nd / 2 + np.sqrt(Nd ** 2 / 4 + ni(T) ** 2)
        return n * 1350 * (T / 300) ** -2.4 + ni(T) ** 2 / n * 450 * (T / 300) ** -2.2
    return R300 * sigma(300.0) / sigma(T)

def peak_temp(Nd):
    slope = lambda T: (resistance(T + 0.01, Nd) - resistance(T - 0.01, Nd)) / 0.02
    lo, hi = 300.0, 1200.0
    for _ in range(60):
        mid = (lo + hi) / 2
        if slope(mid) > 0:
            lo = mid
        else:
            hi = mid
    return (lo + hi) / 2

print(peak_temp(1e15))
```

```python tests
for Nd, want in ((1e14, 452.88), (1e15, 532.47), (1e16, 644.32)):
    got = peak_temp(Nd)
    assert abs(got - want) < 0.5, f"With {Nd:.0e} donors the resistance should peak near {want} K; got {got:.2f}."
```

::: right
Right. Ten times the doping raises the peak by roughly 80 to 110 K, because $n_i$ grows by about a factor of ten for every 80 to 110 K in this range.
:::
:::

::: check
kind: python

## Write `design(Tmax, margin=50.0)`: from the dopings `[1e14, 2e14, 5e14, 1e15, 2e15, 5e15, 1e16]`, return the lightest whose resistance peak is at least `Tmax + margin` kelvin, or `None` if none is. Your `peak_temp` is included.

```python starter
import numpy as np
k = 8.617e-5
CANDIDATES = [1e14, 2e14, 5e14, 1e15, 2e15, 5e15, 1e16]

def ni(T):
    return 2.4e19 * (T / 300) ** 1.5 * np.exp(-1.12 / (2 * k * T))

def resistance(T, Nd, R300=1000.0):
    def sigma(T):
        n = Nd / 2 + np.sqrt(Nd ** 2 / 4 + ni(T) ** 2)
        return n * 1350 * (T / 300) ** -2.4 + ni(T) ** 2 / n * 450 * (T / 300) ** -2.2
    return R300 * sigma(300.0) / sigma(T)

def peak_temp(Nd):
    slope = lambda T: (resistance(T + 0.01, Nd) - resistance(T - 0.01, Nd)) / 0.02
    lo, hi = 300.0, 1200.0
    for _ in range(60):
        mid = (lo + hi) / 2
        lo, hi = (mid, hi) if slope(mid) > 0 else (lo, mid)
    return (lo + hi) / 2

def design(Tmax, margin=50.0):
    return CANDIDATES[0]
```

```python solution
import numpy as np
k = 8.617e-5
CANDIDATES = [1e14, 2e14, 5e14, 1e15, 2e15, 5e15, 1e16]

def ni(T):
    return 2.4e19 * (T / 300) ** 1.5 * np.exp(-1.12 / (2 * k * T))

def resistance(T, Nd, R300=1000.0):
    def sigma(T):
        n = Nd / 2 + np.sqrt(Nd ** 2 / 4 + ni(T) ** 2)
        return n * 1350 * (T / 300) ** -2.4 + ni(T) ** 2 / n * 450 * (T / 300) ** -2.2
    return R300 * sigma(300.0) / sigma(T)

def peak_temp(Nd):
    slope = lambda T: (resistance(T + 0.01, Nd) - resistance(T - 0.01, Nd)) / 0.02
    lo, hi = 300.0, 1200.0
    for _ in range(60):
        mid = (lo + hi) / 2
        lo, hi = (mid, hi) if slope(mid) > 0 else (lo, mid)
    return (lo + hi) / 2

def design(Tmax, margin=50.0):
    for Nd in CANDIDATES:
        if peak_temp(Nd) >= Tmax + margin:
            return Nd
    return None
```

```python tests
assert design(423.15) == 2e14, "Rated to 150 °C, the sensor needs a peak above 473 K: 2e14 (peak 474 K) is the lightest."
assert design(473.15) == 1e15, "Rated to 200 °C, it needs a peak above 523 K: 1e15 (peak 532 K)."
assert design(573.15) == 1e16, "Rated to 300 °C, it needs a peak above 623 K: 1e16 (peak 644 K)."
assert design(700) is None, "No candidate works to 700 K; return None."
```

::: right
Right. Commercial silicon sensors are rated to about 150 °C, consistent with light doping chosen for a high resistance from a small chip.
:::
:::

::: explain
## Why does a lightly doped silicon sensor's resistance rise with temperature, when pure silicon's falls?

::: model
In doped silicon below a few hundred degrees Celsius, the number of carriers is fixed by the dopants, since every donor is already ionized and the intrinsic carriers are far fewer. Resistance then depends only on mobility, and mobility falls as the crystal vibrates more strongly with temperature, so resistance rises. Pure silicon has almost no carriers to begin with, and heat creates them exponentially, which overwhelms the falling mobility, so its resistance drops. A doped sensor behaves the same way once it's hot enough for intrinsic carriers to outnumber the dopants, which is where its resistance peaks.
:::
:::

::: practice

::: check
given: T = 300 | 350 | 400 | 450 | 500 | 550
answer: 2.4e19*(T/300)^1.5*exp(-1.12/(2*8.617e-5*T))
unit: cm^-3
tolerance: 1%

## What is silicon's intrinsic density at {T} K, in this project's model?

::: misses
- [any] $2.4 \times 10^{19}(T/300)^{3/2}e^{-E_g/2kT}$.
:::
:::

::: check
given: T = 250 | 300 | 350 | 400 | 450 | 500
answer: 1350*(T/300)^-2.4
unit: cm²/(V·s)
tolerance: 0.5%

## What is the electron mobility at {T} K in this model?

::: misses
- [any] $1350(T/300)^{-2.4}$.
:::
:::

::: check
given: TC = 0.6 | 0.8; dR = 1 | 5
answer: dR/TC
unit: K
tolerance: 0.5%

## A sensor's coefficient is {TC}% per kelvin. Its reading changes by {dR}%. About how much did the temperature change?

::: misses
- [any] Divide the change by the coefficient.
:::
:::
:::
