2016年3月30日 星期三

[Raspberry Pi 3] 教學分享


  • 多準備一張SD卡以防有壞卡
  • 用隨身碟多準備幾份影像檔
  • Locale
  • 信號干擾,無法上網

[Arduino Yun] 教學FAQ

Arduino Yun教學FAQ
Ted Lee@CAVEDU
April 12, 2016
88x31.png[1]
  • Q1:Arduino Yun設定成station mode連外網後,為何SSID就不見了?有些開發板是仍會發出SSID
    • Ans:就像家用的無線AP一樣,可以設定它發不發出SSID。如果設定成不發,那我們就看不到,但仍能用這個被隱藏的SSID連到它。
  • Q2:DHT11的DATA腳位為何要接4.7KOhm的電阻?
  • Q3:Arduino的source code
    • Ans:它是open source的,所以source code也任君参考喔!
  • Q4:Linino用SSH連入的帳號為何是root(而不是在設定連外網時設定的YUN NAME)?
    • Ans:OpenWrt預設的帳號都是root,像7688也是
  • Q5:在Arduino Yun的云端氣象站project中,DHT11接到Arduino上以獲取sensing data,那這些data會透Linino送到Temboo再転存入Google Drive上嗎?」
    • Ans:會,why?
      • 反証法思考:這些data讀入Arduino後如不透过Linino那要從哪兒送到Google?Arduino又沒網路功能!
      • 另,temboo_log.ino的code中有include到Bridge.h,它就是ATmega32U4和AR 9331的伝送data的channel,有興趣可以去trace這段code!

参考資料:
  1. 六種授權條款

2016年3月27日 星期日

[Raspberry Pi 3] 有趣的專案、教學及參考資料


有趣的專案及參考資料
Ted Lee@CAVEDU
May 4, 2016
88x31.png[1]

参考資料:
  1. 六種授權條款
  2. 圖示來源:Flaticon

2016年3月17日 星期四

[Raspberry Pi 3] 實測慘狀

  •  chromium
    • Package chromium is not available, but is referred to by another package.
      This may mean that the package is missing, has been obsoleted, or
      is only available from another source
      However the following packages replace it:
        chromium-inspector chromium-bsu

      E: Package 'chromium' has no installation candidate 
  • luvcview
    • 錯誤 http://mirrordirector.raspbian.org/raspbian/ jessie/main luvcview armhf 1:0.2.6-6
        無法解析 'mirrordirector.raspbian.org'
      E: 無法取得 http://mirrordirector.raspbian.org/raspbian/pool/main/l/luvcview/luvcview_0.2.6-6_armhf.deb,無法解析 'mirrordirector.raspbian.org'

      E: 有部份套件檔無法取得,試著執行 apt-get update 或者試著加上 --fix-missing 選項?

[7688] 有趣的專案及參考資料

有趣的專案及參考資料
Ted Lee@CAVEDU
Sep. 24, 2016

2016年3月13日 星期日

[7688 Duo] 7688 Duo有趣的專案及參考資料@Ted好玩


7688 Duo有趣的專案及參考資料
Ted Lee@Ted好玩
May 4, 2016
88x31.png[1]

参考資料:
  1. 六種授權條款

