I wan't to see temperature and humidity from all of my rooms.
I took a look though other users and theire project and decide to use "ThingsBoard" and ESP 8266 nodes. Those nodes are using the deep sleep functionality to save energy. All nodes are running an a small powerbank. DHT22 is used as sensor. I build one seperate sensore with air pressure sensor.
Next step will be 3D printethousings to wall mount them.
Technical Implementation: Sensors and Cloud Sync
This project reveals the hidden layers of simple air-to-network interaction:
- Identification layer: The DHT22 sensor acts as the environmental eye, measuring each room's temperature (°C) and relative humidity (%) as digital bits.
- Wireless Interface layer: The ESP8266 NodeMCU acts as the high-resolution bridge, connecting the sensor data to your local 2.4GHz WiFi network.
- Conversion layer: The ESP8266 uses its digital I/O pins and the DHT library to decode the sensor's pulses and coordinate networking tasks.
- IoT Platform Strategy layer: Using the ThingsBoard API, the ESP8266 uploads new data rhythmically to a specialized web dashboard.
- Processing Logic layer: The ESP8266 code follows a "sequential decoding" strategy: it only sends data if the WiFi is connected and the sensor buffer is ready. The use of deep sleep ensures this process is energy-efficient.
Hardware Infrastructure
- ESP8266 NodeMCU: The core WiFi-enabled micro-controller that manages cloud data logs and coordinates the sensor tasks.
- DHT22 Sensor: Providing contactless and reliable humidity and climate monitoring for each room.
- WiFi Connectivity: Providing the high-speed and reliable data link for every environmental update.
- Breadboard: A convenient way to prototype the first IoT circuit and connect all components without soldering.
- Micro-USB Cable / Powerbank: Used to program the ESP8266 and provides the primary power for the IoT controller. In this setup, small powerbanks are used for long-term, portable operation.
Steps to rebuild:
Install ThingsBoard on Raspberry Pi: https://thingsboard.io/docs/user-guide/install/rpi/
Create a wifi for PI and ESPs (or use existing one)
Solder ESP like wire diagram (or use breadboard) Don't forget the reset bridge from "D0" to "RST" !
Upload Arduino Code to ESP 8266
Climate Monitoring and Interaction Step-by-Step
The ESP8266 weather monitoring process is designed to be very user-friendly:
- Initialize Hardware: Correctly seat the ESP8266 and DHT22 on the breadboard following the provided IoT wiring diagram.
- Setup Output Sync: In the
setup()function, define your WiFi credentials and initialize the DHT sensor and the Serial port. - Internal Dialogue Loop: The ESP8266 constantly performs high-performance air checks and updates the cloud dashboard statistics in real-time.
- Visual Feedback Integration: Open the ThingsBoard dashboard and watch as your values automatically become a rhythmic visual signal, pulsing and following your climate settings.
Future Expansion
- OLED Identity Dashboard Integration: Add a small OLED display to the device to show the "IP Address," "Room Temp (°C)" and "Humidity (%)" locally.
- Multi-sensor Climate Sync Synchronization: Connect a BMP180 (pressure) sensor to build a truly autonomous weather station with high-precision data.
- Cloud Interface Registration Support Synchronization: Further customize the specialized ThingsBoard web dashboard to precisely track and log climate history from a smartphone anywhere in the world.
- Advanced Velocity Profile Customization Support: The deep sleep functionality is already implemented to preserve battery power, which is perfect for devices running from a Li-ion battery or powerbank.
Links:
- ThingsBoard: https://thingsboard.io
- Raspberry Pi as Server tutorial: https://thingsboard.io/docs/user-guide/install/rpi/
- ThingsBoard ESP tutorial : https://thingsboard.io/docs/samples/esp8266/gpio/
Temperature & Humidity via Wifi & ESP is a perfect project for any electronics enthusiast looking for a more interactive and engaging IoT-weather tool!