![]() |
PROTEUS 是一款電路模擬的軟體,不但可以學習電路也可以模擬韌體程式實際在 MCU 執行的情形,它在我學習的路上幫助與輔助我很多,也希望這樣的想法延續下去,所以當時在建立部落格要命名的那一刻,它的名字就莫名地浮現出來:ㄆㄜ ㄊㄧㄡ ㄙˋ (proteus),用注音是因為不想用英文,用中文又不曉得翻譯成什麼,所以就英文注音化。
部落格發佈的網頁,主要是以我玩的東西、學習的心得和電子週邊應用為主,也歡迎有興趣的一起交流分享 !
2014年11月24日 星期一
MPU6050 創意專題分享 - 多功能交通載具輔助系統
2014年10月28日 星期二
{ HZ1050 @ Raspberry Pi @ WIEGAND 模式 } 125KHz RFID 讀卡器使用說明
{ HZ1050 @ Arduino + 整合型 LCD } 125KHz RFID 讀卡器使用說明
HZ-1050 125KHz RFID 讀卡器模組學習套件可至露天賣場訂購:
詳細的介紹,請上露天賣場。
依照 "{ HZ1050 @ Arduino @ UART 模式 } 125KHz RFID 讀卡器使用說明" 網頁中所提供的電路圖,完成佈線之後實際的線路圖如上面照片所示。
在這篇網頁中,我們會將 UART 以及韋根格式的程式碼全部寫在一個檔案中,並且加入了整合型 LCD 顯示的程式碼,這也是第一次我們將整合型 LCD 用在 Arduino 中。
本篇網頁中所使用到的零件可到下面商品網址訂購:
| Arduino + HZ1050 + { 5V0 } 整合型 LCD 實際接線圖 |
依照 "{ HZ1050 @ Arduino @ UART 模式 } 125KHz RFID 讀卡器使用說明" 網頁中所提供的電路圖,完成佈線之後實際的線路圖如上面照片所示。
在這篇網頁中,我們會將 UART 以及韋根格式的程式碼全部寫在一個檔案中,並且加入了整合型 LCD 顯示的程式碼,這也是第一次我們將整合型 LCD 用在 Arduino 中。
2014年10月27日 星期一
{ HZ1050 @ Arduino @ WIEGAND 模式 } 125KHz RFID 讀卡器使用說明
HZ-1050 125KHz RFID 讀卡器模組學習套件可至露天賣場訂購:
詳細的介紹,請上露天賣場。
延續上一篇 "{ HZ1050 @ Arduino @ UART 模式 } 125KHz RFID 讀卡器使用說明",這篇網頁主要用來說明在 Arduino 開發環境 中,使用兩支 IO 接腳以中斷的方式接收來自來自 HZ-1050 125KHz RFID 讀卡器 ( 文中簡稱 HZ1050 ) 回傳 RFID 卡號 ( 因為 HZ1050 主要是針對 EM4100 以及 EM4001 RFID 卡,因此以下在文中簡稱 EM 卡 ),並且將卡號輸出到 Serial Monitor 中。
Wiegand ( 文中稱為韋根 ) 26 / 34 的格式說明,請參考 "{ HZ1050 } WIEGAND ( 韋根 ) 26 / 34 介紹";電路佈線請參考上一篇的電路圖。
本篇是 Arduino 控制 HZ1050 系列的第二篇,這三篇依其接收方式不同有:
前兩篇會將結果直接回傳到 Arduino 的 Serial Monitor 中;最後一篇則是另外再將結果顯示在 { 5V0 } 整合型 LCD 上。
詳細的介紹,請上露天賣場。
![]() |
延續上一篇 "{ HZ1050 @ Arduino @ UART 模式 } 125KHz RFID 讀卡器使用說明",這篇網頁主要用來說明在 Arduino 開發環境 中,使用兩支 IO 接腳以中斷的方式接收來自來自 HZ-1050 125KHz RFID 讀卡器 ( 文中簡稱 HZ1050 ) 回傳 RFID 卡號 ( 因為 HZ1050 主要是針對 EM4100 以及 EM4001 RFID 卡,因此以下在文中簡稱 EM 卡 ),並且將卡號輸出到 Serial Monitor 中。
Wiegand ( 文中稱為韋根 ) 26 / 34 的格式說明,請參考 "{ HZ1050 } WIEGAND ( 韋根 ) 26 / 34 介紹";電路佈線請參考上一篇的電路圖。
本篇是 Arduino 控制 HZ1050 系列的第二篇,這三篇依其接收方式不同有:
- UART
- Wiegand 26 / 34
- UART + Wiegand 26 / 34
前兩篇會將結果直接回傳到 Arduino 的 Serial Monitor 中;最後一篇則是另外再將結果顯示在 { 5V0 } 整合型 LCD 上。
2014年10月26日 星期日
{ HZ1050 @ Raspberry Pi @ UART 模式 } 125KHz RFID 讀卡器使用說明
HZ-1050 125KHz RFID 讀卡器模組學習套件可至露天賣場訂購:
詳細的介紹,請上露天賣場。
上篇講到使用 Arduino UART 的方式讀取 HZ-1050 125KHz RFID 讀卡器 ( 文中簡稱 HZ1050 ) 回傳 RFID 卡號 ( 因為 HZ1050 主要是針對 EM4100 以及 EM4001 RFID 卡,因此以下在文中簡稱 EM 卡 )。
本篇是 Raspbeey Pi ( 本文稱為樹莓派 ) 控制 HZ1050 系列的第一篇,這三篇依其接收方式不同有:
本篇網頁中所使用到的零件可到下面商品網址訂購:
| HZ-1050, 125KHz RFID 讀卡器 @ UART - 樹莓派範例實際接線 |
上篇講到使用 Arduino UART 的方式讀取 HZ-1050 125KHz RFID 讀卡器 ( 文中簡稱 HZ1050 ) 回傳 RFID 卡號 ( 因為 HZ1050 主要是針對 EM4100 以及 EM4001 RFID 卡,因此以下在文中簡稱 EM 卡 )。
本篇是 Raspbeey Pi ( 本文稱為樹莓派 ) 控制 HZ1050 系列的第一篇,這三篇依其接收方式不同有:
- UART
- Wiegand 26 / 34
- UART + Wiegand 26 / 34
2014年10月24日 星期五
{ HZ1050 @ Arduino @ UART 模式 } 125KHz RFID 讀卡器使用說明
HZ-1050 125KHz RFID 讀卡器模組學習套件可至露天賣場訂購:
詳細的介紹,請上露天賣場。
這篇網頁主要用來說明在 Arduino 開發環境 中,使用 UART 讀取來自於 HZ-1050 125KHz RFID 讀卡器 ( 文中簡稱 HZ1050 ) 回傳 RFID 卡號 ( 因為 HZ1050 主要是針對 EM4100 以及 EM4001 RFID 卡,因此以下在文中簡稱 EM 卡 ),並且將卡號輸出到 Serial Monitor 中。
本篇是 Arduino 控制 HZ1050 系列的第一篇,這三篇依其接收方式不同有:
詳細的介紹,請上露天賣場。
這篇網頁主要用來說明在 Arduino 開發環境 中,使用 UART 讀取來自於 HZ-1050 125KHz RFID 讀卡器 ( 文中簡稱 HZ1050 ) 回傳 RFID 卡號 ( 因為 HZ1050 主要是針對 EM4100 以及 EM4001 RFID 卡,因此以下在文中簡稱 EM 卡 ),並且將卡號輸出到 Serial Monitor 中。
本篇是 Arduino 控制 HZ1050 系列的第一篇,這三篇依其接收方式不同有:
- UART
- Wiegand 26 / 34
- UART + Wiegand 26 / 34
2014年7月19日 星期六
2014年7月7日 星期一
使用樹莓派取得 eZ430-Chronos 運動手錶三軸加速度數值與按鈕狀態
這一篇文章主要是 "eZ430 運動手錶控制樹莓派小車 ( 開迴路控制 )" 網頁關於 eZ430-Chronos-915 ( eZ430) 運動手錶的通訊建立說明。
| eZ430-Chronos Watch with Raspberry Pi |
在下面的網頁中,我們將會說明如何使用樹莓派 ( Raspberry Pi ) 抓取 eZ430 運動手錶的資料,包括:三軸加速度和手錶上的按鈕 ( 左上、左下和右上 );以及如何安裝 eZ430 Chronos Control Center (eZ430 控制中心) 在樹莓派上。
![]() |
| eZ430 Chronos Control Center 在樹莓派的顯示畫面 |
使用 RTL-SDR 與 TI eZ430 運動手錶 ( eZ430-Chronos Watch ) 破解停車場閘門遙控器訊號
露天賣場訂購 :
兩位來自特拉維夫 ( Tel Aviv ) 大學的學生 Ido Livneh 和 Gil Freidlin,使用軟體無線電裝置 ( RTL-SDR, Software Defined Software ) 負責接收及破解閘門遙控器的訊號,再將遙控器的訊號解碼後複製到 TI eZ430 運動手錶裡,當手錶的按鈕被按下後就會發出跟閘門遙控器相對應的控制訊號出去,此時閘門就會很容易地被開啟或是關閉。
整個過程被分解為兩個步驟:
第一個步驟是使用 HDSDR ( High Definition Software Defined Radio ) 硬體及軟體接收來自遙控器的訊號,在經由 Windows 裡的無線電軟體解出訊號,然後將訊號編碼下載到 TI eZ430 運動手錶裡。
我們看一下遙控器發射與接收裝置外型與它內部所使用編解碼晶片後不難了解,就是去破解發射晶片的發射編碼,而接收端並不需要去管它。
如果看過部落格裡的 "[ Wireless-RF] 使用樹莓派模擬 HT12E 遙控器編碼晶片的編碼格式" 就會發現兩者最終目的是相同的,只不過差別在所使用的發射端接收裝置與所要破解的晶片,觀念上是可以相通的。
相關軟硬體的需求,可以參考下面的說明以及文字上所提供的連結網址下載所需要的東西。
硬體需求:
軟體需求:
整份文件 ( 23頁 ) 可由此下載:Copy2GO: Low cost copy lab for simple remote controls using TI-Chronos platform .pdf
更多詳細關於複製訊號到手錶上去的資料,請再參閱該份文件,所有資料都在上面。
<< eZ430-Chronos-Watch 賣場部落格系列文章 >>
- Texas Instruments ez430-Chronos-433/915 運動手錶無線開發工具套件 手錶型穿戴式科技的開發套件,與部落格上控制小車使用的那一套 ( eZ430-Chronos-915 ) 不一樣之處是在頻率,這是使用 433MHz 的套件,意味著可以使用一般的 433MHz 的無線發射接收模組與其互通資料。
![]() |
| Source:http://www.ontarioparking.com |
兩位來自特拉維夫 ( Tel Aviv ) 大學的學生 Ido Livneh 和 Gil Freidlin,使用軟體無線電裝置 ( RTL-SDR, Software Defined Software ) 負責接收及破解閘門遙控器的訊號,再將遙控器的訊號解碼後複製到 TI eZ430 運動手錶裡,當手錶的按鈕被按下後就會發出跟閘門遙控器相對應的控制訊號出去,此時閘門就會很容易地被開啟或是關閉。
整個過程被分解為兩個步驟:
第一個步驟是使用 HDSDR ( High Definition Software Defined Radio ) 硬體及軟體接收來自遙控器的訊號,在經由 Windows 裡的無線電軟體解出訊號,然後將訊號編碼下載到 TI eZ430 運動手錶裡。
![]() |
| 訊號解碼及複製階段 |
我們看一下遙控器發射與接收裝置外型與它內部所使用編解碼晶片後不難了解,就是去破解發射晶片的發射編碼,而接收端並不需要去管它。
![]() |
| 遙控器發射器 ( 右 ) 與接收器 ( 左 ) |
![]() |
| 近看遙控器的發射 ( 右, PT2260 encoder ) 與接收 ( 左, PT2272 decoder ) 的晶片 |
如果看過部落格裡的 "[ Wireless-RF] 使用樹莓派模擬 HT12E 遙控器編碼晶片的編碼格式" 就會發現兩者最終目的是相同的,只不過差別在所使用的發射端接收裝置與所要破解的晶片,觀念上是可以相通的。
![]() |
| 訊號傳送階段 |
相關軟硬體的需求,可以參考下面的說明以及文字上所提供的連結網址下載所需要的東西。
硬體需求:
- A standard PC running windows.
- TI ez430 Chronos watch kit, along with its RF access point and, and reprogramming dongle. It costs 58$ (as of May 2014) directly from the TI e-store, or 99$ from amazon.
- RTL-SDR USB Radio kit. We specifically used RTL2832+R820. It can be bought for about $10-$15 at eBay.
- The remote control that you wish to copy.
軟體需求:
- TI Chronos Control Center. It installs the drivers for the access point as well. Installing the 3rd party drivers on windows8 might be problematic. If so, follow these instructions to proceed.
- TI Code Composer Studio V5. Use this IDE in order to compile and upload the code to the watch platform. Watch this for good initial tips for working with the IDE. You can otherwise use the control center to update the code on the watch without connecting it directly to the computer. This is a slower process and much more costly as per the watch's battery life.
- The code of our Chronos project. You can find it here.
- Aiding python scripts. You can find them here. In there you will find:
a. configure_chronos.py – our configuration tool that connects to the watch through its RF access point.
b. chronic.py – library needed for communication with the Chronos watch.
c. analyze_signal.py - our analysis tool that will analyze the original RF signal, and output the needed configuration for the watch.
d. gilido_params.txt - this is the parameters file output for our remote control. You don't need it, but it can be used as reference. - Be sure to be running python2.7. You also need to download the pyserial python library. We recommend using pip tool that finds, downloads and installs the correct version of python libraries.
- The HDSDR software and other necessary tools, as well as a practical "how to" guide can be found here. A good and comprehensive installation guide can be found here. Higher permissions are required for the installation process.
- You can visually analyze the wave file outputs using the open-source audacity platform which we recommend. It's not needed in order to complete the task, but it's nice and it helped us in debug. If you have access to MATLAB environment, it can be easily done through it as well.
整份文件 ( 23頁 ) 可由此下載:Copy2GO: Low cost copy lab for simple remote controls using TI-Chronos platform .pdf
更多詳細關於複製訊號到手錶上去的資料,請再參閱該份文件,所有資料都在上面。
<< eZ430-Chronos-Watch 賣場部落格系列文章 >>
2014年7月1日 星期二
如何使用 Bosch BMP180 數位氣壓感測器模組計算溫度、大氣壓力與海拔高度 ?
Bosch BMP180 數位氣壓感測模組可至露天賣場訂購:
在這篇網頁,我們將說明如何使用 I2C 通訊方式取得 BMP180 裡的溫度與壓力的原生資料 ( raw data ),並藉由晶片內部存放在 EEPROM 裡的 11 個校正係數,計算出氣壓模組現處環境的溫度 ( 真實溫度 ) 與大氣壓力 ( 真實壓力 )。微處理器間的電路接線與程式測試,請參考後續的部落格網頁中的說明。
由於高度不同產生的大氣壓力也不同,所以由 BMP180 所計算出來的壓力和溫度值,可以用來計算出現處環境的海拔高度作為 "高度計" 使用,但前提是:海平面的壓力必須清楚得知 !
得到高度可以做什麼 ? GPS 導航時,若沒有高度計,上下橋就不知道是在橋上或是橋下;做室內導航時,就不知道現在是在一樓還是在二樓。這些都只是其中的一些應用,所以根據官網以及網路上的資料, BMP180 可以應用在下面的用途上:
![]() |
| Bosch BMP180 Digital Barometric Pressure Sensor, source: http://www.bosch-sensortec.com/ |
由於高度不同產生的大氣壓力也不同,所以由 BMP180 所計算出來的壓力和溫度值,可以用來計算出現處環境的海拔高度作為 "高度計" 使用,但前提是:海平面的壓力必須清楚得知 !
得到高度可以做什麼 ? GPS 導航時,若沒有高度計,上下橋就不知道是在橋上或是橋下;做室內導航時,就不知道現在是在一樓還是在二樓。這些都只是其中的一些應用,所以根據官網以及網路上的資料, BMP180 可以應用在下面的用途上:
- 加強 GPS 精確導航能力 ( 航位推算,坡度 ( 上下橋 ) 檢測等 )
- 室內與室外導航
- 休閒、體育和醫療健康等監測
- 天氣預測
- 垂直速度指示 ( 上升 / 下降速率 )
- 風扇轉速控制 ( 利用溫度值 )
2014年6月18日 星期三
2014年4月3日 星期四
[版本更新至 1.36 ] Raspberry Pi - BCM2835 C 語言函式庫
[2014/04/03] bcm2835 版本更新至 1.36
1.36 Make automake's test runner detect that we're skipping tests when not root, the second one makes us skip the test when using fakeroot (as used when building Debian packages). Contributed by Guido Günther.
1.35 Fix build errors when compiled under Qt. Also performance improvements with SPI transfers. Contributed by Udo Klaas.
1.34 Added bcm2835_i2c_write_read_rs() which writes an arbitrary number of bytes, sends a repeat start, and reads from the device. Contributed by Eduardo Steinhorst.
1.33 Added command line utilities i2c and gpio to examples. Contributed by Shahrooz Shahparnia.
1.32 Added option I2C_V1 definition to compile for version 1 RPi. By default I2C code is generated for the V2 RPi which has SDA1 and SCL1 connected. Contributed by Malcolm Wiles based on work by Arvi Govindaraj.
1.31 Fix a GCC warning about dummy variable, patched by Alan Watson. Thanks.
1.30 10 microsecond delays from bcm2835_spi_transfer and bcm2835_spi_transfern for significant performance improvements, Patch by Alan Watson.
1.29 Further fix to SPI from Peter Würtz.
1.28 Fixed a problem where bcm2835_spi_writenb() would have problems with transfers of more than 64 bytes dues to read buffer filling. Patched by Peter Würtz.
1.27 bcm2835_gpio_set_pad() no longer needs BCM2835_PAD_PASSWRD: it is now automatically included. Added suport for PWM mode with bcm2835_pwm_* functions.
1.26 Added missing unmapmem for pads in bcm2835_close to prevent a memory leak. Reported by Hartmut Henkel.
2014年3月6日 星期四
[ 新版本 0.7 釋出 ] WebIOPi - 使用瀏覽器 (或手機) 控制樹莓派的 GPIO
最新版本:Version 0.7 ( 2014-03-01 )
WebIOPi 版本更新發佈網址:Internet of Things framework
WebIOPi 說明、安裝、使用說明網址:WebIOPi
新版本 0.7 增加了很多樣東西的支援,例如 PiFace Digital 擴充卡、溫溼度感測器,還有特別支援用來支援 GertBoard 的 MCP3002 ADC 和 MCP4802 DAC 晶片,和修正一些使用者反應的問題。作者花了很長的一段時間才又推出這增強版,如果覺得 WebIOPi 好用的話,別忘了 Donote 一下以感謝他的貢獻與分享!
下面是一段關於 0.7 版的 WebIOPi 加入支援 PiFace 的展示影片,可以藉由 WebIOPi 的網頁介面控制與設定 PiFace 上的 IO 開啟與關閉的時間
WebIOPi 版本更新發佈網址:Internet of Things framework
WebIOPi 說明、安裝、使用說明網址:WebIOPi
新版本 0.7 增加了很多樣東西的支援,例如 PiFace Digital 擴充卡、溫溼度感測器,還有特別支援用來支援 GertBoard 的 MCP3002 ADC 和 MCP4802 DAC 晶片,和修正一些使用者反應的問題。作者花了很長的一段時間才又推出這增強版,如果覺得 WebIOPi 好用的話,別忘了 Donote 一下以感謝他的貢獻與分享!
下面是一段關於 0.7 版的 WebIOPi 加入支援 PiFace 的展示影片,可以藉由 WebIOPi 的網頁介面控制與設定 PiFace 上的 IO 開啟與關閉的時間
2014年2月6日 星期四
LPD8806 晶片的使用說明以及通訊格式的解釋
賣場中各 LED 驅動晶片簡介與比較,請參考部落格網頁中的說明:
LPD8806晶片 ,可至露天賣場訂購:
LPD8806 是一顆兩線式通訊控制六通道帶 256 級 PWM 可程式編輯恒流 LED 驅動晶片,且經由硬體接腳的設置,可控制輸出級性 ( OMODE ) 與設定是否讓通道同步輸出 ( PMODE ) ...等,其他晶片特色有:
應用範圍:
LPD8806晶片 ,可至露天賣場訂購:
LPD8806 是一顆兩線式通訊控制六通道帶 256 級 PWM 可程式編輯恒流 LED 驅動晶片,且經由硬體接腳的設置,可控制輸出級性 ( OMODE ) 與設定是否讓通道同步輸出 ( PMODE ) ...等,其他晶片特色有:
- 兩線控制模式,移位時鐘可達 20MHz
- 獨特的數據時鐘再生機制,超強信驅動能力,支持串接長度超過 2000 點
- 內建 1.2MHz 震盪電路,支持 FREE-RUN 模式,方便於控制器程式編輯設計 ( 更新頻率大於 4000 Hz )
- 每個通道內置獨立的 256 PWM 灰度控制電路,
通過程式編輯可實現 1024 級灰度效果 - 輸出級性可選,可支持外接驅動模式或作為大功率 LED 驅動電路的信號源
- 工業級設計,輸入信號經施密特處理,抗干擾性能極強。
應用範圍:
- LED 裝飾照明系統
- PWM 信號產生器
- LCD 背光驅動器
LED 驅動晶片的簡介與比較可參考網頁最上面所提供連結網頁。
2014年1月6日 星期一
2013年6月18日 星期二
使用 Raspberry Pi 驅動 LCD 顯示 DHT-11 所測得的環境溫濕度
需要 DHT-11 (溫濕度感測器) 的話請到露天賣場訂購:DHT11 - 溫濕度感測器
DHT-11 使用 DATA 接腳與處理器之間做通訊與同步,採用串行單線數據格式,一次通訊時間在 4ms 左右,數據分為整數與小數部分,一次完整數據輸出為 40-bit,高位元先輸出:
數據格式:8-bit 濕度整數數據 + 8-bit 濕度小數數據 +
8-bit 溫度整數數據 + 8-bit 溫度小數數據 + 8-bit 檢驗和
檢驗和是溫濕度整數與小數四個數據相加之後取末 8 位元數據資料,至於詳細的通訊過程請參閱 "DHT11溫濕度感測器說明書" 的說明。
下面的例子將使用 Raspberry Pi (樹莓派) 與 DHT-11 作通訊取得溫濕度數據,並將數據顯示在 LCD上。
首先,我們延用部落格網頁 "驅動 16x2 LCD 螢幕 (英文文字型)" 的線路,並增加 DHT-11 於線路中;DHT-11 使用 3.3V 電源供應,資料通訊使用樹莓派 GPIO P1 第 10 支 pin 腳 (也就是 RxD, #15) 連接 DHT-11 DATA 接腳。
ps. #15 表示是 BCM2835 GPIO 15 的意思
材料列表:
DHT-11 使用 DATA 接腳與處理器之間做通訊與同步,採用串行單線數據格式,一次通訊時間在 4ms 左右,數據分為整數與小數部分,一次完整數據輸出為 40-bit,高位元先輸出:
數據格式:8-bit 濕度整數數據 + 8-bit 濕度小數數據 +
8-bit 溫度整數數據 + 8-bit 溫度小數數據 + 8-bit 檢驗和
檢驗和是溫濕度整數與小數四個數據相加之後取末 8 位元數據資料,至於詳細的通訊過程請參閱 "DHT11溫濕度感測器說明書" 的說明。
下面的例子將使用 Raspberry Pi (樹莓派) 與 DHT-11 作通訊取得溫濕度數據,並將數據顯示在 LCD上。
首先,我們延用部落格網頁 "驅動 16x2 LCD 螢幕 (英文文字型)" 的線路,並增加 DHT-11 於線路中;DHT-11 使用 3.3V 電源供應,資料通訊使用樹莓派 GPIO P1 第 10 支 pin 腳 (也就是 RxD, #15) 連接 DHT-11 DATA 接腳。
ps. #15 表示是 BCM2835 GPIO 15 的意思
材料列表:
- Raspberry Pi (Model B, Rev2.0 (512MB))
- 特製 GPIO 彩色排線
- 雙頭長排針 ( GPIO 排線用)
- 麵包板連接測試跳線(公對公)
- DHT11 - 溫濕度感測器 (附電阻)
- 英文字型 LCD 螢幕 (附排針與可變電阻, 16x2,藍底白字, LED 背光)
- 麵包板
2013年6月7日 星期五
[ 認識與使用 Gertboard ] 第五部曲 - 數位轉類比 ( MCP4802 ) 和類比轉數位 ( MCP3002 ) 轉換器 ( D to A and A to D converters )
學習樹莓派週邊不容錯過的學習利器 "Assembled Gertboard (Rev2.0)",心動不如馬上行動!!露天賣場:
Assembed Gertboard (Rev2.0) - 利用 Raspberry Pi (樹莓派) 學習與開發電子 (週邊) 的最佳拍檔
PiGertboard 套件 (A) - Raspberry Pi (樹莓派) Gertboard 嵌入式套件
PiGertboard 套件 (B) - Raspberry Pi (樹莓派) Gertboard 外接式套件
Assembed Gertboard (Rev2.0) - 利用 Raspberry Pi (樹莓派) 學習與開發電子 (週邊) 的最佳拍檔
PiGertboard 套件 (A) - Raspberry Pi (樹莓派) Gertboard 嵌入式套件
PiGertboard 套件 (B) - Raspberry Pi (樹莓派) Gertboard 外接式套件
| Gertboard - A to D and D to A Converters ( 橙色部分 ),source: Gertboard User Manual (Rev 2.0) |
![]() |
| Gertboard - D to A Converter 電路圖,source: Assembled Gertboard Schematics |
![]() |
| Gertboard - A to D Converter 電路圖,source: Assembled Gertboard Schematics |
![]() |
| Gertboard - 電路圖,source: Assembled Gertboard Schematics |
2013年5月6日 星期一
[ 認識與使用 Gertboard ] 第四部曲 - 馬達驅動控制器 ( Motor Controller )
學習樹莓派週邊不容錯過的學習利器 "Assembled Gertboard (Rev2.0)",心動不如馬上行動!!露天賣場:
Assembed Gertboard (Rev2.0) - 利用 Raspberry Pi (樹莓派) 學習與開發電子 (週邊) 的最佳拍檔
PiGertboard 套件 (A) - Raspberry Pi (樹莓派) Gertboard 嵌入式套件
PiGertboard 套件 (B) - Raspberry Pi (樹莓派) Gertboard 外接式套件
GertBoard 使用 ROHM BD6222HFP 做為馬達驅動控制器,可以驅動最大電壓 DC 18V 電流 2A 的直流有刷馬達。晶片 ( 如下圖 ) 有兩支接腳 MOTOR_A 與 MOTOR_B 可以輸入高或低準位控制直流馬達轉動方向,並且可以在單一接腳輸入 PWM 訊號對馬達進行轉速的控制,這兩支接腳位於電路板中間偏右下的位置,標示名稱是 J5,接腳名稱為 MOTA 與 MOTB
Assembed Gertboard (Rev2.0) - 利用 Raspberry Pi (樹莓派) 學習與開發電子 (週邊) 的最佳拍檔
PiGertboard 套件 (A) - Raspberry Pi (樹莓派) Gertboard 嵌入式套件
PiGertboard 套件 (B) - Raspberry Pi (樹莓派) Gertboard 外接式套件
![]() |
| Gertboard - Motor Controller ( 粉紅色框線 ),source: Gertboard User Manual (Rev 2.0) |
![]() |
| Gertboard - Open Collector Driver 電路圖,source: Assembled Gertboard Schematics |
2013年5月2日 星期四
[ 認識與使用 Gertboard ] 第三部曲 - ULN2803 開集極驅動 ( Open Collect Driver )
學習樹莓派週邊不容錯過的學習利器 "Assembled Gertboard (Rev2.0)",心動不如馬上行動!!露天賣場:
Assembed Gertboard (Rev2.0) - 利用 Raspberry Pi (樹莓派) 學習與開發電子 (週邊) 的最佳拍檔
PiGertboard 套件 (A) - Raspberry Pi (樹莓派) Gertboard 嵌入式套件
PiGertboard 套件 (B) - Raspberry Pi (樹莓派) Gertboard 外接式套件
GertBoard 的 open collector driver ( 開集極驅動,位置位在 GertBoard 的右上方 ) 使用八通道 ULN2803 達靈頓驅動 IC,電壓輸出最大可達 DC 50V,每一通道最大電流可達 500mA,可以用來驅動 LEDs、直流馬達、步進馬達以及繼電器,但在 GertBoard 只開放六個通道做使用。
Assembed Gertboard (Rev2.0) - 利用 Raspberry Pi (樹莓派) 學習與開發電子 (週邊) 的最佳拍檔
PiGertboard 套件 (A) - Raspberry Pi (樹莓派) Gertboard 嵌入式套件
PiGertboard 套件 (B) - Raspberry Pi (樹莓派) Gertboard 外接式套件
![]() |
| Gertboard - Open Collector Driver ( 黃色框線 ),source: Gertboard User Manual (Rev 2.0) |
![]() |
| Gertboard - Open Collector Driver 電路圖,source: Assembled Gertboard Schematics |
[ 認識與使用 Gertboard ] 第二部曲 - 輸出入緩衝線路 ( 開關和 LED )
學習樹莓派週邊不容錯過的學習利器 "Assembled Gertboard (Rev2.0)",心動不如馬上行動!!露天賣場:
Assembed Gertboard (Rev2.0) - 利用 Raspberry Pi (樹莓派) 學習與開發電子 (週邊) 的最佳拍檔
PiGertboard 套件 (A) - Raspberry Pi (樹莓派) Gertboard 嵌入式套件
PiGertboard 套件 (B) - Raspberry Pi (樹莓派) Gertboard 外接式套件
緩衝器可以作為輸出的驅動也可以保護內側的電路。也就是將原本的輸出訊號在經過緩衝器之後可以驅動更多的元件;或是當外部輸出短路或是有突波訊號時,會先衝擊到緩衝器,進而保護接收輸出訊號的元件。
另外,在網路上找到這英文的說明可作為參考,若還是存在疑問請自行 Google 一下 !!!
Buffers (in analog circuits) are used when you need to lower the impedance/increase current capability. They're also useful if you want to tap a signal in a circuit and don't want to put a load on that circuit that might cause the voltage to drop. For example, you might have a circuit that generates a signal and you want to bring that signal out to an external connector that you can plug a data logger or whatever into. If you put a buffer in between the original signal and the data logger output, you don't have to worry about the data logger causing a voltage drop on the original signal. Or if you accidentally short out the output, the circuit won't be affected or damaged.
Another use for a buffer is if you have a chip that has a high output impedance (such as an accelerometer) which you want to feed into a ADC that has a lower input impedance. The ADC would load the accelerometer too much and the voltage will drop; the buffer will prevent that.
Digital buffers are used as logic inverters (inverting buffers) or as simple buffers similar to the analog example above (to increase fan-out capabilities or to protect circuits against shorts when going to an external connector).
Assembed Gertboard (Rev2.0) - 利用 Raspberry Pi (樹莓派) 學習與開發電子 (週邊) 的最佳拍檔
PiGertboard 套件 (A) - Raspberry Pi (樹莓派) Gertboard 嵌入式套件
PiGertboard 套件 (B) - Raspberry Pi (樹莓派) Gertboard 外接式套件
![]() |
| Gertboard - Buffer I/O ( + switches and LEDs ),source: Gertboard User Manual (Rev 2.0) |
另外,在網路上找到這英文的說明可作為參考,若還是存在疑問請自行 Google 一下 !!!
Buffers (in analog circuits) are used when you need to lower the impedance/increase current capability. They're also useful if you want to tap a signal in a circuit and don't want to put a load on that circuit that might cause the voltage to drop. For example, you might have a circuit that generates a signal and you want to bring that signal out to an external connector that you can plug a data logger or whatever into. If you put a buffer in between the original signal and the data logger output, you don't have to worry about the data logger causing a voltage drop on the original signal. Or if you accidentally short out the output, the circuit won't be affected or damaged.
Another use for a buffer is if you have a chip that has a high output impedance (such as an accelerometer) which you want to feed into a ADC that has a lower input impedance. The ADC would load the accelerometer too much and the voltage will drop; the buffer will prevent that.
Digital buffers are used as logic inverters (inverting buffers) or as simple buffers similar to the analog example above (to increase fan-out capabilities or to protect circuits against shorts when going to an external connector).
訂閱:
文章 (Atom)


















