Pages: [1]   Go Down
Author Topic: ethernet and arduino mega  (Read 1384 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 87
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 87
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

please help me!!!!!
Logged

0
Offline Offline
Edison Member
*
Karma: 44
Posts: 1487
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 87
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Edison Member
*
Karma: 44
Posts: 1487
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 87
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

0
Offline Offline
Edison Member
*
Karma: 44
Posts: 1487
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 87
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

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

0
Offline Offline
Edison Member
*
Karma: 44
Posts: 1487
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:

https://github.com/jcw/ethercard

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

Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 87
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: