Back to Parent

Coding Logic

At the very beginning, we will let the sensor run for a second to calculate an average value as a baseline for further detection. Then the sensor will collect data when the user holds the lamp and get the average value and compare it with the baseline value which will determine how long the lamp will be turned on. When the lamp is going to be turned on, it will go lighter and lighter gradually. After a while, the lamp will go dimmer and remind users to hold it again if they still need light.


Content Rating

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

0