# Torque Sensor (`torqueSensor`)

> Joins two shafts and reads the torque passing through.

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

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

**Group:** Mechanical · **Kind:** `{"element":"torqueSensor","kind":"mechanical"}`

## When to use it

Use it between a machine and its load to read the shaft torque. For the air-gap torque of the machine itself, use the result Te(M1).

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `a` | mechanical | Source side, usually the motor, torque flows to b |
| `b` | mechanical | Load side shaft terminal |
| `out` | signal | Torque from a to b, in N·m |

## Model

The sensor is a series branch with no impedance, so a and b turn at the same speed and form a rigid coupling. The output is the torque that flows from a to b, positive when the motor on a drives the load on b. It has no parameters, and the same torque is the result i(TS1). The shaft torque differs from Te(M1) by the torque that accelerates the machine inertia and overcomes its friction.

## Common mistakes

- Put the motor on a and the load on b, with different net names. Swapping the sides flips the sign, and putting both pins on one net shorts the sensor so it reads 0.
- The torque that accelerates the inertia on side a does not pass through the sensor. During acceleration the reading is below Te(M1), and the two agree only at constant speed with no friction.
- The coupling is rigid, so the sensor cannot show torsional resonance or backlash. An unconnected a or b is reported as a problem, and that side then has no load.

Problems rules: `pin.unconnected`

## Datasheet and sources

There are no parameters. A torque transducer datasheet gives only a range and accuracy, which this ideal sensor does not model, so place it where the real transducer sits in the shaft line.

## Example

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

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