pflanzensensor-workshop/README.md
2022-12-30 11:19:28 +01:00

2.9 KiB

ESP Pflanzensensor Workshop

Die Projektdokumentation zum Pflanzensensor Workshop.

https://curious.bio/2022/11/remote-chaos-experience/

Komponenten

Mikrocontroller

Luftfeuchtigkeits- und Temperatursensor

Bodenfeuchtesensor

Systemanforderungen

Schaltplan

Beadboard

Schaltplan

Arduino IDE

Download hier: https://www.arduino.cc/

Um mit den ESP-basierten Boards entwickeln zu können, müssen diese hinzugefügt werden (Einstellungen -> Board Manager URLs): "http://arduino.esp8266.com/stable/package_esp8266com_index.json,https://dl.espressif.com/dl/package_esp32_index.json"

Einstellungen

Um den DHT11 auslesen, benötigen wir zusätzlich noch eine Library (Tools -> Manage Libraries): DHT sensor libarary for ESPx:

Library Manager

ESPHome

CLI

esphome --help
usage: esphome [-h] [-v] [-q] [-s key value] command ...

positional arguments:
  command               Command to run:
    config              Validate the configuration and spit it out.
    compile             Read the configuration and compile a program.
    upload              Validate the configuration and upload the latest binary.
    logs                Validate the configuration and show all logs.
    run                 Validate the configuration, create a binary, upload it, and start logs.
    clean-mqtt          Helper to clear retained messages from an MQTT topic.
    wizard              A helpful setup wizard that will guide you through setting up ESPHome.
    mqtt-fingerprint    Get the SSL fingerprint from a MQTT broker.
    version             Print the ESPHome version and exit.
    clean               Delete all temporary build files.
    dashboard           Create a simple web server for a dashboard.
    rename              Rename a device in YAML, compile the binary and upload it.

options:
  -h, --help            show this help message and exit
  -v, --verbose         Enable verbose ESPHome logs.
  -q, --quiet           Disable all ESPHome logs.
  -s key value, --substitution key value
                        Add a substitution
esphome compile esphome.yaml
esphome upload esphome.yaml