Skip to content
Open
Changes from 1 commit
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
23 changes: 23 additions & 0 deletions content/components/sensor/mcp3204.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,38 @@
- platform: mcp3204 # Attached to pin 7 of the MCP3208.
id: supply_voltage
number: 7 # MCP3208 pin number
# Measures difference between CH1 (IN+) and CH2 (IN-)
- platform: mcp3204 # Attached to pin 7 of the MCP3208.
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
- **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)

Check failure on line 94 in content/components/sensor/mcp3204.md

View workflow job for this annotation

GitHub Actions / Lint

Lists should be surrounded by blank lines [Context: "- MCP3204: 2 pairs (CH0/CH1, C..."]
- MCP3208: 4 pairs (CH0/CH1, CH2/CH3, CH4/CH5, CH6/CH7)

## See Also

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