Αναρτήσεις

Προβολή αναρτήσεων από Μάιος, 2025

dust sensor and esp32

Εικόνα
 https://github.com/renebohne/esp32-weather-station/blob/master/README.md Μετρήσεις σε μια μέρα όπου η χωματερή Καλύμνου καπνίζει:

DHT22 με το esp32: διαβάζοντας θερμοκρασία, υγρασία και πίεση

Εικόνα
esp32  https://stevezafeiriou.com/esp32-dht22-sensor-setup/ Ο κώδικας για να διαβάσει τον αισθητήρα: // Example testing sketch for various DHT humidity/temperature sensors written by ladyada // REQUIRES the following Arduino libraries: // - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library // - Adafruit Unified Sensor Lib: https://github.com/adafruit/Adafruit_Sensor # include "DHT.h" # define DHTPIN 4 // Digital pin connected to the DHT sensor // Feather HUZZAH ESP8266 note: use pins 3, 4, 5, 12, 13 or 14 -- // Pin 15 can work but DHT must be disconnected during program upload. // Uncomment whatever type you're using! //#define DHTTYPE DHT11 // DHT 11 # define DHTTYPE DHT22 // DHT 22 (AM2302), AM2321 //#define DHTTYPE DHT21 // DHT 21 (AM2301) // Connect pin 1 (on the left) of the sensor to +5V // NOTE: If using a board with 3.3V logic like an Arduino Due connect pin 1 // to 3.3V instead of 5V! // Connect pin 2 of the se...