Digital Smart House Project For Science Fair

ডিজিটাল উদ্ভাবনী মেলা ২০২২ | Digital Innovation Fair 2022 | Smart House Project | It's Me Shantonu |

Shantonu Acharjee Smile With Digital Multimetter with Digital Smart House

Digital Smart House Project For Science Fair

এটা হচ্ছে আমাদের বাড়ির মেইন গেইট। এই গেইট আমরা মোবাইলে পাসওয়ার্ড দেওয়ার মাধ্যমে খুলবো। পাসওয়ার্ড দেওয়ার পর যখন Open Door এ ক্লিক করবো, তখন দরজাটা খুলে যাবে। দরজা খোলার পর বাড়িতে প্রবেশ করলাম।  বাড়িতে প্রবেশ করার পর দরজাটা নিজ থেকে বন্ধ হয়ে যাবে। বাড়ির ভেতর থেকে যখন বের হতে চাইবো, তখন পাসওয়ার্ড দেওয়ার প্রয়োজন হবে না। বাড়ির ভিতরে থাকা একটা বাটনে   Press করলে দরজাটি খুলে যাবে। এবং আমি বের হওয়ার পর দরজাটি নিজ থেকেই বন্ধ হয়ে যাবে। বাড়ির ভিতরে দরজার সামনে আসলে দরজা নিজ থেকেই খুলে যাবে। কোন কারনে রান্না ঘরে যদি গ্যাস লিক করে,  তখন রান্নাঘরের জানালাটি নিজ থেকেই খুলে যাবে। যখন রুমে আর কোন গ্যাস থাকবে না, তখন জানালাটি আবার নিজ থেকেই বন্ধ হয়ে যাবে। এটা হচ্ছে পাখা। টিভির রিমোটে 2 Press করলে, পাখাটি চালু হয়ে যাবে। পুনরায় আবার 2 Press করলে,  পাখাটি OFF হয়ে যাবে। এই রুমে রয়েছে একটা LED বাতি। রিমোটে যখন 1 Press করবো, তখন বাতিটি জ্বলবে।এবং পুনরায় 1Press করলে বাতিটি OFF হয়ে যাবে। মজার ব্যাপার হলো আমরা চাইলে মোবাইল দিয়েও কন্ট্রোল করতে পারবো। Apps এ ডোকার পর যখন 1 Press করবো তখন বাতিটি জ্বলবে। আবার যখন 2 Press করবো তখন পাখাটি চলবে। আবার 2 Press করলে পাখাটি OFF হয়ে যাবে। এবং 1 Press করলে বাতিটি OFF হয়ে যাবে। সবচেয়ে ইম্পরট্যান্ট যে বিষয়টা সেটা হচ্ছে, ঘরের মধ্যে যদি আগুন লাগে, তখন খুব জোরে আ্যালাম দিবে, এবং আগুনকে নিভানোর জন্যে স্বয়ংক্রিয়ভাবে পানি দিবে, এবং আপনার ফোনে একটা কল আসবে, যাতে আপনি বুঝতে পারেন বাসায় অগ্নিসংযোগ ঘটেছে। এটা হলো রিলে মডিউল, এগুলো হলো আরডুইনো বোর্ড, এটা হচ্ছে ব্লুটুথ মডিউল, এটা হচ্ছে GSM মডিউল।

ডিজিটাল উদ্ভাবনী মেলা ২০২২ | Digital Innovation Fair 2022 | Smart House Project | It's Me Shantonu

ডিজিটাল উদ্ভাবনী মেলা ২০২২ | Digital Innovation Fair 2022 | Smart House Project | It's Me Shantonu



সোর্স কোড Arduino 1

