今天又接到一個很奇怪的案子,客戶希望開發一個用 Arduino 平台 + XBee 無線接收溫度感應器傳回的資料。 還好我還有很久以前買的一片 Arduino 的板子,趕快找出來上手開發。
想用Arduino 開發的人,第一個一定要知道這個網站
www.arduino.cc,在這網站的首頁上你就會看到這塊版子的樣子了, 買來的 Arduino 板子應該都會附一條 USB 線, 有這條線就可以從 PC 供電給 Arduino,也可以將寫好的程式 Load 到板子上。 接下來要把開發工具從
www.arduino.cc 下載下來:
|
Arduino 的 Download 頁 |
目前網站上提供最新的版本是
Arduino-0022.zip ,如果想要更詳細的說明也可以上 Getting Started w/ Arduino on Windows 。
接下來的 把Arduino-0022 解壓縮,我是直接解壓縮到我的硬碟 D: 槽下,資料夾Arduino-0022 的內容如下:
|
Arduino-0022 解壓縮後的內容 |
執行 Arduino.exe 會先看到:
|
Arduino.exe 起始畫面 |
接著會進入開發畫面:
|
Arduino.exe 開發畫面 |
到此成功了一半,Arduino 的開發板是有很多種類的,所以要先在開發工具上設定自己手上所擁有板子的型號,工作至此,悲慘的事情發生了,老手的我怎麼也無法打開 Menu 上的 Tools,心想一定是忘了安裝 Driver,立刻去安裝在 Arduino-0022 下的 FTDI USB Driver,結果一樣 Tools 打不開,花了 2-3個小時在網路上查詢原因,最後我還是決定放棄,我目前安裝的環境是 Window XP,而且是一台骨董級的PC了,立刻更換作業環境到 一台筆記型電腦上有安裝 Window7, Arduino-0022 上的 Tools 終於出現了:
|
Arduino 中 Tools 選項 |
終於把開發環境都設定好了,可以正式去撰寫程式了。
2011-08-11
為了不能安裝 Arduino-0022 在 Window XP 上讓我每晚都睡不好,最後在 Arduino 軟體中的 Troubleshooting 中上找到了解答 -
Why does do the Arduino software and the Tools menu take a long time to open (on Windows)?
If the Arduino software takes a long time to start up and appears to freeze when you try to open the Tools menu, there by a conflict with another device on your system. The Arduino software, on startup and when you open the Tools menu, tries to get a list of all the COM ports on your computer. It's possible that a COM port created by one of the devices on your computer slows down this process. Take a look in the Device Manager. Try disabling the devices that provide COM ports (e.g. Bluetooth devices).
我原本也有試著把主機上的其他 COM Port 關掉,但是 Tools 選項還是無效,但最後把 藍芽關掉, Tools 的選項也可以工作了。
|
停用主機上的藍芽 |
Tools 終於可以在 XP 上使用了
|
停用藍芽後,Tools 正常了 |
留言
張貼留言
請多指教