Welcome! This repository contains a collection of ESP32-based projects for capturing, displaying, logging, and serving environmental data such as temperature, humidity, and noise levels. All projects are modular, well-documented, and use widely available sensors and displays, making them ideal for learning, prototyping, or real-world IoT applications.
- Real-time measurement of temperature, humidity, and noise
- OLED display visualization
- Data logging in JSON format
- Web server and API for remote data access
- Visual feedback with LEDs (in some projects)
- Modular and easy-to-understand code
- Sensors: INMP441 (noise)
- Display: SSD1306 OLED
- Features: Real-time noise level measurement and display
- Example Output:
Ruido: 42%
- Sensors: SHT31 (temperature/humidity), INMP441 (noise)
- Features: Logs data in JSON, provides a PHP API, LED status
- Example Output (log.json):
[ { "temperature": 23.45, "humidity": 45.67, "noise": 56.23, "timestamp": "17-09-25 09:20:15" } ]
- Sensors: SHT31, INMP441
- Display: SSD1306 OLED
- Features: Alternates display of temperature/humidity and noise (dB)
- Example Output:
Temp: 23.4Β°C Umid: 45.7 % --- Ruido: 56.2 dB
- Sensors: SHT31
- Display: SSD1306 OLED
- Features: Displays temperature and humidity
- Example Output:
Temp: 23.4Β°C Umid: 45.7 %
Sensor/Display | ESP32 Pinout Example |
---|---|
SHT31 SDA | GPIO 21 |
SHT31 SCL | GPIO 22 |
INMP441 WS | GPIO 15 |
INMP441 SCK | GPIO 14 |
INMP441 SD | GPIO 32 |
OLED SDA | GPIO 21 |
OLED SCL | GPIO 22 |
Note: Always confirm the pinout for your ESP32 board and sensor/display versions.
- Install the required libraries in the Arduino IDE:
- Adafruit SHT31
- Adafruit SSD1306
- Adafruit GFX
- Wire
- WiFi, SPIFFS, WebServer (for logging/web projects)
- Connect the sensors and display as shown above.
- Open the desired
.ino
file in Arduino IDE, edit WiFi credentials if needed. - Upload to your ESP32.
- Use the Serial Monitor and/or OLED display to view live data. For web/API projects, access the ESP32 IP or PHP endpoint.
Feel free to open issues and pull requests to improve this project!
This project is licensed under the MIT License.
Developed by Giordano Berwig