esphome-docs/esphomeyaml/devices/nodemcu_esp32.rst

63 lines
2.1 KiB
ReStructuredText
Raw Normal View History

2018-06-01 18:10:00 +02:00
NodeMCU ESP32
=============
The NodeMCU ESP32 board (in some cases also known as ESP32-DevkitC)
is fully supported by esphomeyaml. Simply select ``ESP32`` when
the esphomeyaml wizard asks you for your platform and |nodemcu-32s|_ as the board type.
.. |nodemcu-32s| replace:: ``nodemcu-32s``
.. _nodemcu-32s: http://docs.platformio.org/en/latest/platforms/espressif32.html#nodemcu
.. code:: yaml
# Example configuration entry
esphomeyaml:
name: livingroom
platform: ESP32
board: nodemcu-32s
The ESP32 boards often use the internal GPIO pin numbering on the board, this means that
you don't have to worry about other kinds of pin numberings, yay!
.. figure:: images/nodemcu_esp32-full.jpg
:align: center
Pins on the NodeMCU ESP32 development board.
Note that in certain conditions you *can* use the pins marked as ``INTERNAL`` in above image.
- ``GPIO0`` is used to determine the boot mode on startup. It should therefore not be pulled LOW
on startup to avoid booting into flash mode. You can, however, still use this as an output pin.
- ``GPIO34``-``GPIO39`` can not be used as outputs (even though GPIO stands for "general purpose input
**output**"...)
- ``GPIO32``-``GPIO39``: These pins can be used with the :doc:`/esphomeyaml/components/sensor/adc` to measure
voltages.
- ``GPIO2``: This pin is connected to the blue LED on the board as seen in above picture. It also supports
the :doc:`touch pad binary sensor </esphomeyaml/components/binary_sensor/esp32_touch>` like some other
pins.
- ``5V`` is connected to the 5V rail from the USB bus and can be used to power the board. Note that
the UART chip is directly connected to this rail and you therefore **cannot** supply other voltages
into this pin.
.. code:: yaml
# Example configuration entry
esphomeyaml:
name: livingroom
platform: ESP32
board: nodemcu-32s
binary_sensor:
- platform: gpio
name: "Pin GPIO23"
pin: GPIO23
See Also
2018-08-24 22:44:01 +02:00
--------
2018-06-01 18:10:00 +02:00
- :doc:`esp32`
- :doc:`nodemcu_esp8266`
2018-06-04 08:17:22 +02:00
- `Edit this page on GitHub <https://github.com/OttoWinter/esphomedocs/blob/current/esphomeyaml/devices/nodemcu_esp32.rst>`__
2018-10-12 16:33:22 +02:00
.. disqus::