Copy
#include <Servo.h>
Servo MainGateServo;
String inputString = "";
String command = "";
String value = "";
String password = "1234"; // This is the password. You can set any pasword.
boolean stringComplete = false;
char inChar;
int DoorOpenPoint = 0;
int DoorClosePoint = 100;
//Light Fan Section
int led = 13;
int fan = 11;
int analogPin = A0;
int val = 0;
void setup(){
Serial.begin(9600); // baud rate is 9600 must match with bluetooth
inputString.reserve(50); // reserve 50 bytes in memory to save for string manipulation
command.reserve(50);
value.reserve(50);
boolean stringOK = false;
MainGateServo.attach(9); // attaches the servo on pin 9 to the servo object
MainGateServo.write(DoorClosePoint);
pinMode(led, OUTPUT);
pinMode(fan, OUTPUT);
digitalWrite(led, HIGH);
digitalWrite(fan, HIGH);
pinMode(analogPin, INPUT);
}
void loop(){
if (stringComplete) {
delay(100);
int pos = inputString.indexOf('=');
if (pos > -1) {
command = inputString.substring(0, pos);
value = inputString.substring(pos+1, inputString.length()-1); // extract command up to \n exluded
if(!password.compareTo(value) && (command == "OPEN")){
openDoor(); // call openDoor() function
Serial.println(" OPEN"); // sent open feedback to phone
delay(100);
}
else if(!password.compareTo(value) && (command == "CLOSE")){
closeDoor();
Serial.println(" CLOSE"); // sent " CLOSE" string to the phone
delay(100);
}
else if(password.compareTo(value)){
Serial.println(" WRONG");
delay(100);
}
}
inputString = "";
stringComplete = false;
}
// Push Button Door Close
val = analogRead(analogPin);
Serial.println(val);
if(val >= 100){
MainGateServo.write(DoorOpenPoint);
delay(2500);
MainGateServo.write(DoorClosePoint);
delay(15);
}
}// Loop End -------------
void serialEvent() {
while (Serial.available()) {
inChar = Serial.read();
Serial.println(inChar);
inputString += inChar;
if (inChar == '\n' || inChar == '\r') {
stringComplete = true;
}
// For Light Fan ----------------------------------Start -----------------
if(inChar =='a')
digitalWrite(led,LOW);
else if(inChar == 'b')
digitalWrite(led,HIGH);
// For FAN
else if(inChar == 'c')
digitalWrite(fan,LOW);
else if(inChar == 'd')
digitalWrite(fan,HIGH);
//Light Fan End -----------------xx------------------------------
}
}
void openDoor(){
MainGateServo.write(DoorOpenPoint);
delay(2500);
MainGateServo.write(DoorClosePoint);
delay(15);
}
void closeDoor(){
MainGateServo.write(DoorClosePoint);
delay(15);
}
সোর্স কোড Arduino 2


My Recent Projects

বাংলাদেশি রোবট মীনা The eyes of a blind man Arduino Project Arduino Firefighter Robot
বাংলাদেশি রোবট মীনা The eyes of a blind man Arduino Project Arduino Firefighter Robot
Bluetooth Controlled Car Using Arduino (L293D Motor Driver) Covid-19 Updater Digital Smart House Project For Science Fair
Bluetooth Controlled Car Using Arduino (L293D Motor Driver) Covid-19 Updater Digital Smart House Project For Science Fair
Age And Gender Recognition Useing Python Arduino smart dustbin with chocolate gift - ময়লা ফেললেই চকলেট দেবে স্মার্ট ডাস্টবিন Movie Recommender System - Machine Learning Project
Age And Gender Recognition Using Python Arduino smart dustbin with chocolate gift - ময়লা ফেললেই চকলেট দেবে স্মার্ট ডাস্টবিন Movie Recommender System - Machine Learning Project


Contact Me

Shantonu Acharjee +880 1789333514
Shantonu Acharjee ShantonuAcharjee@gmail.com
Shantonu Acharjee Shantonu_
Shantonu Acharjee Shantonu_
Shantonu Acharjee It's Me Shantonu
Shantonu Acharjee Shantonu Achajee
Shantonu Acharjee Shantonu-Achajee
Shantonu Acharjee Shantonu-Achajee
Shantonu Acharjee Shantonu_Achajee
Shantonu Acharjee Max Electronics BD
Next Post Previous Post