XinaBox - Advanced Weather Sensor (SW01) 教學

Advanced Weather Sensor (SW01) 的功用是量度濕度 , 溫度和大氣壓力。
非常適合來做自動灌溉系統或同類型Project。
所需用料 :
micro:bit x 1
micro:bit bridge IM01 x 1
Advanced Weather Sensor (SW01) x1
xChips Connector x 1
usb cable x 1
micro:bit coding platform : https://makecode.microbit.org/
Advanced Weather Sensor (SW01)接駁方法 :

詳細接駁教學請看此 : 按我
編程教學 :

Coding 簡單教學 :

先用「on button」顯示溫度,濕度跟壓力.
XinaBox的特點是所有單位都已經進行了calibration
均為有意義的單位而不是analog.
Ex1. 做一個簡單的溫度提示器
透過Advanced Weather Sensor (SW01)得到室溫後,便能運用這個數據判斷現時會不會太熱。
當太熱的時候,便發出提示. 降溫後,室溫變回常溫後時提示便會關閉。
Coding 概覽 :
