mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-25 17:17:54 +01:00
ESP32 Hall Sensor
This commit is contained in:
parent
3f0e58aa30
commit
59e58c2308
49
esphomeyaml/components/sensor/esp32_hall.rst
Normal file
49
esphomeyaml/components/sensor/esp32_hall.rst
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
ESP32 Hall Sensor
|
||||||
|
=================
|
||||||
|
|
||||||
|
The ``esp32_hall`` sensor platform allows you to use the integrated
|
||||||
|
`hall effect sensor <https://en.wikipedia.org/wiki/Hall_effect_sensor>`__ of the
|
||||||
|
ESP32 chip to measure the magnitude and direction of magnetic field around the
|
||||||
|
chip (with quite poor accuracy).
|
||||||
|
|
||||||
|
Please make sure that nothing is connected to pins ``GPIO36`` and ``GPIO39`` if this
|
||||||
|
component is enabled, as those pins are used for the internal low-noise amplifier used
|
||||||
|
by the hall sensor.
|
||||||
|
|
||||||
|
.. figure:: images/esp32_hall-ui.png
|
||||||
|
:align: center
|
||||||
|
:width: 80.0%
|
||||||
|
|
||||||
|
.. code:: yaml
|
||||||
|
|
||||||
|
# Example configuration entry
|
||||||
|
sensor:
|
||||||
|
- platform: esp32_hall
|
||||||
|
name: "ESP32 Hall Sensor"
|
||||||
|
update_interval: 15s
|
||||||
|
|
||||||
|
Configuration variables:
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
- **name** (**Required**, string): The name of the hall effect sensor.
|
||||||
|
- **update_interval** (*Optional*, :ref:`config-time`): The interval
|
||||||
|
to check the sensor. Defaults to ``15s``. See :ref:`sensor-default_filter`.
|
||||||
|
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
|
||||||
|
- All other options from :ref:`Sensor <config-sensor>` and :ref:`MQTT Component <config-mqtt-component>`.
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
|
||||||
|
The values this sensor outputs were only calibrated with a few magnets and no real "truth" sensor.
|
||||||
|
Therefore the values could very well be off by orders of magnitude. Besides, this sensor should
|
||||||
|
only be used to detect sudden high changes in the magnetic field.
|
||||||
|
|
||||||
|
If you have a real magnetic field calibration setup and want to contribute your values to esphomelib,
|
||||||
|
please feel free to do so 😺.
|
||||||
|
|
||||||
|
See Also
|
||||||
|
^^^^^^^^
|
||||||
|
|
||||||
|
- :ref:`sensor-filters`
|
||||||
|
- :doc:`adc`
|
||||||
|
- :doc:`/esphomeyaml/devices/esp32`
|
||||||
|
- :doc:`API Reference </api/sensor/adc-sensor>`
|
BIN
esphomeyaml/components/sensor/images/esp32_hall-ui.png
Normal file
BIN
esphomeyaml/components/sensor/images/esp32_hall-ui.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
@ -288,3 +288,4 @@ See Also
|
|||||||
rotary_encoder.rst
|
rotary_encoder.rst
|
||||||
template.rst
|
template.rst
|
||||||
max6675.rst
|
max6675.rst
|
||||||
|
esp32_hall.rst
|
||||||
|
1
esphomeyaml/images/magnet.svg
Normal file
1
esphomeyaml/images/magnet.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M3,7V13A9,9 0 0,0 12,22A9,9 0 0,0 21,13V7H17V13A5,5 0 0,1 12,18A5,5 0 0,1 7,13V7M17,5H21V2H17M3,5H7V2H3" /></svg>
|
After Width: | Height: | Size: 398 B |
@ -182,21 +182,21 @@ Sensor Components
|
|||||||
-------------------------------------------------- -------------------------------------------------- --------------------------------------------------
|
-------------------------------------------------- -------------------------------------------------- --------------------------------------------------
|
||||||
`BMP085`_ `Dallas`_ `DHT`_
|
`BMP085`_ `Dallas`_ `DHT`_
|
||||||
-------------------------------------------------- -------------------------------------------------- --------------------------------------------------
|
-------------------------------------------------- -------------------------------------------------- --------------------------------------------------
|
||||||
|DHT12|_ |HDC1080|_ |HTU21D|_
|
|DHT12|_ |ESP32 Hall Sensor|_ |HDC1080|_
|
||||||
-------------------------------------------------- -------------------------------------------------- --------------------------------------------------
|
-------------------------------------------------- -------------------------------------------------- --------------------------------------------------
|
||||||
`DHT12`_ `HDC1080`_ `HTU21D`_
|
`DHT12`_ `ESP32 Hall Sensor`_ `HDC1080`_
|
||||||
-------------------------------------------------- -------------------------------------------------- --------------------------------------------------
|
-------------------------------------------------- -------------------------------------------------- --------------------------------------------------
|
||||||
|MAX6675|_ |MPU6050|_ |Pulse Counter|_
|
|HTU21D|_ |MAX6675|_ |MPU6050|_
|
||||||
-------------------------------------------------- -------------------------------------------------- --------------------------------------------------
|
-------------------------------------------------- -------------------------------------------------- --------------------------------------------------
|
||||||
`MAX6675`_ `MPU6050`_ `Pulse Counter`_
|
`HTU21D`_ `MAX6675`_ `MPU6050`_
|
||||||
-------------------------------------------------- -------------------------------------------------- --------------------------------------------------
|
-------------------------------------------------- -------------------------------------------------- --------------------------------------------------
|
||||||
|Rotary Encoder|_ |SHT3X-D|_ |Template Sensor|_
|
|Pulse Counter|_ |Rotary Encoder|_ |SHT3X-D|_
|
||||||
-------------------------------------------------- -------------------------------------------------- --------------------------------------------------
|
-------------------------------------------------- -------------------------------------------------- --------------------------------------------------
|
||||||
`Rotary Encoder`_ `SHT3X-D`_ `Template Sensor`_
|
`Pulse Counter`_ `Rotary Encoder`_ `SHT3X-D`_
|
||||||
-------------------------------------------------- -------------------------------------------------- --------------------------------------------------
|
-------------------------------------------------- -------------------------------------------------- --------------------------------------------------
|
||||||
|TSL2561|_ |Ultrasonic Sensor|_
|
|Template Sensor|_ |TSL2561|_ |Ultrasonic Sensor|_
|
||||||
-------------------------------------------------- -------------------------------------------------- --------------------------------------------------
|
-------------------------------------------------- -------------------------------------------------- --------------------------------------------------
|
||||||
`TSL2561`_ `Ultrasonic Sensor`_
|
`Template Sensor`_ `TSL2561`_ `Ultrasonic Sensor`_
|
||||||
================================================== ================================================== ==================================================
|
================================================== ================================================== ==================================================
|
||||||
|
|
||||||
.. |Sensor Core| image:: /esphomeyaml/images/folder-open.svg
|
.. |Sensor Core| image:: /esphomeyaml/images/folder-open.svg
|
||||||
@ -229,6 +229,9 @@ Sensor Components
|
|||||||
.. |DHT12| image:: /esphomeyaml/images/dht12.jpg
|
.. |DHT12| image:: /esphomeyaml/images/dht12.jpg
|
||||||
:class: component-image
|
:class: component-image
|
||||||
.. _DHT12: /esphomeyaml/components/sensor/dht12.html
|
.. _DHT12: /esphomeyaml/components/sensor/dht12.html
|
||||||
|
.. |ESP32 Hall Sensor| image:: /esphomeyaml/images/magnet.svg
|
||||||
|
:class: component-image
|
||||||
|
.. _ESP32 Hall Sensor: /esphomeyaml/components/sensor/esp32_hall.html
|
||||||
.. |HDC1080| image:: /esphomeyaml/images/HDC1080.jpg
|
.. |HDC1080| image:: /esphomeyaml/images/HDC1080.jpg
|
||||||
:class: component-image
|
:class: component-image
|
||||||
.. _HDC1080: /esphomeyaml/components/sensor/hdc1080.html
|
.. _HDC1080: /esphomeyaml/components/sensor/hdc1080.html
|
||||||
|
@ -8,6 +8,7 @@ BMP085, components/sensor/bmp085, bmp180.jpg
|
|||||||
Dallas, components/sensor/dallas, ds18b20.jpg
|
Dallas, components/sensor/dallas, ds18b20.jpg
|
||||||
DHT, components/sensor/dht, dht22.jpg
|
DHT, components/sensor/dht, dht22.jpg
|
||||||
DHT12, components/sensor/dht12, dht12.jpg
|
DHT12, components/sensor/dht12, dht12.jpg
|
||||||
|
ESP32 Hall Sensor, components/sensor/esp32_hall, magnet.svg
|
||||||
HDC1080, components/sensor/hdc1080, HDC1080.jpg
|
HDC1080, components/sensor/hdc1080, HDC1080.jpg
|
||||||
HTU21D, components/sensor/htu21d, htu21d.jpg
|
HTU21D, components/sensor/htu21d, htu21d.jpg
|
||||||
MAX6675, components/sensor/max6675, max6675.jpg
|
MAX6675, components/sensor/max6675, max6675.jpg
|
||||||
|
|
Loading…
Reference in New Issue
Block a user