[7688 Duo] DHTXX實測

  • Conclusions:
    • https://www.facebook.com/groups/makerpro.cc/permalink/973163109444410/?comment_id=973311472762907&reply_comment_id=974200559340665&notif_t=group_comment
    • https://labs.mediatek.com/forums/posts/list/4081.page
  • You can't read 1wire device through such platform easily ....its timing issue, better use a i2c version of Dht , I.e. Am2320 ....
    • https://www.facebook.com/groups/makerpro.cc/permalink/965615530199168/?comment_id=965616790199042&ref=notif&notif_t=group_comment
    •  用MTK回覆的cli()和sei()成功解掉了!
  • 有人用 Duo成功把PM2.5及溫溼感測器接上MCS了所以7688是可以接sensors?!
    • https://github.com/future/Linkit7688_PM2.5
  • DHTx:讀取sensoring data要靠S/W
    SHT2X:屬I2C(inter-IC)伝輸,有H/W clock來處理資料同步問題
    我的理解是這樣


    [7688 Duo] 教學經驗分享

    • 原廠手冊(developer guide, FAQ…)及各大communities目前的文章还欠缺7688 Duo送data到cloud(MCS, AWS…)的各類型sample code。例如:MTMega32U從DHT22收到溫溼度值透过UART送給MT7688AN,再傳至MCS顯示,MT7688AN開發手冊就沒有這段的sample code(还停在MT7688AN控LED的階段)
    • MTK在開發手冊中promises會提供Python及Node.js兩套code,不过目前尚未有大幅更新
    • 上Duo講解sensors<->ATMeg32U4<->(UART, Firmata, Yun bridge)MT7688AN<->MSC時速度要放慢一些,學員需要時間理解
      可对照developer guide的MCS控LED及sensors送MCS兩範例詳加舉例
    • 1.win 10裝usb drv因未signed,要手動停用才能裝
      2.有一人換了兩機Arduino IDE一直無法update到出現duo選項
      • 更新BIOS就解掉了,他說他是把DUO接在USB 3.0上
    • 1.有2人自備7688,結果⋯(who am I?),現場有1x個ssid,未曾生我,誰是我?
      建議阿吉請mtk在pcb時加印Mac addr
      2.有1台裝win 10,下課前都抓不到ssid,可能是os或無線網卡問題,有拿其他work的7688接測過
      3.有1台裝ubuntu,ssid重開機才抓得到
      4.用node.js控led時,程式執行前,led一直亮著是正常的(一直亮還有2種狀況:booting、f/w error)
      5.mcs的LED_Contol容易沒設正確
      6.抓SSID和MCS設定學習比較容易突搥

    [7688 Duo] 支援的webcam實測報告


    • Not support:

    2016年3月6日 星期日

    [Arduino] Ex1_3:紅錄燈控制

    Ex1_3:紅錄燈控制
    Ted Lee@CAVEDU
    Mar. 6, 2016
    88x31.png[1]

    本實驗延伸Ex1_1的Lab1_1_2,將LED的正極由原先接到Arduino第13腳改接到第9腳,並將程式由呼叫digitalWrite()改為呼叫analogWrite()。因為analogWrite()使用變更工作週期(duty cycle)PWM技術來模擬連續性的類比信号,故能使LED亮度而有漸明/暗的效果,也就是常聽到呼吸灯的由來。

    本範例过関後,可獲得LED灯光Fade卡一張。

    難易度:易

    材料
    1. LED(Light-Emitting Diode,發光二極体)一顆
    2. 220W電阻一顆(色环:紅紅棕金)
    3. 杜邦線2條
    4. 麵包板一塊
    5. Arduino Uno R3一塊(本系列文章皆簡稱為Arduino開發版
    6. A-B型USB傳輸線一條

    程式Fade.ino
    在Arduino IDE中由Fade File->Examples->1.Basics->Fade開啟Arduino內建的範例程式。
    int brightness = 0;    // how bright the LED is
    int fadeAmount = 5;    // how many points to fade the LED by
    void setup()  {   
      // declare pin 9 to be an output:   
      pinMode(9, OUTPUT);
    } 
    void loop()  {   
      // set the brightness of pin 9:   
      analogWrite(9, brightness);  
      // change the brightness for next time through the loop:   
      brightness = brightness + fadeAmount;  
      // reverse the direction of the fading at the ends of the fade:   
      if (brightness == 0 || brightness == 255){   
        fadeAmount = -fadeAmount ;   
      }       
      delay(30); // wait for 30 milliseconds to see the dimming effect    
    }
    流程圖.vsdx
    執行結果
    接線圖.fzz
    高手必練
    修改控制LED明滅度fadeAmount的值(例如:5->10),再覌察LED灯的明滅是否有不同變化