# Closed-Loop Hall Transducer (`closedLoopHall`)

> A compensated Hall current transducer whose secondary current is the primary current over the turns ratio, from DC.

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

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

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

## When to use it

Use it to measure DC and AC currents of tens of amperes with isolation, such as an inverter phase or a DC link, through a measuring resistor. Use Hall-Effect Current Sensor for a small open-loop part with a voltage output.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `IPP` | electrical | Primary conductor in, positive reading |
| `IPN` | electrical | Primary conductor out |
| `M` | electrical | Secondary current output, into the measuring resistor |
| `GND` | electrical | 0 V of the supply, return of the secondary current |

## Common parameters

- `ratio`: Secondary turns per primary turn: the output current is the primary current over this (Default: 1000)
- `bw`: Bandwidth at -1 dB (a single pole whose -3 dB corner is about twice this) (Default: 200000)
- `io`: Offset current at zero primary current (the data sheet gives +/-0.2 mA max) (Default: 0)
- `isMax`: Largest secondary current: the measuring range over ratio (Default: 0.07)

## Parameters

| Key | Unit | Default | Typical range | Description | Datasheet source |
|---|---|---|---|---|---|
| `ratio` | — | 1000 | 1 – 100k | Secondary turns per primary turn: the output current is the primary current over this | Turns ratio 1 : 1000, p.1 |
| `bw` | Hz | 200000 | 1k – 100meg Hz | Bandwidth at -1 dB (a single pole whose -3 dB corner is about twice this) | Frequency bandwidth DC to 200 kHz at -1 dB, p.1 |
| `io` | A | 0 | -10m – 10m A | Offset current at zero primary current (the data sheet gives +/-0.2 mA max) | Electrical offset current IOE +/-0.2 mA max at 25 °C, p.1 (set to 0 here) |
| `isMax` | A | 0.07 | 100u – 10 A | Largest secondary current: the measuring range over ratio | Primary measuring range +/-70 A, p.1 |

_Parameter descriptions are in English in both languages._

## Model

A current meter in series with the primary (no resistance) reads the current, divides it by ratio and adds the offset current io. A first-order low-pass whose -3 dB corner is bw / 0.509 puts the response 1 dB down at bw. The result is limited to plus or minus isMax and drives a current source that pushes it out of M, so V(M) = rM * (io + i / ratio) across your measuring resistor rM to GND. The supply, its voltage headroom for rM and the supply current are not modelled.

## Common mistakes

- M must have a measuring resistor to GND. Left open, the current source has nowhere to go and the circuit does not solve.
- The real part stays linear only while its supply can drive rM: 50 to 160 Ohm at plus or minus 15 V and 50 A. Here any rM is driven, so keep it in that range yourself.

Problems rules: `step.too_large`, `param.out_of_range`

## Datasheet and sources

ratio is the secondary turns per primary turn (1 : 1000 means 1000), bw is the frequency bandwidth at -1 dB, io is the electrical offset current (given as a maximum, so 0 is nominal) and isMax is the measuring range over ratio. The defaults are the LEM LA 55-P, data sheet N° 97.13.25.000.0 version 19. Pass them to ic.fromSpec with the closedLoopHall template.

## Example

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

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