# Current Transformer (`currentTransformer`)

> A one-turn primary through a core with a secondary winding and its burden, giving a voltage proportional to an AC current.

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

[Component reference](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/) · [繁體中文](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/ic/currentTransformer/)

**Group:** ICs · **Kind:** `{"definition":"currentTransformer","kind":"subsystem"}`

## When to use it

Use it to measure the switch or transformer current of a converter with isolation and no loss, such as in peak current-mode control. It cannot pass DC; use Closed-Loop Hall Transducer or Hall-Effect Current Sensor for that.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `IPP` | electrical | Primary in, dotted end, positive reading |
| `IPN` | electrical | Primary out |
| `OUT` | electrical | Secondary dotted end, across the burden |
| `GND` | electrical | Secondary other end, reference of the output |

## Common parameters

- `turns`: Secondary turns per primary turn (1 : turns) (Default: 100)
- `ls`: Secondary inductance: the magnetising inductance seen from the secondary (Default: 0.02)
- `vt`: Volt-time product of the secondary: the flux linkage where the core saturates (Default: 0.000298)
- `rBurden`: Burden (terminating) resistor across OUT and GND (Default: 2.9)

## Parameters

| Key | Unit | Default | Typical range | Description | Datasheet source |
|---|---|---|---|---|---|
| `turns` | — | 100 | 1 – 10k | Secondary turns per primary turn (1 : turns) | Turns (N) pri : sec 1 : 100, p.1 |
| `ls` | H | 0.02 | 1u – 10 H | Secondary inductance: the magnetising inductance seen from the secondary | Inductance min 20 mH (note 1: secondary, 15.75 kHz, 1 Vrms), p.1 |
| `rSec` | Ω | 1.4 | 0 – 1k Ω | Secondary winding resistance | DCR max sec 1.4 Ohm, p.1 |
| `rPri` | Ω | 0.001 | 0 – 1 Ω | Primary resistance | DCR max pri 0.001 Ohm, p.1 |
| `vt` | V·s | 0.000298 | 100n – 1 V·s | Volt-time product of the secondary: the flux linkage where the core saturates | Volt-time product 298 V-us (note 2: secondary), p.1 |
| `rBurden` | Ω | 2.9 | 1m – 100k Ω | Burden (terminating) resistor across OUT and GND | Terminating resistance RT 2.9 Ohm (note 3: 1 V at 35 A), p.1 |
| `lsatFrac` | — | 0.01 | 100u – 1 | Magnetising inductance once saturated, as a fraction of the unsaturated one | assumption: the data sheet gives no saturated inductance |

_Parameter descriptions are in English in both languages._

## Model

A transformer with turns ratio 1 : turns, primary resistance rPri and secondary resistance rSec. Its magnetising inductance is the secondary inductance ls, referred to the one-turn primary as ls / turns². The core saturates when the secondary flux linkage reaches the volt-time product vt, a magnetising current of turns * vt / ls on the primary side, and the inductance then falls to lsatFrac of its value. The burden rBurden sits inside, across OUT and GND, so the output is rBurden / turns times the primary current, less the magnetising current. The low-frequency corner is (rBurden + rSec) / (2 pi ls).

## Common mistakes

- A DC part of the primary current, or a unipolar pulse train without a reset, builds up flux until the core saturates, and the output then collapses. Give the core a reset (a diode and a reset resistor) or keep the current AC.
- A larger burden gives more volts per ampere but saturates the core at a lower current or a shorter pulse, because the secondary voltage is higher. Check that the secondary volt-seconds of one pulse stay below vt.

Problems rules: `param.out_of_range`

## Datasheet and sources

turns is the turns ratio (1 : 100 means 100), ls is the secondary inductance (the minimum in the table), rSec and rPri are the winding DC resistances, vt is the volt-time product (298 V-us is 298u) and rBurden is the terminating resistor. lsatFrac is not in the data sheet. The defaults are the Coilcraft CS4100V-01L, Document 132 revised 05/05/21. Pass them to ic.fromSpec with the currentTransformer template.

## Example

Open the example with the command `file.openExample` and the name `demo:currentTransformer`.

---
Generated by `cargo xtask reference` from the usage texts and parameter specs. Do not edit by hand.
