EtherCard is a driver for the ENC28J60 chip, compatible with Arduino IDE https://github.com/njh/ethercard
Go to file
Jean-Claude Wippler 7e87fcd887
looking for a new maintainer ...
2018-06-05 11:26:19 +02:00
examples Added NTP Client Example 2017-10-14 00:01:39 +02:00
.gitignore add doxygen files 2012-10-06 12:21:32 +02:00
.travis.yml Skip udplistener tests for now 2016-04-29 22:24:47 -07:00
CONTRIBUTING.md Added CONTRIBUTING.md with basic code style guide 2014-12-09 10:00:56 +00:00
Doxyfile more patches and documentation from @riban, see #466 2014-03-09 22:40:11 +01:00
Doxylogo.png doxygen update (thx David Menting) 2012-11-01 17:47:10 +01:00
Doxymods.css Cleaned up whitespace in library files 2014-03-19 09:04:28 +00:00
EtherCard.cpp Translated some magic numbers into meaningful constants 2016-08-24 17:38:40 -03:00
EtherCard.h multiple spelling fixes 2018-03-15 19:09:48 +00:00
LICENSE Create LICENSE 2017-05-22 12:03:12 +02:00
README.md looking for a new maintainer ... 2018-06-05 11:26:19 +02:00
dhcp.cpp multiple spelling fixes 2018-03-15 19:09:48 +00:00
dns.cpp multiple spelling fixes 2018-03-15 19:09:48 +00:00
docu.dox Translated some magic numbers into meaningful constants 2016-08-24 17:38:40 -03:00
enc28j60.cpp multiple spelling fixes 2018-03-15 19:09:48 +00:00
enc28j60.h multiple spelling fixes 2018-03-15 19:09:48 +00:00
library.json @PlatformIO Library Registry manifest file 2015-06-09 14:37:01 +03:00
net.h Translated some magic numbers into meaningful constants 2016-08-24 17:38:40 -03:00
tcpip.cpp multiple spelling fixes 2018-03-15 19:09:48 +00:00
udpserver.cpp Merge pull request #160 from flok99/master 2015-04-27 23:10:43 +02:00
webutil.cpp multiple spelling fixes 2018-03-15 19:09:48 +00:00

README.md

EtherCard

This repository is looking for a maintainer, let me (@jcw) know if you're interested!

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/.

Requirements

  • Hardware: This library only supports the ENC28J60 chip.
  • Hardware: Only AVR-based microcontrollers are supported, such as:
    • Arduino Uno
    • Arduino Mega
    • Arduino Leonardo
    • Arduino Nano/Pro/Fio/Pro-mini/LiliPad/Duemilanove
    • Any other Arduino clone using an AVR microcontroller should work
  • Hardware: Non-AVR boards are NOT currently supported (101/Zero/Due) #211
  • Hardware: Depending on the size of the buffer for packets, this library uses about 1k of Arduino RAM. Large strings and other global variables can easily push the limits of smaller microcontrollers.
  • Hardware: This library uses the SPI interface of the microcontroller, and will require at least one dedicated pin for CS, plus the SO, SI, and SCK pins of the SPI interface.
  • Software: Any Arduino IDE >= 1.0.0 should be fine

Library Installation

  1. Download the ZIP file from https://github.com/jcw/ethercard/archive/master.zip
  2. Rename the downloaded file to ethercard.zip
  3. From the Arduino IDE: Sketch -> Include Library... -> Add .ZIP Library...
  4. 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 10 # 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

Support

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

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

  • UIPEthernet (Drop in replacement for stock Arduino Ethernet library)
  • EtherSia (IPv6 Arduino library for ENC28J60)
  • 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.