forked from PronoyKumarMondal/Iot-Smart_home-Prroject
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
453 lines (394 loc) · 19.3 KB
/
Copy pathindex.html
File metadata and controls
453 lines (394 loc) · 19.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Arduino Home Automation | Door Control & LPG Safety</title>
<meta name="description" content="IoT Home Automation projects featuring Door Control with Keypad/WiFi and LPG Flame Detection systems using Arduino.">
<meta name="keywords" content="Arduino, IoT, Home Automation, ESP8266, Flame Sensor, LPG Sensor, Servo Motor, RemoteXY, Electronics">
<meta name="author" content="Kawshik">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link rel="icon" type="image/webp" href="/favicon.webp">
<style>
/* =========================================
CSS Variables (Emerald/Teal Theme for Hardware)
========================================== */
:root {
--primary-color: #059669; /* Emerald-600 */
--primary-hover: #047857; /* Emerald-700 */
--accent-color: #14b8a6; /* Teal-500 */
--bg-color: #f8fafc; /* Slate-50 */
--text-color: #1e293b; /* Slate-800 */
--text-muted: #64748b; /* Slate-500 */
--card-bg: #ffffff;
--border-color: #e2e8f0;
--code-bg: #0f172a; /* Slate-900 */
--code-text: #e2e8f0;
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
--transition: all 0.3s ease;
--radius: 12px;
}
[data-theme="dark"] {
--bg-color: #0f172a;
--text-color: #f1f5f9;
--text-muted: #94a3b8;
--card-bg: #1e293b;
--border-color: #334155;
--code-bg: #020617;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Inter', sans-serif;
background-color: var(--bg-color);
color: var(--text-color);
line-height: 1.6;
transition: background-color 0.3s, color 0.3s;
-webkit-tap-highlight-color: transparent;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
/* Floating Navigation */
.float-btn {
position: fixed;
top: 20px;
width: 45px;
height: 45px;
display: flex;
align-items: center;
justify-content: center;
background: var(--card-bg);
border: 1px solid var(--border-color);
color: var(--text-color);
border-radius: 50%;
cursor: pointer;
z-index: 1000;
box-shadow: var(--shadow);
transition: var(--transition);
font-size: 1.1rem;
}
.float-btn:hover { transform: scale(1.1); border-color: var(--primary-color); color: var(--primary-color); }
.back-home { left: 20px; }
.theme-toggle { right: 20px; }
/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; text-align: center; }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 3rem; max-width: 600px; margin: 0 auto 3rem auto; }
/* Hero Section */
.hero {
min-height: 70vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding-top: 80px;
background: radial-gradient(circle at top, rgba(5, 150, 105, 0.1) 0%, transparent 70%);
}
.hero h1 {
font-size: 3rem;
font-weight: 800;
margin-bottom: 15px;
background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.hero-desc {
max-width: 700px;
margin: 0 auto 30px;
font-size: 1.15rem;
color: var(--text-muted);
}
.btn {
padding: 12px 24px;
border-radius: 8px;
font-weight: 600;
background: var(--primary-color);
color: white;
transition: var(--transition);
display: inline-flex; gap: 8px; align-items: center;
border: none; cursor: pointer;
}
.btn:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 10px 20px -10px var(--primary-color); }
/* Project Cards (Showcase) */
.project-grid {
display: grid;
grid-template-columns: 1fr;
gap: 40px;
}
@media(min-width: 900px) {
.project-grid { grid-template-columns: 1fr 1fr; }
}
.project-card {
background: var(--card-bg);
border-radius: var(--radius);
border: 1px solid var(--border-color);
overflow: hidden;
transition: var(--transition);
display: flex;
flex-direction: column;
}
.project-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.card-img-wrapper {
width: 100%;
height: 250px;
overflow: hidden;
background: #f1f5f9;
display: flex;
align-items: center;
justify-content: center;
border-bottom: 1px solid var(--border-color);
}
.card-img-wrapper img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.project-card:hover .card-img-wrapper img { transform: scale(1.05); }
.card-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.4rem; margin-bottom: 10px; font-weight: 700; color: var(--text-color); }
.card-desc { color: var(--text-muted); margin-bottom: 20px; font-size: 0.95rem; line-height: 1.6; }
.feature-list { list-style: none; margin-bottom: 20px; }
.feature-list li {
margin-bottom: 8px;
font-size: 0.9rem;
display: flex;
align-items: center;
gap: 10px;
color: var(--text-color);
}
.feature-list li i { color: var(--primary-color); font-size: 0.8rem; }
.card-footer { margin-top: auto; padding-top: 15px; border-top: 1px solid var(--border-color); display: flex; gap: 10px; }
.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-color); }
.btn-outline:hover { border-color: var(--primary-color); color: var(--primary-color); background: transparent; }
/* Wiring Tables */
.wiring-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.wiring-box {
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: var(--radius);
padding: 20px;
}
.wiring-box h3 { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 10px; text-align: left; border-bottom: 1px solid var(--border-color); }
th { color: var(--primary-color); font-weight: 600; }
tr:last-child td { border-bottom: none; }
/* Code Block */
.terminal-window {
background: var(--code-bg);
border-radius: var(--radius);
padding: 20px;
font-family: 'Fira Code', monospace;
color: var(--code-text);
font-size: 0.85rem;
overflow-x: auto;
border: 1px solid #334155;
}
.cmd { color: #facc15; }
.comment { color: #64748b; font-style: italic; }
/* Tech Badges */
.tech-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.tech-badge {
background: var(--card-bg);
border: 1px solid var(--border-color);
padding: 8px 16px;
border-radius: 50px;
font-size: 0.9rem;
font-weight: 500;
display: flex; align-items: center; gap: 8px;
}
.tech-badge i { color: var(--primary-color); }
/* Helper Classes */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) {
.hero h1 { font-size: 2.2rem; }
.project-grid { grid-template-columns: 1fr; }
}
footer { text-align: center; padding: 40px; margin-top: 50px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.9rem; }
</style>
</head>
<body class="light-mode">
<a href="https://kawshik.dev" class="float-btn back-home"><i class="fas fa-arrow-left"></i></a>
<button id="theme-toggle" class="float-btn theme-toggle"><i class="fas fa-moon"></i></button>
<header class="hero container fade-in">
<h1>Arduino Smart Home</h1>
<p class="hero-desc">
Two essential projects for home automation and safety: <br>
<strong>Door Control with WiFi</strong> & <strong>LPG Flame Detection</strong>.
</p>
<div style="display: flex; gap: 10px;">
<a href="https://github.com/kawshik-ornob8/Iot-Smart_home-Prroject" class="btn" target="_blank">
<i class="fab fa-github"></i> View Repository
</a>
<a href="#projects" class="btn btn-outline">Explore Projects</a>
</div>
</header>
<section class="container fade-in" style="margin-top: 50px;">
<h2 class="section-title" style="font-size: 1.5rem;">Hardware & Software</h2>
<div class="tech-grid">
<div class="tech-badge"><i class="fas fa-microchip"></i> Arduino UNO</div>
<div class="tech-badge"><i class="fas fa-wifi"></i> ESP8266 WiFi</div>
<div class="tech-badge"><i class="fas fa-key"></i> Keypad 4x4</div>
<div class="tech-badge"><i class="fas fa-fire"></i> Flame Sensor</div>
<div class="tech-badge"><i class="fas fa-wind"></i> LPG Sensor</div>
<div class="tech-badge"><i class="fas fa-mobile-alt"></i> RemoteXY App</div>
<div class="tech-badge"><i class="fas fa-code"></i> Arduino IDE</div>
</div>
</section>
<section id="projects" class="section-padding container fade-in">
<h2 class="section-title">Project Showcase</h2>
<p class="section-subtitle">Simulation and diagrams included.</p>
<div class="project-grid">
<article class="project-card">
<div class="card-img-wrapper">
<img src="https://github.com/user-attachments/assets/b44dc2ca-e726-4ceb-9737-aa8ced78e630" alt="Door Control System Circuit">
</div>
<div class="card-body">
<h3 class="card-title">Door Control System</h3>
<p class="card-desc">
A smart security system combining a password-protected keypad, servo lock, and real-time temperature monitoring. Controllable via WiFi using RemoteXY.
</p>
<ul class="feature-list">
<li><i class="fas fa-lock"></i> <strong>Servo Lock:</strong> Keypad based entry</li>
<li><i class="fas fa-temperature-high"></i> <strong>Monitor:</strong> Live LCD Temp Display</li>
<li><i class="fas fa-wifi"></i> <strong>Remote:</strong> WiFi Control (ESP8266)</li>
</ul>
<div style="margin-bottom: 15px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color);">
<img src="https://github.com/user-attachments/assets/0590e0ae-2f38-4b80-b86b-34a1062f01a4" style="width: 100%; display: block;" alt="Remote Interface">
</div>
<div class="card-footer">
<a href="https://wokwi.com/projects/416190208386689025" target="_blank" class="btn btn-outline" style="width: 100%; justify-content: center;">
<i class="fas fa-play-circle"></i> Run Simulation
</a>
</div>
</div>
</article>
<article class="project-card">
<div class="card-img-wrapper">
<img src="https://github.com/user-attachments/assets/29eafe9f-e363-4dd9-bf78-581b333c776e" alt="LPG and Flame Detection Circuit">
</div>
<div class="card-body">
<h3 class="card-title">LPG & Flame Detection</h3>
<p class="card-desc">
A critical safety system for homes. It detects high gas concentrations or open flames and immediately triggers a buzzer alarm and activates a water pump.
</p>
<ul class="feature-list">
<li><i class="fas fa-biohazard"></i> <strong>Gas Leak:</strong> LPG Sensor Detection</li>
<li><i class="fas fa-fire-extinguisher"></i> <strong>Fire Safety:</strong> Auto Water Pump</li>
<li><i class="fas fa-volume-up"></i> <strong>Alert:</strong> Loud Buzzer Alarm</li>
</ul>
<div class="card-footer">
<a href="https://app.cirkitdesigner.com/project/09f0496c-3b04-47b2-a7fc-85ccd29e454e" target="_blank" class="btn btn-outline" style="width: 100%; justify-content: center;">
<i class="fas fa-play-circle"></i> Run Simulation
</a>
</div>
</div>
</article>
</div>
</section>
<section class="section-padding container fade-in" style="background: var(--card-bg); padding: 50px; border-radius: var(--radius); border: 1px solid var(--border-color);">
<h2 class="section-title">Circuit Connections</h2>
<p class="section-subtitle">Pin mappings for Arduino UNO</p>
[Image of Arduino Uno pinout diagram]
<div class="wiring-container">
<div class="wiring-box">
<h3><i class="fas fa-keyboard"></i> Keypad (4x4)</h3>
<table>
<tr><th>Keypad Pin</th><th>Arduino Pin</th></tr>
<tr><td>Row 1</td><td>Pin 13</td></tr>
<tr><td>Row 2</td><td>Pin 12</td></tr>
<tr><td>Row 3</td><td>Pin 11</td></tr>
<tr><td>Row 4</td><td>Pin 10</td></tr>
<tr><td>Col 1-4</td><td>Pin 9, 8, 7, 6</td></tr>
</table>
</div>
<div class="wiring-box">
<h3><i class="fas fa-cogs"></i> Door & Sensors</h3>
<table>
<tr><th>Component</th><th>Arduino Pin</th></tr>
<tr><td>Door Servo</td><td>Pin 3</td></tr>
<tr><td>Motion Servo</td><td>Pin 5</td></tr>
<tr><td>Temp Sensor</td><td>A2</td></tr>
<tr><td>Motion Sensor</td><td>Pin 4</td></tr>
<tr><td>LCD (I2C)</td><td>A4 (SDA), A5 (SCL)</td></tr>
</table>
</div>
<div class="wiring-box">
<h3><i class="fas fa-shield-alt"></i> Safety System</h3>
<table>
<tr><th>Component</th><th>Arduino Pin</th></tr>
<tr><td>LPG Sensor</td><td>A1</td></tr>
<tr><td>Flame Sensor</td><td>A5</td></tr>
<tr><td>Buzzer</td><td>Pin 7</td></tr>
<tr><td>Water Pump</td><td>Pin 2</td></tr>
</table>
</div>
</div>
</section>
<section class="section-padding container fade-in">
<h2 class="section-title">Setup Instructions</h2>
<div class="terminal-window">
<div style="margin-bottom: 10px; border-bottom: 1px solid #334155; padding-bottom: 10px;">
<span style="color: #ef4444;">●</span> <span style="color: #f59e0b;">●</span> <span style="color: #10b981;">●</span>
</div>
<div>
<span class="comment"># 1. Clone the repository</span><br>
<span class="cmd">git clone</span> https://github.com/kawshik-ornob8/Iot-Smart_home-Prroject<br><br>
<span class="comment"># 2. Open in Arduino IDE</span><br>
File > Open > <span style="color: #a5f3fc;">door_control_system/door_control.ino</span><br><br>
<span class="comment"># 3. Install Libraries (Sketch > Include Library > Manage Libraries)</span><br>
- Servo<br>
- Keypad<br>
- LiquidCrystal_I2C<br>
- RemoteXY<br><br>
<span class="comment"># 4. Upload</span><br>
Tools > Board: "Arduino Uno"<br>
Tools > Port: [Select COM Port]<br>
Click "Upload" (Right Arrow)
</div>
</div>
</section>
<footer class="fade-in">
<p>© 2026 Kawshik. Open Source Projects.</p>
<p style="margin-top: 10px;">
<a href="https://github.com/kawshik-ornob8/Iot-Smart_home-Prroject/issues" target="_blank">Report Issue</a>
</p>
</footer>
<script>
// Dark Mode Logic
const toggleBtn = document.getElementById('theme-toggle');
const icon = toggleBtn.querySelector('i');
if(localStorage.getItem('theme') === 'dark') {
document.documentElement.setAttribute('data-theme', 'dark');
icon.classList.replace('fa-moon', 'fa-sun');
}
toggleBtn.addEventListener('click', () => {
const isDark = document.documentElement.getAttribute('data-theme') === 'dark';
document.documentElement.setAttribute('data-theme', isDark ? 'light' : 'dark');
localStorage.setItem('theme', isDark ? 'light' : 'dark');
icon.classList.toggle('fa-moon');
icon.classList.toggle('fa-sun');
});
// Scroll Animation
const observer = new IntersectionObserver((entries) => {
entries.forEach(e => {
if(e.isIntersecting) {
e.target.classList.add('visible');
observer.unobserve(e.target);
}
});
}, { threshold: 0.1 });
document.querySelectorAll('.fade-in').forEach(el => observer.observe(el));
</script>
</body>
</html>