<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Danny.Ho on Medium]]></title>
        <description><![CDATA[Stories by Danny.Ho on Medium]]></description>
        <link>https://medium.com/@danny.ho?source=rss-3bc9b73538b9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ovGzaB0RuvFpzB2UXc0Ugw.jpeg</url>
            <title>Stories by Danny.Ho on Medium</title>
            <link>https://medium.com/@danny.ho?source=rss-3bc9b73538b9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 08:54:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@danny.ho/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Grove Base Shield]]></title>
            <link>https://medium.com/maker-cup/grove-base-shield-8eb50b9e05d3?source=rss-3bc9b73538b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/8eb50b9e05d3</guid>
            <category><![CDATA[linkit-smart-7688]]></category>
            <category><![CDATA[arduino]]></category>
            <category><![CDATA[grove]]></category>
            <dc:creator><![CDATA[Danny.Ho]]></dc:creator>
            <pubDate>Sat, 06 Aug 2016 10:20:14 GMT</pubDate>
            <atom:updated>2016-08-06T10:20:14.441Z</atom:updated>
            <content:encoded><![CDATA[<p>Grove Base Shield</p><p>對於非相關領域的朋友在踏入物聯網領域，最大的問題可能是接線困難與害怕接錯造成短路現象，在這介紹這片Base Shield擴充板給大家，各位可以在[圖1]發現由左至右有許多白色的接口，這種接口叫做Grove透過這樣的接口讓使用者更加的方便使用Arduino的I/O，此接口有四種輸出分別為I2C、Digital、Analog、UART等，我們可以透過連接線連接各種Grove感測器或控制器，藉此就可以輕鬆的操控I/O。在擴充版中Digital I/O在擴充板上引出來的腳為有D2-D8，Analog I/O 則有A0-A3引出做使用，此外還有引出四組I2C與一組UART，UART與RX和TX是和D0與D1相通的這點須注意，還有一組ISP的接口與RST是從下方主控版引接上來的，在靠近[圖1]右測中間與左下方，在中間左下方有VCC的輸入電壓調整所以在我們使用Grove元件的時候要記得考量到這個地方，避免元件的燒毀，[圖2]為Base Shield與Arduino實體照片。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/0*aTLXluhUledYb0H2.png" /><figcaption>[圖1]Base Shield v2.1 正面</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DijutBGFNuVDpgvT0d_J-g.jpeg" /><figcaption>[圖2]由上而下分別為擴充開發板Base Shield 與Arduino Uno開發板</figcaption></figure><p>再來我們將Arduino開發版放置在工作平台最下面，並將Base Shield開發版疊在上面並組合如[圖3]，再來將mini fan 接上D4這個Grove 位子[圖4]，並且撰寫程式來驅動它。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CSQ4Nj6vt2KjTPAYEIR6gA.jpeg" /><figcaption>[圖3]Arduino 與Base Shield 組裝圖</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hk6gEavEO_-Obt2u0wMm4Q.jpeg" /><figcaption>[圖4 ]Grove與Base Shield組裝圖</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*HjewOg7pLWmM5WNgbYUauw.png" /><figcaption>[ 圖 5 ]miniFan Arduino Code #<a href="https://github.com/hoycdanny/let-school/blob/master/seeed/mini-fan/mini-fan.ino">github</a></figcaption></figure><p>在將範例程式輸入ArduinoIDE後，就將發現風扇可以每一秒不間斷的開關。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8eb50b9e05d3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/maker-cup/grove-base-shield-8eb50b9e05d3">Grove Base Shield</a> was originally published in <a href="https://medium.com/maker-cup">Maker Cup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Grove 解密：Light Sensor（光感測器）]]></title>
            <link>https://medium.com/maker-cup/grove-light-sensor-%E5%85%89%E6%84%9F%E6%B8%AC%E5%99%A8-%E5%8A%A0%E7%A2%BCdiy-b60e61c99d33?source=rss-3bc9b73538b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b60e61c99d33</guid>
            <category><![CDATA[linkit-smart-7688]]></category>
            <category><![CDATA[arduino]]></category>
            <category><![CDATA[grove]]></category>
            <category><![CDATA[linght-sensor]]></category>
            <dc:creator><![CDATA[Danny.Ho]]></dc:creator>
            <pubDate>Sat, 06 Aug 2016 10:18:45 GMT</pubDate>
            <atom:updated>2016-10-13T14:43:17.106Z</atom:updated>
            <content:encoded><![CDATA[<h4>土炮！學習自己的 Grove 自己做！</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*syYpWLG9VvLSfF_8zuzgtw.jpeg" /></figure><p>Seeed 的光敏電阻模組[圖 1]，已經是一個封裝好的模組，適合一般人使用。如果我們要實作一個小裝置，使其偵測到光照越少就會發出越急促的短音，可以這樣寫一支程式：</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9a1132e45b24b6c7f29af39f8ea0c7d3/href">https://medium.com/media/9a1132e45b24b6c7f29af39f8ea0c7d3/href</a></iframe><p>簡單來說，原理上光敏電阻在「<strong>光越強的時候電阻值越小」</strong>，我們藉此驅動減少延遲（Delay）的時間，使 Buzzer 發聲的間距時間減少。在這邊將讀入的電壓值放置到 Delay 的這個 function 裡頭。</p><h3>觀察 Grove 的模組設計細節</h3><p>為了能跟我們的控制晶片或開發板連接，一個光感測模組需要把光敏電阻的電阻值，轉變成輸入訊號至我們的開發板上，所以在使用上還必須要加上運算放大器（operational amplifier，op-amp），也就是「<strong>模組上右側LM358 這顆 IC」</strong>。</p><blockquote>作為電壓隨耦器特性是輸出訊號全部接到輸入端作為百分之百的負回授，亦即 VO=Vi。在上方有顆編號103的電阻計算方式為 10 x 1⁰³ ＝10k。</blockquote><ul><li>如果可以具體說明「電壓隨耦器」和「負回授」，及其目的和用途，可以讓更多讀者明白</li></ul><p>就目前手上有的 Grove 模組，分為兩種版本，其最大值會有差別：</p><ul><li>v1.1 的最大值約略420</li><li>v1.2 的最大值約略410</li></ul><h3>自己的光感測模組自己做</h3><p>不得不說，這個模組的價格非常昂貴對於窮學生來說是一大負擔，所以我們就來拆解電路，土炮製作這個 Light Sensor 以下是教學以及電路圖。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hcFkZHh0J_UMLWE3OgYVTg.png" /><figcaption>[圖2]電路圖 右側兩個op-amp為LM358晶片</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gwBrOKErFvs-W7wVQc3Sig.png" /><figcaption>[圖3]麵包板接線圖</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b60e61c99d33" width="1" height="1" alt=""><hr><p><a href="https://medium.com/maker-cup/grove-light-sensor-%E5%85%89%E6%84%9F%E6%B8%AC%E5%99%A8-%E5%8A%A0%E7%A2%BCdiy-b60e61c99d33">Grove 解密：Light Sensor（光感測器）</a> was originally published in <a href="https://medium.com/maker-cup">Maker Cup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[用指令切換 Smart 7688 的 AP/Station 模式]]></title>
            <link>https://medium.com/maker-cup/smart-7688-duo-ap-station-mode-command%E7%9A%84%E5%88%87%E6%8F%9B%E8%88%87%E8%A8%AD%E5%AE%9A-e8da97b7b332?source=rss-3bc9b73538b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8da97b7b332</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[linkit-smart-7688-duo]]></category>
            <category><![CDATA[linkit-smart-7688]]></category>
            <dc:creator><![CDATA[Danny.Ho]]></dc:creator>
            <pubDate>Tue, 08 Mar 2016 13:44:33 GMT</pubDate>
            <atom:updated>2016-03-10T01:14:33.491Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sVeV1G61djWBLPMtBqjeMg.jpeg" /></figure><h4>開發者必須學會的快速技巧</h4><p>在一個無線網路(Wifi)環境雜亂的環境底下該怎麼透過UART使用 MTK LinkIt Smart 7688 呢？</p><p>以下將介紹有兩種方式可以來達到：</p><h4>方法一：</h4><p>輸入指令來打開 Station Mode</p><pre># uci set wireless.sta.ssid=MyAP       (AP的SSID)<br># uci set wireless.sta.encryption=psk2 (加密模式)<br># uci set wireless.sta.key=12345678    (AP密碼)<br># uci set wireless.sta.disabled=0      (將stationMode打開)<br># uci commit<br># wifi</pre><h4>方法二：</h4><p>其實在 OpenWRT 裡面只需要下簡單的指令就可達成切換至Station Mode。</p><p>首先先使用 vim 打開 /etc/config/wireless 這個檔案</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*_6EpCuHkGOMOY3bihKFC1g.png" /><figcaption>輸入您的SSID與密碼與網路加密模式</figcaption></figure><pre># uci set wireless.sta.disabled=0<br># uci commit<br># wifi<br># ping 8.8.8.8</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*3acoVpkL9ep4GQhydjmukg.png" /></figure><p>然後各位就可以發現已經切換至 StationMode 對外網路通嚕 ^^</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8da97b7b332" width="1" height="1" alt=""><hr><p><a href="https://medium.com/maker-cup/smart-7688-duo-ap-station-mode-command%E7%9A%84%E5%88%87%E6%8F%9B%E8%88%87%E8%A8%AD%E5%AE%9A-e8da97b7b332">用指令切換 Smart 7688 的 AP/Station 模式</a> was originally published in <a href="https://medium.com/maker-cup">Maker Cup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linkit Smart 7688 Duo 物聯網通訊起手式]]></title>
            <link>https://medium.com/maker-cup/linkit-smart-7688-duo-mqtt-iot-platform%E5%9F%BA%E7%A4%8E%E6%95%99%E5%AD%B8-ea2fd4f22064?source=rss-3bc9b73538b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea2fd4f22064</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[linkit-smart-7688]]></category>
            <dc:creator><![CDATA[Danny.Ho]]></dc:creator>
            <pubDate>Sat, 13 Feb 2016 11:47:01 GMT</pubDate>
            <atom:updated>2016-02-14T09:56:10.029Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GoDqiscTUsVVcWng-HmMDQ.jpeg" /></figure><h4>MQTT 基礎搭建</h4><p>面對越來越盛行的IOT還在使用POST/GET控制您的物聯網設備嗎?</p><p>來試試看 MQTT 的訊息傳遞吧</p><p>本次教學使用了 <a href="http://mosquitto.org/">Mosquitto</a> 與 <a href="https://www.npmjs.com/package/mqtt">MQTT.js</a></p><p>與三片 Linkit Smart 7688 Duo 做一個訊息的推播平台</p><p>MQTT 的特性？</p><pre>1.Publish 與 Subscribe 的傳送模式，來提供<strong>一對多</strong>的訊息分配。<br>2.使用 TCP/IP。<br>3.三種訊息傳送服務(圖一)的 qualities ：最多一次、最少一次、確定一次<br>4.header 固定長度為 2byte，可以減少封包傳送時的額外負載，並減少所需的網路頻寬。<br>5.當異常斷線發生時，Last Will and Testament的機制，通知各個有訂閱的Client。</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*nCKNdhsVr4FUzJCsPkTIMg.png" /><figcaption>圖 一、MQTT的三種傳送服務</figcaption></figure><p>為了要讓讀者更容易理解 MQTT 訊息傳遞流程</p><p>所以我將 Publish 跟 Subcride 分開到兩片 7688 來實作</p><p>首先先在 <strong>Broker </strong>上安裝相關套件與函式庫</p><p>並記得把 IP 設定上在本教學中 IP 的設定為(192.168.1.18)</p><pre># opkg update<br># opkg install mosquitto mosquitto-client libmosquitto</pre><p>再來將 MQTT.js 安裝至另外兩片 7688</p><pre># npm install mqtt --save</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*OChll3kHvzO67vhHFxGrVQ.png" /><figcaption>MQTT.JS安裝完成</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*yEHfwlEwytJmFEKClMiXUg.png" /><figcaption>圖二、軟體安裝細項與安裝平台</figcaption></figure><p>在安裝完成後就可以開始撰寫程式嚕!</p><p><a href="https://gist.github.com/kiss5891/fa71251e69b8a511910f">Publish Code</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*DCLKz_rpdu11ofzXZWxcGg.png" /><figcaption>Publish Code</figcaption></figure><p><a href="https://gist.github.com/kiss5891/8958ced3372abdfe4073">Subscribe Code</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*VBANRa1lt_PfA1EP-49U2w.png" /><figcaption>Subscribe Code</figcaption></figure><p>Broker上面執行以下指令觀看訊息推送情形</p><pre># mosquitto_sub -d -t you_topic</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SUgRqr4NoH_1iy3xH556Tw.png" /><figcaption>由左至右分別是Publish、Broker、Subscribe</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NjtnoQfsJ6RQZNSrbl4TjA.jpeg" /><figcaption>由上而下Publish、Brocker(IP:192.168.1.18)、Subcride</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea2fd4f22064" width="1" height="1" alt=""><hr><p><a href="https://medium.com/maker-cup/linkit-smart-7688-duo-mqtt-iot-platform%E5%9F%BA%E7%A4%8E%E6%95%99%E5%AD%B8-ea2fd4f22064">Linkit Smart 7688 Duo 物聯網通訊起手式</a> was originally published in <a href="https://medium.com/maker-cup">Maker Cup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linkit smart 7688 due UART連線]]></title>
            <link>https://medium.com/@danny.ho/linkit-smart-7688-due-console-%E9%80%A3%E7%B7%9A-3a1c1158e74d?source=rss-3bc9b73538b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a1c1158e74d</guid>
            <dc:creator><![CDATA[Danny.Ho]]></dc:creator>
            <pubDate>Sat, 26 Dec 2015 12:04:20 GMT</pubDate>
            <atom:updated>2016-03-10T01:17:24.784Z</atom:updated>
            <content:encoded><![CDATA[<p>如果Linkit smart 7688 due 在無法使用網路的狀態如何進去設定</p><p>使用Arduino Breakout for LinkIt 7688 due 或 Grove Breakout for LinkIt Smart 7688 Due 就可以透過UART進入解決嚕</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zbuCgCQRK8qOYfYQjlFwdw.jpeg" /></figure><p>將TX對接至RX 並接上GND即可 如上圖</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4eU396gYeBzXQoLAI9pLeg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PmOz7SY6ousk1sXBovP81w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aWTtbsmLKMDIutY0LrH-tg.jpeg" /></figure><p>將 Baud rate 設定為57200後選擇COM port即可</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*vuCyyQheXnv4KQT8VlYHIg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*Ucu-k-1BJEsH59o3Y0ILnQ.png" /></figure><p>Windows 使用Putty COM<em>x</em> 57600</p><p>Linux 使用 screen /dev/ttyUSB0 57600</p><p>按一下Enter畫面就這樣出來了</p><p>最後~~感謝黑客松台灣提供開發板唷!! ^^</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a1c1158e74d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>