PCBs & Hardware·April 15, 2026·4 min read

AQI Monitor — ESP32 & KiCad

Multi-sensor environmental monitor with KiCad layout & Gerber files.

AQI Monitor — ESP32 & KiCad
MCU
ESP32
Sensors
MQ135 · BME280 · PMS
Display
0.96" I2C OLED
Output
Gerbers + Enclosure

Pipeline & core implementation

Architecture Pipeline
MQ135 + PMSESP32AQI CalcOLED + Buzzer
What broke first: MQ135 analog readings drifted heavily during first boot; adding a warm-up baseline calibration and moving averages stabilized AQI alerts.
aqi_loop.ino · C++
float readGasBaseline(int pin) {
  long sum = 0;
  for (int i = 0; i < 16; i++) sum += analogRead(pin);
  return sum / 16.0f;
}

Sensor fusion & KiCad production

Built an affordable environmental sensing node around an ESP32-WROOM-32 integrating an MQ135 gas sensor, PMS5003 laser particulate counter (PM2.5/PM10), BME280 ambient temperature/humidity/pressure module, a 0.96" I2C OLED screen, and a piezoelectric warning buzzer.

2-layer routing & calibration

Routed cleanly on a 2-layer KiCad board (wire.png & schematic.png) keeping the high-current PMS5003 fan feed separated from analog ADC sensing traces. Firmware compensates MQ135 readings with an initial heater warm-up average before sounding threshold alerts.

Full BOM & fabrication package

Total component BOM sits around ₹2,445 per unit with exported Gerbers, drill maps, and enclosure dimensions documented in the project folder.

Measured benchmarks

BOM cost~₹2,445ContinuousProduction Gerbers ready

Project status & checklist

● Completed
Done
  • Full KiCad schematic, routed 2-layer PCB & fabrication Gerbers
  • ESP32 firmware fusing MQ135 warm-up calibration, BME280 & PMS5003
  • Local OLED readout, piezo threshold buzzer & itemized BOM
Needs to be done

All planned milestones complete.