This shows you the differences between two versions of the page.
iothings:proiecte:2022:smart_rgb_lamp [2023/01/20 06:58] andrei.draghici2011 |
iothings:proiecte:2022:smart_rgb_lamp [2023/01/20 09:40] (current) andrei.draghici2011 [3. Software] |
||
---|---|---|---|
Line 45: | Line 45: | ||
{{:iothings:proiecte:2022:adafruit_iot_rgb_lamp.png?500|}} | {{:iothings:proiecte:2022:adafruit_iot_rgb_lamp.png?500|}} | ||
+ | |||
+ | When automatic mode is on, the lamp will change the color and intensity based on the outside weather following the next conditions: | ||
+ | |||
+ | The intensity will be mapped according to the temperature. The min and max values are -10* and 40*. If the temp will be lower or higher, it will be limited to the maxed mentioned earlier. | ||
+ | * If the weather is Cloudy, the color will be white and the intensity will be divided by 2 (after mapping from the temperature) | ||
+ | * If the weather is Clear or Sunny, the color will be yellow and normal intensity | ||
+ | * If it is Raining, the color will be blue, with normal intensity | ||
+ | * If it is Snowing, the color will be white will normal intensity | ||