Skip to the content
2 layers71.8 × 62.2 mmAir quality pcb v7, the printed circuit board in 3D

Seventh iteration: ESP8266 → ESP32-C3 (native USB, no UART bridge), fixes from the v6 design review, right-angle switches with longer actuators, a STEMMA QT port for optional sensors, and charge-status sensing.

Size
71.8 × 62.2 mm
Copper layers
2
Thickness
1.6 mm
Parts
85
Nets
51
Pads
271
Tracks, vias
607, 156
Pours
12
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
24 Sep 2026
Updated
8 Oct 2026

Overview

Air quality pcb v7 is an open-source printed circuit board by NilsEngelbach, from the NilsEngelbach/air-quality-pcb repository on GitHub. It is a 2-layer board of 71.8 × 62.2 mm with 85 parts on 51 nets, routed with 607 tracks and 156 vias.

It is built around the ESP32-C3-WROOM-02-N4, BME688 and MT3608, with the USBLC6-2SC6, AP2112K-3.3TRG1 and MCP73831T-2ACI/OT-HXY among its other parts. Its parts include 29 resistors, 21 capacitors, 8 transistors, 7 ICs and 4 diodes. It belongs with the sensors and measurement boards and the ESP32 and RISC-V boards of this library.

Main components

12

README

v7/README.md

Air Quality Checker — PCB v7 (rev G)

Seventh iteration: ESP8266 → ESP32-C3 (native USB, no UART bridge), fixes from the v6 design review, right-angle switches with longer actuators, a STEMMA QT port for optional sensors, and charge-status sensing.

State: schematic complete, ERC 0 errors / 0 warnings (erc_v7.rpt). Board synced with the schematic (drc_v7_unrouted.rpt: schematic parity clean; the remaining items are unrouted nets, the 7 board-only footprints that v6 already reported, and silkscreen at the new cuts). The outline has its v7 cuts (antenna notch, bottom flat, sensor island). Placement is in progress; routing is open. Start with layout_plan.md; the rules behind it are in layout_constraints.md, and every finding with its validation checklist is in design_review.md.


What changed vs v6

#ChangeWhy (finding)
1U1 ESP-12F → ESP32-C3-WROOM-02-N4 (18 × 20 mm, 4 MB)newer MCU, native USB, 5 µA deep sleep (F7–F10)
2CP2102N block removed: U2, C4, C5, Q1, Q2, R6, R7; JP1 removed; no test pads (boards are ordered assembled; recovery = BOOT + RESET over USB)the C3 has USB Serial/JTAG built in; RTC-timer wake needs no GPIO16→RST (F8)
3USB D± via R24/R25 22 Ω to IO19/IO18Espressif checklist (F8)
4Strap pull-ups IO2 (R2), IO8 (R5), IO9 (R3); C1 100 nF → 1 µF (EN RC 10 k / 1 µF); SW1 on EN; SW2 on IO9ESP32-C3 boot and power-up requirements (F9)
5SW3 drives P-FET Q5 (+ R26 10 MΩ) instead of switching the battery currentPCM12 was rated 0.3 A, peaks ≈ 0.75 A (F1)
6Servo-rail load switch Q6/Q7 (+ R27, R28, C22) in front of the MT3608in v6 a disabled boost still fed VSYS → L1 → D4 → servo (F2)
7Boost: C18 22 µF at U7 IN (BOOST_IN), C21 22 µF 2nd output cap, C20 22 µF VSYS bulk, D4 SS34 → PMEG4030ER (SOD-123W)MT3608 layout rules, smaller hot loop (F6)
8SW3 → C&K OS102011MA1QN1, SW4 → C&K OS103011MA7QP1 (right-angle THT, 4 mm actuator)v6 actuators reached only 0.55–0.71 mm past the edge (F11)
9R4 10 k → 100 k (BOOST_EN pull-down); VBUS_SENSE divider swapped to 47.5 k / 22.1 k → ESP ADC IO1(F10, F17)
10Net classes Power 0.8 mm / Supply 0.5 mm / USB 0.25 mmv6 was 0.2 mm everywhere (F5)
11Solid zone connection on the GND pads of U1/U3/U4/U7v6 starved thermals (F4)
12Stock RF_Module:ESP32-C3-WROOM-02, board minimum drill lowered to 0.2 mm; SW4 uses the vendor (SamacSys) footprint SamacSys_Parts:OS103011MA7QP10.2 mm EPAD via drills (F15) / no stock SP3T angled footprint (F11)
13Charger R14 2.2 k → 3.3 k (≈ 455 → 303 mA)thermal regulation and board heating near the sensor (F12)
14D2 CHG LED → Kingbright KPA-3010SGC (green, side-view), on the board edge like D3the top-view 0805 was invisible inside the enclosure (F23)
15STEMMA QT port J5 (JST SH 4P): switched 3V3 (Q8, IO2), bus isolation (Q9/Q10 BSS138 + R29/R30), ESD (U8 USBLC6), C23optional add-on sensors, e.g. a real CO₂ sensor (SCD41), with zero sleep current (F21)
16Charge status → IO20 (CHG_DET) via R31/R32 divider from the charger's STAT pinfirmware can report "charging/done" (F22)
17BME688 I²C address 0x77 → 0x76 (SDO to GND)keeps 0x77 free for common add-on breakouts (F24)
18Board outline: antenna notch, bottom flat, sensor island slot; title block / silkscreen rev G(F7, F13, F18)

