
Building an Air-Quality Monitor
Build a traffic-light air-quality monitor. An MQ-135 sensor responds to smoke, fumes, alcohol, CO2 and other gases; the Arduino compares the reading to clean air and lights a green, yellow or red LED for good, moderate or poor air. A hands-on way to watch indoor air change — with the honest limit that it shows RELATIVE quality, not a calibrated ppm figure.
คำแนะนำ
Wire the sensor and three LEDs
Wire the sensor and three LEDs
On the breadboard: MQ-135 VCC to Arduino 5V, GND to GND, and its analog output (AOUT) to A0. Wire three LEDs — ideally green, yellow and red — to pins 5, 6 and 7, each through a 330 Ω resistor to GND (long leg to the pin).
วัสดุสำหรับขั้นตอนนี้:
Arduino Uno R31 ชิ้น
MQ-135 Air Quality Sensor Module1 ชิ้น
LED - Basic 5mm (25 pack)1 แพ็ค
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 traffic-light sketch
Upload the traffic-light sketch
Paste this sketch and upload. It warms the sensor, records a clean-air baseline, then lights green for good air, yellow for moderate and red for poor. Open the Serial Monitor to see the raw reading.
Warm up, baseline and test
Warm up, baseline and test
Run it in fresh air and let the 2-minute warm-up set the baseline (a new MQ-135 also needs a 24–48 h burn-in to settle). Then test it: breathe on it, spray a little deodorant nearby, or hold a blown-out match's smoke close — it should climb to yellow then red, and return to green in clean air. Tune MODERATE and POOR to change the thresholds.
Know the limits
Know the limits
The MQ-135 reacts to many gases at once and gives a RELATIVE reading, not a calibrated CO2 or ppm value — despite what some tutorials claim, real ppm needs proper calibration against known concentrations. It also drifts and needs re-baselining. Treat this as an air-change indicator and a great sensing project, not a laboratory instrument.
วัสดุ
7- 1 ชิ้น$27.00
- ตัวยึดตำแหน่ง
- $4.00
- $2.00
- 1 ชิ้น$10.00
- $6.00
เครื่องมือที่จำเป็น
1- ตัวยึดตำแหน่ง
บลูพริ้นท์ที่เกี่ยวข้อง
บลูพริ้นท์เหล่านี้แบ่งปันความรู้ — เทคนิค วัสดุ หรือหลักการ
Related blueprints
Other builds that share materials, tools, or techniques with this one.
CC0 สาธารณสมบัติ
พิมพ์เขียวนี้เผยแพร่ภายใต้ CC0 คุณสามารถคัดลอก แก้ไข แจกจ่าย และใช้งานผลงานนี้เพื่อวัตถุประสงค์ใดก็ได้ โดยไม่ต้องขออนุญาต
สนับสนุนเมกเกอร์โดยซื้อสินค้าผ่านพิมพ์เขียวของพวกเขา ซึ่งพวกเขาจะได้รับ ค่าคอมมิชชันเมกเกอร์ ที่ผู้ขายกำหนด หรือสร้างเวอร์ชันใหม่ของพิมพ์เขียวนี้และรวมเป็นการเชื่อมต่อในพิมพ์เขียวของคุณเพื่อแบ่งรายได้





