Skip to content

IoT-gamer/grove-pm2_5-monitor-ble

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grove PM2.5 Monitor BLE Project

A PlatformIO project for the Seeed Wio Terminal that reads data from a Grove HM3301 PM2.5 laser dust sensor and broadcasts the readings over Bluetooth Low Energy (BLE).

drawing

Hardware Requirements

Features

  • Real-time particulate matter measurements:
    • PM1.0 (atmospheric)
    • PM2.5 (atmospheric)
    • PM10.0 (atmospheric)
  • BLE connectivity:
    • Device name: "PM2.5 Sensor"
    • Real-time data notifications
    • Historical data access
  • TFT display showing:
    • Current PM readings
    • BLE connection status
    • Debug information
  • Data logging:
    • Readings logged every 5 minutes to SD card
    • CSV format with timestamps
    • Automatic file management
  • Historical data:
    • Hourly averages calculation
    • 24-hour history retention
    • Accessible via BLE
  • Time synchronization:
    • Set the device time via BLE
  • Alerting:
    • BLE alerts for high PM2.5 levels

BLE Service Specifications

  • Service UUID: 91bad492-b950-4226-aa2b-4ede9fa42f59
  • Characteristics:
    • PM1.0: 91bad493-b950-4226-aa2b-4ede9fa42f59 (Read, Notify)
    • PM2.5: 91bad494-b950-4226-aa2b-4ede9fa42f59 (Read, Notify)
    • PM10: 91bad495-b950-4226-aa2b-4ede9fa42f59 (Read, Notify)
    • History: 91bad496-b950-4226-aa2b-4ede9fa42f59 (Read)
    • Time Sync: 91bad497-b950-4226-aa2b-4ede9fa42f59 (Write)
    • Alert: 91bad498-b950-4226-aa2b-4ede9fa42f59 (Read, Notify)

BLE Client/Central Example App

Dependencies

Data Storage

  • Data is stored in /data/PM_xxxx.csv files on the SD card
  • CSV format: Power_Cycle,Timestamp,PM1.0,PM2.5,PM10,Uptime_Sec
  • Power cycles are tracked in /data/power_cycle.txt

Update Intervals

  • Sensor readings: Every 5 seconds
  • Data logging: Every 5 minutes
  • Hourly averages calculation: Every hour

About

Broadcasts PM2.5 laser dust sensor readings over Bluetooth Low Energy (BLE)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages