Skip to the content
2 layers60 × 48.5 mmParticulate matters, the printed circuit board in 3D

Particulate matters

gertjana/particulate-matters

Measuring fine dust on a bike

Size
60 × 48.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
5
Nets
15
Pads
49
Tracks, vias
65, 4
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
22 Feb 2018
Updated
10 Jul 2025

Overview

Particulate matters is an open-source printed circuit board by gertjana, from the gertjana/particulate-matters repository on GitHub. It is a 2-layer board of 60 × 48.5 mm with 5 parts on 15 nets, routed with 65 tracks and 4 vias.

It belongs with the ESP32 boards of this library.

README

README.md

Particulate Matter Bike Monitor

This project is a mobile air quality monitoring system designed to be mounted on a bicycle. It measures fine particulate matter (PM1, PM2.5, and PM10) and records GPS location data during your commute. The collected data is stored locally on an SD card and displayed in real-time on an OLED screen, enabling you to create heatmaps of air pollution along your cycling routes.

Features

  • Real-time air quality monitoring: Measures PM1, PM2.5, and PM10 concentrations using the BMV080 particulate matter sensor.
  • GPS tracking: Captures latitude, longitude, and timestamp for each measurement.
  • Local data storage: Saves measurements to SD card with date-based file organization.
  • Real-time display: Shows current readings and GPS coordinates on an OLED display.
  • Sensor health monitoring: Detects when the sensor is obstructed and displays warnings.

Hardware Requirements

  • Arduino-compatible board (ESP32 recommended for SD card support)
  • BMV080 Particulate Matter Sensor (I2C)
  • GPS module (compatible with TinyGPS++)
  • OLED Display (SSD1306, 128x32)
  • SD Card Module (SPI)
  • Battery pack
  • Bicycle mounting hardware

Pin Configuration

  • I2C (Wire): SDA, SCL - for BMV080 sensor and OLED display
  • SPI (SD Card): CS:44, MOSI:9, MISO:8, CLK:7
  • GPS (Software Serial): TX:3, RX:2

System Architecture

The system operates on a 10-second measurement interval and includes:

  1. Data Collection: Reads PM1, PM2.5, PM10, and GPS coordinates
  2. Data Processing: Packages data into JSON format
  3. Local Storage: Saves to SD card with date-based filenames
  4. Real-time Display: Shows current readings on OLED screen

System Architecture

Data Format

Each measurement is stored as a JSON object with the following structure:

json
{
  "pm": {
    "pm1": 15,
    "pm2.5": 25,
    "pm10": 45,
    "obstructed": false
  },
  "gps": {
    "date": "15-12-2024",
    "time": "14:30:25",
    "latitude": "52.12345678",
    "longitude": "4.87654321"
  }
}

File Organization

Data is stored on the SD card with the following structure:

  • Files are named by date: DD-MM-YYYY.txt
  • Each line contains one JSON measurement
  • Files are created automatically when data is available

Setup

  1. Clone this repository.
  2. Install required libraries:
    • SparkFun_BMV080_Arduino_Library
    • TinyGPSPlus
    • ArduinoJson
    • Adafruit_GFX
    • Adafruit_SSD1306
  3. Connect hardware according to pin configuration
  4. Insert formatted SD card
  5. Upload dust_sensor_new/dust_sensor_new.ino to your Arduino board
  6. Mount the device on your bike and power it up before your ride

Debug Mode

The system includes comprehensive debug output when DEBUG is defined. This includes:

  • SD card information (type, size, free space)
  • Sensor initialization status
  • GPS data processing
  • File writing operations

To enable debug mode, ensure #define DEBUG is uncommented in the code.

Data Analysis

Local Analysis

  • Data files can be read directly from the SD card
  • JSON format makes it easy to parse with any programming language
  • Each measurement includes timestamp and location data

Heatmap Generation

For setting up and using the heatmap visualization, see heatmap/README.md

See example.md for sample data format and structure.

License

MIT License

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Parts

5
QtyValueFootprintReferences
1XIAO-ESP32-S3-DIPSeeed Studio XIAO Series Library:XIAO-ESP32S3-DIPU1
1~Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalU5
1~Connector_PinSocket_2.54mm:PinSocket_1x05_P2.54mm_VerticalU2
1~Connector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_VerticalU4
1~Connector_JST:JST_SH_SM04B-SRSS-TB_1x04-1MP_P1.00mm_HorizontalU3

Similar boards

  • 2 layers98 × 27 mmXy limit, the printed circuit board in 3D

    Xy limit

    opulo-inc/lumenpnp

    The LumenPnP is an open source pick and place machine.

    5 parts3.7k
  • 2 layers21 × 33 mm24g2usb pico2w, the printed circuit board in 3D

    24g2usb pico2w

    joypad-ai/joypad-os

    Universal controller firmware for building adapters, dongles, and custom controllers.

    5 parts1.7kApache-2.0
  • 2 layers53.2 × 59.6 mmA10 OLinuXino Lime Rev B SHIELD TEMPLATE, the printed circuit board in 3D

    A10 OLinuXino Lime Rev B SHIELD TEMPLATE

    OLIMEX/OLINUXINO

    OLINUXINO is Open Source / Open Hardware, low cost from EUR 24 Linux Industrial grade Single Board Computer capable to operate -25+85C

    5 parts1.5k
  • 2 layers30 × 11 mmMain control board servo tester, the printed circuit board in 3D

    Main control board servo tester

    jamro/tiny-engineer

    A small desktop robot that brings an AI coding assistant to life, physically acting out when it reads files, thinks, writes code, and finishes work.

    5 parts1.1k
  • 2 layers78.8 × 35.3 mmKiCadTest, the printed circuit board in 3D

    KiCadTest

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    5 parts915
  • 2 layers50 × 23 mmMiniCircuits LTCC, the printed circuit board in 3D

    MiniCircuits LTCC

    VanceVagell/kv4p-ht

    Open source handheld ham radio project KV4P-HT

    5 parts828GPL-3.0
  • 2 layers20.3 × 15.2 mmL0 light sensor, the printed circuit board in 3D

    L0 light sensor

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    5 parts546MIT

Questions

How big is the Particulate matters PCB?

It measures 60 × 48.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Particulate matters use?

5 parts. 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 Particulate matters KiCad files?

From the gertjana/particulate-matters repository on GitHub, at the commit this page was made from: the board is kicad/Particulate_matters/Particulate_matters.kicad_pcb and its schematic kicad/Particulate_matters/Particulate_matters.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Particulate matters design in my own project?

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