Decisions: LDO stays AP2112K (F14); batteries with built-in protection are used, so no protection circuit (F19); BOOT/RESET buttons are internal only.

Pin map (ESP32-C3-WROOM-02)

GPIONetFunction
IO0VBAT_SENSEADC1_CH0, divider 1 M / 270 k (4.2 V → 0.89 V, use 2.5 dB attenuation)
IO1VBUS_SENSEADC1_CH1, 5 V → 1.59 V (USB present)
IO2QT_PWR_NSTEMMA QT power, active low (strap pin, R2 10 k pull-up → port off at reset and in sleep)
IO3MODE_ASW4 POS1 → LOW = WiFi OFF
IO4MODE_BSW4 POS3 → LOW = CONTINUOUS (both HIGH = SPARSE)
IO5SERVO_PWMservo signal via R17
IO6 / IO7SDA / SCLI²C: BME688 (0x76) + STEMMA QT port (through Q9/Q10)
IO8STATUS_LED_Nblue side LED D3, active-low; strap (10 k pull-up)
IO9BOOTSW2, strap (10 k pull-up)
IO10BOOST_ENHIGH = servo rail on (Q6) + MT3608 enabled
IO18 / IO19USB D− / D+native USB Serial/JTAG
IO20CHG_DETcharger STAT via divider: LOW = charging (only valid with VBUS present), HIGH = done
IO21—not connected (spare)

Power architecture

text
USB-C VBUS ─┬─► MCP73831 (303 mA) ─► VBAT_RAW ◄── Q4 (reverse-polarity) ◄── LiPo J4
            │        └─ STAT ─► D2 (green) / R31-R32 ─► IO20
            │                        │
            │                  Q5 (SW3 drives the gate)
            │                        ▼
            └─►|D1|──► VSYS ◄── Q3 (USB priority) ── VBAT
                        │
                        ├─► AP2112K-3.3 ─► +3V3 (ESP32-C3, BME688, LED) ─► Q8 (IO2) ─► QT_3V3 ─► J5
                        └─► Q6 (BOOST_EN via Q7) ─► BOOST_IN ─► MT3608 ─► SERVO_5V ─► J3

Sleep-floor estimate: ≈ 66 µA (ESP32-C3 5 µA + AP2112K 55 µA + VBAT divider 3.3 µA + BME688 ~2 µA + R26 0.4 µA; servo rail and QT port 0). The v6 figure of 80 µA missed the servo rail (F2, F20). Measure before updating the battery tables.

Firmware port (air-quality-checker repo)

  • PlatformIO: platform = espressif32, board = esp32-c3-devkitm-1 (or a custom board JSON), build_flags = -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=1. Keep boschsensortec/bsec2@1.10.2610: it ships src/esp32c3/libalgobsec.a (F16).
  • BME688 address is now 0x76 (BME68X_I2C_ADDR_LOW) — update the sensor init.
  • ESP.deepSleep() → esp_sleep_enable_timer_wakeup() + esp_deep_sleep_start(); rtcData → RTC_DATA_ATTR. Optional: wake on a mode-switch change with esp_deep_sleep_enable_gpio_wakeup() on IO3/IO4.
  • Pins as above. Note the changes: LED now IO8, BOOST_EN now IO10 (keep ≥ 100 ms before a move), mode pins IO3/IO4, servo IO5, I2C IO6/IO7.
  • STEMMA QT: drive IO2 LOW to power the port, wait for the add-on sensor's start-up time, use it, then set IO2 back to input/HIGH before deep sleep (R2 holds it off). Never leave it LOW across sleep.
  • Charge status: charging = VBUS_SENSE > ~1.2 V && digitalRead(20) == LOW; done = VBUS present && HIGH.
  • ADC: analogSetPinAttenuation(0, ADC_2_5db), analogReadMilliVolts(0) / 0.2126 → VBAT.
  • The USB console disappears during deep sleep; log to LittleFS when debugging sleep.
  • Re-provisioning without reachable buttons: BOOT/RESET are internal. Add a switch gesture instead, e.g. "SW4 moved OFF → CONTINUOUS → OFF → CONTINUOUS within 5 s" (IO3/IO4 can wake the chip) forces the setup portal. The BOOT + RESET path stays as the service/recovery path with the enclosure open. Update the user documentation accordingly.

