Pages: [1] 2   Go Down
Author Topic: Ethernet Shield with ENC28J60  (Read 6673 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 24
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So will this shield not work with the example ethernet sketches(unmodified)?  I read something about doing your own TCP/IP stack.  
Can anyone lend a little guidance.

Maybe I should have payed a little more and got a WIZNet model.  

edit:  typed too fast
« Last Edit: December 16, 2009, 10:07:11 am by vindicate » Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 627
Posts: 34250
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
So will this not work will just the example ethernet sketches(unmodified)?

Sorry what are you asking? Those words make no sense.  :-?
Logged

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

Sorry, edited my first post.  I should have proof read.
Logged

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

can't get u can u make it clear
Logged

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

I thought my post was fairly straight forward but I will try again.

I recently purchased an Ethernet Shield that uses the ENC28J60 chip.  I tried using the WebServer Example sketch.  I edited the IP to fit my subnet.  But the problem is my router doesn't seem to recognize it(it's not in the list of connected clients).  I can't ping it and I can't connect to it with a web browser.

I  have read some thing about the ENC28J60 chip and needing to do your own TCP/IP stack.  So does that mean the example sketches will not work with this chip?  Do I have a faulty chip?  Whats wrong?
Logged

Lancashire, UK
Offline Offline
Edison Member
*
Karma: 9
Posts: 1991
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The example sketches in the IDE are for the official ethernet shield with the Wiznet 5100 chipset. They will not work with the cheaper ENC28J60 based boards.  This is probably as good a place as any for the ENC28J60

http://www.nuelectronics.com/estore/?p=12
Logged


London
Offline Offline
Tesla Member
***
Karma: 10
Posts: 6255
Have fun!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If it helps, I have a shield with that chip and it works fine with the web server examples in the download from here: http://www.nuelectronics.com/estore/?p=12
Logged

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

Thank you, those libraries worked.

by wow is that code a mess.  It's going to be a feat to get that to do anything other than what the examples show.
Logged

0
Offline Offline
Newbie
*
Karma: 4
Posts: 42
Arduino rocks - Yeah Baby!!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You could have a search on this board for ENC28J60 as an alternative library has been developed for this shield. Plus it supports routing to the internet via an intermediate gateway. Its available from my blog at http://blog.thiseldo.co.uk/?p=329.

It includes examples for basic web server and client functions including posting to twitter and pachube. I have used it in a number of my own projects including 2 that have been running for months now monitoring environment conditions in my house, sending the results to pachube as well as regular twitter updates.

The latest project using this is for a simple web control of Home Easy sockets so I can turn lights on and off from anywhere I can connect to the internet.

The updated library has been used successfully be a number of people already. Its not perfect but hides a lot of the tcp/ip stuff unlike the original library.

Hope this helps

Andy

« Last Edit: December 17, 2009, 01:15:50 pm by AndyL » Logged

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

Thank you for that second library.  I will def. check it out when I get home.
Logged

Maastricht, The Netherlands
Offline Offline
Jr. Member
**
Karma: 0
Posts: 96
Techno!!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


@AndyL

I've send you a PM (a month ago) and wrote a comment at your website. Please can you reply me?

Thanks in advance!!

With kind regards,

Atmoz
Logged

Sweden
Offline Offline
Newbie
*
Karma: 0
Posts: 21
Arduino rocks !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

[size=14]A HowTo get a etherShield to work:[/size]
This is how I got etherShield to work on Arduino 0017

Create a folder for the etherShield source code.
Code:
mkdir etherShield
cd etherShield
Get the source code from the git repository:
Code:
git clone http://github.com/jonoxer/etherShield.git

Then I created a script that will download updates if there are any available and then it copies the code to where arduino is installed.

etherShield.sh
Code:
#!/bin/bash
cd etherShield
git pull
cp -r -u –remove-destination . /usr/share/arduino-ide/hardware/libraries/etherShield/
Logged

Madison, WI
Offline Offline
Newbie
*
Karma: 0
Posts: 48
Exploring Electrons. . .
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Anybody have a wiring schematic for this chip/layout?  I'm using a interface board from Futurlec which isn't set up for Arduino pins.  I'm guessing we're using the SPI interface and hooking up power, but I'm pretty sure there are interrupt pins/etc as well.

I've also seen a single board layout where the ENC28J60 clock is used to run the Arduino, that's not what I'm trying to do but it certainly adds to the wiring confusion.

I've seen the sites linked in this thread and others but nobody has the wiring laid out that I've seen, can anybody point me in the right direction or help me out?
Logged

Sweden
Offline Offline
Newbie
*
Karma: 0
Posts: 21
Arduino rocks !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

To find the answer on "wiring schematic", just Google on "Arduino ENC28J60" will get you to: http://tuxgraphics.org/electronics/200606/article06061.shtml

/Mats
Logged

Madison, WI
Offline Offline
Newbie
*
Karma: 0
Posts: 48
Exploring Electrons. . .
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
just Google on "Arduino ENC28J60" will get you to: http://tuxgraphics.org/electronics/200606/article06061.shtml

Quote
seen a single board layout where the ENC28J60 clock is used to run the Arduino, that's not what I'm trying to do...

There should be a way of running the ENC28J60 without interfering with the Atmel clock, which is how all these shields are doing it.  The link at tuxgraphics replaces the clock with the clock out from the ENC28J60, which shouldn't be necessary.
« Last Edit: March 17, 2010, 12:49:40 am by Waterppk » Logged

Pages: [1] 2   Go Up
Jump to: