Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion content/components/sensor/mcp3204.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,39 @@ sensor:
- platform: mcp3204 # Attached to pin 7 of the MCP3208.
id: supply_voltage
number: 7 # MCP3208 pin number

# Measures difference between CH0 (IN+) and CH1 (IN-)
- platform: mcp3204 # Attached to pins 0-1 of the MCP3208 (differential pair).
id: thermocouple_voltage
number: 0 # MCP32xx pin number
diff_mode: true # Enable differential mode
```

### Configuration variables

- **mcp3204_id** (**Required**, [ID](/guides/configuration-types#id)): The id of the parent MCP3204 component.
- **number** (**Required**, int): The pin number of the MCP3204
- **number** (**Required**, int): The pin to measure on the MCP3204/MCP3208
- **update_interval** (*Optional*, [Time](/guides/configuration-types#time)): The interval to check the sensor. Defaults to `60s`.
- **diff_mode** (*Optional*, boolean): Enable differential mode measurement. Defaults to `false`.
- All other options from [Sensor](/components/sensor).

## Operating Modes

The MCP3204/3208 supports two input configurations:

### Single-Ended Mode (default)

Each channel measures voltage independently relative to ground. The MCP3204 provides 4 channels, and MCP3208 provides 8 channels. This is the default operating mode when `diff_mode` is not specified or set to `false`.

### Differential Mode

When `diff_mode: true`, channel pairs measure the voltage difference between two inputs (IN+ and IN-). Specify the positive input channel number with the `number` parameter. The next sequential channel automatically becomes the negative input (IN-).

Available differential pairs:

- MCP3204: 2 pairs (CH0/CH1, CH2/CH3)
- MCP3208: 4 pairs (CH0/CH1, CH2/CH3, CH4/CH5, CH6/CH7)

## See Also

- [SPI Bus](/components/spi)
Expand Down