
Building a Carbon Monoxide Detector
Build a circuit that senses carbon monoxide (CO) — the invisible, odourless gas from any incomplete combustion — and raises an alarm when it rises. An MQ-7 sensor gives the Arduino a reading that climbs with CO; the code compares it to a clean-air baseline and triggers a buzzer and red LED. A great way to learn gas sensing — but read the safety note: this is a demonstration, NOT a certified life-safety CO alarm.
নির্দেশ
Wire the sensor, buzzer and LED
Wire the sensor, buzzer and LED
On the breadboard: MQ-7 VCC to Arduino 5V, GND to GND, and its analog output (AOUT) to Arduino A0. Active buzzer + to pin 8, - to GND. Red LED anode to pin 7 through a 330 Ω resistor, cathode to GND.
ইস চরণ কে লিএ সামগ্রী:
Arduino Uno R31 টুকরা
Carbon Monoxide Sensor - MQ-71 টুকরা
Active Buzzer Module (5V, 5-Pack)1 টুকরা
LED - Basic 5mm1 টুকরা
Resistor 330 Ohm 1/6 Watt PTH - 20 pack1 টুকরা
Breadboard1 টুকরা
Jumper Wires (Male-to-Male)1 প্যাকConnect and open the IDE
Connect and open the IDE
Plug the Arduino into your computer with the USB cable, open the Arduino IDE, and select Arduino Uno and its serial port.
ইস চরণ কে লিএ সামগ্রী:
USB-B Cable1 টুকরাআবশ্যক উপকরণ:
Computer with Arduino IDEUpload the detector sketch
Upload the detector sketch
Paste this sketch and upload. It warms the sensor for two minutes, records a clean-air baseline, then sounds the buzzer and lights the LED whenever the reading climbs above that baseline.
Warm up, baseline and test
Warm up, baseline and test
Power it in fresh air and let the 2-minute warm-up set the clean-air baseline (a brand-new MQ-7 also needs a longer 24–48 h burn-in before its readings settle). Then hold a small CO source nearby in a ventilated room — the smoke from a just-blown-out match works — and the buzzer and LED should trigger. Change ALARM_MARGIN to make it more or less sensitive.
Important safety limits
Important safety limits
This is a LEARNING project and, at best, a supplementary indicator — it is NOT a certified life-safety device. A hobby MQ-7 gives a relative reading, not a calibrated ppm; it drifts over time and needs regular re-baselining, and it also responds to smoke and other gases. Carbon monoxide is invisible, odourless and can be fatal: for real protection always use a UL- or EN-certified CO alarm. Never rely on this circuit to keep anyone safe.
সামগ্রী
8- 1 টুকরা$27.00
- $7.00
- প্লেসহোল্ডর
- 1 টুকরা$1.00
- $2.00
- 1 টুকরা$10.00
- $6.00
আবশ্যক উপকরণ
1- প্লেসহোল্ডর
সম্পর্কিত ব্লুপ্রিন্ট
এই ব্লুপ্রিন্টগুলি জ্ঞান ভাগ করে — কৌশল, উপকরণ বা নীতি
Related blueprints
Other builds that share materials, tools, or techniques with this one.
CC0 পব্লিক ডোমেন
যহ ব্লূপ্রিংট CC0 কে তহত জারী কিযা গযা হৈ। আপ বিনা অনুমতি মাঁগে ইস কার্য কো কিসী ভী উদ্দেশ্য কে লিএ কॉপী, সংশোধিত, বিতরিত ঔর উপযোগ করনে কে লিএ স্বতংত্র হৈং।
উনকে ব্লূপ্রিংট কে মাধ্যম সে উত্পাদ খরীদকর মেকর কা সমর্থন করেং জহাঁ বে মেকর কমীশন কমাতে হৈং জো বিক্রেতাওং দ্বারা নির্ধারিত হোতা হৈ, যা ইস ব্লূপ্রিংট কা নযা সংস্করণ বনাএঁ ঔর রাজস্ব সাঝা করনে কে লিএ ইসে অপনে ব্লূপ্রিংট মেং কনেক্শন কে রূপ মেং শামিল করেং।





