Friday, May 13, 2022

IoT Based Weather Station using Blynk Apps and Nodemcu | Temperature & Humidity | ESP8266

Today, I will share how to make a simple system that monitors the temperature and humidity from Blynk apps. The DHT11 temperature and humidity sensor are used in this project.


Related Post:

References:

Steps: 

  1. Prepare 3 jumpers, DHT11 module, breadboard, and Nodemcu module.


  2. Connect DHT11 GND, DATA, and VCC pins to the GROUND, D2 (GPIO 4), and 3V/5V of the Nodemcu.


  3. Connect micro USB to Nodemcu module.


  4. Go to the blynk.io website and log in. If you do not have an account yet, click "Create new account".




  5. Create New Template > Type NAME "Weather Station" > Select HARDWARE "ESP8266" > Select CONNECTION TYPE "WiFi" > Done.




  6. Go to Datastreams Tab> New Datastream > Virtual Pin > Type NAME "TEMP" > Select PIN "V0" > Select DATA TYPE "Double" > Select UNITS Celcius > Set MIN 0 > Set MAX 100 > Select DECIMALS "#" > Set DEFAULT VALUE 0.



  7. Click New Datastream again > Virtual Pin > Type NAME "HUMID" > Select PIN "V1" > Select DATA TYPE "Double" > Select UNITS Percentage, % > Set MIN 0 > Set MAX 100 > Select DECIMALS "#" > Set DEFAULT VALUE 0.


  8. Go to Web Dashboard Tab > Select Gauge widget to the canvas. Repeat for another gauge widget.



  9. Go to Gauge widget setting > Type TITLE "TEMPERATURE" > Select Datasteam TEMP (V0) > Save.


  10. Repeat again for another gauge widget > Type TITLE "HUMIDITY > Select Datasteam HUMID (V1) > Save. Then, Save the Web Dashboard.


  11. Open Arduino IDE and go to Sketch > Include Library > Manage Libraries... > Type "dht11" > Enter. Select and install the latest version of the DHT sensor library by Adafruit. You can install the library of DHT11 and Unified Sensor manually.


  12. Back to Blynk.io website > Select Info Tab > Copy FIRMWARE CONFIGURATION.


  13. Open the Weather Station coding project and paste the FIRMWARE CONFIGURATION. Click HERE to download the project code.


  14. Verify and upload the project.


  15. Download and Log In Blynk IoT app on Google Playstore.


  16. Click Add new device > Click Connect to Wi-Fi > Ready > Connect Blynk Weather Station-57CBF.




  17. Click Grant permission > Select "Only this time" > Select your WiFi network.




  18. Type your WiFi password and click Continue.


  19. Click Continue > Click Continue > Click Done >Click  OK,great! > Click Finish and exit.






  20. Click Setup Dashboard > Click ≡ > Select DISPLAYS Gauge.




  21. Add another Gauge Widget.


  22. Click Gauge Widget > Type Title " TEMPERATURE" > Select CENTER TITLE ALIGNMENT > Select Datastream "TEMP" > Click back arrow "←".


  23. Click Gauge 2 Widget > Type Title " HUMIDITY" > Select CENTER TITLE ALIGNMENT > Select Datastream "HUMID" > Click back arrow "←". Lastly, exit the canvas.



  24. Test from Phone apps.


  25. To test from the website, go to the 🔍 icon at Tab > Click My devices > Click My Organization > Click Weather Station 57CBF.



The tools/components I used in this post are listed below:

Shopee:
Lazada:
Aliexpress:

Video:


If you have any suggestions, please write in the comment section. Thank you for your time 👷.

No comments:

Post a Comment