Die Projektdokumentation zum Pflanzensensor Workshop. https://curious.bio/2022/11/remote-chaos-experience/
Go to file
2022-12-30 11:29:32 +01:00
first-webserver more documentation 2022-12-30 11:18:10 +01:00
serial-out changed code for D1 2022-12-29 19:20:23 +01:00
.DS_Store more documentation 2022-12-30 11:18:10 +01:00
.gitignore removed unused style sheet 2022-12-21 09:18:40 +01:00
breadboard.png changed colors 2022-12-29 18:20:36 +01:00
DE_SolderComic.pdf added comic 2022-12-29 16:00:24 +01:00
esphome.yaml added fritzing and esphome files 2022-12-29 14:40:37 +01:00
flash.png flash 2022-12-30 11:29:32 +01:00
librarymanager.png more documentation 2022-12-30 11:18:10 +01:00
LICENSE initial commit 2022-12-20 13:45:03 +01:00
preferences.png more documentation 2022-12-30 11:18:10 +01:00
README.md flash 2022-12-30 11:29:32 +01:00
schaltplan.fzz changed colors 2022-12-29 18:19:51 +01:00
schaltplan.png added more schaltplan 2022-12-29 18:17:14 +01:00

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 library for ESPx by beegee_tokyo":

Library Manager

Zum Flashen (Upload) muss das richtige Board "LOLIN(WEMOS) D1 mino (clone)" und der richtige Port (ein serieller Port, an dem das Board über USB angeschlossen ist) ausgewählt sein.

Flash

Hier hilft die Doku sicherlich weiter: https://support.arduino.cc/hc/en-us/articles/4733418441116-Upload-a-sketch-in-Arduino-IDE

Beispiele

Es gibt zwei Beispiele.

  • serial-out gibt einfach Messwerte über den Serial Monitor aus.
  • first-webserver präsentiert die gleichen Messerte auf einer Website

Damit der Webserver im eigenen Netzwerk funktioniert, ist es am einfachsten, diese Zeile zu löschen:

#include "credentials.h" // put your WIFI credentials in here

Statt dessen kann man dann die SSID und das Passwort des eigenen WLANS in diesen Zeilen eintragen:

// Replace with your network credentials
const char* ssid = secrect_ssid;
const char* password = secret_password;

Zum Beispiel so:

// Replace with your network credentials
const char* ssid = "MeinKabelWifi";
const char* password = "letMeIn123";

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