Firmware for GPS-tracked PM10 sensors on opensensemap.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
noerw fc64c37748 fix GPS & SDS serial in readme 4 years ago
..
examples add lora-gps sketch 4 years ago
Readme.md add lora-gps sketch 4 years ago
SDS011-select-serial.cpp add lora-gps sketch 4 years ago
SDS011-select-serial.h add lora-gps sketch 4 years ago
library.properties add lora-gps sketch 4 years ago

Readme.md

SDS011 library selectable serialport

Arduino library for dust Sensor SDS011 (Nova Fitness Co.,Ltd) which allows to choose the serial port used to communicate with the sensor. Based on the work of ricky-z

Usage

  • Define SDS object:
SDS011(Stream& serial);

i.e. SDS011 mySDS(Serial1);

  • Start serial communication:
Serial1.begin(9600);
  • Read values:
int read(float *p25, float *p10);

i.e. error = mySDS(pm25,pm10);

Reads the PM2.5 and PM10 values, return code is 0, if new values were read, and 1 if there were no new values.