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.

  • 4,910 views
  • 1 comment
  • 6 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

Tiny Internet Weather Station

Project tutorial by Doug Domke

  • 12,009 views
  • 17 comments
  • 34 respects

Mobile IoT Weather Station with UV Index

Project showcase by Carlos Orts

  • 12,969 views
  • 15 comments
  • 43 respects

How To Make An Mini IOT Weather Station

Project tutorial by Austin Detzel

  • 8,266 views
  • 4 comments
  • 18 respects

IoT Weather Station

Project tutorial by Enrique

  • 6,894 views
  • 1 comment
  • 7 respects

IoT | TensorFlow Weather Station Predicts Rainfall Intensity

Project tutorial by Kutluhan Aktar

  • 6,594 views
  • 12 comments
  • 19 respects

AWS - Arduino Weather Station

Project tutorial by GilettaStefano

  • 35,419 views
  • 17 comments
  • 76 respects
Add projectSign up / Login