Files

FilePurpose
air-quality-pcb-v7.kicad_pro/.kicad_sch/.kicad_pcbv7 project (ERC clean; board synced with the cuts, placement in progress)
SamacSys_Parts.pretty/, fp-lib-tablevendor footprint for SW4 (OS103011MA7QP1, from the Mouser / SamacSys Library Loader)
design_review.mdfindings F1–F24 with evidence, sources and validation checklists
layout_plan.mdstep-by-step placement and routing plan with coordinates
layout_constraints.mdthe rules behind it: antenna, boost loop, edge overhang, widths
bom_kicad_raw.csv / bom_pcbway_v7.csvBOM (raw / PCBWay: 43 lines, 78 placements, incl. 2 THT switches)
schematic_v7.pdfplotted schematic
erc_v7.rpt / drc_v7_unrouted.rptERC (clean) / DRC with schematic parity (expected: unrouted only)

Next steps

  1. Finish placement per layout_plan.md (D2 was re-added in the staging area because its footprint changed).
  2. Route (plan step 8), then DRC to zero and the pre-order checklist.
  3. Port the firmware (above), then work through the validation checklists in design_review.md.

Parts

85
QtyValueFootprintReferences
910kResistor_SMD:R_0805_2012MetricR1, R2, R3, R5, R18, R19, R29, R30, R31
7100nFCapacitor_SMD:C_0805_2012MetricC3, C8, C12, C14, C15, C17, C22
5DMG2305UXPackage_TO_SOT_SMD:SOT-23Q3, Q4, Q5, Q6, Q8
410uFCapacitor_SMD:C_0805_2012MetricC2, C11, C16, C23
422uFCapacitor_SMD:C_0805_2012MetricC18, C19, C20, C21
4M2.5MountingHole_2.7mm_M2.5H1, H2, H3, H4
3100kResistor_SMD:R_0805_2012MetricR4, R9, R27
34.7uFCapacitor_SMD:C_0805_2012MetricC6, C7, C9
3FiducialFiducial_1mm_Mask2mmFID1, FID2, FID3
21uFCapacitor_SMD:C_0805_2012MetricC1, C10
222RResistor_SMD:R_0805_2012MetricR24, R25
247.5kResistor_SMD:R_0805_2012MetricR12, R28
25.1kResistor_SMD:R_0805_2012MetricR10, R11
2BSS138Package_TO_SOT_SMD:SOT-23Q9, Q10
2USBLC6-2SC6Package_TO_SOT_SMD:SOT-23-6U6, U8
1100RResistor_SMD:R_0805_2012MetricR17
1100uFCapacitor_SMD:CP_Elec_6.3x5.4C13
110MResistor_SMD:R_0805_2012MetricR26
110uHInductor_SMD:L_Sunlord_SWPA4030SL1
111kResistor_SMD:R_0805_2012MetricR23
118kResistor_SMD:R_0805_2012MetricR32
11MResistor_SMD:R_0805_2012MetricR20
11kResistor_SMD:R_0805_2012MetricR15
122.1kResistor_SMD:R_0805_2012MetricR13
1220RResistor_SMD:R_0805_2012MetricR16
1270kResistor_SMD:R_0805_2012MetricR21
12N7002Package_TO_SOT_SMD:SOT-23Q7
13.3kResistor_SMD:R_0805_2012MetricR14
182kResistor_SMD:R_0805_2012MetricR22
1AP2112K-3.3Package_TO_SOT_SMD:SOT-23-5U4
1B5819WDiode_SMD:D_SOD-123D1
1BME688Package_LGA:Bosch_LGA-8_3x3mm_P0.8mm_ClockwisePinNumberingU5
1BOOTButton_Switch_SMD:SW_Push_1P1T_NO_CK_KMR2SW2
1CHG-GREENLED_SMD:LED_Kingbright_KPA-3010_3x2x1mmD2
1ESP32-C3-WROOM-02RF_Module:ESP32-C3-WROOM-02U1
1LiPoConnector_JST:JST_PH_B2B-PH-K_1x02_P2.00mm_VerticalJ4
1MCP73831Package_TO_SOT_SMD:SOT-23-5U3
1MT3608Package_TO_SOT_SMD:SOT-23-6U7
1PMEG4030ERDiode_SMD:Nexperia_CFP3_SOD-123WD4
1POWERButton_Switch_THT:SW_Slide_SPDT_Angled_CK_OS102011MA1QSW3
1RESETButton_Switch_SMD:SW_Push_1P1T_NO_CK_KMR2SW1
1SERVOConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ3
1STATUSLED_SMD:LED_Kingbright_KPA-3010_3x2x1mmD3
1STEMMA_QTConnector_JST:JST_SH_SM04B-SRSS-TB_1x04-1MP_P1.00mm_HorizontalJ5
1USB-CConnector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12J1
1WIFI_MODESamacSys_Parts:OS103011MA7QP1SW4

