Ubidots 上傳數據教學

這次我們利用Advanced Weather Sensor (SW01 )收集數據,再以WI-FI CORE(CW01) 上傳至 Ubidots .
所需用料 :
micro:bit x 1
micro:bit brigde IM01 x 1
WI-FI CORE(CW01) x1
Advanced Weather Sensor (SW01 ) x 1
xChips Connector x 2
usb cable x 1
micro:bit coding platform : https://makecode.microbit.org/
AllThingsTalk platform : https://ubidots.com/
WI-FI CORE(CW01) + Advanced Weather Sensor (SW01 )接駁方法 :
詳細接駁教學請看此 : 按我

usb cable 請直接插至IM01 插槽上的port 位。
Ubidots setup :

1. 按下右上角的「人形圖示」,然後按「API Credentials」。
2. 按下後會看到「API KEY」及「Tokens」,然後按下「Click to show」。
3. 複製所需資料到makecode編程上。(稍後處理)
編程教學 - Connect WiFi

make code coding part :

1. 在 「CW01」中「Common」的分類中拉出「CW01 connect.....」的block。

2. 把它放至「on start」中, 在 「WiFi SSID」輸入你的 SSID (WiFi名稱) , 「password 」輸入你的 WiFi 密碼。

3. 在「CW01」中「Ubidots」的分類中拉出「CW01 connect to Ubidots ..... with token " "」的block。

4. 同樣地把它放到「on start」, Ubidots 後的選項請選擇「EDUCATIONAL」,
token 請回到 Dashboards 中的「API Credentials」複製並貼上。
複製「Tokens」到makecode編程上。
測試是否已經連接上互聯網

當WIFI 成功connect時, micro:bit 的LED screen應該會出現「C」
由於WI-FI CORE(CW01)是另一個獨立個體,我們在連接互聯網時請按以下步驟接駁 :
1. 把USB供電插到WI-FI CORE(CW01) , 等待它的晶片轉成藍色
2. WI-FI CORE(CW01)轉成藍色後,把micro:bit 插到micro:bit bridge IM01上
失敗時的解決方法 :
請按我
配合SW01上傳數據至Ubidots


2. 在「CW01」的「Ubidots」分類中選取「CW01 send value .....」

3. 然後把它放到「on button A pressed」下 , 並輸入所需的資料。

4. 多做一組數據上傳至Ubidots平台上。