Project showcase
IoT Weather Station

IoT Weather Station © LGPL

Weather station that display temperature, humidity and pressure on your Android phone with Blynk IoT server.

  • 1,993 views
  • 0 comments
  • 5 respects

Components and supplies

Apps and online services

About this project

I wanted to make a weather station that can read the temparature, humidity and pressure remotely from anywhere in the world. It is my first IoT project. it shows the temperature, humidity and pressure and a graph of the temperature. I use the Blynk app for Android.


Code

weather station codeC/C++
/***************************************************************************
written by Rijk Meurs 16-05-2020
hardware: Arduino nana 33 iot, BME280 sensor
iot     : Blynk
 ***************************************************************************/
#define BLYNK_PRINT Serial
#include <Wire.h>
#include <SPI.h>
#include <WiFiNINA.h>
#include <BlynkSimpleWiFiNINA.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "ikZEcrON32ZTQoS4ZcTjq3pM7DTy8pzY";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "your ssid";
char pass[] = "your password";

Adafruit_BME280 bme; // I2C

float t;
float h;
float p;

BlynkTimer timer;

void sendSensor()
{
t = bme.readTemperature();
h = bme.readHumidity();
p = bme.readPressure();
Blynk.virtualWrite(V5, t);
Blynk.virtualWrite(V6, h);
Blynk.virtualWrite(V7, p / 100.0F);

void setup() {
  Serial.begin(9600);
  Blynk.begin(auth, ssid, pass);
  // You can also specify server:
  //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
  //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);

  Serial.println("BME280 test");

  if (!bme.begin()) {
    Serial.println("Could not find a valid BME280 sensor, check wiring!");
    while (1);
  }
   timer.setInterval(3000,sendSensor);
}

void loop() {
// read the sensors and append to the string:

    Blynk.run();
    timer.run();
}

Custom parts and enclosures

weather station bb
because there is no Arduino nano 33 iot in the Fritzing library I used the standard nano, the connections are the same.
Weather station iot bb 1qa6nhqdw0

Schematics

weather station bb
because there is no Arduino nano 33 iot in the Fritzing library I used the standard nano, the connections are the same.
Weather station iot bb gkivefzit4

Comments

Similar projects you might like

How To Make An Mini IOT Weather Station

Project tutorial by Austin Detzel

  • 6,647 views
  • 4 comments
  • 18 respects

IoT Weather Station

Project tutorial by Enrique

  • 3,854 views
  • 1 comment
  • 6 respects

Mobile IoT Weather Station with UV Index

Project showcase by Carlos Orts

  • 11,557 views
  • 15 comments
  • 42 respects

AWS - Arduino Weather Station

Project tutorial by GilettaStefano

  • 28,441 views
  • 14 comments
  • 70 respects

Weather Station v.1.0

Project showcase by derapados

  • 16,942 views
  • 5 comments
  • 45 respects

Portable Temperature Station V2: IOT Edition

Project tutorial by Isaac100

  • 3,914 views
  • 0 comments
  • 8 respects
Add projectSign up / Login