XinaBox - UV Index, LIGHT Sensor (SL01) 教學

UV Index LIGHT Sensor (SL01) 的功用是量度光度,並以不同單位表示.
適合用來研究光線的PROJECT。
所需用料 :
micro:bit x 1
micro:bit bridge IM01 x 1
UV iNdex , LIGHT Sensor (SL01)
xChips Connector x 1
USB cable x 1
micro:bit coding platform : https://makecode.microbit.org/
UV Index ,LIGHT Sensor (SL01) 接駁方法 : 按我

編程教學 :

Coding 簡單教學 :
請注意 SL01 block 有所更新 , 舊有的教案/Block 已不適用 ;
以下旨為最新版本的 Blocks!

LUX 是 illuminance 單位 為 lx | UVIndex 則為 UV Index (紫外線指數)
利用「on button」顯示不同光度
XinaBox的特點是所有單位都已經進行了calibration
均為有意義的單位而不是analog.
Ex1. 做一個簡單的溫度提示器
透過 UVIndex LIGHT Sensor (SL01) 得到光度後,便能運用這個數據判斷現時會不會太暗.
當太暗的時候,便發出提示,提示使用者開燈.
如果自然光已經夠光的話,使提示使用者關燈以節省電源.
Coding 概覽 :

**光度可以自行調節