Tekko BDSimSimulatorProjects

গ্যাস চুলার ফ্লেম গার্ড — আগুন নিভলে গ্যাস কেটে দেয়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.

▶ ফ্রি চালিয়ে দেখো / Run it free Parts অর্ডার করো (WhatsApp)

সার্কিট ডায়াগ্রাম · Circuit diagram

Gas-Stove Flame Guard circuit diagram — Arduino Uno R3, Flame sensor (IR), Knob (potentiometer), Relay module (5V, 1 channel), Solenoid door lock (12 V), Buzzer (5 V), Jumper wires

যা যা লাগবে · Parts you need

তার লাগানো · 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