<?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>樹莓派 &#8211; 醬是創客</title>
	<atom:link href="https://www.chosemaker.com/board/raspberry-pi/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.chosemaker.com</link>
	<description>醬是創客</description>
	<lastBuildDate>Fri, 04 Jun 2021 06:13:41 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.6.8</generator>

<image>
	<url>https://www.chosemaker.com/wp-content/uploads/2020/07/cropped-favicon-1-32x32.jpg</url>
	<title>樹莓派 &#8211; 醬是創客</title>
	<link>https://www.chosemaker.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>[樹莓派教學#6] Raspberry Pi樹莓派使用USB外接SSD硬碟盒做系統booting開機</title>
		<link>https://www.chosemaker.com/board/raspberry-pi/pi-lesson-6/</link>
		
		<dc:creator><![CDATA[pyclifecom]]></dc:creator>
		<pubDate>Thu, 07 Jan 2021 05:28:52 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[樹莓派]]></category>
		<category><![CDATA[程式語言分類]]></category>
		<category><![CDATA[開發板分類]]></category>
		<guid isPermaLink="false">https://www.chosemaker.com/?p=577</guid>

					<description><![CDATA[<p>醬是創客的樹莓派教學主題第6篇，以Raspberry Pi開發板來實作教學，本篇教學將著重Raspb &#8230;</p>
<p>這篇文章 <a rel="nofollow" href="https://www.chosemaker.com/board/raspberry-pi/pi-lesson-6/">[樹莓派教學#6] Raspberry Pi樹莓派使用USB外接SSD硬碟盒做系統booting開機</a> 最早出現於 <a rel="nofollow" href="https://www.chosemaker.com">醬是創客</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>醬是創客的樹莓派教學主題第6篇，以Raspberry Pi開發板來實作教學，本篇教學將著重Raspberry Pi使用USB外接SSD硬碟盒做系統booting開機，如此一來就可以無需再插入SD卡，不用擔心SD卡容易壞，可以拿來跑NAS或網頁與資料庫的服務</p>



<p>設備:<br>一張Micro SD卡(請先安裝好樹莓派image)<br>樹莓派4B #<a href="https://www.ruten.com.tw/item/show?22051318422459" target="_blank" rel="noreferrer noopener">露天拍賣</a> #<a href="https://shopee.tw/%E6%A8%B9%E8%8E%93%E6%B4%BE4B-%E8%8B%B1%E5%9C%8B%E8%A3%BD%E5%8E%9F%E5%BB%A0%E9%96%8B%E7%99%BC%E6%9D%BF-4G-8G-Raspberry-Pi-4B-AI%E5%BD%B1%E5%83%8F%E8%BE%A8%E8%AD%98-%E6%A9%9F%E5%99%A8%E5%AD%B8%E7%BF%92%E5%B0%88%E7%94%A8-Linux-i.293276804.5269190409" target="_blank" rel="noreferrer noopener">蝦皮購物</a><br>2.5吋USB3.0轉SATA硬碟外接盒(樹莓派用) #<a aria-label="undefined (opens in a new tab)" href="https://www.ruten.com.tw/item/show?22101569774947" target="_blank" rel="noreferrer noopener">露天拍賣</a> #<a aria-label="undefined (opens in a new tab)" href="https://shopee.tw/USB3.0-2.5%E5%90%8BSATA-SSD%E7%A1%AC%E7%A2%9F%E5%A4%96%E6%8E%A5%E7%9B%92-Windows-%E6%A8%B9%E8%8E%93%E6%B4%BE%E7%95%B6NAS-%E6%94%AF%E6%8F%B4UASP-ASM1153E%E5%8F%B0%E7%81%A3%E6%99%B6%E7%89%87-i.293276804.4773143787" target="_blank" rel="noreferrer noopener">蝦皮購物</a></p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="500" height="556" src="https://www.chosemaker.com/wp-content/uploads/2021/01/144004.jpg" alt="" class="wp-image-588" srcset="https://www.chosemaker.com/wp-content/uploads/2021/01/144004.jpg 500w, https://www.chosemaker.com/wp-content/uploads/2021/01/144004-270x300.jpg 270w, https://www.chosemaker.com/wp-content/uploads/2021/01/144004-315x350.jpg 315w, https://www.chosemaker.com/wp-content/uploads/2021/01/144004-360x400.jpg 360w" sizes="(max-width: 500px) 100vw, 500px" /></figure></div>



<p>1. 將一張Micro SD卡(已安裝好樹莓派image)插入樹莓派4B開機，並SSH它先做系統更新</p>


<pre class="brush: plain; title: ; notranslate">
sudo apt update
sudo apt full-upgrade
sudo rpi-update
</pre>


<p>2. 更新後再重新開機，再SSH一次，接著更新Bootloader</p>


<pre class="brush: plain; title: ; notranslate">
sudo rpi-eeprom-update -d -a
</pre>


<p>3. 更新後再重新開機，再SSH一次，接著開始設定USB開機，先進入SSH的raspi-config&gt;&gt;6 Advanced Options&gt;&gt;A6 Boot Order&gt;&gt;B1 USB BOOT設定啟用USB開機</p>


<pre class="brush: plain; title: ; notranslate">
sudo raspi-config
</pre>


<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="641" height="382" src="https://www.chosemaker.com/wp-content/uploads/2021/01/rpi-6-1.jpg" alt="" class="wp-image-580" srcset="https://www.chosemaker.com/wp-content/uploads/2021/01/rpi-6-1.jpg 641w, https://www.chosemaker.com/wp-content/uploads/2021/01/rpi-6-1-300x179.jpg 300w, https://www.chosemaker.com/wp-content/uploads/2021/01/rpi-6-1-508x303.jpg 508w" sizes="(max-width: 641px) 100vw, 641px" /></figure></div>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="639" height="382" src="https://www.chosemaker.com/wp-content/uploads/2021/01/rpi-6-2.jpg" alt="" class="wp-image-581" srcset="https://www.chosemaker.com/wp-content/uploads/2021/01/rpi-6-2.jpg 639w, https://www.chosemaker.com/wp-content/uploads/2021/01/rpi-6-2-300x179.jpg 300w, https://www.chosemaker.com/wp-content/uploads/2021/01/rpi-6-2-508x304.jpg 508w" sizes="(max-width: 639px) 100vw, 639px" /></figure></div>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="641" height="382" src="https://www.chosemaker.com/wp-content/uploads/2021/01/rpi-6-3.jpg" alt="" class="wp-image-582" srcset="https://www.chosemaker.com/wp-content/uploads/2021/01/rpi-6-3.jpg 641w, https://www.chosemaker.com/wp-content/uploads/2021/01/rpi-6-3-300x179.jpg 300w, https://www.chosemaker.com/wp-content/uploads/2021/01/rpi-6-3-508x303.jpg 508w" sizes="(max-width: 641px) 100vw, 641px" /></figure></div>



<p>4. 進入樹莓派的GUI，並接上樹莓派專用的USB3.0轉2.5吋SATA SSD硬碟外接盒，我們裡面放美光Crucial BX500 2.5 SSD 120GB的硬碟，接著我們要將目前的SD卡作業系統檔案Copy至USB3.0的硬碟外接盒，點左上角的樹莓圓圈&gt;&gt;Accessories&gt;&gt;SD Card Copier，Copy from device就選目前開機的SD卡，Copy to device就選樹莓派專用的USB3.0轉2.5吋SATA SSD硬碟外接盒，在點擊Start</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="794" height="500" src="https://www.chosemaker.com/wp-content/uploads/2021/01/rpi-6-4.jpg" alt="" class="wp-image-583" srcset="https://www.chosemaker.com/wp-content/uploads/2021/01/rpi-6-4.jpg 794w, https://www.chosemaker.com/wp-content/uploads/2021/01/rpi-6-4-300x189.jpg 300w, https://www.chosemaker.com/wp-content/uploads/2021/01/rpi-6-4-768x484.jpg 768w, https://www.chosemaker.com/wp-content/uploads/2021/01/rpi-6-4-508x320.jpg 508w" sizes="(max-width: 794px) 100vw, 794px" /></figure></div>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="441" height="236" src="https://www.chosemaker.com/wp-content/uploads/2021/01/rpi-6-5.jpg" alt="" class="wp-image-584" srcset="https://www.chosemaker.com/wp-content/uploads/2021/01/rpi-6-5.jpg 441w, https://www.chosemaker.com/wp-content/uploads/2021/01/rpi-6-5-300x161.jpg 300w" sizes="(max-width: 441px) 100vw, 441px" /></figure></div>



<p>5. 先關機並關閉樹莓派電源，移除SD卡，插上電後就可以改SSD開機了</p>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-6%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%236%5D%20Raspberry%20Pi%E6%A8%B9%E8%8E%93%E6%B4%BE%E4%BD%BF%E7%94%A8USB%E5%A4%96%E6%8E%A5SSD%E7%A1%AC%E7%A2%9F%E7%9B%92%E5%81%9A%E7%B3%BB%E7%B5%B1booting%E9%96%8B%E6%A9%9F" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook_messenger" href="https://www.addtoany.com/add_to/facebook_messenger?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-6%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%236%5D%20Raspberry%20Pi%E6%A8%B9%E8%8E%93%E6%B4%BE%E4%BD%BF%E7%94%A8USB%E5%A4%96%E6%8E%A5SSD%E7%A1%AC%E7%A2%9F%E7%9B%92%E5%81%9A%E7%B3%BB%E7%B5%B1booting%E9%96%8B%E6%A9%9F" title="Facebook Messenger" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-6%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%236%5D%20Raspberry%20Pi%E6%A8%B9%E8%8E%93%E6%B4%BE%E4%BD%BF%E7%94%A8USB%E5%A4%96%E6%8E%A5SSD%E7%A1%AC%E7%A2%9F%E7%9B%92%E5%81%9A%E7%B3%BB%E7%B5%B1booting%E9%96%8B%E6%A9%9F" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-6%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%236%5D%20Raspberry%20Pi%E6%A8%B9%E8%8E%93%E6%B4%BE%E4%BD%BF%E7%94%A8USB%E5%A4%96%E6%8E%A5SSD%E7%A1%AC%E7%A2%9F%E7%9B%92%E5%81%9A%E7%B3%BB%E7%B5%B1booting%E9%96%8B%E6%A9%9F" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-6%2F&#038;title=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%236%5D%20Raspberry%20Pi%E6%A8%B9%E8%8E%93%E6%B4%BE%E4%BD%BF%E7%94%A8USB%E5%A4%96%E6%8E%A5SSD%E7%A1%AC%E7%A2%9F%E7%9B%92%E5%81%9A%E7%B3%BB%E7%B5%B1booting%E9%96%8B%E6%A9%9F" data-a2a-url="https://www.chosemaker.com/board/raspberry-pi/pi-lesson-6/" data-a2a-title="[樹莓派教學#6] Raspberry Pi樹莓派使用USB外接SSD硬碟盒做系統booting開機"></a></p><p>這篇文章 <a rel="nofollow" href="https://www.chosemaker.com/board/raspberry-pi/pi-lesson-6/">[樹莓派教學#6] Raspberry Pi樹莓派使用USB外接SSD硬碟盒做系統booting開機</a> 最早出現於 <a rel="nofollow" href="https://www.chosemaker.com">醬是創客</a>。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>[WebThings教學#7] WebThings做出IoT物聯網平台，紀錄Log數值與查看曲線圖</title>
		<link>https://www.chosemaker.com/topic/webthings/webthings-7/</link>
		
		<dc:creator><![CDATA[pyclifecom]]></dc:creator>
		<pubDate>Fri, 16 Oct 2020 03:14:53 +0000</pubDate>
				<category><![CDATA[WebThings]]></category>
		<category><![CDATA[實作主題分類]]></category>
		<category><![CDATA[樹莓派]]></category>
		<category><![CDATA[開發板分類]]></category>
		<guid isPermaLink="false">https://www.chosemaker.com/?p=485</guid>

					<description><![CDATA[<p>醬是創客的WebThings教學主題第7篇，以WebThings Gateway搭配Raspberr &#8230;</p>
<p>這篇文章 <a rel="nofollow" href="https://www.chosemaker.com/topic/webthings/webthings-7/">[WebThings教學#7] WebThings做出IoT物聯網平台，紀錄Log數值與查看曲線圖</a> 最早出現於 <a rel="nofollow" href="https://www.chosemaker.com">醬是創客</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>醬是創客的WebThings教學主題第7篇，以WebThings Gateway搭配Raspberry Pi樹莓派來實作教學，本篇教學將著重紀錄Log數值與查看曲線圖，有了連續數值後，我們可以方便查詢過去的歷史紀錄，並知道設備狀況</p>



<p>本篇文章基於WebThings教學#1~5，請先閱讀完並設定好你的ESP32與樹莓派後再開始進入此篇，首先請先確認儀表板的圖示如下</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="779" height="479" src="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-1.jpg" alt="" class="wp-image-478" srcset="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-1.jpg 779w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-1-300x184.jpg 300w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-1-768x472.jpg 768w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-1-508x312.jpg 508w" sizes="(max-width: 779px) 100vw, 779px" /></figure></div>



<p>到選單的紀錄，並點選右下角來加入紀錄的profile</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="786" height="477" src="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-7-1.jpg" alt="" class="wp-image-486" srcset="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-7-1.jpg 786w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-7-1-300x182.jpg 300w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-7-1-768x466.jpg 768w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-7-1-508x308.jpg 508w" sizes="(max-width: 786px) 100vw, 786px" /></figure></div>



<p>要記錄chosemaker Tempe and Hum的溫度，並指保留7天數據，由於Webthings是將資料放於sqlite3資料庫，這部分需請自行評估IO rate部分計算可以容納多少設備同時寫入</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="785" height="396" src="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-7-2.jpg" alt="" class="wp-image-487" srcset="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-7-2.jpg 785w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-7-2-300x151.jpg 300w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-7-2-768x387.jpg 768w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-7-2-508x256.jpg 508w" sizes="(max-width: 785px) 100vw, 785px" /></figure></div>



<p>接著點入chosemaker Tempe and Hum，即開始繪圖，可以選分/小時/天來查看連續數職的曲線</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="785" height="471" src="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-7-3.jpg" alt="" class="wp-image-488" srcset="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-7-3.jpg 785w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-7-3-300x180.jpg 300w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-7-3-768x461.jpg 768w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-7-3-508x305.jpg 508w" sizes="(max-width: 785px) 100vw, 785px" /></figure></div>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Ftopic%2Fwebthings%2Fwebthings-7%2F&amp;linkname=%5BWebThings%E6%95%99%E5%AD%B8%237%5D%20WebThings%E5%81%9A%E5%87%BAIoT%E7%89%A9%E8%81%AF%E7%B6%B2%E5%B9%B3%E5%8F%B0%EF%BC%8C%E7%B4%80%E9%8C%84Log%E6%95%B8%E5%80%BC%E8%88%87%E6%9F%A5%E7%9C%8B%E6%9B%B2%E7%B7%9A%E5%9C%96" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook_messenger" href="https://www.addtoany.com/add_to/facebook_messenger?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Ftopic%2Fwebthings%2Fwebthings-7%2F&amp;linkname=%5BWebThings%E6%95%99%E5%AD%B8%237%5D%20WebThings%E5%81%9A%E5%87%BAIoT%E7%89%A9%E8%81%AF%E7%B6%B2%E5%B9%B3%E5%8F%B0%EF%BC%8C%E7%B4%80%E9%8C%84Log%E6%95%B8%E5%80%BC%E8%88%87%E6%9F%A5%E7%9C%8B%E6%9B%B2%E7%B7%9A%E5%9C%96" title="Facebook Messenger" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Ftopic%2Fwebthings%2Fwebthings-7%2F&amp;linkname=%5BWebThings%E6%95%99%E5%AD%B8%237%5D%20WebThings%E5%81%9A%E5%87%BAIoT%E7%89%A9%E8%81%AF%E7%B6%B2%E5%B9%B3%E5%8F%B0%EF%BC%8C%E7%B4%80%E9%8C%84Log%E6%95%B8%E5%80%BC%E8%88%87%E6%9F%A5%E7%9C%8B%E6%9B%B2%E7%B7%9A%E5%9C%96" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Ftopic%2Fwebthings%2Fwebthings-7%2F&amp;linkname=%5BWebThings%E6%95%99%E5%AD%B8%237%5D%20WebThings%E5%81%9A%E5%87%BAIoT%E7%89%A9%E8%81%AF%E7%B6%B2%E5%B9%B3%E5%8F%B0%EF%BC%8C%E7%B4%80%E9%8C%84Log%E6%95%B8%E5%80%BC%E8%88%87%E6%9F%A5%E7%9C%8B%E6%9B%B2%E7%B7%9A%E5%9C%96" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.chosemaker.com%2Ftopic%2Fwebthings%2Fwebthings-7%2F&#038;title=%5BWebThings%E6%95%99%E5%AD%B8%237%5D%20WebThings%E5%81%9A%E5%87%BAIoT%E7%89%A9%E8%81%AF%E7%B6%B2%E5%B9%B3%E5%8F%B0%EF%BC%8C%E7%B4%80%E9%8C%84Log%E6%95%B8%E5%80%BC%E8%88%87%E6%9F%A5%E7%9C%8B%E6%9B%B2%E7%B7%9A%E5%9C%96" data-a2a-url="https://www.chosemaker.com/topic/webthings/webthings-7/" data-a2a-title="[WebThings教學#7] WebThings做出IoT物聯網平台，紀錄Log數值與查看曲線圖"></a></p><p>這篇文章 <a rel="nofollow" href="https://www.chosemaker.com/topic/webthings/webthings-7/">[WebThings教學#7] WebThings做出IoT物聯網平台，紀錄Log數值與查看曲線圖</a> 最早出現於 <a rel="nofollow" href="https://www.chosemaker.com">醬是創客</a>。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>[WebThings教學#6] WebThings做出IoT物聯網平台簡易溫溼度與繼電器自動化控制系統實作</title>
		<link>https://www.chosemaker.com/topic/webthings/webthings-6/</link>
		
		<dc:creator><![CDATA[pyclifecom]]></dc:creator>
		<pubDate>Fri, 16 Oct 2020 03:05:40 +0000</pubDate>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[ESP32]]></category>
		<category><![CDATA[WebThings]]></category>
		<category><![CDATA[實作主題分類]]></category>
		<category><![CDATA[樹莓派]]></category>
		<category><![CDATA[程式語言分類]]></category>
		<category><![CDATA[開發板分類]]></category>
		<guid isPermaLink="false">https://www.chosemaker.com/?p=477</guid>

					<description><![CDATA[<p>醬是創客的WebThings教學主題第6篇，以NodeMCU-32S(Arduino語言)與Rasp &#8230;</p>
<p>這篇文章 <a rel="nofollow" href="https://www.chosemaker.com/topic/webthings/webthings-6/">[WebThings教學#6] WebThings做出IoT物聯網平台簡易溫溼度與繼電器自動化控制系統實作</a> 最早出現於 <a rel="nofollow" href="https://www.chosemaker.com">醬是創客</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>醬是創客的WebThings教學主題第6篇，以NodeMCU-32S(Arduino語言)與Raspberry Pi樹莓派來實作教學，本篇教學將著重使用ESP32與WebThings做出免費開源IoT物聯網平台連動，並透過平台判斷溫度高低，來控制繼電器開啟、關閉電燈，即可輕鬆達到智慧家庭、智慧農業、智慧工廠等解決方案，更重要的事情是可以透過IoT平台做到控制</p>



<p>本篇文章基於WebThings教學#1~5，請先閱讀完並設定好你的ESP32與樹莓派後再開始進入此篇，首先請先確認儀表板的圖示如下</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="779" height="479" src="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-1.jpg" alt="" class="wp-image-478" srcset="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-1.jpg 779w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-1-300x184.jpg 300w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-1-768x472.jpg 768w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-1-508x312.jpg 508w" sizes="(max-width: 779px) 100vw, 779px" /></figure></div>



<p>在左邊的選單點選規則後，並點右下的+</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="789" height="481" src="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-2.jpg" alt="" class="wp-image-479" srcset="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-2.jpg 789w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-2-300x183.jpg 300w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-2-768x468.jpg 768w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-2-508x310.jpg 508w" sizes="(max-width: 789px) 100vw, 789px" /></figure></div>



<p>我們先建立一個profile叫more33，設定當chosemaker Tempe and Hum的溫度大於33度時，chosemaker Lamp的繼電器會開啟電燈，藍底部分可以拖拉設備至中間，中間的左方為輸入區拉入chosemaker Tempe and Hum並設定Temp>33，中間的右方為輸出區拉入chosemaker Lamp並設定開</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="1024" height="468" src="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-3-1024x468.jpg" alt="" class="wp-image-480" srcset="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-3-1024x468.jpg 1024w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-3-300x137.jpg 300w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-3-768x351.jpg 768w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-3-508x232.jpg 508w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-3.jpg 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure></div>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="1024" height="483" src="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-4-1024x483.jpg" alt="" class="wp-image-481" srcset="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-4-1024x483.jpg 1024w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-4-300x142.jpg 300w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-4-768x362.jpg 768w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-4-508x240.jpg 508w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-4.jpg 1278w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure></div>



<p>我們再建立一個profile叫less33，設定當chosemaker Tempe and Hum的溫度小於33度時，chosemaker Lamp的繼電器會關閉電燈，藍底部分可以拖拉設備至中間，中間的左方為輸入區拉入chosemaker Tempe and Hum並設定Temp&lt;33，中間的右方為輸出區拉入chosemaker Lamp並設定關</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="1024" height="470" src="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-5-1024x470.jpg" alt="" class="wp-image-482" srcset="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-5-1024x470.jpg 1024w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-5-300x138.jpg 300w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-5-768x353.jpg 768w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-5-508x233.jpg 508w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings-6-5.jpg 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure></div>



<p>這時候系統就可以做到自動化控制，以33度C為分隔，過高則開燈，過低則關燈，可以看到下方還有一個Clock的功能，它也可以拖入來設定某段時間才允許觸發條件</p>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Ftopic%2Fwebthings%2Fwebthings-6%2F&amp;linkname=%5BWebThings%E6%95%99%E5%AD%B8%236%5D%20WebThings%E5%81%9A%E5%87%BAIoT%E7%89%A9%E8%81%AF%E7%B6%B2%E5%B9%B3%E5%8F%B0%E7%B0%A1%E6%98%93%E6%BA%AB%E6%BA%BC%E5%BA%A6%E8%88%87%E7%B9%BC%E9%9B%BB%E5%99%A8%E8%87%AA%E5%8B%95%E5%8C%96%E6%8E%A7%E5%88%B6%E7%B3%BB%E7%B5%B1%E5%AF%A6%E4%BD%9C" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook_messenger" href="https://www.addtoany.com/add_to/facebook_messenger?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Ftopic%2Fwebthings%2Fwebthings-6%2F&amp;linkname=%5BWebThings%E6%95%99%E5%AD%B8%236%5D%20WebThings%E5%81%9A%E5%87%BAIoT%E7%89%A9%E8%81%AF%E7%B6%B2%E5%B9%B3%E5%8F%B0%E7%B0%A1%E6%98%93%E6%BA%AB%E6%BA%BC%E5%BA%A6%E8%88%87%E7%B9%BC%E9%9B%BB%E5%99%A8%E8%87%AA%E5%8B%95%E5%8C%96%E6%8E%A7%E5%88%B6%E7%B3%BB%E7%B5%B1%E5%AF%A6%E4%BD%9C" title="Facebook Messenger" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Ftopic%2Fwebthings%2Fwebthings-6%2F&amp;linkname=%5BWebThings%E6%95%99%E5%AD%B8%236%5D%20WebThings%E5%81%9A%E5%87%BAIoT%E7%89%A9%E8%81%AF%E7%B6%B2%E5%B9%B3%E5%8F%B0%E7%B0%A1%E6%98%93%E6%BA%AB%E6%BA%BC%E5%BA%A6%E8%88%87%E7%B9%BC%E9%9B%BB%E5%99%A8%E8%87%AA%E5%8B%95%E5%8C%96%E6%8E%A7%E5%88%B6%E7%B3%BB%E7%B5%B1%E5%AF%A6%E4%BD%9C" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Ftopic%2Fwebthings%2Fwebthings-6%2F&amp;linkname=%5BWebThings%E6%95%99%E5%AD%B8%236%5D%20WebThings%E5%81%9A%E5%87%BAIoT%E7%89%A9%E8%81%AF%E7%B6%B2%E5%B9%B3%E5%8F%B0%E7%B0%A1%E6%98%93%E6%BA%AB%E6%BA%BC%E5%BA%A6%E8%88%87%E7%B9%BC%E9%9B%BB%E5%99%A8%E8%87%AA%E5%8B%95%E5%8C%96%E6%8E%A7%E5%88%B6%E7%B3%BB%E7%B5%B1%E5%AF%A6%E4%BD%9C" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.chosemaker.com%2Ftopic%2Fwebthings%2Fwebthings-6%2F&#038;title=%5BWebThings%E6%95%99%E5%AD%B8%236%5D%20WebThings%E5%81%9A%E5%87%BAIoT%E7%89%A9%E8%81%AF%E7%B6%B2%E5%B9%B3%E5%8F%B0%E7%B0%A1%E6%98%93%E6%BA%AB%E6%BA%BC%E5%BA%A6%E8%88%87%E7%B9%BC%E9%9B%BB%E5%99%A8%E8%87%AA%E5%8B%95%E5%8C%96%E6%8E%A7%E5%88%B6%E7%B3%BB%E7%B5%B1%E5%AF%A6%E4%BD%9C" data-a2a-url="https://www.chosemaker.com/topic/webthings/webthings-6/" data-a2a-title="[WebThings教學#6] WebThings做出IoT物聯網平台簡易溫溼度與繼電器自動化控制系統實作"></a></p><p>這篇文章 <a rel="nofollow" href="https://www.chosemaker.com/topic/webthings/webthings-6/">[WebThings教學#6] WebThings做出IoT物聯網平台簡易溫溼度與繼電器自動化控制系統實作</a> 最早出現於 <a rel="nofollow" href="https://www.chosemaker.com">醬是創客</a>。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>[WebThings教學#2] 使用樹莓派當WebThings Gateway 開源物聯網CMS控制器伺服器主機</title>
		<link>https://www.chosemaker.com/topic/webthings/webthings-2/</link>
		
		<dc:creator><![CDATA[pyclifecom]]></dc:creator>
		<pubDate>Tue, 06 Oct 2020 07:47:21 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[WebThings]]></category>
		<category><![CDATA[實作主題分類]]></category>
		<category><![CDATA[樹莓派]]></category>
		<category><![CDATA[程式語言分類]]></category>
		<category><![CDATA[開發板分類]]></category>
		<guid isPermaLink="false">https://www.chosemaker.com/?p=447</guid>

					<description><![CDATA[<p>醬是創客的WebThings教學主題第2篇，以WebThings來實作教學，本篇教學將著重使用樹莓派 &#8230;</p>
<p>這篇文章 <a rel="nofollow" href="https://www.chosemaker.com/topic/webthings/webthings-2/">[WebThings教學#2] 使用樹莓派當WebThings Gateway 開源物聯網CMS控制器伺服器主機</a> 最早出現於 <a rel="nofollow" href="https://www.chosemaker.com">醬是創客</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>醬是創客的WebThings教學主題第2篇，以WebThings來實作教學，本篇教學將著重使用樹莓派當WebThings Gateway 開源物聯網CMS控制器伺服器主機與展示WebThings Gateway平台功能(Alarm、Log、Rule)，最常見的智慧家庭也可以透過該平台達到</p>



<p>設備:<br>1 x Raspberry Pi(建議3以上) 樹莓派4B #<a href="https://www.ruten.com.tw/item/show?22051318422459" target="_blank" rel="noreferrer noopener">露天拍賣</a> #<a href="https://shopee.tw/%E6%A8%B9%E8%8E%93%E6%B4%BE4B-%E8%8B%B1%E5%9C%8B%E8%A3%BD%E5%8E%9F%E5%BB%A0%E9%96%8B%E7%99%BC%E6%9D%BF-4G-8G-Raspberry-Pi-4B-AI%E5%BD%B1%E5%83%8F%E8%BE%A8%E8%AD%98-%E6%A9%9F%E5%99%A8%E5%AD%B8%E7%BF%92%E5%B0%88%E7%94%A8-Linux-i.293276804.5269190409" target="_blank" rel="noreferrer noopener">蝦皮購物</a><br>1 x Micro SD(Class 10, 8G以上)</p>



<p>第1步: 下載<a aria-label="undefined (opens in a new tab)" href="https://github.com/WebThingsIO/gateway/releases/download/0.12.0/gateway-0.12.0.img.zip" target="_blank" rel="noreferrer noopener">樹莓派的image檔案</a>，下載後先解壓縮該檔案成.img</p>



<p>第2步: 使用Win32DiskImager或Etcher將.img檔案燒入至Micro SD卡</p>



<p>第3步: 將Micro SD卡放入樹莓派，並開機</p>



<p>第4步: 樹莓派開機後，會自動變成Wi-Fi hotspot，打開你的手機或筆電，搜尋&#8221;WebThings Gateway XXXX&#8221;，XXXX代表樹莓派MAC address尾碼</p>



<p>第5步: 連上樹莓派後，輸入http://192.168.2.1，先設定樹莓派連結到你的Wi-Fi，並設定好帳號密碼等設定</p>



<p>第6步: 從你的無線路由器找出樹莓派的IP即可開始使用</p>



<p>我們來實測WebThings Gateway功能</p>



<p>可以透過URI的方式新增機器，另一端可以搭配Arduino或其他設備用WebThings Framework下去跑</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="689" height="336" src="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-1.jpg" alt="" class="wp-image-450" srcset="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-1.jpg 689w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-1-300x146.jpg 300w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-1-508x248.jpg 508w" sizes="(max-width: 689px) 100vw, 689px" /></figure></div>



<p>Dashboard儀錶板的部分，可以看出各設備的即時狀況，也可以點入再看細節，如溫度濕度</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="800" height="366" src="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-2.jpg" alt="" class="wp-image-451" srcset="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-2.jpg 800w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-2-300x137.jpg 300w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-2-768x351.jpg 768w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-2-508x232.jpg 508w" sizes="(max-width: 800px) 100vw, 800px" /></figure></div>



<p>Rule控制部分，以下面的範例來說，當My Lamp的溫度大於33度的時候，My Lamp5的開關會被打開</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="800" height="364" src="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-3.jpg" alt="" class="wp-image-452" srcset="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-3.jpg 800w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-3-300x137.jpg 300w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-3-768x349.jpg 768w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-3-508x231.jpg 508w" sizes="(max-width: 800px) 100vw, 800px" /></figure></div>



<p>記錄檔Log，可以記錄設備的連續數值，可以看到Chart的變化，但這個是存在SQLite裡面，記得自行計算IO效能</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="800" height="365" src="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-4.jpg" alt="" class="wp-image-453" srcset="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-4.jpg 800w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-4-300x137.jpg 300w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-4-768x350.jpg 768w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-4-508x232.jpg 508w" sizes="(max-width: 800px) 100vw, 800px" /></figure></div>



<p>最好用的莫過是附加元件，有好心人幫忙開發好一些套件，舉例可以送Alarm Notification到Telegram，這樣你就知道何時發生什麼事情</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="626" height="602" src="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-5.jpg" alt="" class="wp-image-454" srcset="https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-5.jpg 626w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-5-300x288.jpg 300w, https://www.chosemaker.com/wp-content/uploads/2020/10/webthings2-5-364x350.jpg 364w" sizes="(max-width: 626px) 100vw, 626px" /></figure></div>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Ftopic%2Fwebthings%2Fwebthings-2%2F&amp;linkname=%5BWebThings%E6%95%99%E5%AD%B8%232%5D%20%E4%BD%BF%E7%94%A8%E6%A8%B9%E8%8E%93%E6%B4%BE%E7%95%B6WebThings%20Gateway%20%E9%96%8B%E6%BA%90%E7%89%A9%E8%81%AF%E7%B6%B2CMS%E6%8E%A7%E5%88%B6%E5%99%A8%E4%BC%BA%E6%9C%8D%E5%99%A8%E4%B8%BB%E6%A9%9F" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook_messenger" href="https://www.addtoany.com/add_to/facebook_messenger?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Ftopic%2Fwebthings%2Fwebthings-2%2F&amp;linkname=%5BWebThings%E6%95%99%E5%AD%B8%232%5D%20%E4%BD%BF%E7%94%A8%E6%A8%B9%E8%8E%93%E6%B4%BE%E7%95%B6WebThings%20Gateway%20%E9%96%8B%E6%BA%90%E7%89%A9%E8%81%AF%E7%B6%B2CMS%E6%8E%A7%E5%88%B6%E5%99%A8%E4%BC%BA%E6%9C%8D%E5%99%A8%E4%B8%BB%E6%A9%9F" title="Facebook Messenger" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Ftopic%2Fwebthings%2Fwebthings-2%2F&amp;linkname=%5BWebThings%E6%95%99%E5%AD%B8%232%5D%20%E4%BD%BF%E7%94%A8%E6%A8%B9%E8%8E%93%E6%B4%BE%E7%95%B6WebThings%20Gateway%20%E9%96%8B%E6%BA%90%E7%89%A9%E8%81%AF%E7%B6%B2CMS%E6%8E%A7%E5%88%B6%E5%99%A8%E4%BC%BA%E6%9C%8D%E5%99%A8%E4%B8%BB%E6%A9%9F" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Ftopic%2Fwebthings%2Fwebthings-2%2F&amp;linkname=%5BWebThings%E6%95%99%E5%AD%B8%232%5D%20%E4%BD%BF%E7%94%A8%E6%A8%B9%E8%8E%93%E6%B4%BE%E7%95%B6WebThings%20Gateway%20%E9%96%8B%E6%BA%90%E7%89%A9%E8%81%AF%E7%B6%B2CMS%E6%8E%A7%E5%88%B6%E5%99%A8%E4%BC%BA%E6%9C%8D%E5%99%A8%E4%B8%BB%E6%A9%9F" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.chosemaker.com%2Ftopic%2Fwebthings%2Fwebthings-2%2F&#038;title=%5BWebThings%E6%95%99%E5%AD%B8%232%5D%20%E4%BD%BF%E7%94%A8%E6%A8%B9%E8%8E%93%E6%B4%BE%E7%95%B6WebThings%20Gateway%20%E9%96%8B%E6%BA%90%E7%89%A9%E8%81%AF%E7%B6%B2CMS%E6%8E%A7%E5%88%B6%E5%99%A8%E4%BC%BA%E6%9C%8D%E5%99%A8%E4%B8%BB%E6%A9%9F" data-a2a-url="https://www.chosemaker.com/topic/webthings/webthings-2/" data-a2a-title="[WebThings教學#2] 使用樹莓派當WebThings Gateway 開源物聯網CMS控制器伺服器主機"></a></p><p>這篇文章 <a rel="nofollow" href="https://www.chosemaker.com/topic/webthings/webthings-2/">[WebThings教學#2] 使用樹莓派當WebThings Gateway 開源物聯網CMS控制器伺服器主機</a> 最早出現於 <a rel="nofollow" href="https://www.chosemaker.com">醬是創客</a>。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>[樹莓派教學#5] Raspberry Pi外接CSI介面相機模組，並拍一張JPEG相片</title>
		<link>https://www.chosemaker.com/board/raspberry-pi/pi-lesson-5/</link>
		
		<dc:creator><![CDATA[pyclifecom]]></dc:creator>
		<pubDate>Thu, 06 Aug 2020 06:18:34 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[樹莓派]]></category>
		<category><![CDATA[程式語言分類]]></category>
		<category><![CDATA[開發板分類]]></category>
		<guid isPermaLink="false">https://www.chosemaker.com/?p=428</guid>

					<description><![CDATA[<p>醬是創客的樹莓派教學主題第5篇，以Raspberry Pi開發板來實作教學，本篇教學將著重Raspb &#8230;</p>
<p>這篇文章 <a rel="nofollow" href="https://www.chosemaker.com/board/raspberry-pi/pi-lesson-5/">[樹莓派教學#5] Raspberry Pi外接CSI介面相機模組，並拍一張JPEG相片</a> 最早出現於 <a rel="nofollow" href="https://www.chosemaker.com">醬是創客</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>醬是創客的樹莓派教學主題第5篇，以Raspberry Pi開發板來實作教學，本篇教學將著重Raspberry Pi外接CSI介面相機模組，並拍一張JPEG相片，一般來說只要能從相機模組抓到相片或影片，就可以使用OpenCV來做影像處理辨識</p>



<p>設備:<br>Raspberry Pi 各系列<br>樹莓派4B #<a href="https://www.ruten.com.tw/item/show?22051318422459" target="_blank" rel="noreferrer noopener">露天拍賣</a> #<a href="https://shopee.tw/%E6%A8%B9%E8%8E%93%E6%B4%BE4B-%E8%8B%B1%E5%9C%8B%E8%A3%BD%E5%8E%9F%E5%BB%A0%E9%96%8B%E7%99%BC%E6%9D%BF-4G-8G-Raspberry-Pi-4B-AI%E5%BD%B1%E5%83%8F%E8%BE%A8%E8%AD%98-%E6%A9%9F%E5%99%A8%E5%AD%B8%E7%BF%92%E5%B0%88%E7%94%A8-Linux-i.293276804.5269190409" target="_blank" rel="noreferrer noopener">蝦皮購物</a><br>OV5647 樹莓派4B/3B全系列 500萬相機模組 #<a href="https://www.ruten.com.tw/item/show?21927972655353" target="_blank" rel="noreferrer noopener">露天拍賣</a> #<a href="https://shopee.tw/500%E8%90%AC%E7%95%AB%E7%B4%A0-OV5647-%E6%A8%B9%E8%8E%93%E6%B4%BE4-%E7%9B%B8%E6%A9%9F%E6%A8%A1%E7%B5%84-CSI%E4%BB%8B%E9%9D%A2-Raspberry-Pi-4B-3B-3A-%E5%8F%AF%E5%A4%96%E6%8E%9B%E9%8F%A1%E9%A0%AD-i.293276804.3546482880" target="_blank" rel="noreferrer noopener">蝦皮購物</a></p>



<p>接線方式:<br>樹莓派(CSI介面)–排線–OV5647相機模組</p>



<p>首先我們要先找出樹莓派的CSI介面，<a aria-label="undefined (opens in a new tab)" href="https://www.raspberrypi.org/documentation/usage/gpio/" target="_blank" rel="noreferrer noopener">點我看樹莓派介面分布圖</a>，樹莓派有兩個相似的介面DSI和CSI，DSI是外接螢幕輸出使用的，CSI是外接相機輸入使用，基本上各版本的樹莓派都設計得差不多，也不會有太大的異動。</p>



<p>我們做了CSI介面相機模組的硬體安裝 + 樹莓派軟體設定 + 如何拍一張相片的詳細影片，請參考下方的Youtube</p>



<figure class="wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="樹莓派 Raspberry Pi 相機模組使用教學" width="414" height="311" src="https://www.youtube.com/embed/m5BvzWnLl6A?feature=oembed" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div></figure>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-5%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%235%5D%20Raspberry%20Pi%E5%A4%96%E6%8E%A5CSI%E4%BB%8B%E9%9D%A2%E7%9B%B8%E6%A9%9F%E6%A8%A1%E7%B5%84%EF%BC%8C%E4%B8%A6%E6%8B%8D%E4%B8%80%E5%BC%B5JPEG%E7%9B%B8%E7%89%87" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook_messenger" href="https://www.addtoany.com/add_to/facebook_messenger?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-5%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%235%5D%20Raspberry%20Pi%E5%A4%96%E6%8E%A5CSI%E4%BB%8B%E9%9D%A2%E7%9B%B8%E6%A9%9F%E6%A8%A1%E7%B5%84%EF%BC%8C%E4%B8%A6%E6%8B%8D%E4%B8%80%E5%BC%B5JPEG%E7%9B%B8%E7%89%87" title="Facebook Messenger" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-5%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%235%5D%20Raspberry%20Pi%E5%A4%96%E6%8E%A5CSI%E4%BB%8B%E9%9D%A2%E7%9B%B8%E6%A9%9F%E6%A8%A1%E7%B5%84%EF%BC%8C%E4%B8%A6%E6%8B%8D%E4%B8%80%E5%BC%B5JPEG%E7%9B%B8%E7%89%87" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-5%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%235%5D%20Raspberry%20Pi%E5%A4%96%E6%8E%A5CSI%E4%BB%8B%E9%9D%A2%E7%9B%B8%E6%A9%9F%E6%A8%A1%E7%B5%84%EF%BC%8C%E4%B8%A6%E6%8B%8D%E4%B8%80%E5%BC%B5JPEG%E7%9B%B8%E7%89%87" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-5%2F&#038;title=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%235%5D%20Raspberry%20Pi%E5%A4%96%E6%8E%A5CSI%E4%BB%8B%E9%9D%A2%E7%9B%B8%E6%A9%9F%E6%A8%A1%E7%B5%84%EF%BC%8C%E4%B8%A6%E6%8B%8D%E4%B8%80%E5%BC%B5JPEG%E7%9B%B8%E7%89%87" data-a2a-url="https://www.chosemaker.com/board/raspberry-pi/pi-lesson-5/" data-a2a-title="[樹莓派教學#5] Raspberry Pi外接CSI介面相機模組，並拍一張JPEG相片"></a></p><p>這篇文章 <a rel="nofollow" href="https://www.chosemaker.com/board/raspberry-pi/pi-lesson-5/">[樹莓派教學#5] Raspberry Pi外接CSI介面相機模組，並拍一張JPEG相片</a> 最早出現於 <a rel="nofollow" href="https://www.chosemaker.com">醬是創客</a>。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>[樹莓派教學#4] Raspberry Pi外接USB轉RS485 Serial並使用python的pySerial接收/發送byte實作</title>
		<link>https://www.chosemaker.com/board/raspberry-pi/pi-lesson-4/</link>
		
		<dc:creator><![CDATA[pyclifecom]]></dc:creator>
		<pubDate>Tue, 04 Aug 2020 07:58:10 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[樹莓派]]></category>
		<category><![CDATA[程式語言分類]]></category>
		<category><![CDATA[開發板分類]]></category>
		<guid isPermaLink="false">https://www.chosemaker.com/?p=412</guid>

					<description><![CDATA[<p>醬是創客的樹莓派教學主題第4篇，以Raspberry Pi開發板來實作教學，本篇教學將著重Raspb &#8230;</p>
<p>這篇文章 <a rel="nofollow" href="https://www.chosemaker.com/board/raspberry-pi/pi-lesson-4/">[樹莓派教學#4] Raspberry Pi外接USB轉RS485 Serial並使用python的pySerial接收/發送byte實作</a> 最早出現於 <a rel="nofollow" href="https://www.chosemaker.com">醬是創客</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>醬是創客的樹莓派教學主題第4篇，以Raspberry Pi開發板來實作教學，本篇教學將著重Raspberry Pi外接USB轉RS485 Serial並使用python 的pySerial接收/發送byte實作，常見的應用就是樹莓派來當Modbus Master透過RTU抓Slave的資料</p>



<p>設備:<br>Raspberry Pi 各系列<br>樹莓派4B #<a href="https://www.ruten.com.tw/item/show?22051318422459" target="_blank" rel="noreferrer noopener">露天拍賣</a> #<a href="https://shopee.tw/%E6%A8%B9%E8%8E%93%E6%B4%BE4B-%E8%8B%B1%E5%9C%8B%E8%A3%BD%E5%8E%9F%E5%BB%A0%E9%96%8B%E7%99%BC%E6%9D%BF-4G-8G-Raspberry-Pi-4B-AI%E5%BD%B1%E5%83%8F%E8%BE%A8%E8%AD%98-%E6%A9%9F%E5%99%A8%E5%AD%B8%E7%BF%92%E5%B0%88%E7%94%A8-Linux-i.293276804.5269190409" target="_blank" rel="noreferrer noopener">蝦皮購物</a><br>PYC U485B USB轉RS485 #<a href="https://www.ruten.com.tw/item/show?22013373684403" target="_blank" rel="noreferrer noopener">露天拍賣</a> #<a href="https://shopee.tw/PYC-U485B-USB%E8%BD%89RS485-2-wire-%E6%A8%B9%E8%8E%93%E6%B4%BE-Linux-Raspberry-Pi-%E5%BA%8F%E5%88%97%E5%9F%A0-Serial-i.293276804.4545802005" target="_blank" rel="noreferrer noopener">蝦皮購物</a></p>



<p>接線方式:<br>樹莓派–USB–PYC U485B(USB轉RS485)<br>PYC U485B(USB轉RS485)–A線–A線–自行撰寫的RS485設備<br>PYC U485B(USB轉RS485)–B線–B線–自行撰寫的RS485設備<br>(115200,N,8,1)</p>



<p>首先要先準備一台裝好的樹莓派，並安裝好Raspbian，預設的Raspbian已經安裝好python了，再來我們先更新系統到最新版本，並安裝python的pyserial套件</p>


<pre class="brush: plain; title: ; notranslate">
sudo apt-get update
sudo apt-get upgrade
pip install pyserial
</pre>


<p>接著我們安裝PYC U485B的驅動程式，到他的官網下載驅動程式，裡面並附有如何在Linux安裝驅動程式的說明。我們也有發現最新的樹莓派版本已經有支援該款晶片，如果插入後沒有出現，有CH340的相關資料，再去官網下載安裝，我們輸入lsusb以後就可以找到USB Serial相關資訊，代表有成功抓到</p>


<pre class="brush: as3; title: ; notranslate">
root@raspberrypi_chosemaker:/home/pi# lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 1a86:7523 340 USB-Serial adapter
</pre>


<p>我們要去debug message下面抓該張USB Serial使用哪一個tty，所以打dmesg | grep tty，這時候可以看到它使用ttyUSB0，它的Port名是/dev/ttyUSB0</p>


<pre class="brush: as3; title: ; notranslate">
root@raspberrypi_chosemaker:/home/pi# dmesg | grep tty
[12708.761510] usb 1-1.3: ch341-uart converter now attached to ttyUSB0
</pre>


<p>開始來寫Python的程式</p>


<pre class="brush: python; title: ; notranslate">
import serial, time
 
ser = serial.Serial()
ser.port = &quot;/dev/ttyUSB0&quot;
 
#115200,N,8,1
ser.baudrate = 115200
ser.bytesize = serial.EIGHTBITS #number of bits per bytes
ser.parity = serial.PARITY_NONE #set parity check
ser.stopbits = serial.STOPBITS_ONE #number of stop bits
 
ser.timeout = 0.5          #non-block read 0.5s
ser.writeTimeout = 0.5     #timeout for write 0.5s
ser.xonxoff = False    #disable software flow control
ser.rtscts = False     #disable hardware (RTS/CTS) flow control
ser.dsrdtr = False     #disable hardware (DSR/DTR) flow control
 
try: 
    ser.open()
except Exception as ex:
    print (&quot;open serial port error &quot; + str(ex))
    exit()
 
if ser.isOpen():
 
    try:
        ser.flushInput() #flush input buffer
        ser.flushOutput() #flush output buffer
 
        #write 8 byte data
        ser.write([78, 78, 78, 78, 78, 78, 78, 78])
        print(&quot;write 8 byte data: 78, 78, 78, 78, 78, 78, 78, 78&quot;)
 
        time.sleep(0.5)  #wait 0.5s
 
        #read 8 byte data
        response = ser.read(8)
        print(&quot;read 8 byte data:&quot;)
        print(response)
 
        ser.close()
    except Exception as e1:
        print (&quot;communicating error &quot; + str(e1))
 
else:
    print (&quot;open serial port error&quot;)
</pre>


<p>自行撰寫的RS485設備收到樹莓派發的8 byte 0x78後，會回發一個8 byte裡面是可以直接顯示8個string &#8220;N”。建立一個new.py並放在/home/pi，執行python3 new.py就可以跑出以下</p>


<pre class="brush: as3; title: ; notranslate">
root@raspberrypi_chosemaker:/home/pi# python3 new.py
write 8 byte data: 78, 78, 78, 78, 78, 78, 78, 78
read 8 byte data:
b'NNNNNNNN'
</pre>


<p></p>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-4%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%234%5D%20Raspberry%20Pi%E5%A4%96%E6%8E%A5USB%E8%BD%89RS485%20Serial%E4%B8%A6%E4%BD%BF%E7%94%A8python%E7%9A%84pySerial%E6%8E%A5%E6%94%B6%2F%E7%99%BC%E9%80%81byte%E5%AF%A6%E4%BD%9C" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook_messenger" href="https://www.addtoany.com/add_to/facebook_messenger?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-4%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%234%5D%20Raspberry%20Pi%E5%A4%96%E6%8E%A5USB%E8%BD%89RS485%20Serial%E4%B8%A6%E4%BD%BF%E7%94%A8python%E7%9A%84pySerial%E6%8E%A5%E6%94%B6%2F%E7%99%BC%E9%80%81byte%E5%AF%A6%E4%BD%9C" title="Facebook Messenger" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-4%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%234%5D%20Raspberry%20Pi%E5%A4%96%E6%8E%A5USB%E8%BD%89RS485%20Serial%E4%B8%A6%E4%BD%BF%E7%94%A8python%E7%9A%84pySerial%E6%8E%A5%E6%94%B6%2F%E7%99%BC%E9%80%81byte%E5%AF%A6%E4%BD%9C" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-4%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%234%5D%20Raspberry%20Pi%E5%A4%96%E6%8E%A5USB%E8%BD%89RS485%20Serial%E4%B8%A6%E4%BD%BF%E7%94%A8python%E7%9A%84pySerial%E6%8E%A5%E6%94%B6%2F%E7%99%BC%E9%80%81byte%E5%AF%A6%E4%BD%9C" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-4%2F&#038;title=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%234%5D%20Raspberry%20Pi%E5%A4%96%E6%8E%A5USB%E8%BD%89RS485%20Serial%E4%B8%A6%E4%BD%BF%E7%94%A8python%E7%9A%84pySerial%E6%8E%A5%E6%94%B6%2F%E7%99%BC%E9%80%81byte%E5%AF%A6%E4%BD%9C" data-a2a-url="https://www.chosemaker.com/board/raspberry-pi/pi-lesson-4/" data-a2a-title="[樹莓派教學#4] Raspberry Pi外接USB轉RS485 Serial並使用python的pySerial接收/發送byte實作"></a></p><p>這篇文章 <a rel="nofollow" href="https://www.chosemaker.com/board/raspberry-pi/pi-lesson-4/">[樹莓派教學#4] Raspberry Pi外接USB轉RS485 Serial並使用python的pySerial接收/發送byte實作</a> 最早出現於 <a rel="nofollow" href="https://www.chosemaker.com">醬是創客</a>。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>[樹莓派教學#3] Raspberry Pi外接USB轉RS232 Serial並使用python的pySerial接收/發送byte實作</title>
		<link>https://www.chosemaker.com/board/raspberry-pi/pi-lesson-3/</link>
		
		<dc:creator><![CDATA[pyclifecom]]></dc:creator>
		<pubDate>Tue, 04 Aug 2020 07:51:13 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[樹莓派]]></category>
		<category><![CDATA[程式語言分類]]></category>
		<category><![CDATA[開發板分類]]></category>
		<guid isPermaLink="false">https://www.chosemaker.com/?p=410</guid>

					<description><![CDATA[<p>醬是創客的樹莓派教學主題第3篇，以Raspberry Pi開發板來實作教學，本篇教學將著重Raspb &#8230;</p>
<p>這篇文章 <a rel="nofollow" href="https://www.chosemaker.com/board/raspberry-pi/pi-lesson-3/">[樹莓派教學#3] Raspberry Pi外接USB轉RS232 Serial並使用python的pySerial接收/發送byte實作</a> 最早出現於 <a rel="nofollow" href="https://www.chosemaker.com">醬是創客</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>醬是創客的樹莓派教學主題第3篇，以Raspberry Pi開發板來實作教學，本篇教學將著重Raspberry Pi外接USB轉RS232 Serial並使用python 的pySerial接收/發送byte實作，常見的應用就是樹莓派透過MQTT拋送從COM port抓到的資料</p>



<p>設備:<br>Raspberry Pi 各系列<br>樹莓派4B #<a href="https://www.ruten.com.tw/item/show?22051318422459" target="_blank" rel="noreferrer noopener">露天拍賣</a> #<a href="https://shopee.tw/%E6%A8%B9%E8%8E%93%E6%B4%BE4B-%E8%8B%B1%E5%9C%8B%E8%A3%BD%E5%8E%9F%E5%BB%A0%E9%96%8B%E7%99%BC%E6%9D%BF-4G-8G-Raspberry-Pi-4B-AI%E5%BD%B1%E5%83%8F%E8%BE%A8%E8%AD%98-%E6%A9%9F%E5%99%A8%E5%AD%B8%E7%BF%92%E5%B0%88%E7%94%A8-Linux-i.293276804.5269190409" target="_blank" rel="noreferrer noopener">蝦皮購物</a><br>PYC U232 USB轉RS232 #<a href="https://www.ruten.com.tw/item/show?22002193991895" target="_blank" rel="noreferrer noopener">露天拍賣</a> #<a href="https://shopee.tw/PYC-U232-USB%E8%BD%89RS232-DB9-%E5%85%AC%E9%A0%AD-%E6%A8%B9%E8%8E%93%E6%B4%BE-Linux-Raspberry-Pi-%E5%BA%8F%E5%88%97%E5%9F%A0-Serial-i.293276804.3845893193" target="_blank" rel="noreferrer noopener">蝦皮購物</a></p>



<p>接線方式:<br>樹莓派&#8211;USB&#8211;PYC U232(USB轉RS232)<br>PYC U232(USB轉RS232)&#8211;RS232線&#8211;自行撰寫的RS232設備(115200,N,8,1)</p>



<p>首先要先準備一台裝好的樹莓派，並安裝好Raspbian，預設的Raspbian已經安裝好python了，再來我們先更新系統到最新版本，並安裝python的pyserial套件</p>


<pre class="brush: python; title: ; notranslate">
sudo apt-get update
sudo apt-get upgrade
pip install pyserial
</pre>


<p>接著我們安裝PYC U232的驅動程式，到他的官網下載驅動程式，裡面並附有如何在Linux安裝驅動程式的說明。我們也有發現最新的樹莓派版本已經有支援該款晶片，如果插入後沒有出現，有CH340的相關資料，再去官網下載安裝，我們輸入lsusb以後就可以找到USB Serial相關資訊，代表有成功抓到</p>


<pre class="brush: as3; title: ; notranslate">
root@raspberrypi_chosemaker:/home/pi# lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 1a86:7523 340 USB-Serial adapter
</pre>


<p>我們要去debug message下面抓該張USB Serial使用哪一個tty，所以打dmesg | grep tty，這時候可以看到它使用ttyUSB0，它的Port名是/dev/ttyUSB0</p>


<pre class="brush: as3; title: ; notranslate">
root@raspberrypi_chosemaker:/home/pi# dmesg | grep tty
[12708.761510] usb 1-1.3: ch341-uart converter now attached to ttyUSB0
</pre>


<p>開始來寫Python的程式</p>


<pre class="brush: python; title: ; notranslate">
import serial, time

ser = serial.Serial()
ser.port = &quot;/dev/ttyUSB0&quot;

#115200,N,8,1
ser.baudrate = 115200
ser.bytesize = serial.EIGHTBITS #number of bits per bytes
ser.parity = serial.PARITY_NONE #set parity check
ser.stopbits = serial.STOPBITS_ONE #number of stop bits

ser.timeout = 0.5          #non-block read 0.5s
ser.writeTimeout = 0.5     #timeout for write 0.5s
ser.xonxoff = False    #disable software flow control
ser.rtscts = False     #disable hardware (RTS/CTS) flow control
ser.dsrdtr = False     #disable hardware (DSR/DTR) flow control

try: 
    ser.open()
except Exception as ex:
    print (&quot;open serial port error &quot; + str(ex))
    exit()

if ser.isOpen():

    try:
        ser.flushInput() #flush input buffer
        ser.flushOutput() #flush output buffer

        #write 8 byte data
        ser.write([78, 78, 78, 78, 78, 78, 78, 78])
        print(&quot;write 8 byte data: 78, 78, 78, 78, 78, 78, 78, 78&quot;)

        time.sleep(0.5)  #wait 0.5s

        #read 8 byte data
        response = ser.read(8)
        print(&quot;read 8 byte data:&quot;)
        print(response)

        ser.close()
    except Exception as e1:
        print (&quot;communicating error &quot; + str(e1))

else:
    print (&quot;open serial port error&quot;)
</pre>


<p>自行撰寫的RS232設備收到樹莓派發的8 byte 0x78後，會回發一個8 byte裡面是可以直接顯示8個string &#8220;N”。建立一個new.py並放在/home/pi，執行python3 new.py就可以跑出以下</p>


<pre class="brush: as3; title: ; notranslate">
root@raspberrypi_chosemaker:/home/pi# python3 new.py
write 8 byte data: 78, 78, 78, 78, 78, 78, 78, 78
read 8 byte data:
b'NNNNNNNN'
</pre><p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-3%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%233%5D%20Raspberry%20Pi%E5%A4%96%E6%8E%A5USB%E8%BD%89RS232%20Serial%E4%B8%A6%E4%BD%BF%E7%94%A8python%E7%9A%84pySerial%E6%8E%A5%E6%94%B6%2F%E7%99%BC%E9%80%81byte%E5%AF%A6%E4%BD%9C" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook_messenger" href="https://www.addtoany.com/add_to/facebook_messenger?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-3%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%233%5D%20Raspberry%20Pi%E5%A4%96%E6%8E%A5USB%E8%BD%89RS232%20Serial%E4%B8%A6%E4%BD%BF%E7%94%A8python%E7%9A%84pySerial%E6%8E%A5%E6%94%B6%2F%E7%99%BC%E9%80%81byte%E5%AF%A6%E4%BD%9C" title="Facebook Messenger" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-3%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%233%5D%20Raspberry%20Pi%E5%A4%96%E6%8E%A5USB%E8%BD%89RS232%20Serial%E4%B8%A6%E4%BD%BF%E7%94%A8python%E7%9A%84pySerial%E6%8E%A5%E6%94%B6%2F%E7%99%BC%E9%80%81byte%E5%AF%A6%E4%BD%9C" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-3%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%233%5D%20Raspberry%20Pi%E5%A4%96%E6%8E%A5USB%E8%BD%89RS232%20Serial%E4%B8%A6%E4%BD%BF%E7%94%A8python%E7%9A%84pySerial%E6%8E%A5%E6%94%B6%2F%E7%99%BC%E9%80%81byte%E5%AF%A6%E4%BD%9C" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-3%2F&#038;title=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%233%5D%20Raspberry%20Pi%E5%A4%96%E6%8E%A5USB%E8%BD%89RS232%20Serial%E4%B8%A6%E4%BD%BF%E7%94%A8python%E7%9A%84pySerial%E6%8E%A5%E6%94%B6%2F%E7%99%BC%E9%80%81byte%E5%AF%A6%E4%BD%9C" data-a2a-url="https://www.chosemaker.com/board/raspberry-pi/pi-lesson-3/" data-a2a-title="[樹莓派教學#3] Raspberry Pi外接USB轉RS232 Serial並使用python的pySerial接收/發送byte實作"></a></p><p>這篇文章 <a rel="nofollow" href="https://www.chosemaker.com/board/raspberry-pi/pi-lesson-3/">[樹莓派教學#3] Raspberry Pi外接USB轉RS232 Serial並使用python的pySerial接收/發送byte實作</a> 最早出現於 <a rel="nofollow" href="https://www.chosemaker.com">醬是創客</a>。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>[樹莓派教學#2] Raspberry Pi使用mono執行.NET framework C# Console Application程式</title>
		<link>https://www.chosemaker.com/board/raspberry-pi/pi-lesson-2/</link>
		
		<dc:creator><![CDATA[pyclifecom]]></dc:creator>
		<pubDate>Tue, 04 Aug 2020 03:04:03 +0000</pubDate>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[樹莓派]]></category>
		<category><![CDATA[程式語言分類]]></category>
		<category><![CDATA[開發板分類]]></category>
		<guid isPermaLink="false">https://www.chosemaker.com/?p=401</guid>

					<description><![CDATA[<p>醬是創客的樹莓派教學主題第2篇，以Raspberry Pi開發板來實作教學，本篇教學將著重使用mon &#8230;</p>
<p>這篇文章 <a rel="nofollow" href="https://www.chosemaker.com/board/raspberry-pi/pi-lesson-2/">[樹莓派教學#2] Raspberry Pi使用mono執行.NET framework C# Console Application程式</a> 最早出現於 <a rel="nofollow" href="https://www.chosemaker.com">醬是創客</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>醬是創客的樹莓派教學主題第2篇，以Raspberry Pi開發板來實作教學，本篇教學將著重使用mono執行.NET framework C# Console Application程式，由於C#的範例程式多，我們可以使用Console Application(NET framework)來跑些IoT資料挖掘的程式，主要的目的就是在Linux上執行.NET framework，來加速多平台的快速開發，因為.NET Framework的dll套件比較多</p>



<p>首先要先準備一台裝好的樹莓派，並確定你的Raspbian的版本是多少，我們要來使用mono套件在Linux上跑.NET framework，請注意WPF與WinForma的UI指令是不適用在mono上，如果要統一開發就用Console Application開發</p>



<p>設備:<br>Raspberry Pi 各系列 <br>樹莓派4B #<a href="https://www.ruten.com.tw/item/show?22051318422459" target="_blank" rel="noreferrer noopener">露天拍賣</a> #<a href="https://shopee.tw/%E6%A8%B9%E8%8E%93%E6%B4%BE4B-%E8%8B%B1%E5%9C%8B%E8%A3%BD%E5%8E%9F%E5%BB%A0%E9%96%8B%E7%99%BC%E6%9D%BF-4G-8G-Raspberry-Pi-4B-AI%E5%BD%B1%E5%83%8F%E8%BE%A8%E8%AD%98-%E6%A9%9F%E5%99%A8%E5%AD%B8%E7%BF%92%E5%B0%88%E7%94%A8-Linux-i.293276804.5269190409" target="_blank" rel="noreferrer noopener">蝦皮購物</a></p>



<p>Raspbian 10安裝方式</p>


<pre class="brush: as3; title: ; notranslate">
sudo apt install apt-transport-https dirmngr gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo &quot;deb https://download.mono-project.com/repo/debian stable-raspbianbuster main&quot; | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
</pre>


<p>Raspbian 9安裝方式</p>


<pre class="brush: as3; title: ; notranslate">
sudo apt install apt-transport-https dirmngr gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo &quot;deb https://download.mono-project.com/repo/debian stable-raspbianstretch main&quot; | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
</pre>


<p>做完上述的下載與更新後，來開始安裝mono</p>


<pre class="brush: as3; title: ; notranslate">
sudo apt install mono-devel
</pre>


<p>安裝完後，確認一下mono版本，請打mono &#8211;version</p>



<p>接著我要要來做一個Console Application(NET framework)的程式，打開Windows的Visual Studio，開啟一個新專案，右邊的地方有一個 主控台應用程式(.NET Framework)，並建立它</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="800" height="520" src="https://www.chosemaker.com/wp-content/uploads/2020/08/rpi-2-1.jpg" alt="" class="wp-image-403" srcset="https://www.chosemaker.com/wp-content/uploads/2020/08/rpi-2-1.jpg 800w, https://www.chosemaker.com/wp-content/uploads/2020/08/rpi-2-1-300x195.jpg 300w, https://www.chosemaker.com/wp-content/uploads/2020/08/rpi-2-1-768x499.jpg 768w, https://www.chosemaker.com/wp-content/uploads/2020/08/rpi-2-1-508x330.jpg 508w, https://www.chosemaker.com/wp-content/uploads/2020/08/rpi-2-1-540x350.jpg 540w" sizes="(max-width: 800px) 100vw, 800px" /></figure></div>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="680" height="533" src="https://www.chosemaker.com/wp-content/uploads/2020/08/rpi-2-2.jpg" alt="" class="wp-image-404" srcset="https://www.chosemaker.com/wp-content/uploads/2020/08/rpi-2-2.jpg 680w, https://www.chosemaker.com/wp-content/uploads/2020/08/rpi-2-2-300x235.jpg 300w, https://www.chosemaker.com/wp-content/uploads/2020/08/rpi-2-2-447x350.jpg 447w" sizes="(max-width: 680px) 100vw, 680px" /></figure></div>



<p>我們使用預設的程式碼來Build</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="421" height="319" src="https://www.chosemaker.com/wp-content/uploads/2020/08/rpi-2-3.jpg" alt="" class="wp-image-405" srcset="https://www.chosemaker.com/wp-content/uploads/2020/08/rpi-2-3.jpg 421w, https://www.chosemaker.com/wp-content/uploads/2020/08/rpi-2-3-300x227.jpg 300w" sizes="(max-width: 421px) 100vw, 421px" /></figure></div>



<p>Build好後，Bin資料夾裡面有一個ConsoleApp.exe的程式，把它直接丟到樹莓派裡面，直接執行mono ConsoleApp.exe，跑的時候會快速return回來，這樣就成功了</p>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-2%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%232%5D%20Raspberry%20Pi%E4%BD%BF%E7%94%A8mono%E5%9F%B7%E8%A1%8C.NET%20framework%20C%23%20Console%20Application%E7%A8%8B%E5%BC%8F" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook_messenger" href="https://www.addtoany.com/add_to/facebook_messenger?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-2%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%232%5D%20Raspberry%20Pi%E4%BD%BF%E7%94%A8mono%E5%9F%B7%E8%A1%8C.NET%20framework%20C%23%20Console%20Application%E7%A8%8B%E5%BC%8F" title="Facebook Messenger" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-2%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%232%5D%20Raspberry%20Pi%E4%BD%BF%E7%94%A8mono%E5%9F%B7%E8%A1%8C.NET%20framework%20C%23%20Console%20Application%E7%A8%8B%E5%BC%8F" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-2%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%232%5D%20Raspberry%20Pi%E4%BD%BF%E7%94%A8mono%E5%9F%B7%E8%A1%8C.NET%20framework%20C%23%20Console%20Application%E7%A8%8B%E5%BC%8F" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-2%2F&#038;title=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%232%5D%20Raspberry%20Pi%E4%BD%BF%E7%94%A8mono%E5%9F%B7%E8%A1%8C.NET%20framework%20C%23%20Console%20Application%E7%A8%8B%E5%BC%8F" data-a2a-url="https://www.chosemaker.com/board/raspberry-pi/pi-lesson-2/" data-a2a-title="[樹莓派教學#2] Raspberry Pi使用mono執行.NET framework C# Console Application程式"></a></p><p>這篇文章 <a rel="nofollow" href="https://www.chosemaker.com/board/raspberry-pi/pi-lesson-2/">[樹莓派教學#2] Raspberry Pi使用mono執行.NET framework C# Console Application程式</a> 最早出現於 <a rel="nofollow" href="https://www.chosemaker.com">醬是創客</a>。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>[樹莓派教學#1] Raspberry Pi外接新增USB轉RJ45實體有線Gigabit網卡實作</title>
		<link>https://www.chosemaker.com/board/raspberry-pi/pi-lesson-1/</link>
		
		<dc:creator><![CDATA[pyclifecom]]></dc:creator>
		<pubDate>Thu, 30 Jul 2020 08:11:24 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[樹莓派]]></category>
		<category><![CDATA[程式語言分類]]></category>
		<category><![CDATA[開發板分類]]></category>
		<guid isPermaLink="false">https://www.chosemaker.com/?p=384</guid>

					<description><![CDATA[<p>醬是創客的樹莓派教學主題第1篇，以Raspberry Pi開發板來實作教學，本篇教學將著重Raspb &#8230;</p>
<p>這篇文章 <a rel="nofollow" href="https://www.chosemaker.com/board/raspberry-pi/pi-lesson-1/">[樹莓派教學#1] Raspberry Pi外接新增USB轉RJ45實體有線Gigabit網卡實作</a> 最早出現於 <a rel="nofollow" href="https://www.chosemaker.com">醬是創客</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>醬是創客的樹莓派教學主題第1篇，以Raspberry Pi開發板來實作教學，本篇教學將著重Raspberry Pi外接USB轉RJ45有線網卡與安裝驅動程式，樹莓派的僅內建一張網卡，有時我們需要多一個額外的實體有線網路孔，且不想用Wifi來取代，Raspberry Pi 4B有提供USB3.0的介面按照我們的使用PYC UG-A3網卡測試可以達到600Mbps左右，主要是因為RPi 4B的CPU與IO無法到那麼快，畢竟這樣的規格也算不錯了，且不會一直有人跑600M吧!</p>



<p>PYC UG-A3是Gigabit網卡，一般來說我們會直接接在Raspberry Pi 4的USB3.0 port，讓網路能發揮最好的速度，我們會選這張是因為專案長時間測試過且它的晶片是Realtek的RTL8153B晶片以及有網路RJ45的LINK/ACT燈號</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="800" height="383" src="https://www.chosemaker.com/wp-content/uploads/2020/07/rpi-1-2.jpg" alt="" class="wp-image-602" srcset="https://www.chosemaker.com/wp-content/uploads/2020/07/rpi-1-2.jpg 800w, https://www.chosemaker.com/wp-content/uploads/2020/07/rpi-1-2-300x144.jpg 300w, https://www.chosemaker.com/wp-content/uploads/2020/07/rpi-1-2-768x368.jpg 768w, https://www.chosemaker.com/wp-content/uploads/2020/07/rpi-1-2-508x243.jpg 508w" sizes="(max-width: 800px) 100vw, 800px" /></figure></div>



<p>設備:<br>樹莓派4B #<a href="https://www.ruten.com.tw/item/show?22051318422459" target="_blank" rel="noreferrer noopener">露天拍賣</a> #<a href="https://shopee.tw/%E6%A8%B9%E8%8E%93%E6%B4%BE4B-%E8%8B%B1%E5%9C%8B%E8%A3%BD%E5%8E%9F%E5%BB%A0%E9%96%8B%E7%99%BC%E6%9D%BF-4G-8G-Raspberry-Pi-4B-AI%E5%BD%B1%E5%83%8F%E8%BE%A8%E8%AD%98-%E6%A9%9F%E5%99%A8%E5%AD%B8%E7%BF%92%E5%B0%88%E7%94%A8-Linux-i.293276804.5269190409" target="_blank" rel="noreferrer noopener">蝦皮購物</a><br>PYC UG-A3 USB3.0 Gigabit網卡 #<a href="https://www.ruten.com.tw/item/show?21931255156909" target="_blank" aria-label="undefined (opens in a new tab)" rel="noreferrer noopener">露天拍賣</a> #<a href="https://shopee.tw/UG-A3-USB3.0%E8%BD%89-1G-RJ45-USB%E6%9C%89%E7%B7%9A%E7%B6%B2%E5%8D%A1-Gigabit-1000M-Giga-RTL8153B%E7%B6%B2%E5%8D%A1-i.293276804.7645403271" target="_blank" aria-label="undefined (opens in a new tab)" rel="noreferrer noopener">蝦皮購物</a></p>



<p>接線方式:<br>Raspberry Pi (USB)&#8212;PYC UG-A3</p>



<p>首先我們先來安裝驅動程式，建議先不要把UG-A3接上去，雖然樹莓派最新的Linux Kernel已經有RTL8153B驅動程式，但是避免發生問題還是裝一下，安裝中如果有錯誤訊息可以直接忽略它<br><br>1. 到PYC life的官網下載驅動程式，它檔案是tar架構，檔案名稱為r8152.53.56-2.12.0.tar，請先下載好放在~/drivers目錄下<br>2. 切換資料夾到drivers並解壓縮，解完再切到r8152_2.12.0資料夾<br>cd ~/drivers/<br>tar xf r8152.53.56-2.12.0.tar<br>cd r8152_2.12.0/<br>3. 更新一下<br>sudo apt-get update &amp;&amp; sudo apt-get upgrade<br>4. 安裝一些必要套件<br>sudo apt install libelf-dev dkms build-essential<br>5. 切到要make的目錄<br>cd ~/drivers/r8152_2.12.0/ <br>6. make編譯<br>make &amp;&amp; make install<br>7.  最後一步驟<br>sudo depmod -a</p>



<p>安裝好後先重新開機，開好後請先打lsusb來看看有沒有出現RTL8153 Gigabit Ethernet Adapter，有的話我們就可以直接去ifconfig設定對應的IP或透過圖形化介面設定也可以</p>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-1%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%231%5D%20Raspberry%20Pi%E5%A4%96%E6%8E%A5%E6%96%B0%E5%A2%9EUSB%E8%BD%89RJ45%E5%AF%A6%E9%AB%94%E6%9C%89%E7%B7%9AGigabit%E7%B6%B2%E5%8D%A1%E5%AF%A6%E4%BD%9C" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook_messenger" href="https://www.addtoany.com/add_to/facebook_messenger?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-1%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%231%5D%20Raspberry%20Pi%E5%A4%96%E6%8E%A5%E6%96%B0%E5%A2%9EUSB%E8%BD%89RJ45%E5%AF%A6%E9%AB%94%E6%9C%89%E7%B7%9AGigabit%E7%B6%B2%E5%8D%A1%E5%AF%A6%E4%BD%9C" title="Facebook Messenger" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-1%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%231%5D%20Raspberry%20Pi%E5%A4%96%E6%8E%A5%E6%96%B0%E5%A2%9EUSB%E8%BD%89RJ45%E5%AF%A6%E9%AB%94%E6%9C%89%E7%B7%9AGigabit%E7%B6%B2%E5%8D%A1%E5%AF%A6%E4%BD%9C" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-1%2F&amp;linkname=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%231%5D%20Raspberry%20Pi%E5%A4%96%E6%8E%A5%E6%96%B0%E5%A2%9EUSB%E8%BD%89RJ45%E5%AF%A6%E9%AB%94%E6%9C%89%E7%B7%9AGigabit%E7%B6%B2%E5%8D%A1%E5%AF%A6%E4%BD%9C" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.chosemaker.com%2Fboard%2Fraspberry-pi%2Fpi-lesson-1%2F&#038;title=%5B%E6%A8%B9%E8%8E%93%E6%B4%BE%E6%95%99%E5%AD%B8%231%5D%20Raspberry%20Pi%E5%A4%96%E6%8E%A5%E6%96%B0%E5%A2%9EUSB%E8%BD%89RJ45%E5%AF%A6%E9%AB%94%E6%9C%89%E7%B7%9AGigabit%E7%B6%B2%E5%8D%A1%E5%AF%A6%E4%BD%9C" data-a2a-url="https://www.chosemaker.com/board/raspberry-pi/pi-lesson-1/" data-a2a-title="[樹莓派教學#1] Raspberry Pi外接新增USB轉RJ45實體有線Gigabit網卡實作"></a></p><p>這篇文章 <a rel="nofollow" href="https://www.chosemaker.com/board/raspberry-pi/pi-lesson-1/">[樹莓派教學#1] Raspberry Pi外接新增USB轉RJ45實體有線Gigabit網卡實作</a> 最早出現於 <a rel="nofollow" href="https://www.chosemaker.com">醬是創客</a>。</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
