Go Down

Topic: ethernet and arduino mega (Read 3786 times) previous topic - next topic


hello, i have buy this shield from ebay http://www.ebay.com/itm/New-ENC28J60-Ethernet-LAN-Network-Module-Schematic-For-Arduino-51-AVR-LPC-STM32-/260920486422?pt=LH_DefaultDomain_0&hash=item3cc012aa16 and i would like connect this shield with arduino mega 2560, i connect the pin with shield and arduino http://arduino.cc/en/uploads/Reference/arduino_mega_ethernet_pins.png ,but the spi is created from arduino uno, please tell me how i edit the spi from arduino mega? and please tell me what to do in the laptot and ethernet card?



Here is how to connect to the SPI bus http://www.kiranjose.com/blog/2011/09/connect-to-internet-with-arduino-mega-2560-and-enc28j60-breakout-board_crossover_ethernet_cable/.

You will need to find a ENC28j60 Arduino library.  The standard Arduino Ethernet shield uses a W5100 controller so the standard Arduino Ethernet library included with the IDE will not work.

Maybe this library can be made to work http://trollmaker.com/article11/arduino-1-0-with-enc28j60-ethernet-shield-v1-1.

This link also has a library http://www.geeetech.com/wiki/index.php/Arduino_ENC28J60_Ethernet_Module.


yes but  this library http://trollmaker.com/article11/arduino-1-0-with-enc28j60-ethernet-shield-v1-1 created for arduino uno.i have the arduino mega and please tell me what to do edit it this line
static uint8_t mac[6] = {0x54, 0x55, 0x58, 0x10, 0x00, 0x24};   // this just needs to be unique for your network,
                                                                                        // so unless you have more than one of these boards
                                                                                         // connected, you should be fine with this value.


The MAC (Media Access Control) address has nothing to do with Arduino.  It just needs to be unique on you LAN so there is no conflict with other Ethernet devices.  You don't need to change this unless you have other boards.

See this http://en.wikipedia.org/wiki/MAC_address.


i connect the ethernet cable with arduino shield and direct in my laptop, with out router, and i edit the Windows Network and Sharing Center from this link http://www.kiranjose.com/blog/2011/09/connect-to-internet-with-arduino-mega-2560-and-enc28j60-breakout-board_crossover_ethernet_cable/ but when the i cant see the web page and i have error, please tell me what i can to do?


What is the error?

How did you make the crossover cable? 

I like to make the crossover it in the plug by crimping on a new RJ45 plug with the wires to the correct pins.


i have the cable and i connect the cable direct in the pin of shield, i dont cut the cable, when i write the i have this problem Unable to connect
          Firefox can't establish a connection to the server at

  The site could be temporarily unavailable or too busy. Try again in a few
  If you are unable to load any pages, check your computer's network
  If your computer or network is protected by a firewall or proxy, make sure
    that Firefox is permitted to access the Web.


This error has no real information.  It just means Firefox can't see the server.

You need to go to more basic examples.  There are sketches that respond to a ping from your PC or will ping your PC.

Two libraries that have lots of examples are:


http://www.nuelectronics.com/download/projects/etherShield.zip from here http://www.nuelectronics.com/estore/index.php?main_page=project_eth


the ethernet is not work, i connect the pin and edit the network but i dont know who any to do.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131