SMART HOME REPORT - Google Docs
SMART HOME REPORT - Google Docs
PREPARED BY:
1 . INTRODUCTION
2
2. PROBLEM STATEMENT 2
3. OBJECTIVES 3
4. PROJECT METHODOLOGY & PLANNING 4
5. RESULTS 5
6. DISCUSSION 7
7. CONCLUSION 7
8. APPLICATION OF KNOWLEDGE AND SKILLS 8
I. APPENDICES 9
1
1. INTRODUCTION
basic component of this setup is the DHT11 sensor, renowned for its capacity to
A
monitortemperatureandhumidityinreal-time.Bygivingaccurateandup-to-datedataonindoor
natural conditions, the DHT11 ensures that the home remains comfortableallthroughtheday.
TheESP32microcontrollerformstheinformationfromtheDHT11sensorandcanautomatically
adjust warming or cooling systems as required. This not as it were improves consolation but
moreover contributes to vitality productivity, as the HVAC frameworks work as it were when
essential, decreasing superfluous vitality utilization.
I ntermsofsecurity,thesystememploysCCTVcameras,whicharemoreovercontrolled
by the ESP32 microcontroller.Thesecamerasgivenonstopobservation,guaranteeingthateach
cornerofthehomeisobservedaroundtheclock.Propertyholderscangettolivecamerabolsters
remotely through the Blynk app, a user-friendly stage that permits for simple interaction with
different IoT gadgets. This capability guarantees that homeowners can keep an eye on their
property from a place within the world, giving real-time monitoring and the capacity to reply
quickly to any recognized exercises or potential security dangers.
2
he Blynk app serves as the central interface for clients to connect with their home
T
automationsystem.Throughthisapp,clientscaneasilyscreenCCTVcamerafeeds,getreal-time
alerts,andcontroldifferentgadgetsinsidetheirhome.Theapp'sintuitiveplanmakesitopento
clients of all tech-savviness levels, ensuring that anybody can take advantage of theupgraded
security and comfort it gives.
I nthisdayandage,itmaybedifficultforhomeownerstomaintainsafe,comfortableyet
energy-effective houses without making their everyday lives more challenging. Modern
households seek a level of safety, convenience and energy saving that older home systems
usuallydon'tprovide.Homeownersarelookingforareliablewaytosaveenergycosts,simplify
daily tasks, and secure their properties. Through the addition of innovative technologies into
standardhouseholdsystems,thisinitiativeaimstoeasetheseworriesandprovidefamilieswitha
safer, simpler, and more cost-effective living.
3. OBJECTIVES
or the Door Lock System, it enhances security through an automated locking
F
mechanismwhereitensuresthatonlyindividualswiththekeycodecanenterthepremises.Atthe
sametime,itgivesthehomeownerapeaceofmindknowingthattheydon’tneedtoworryabout
forgetting their key or access card in order to enter their home.
ext,theTemp-FanSystemincludesanaccuratetemperatureandhumiditysensorwhich
N
provides real-time data to guarantee idealindoorconditions.Itissettomaintainacomfortable
and healthy indoor condition through the fan speed based on the data obtained from the
temperature and humidity sensor. This system isespeciallyusefulnotonlytoincreasecomfort
but also improves energy conservation.
3
astly, the Camera System allows the homeowner to monitor their property remotely
L
withtheuseofsmartphoneapp,Blynkthatoffersreal-timemonitoring.Afasterreactiontimeto
security concerns are made possible from the increased awareness, guaranteeing that any
suspicious activities are being dealt with immediately.
4
4. PROJECT METHODOLOGY & PLANNING
METHODOLOGY
FLOWCHART (EXPLAIN)
Task Week 10 Week 11 Week 12 Week 13 Week 14
Planning and × ×
Research
Design × × ×
Buying instrument × × ×
Development × ×
Integration and × × ×
Testing
Documentation and × ×
Reporting
Table 1: Gantt Chart for Semi Smart Home.
5
LED CLAP SYSTEM :
1 . tart.
S
2. 1st Clap : Led On
3. 2n d Clap : Led Off
4. End.
CAMERA SYSTEM :
1. Start
2. Connect To Blynk Apps
3. Select Camera Section
4. Turn On Camera
5. Watch Livestream
6. Turn Off Camera
7. End
5. RESULTS
6
Figure 2 : Blynk App’s Interface for Camera System.
I ntegrating the Blynk IoT platform for camera control in a smart home setup offers
helpfulobservationandsecuritymanagement.ThroughtheBlynkapp,userscanremotelygetto
livecamerafeeds,enablingreal-timecheckingoftheirhomeenvironmentfromanywhere.This
capability enhances security by allowing homeowners to keep an eye onentrypoints,monitor
exercises in specific ranges, and receive immediate alerts for identified movement or security
breaches. The app's user-friendly interface encourages easy route between camera sees and
supports customization choices for setting up cautions based on particular events. This
integration not as it were improves home security but also gives peace of mind by enabling
proactive monitoring and response to potential threats or emergencies.
7
6. DISCUSSION
he semi-smart home venture exhibits how essential IoT innovations can altogether
T
progressthewayoflifeathome.ByutilizingtheESP32microcontrollerasthecentralbrain,the
framework robotizes errands like alteringtemperatureandmugginesslevelsbasedonreal-time
information from the DHT11 sensor. This not as it were upgrades consolation but moreover
possibly decreases vitality utilization.
ecurityisreinforcedthroughCCTVcamerasoverseenbytheESP32,availableremotely
S
through the Blynk app. Property holders can screen their property in real-time fromanyplace,
improving peace of intellect and empowering speedy reactions to security episodes.
7. CONCLUSION
I n conclusion, the semi-smart home degree utilizing IoT advancements speaks to a
practical approach to upgrading private living. By coordinating gadgets similar to the ESP32
microcontroller,DHT11sensor,CCTVcameras,andlightclapsensor,thesystemmakesstrides
in comfort, security, and characteristic observing the interior of the home. The ESP32
successfully manages data preparation and communication, empowering robotized changes to
household conditions based on real-time sensor data. CCTV cameras allow non stop
surveillance, available remotely through the Blynk app, which improves security by allowing
contractholderstoscreentheirpropertyfromanyplace.Theconsiderationofinstinctivecontrols
just like the light clap sensor help improves day by day assignments, exhibiting the reliable
integrationofquickdevelopmentsintostandardofliving.Byandhuge,thisexpansionhighlights
the transformative potential of IoT in making more brilliant, more responsive homes that
prioritize reassurance, security, and capability.
8
8. APPLICATION OF KNOWLEDGE AND SKILLS
9
I. APPENDICES
A. Coding
# include "OV2640.h"
#include <WiFi.h>
#include <WebServer.h>
#include <WiFiClient.h>
#include "camera_pins.h"
OV2640 cam;
WebServer server(80);
void handle_jpg_stream(void)
10
{
char buf[32];
int s;
c lient.write(HEADER, hdrLen);
client.write(BOUNDARY, bdrLen);
hile (true)
w
{
if (!client.connected()) break;
cam.run();
s = cam.getSize();
client.write(CTNTTYPE, cntLen);
sprintf( buf, "%d\r\n\r\n", s );
client.write(buf, strlen(buf));
client.write((char *)cam.getfb(), s);
client.write(BOUNDARY, bdrLen);
}
}
v oid handle_jpg(void)
{
WiFiClient client = server.client();
c am.run();
if (!client.connected()) return;
c lient.write(JHEADER, jhdLen);
client.write((char *)cam.getfb(), cam.getSize());
}
v oid handleNotFound()
{
11
tring message = "Server is running!\n\n";
S
message += "URI: ";
message += server.uri();
message += "\nMethod: ";
message += (server.method() == HTTP_GET) ? "GET" : "POST";
message += "\nArguments: ";
message += server.args();
message += "\n";
server.send(200, "text / plain", message);
}
v oid setup()
{
erial.begin(115200);
S
//while (!Serial); //wait for serial connection.
c amera_config_t config;
config.ledc_channel = LEDC_CHANNEL_0;
config.ledc_timer = LEDC_TIMER_0;
config.pin_d0 = Y2_GPIO_NUM;
config.pin_d1 = Y3_GPIO_NUM;
config.pin_d2 = Y4_GPIO_NUM;
config.pin_d3 = Y5_GPIO_NUM;
config.pin_d4 = Y6_GPIO_NUM;
config.pin_d5 = Y7_GPIO_NUM;
config.pin_d6 = Y8_GPIO_NUM;
config.pin_d7 = Y9_GPIO_NUM;
config.pin_xclk = XCLK_GPIO_NUM;
config.pin_pclk = PCLK_GPIO_NUM;
config.pin_vsync = VSYNC_GPIO_NUM;
config.pin_href = HREF_GPIO_NUM;
config.pin_sscb_sda = SIOD_GPIO_NUM;
config.pin_sscb_scl = SIOC_GPIO_NUM;
config.pin_pwdn = PWDN_GPIO_NUM;
config.pin_reset = RESET_GPIO_NUM;
config.xclk_freq_hz = 20000000;
config.pixel_format = PIXFORMAT_JPEG;
12
// Frame parameters
// config.frame_size = FRAMESIZE_UXGA;
config.frame_size = FRAMESIZE_QVGA;
config.jpeg_quality = 12;
config.fb_count = 2;
#if defined(CAMERA_MODEL_ESP_EYE)
pinMode(13, INPUT_PULLUP);
pinMode(14, INPUT_PULLUP);
#endif
cam.init(config);
IPAddress ip;
iFi.mode(WIFI_STA);
W
WiFi.begin(SSID1, PWD1);
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print(F("."));
}
ip = WiFi.localIP();
Serial.println(F("WiFi connected"));
Serial.println("");
Serial.println(ip);
Serial.print("Stream Link: http://");
Serial.print(ip);
Serial.println("/mjpeg/1");
server.on("/mjpeg/1", HTTP_GET, handle_jpg_stream);
server.on("/jpg", HTTP_GET, handle_jpg);
server.onNotFound(handleNotFound);
server.begin();
}
v oid loop()
{
server.handleClient();
}
13
B. Bill of Materials with Cost
TOTAL RM160.39
Table 2: List of Materials Used with Costing.
14
Figure 4: Connection ESP32-CAM to Power Bank.
15