Back to Parent

Working:

The sensor data are obtained from the appropriate pins. Once we obtain the individual sensor data, we normalize them. 
Humidity = humidity/100;

Temperature = temp/75 (optimal temperature);
Soil Moisture = moisture/100;
Ambient Light = light/1024;

After normalizing the values, we map them to our color variable y.

The mapping weights are decided by the survey and we obtain our color variable y. 

Y ranges from 0 to 1, we map it to the color range from 0-255.
Thus, we obtain a color range by varying the red and green parameters of the LED strip.

The IR detector detects a person in front of it.

Everytime it spots some, we increment our counter variable and change our blinking variable.

The blinking variable changes the speed at which the lights blink and thus we range from 10ms to 1s. 

As more number of people pass by, the speed decreases and becomes a near constant.

All the variable data is uploaded onto the particle cloud, and is subscribed by thingspeak.

The data from thingspeak is downloaded onto the mobile application where users can obtain raw data.



Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0