Commit 4c19fa1c authored by Gayan Kavinda Gamlath's avatar Gayan Kavinda Gamlath 😂

dust_sensor

parent cd70a87a
int measurePin = A7; int measurePin = A7; /*Connect dust sensor to Arduino Analog A7 pin*/
int ledPower = 11; int ledPower = 11; /*LED Power Pin*/
unsigned int samplingTime = 280; /*the same as ints in that they store a 2 byte value*/ unsigned int samplingTime = 280; /*the same as ints in that they store a 2 byte value*/
unsigned int deltaTime = 40; /*Calculate time taken by loop.*/ unsigned int deltaTime = 40; /*Calculate time taken by loop.*/
unsigned int sleepTime = 9680; /*Pauses the program for the amount of time (in milliseconds) specified as parameter. (There are 1000 milliseconds in a second.)*/ unsigned int sleepTime = 9680; /*Pauses the program for the amount of time (in milliseconds) specified as parameter. (There are 1000 milliseconds in a second.)*/
float voMeasured = 0; /*Voltage value*/
float calcVoltage = 0; /*Calculate Voltage*/
float dustDensity = 0; /*Dust Density Size*/
void setup() { void setup() {
// put your setup code here, to run once: // put your setup code here, to run once:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment