গ্যাস চুলার ফ্লেম গার্ড — আগুন নিভলে গ্যাস কেটে দেয়Gas-Stove Flame Guard
রান্নাঘরের নীরব বিপদ হলো আগুন নিভে গিয়েও গ্যাস চলতে থাকা। আগুন থাকলে চুলা চলে; নিভলেই রিলে গ্যাস কেটে দেয় আর বাজনা বাজতে থাকে — নব শূন্যে ফিরিয়ে আনলে তবেই থামে।
The silent kitchen danger is a burner that blew out while the gas kept flowing. Cooking with flame is fine; cooking without one drops the relay, cuts the line and screams until the knob returns to zero.
সার্কিট ডায়াগ্রাম · Circuit diagram
যা যা লাগবে · Parts you need
- 1 × Arduino Uno R3 Arduino Uno
- 1 × Flame sensor (IR) আগুন সেন্সর (IR)
- 1 × Knob (potentiometer) নব (Potentiometer)
- 1 × Relay module (5V, 1 channel) রিলে মডিউল (5V, ১ চ্যানেল)
- 1 × Solenoid door lock (12 V) সোলেনয়েড দরজার লক (12 V)
- 1 × Buzzer (5 V) Buzzer (বাঁশি, 5 V)
- 15 × Jumper wires জাম্পার তার
তার লাগানো · Wiring
| Flame sensor (IR) VCC | → | Arduino Uno R3 5V |
| Flame sensor (IR) GND | → | Arduino Uno R3 GND |
| Flame sensor (IR) DO | → | Arduino Uno R3 D2 |
| Flame sensor (IR) AO | → | Arduino Uno R3 A1 |
| Knob (potentiometer) 1 | → | Arduino Uno R3 5V |
| Knob (potentiometer) 2 | → | Arduino Uno R3 GND |
| Knob (potentiometer) W | → | Arduino Uno R3 A0 |
| Relay module (5V, 1 channel) VCC | → | Arduino Uno R3 5V |
| Relay module (5V, 1 channel) GND | → | Arduino Uno R3 GND |
| Relay module (5V, 1 channel) IN | → | Arduino Uno R3 D7 |
| Relay module (5V, 1 channel) COM | → | Arduino Uno R3 5V |
| Relay module (5V, 1 channel) NO | → | Solenoid door lock (12 V) + |
| Solenoid door lock (12 V) - | → | Arduino Uno R3 GND.3 |
| Buzzer (5 V) + | → | Arduino Uno R3 D8 |
| Buzzer (5 V) - | → | Arduino Uno R3 GND.3 |
Code (Arduino C++)
// Gas-stove flame guard: the silent killer in every kitchen is a burner that
// blew out while the gas kept flowing. The flame sensor sees fire; the knob
// (a pot) says whether you are cooking at all. Cooking with flame = valve
// open, all good. Cooking WITHOUT flame = the relay drops, the solenoid cuts
// the line, and the buzzer screams until you turn the knob back to zero.
void setup() {
Serial.begin(9600);
pinMode(2, INPUT);
pinMode(7, OUTPUT); pinMode(8, OUTPUT);
}
void loop() {
bool cooking = analogRead(A0) > 512; // knob past half
bool flame = digitalRead(2) == HIGH; // sensor sees the fire
static bool alarm = false;
if (!cooking) alarm = false;
if (cooking && !flame) alarm = true;
bool flow = cooking && flame && !alarm;
digitalWrite(7, flow ? HIGH : LOW);
digitalWrite(8, alarm ? HIGH : LOW);
Serial.print("Knob: "); Serial.print(cooking ? "on" : "off");
Serial.print(" | Flame: "); Serial.print(flame ? 1 : 0);
Serial.print(" | Valve: ");
Serial.println(flow ? "open" : (alarm ? "CUT (flame lost)" : "closed"));
delay(300);
}
আরো project · More projects
- সিঁড়ির বাতি নিজে নিজে বন্ধ হয় — PIR সেন্সর দিয়েStair light that switches itself off (PIR + lamp)
- ESP32 মোশন অ্যালার্ট — PIR দেখলে ক্লাউডে খবর, বাসায় বাজারESP32 motion alert (PIR pings the cloud, buzzer at home)
- লঞ্চ নিরাপত্তা মনিটর — ওজন, কাত আর পানির অ্যালার্মLaunchGuard: boat safety monitor (load, tilt, flood)
- লেজার ট্রিপওয়্যায়ার সিকিউরিটি অ্যালার্মLaser tripwire security alarm