প্রজেক্টটি করতে যা যা লাগবেঃ

Sl: No: Required Items Quantity (pcs) Product Link
01. Arduino UNO 01 Click here
02. Bread Board 01 Click here
03. LCD (16*2) 01 Click here
04. Temperature & Humidity Sensor (DHT11) 01 Click here
05. Male to Male Jumper wires As required Click here
06. Male to Female jumper wires As required Click here
07. Resistor (220 Ohms) 01 Click here
08. Variable Pot Resistor (10K) 01 Click here

 

সার্কিট কানেকশনঃ

LCD Arduino UNO
01 GND
02 5V
03 Variable resistor

(Middle pin)

04 Digital pin 12
05 GND
06 Digital pin 11
11 Digital pin 5
12 Digital pin 4
13 Digital pin 3
14 Digital pin 2
15 5V through resistor
16 GND

 

Other Connections
Variable resistor

(right pin)

5V
Variable resistor

(left pin)

GND

DHT11 Arduino UNO
VCC 5V
GND GND
DATA Digital pin 7

সার্কিট ডায়াগ্রামঃ

 

আরডুইনো কোডঃ

#include <dht.h>

#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

dht DHT;

#define DHT11_PIN 7

void setup(){

lcd.begin(16, 2);

}

void loop()

{

int chk = DHT.read11(DHT11_PIN);

lcd.setCursor(0,0);

lcd.print(“Temp: “);

lcd.print(DHT.temperature);

lcd.print((char)223);

lcd.print(“C”);

lcd.setCursor(0,1);

lcd.print(“Humidity: “);

lcd.print(DHT.humidity);

lcd.print(“%”);

delay(1000);

}

 

 

লাইব্রেরি ফাইলঃ

dht.h

LiquidCrystal.h