Board logo

標題: 新手試試 --- 兩塊Arduino 網絡擴展板 [打印本頁]

作者: zonebaby    時間: 2009-8-16 16:30     標題: 新手試試 --- 兩塊Arduino 網絡擴展板

有兩塊唔同設計既ethernet板,對Arduino認識唔深,都未想到有咩用,又想知到兩塊板work唔work,唯有上網搵番有關資料睇下,做下個簡單既測試........
作者: zonebaby    時間: 2009-8-16 16:43

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試機成功.......

圖片附件: ArduinoEthernet.jpg (2009-8-16 16:43, 70.52 KB) / 下載次數 134
https://www.hkepc.com/forum/attachment.php?aid=928048&k=c7a4a2e9642df88c79572ed22f76cb34&t=1781430243&sid=1fZabsJNGo0



圖片附件: openWebServer.gif (2009-8-16 16:43, 16.09 KB) / 下載次數 140
https://www.hkepc.com/forum/attachment.php?aid=928049&k=edd371f1527f8ecc13823f12e792cdb7&t=1781430243&sid=1fZabsJNGo0



圖片附件: WebServerdetail.gif (2009-8-16 16:43, 15.64 KB) / 下載次數 203
https://www.hkepc.com/forum/attachment.php?aid=928050&k=0ee8155f54f3c03a46d4bfe568d91996&t=1781430243&sid=1fZabsJNGo0



圖片附件: changeWebServerip.gif (2009-8-16 16:43, 15.73 KB) / 下載次數 133
https://www.hkepc.com/forum/attachment.php?aid=928051&k=703547a49cbff17a3b9d6e6a9adb0b56&t=1781430243&sid=1fZabsJNGo0



圖片附件: WebServerDoneCompiling.gif (2009-8-16 16:43, 16.39 KB) / 下載次數 131
https://www.hkepc.com/forum/attachment.php?aid=928052&k=9fcfd1bc03fa47d16149295028a86f98&t=1781430243&sid=1fZabsJNGo0



圖片附件: WebServerDoneUploading.gif (2009-8-16 16:43, 15.95 KB) / 下載次數 148
https://www.hkepc.com/forum/attachment.php?aid=928053&k=fd6714089f829166ae58b8ba8d814190&t=1781430243&sid=1fZabsJNGo0



圖片附件: WebServerTesting.gif (2009-8-16 16:43, 28.92 KB) / 下載次數 159
https://www.hkepc.com/forum/attachment.php?aid=928054&k=3725535ff3b5dbe6c371119b880e9ae2&t=1781430243&sid=1fZabsJNGo0



圖片附件: ArduinoEthernetSuccess.jpg (2009-8-16 16:43, 61.59 KB) / 下載次數 167
https://www.hkepc.com/forum/attachment.php?aid=928055&k=e1d96479753ac34a1400ab5416cb2784&t=1781430243&sid=1fZabsJNGo0


作者: zonebaby    時間: 2009-8-16 16:43

後記:暫時未有...
作者: zonebaby    時間: 2009-8-16 16:43

試完塊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試機成功.......

圖片附件: EthernetShield.jpg (2009-8-16 16:43, 72.01 KB) / 下載次數 177
https://www.hkepc.com/forum/attachment.php?aid=928056&k=cc067cf7e03c427c19947a5479909da3&t=1781430243&sid=1fZabsJNGo0



圖片附件: Ethernet2860Directory.gif (2009-8-16 16:43, 29.62 KB) / 下載次數 149
https://www.hkepc.com/forum/attachment.php?aid=928057&k=6f6c0b7ae6c81e5ee96066102ffb0398&t=1781430243&sid=1fZabsJNGo0



圖片附件: webserverpdeDirectory.gif (2009-8-16 16:43, 29.67 KB) / 下載次數 147
https://www.hkepc.com/forum/attachment.php?aid=928058&k=d54c65246c95f30d7788f4522cf7c7c7&t=1781430243&sid=1fZabsJNGo0



圖片附件: Ethernet2860Location.gif (2009-8-16 16:43, 14.55 KB) / 下載次數 140
https://www.hkepc.com/forum/attachment.php?aid=928059&k=256b6451e0e13643fd69319e0e38490b&t=1781430243&sid=1fZabsJNGo0



圖片附件: WebServerpdeLocation.gif (2009-8-16 16:43, 15.81 KB) / 下載次數 127
https://www.hkepc.com/forum/attachment.php?aid=928060&k=73ca06ad64fb35af3213b35b23170e52&t=1781430243&sid=1fZabsJNGo0



