Anonymous

Project:Nanode/Applications: Difference between revisions

From London Hackspace Wiki
→‎Quick Tutorial: Remove instructions to edit EtherShield_DHCPTest as they're no-longer required.
m (→‎Quick Tutorial: Minor layout, editorial changes)
(→‎Quick Tutorial: Remove instructions to edit EtherShield_DHCPTest as they're no-longer required.)
Line 133: Line 133:


The NanodeMAC library is also required from here: https://github.com/thiseldo/NanodeMAC
The NanodeMAC library is also required from here: https://github.com/thiseldo/NanodeMAC
6. Edit the EtherShield_DHCPTest
Arduino: File > Examples > EtherShield_DHCPTest
*In the source code, change MAC address to something random :) e.g. change the last two digits "??" to the two digit number written in pen on the bottom of your Nanode:
  static uint8_t mymac[6] = {0x54,0x55,0x58,0x5F,0x01,0x??};
*(for Nanode version 5 users) On line 57, change
  es.ES_enc28j60Init(mymac); to es.ES_enc28j60Init(mymac,8);
*(for Nanode version 2- older prototype boards) On line 57, change
  es.ES_enc28j60Init(mymac); to es.ES_enc28j60Init(mymac,10);


Be sure to set the baud rate at 19200.
Be sure to set the baud rate at 19200.
9

edits