Project tutorial
Connected Weather Station with ESP32

Connected Weather Station with ESP32 © CC BY-NC-SA

In this tutorial you will learn how to set up a weather station based on ESP32, and how to monitor its readings remotely, via the Blynk app.

  • 749 views
  • 0 comments
  • 3 respects

Components and supplies

ESP32 board
×1
20120702130508859
DHT11 Temperature & Humidity Sensor (4 pins)
×1
Light sensor
×1
10 Kohm resistor
×1
CJMCU CCS811 sensor
×1
11026 02
Jumper wires (generic)
×1
12002 04
Breadboard (generic)
×2

Apps and online services

About this project

In this tutorial you will learn how to set up a weather station based on ESP32, and how to monitor its readings remotely, via the Blynk app as well as via a website.

Supplies:

1x ESP32 board + usb power cable

1x DHT11 sensor

1x light sensor 1x 10 Kohm resistor

1x CJMCU CCS811 sensor

several jumper wires

a number of breadboards or a PCB (if you decide to do some soldering) female headers (if you decide to do the soldering)

Step 1: Setting Up the Weather Station

Wiring up the components

Connect the sensors as follows:

Light sensor

One end to 3V the other end to the 10kohm resistor which in turn is connected to GND. The same end of the LDR is also connected to pin D34 on the ESP32

CJMCU CCS811

3V →3V on the ESP32 board

GND→ GND

SDA→D21 pin on ESP32

SCL→D22 pin on ESP32

WAKE→GND

DHT11

GND→GND on ESP32

VCC→3V on ESP32

OUT→D34 on ESP32

Step 2: Program the ESP32 Board

Launch Arduino IDE.

Select your ESP32 board from the Tools menu.

Make sure you’ve also selected the correct Port.

Upload this code on to the board.If you open the serial monitor (set the baud rate to 9600), you should be able to view the values recorded by the different sensors.

Step 3: Monitor the Weather Station Remotely Via Blynk App

Blynk app enables us to monitor the values recorded by the weather station remotely, directly on our smartphone, regardless our distance from the weather station.

All we need is the blynk app and an internet connection. In this project you’ll learn how to monitor the values recorded by the LDR sensor and the DHT11 sensor only.

Create a new project in the Blynk app

After you’ve download the app and you’ve successfully logged into your account, start by creating a new project.

Choose your hardware

Select the hardware model you will use. If you are following this tutorial you ll probably be using an ESP32 board.

Auth Token

Auth Token is a unique identifier which is needed to connect your hardware to your smartphone. Every new project you create will have its own Auth Token. You’ll get Auth Token automatically on your email after project creation. You can also copy it manually. Click on devices section and selected required device, And you’ll see the token

Set up the Blynk app

You will need to create a project on blynk which is tailored for the purpose of monitoring the parameters recorded by the weather station. Grab 3 value display widgets.

Configure them one by one. The first will receive V6 as input, the second V5 and the third V0. You ll notice that they re all set to push mode.

Program the ESP32 board

Launch arduino IDE and open this program. Select the board you re using from the Tools menu, as well as the correct Port. Upload the code. If upload is successful, you should be able to see a message from Blynk on the serial monitor.

This tutorial has been produced as part of the DEEDU project, co-financed by the Erasmus + Programme of the European commission. Project n°: 2018-1-FR02-KA205-014144.

The content of this publication does not reflect the official opinion of the European Union. Responsibility for the information and views expressed therein lies entirely with the authors. For more information, email us at info@digijeunes.com.

Comments

Author

Educentrum
EDUcentrum
  • 0 projects
  • 0 followers

Additional contributors

  • This tutorial was created as part of the erasmus+ project deedu (digital environmental education) by organization digijeunes by DEEDU project

Published on

February 13, 2020

Members who respect this project

Avatar fofgrbxpczAulaHojoco
See similar projects
you might like

Similar projects you might like

Personal Weather Station (Arduino+ ESP8266 + Thingspeak)

Project tutorial by Jayraj Desai

  • 71,443 views
  • 34 comments
  • 141 respects

Mini Weather Station Using Arduino Nano

Project tutorial by dnbakshi07

  • 1,325 views
  • 0 comments
  • 11 respects

Weather Station for Drones

Project tutorial by Giuseppe Caccavale

  • 15,547 views
  • 4 comments
  • 48 respects

The Zeus Electronic Weather Station (ZeWS)

Project in progress by moisi

  • 4,077 views
  • 0 comments
  • 16 respects

AWS - Arduino Weather Station

Project tutorial by GilettaStefano

  • 26,603 views
  • 14 comments
  • 69 respects

Rube Goldberg Weather Station with Internet Data Storage

Project in progress by randtekk

  • 10,563 views
  • 7 comments
  • 48 respects
Add projectSign up / Login