More from NilsEngelbach/air-quality-pcb

2
  • 2 layers72 × 72 mmAir quality pcb v6, the printed circuit board in 3D

    Air quality pcb v6

    NilsEngelbach/air-quality-pcb

    Seventh iteration: ESP8266 → ESP32-C3 (native USB, no UART bridge), fixes from the v6 design review, right-angle switches with longer actuators, a STEMMA QT port for optional sensors, and charge-status sensing.

    72 parts
  • 2 layers72 × 72 mmAir quality pcb v2, the printed circuit board in 3D

    Air quality pcb v2

    NilsEngelbach/air-quality-pcb

    Seventh iteration: ESP8266 → ESP32-C3 (native USB, no UART bridge), fixes from the v6 design review, right-angle switches with longer actuators, a STEMMA QT port for optional sensors, and charge-status sensing.

    51 parts

Similar boards

  • 4 layers118 × 60 mmHeron clock, the printed circuit board in 3D

    Heron clock

    Austin-Hunter1/HERON

    2026-2027 Graduate Project HERON:

    112 parts1
  • 2 layers50.8 × 20.3 mmATF150x uDEV, the printed circuit board in 3D

    ATF150x uDEV

    bkw777/ATF150x_uDEV

    Tiny dev board for ATF1502AS(V)(L)-xAx44 and ATF1504AS(V)(L)-xAx44

    14 parts1
  • 4 layers57.7 × 157 mmHigh power, the printed circuit board in 3D

    High power

    ShaneTWilliams/capstone

    Remotely-operated quadcopter hardware, firmware and software

    436 parts3
  • 4 layers53.5 × 65.5 mmChipigniteExplain, the printed circuit board in 3D

    ChipigniteExplain

    efabless/chipignite_discover

    This FPGA experimentation and development board was developped for efabless chipignite workshops and labs to serve as an easy to use experimentation board and stepping stone towards ASIC digital design, allowing for…

    251 parts2Apache-2.0
  • 4 layers84 × 78 mmWaferspace main pcb, the printed circuit board in 3D

    Waferspace main pcb

    mole99/waferspace-main-pcb

    Main PCB for wafer.space FABulous FPGA

    276 parts2Apache-2.0
  • 6 layers36.5 × 36.5 mmH743 Ardupilot, the printed circuit board in 3D

    H743 Ardupilot

    OliviezGit/FC_01

    Le dossier composants contient les fiches techniques PDF, bibliothèques locales, STEP, vues de contrôle et la nomenclature France du 27/09/2026.

    156 partsCERN-OHL-S-2.0
  • 4 layers104.5 × 81 mmTinytapeout demo, the printed circuit board in 3D

    Tinytapeout demo

    KiCad/kicad-source-mirror

    This is an active mirror of the KiCad development branch, which is hosted at GitLab (updated every time something is pushed). Pull requests on GitHub are not accepted or watched.

    309 parts3.1kGPL-3.0

Questions

How big is the Air quality pcb v7 PCB?

It measures 71.8 × 62.2 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Air quality pcb v7 use?

85 parts, built around the ESP32-C3-WROOM-02-N4, BME688, MT3608 and USBLC6-2SC6. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Air quality pcb v7 KiCad files?

From the NilsEngelbach/air-quality-pcb repository on GitHub, at the commit this page was made from: the board is v7/air-quality-pcb-v7.kicad_pcb and its schematic v1/air-quality-pcb.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Air quality pcb v7 design in my own project?

Its repository states no licence, so its author keeps all rights: ask NilsEngelbach before reusing the design.