• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomeProjectenc28J60 and Arduino (16)
Previous Next

enc28J60 and Arduino (16)

Posted by: Jia Qun , June 20, 2016

After some months without posts, I’m going to continue this tutorial with some new projects… but first today I’d like to talk about a different library…

All the examples I wrote uses the Ethercard library by JeeLabs – in my first post I also explained how to install it in your IDE.

That library proved to be well written, stable and supported by the developers.

I found another library, also for the enc28j60 controller, named UIPEthernet (official page on Github). This library has the big advantage to be compatible with the sketches that are written for the official library.

The only change you need to perform is to update all the include statements, modifying Ethernet.h into UIPEthernet.h.

For example, load the WebServer sketch and change the include as explained before:

In the screenshot I commented (adding the two // at the beginning of the line) the original include and added the one for the UIPEthernet library

With that little change, the sketch compiles and works with your shield:

While using the library, take care of the hardware differences between the two ICs (W5100 e enc28j60) and remember that the latter uses some resources of the ATMega chip and therefore has some limits.

In particular, I found some sketches that doesn’t work (Arduino keeps resetting) because of its RAM memory is saturated… this happened for example when I was using the library to connect to a MySQL database.

For more details ,please refer to original post

http://www.lucadentella.it/en/2013/12/10/enc28j60-e-arduino-16/

Share!
Tweet

Jia Qun

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors