Skip to content

MakeCode extension for dust sensor PMS7003

Notifications You must be signed in to change notification settings

narongporn/pxt-PMS7003

Repository files navigation

PMS7003

This is an extension for PM2.5 Dust sensor PMS-7003

PMS7003 sensor

Author

Narongporn Laosrisin https://www.facebook.com/narongporn.lao

Use as Extension

Description

connect

Use this block to define which pins are connect to RX and TX of the sensor.

start character

Use start character in serial on data received to detect start character sending from sensor.

read data

Use read data to read sensor data into buffer.

checksum ok?

This block return true if checksum is OK. Use this block with if-then-else to determine data validation.

PM

These blocks return PM1, PM2.5 and PM10 value.

convert

In order to display the PM value correctly, use this block to convert number to string with specific length, filling blank at the end.

About

MakeCode extension for dust sensor PMS7003

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published