Skip to content

EtherCard is a driver for the ENC28J60 chip, compatible with Arduino IDE. This fork was made so i could play with making it platform-agnostic (between the UNO, ESP8266 and STM32)

guipoletto/ethercard_ESP

 
 

Repository files navigation

EtherCard

Travis Status

EtherCard is a driver for the ENC28J60 chip, compatible with Arduino IDE. Adapted and extended from code written by Guido Socher and Pascal Stang.

License: GPL2

The documentation for this library is at http://jeelabs.net/pub/docs/ethercard/.

ESP_8266 port by Guilherme Poletto. Based on the work by Seradisis for the STM32 platform. Available at: https://github.com/Serasidis/STM32duino/tree/master/libraries/Serasidis_EtherCard_STM

Library Installation

  1. Download the ZIP file from https://github.com/jcw/ethercard/archive/master.zip
  2. From the Arduino IDE: Sketch -> Include Library... -> Add .ZIP Library...
  3. Restart the Arduino IDE to see the new "EtherCard" library with examples

See the comments in the example sketches for details about how to try them out.

Physical Installation

PIN Connections (Using Arduino UNO):

VCC -   3.3V
GND -    GND
SCK - Pin 13
SO  - Pin 12
SI  - Pin 11
CS  - Pin  8 # Selectable with the ether.begin() function

PIN Connections using an Arduino Mega

VCC -   3.3V
GND -    GND
SCK - Pin 52
SO  - Pin 50
SI  - Pin 51
CS  - Pin 53 # Selectable with the ether.begin() function
# The default CS pin defaults to 8, so you have to set it on a mega:
ether.begin(sizeof Ethernet::buffer, mymac, 53)

PIN Connections (using ESP8266 with Arduino IDE):

VCC -	3.3V
GND -	 GND
SCK -	GPIO14 == HSPI_CLK	== NodeMcu_D5
SO	-	GPIO12 == HSPI_MISO == NodeMcu_D6
SI	-	GPIO13 == HSPI_MOSI == NodeMcu_D7
CS	-	GPIO15 == HSPI_CS/SS== NodeMcu_D8 !!ATTENTION
		//!!MUST BE LOW FOR THE ESP TO BOOTUP (if high, triggers spi_flash_boot!!)
		//Some ENC28j60 boards have a 10k pullup that MUST be removed
		//as not to interfere with the ESP bootup process

Support

For questions and help, see the forums (at JeeLabs.net). The issue tracker has been moved back to Github again.

Related Work

There are other Arduino libraries for the ENC28J60 that are worth mentioning:

  • UIPEthernet (Drop in replacement for stock Arduino Ethernet library)
  • EtherShield (no longer maintained, predecessor to Ethercard)
  • ETHER_28J60 (no longer maintained, very low footprint and simple)

Read more about the differences at this blog post.

About

EtherCard is a driver for the ENC28J60 chip, compatible with Arduino IDE. This fork was made so i could play with making it platform-agnostic (between the UNO, ESP8266 and STM32)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 96.8%
  • C 2.2%
  • CSS 1.0%