圖片附件: WebServer2860.gif (2009-8-16 16:43, 18.21 KB) / 下載次數 180
https://www.hkepc.com/forum/attachment.php?aid=928061&k=b91439d6cc26406c4339d751b141ad6f&t=1781430243&sid=1fZabsJNGo0



圖片附件: WebServer2860DoneCompiling.gif (2009-8-16 16:43, 19.5 KB) / 下載次數 152
https://www.hkepc.com/forum/attachment.php?aid=928062&k=3f100e35282c071a51f1db0393e71525&t=1781430243&sid=1fZabsJNGo0



圖片附件: WebServer2860DoneUploading.gif (2009-8-16 16:43, 18.77 KB) / 下載次數 144
https://www.hkepc.com/forum/attachment.php?aid=928063&k=0bb627147b6713f0b427e842d97d8c6c&t=1781430243&sid=1fZabsJNGo0



圖片附件: WebServer2860Testing.gif (2009-8-16 16:43, 35.13 KB) / 下載次數 147
https://www.hkepc.com/forum/attachment.php?aid=928064&k=ba622913e1a48ac7a65bd5c126a33ed8&t=1781430243&sid=1fZabsJNGo0



圖片附件: EthernetShieldSuccess.jpg (2009-8-16 16:43, 75.63 KB) / 下載次數 137
https://www.hkepc.com/forum/attachment.php?aid=928065&k=309c18d7be697eca3c07f93e69566152&t=1781430243&sid=1fZabsJNGo0


作者: zonebaby    時間: 2009-8-16 16:43

後記:暫時未有...
作者: Offer    時間: 2009-8-16 17:03

你試下SD card read/write 我仍未成功
作者: zonebaby    時間: 2009-8-16 17:13

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


仲學緊D新手野. ..........睇下搵唔搵到D有關資料黎試下?!
作者: dulllou    時間: 2009-8-16 20:45

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


我記得官網定 ladyada 個網講過, 公版 Ethernet shield 個 SD slot 係唔 function 的
作者: dulllou    時間: 2009-8-16 20:49

有了, 係官網, 你睇佢張圖~ 有張貼紙講明唔 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 編輯 ]
作者: jackli    時間: 2009-8-16 20:56



http://images.google.com.hk/imag ... 87&aq=f&oq=
作者: dulllou    時間: 2009-8-16 21:00

原帖由 jackli 於 2009-8-16 20:56 發表


http://images.google.com.hk/imag ... duino+SD&btnG=% ...


問題係就咁睇 layout, 個 SD solt D pins 走晒入粒同 SD 完全冇關系o既 W5100 度, 所以斷估個 SD card slot 係 for data logging....唔係可以俾 arduino 直接 access 到的.... 如果真係要用, 可能要用d 好轉折o既方法先可以 access 到..
作者: jackli    時間: 2009-8-16 21:03

原帖由 dulllou 於 2009-8-16 21:00 發表


問題係就咁睇 layout, 個 SD solt D pins 走晒入粒同 SD 完全冇關系o既 W5100 度, 所以斷估個 SD card slot 係 for data logging....唔係可以俾 arduino 直接 access 到的.... 如果真係要用, 可能要用d 好轉折o既方法先可以 access 到..


你睇下http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1206874649/8
作者: dulllou    時間: 2009-8-16 21:16

原帖由 jackli 於 2009-8-16 21:03 發表


你睇下http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1206874649/8


月經 link 啦...好早睇過, 亦都 post 過好多次.....問題係 Offer 兄講緊想用 Ethernet shield 個 card slot, 佢大概係想用佢來 host 野.

不過做 web hosting 呢味野, 都係用返 Linux 好d. 我就晌我個 buffalo Router (跑 openwrt) 上加左個 SD card slot, 可以做 BT client 添架 !

http://www.dd-wrt.com/wiki/index ... MMC_mod#The_SD_card
作者: jackli    時間: 2009-8-16 22:21

原帖由 dulllou 於 2009-8-16 21:16 發表


月經 link 啦...好早睇過, 亦都 post 過好多次.....問題係 Offer 兄講緊想用 Ethernet shield 個 card slot, 佢大概係想用佢來 host 野.

不過做 web hosting 呢味野, 都係用返 Linux 好d. 我就晌我個 buffalo Rou ...


咁緊係大便debian 最好啦





歡迎光臨 電腦領域 HKEPC Hardware (https://www.hkepc.com/forum/) Powered by Discuz! 7.2