Stage 1
Team members:-
1)Abhiram Bhushan Hiwrekar. 2)Bhushan Vinod Kad 3) Radhika Rahul Shendurnikar
We started our project,but the Arduino ide problem created. We neeeded libraries are add in it. Their is problem in code also even when upload the code the display is not showing anything. We find its solution as rotating the screw for increase its brightness.after doing that the all sensors and display works properly.
Componants used:-
1)Arduino UNO as microcontroller
2)bread board to increase the no of ports
3)bmp sensor for measuring air pressure
- DTH11 sensor for measuring humidity and temperature.
5)9v battery as external power
6)Display for showing temperature,humidity and air pressure.
Used code:-
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <DHT.h>
#include <Adafruit_BMP280.h>
// LCD I2C address (try 0x3F if 0x27 not working)
LiquidCrystal_I2C lcd(0x27, 16, 2);
// DHT11 setup
#define DHTPIN 2
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
// BMP280 setup
Adafruit_BMP280 bmp;
#define LEDPIN 7
void setup() {
Serial.begin(9600);
pinMode(LEDPIN, OUTPUT);
lcd.begin(16, 2); // Important for ArduinoDroid
lcd.backlight();
dht.begin();
if (!bmp.begin(0x76)) {
lcd.setCursor(0,0);
lcd.print(“BMP Error!”);
while (1);
}
lcd.setCursor(0,0);
lcd.print(“Weather Station”);
delay(2000);
lcd.clear();
}
void loop() {
float temperature = dht.readTemperature();
float humidity = dht.readHumidity();
float pressure = bmp.readPressure() / 100.0;
if (isnan(temperature) || isnan(humidity)) {
lcd.setCursor(0,0);
lcd.print(“DHT Error!”);
return;
}
lcd.setCursor(0,0);
lcd.print(“T:”);
lcd.print(temperature);
lcd.print((char)223);
lcd.print("C ");
lcd.print(“H:”);
lcd.print(humidity);
lcd.print(“%”);
lcd.setCursor(0,1);
lcd.print(“P:”);
lcd.print(pressure);
lcd.print(“hPa”);
if (temperature > 30) {
digitalWrite(LEDPIN, HIGH);
} else {
digitalWrite(LEDPIN, LOW);
}
delay(2000);
}
Stage 2
Team members:-
1)Abhiram hiwrekar
2)Bhushan kad
3)Radhika Rahul Shendurnikar
During this stage due to ESP32 Board many problems arises .many times the compiling and uploading error is showing during the upload of code in it.due to less time and some technical problem we cannot able to clear the stage2
