ENC28J60 based Cards / Modules / Shields []

Outils pour utilisateurs

Outils du site


ENC28J60 based Cards / Modules / Shields

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
documentation:microcontroleurs:arduino:modules:network_shields:enc28j60:index [2020/04/03 21:35] f1slsdocumentation:microcontroleurs:arduino:modules:network_shields:enc28j60:index [2020/04/04 02:02] (Version actuelle) f1sls
Ligne 1: Ligne 1:
 +{{:documentation:microcontroleurs:arduino:modules:network_shields:enc28j60:enc28j60_standard_version-1000x1000.jpg?200|}}
 +{{:documentation:microcontroleurs:arduino:modules:network_shields:enc28j60:enc28j60_arduino_shield.jpg?200|}}
 +{{:documentation:microcontroleurs:arduino:modules:network_shields:enc28j60:enc28j60_arduino_nano_shield.jpg?200|}}
 +
 ====== ENC28J60 based Cards / Modules / Shields ====== ====== ENC28J60 based Cards / Modules / Shields ======
  
 ===== Libraries ===== ===== Libraries =====
  
-  * [[https://github.com/UIPEthernet/UIPEthernet|UIPEthernet]] is great for projects that require print” to be fully implemented and need to be a drop-in replacement for the standard Ethernet” library+  * [[https://github.com/UIPEthernet/UIPEthernet|UIPEthernet]] great for projects that require "printto be fully implemented and need to be a drop-in replacement for the standard "Ethernetlibrary
   * [[https://github.com/muanis/arduino-projects/tree/master/libraries/ETHER_28J60|ETHER_28j60]] is great for its simplicity and small size, but comes with limitations   * [[https://github.com/muanis/arduino-projects/tree/master/libraries/ETHER_28J60|ETHER_28j60]] is great for its simplicity and small size, but comes with limitations
-  * [[https://github.com/njh/EtherCard|Ethercard]] seems best for very advanced users, but I’m sure UIPEthernet can match it’s capabilities+  * [[https://github.com/njh/EtherCard|Ethercard]] best for very advanced users 
 + 
 +===== Wiring ===== 
 +{{:documentation:microcontroleurs:arduino:modules:network_shields:enc28j60:enc28j60_arduino_uno_due_mega_wiring_03.jpg?400|}} 
 +\\ 
 +{{:documentation:microcontroleurs:arduino:modules:network_shields:enc28j60:enc28j60-arduino-wiring-300x201.png|}} 
 +\\ 
 +{{:documentation:microcontroleurs:arduino:modules:network_shields:enc28j60:enc28j60_arduino_uno_due_mega_wiring_01.jpg|}} 
 +\\ 
 +{{:documentation:microcontroleurs:arduino:modules:network_shields:enc28j60:enc28j60_arduino_uno_due_mega_wiring_02.jpg|}} 
 +===== Code ===== 
 +<code c> 
 +#include <EtherCard.h> 
 +  
 +static byte mac[] = { 0x740x69, 0x69, 0x2D, 0x30, 0x31 }; 
 +static byte ip[] = { 192, 168, 1, 10 }; 
 +byte Ethernet::buffer[500]; 
 +  
 +void setup () { 
 +    if (ether.begin(sizeof Ethernet::buffer, mac, 8) == 0)  
 +        Serial.println("Failed to access Ethernet controller"); 
 +    if (!ether.staticSetup(ip)) 
 +        Serial.println("Failed to set IP address"); 
 +
 +  
 +void loop() { 
 +    ether.packetLoop(ether.packetReceive());   
 +
 +</code>
documentation/microcontroleurs/arduino/modules/network_shields/enc28j60/index.1585942507.txt.gz · Dernière modification : de f1sls