2018-12-19 13:21:44 +01:00
MAX31855 K-Type Thermocouple Temperature Sensor
===============================================
.. seo ::
:description: Instructions for setting up MAX31855 Thermocouple temperature sensors.
:image: max31855.jpg
2020-05-10 21:27:59 +02:00
The `` max31855 `` temperature sensor allows you to use your MAX31855 thermocouple
2019-02-16 23:25:23 +01:00
temperature sensor (`datasheet <https://datasheets.maximintegrated.com/en/ds/MAX31855.pdf> `__ ) with ESPHome
2018-12-19 13:21:44 +01:00
2019-11-06 13:56:48 +01:00
As the communication with the MAX31855 is done using SPI, you need
2020-05-10 21:27:59 +02:00
to have an :ref: `SPI bus <spi>` in your configuration with the **miso_pin** set (MOSI is not required).
2018-12-19 13:21:44 +01:00
Connect `` GND `` to `` GND `` , `` VCC `` to `` 3.3V `` and the other three `` MISO `` (or `` SO `` for short),
`` CS `` and `` CLOCK `` (or `` CLK `` ) to free GPIO pins.
.. figure :: images/temperature.png
:align: center
:width: 80.0%
.. code :: yaml
# Example configuration entry
spi:
miso_pin: D0
clk_pin: D1
sensor:
- platform: max31855
name: "Living Room Temperature"
cs_pin: D2
2019-01-06 18:56:14 +01:00
update_interval: 60s
2018-12-19 13:21:44 +01:00
Configuration variables:
------------------------
- **name** (**Required** , string): The name for the temperature sensor.
2020-07-25 14:24:02 +02:00
- **cs_pin** (**Required** , :ref: `Pin Schema <config-pin_schema>` ): The Chip Select pin of the SPI interface.
2019-01-06 18:56:14 +01:00
- **update_interval** (*Optional* , :ref: `config-time` ): The interval to check the sensor. Defaults to `` 60s `` .
2019-11-06 13:56:48 +01:00
- **reference_temperature** (*Optional* , :ref: `Sensor <config-sensor>` ): Access the internal temperature sensor of the MAX31855. Requires a **name** and/or **id** .
- **spi_id** (*Optional* , :ref: `config-id` ): Manually specify the ID of the :ref: `SPI Component <spi>` if you want to use multiple SPI buses.
2018-12-19 13:21:44 +01:00
- **id** (*Optional* , :ref: `config-id` ): Manually specify the ID used for code generation.
2019-02-17 12:28:17 +01:00
- All other options from :ref: `Sensor <config-sensor>` .
2018-12-19 13:21:44 +01:00
See Also
--------
- :ref: `sensor-filters`
- :doc: `dallas`
- :doc: `dht`
- :doc: `adc`
- :doc: `max6675`
2019-11-06 13:56:48 +01:00
- :doc: `max31865`
2018-12-19 13:21:44 +01:00
- `MAX31855 Library <https://github.com/adafruit/Adafruit-MAX31855-library> `__ by `Adafruit <https://www.adafruit.com/> `__
2019-05-12 22:44:59 +02:00
- :apiref: `max31855/max31855.h`
2019-02-07 13:54:45 +01:00
- :ghedit: `Edit`