This is an old revision of the document!


Cloud Weather Station

Radulescu Kyra-Alexandra

Introduction

Cloud Weather Station is an Arduino project that will read weather data such as temperature and humidity and it will be synchronized with the Arduino IoT Cloud, a service that let's us remotely monitor data.

This means that whenever we read data on the board, it will also be visible in the cloud dashboard, where we can create different ways of visualizing the data.

General Description

We use the Amica NODEMCU cp2102 wifi module as our base arduino board, in which we will plug in our temperature and humidity sensors, we connect it to WIFI, then to Arduino IoT Cloud and put together the dashboard where we will see the data.

How the dashboard should look like:

After installing all drivers and libraries for NODEMCU ESP8266 wifi module, it doesn't work. I have consulted the arduino.cc forum and many people have the same problem, the drivers don't work, so I had to change the project a little bit.

Hardware Design

The components used are as follows:

1. Amica NODEMCU cp2102 wifi module 2. CONNFLY temperature sensor 3. CONNFLY humidity sensor

After several tries, the NODEMCU ESP8266 drivers do not work. There is only 1 driver available and it is the same on arduino.cc, nodemcu support page and multiple forums.

errornodemcukyra.jpeg

So, I've decided to change the project a little bit so I can make it work.

Instead of it transmitting the data from sensors to arduino cloud, it will show it on an 16×2 I2C LCD.

THE NEW SETUP LOOKS LIKE THIS:

1. Arduino UNO 2. 16×2 I2C LCD 3. DHT22 temperature and humidity sensor 4. wires 5. breadboard

hardwarekyra.jpeg

Software Design

Libraries #include <dht.h> #include <LiquidCrystal_I2C.h> #include <Wire.h> dht DHT;

Constants #define DHT22_PIN 8 pin used for DHT22 LiquidCrystal_I2C lcd(0x27,16,2); set the LCD address to 0x27 after finding it from serial monitor for a 16 chars and 2 line display

Variables float hum; Stores humidity value float temp; Stores temperature value

void setup() {

  Serial.begin(9600);
  lcd.init();                      // initialize the  lcd 
// Print a message to the LCD.
lcd.backlight();
lcd.setBacklight(HIGH);

}

void loop() {

  int chk = DHT.read22(DHT22_PIN);
  //Read data and store  it to variables hum and temp
  hum = DHT.humidity;
  temp= DHT.temperature;
  //Print temp and humidity values to LCD
  lcd.setCursor(0,0);
  lcd.print("Humidity: ");
  lcd.print(hum);
  lcd.print("%");
  lcd.setCursor(0,1);
  lcd.print("Temperat: "); 
  lcd.print(temp);
  lcd.println("C");
  delay(2000); //Delay 2 sec between temperature/humidity check.

}

Results Obtained

Conclusions

Download

Jurnal

Bibliography/Resources

pm/prj2023/avaduva/cloud_weather_station.1685273595.txt.gz · Last modified: 2023/05/28 14:33 by kyra.radulescu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0