micro:bit 連接物聯網 (IoT)
一、物聯網(IoT)
物聯網IoT (Internet of Things)
二、micro:bit物聯網應用
Micro:bit Environment IoT Kit (Micro:bit環境物聯網套件組組成元件)
1.OLED indicator 128x64 螢幕 (*不支援中文字形)
IIC OLED indicator
2.Sound sensor 噪音感測器
Octopus Analog Noise Sound Sensor Detector
3.Temp/Humidity sensor 溫溼度感測器
Octopus Temperature and Humidity Sensor
4.Soil sensor 土壤感測器
Octopus Soil Moisture Sensor Brick
5.Photocell 光敏感測器
Octopus Analog Photocell Brick OBPhotocell
6.Dust sensor 懸浮微粒感測器
Octopus Dust Sensor Detector Module with Sharp GP2Y1010AU
7.PM 2.5 pm2.5感測器
Octopus PM2.5 PM10 Detector Sensor
8.Wind sensor 風力感測器
Octopus Wind Speed Sensor Anemometer Three Aluminium Cups
9.8266 WiFi模組 無線模組
ESP 8266 WiFi Module
10.電源模組
micro:bit Power Supply Module 3.3V 2A
Reference:官網說明及範例
三、micro:bit利用物聯網上傳平台種類
ThingSpeak
IFTTT
從本機匯出資料到Excel
四、、ThingSpeak (物聯網平台)
將micro:bit懸浮微粒偵測值上傳物聯網平台ThingSpeak。
*準備元件: micro:bit,Octopus:bit, ESP 8265 WiFi模組,電源模組,OLED螢幕、懸浮微粒感測器。
*實作方法:
(1) TingSpeak網址:https://thingspeak.com/,建立帳號並登入。
(2) TingSpeak建立新的頻道,並複製API Key。
(3) 將micro:bit連接章魚主板,並連接WiFi。
(4) 提供額外電源給主板。
(4) 測試WiFi連線。
(5) 寫入懸浮微粒感測器偵測值到ThingSpeak。
(6) 回到ThingSpeak檢查上傳的資料。
四、將ThingSpeak原資料嵌入網頁
五、利用手機APP讀取原資料 (限Andorid手機)
1. 手機安裝Thing Chart-ThingSpeak Viewer
2. Add channel 新增頻道
3. 輸入Channel ID: 861804
4. 點選頻道,即時監看ThingSpeak上傳的IOT原資料。
(note:ThingSpeak頻道必需設定為"公開" (public))
六、將ThingSpeak資料匯出成Excel
七、Excel 原資料分析