I have an Arduino Uno with the ATMEGA328P and the Ethernet shield is an ENC28J60 with 10 pins. I have googled my eyes out trying to find the correct way of wiring it to the Arduino. The onlt one I question is the CS pin of the Ethernet. Does it go to 10 or 12? I have found a gentleman that has ran a simple code using the same Ethernet shield I have. He has uploaded the code online with the HTML and PHP file. I have all of the on my computer but I still cannot seem to work this thing. I apologize to anyone I seemed hostile to. I am normally a guy who can decipher any findings and use them for myself, but this very very simple thing is kicking my ass!!! Here is the website with the info and codes. Any help is appreciated.
The information that you don't have a standard Ethernet shield (which uses a WizNet5100 chip) but one with an ENC28J60 chip is very important. That means you cannot use any software written for the Ethernet library included with the IDE (at least not without bigger modifications).
In your wiring you probably have to change INT from pin 3 to pin 2 because the libraries I know for the ENC28J60 uses that pin as their default (if they use it, the EtherCard library doesn't use it).
CS has to go to pin 10 (for most libraries, although the comment in EtherCard.h says something different).
Which example did you already try?
OK. I ordered the W5100, but it won't be here for a week. So back to my cheap stuff for now. I have now learned that EhterCard library needs to be downloaded and installed in the Arduino files. The .H and .cpp files are in the correct folders, along with the .ide files. Checked and double checked I have now done that. I have gotten an accurate wiring schematic. I have found my IP stuff in need to program this thing. I have in a sense tried all the etherCard examples with no success. :0 :0 :0 I however did not try to upload the sketch to my Arduino because when I run the verify program it goes crazy with errors. Will my Arduino run if the verify program found errors? I can attach all url to my next posts if anyone wants to give what I have a try. Thanks for the help.
w done that. I have gotten an accurate wiring schematic. I have found my IP stuff in need to program this thing. I have in a sense tried all the etherCard examples with no success. smiley-mad smiley-mad smiley-mad I however did not try to upload the sketch to my Arduino because when I run the verify program it goes crazy with errors
Then you haven't tried ANY of the examples.
Will my Arduino run if the verify program found errors?
Of course not.
I can attach all url to my next posts if anyone wants to give what I have a try. Thanks for the help.
A URL for what? You haven't even confirmed that what you have is compatible with the EtherCard library. As far as we can tell, you have a window scraper.
The crazy error messages and the code you are trying to compile would be more useful, along with some proof that you do indeed have an ENCJxxx card.
I however did not try to upload the sketch to my Arduino because when I run the verify program it goes crazy with errors.
I just downloaded the EtherCard library and installed it into my libraries folder. Then I opened the getDHCPandDNS example and hit the verify button (that just compiles the code but doesn't upload it). It compiled without any error. If you get errors you must have either misconfigured your IDE or installed the library the wrong way.
BTW: to compile the examples you don't have to have any hardware or even an Arduino attached to your PC.