Pages: [1]   Go Down
Author Topic: Ethernet Sheild from China (ENC28J60)  (Read 1277 times)
0 Members and 1 Guest are viewing this topic.
Canada
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I recently purchase an ENC28J60 Ethernet Shield from an Ebay seller out of Hong Kong.  After spending hours and hours trying to configure and ping the device, I have come to the conclusion that I need a third opinion!

1) Firstly, has any one used this device (picture below) and if so, is it compatible with all the ethernet example sketches?  Basically, did I get ripped off?

2) Second, is there a specific method for setting up the static IP address on the router and Shield that I am not aware of?  I have tried both static IP's in the shield as well as the DHCP polling code to no avail.  When going the Static IP route, when I try and ping the device, I can see the lights on the actual Ethernet plugin fire up but nothing ever returns.



* EtherNetShielf.JPG (525.93 KB, 1296x968 - viewed 20 times.)
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Firstly, has any one used this device
Plenty of people have.

Quote
if so, is it compatible with all the ethernet example sketches? 
Which examples are you referring to? If you mean the ones that come with the Arduino Ethernet library, then the answer is no. That library works with the easier-to-use WizNet 5100 based shields.

There is an EtherCard library that works with your ethernet shield that tries to hide the complexity of using that shield.

Quote
Second, is there a specific method for setting up the static IP address on the router
Of course. But, it depends on your specific router and network configuration (home, school, business, etc.).
Logged

Canada
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Paul, thanks for the reply.  I will definately try the correct library!  When you say complexity what are you referring to?  Ive read that some have had great success with this board and others not so much.  Also, I have a home router so is it best to set a static ip in the router or should I go the DHCP route?  (assuming I'm not running a server). Thanks ahead of time for the knowledge passed on!
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 7
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have the same issues, but I'm using the correct library!

This hardware: http://www.ekitszone.com/p/11/enc28j60-ethernet-shield-for-arduino-uno-duemilanove
This library: https://github.com/jcw/ethercard

I'm setting with a third parameter, because this board uses pin 10 and not 8:
Code:
if (ether.begin(sizeof Ethernet::buffer, mymac, 10) == 0)

Somehow though the code does not execute after this if statement... the leds in the socket blink, there is nothing else connected on the board and I'm using an Arduino Uno with Arduino software version 1.0 on OSX.

edit: To clarify, I also tried setting a static ip, but no luck either...


« Last Edit: February 24, 2012, 02:11:38 pm by mrfriss » Logged

0
Offline Offline
Tesla Member
***
Karma: 141
Posts: 9470
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I recently purchase an ENC28J60 Ethernet Shield from an Ebay seller out of Hong Kong.  After spending hours and hours trying to configure and ping the device, I have come to the conclusion that I need a third opinion!

You should have searched for the forum for this make of ethernet sheld before purchasing it. Pretty much for advanced users. The wiznet shields are almost the same price now.
Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 211
Posts: 13478
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@mrfriss
Quote
I'm setting with a third parameter, because this board uses pin 10 and not 8:

You can also patch the library, just search the places where the 8 was configured the hard way ...
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Canada
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I suppose I could place the shield in a bread board and do the proper pin out wiring pin 8 to 10?  That would save me having to either change the library?
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 211
Posts: 13478
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I suppose I could place the shield in a bread board and do the proper pin out wiring pin 8 to 10?  That would save me having to either change the library?

yes, but the proof is in the puddingtest smiley-wink

Note that the shield might not fit nicely to a bread board...
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

0
Offline Offline
Newbie
*
Karma: 0
Posts: 7
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@west10degrees Any luck yet getting the shield to work?

I'm still having trouble, although I'm using the correct library, pin settings, etc...
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 7
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

GOT IT!

The trick is to set the SD card pin high in setup:
Code:
pinMode(4, OUTPUT);
  digitalWrite(4, HIGH);

After this, everything works like a charm, excellent!
Logged

Canada
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@mrfriss , Glad you got it working, I got mine going as well.  Turns out I had the right library but was pointing to the wrong one.  I did read about your issue somewhere else, seems that Mini SD slot can cause some problems.  For the info, this Shield fits fine with the Arduino but doesn't allow the LCD shield to port through, probably to do with the Pin 10 being pin 8. 

Also, I've been finding it very difficult to get Pachube set up on this shield even though they have a library for this exact board.  Anyone else been through this already?
Logged

Pages: [1]   Go Up
Jump to: