Project:Nanode/FAQ

From London Hackspace Wiki
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.


How do I connect External Power to my Nanode?

There are at least 3 ways to power the Nanode

1. With a 5V FTDI cable or adaptor 2. With a standard USB lead 3. With an external dc power supply

When using the FTDI cable, put the black wire closest to the USB socket.

With external dc power, use a supply less than 12V, 9V is preferable and connect the positive to the screw terminal closest to the Magjack and the 0V to the next terminal along.

If you want to use 12V or higher, you will need to fit a sutabbly sized heatsink to the tag of the 7805 regulator. The Voltage range for the regulator is 7V to 35V, but in the interests of power efficiency and overheating we do not recommend more than 12V dc.


What are the other screw terminal for?

Nanodes can be connected to networks in a number of ways, and the screw terminals provides a low cost wired serial bus. Nanodes can be wired together using 4 core telephone cable or network cable, which provides power distribution and communication between Nodes. A separate wiki page describing this feature will be published in the near future.