1. Assemble the Circuit
Mq-135
A0 to A0
VCC to 5v
GND to GND
RGB LED
R to 11
G to 10
B to 9
GND to GND
2. Upload the Code.
The Mq-135 sensor will measure the air quality and set the RGB to a color, feel free to change the color and the elseif statments.
EXPANDED TECHNICAL DETAILS
Low-Cost Environmental Health Monitoring
This project provides an accessible solution for monitoring indoor air pollution and hazardous gas concentrations.
- MQ-135 Gas Correlation: The Arduino monitors the analog output of an MQ-135 sensor. The firmware applies a logarithmic conversion to estimate the CO2, Alcohol, or Smoke concentration in parts per million (PPM).
- Traffic-Light Health Indicator: Uses three LEDs (Green, Yellow, Red) to categorize the air quality. Green for "Fresh," Yellow for "Warning," and Red for "Hazardous," providing an instant visual health check for families.
Reliability
- 60-Second Preheat Timer: Includes an LCD countdown on startup, ensuring the MQ-135's internal heater reaches its operational temperature for accurate data reading.
ข้อมูล Frontmatter ดั้งเดิม
title: "Affordable air quality sensor"
description: "A Arduino Air quality sensor using an MQ-135 Sensor and a RGB LED"
author: "eaglestrike66"
category: ""
tags:
- "environmental sensing"
- "health"
- "data collection"
views: 1550
likes: 2
price: 870
difficulty: "Easy"
components:
- "1x RGB Diffused Common Cathode"
- "1x Solderless Breadboard Half Size"
- "1x Plastic Enclosure, Project Box"
- "1x Arduino UNO"
- "1x Jumper wires (generic)"
- "1x MQ-135"
tools: []
apps:
- "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "c2f432f4d93c3f3d6d3a82532c0fed754922a39e3256b84afb303591d1ea72e6"
encryptedPayload: "U2FsdGVkX1+vopNiJy3Sl5Ci+MAi4LadZ1iU1ASLhknOsEsBpjFopZgr9EuiPyG63n/62oNJpcI9/BjIDEBK4ly+1KWKaF8WVk0rzufXCz8="
seoDescription: "Build an affordable Arduino air quality sensor using MQ-135 Sensor and RGB LED. Simple DIY project for environmental monitoring."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/affordable-air-quality-sensor-7cdd11_cover.jpg"
lang: "en"