新手試試 --- 兩塊Arduino 網絡擴展板

有兩塊唔同設計既ethernet板,對Arduino認識唔深,都未想到有咩用,又想知到兩塊板work唔work,唯有上網搵番有關資料睇下,做下個簡單既測試........

http://arduino.cc/ 搜尋'ethernet',就搵到E兩條link
產品規格資科
http://www.arduino.cc/en/Main/ArduinoEthernetShield
ethernet板使用簡介
http://www.arduino.cc/en/Guide/ArduinoEthernetShield

同手上其中一塊相似,

Arduino Ethernet
ArduinoEthernet.jpg

但睇左都唔係好明,唯有又再上網Google下,就搵到E條link
http://www.roboticfan.com/blog/u ... 2009610235927.shtml

E到都係用Arduino自帶既sample:WebServer修改,內容比較實用D。其中有兩個重點:
1. IP地址需要根據自己既路由器作岀修改,使到和路由器都在同一个區段上。
2. 留意電源供應,最好使用外部電源供電,保証上下載都有穩定電源,避免收敗。

打開IDE Arduino 0017,跟住再開個WebServer試下.....

open WebServer
openWebServer.gif

了解下個WebServer,

WebServer detail
WebServerdetail.gif

原本個ip係唔啱用要根據自己既路由器作岀修改既.....

change WebServer ip
changeWebServerip.gif

改左個ip就跟住Compile佢,...

WebServer Done Compiling
WebServerDoneCompiling.gif

冇問題就跟Upload佢,...

WebServer Done Uploading
WebServerDoneUploading.gif

冇問題就跟住可以試下佢work唔work,
就係個Browser輸入個ip地址,......

WebServer Testing
WebServerTesting.gif

Arduino Ethernet Success
ArduinoEthernetSuccess.jpg

Arduino Ethernet試機成功.......

TOP

後記:暫時未有...

TOP

試完塊Arduino Ethernet,跟住再搵埋另一塊Ethernet Shield,.....

Ethernet Shield
EthernetShield.jpg

又係網上搵到E條link
http://blog.arduino.cn/2008/09/0 ... %E5%B1%95%E6%9D%BF/
同塊板都好相似既,...

原來E塊板用既chip係ENC28J60,所以佢地係網頁提供左另外一套軟件包,可以係E度搵到,..
ENC28J60既Ethernet library  http://flamingoarduino.googlecode.com/files/Ethernet-20080904.zip
同埋個測試用既webserverpde  http://blog.arduino.cn/wp-conten ... 09/webserverpde.txt

網頁中有兩個重點須要留意:
1. 新既軟件包整個目錄要解壓到安裝Arduino-0017\下既hardware\libraries\入面。
2. 另外MAC地址和IP地址有需要的話,就要作出相應既修改。

因為E個軟件庫都係用"Ethernet",由於原本果個都有用,唔想覆蓋佢,所以用了"Ethernet2860"做Folder名。

Ethernet 2860 Directory
Ethernet2860Directory.gif

至於個webserverpde就照樣放係arduino-0017\examples\WebServer\入面方便日後使用,
不過個檔名要由.TXT尾改做.PDE尾。同時要留意個Folder名要同個File名一樣。

webserverpde Directory
webserverpdeDirectory.gif

跟住再重打開個IDE Arduino 0017睇下,....
係Sketch.Import Library可以揾到個新增既Ethernet 2860 library

Ethernet 2860 Location
Ethernet2860Location.gif

係File.Example可以揾到個新增既WebServerpde

WebServerpde Location
WebServerpdeLocation.gif

跟住打開佢,

WebServer2860
WebServer2860.gif

由於MAC地址和IP地址都唔需要改,可以直接Compile佢,...

WebServer2860 Done Compiling
WebServer2860DoneCompiling.gif

冇問題就跟Upload佢,不過要記住用最好使用外部電源供電...

WebServer2860 Done Uploading,
WebServer2860DoneUploading.gif

冇問題就跟住可以試下佢work唔work,
就係個Browser輸入個ip地址,......

WebServer2860 Testing
WebServer2860Testing.gif

Ethernet Shield Success
EthernetShieldSuccess.jpg

Ethernet Shield試機成功.......

TOP

後記:暫時未有...

TOP

你試下SD card read/write 我仍未成功

TOP

原帖由 Offer 於 2009-8-16 17:03 發表
你試下SD card read/write 我仍未成功


仲學緊D新手野. ..........睇下搵唔搵到D有關資料黎試下?!

TOP

原帖由 Offer 於 2009-8-16 17:03 發表
你試下SD card read/write 我仍未成功


我記得官網定 ladyada 個網講過, 公版 Ethernet shield 個 SD slot 係唔 function 的

TOP

有了, 係官網, 你睇佢張圖~ 有張貼紙講明唔 work 的...

http://www.arduino.cc/en/Main/ArduinoEthernetShield
The SD card slot on the shield is not supported by the Arduino software.


Not supported by Arduino software, 係咪即係其他 software 如WinAVR 得 ? 唔知...等各位高手去發掘吧

(睇過下W5100 的 datasheet... 完全冇提過 SD.... 我估, 個 SD 其實係咪只係用來 log 低 D 路過o既 packets ?)

[ 本帖最後由 dulllou 於 2009-8-16 20:54 編輯 ]

TOP

TOP