Project showcase
Personal Weather Station

Personal Weather Station

Personal weather station using Arduino Pro Mini and Nokia 5110 display.

  • 3,285 views
  • 6 comments
  • 14 respects

Components and supplies

About this project

This is a simple project. This for those who like to use their own machine. I am using this machine and it's good.

Creating the machine

Anyone (with basic knowledge of Arduino) can easily build this thing because the circuit diagram is easy and available on the Internet. The code is interesting because it's about connecting a display with Arduino Pro Mini and show the temperature, humidity and sun.

The connection with Arduino, display and sensor is easy and it's available in Internet. First I made the circuit in a veroboard, and added the sensor and Arduino to it.

Then I added the display.

Then I cut a box and put the display in front of it because I don't have a 3D printer. I also put the circuit and battery inside the box. Then the machine was ready to show the temperature, humidity and sun value in its display.

Code

TEMPERATURE_STATION.inoArduino
Just download the (LCD5110_Graph.h) and (dht.h) LIBRARY from internet and include the LIBRARY with Arduino ide and upload the code.
//TEMPERATURE STATION
//MADE BY RUMMAN ISLAM BD
//DATE:24.12.16

#include <LCD5110_Graph.h>                                      //LIBRARY
#include<dht.h>
#define TS 7                                                //TEMPERATURE SENSOR PIN NUMBER

dht DHT;
LCD5110 myGLCD(8,9,10,12,11);
//      LCD PIN NUMBER       
//      SCK  - Pin 8
//      MOSI - Pin 9
//      DC   - Pin 10
//      RST  - Pin 12
//      CS   - Pin 11

extern unsigned char SmallFont[];                               //FRONT SIZE
extern unsigned char TinyFont[];

char lightString [4];     
char tempString [5];
char humiString [4];

String Ttr;
String str;                                                //INITILIZE STRING 
String htr;

int lightIntensity ;                                       //INITILIZE VALUE
int Tempsensor;

void setup()                        
{
  myGLCD.InitLCD();
  myGLCD.setFont(SmallFont);
  randomSeed(analogRead(7));
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop()
{
   
  digitalWrite(LED_BUILTIN, HIGH);                          //FOR BLINKING LED
  delay(100);                       
  digitalWrite(LED_BUILTIN, LOW);    
  delay(100); 
  
  Tempsensor=DHT.read11(TS);                                    // 1ST SENSOR
  int t=DHT.temperature;                                        // 2ND SENSOR   
  int h=DHT.humidity;                                           // 3RD SENSOR 
  lightIntensity = analogRead(A0);   
  lightIntensity = map(lightIntensity, 0, 1000, 0, 100);       //CONVERT THE VALUE INTO %
  delay(1000);



  Ttr =String(t)+"*c";                                //FOR CONVERT THE VALUE   
  htr =String(h)+"%"; 
  Ttr.toCharArray(tempString,5);
  htr.toCharArray(humiString,4);
  str = String(lightIntensity)+"%";
  str.toCharArray(lightString,4);                     //FOR CONVERT THE VALUE  
  delay(1000);
  
  myGLCD.clrScr();
  myGLCD.update();
  myGLCD.setFont(TinyFont);
  myGLCD.print("**WEATHER STATION**",CENTER,0);
  myGLCD.print("MADE BY RUMMAN",CENTER,7);
  myGLCD.print("-------------------------",CENTER,12);
  myGLCD.setFont(SmallFont);
  myGLCD.print("CELCIOUS:",LEFT,18);                    // FOR PRINT IN SCREEN  
  myGLCD.print(tempString,RIGHT,18);
  myGLCD.setFont(TinyFont);
  myGLCD.print("------------------------",LEFT,25);
  myGLCD.setFont(SmallFont);
  myGLCD.print("HUMIDITY:",LEFT,29);
  myGLCD.print(humiString,RIGHT,29);
  myGLCD.setFont(TinyFont);
  myGLCD.print("------------------------",LEFT,36);
  myGLCD.setFont(SmallFont); 
  myGLCD.print("SUN:",LEFT,41);
  myGLCD.print(lightString,RIGHT,41);
  
 
  myGLCD.update();  
  delay(1000);
}

Comments

Similar projects you might like

Personal Weather Station (Arduino+ ESP8266 + Thingspeak)

Project tutorial by Jayraj Desai

  • 51,519 views
  • 32 comments
  • 107 respects

Mobile Weather Station Being Powered by Solar Energy

Project tutorial by Kutluhan Aktar

  • 2,543 views
  • 0 comments
  • 12 respects

Weather Station v.1.0

Project showcase by derapados

  • 10,388 views
  • 3 comments
  • 36 respects

Arduino Based Weather Station with Remote Sensor Unit

Project showcase by antiElectron

  • 8,936 views
  • 7 comments
  • 45 respects

Wireless weather station (Arduino + ESP8266 + Thingspeak)

Project tutorial by Alin-Constantin Paun

  • 9,180 views
  • 2 comments
  • 15 respects

AWS - Arduino Weather Station

Project tutorial by GilettaStefano

  • 19,316 views
  • 13 comments
  • 63 respects
Add projectSign up / Login