esphome-docs/components/sensor/max6675.rst

64 lines
2.1 KiB
ReStructuredText
Raw Normal View History

2018-06-01 18:10:00 +02:00
MAX6675 K-Type Thermocouple Temperature Sensor
==============================================
2018-11-14 22:12:27 +01:00
.. seo::
:description: Instructions for setting up MAX6675 Thermocouple temperature sensors.
:image: max6675.jpg
2020-05-10 21:27:59 +02:00
The ``max6675`` temperature sensor allows you to use your MAX6675 thermocouple
temperature sensor (`datasheet <https://datasheets.maximintegrated.com/en/ds/MAX6675.pdf>`__, `SainSmart`_) with ESPHome
2018-06-01 18:10:00 +02:00
.. figure:: images/max6675-full.jpg
2018-06-01 18:10:00 +02:00
:align: center
:width: 60.0%
MAX6675 K-Type Thermocouple Temperature Sensor.
2018-06-01 18:10:00 +02:00
2020-05-10 21:27:59 +02:00
.. _SainSmart: https://www.sainsmart.com/products/max6675-module-k-type-thermocouple-thermocouple-sensor-temperature-0-1024-for-arduino
2018-06-01 18:10:00 +02:00
2021-11-22 16:14:27 +01:00
As the communication with the MAX6675 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-06-01 18:10:00 +02: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.
2018-06-01 18:10:00 +02:00
.. figure:: images/temperature.png
:align: center
:width: 80.0%
.. code-block:: yaml
2018-06-01 18:10:00 +02:00
# Example configuration entry
spi:
miso_pin: D0
clk_pin: D1
2018-06-01 18:10:00 +02:00
sensor:
- platform: max6675
name: "Living Room Temperature"
cs_pin: D2
2019-01-06 18:56:14 +01:00
update_interval: 60s
2018-06-01 18:10:00 +02:00
Configuration variables:
2018-08-24 22:44:01 +02:00
------------------------
2018-06-01 18:10:00 +02:00
- **name** (**Required**, string): The name for the temperature sensor.
- **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``.
- **spi_id** (*Optional*, :ref:`config-id`): Manually specify the ID of the :ref:`SPI Component <spi>` if you want
to use multiple SPI buses.
- **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-06-01 18:10:00 +02:00
See Also
2018-08-24 22:44:01 +02:00
--------
2018-06-01 18:10:00 +02:00
- :ref:`sensor-filters`
- :doc:`dht`
- :doc:`adc`
- :doc:`sht3xd`
2018-08-24 22:44:01 +02:00
- `MAX6675 Library <https://github.com/adafruit/MAX6675-library>`__ by `Adafruit <https://www.adafruit.com/>`__
2019-05-12 22:44:59 +02:00
- :apiref:`max6675/max6675.h`
- :ghedit:`Edit`