Project:Nanode/FAQ

From London Hackspace Wiki
< Project:Nanode
Revision as of 07:21, 7 July 2011 by Monsonite (talk | contribs) (Created page with "'''My Nanode can't access the ENC28J60 and comes up ENC28J60 Version 0.''' Nanode uses an ethernet library which was written specifically to drive the ENC28J60 ethernet controll...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

My Nanode can't access the ENC28J60 and comes up ENC28J60 Version 0.

Nanode uses an ethernet library which was written specifically to drive the ENC28J60 ethernet controller.

This device is used on several similar designs, and it must be noted that the library needs to be tailored so that it correctly addresses the ENC28J60 via digital pin 8, and not pin 10 as used in some ethernet shields.

To do this look at the DHCP test sketch and identify the line

es.ES_enc28j60Init(mymac);

for Nanode version 5 users this should be changed to:

es.ES_enc28j60Init(mymac,8);

Pin 8 is the pin used by the microcontroller to select the ENC28J60 for the SPI bus and if you don't add this, the MCU won't be able to communicate with the ENC28J60.

If you forget to do this, when you first power up there will be a message

ENC28J60 Version 0

This will appear as ENC28J60 Version 7 after the change has been made and you will know that all is well.

We are in the process of creating a Nanode specific library that defaults to pin 8, so this change will not be needed in the future.