<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nordic &#8211; 熊的開發</title>
	<atom:link href="https://dvpbearblog.ddns.net/tag/nordic/feed/" rel="self" type="application/rss+xml" />
	<link>https://dvpbearblog.ddns.net</link>
	<description>畢業於自動控制系，玩了一些開發板，找一個地方記錄一下摸索與開發過程，本部落格內容不一定是最正確的或最聰明的，由個人實驗測試與蒐集，歡迎切磋交流</description>
	<lastBuildDate>Wed, 10 May 2023 11:04:03 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.3</generator>

<image>
	<url>https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/cropped-midi-fighter-circle-32x32.png</url>
	<title>Nordic &#8211; 熊的開發</title>
	<link>https://dvpbearblog.ddns.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Nordic nRF51-DK  開發板 相容Arduino(舊)</title>
		<link>https://dvpbearblog.ddns.net/nordic-nrf51-dk-%e9%96%8b%e7%99%bc%e6%9d%bf-%e7%9b%b8%e5%ae%b9arduino%e8%88%8a/</link>
					<comments>https://dvpbearblog.ddns.net/nordic-nrf51-dk-%e9%96%8b%e7%99%bc%e6%9d%bf-%e7%9b%b8%e5%ae%b9arduino%e8%88%8a/#respond</comments>
		
		<dc:creator><![CDATA[小熊]]></dc:creator>
		<pubDate>Wed, 03 Jun 2015 16:46:26 +0000</pubDate>
				<category><![CDATA[開發板]]></category>
		<category><![CDATA[MBED]]></category>
		<category><![CDATA[Nordic]]></category>
		<category><![CDATA[nRF51-DK]]></category>
		<guid isPermaLink="false">https://dvpbearblog.ddns.net/?p=708</guid>

					<description><![CDATA[Nordic nRF51-DK...]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image alignwide size-large"><img fetchpriority="high" decoding="async" width="615" height="346" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/0-19.jpg" alt="" class="wp-image-716" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/0-19.jpg 615w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/0-19-533x300.jpg 533w" sizes="(max-width: 615px) 100vw, 615px" /></figure>



<p>Nordic nRF51-DK 開發板 相容Arduino</p>



<p>這片開發板是ARM廠商送的</p>



<p>具有Arduino平台</p>



<p>可支援Arduino周邊模組</p>



<p>官方的介紹傳送門</p>



<p>Digi-Key現貨商有在賣</p>



<p>Digi-Key傳送門</p>



<p>好貴一片!!</p>



<p>收到時的包裝長醬</p>



<p>很難想像這塊開發板要這麼貴</p>



<figure class="wp-block-image alignwide size-large"><img decoding="async" width="615" height="346" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/19-4.jpg" alt="" class="wp-image-735" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/19-4.jpg 615w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/19-4-533x300.jpg 533w" sizes="(max-width: 615px) 100vw, 615px" /></figure>



<p>LOGO看起來就很厲害</p>



<figure class="wp-block-image alignwide size-large"><img decoding="async" width="615" height="346" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/2-16.jpg" alt="" class="wp-image-718" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/2-16.jpg 615w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/2-16-533x300.jpg 533w" sizes="(max-width: 615px) 100vw, 615px" /></figure>



<p>使用mbed編譯程式</p>



<figure class="wp-block-image alignwide size-large"><img loading="lazy" decoding="async" width="615" height="346" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/10-5.jpg" alt="" class="wp-image-726" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/10-5.jpg 615w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/10-5-533x300.jpg 533w" sizes="(max-width: 615px) 100vw, 615px" /></figure>



<p>開發板背面</p>



<figure class="wp-block-image alignwide size-large"><img loading="lazy" decoding="async" width="615" height="346" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/4-8.jpg" alt="" class="wp-image-720" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/4-8.jpg 615w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/4-8-533x300.jpg 533w" sizes="(max-width: 615px) 100vw, 615px" /></figure>



<p>有簡易的IO說明</p>



<figure class="wp-block-image alignwide size-large"><img loading="lazy" decoding="async" width="615" height="346" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/5-7.jpg" alt="" class="wp-image-721" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/5-7.jpg 615w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/5-7-533x300.jpg 533w" sizes="(max-width: 615px) 100vw, 615px" /></figure>



<p>而且有大致解釋開發板電路</p>



<figure class="wp-block-image alignwide size-large"><img loading="lazy" decoding="async" width="615" height="346" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/6-6.jpg" alt="" class="wp-image-722" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/6-6.jpg 615w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/6-6-533x300.jpg 533w" sizes="(max-width: 615px) 100vw, 615px" /></figure>



<p>可以使用CR 2032 3V 的水銀電池供電</p>



<figure class="wp-block-image alignwide size-large"><img loading="lazy" decoding="async" width="615" height="346" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/15-4.jpg" alt="" class="wp-image-731" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/15-4.jpg 615w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/15-4-533x300.jpg 533w" sizes="(max-width: 615px) 100vw, 615px" /></figure>



<p>Debug in 排針接腳</p>



<figure class="wp-block-image alignwide size-large"><img loading="lazy" decoding="async" width="615" height="346" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/7-9.jpg" alt="" class="wp-image-723" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/7-9.jpg 615w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/7-9-533x300.jpg 533w" sizes="(max-width: 615px) 100vw, 615px" /></figure>



<p>開發用的4顆按鈕</p>



<p>按起來挺舒服的</p>



<p>Button1 對應 P0.17</p>



<p>Button2 對應 P0.18</p>



<p>Button3 對應 P0.19</p>



<p>Button4 對應 P020</p>



<figure class="wp-block-image alignwide size-large"><img loading="lazy" decoding="async" width="615" height="346" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/8-7.jpg" alt="" class="wp-image-724" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/8-7.jpg 615w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/8-7-533x300.jpg 533w" sizes="(max-width: 615px) 100vw, 615px" /></figure>



<p>有支援SPI介面</p>



<figure class="wp-block-image alignwide size-large"><img loading="lazy" decoding="async" width="615" height="346" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/9-6.jpg" alt="" class="wp-image-725" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/9-6.jpg 615w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/9-6-533x300.jpg 533w" sizes="(max-width: 615px) 100vw, 615px" /></figure>



<p>內建4顆LED</p>



<p>LED1 對應P0.21</p>



<p>LED2 對應P0.22</p>



<p>LED3 對應P0.23</p>



<p>LED4 對應P0.24</p>



<figure class="wp-block-image alignwide size-large"><img loading="lazy" decoding="async" width="615" height="346" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/11-4.jpg" alt="" class="wp-image-727" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/11-4.jpg 615w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/11-4-533x300.jpg 533w" sizes="(max-width: 615px) 100vw, 615px" /></figure>



<p>無線訊號處理核心</p>



<p>ANT/Bluetooth</p>



<p>N51422</p>



<p>官方說明傳送門</p>



<figure class="wp-block-image alignwide size-large"><img loading="lazy" decoding="async" width="615" height="346" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/23-4.jpg" alt="" class="wp-image-739" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/23-4.jpg 615w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/23-4-533x300.jpg 533w" sizes="(max-width: 615px) 100vw, 615px" /></figure>



<p>MICRO USB 插座</p>



<figure class="wp-block-image alignwide size-large"><img loading="lazy" decoding="async" width="615" height="346" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/14-3.jpg" alt="" class="wp-image-730" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/14-3.jpg 615w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/14-3-533x300.jpg 533w" sizes="(max-width: 615px) 100vw, 615px" /></figure>



<p>包裝內附的小名片</p>



<figure class="wp-block-image alignwide size-large"><img loading="lazy" decoding="async" width="615" height="346" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/16-3.jpg" alt="" class="wp-image-732" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/16-3.jpg 615w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/16-3-533x300.jpg 533w" sizes="(max-width: 615px) 100vw, 615px" /></figure>



<p>小卡片的簡單說明</p>



<figure class="wp-block-image alignwide size-large"><img loading="lazy" decoding="async" width="615" height="346" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/17-3.jpg" alt="" class="wp-image-733" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/17-3.jpg 615w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/17-3-533x300.jpg 533w" sizes="(max-width: 615px) 100vw, 615px" /></figure>



<p>另外附贈5顆N51422</p>



<p>感覺是要大力推廣似的</p>



<p>體積小又薄</p>



<p>光看體積很適合用在穿戴設備上</p>



<figure class="wp-block-image alignwide size-large"><img loading="lazy" decoding="async" width="615" height="346" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/24-4.jpg" alt="" class="wp-image-740" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/24-4.jpg 615w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/24-4-533x300.jpg 533w" sizes="(max-width: 615px) 100vw, 615px" /></figure>



<p>雖然我是拿免費的</p>



<p>但板邊油票孔</p>



<p>才斷後留下的毛邊</p>



<p>讓我看了不是很舒服</p>



<p>因為自從上過IPC610工藝規範後</p>



<p>都會習慣看一下板邊處理</p>



<figure class="wp-block-image alignwide size-large"><img loading="lazy" decoding="async" width="615" height="346" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/21-4.jpg" alt="" class="wp-image-737" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/21-4.jpg 615w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/21-4-533x300.jpg 533w" sizes="(max-width: 615px) 100vw, 615px" /></figure>



<p>MCU主體</p>



<p>Atmel</p>



<p>ATSAM3U2C-AU</p>



<p>依照目前我的程度…</p>



<p>還沒用過這系列的IC(超菜)</p>



<figure class="wp-block-image alignwide size-large"><img loading="lazy" decoding="async" width="615" height="346" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/22-4.jpg" alt="" class="wp-image-738" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/22-4.jpg 615w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/22-4-533x300.jpg 533w" sizes="(max-width: 615px) 100vw, 615px" /></figure>



<p>網路找範例改一下</p>



<p>可能不是正確寫法</p>



<p>但我目的只是使LED亮起而已</p>



<p>寫個超簡單的LED程式</p>



<p>到<a title="MBED 網頁版編譯器" target="_blank" href="https://mbed.org/" rel="noopener"><img loading="lazy" decoding="async" alt="Nordic nRF51-DK  開發板 相容Arduino " title="Nordic nRF51-DK  開發板 相容Arduino " src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/31.png" height="31" border="0" width="96" /></a>網站登錄，沒有帳號就要辦一個囉</p>




<p>網站登錄，沒有帳號就要辦一個囉</p>



<p>登錄後點選右上角Compiler<br></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="465" height="108" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/32-4.jpg" alt="" class="wp-image-742"/></figure>



<p>進入編譯器畫面後</p>



<p>右上角選擇開發板</p>



<p>因為我之前以選過了</p>



<p>所以已出現開發板名稱<br></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="465" height="70" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/33-4.jpg" alt="" class="wp-image-743"/></figure>



<p>新使用者都是空白的</p>



<p>需要按底部Add Platform新增開發板<br></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="465" height="309" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/34-4.jpg" alt="" class="wp-image-744" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/34-4.jpg 465w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/34-4-451x300.jpg 451w" sizes="(max-width: 465px) 100vw, 465px" /></figure>



<p>會跳出另一個網頁<br></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="465" height="263" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/35-4.jpg" alt="" class="wp-image-745"/></figure>



<p>我直接搜尋開發板名稱 nrf51<br></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="465" height="227" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/36-4.jpg" alt="" class="wp-image-746"/></figure>



<p>確定是這塊<br></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="465" height="324" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/37-4.jpg" alt="" class="wp-image-747" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/37-4.jpg 465w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/37-4-431x300.jpg 431w" sizes="(max-width: 465px) 100vw, 465px" /></figure>



<p>在右邊找到Add to your mbed compiler</p>



<p>新增到編譯器</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="290" height="157" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/38-3.jpg" alt="" class="wp-image-748"/></figure>



<p>到左上角按新增New<br></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="263" height="117" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/39-3.jpg" alt="" class="wp-image-749"/></figure>



<p>跳出視窗後</p>



<p>有範例可選擇</p>



<p>記得Update this program and libraries to latest revision要勾銷<br></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="422" height="341" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/40-3.jpg" alt="" class="wp-image-750" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/40-3.jpg 422w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/40-3-371x300.jpg 371w" sizes="(max-width: 422px) 100vw, 422px" /></figure>



<p><br>按下OK即新增專案<br></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="425" height="126" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/41-3.jpg" alt="" class="wp-image-751"/></figure>



<p>點開專案資料夾</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="465" height="145" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/42-3.jpg" alt="" class="wp-image-752"/></figure>



<p>會有main.cpp</p>



<p>這就是主要程式檔案</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="465" height="139" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/43-4.jpg" alt="" class="wp-image-753"/></figure>



<p>點開後即可編輯<br></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="465" height="235" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/44-4.jpg" alt="" class="wp-image-754"/></figure>



<p>將我提供的程式碼覆蓋掉範例檔案</p>



<p>一定會有人問</p>



<p>當時新增專案為什麼不直接新增空白的專案</p>



<p>因為需要使用到範例的Libraries(字典庫)<br></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="465" height="274" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/45-4.jpg" alt="" class="wp-image-755"/></figure>



<p>按下Compile編譯程式</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="465" height="271" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/46-4.jpg" alt="" class="wp-image-709"/></figure>



<p>編譯中</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="465" height="256" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/47-3.jpg" alt="" class="wp-image-710"/></figure>



<p>編譯完成後</p>



<p>如果沒有錯誤</p>



<p>會跳出下載.hex檔的畫面</p>



<p>就存在一個自己知道的位置</p>



<p>檔名請用英文與數字命名</p>



<p>中文檔名不知道是否會出錯</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="465" height="337" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/48-2.jpg" alt="" class="wp-image-711" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/48-2.jpg 465w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/48-2-414x300.jpg 414w" sizes="(max-width: 465px) 100vw, 465px" /></figure>



<p>將開發板接到電腦</p>



<p>第一次接上PC會安裝驅動程式</p>



<p>因為是以卸除式裝置成現(似隨身碟)</p>



<p>以資料夾開啟</p>



<p>如果您電腦設定取消自動開啟</p>



<p>請到我的電腦開啟開發板儲存裝置</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="342" height="244" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/49-2.jpg" alt="" class="wp-image-712"/></figure>



<p>剛剛下載的.hex直接拖曳或複製到此資料夾中</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="465" height="265" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/50-2.jpg" alt="" class="wp-image-713"/></figure>



<p>複製中…<br></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="430" height="220" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/51-2.jpg" alt="" class="wp-image-714"/></figure>



<p>複製完成後</p>



<p>會自動從PC卸除裝置</p>



<p>過一會兒</p>



<p>開發板上的LED就亮起囉</p>



<p>開發環境就是這麼簡單</p>



<p>我第一次接觸到時也有點傻眼</p>



<p>之前光建立PIC與STM的環境就可以搞半天了</p>



<figure class="wp-block-image alignwide size-large"><img loading="lazy" decoding="async" width="615" height="346" src="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/25-4.jpg" alt="" class="wp-image-741" srcset="https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/25-4.jpg 615w, https://dvpbearblog.ddns.net/wp-content/uploads/2023/05/25-4-533x300.jpg 533w" sizes="(max-width: 615px) 100vw, 615px" /></figure>



<p>只要手上有開發板</p>



<p>到哪都能寫程式</p>



<p>強強強</p>
]]></content:encoded>
					
					<wfw:commentRss>https://dvpbearblog.ddns.net/nordic-nrf51-dk-%e9%96%8b%e7%99%bc%e6%9d%bf-%e7%9b%b8%e5%ae%b9arduino%e8%88%8a/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
