So you have a neat Arduino project going on. Wouldn't it be nice to add Internet connectivity and do it on the cheap as well? This Instructable will show you how to add Internet connectivity in the form of an Ethernet interface for a few dollars and in less than half an  hour. More info at: http://hwstartup.wordpress.com/

Step 1: Order an ENC28j60 Ethernet module on eBay

Apart from your Arduino, you need a read-made Ethernet module. You can easily get these on eBay for as low as 10$. Just search eBay for ENC28J60 module. In addition, you need to have a bit of electrical wire, a soldering iron and some soldering 'tin'.
<p>Can this be used as a replacement of the Ethernet Shield?</p>
Yes indeed.
Could I connect with just 4 wires?? (I mean, I have a USB Ethernet adapter... Is it possible to use for this?)
Thank you, you just helped me solve something.
Could I connect with just 4 wires?? (I mean, I have a USB Ethernet adapter... Is it possible to use for this?)
<p>Hi,</p><p>I have used new library and downloaded above program. Also connected wires as described.</p><p>When I connect Ethernet cable, connection shows at 10 MbPS, but I am not able to ping the controller. </p><p>My Laptops IP is :</p><p>Subnet Mask :</p><p>What could be the problem ?</p>
<p>Here, I made Weather Station using Ethernet shield</p><p><a href="http://www.instructables.com/id/Arduino-Web-Weather-Server/" rel="nofollow">http://www.instructables.com/id/Arduino-Web-Weather-Server/</a></p>
<p>Has anyone experimented with how fast data can be clocked in/out of the ENC? For example, the datasheet says SCLK can be up to 20Mhz! </p><p>I'd be interesting to see how much thruput will change if going to a parallel interface like on the ENC624J600. There's also an ethernet based bootloader for the ENC624J600 that I've been meaning to get (from brushelectronics.com) but I think it uses the (rather closed) microchip tcp/ip stack.</p>
Thank you for your help.<br>great working.
<p>I am using UIP Ethernet library along with the Module </p><p>The problem is </p><p>Whenever ro connect any AC load (single phase) , </p><p>After one or two commands , the arduino is disconnect from the Network ! </p><p>Any suggestions ? On what to do </p>
<p>Can someone give an easy explanation of the code ?</p>
Hi well i did bought the bigger version of this module but i really wanted to know how to actually communicate the arduino to the actual internet and not the LAN..! could you pls tell us how..?
<p>It is technically connected to the internet! You can get things FROM the internet with this setup, but to host over the internet, you need to port forward your router/modem.</p>
<p>Do you know whether this would work with netarduino 1?</p>
<p>I have used a similar module and it is indeed a very cheap way to connect to ethernet.<br>However time can be your friend. The W5100 shield nowadays is also fairly cheap and a W5100 module is about 6-7 euro.<br>Check aliexpress: </p><p>http://www.aliexpress.com/item/TOP-Mini-W5100-LAN-Ethernet-Shield-Network-Module-board-for-Arduino-Best/1990146986.html</p>
<p>in fact the W5100 shield is cheaper than the 5100 module: around 5 euro: </p><p>http://www.aliexpress.com/wholesale?catId=0&amp;initiative_id=AS_20141128122559&amp;SearchText=ethernet+shield+w5100</p>
<p>gearbest has them for under $5. old post but still good modules.</p><p><a href="http://www.gearbest.com/development-boards/pp_22712.html" rel="nofollow">http://www.gearbest.com/development-boards/pp_2271...</a></p>
<p>Would this work with an Arduino Mega? Does it require code change and/or different pins?</p>
<p>Hello,<br><br>I'm<br> contacting you regarding a project that I have. I'm using Arduino Uno <br>and enc28j60 module and some XBees. The main problem is regarding the <br>connection to the LAN/Internet. I'm using some sensors and I'm trying to<br> view the sensors reading on the web. I used a lot of libraries but I <br>can't see nothing. I connected the enc28j60 module with a cable directly<br> to the computer and in the browser I am typing the IP but nothing to <br>see. What am I doing wrong? Please help.</p>
<p>have you forwarded your internet IP to yr enc28J60 IP?</p>
<p>hey im using arduino mega 2560 please tell me the exact pin mapping for that</p>
Hi could you please tell us how to connect this module with the arduino to communicate to the outside world(the internet) and not just the LAN . I want it to send me emails.! <br> <br>Pls help. <br> <br>Thank you for your time.!
<p>might be too late for you but maybe someone else is helped by this often asked question:<br>The answer is as for any computer om yr LAN that you want to get to from the internet: in your router you have to set up portforwarding to the local IP of the computer you want to get to.<br>If you would forward port 80 to the IP nr of this module and run a webserver on it, then <a href="http://your_internet_ip/" rel="nofollow"> http://your_internet_ip/ </a> will bring you to yr module.<br>If you forward another port, say 8080 then you do this:<br><a href="http://your_internet_ip:8080" rel="nofollow">http://your_internet_ip:8080</a></p>
<p><iframe allowfullscreen="" frameborder="0" height="281" src="//www.youtube.com/embed/vKE8SHywZmo" width="500"></iframe></p><p>...goes over a sample sketch and references a good library for these.</p>
<p>Hi all,</p><p>I am unable to execute it properly , below errors are coming</p><p>//***</p><p>Ethernet_Test_One:7: error: 'Ethernet' has not been declared</p><p>Ethernet_Test_One:8: error: 'BufferFiller' does not name a type</p><p>Ethernet_Test_One.ino: In function 'void setup()':</p><p>//***</p><p>i hope i doing mistake in adding .h file,</p><p>could please tel me how to proceed futher</p>
<p>Thanks for this article, it made it a lot easier to pick which ethernet element to choose.</p><p>I do wonder though, how processing-intensive this approach is compared to using the W5100? As you wrote in another comment, the W5100 does more on-chip (TCP/IP work).</p><p>My concern is: If your code is very timing sensitive, is it even feasible to have ethernet communication going on on the same arduino? And would it be more realistic with the W5100?<br><br>Say for example, you're using the arduino to run an AC light dimmer, where you need to detect the zero-crossing of AC power sine curves, and open/close a TRIAC unit some specific time after that, you're very dependent on the loop not being stalled by operations that take a long time.</p><p>I may be barking up the wrong tree here...</p>
<p>Great article! </p><p>I've been playing with a comparable [eBay: $18 w/Arduino Nano] ethernet shield, also based on the ENC28J60. </p><p>I tried a few libraries (ETHER_28J60, EtherCard and UIPEthernet) and found UIPEthernet to work very well as well, specially since it's a drop-in replacement library for the &quot;standard&quot; Ethernet Library that comes with your Arduino IDE. So all the Ethernet Examples included with your Arduino IDE work by just replacing the &quot;#include &lt;Ethernet.h&gt;&quot; with &quot;#include &lt;UIPEthernet.h&gt;&quot;.</p><p><a href="http://www.tweaking4all.com/hardware/arduino/arduino-enc28j60-ethernet/" rel="nofollow">http://www.tweaking4all.com/hardware/arduino/ardui...</a></p>
<p>Hello,</p><p>Thanks for a perfectly simple tutorial, I was able to set it up in less than 10 minutes, all thanks to you.</p>
There are similar at <a href="http://dx.com" rel="nofollow">dx.com</a> for about $5.90 and work with Arduino's ethernet library right out of the box.&nbsp;&nbsp; Shipping is free.<br> <br> They also have many other Arduino add-ons at very good prices.<br> <br> For you other hackers, this can be a great source and save money at the same time.<br>
And here is one on That Auction Site for less than that.... <br> <br>http://www.ebay.com/itm/like/111114905350?lpid=82
I was expecting to see a level converter between the 5v arduino and 3v Ethernet enc28 board on the data lines. I've seen other DIY arduino Ethernet boards that use it. But yours indicates that is not necessary? Thanks.
awsome! i purchased one of these modules on amazon for 7 bucks and i tried getting it running but failed but this is alot more clear than the translated chinese instructions. THANKS A TON!
Hi Kyle, <br> <br>How far have you come? <br>- Do you have the LED on the PCB on? <br>- When you connect to your router/modem, do you see the LEDs on the Ethernet connector light up? <br>- What do you see on your serial port (copy here?)? <br> <br>Hope this helps you. <br> <br>Hans
well heres what i got, i used the example script that uses dhcp to obtain an ip and it basically says it cant obtain an ip, im gonna check my wiring....
Kyle,<br><br>Traveling now, so I cannot help now. Sorry.
oh its all good, its wiring on my end that just has to be troubleshooted
I'm getting an Ethernet has not been declared error while compiling.. anyone else with this problem?
I think that the Ethershield library is not where Arduino expects it to be. Have you downloaded it form github as described in step 3? Where is it placed in your file tree? <br> <br>BTW The provided Sketch of step 3 is used with Arduino 022.
Sorry, I thought I deleted that right after I posted it... I didn't read the post all the way through, so of course I didn't download the correct libs.. that's what I get I suppose. Thx for replying though.
How well do these modules work compared to the W5100?
They have similar functionality. Big difference is that W5100 has all the networking stuff (TCP/IP) in the chip, whereas with the ENC28J60, this is done in the Arduino with the two mentioned libraries.
Thanks for the project, I had an Ethernet board but hadn't connected it yet. I downloaded the following EtherShield library (http://trollmaker.com/data/documents/ethershield_v1.1_for_arduino_v1.0.zip). To use it, I had to change ENC CS -&gt; Arduino pin 8 to ENC CS -&gt; Arduino pin 10.
Thanks for sharing
Hi, congratulations itś very good proyect. Warm the atmega when the device is turn on due to the ethernet adaptor? I' bought a similar adaptor that broke my arduino.
Excuse me for being a little dumb with regard to electronics, but what does this do?
You're not being dumb, as you are asking. The high level explanation is that this takes a network controller and connects it to an Arduino, so that whatever you are doing with an arduino can be done across your lan, or the internet. There are several turorials out there showing how to add a temperature sensor to an Arduino and have the Arduino present that information to your computer. You can also use light sensors, a wide variety of alarm sensors, etc. that allow you to gather information from the environment of the Arduino. This tutorial shows how to add the hardware, and some of the support software for that hardware to an arduino to make use of the information across the internet. To do that you will have to look to some of the other instructables related to Arduino and Netduino projects. <br> <br>One of the reasons to consider this project is that the Netduino shield, and several of the netduino variations on the Arduino board tend to cost significantly more than $10 on top of an Arduino. As noted elsewhere, there are other options as well, but this is one that the instructable author found, and is sharing the information on. <br> <br>A slightly lower level explanation is that this network interface controller is a SISO connectable device that you can add to an Arduino in one of a number of ways. SISO simply is one of several ways of communicating between a controller like an Arduino, and various devices such as this Network interface, sensors, and switches and relays. Some other ways of doing similar things is with MIMO and I2C, each of which has different requirements and capabilities.
thank you for a good and simple explanation. can i now give orders to the arduino from another computer through the internet? what will happend to the code of the ethernet? <br>thanks eri govrin
very nice - thanks for the step-by-step hookup instructions.

About This Instructable


347 favorites


More by hansc44: Arduino: Use LED as a light sensor Add Ethernet to any Arduino project for less than 10$
Add instructable to: