Introduction: Arduino Webserver Controller Using Ethernet ENC28J60 and Arduino
Based on its datasheet, ENC28J60 adopts IEEE 802.3 compatible with ethernet or can be used as an ethernet controller. In other words, ENC28J60 is a micro (chip) with one function that is able to encapsulate (re: encapsulation, generally is a process that makes one type of data network packets into other data types) data using internet or intranet network according to chip configuration which works at 20MHz-25MHz frequency and voltage between 3.14VDC-3.45VDC.
Here's an example, the tutorial of Arduino webserver controller using ENC28J60 Ethernet Module.
Step 1: Materials You Need
Step 2: Setup
Connect each component according to the schematic drawing above. And make sure there is no wrong connection. Next, download the file libraries in the document tag above and install. Due to errors when entering the program on the website, because it does not support the existence of html language on the contents of the context, so, for the program download on here.
Step 3: Try It!
Furthermore, in its use, connect the ENC28J60 ethernet module to the local network using the router, then open the web browser on the laptop or other devices such as tables / smartphones connected to wifi on a network. Then access the IP address you use in the above program. Here we use IP address 192.168.3.55. The picture above is a screen shot example of its webserver display.
To activate the relay, press the ON LED button and to turn it off press the LED OFF button. From this project you can develop to send a data to the server through a network that is connected directly to the internet.
9 Comments
Question 7 months ago
Yes, In you code I only can add 3 lights, if add another 1, the web can't be open and working. If you don't mind. could you check it whether webpage is limited to created more. all is reference from your code. Thx
Question 7 months ago on Step 4
Nice to meet you video. After follow your steps, I success with one channel relay. however if I want to create 4 relay and copy base on your code. It's failure. After a while, the webserver also can't access to login. I don't know why, I try to change router and cable several time, only 1 time is sucess to login. Can't believe it, I try a whole day on it. It's make be crazy and mod. Please help me a lot.
5 years ago
Connection diagram is not clear, its hidden by wires, can you please elaborate??
Question 5 years ago
I already follow your discription, but i get an error from the explorer.
INET_E_RESOURCE_NOT_FOUNDFuthermore i change the ip adress from the Arduino an change the explorer, but nothing happen.
What can i do to get on the side of my Arduino?
5 years ago
Good write up. I have several ENC28J60 boards and modules and they are fun to work with. The ENC28J60 is a nifty chip and it used to be a cheap way of adding internet connectivity to an arduino.
I say 'used to be' because there are better options. The ENC28J60 is more memory hungry than the W5100. At one time there was a huge price difference with the W5100 boards and modules being much more expensive, but nowadays the W5100 modules are sometimes even cheaper than the ENC28J60 modules.
Nevertheless if you have the enc28J60, there is no reason not to use it.
Other than the listed libraries, consider the UIPethernet library by Norbert Truchess. It allows one to use programs written for the W5100, with a 28J60, simply by changing the library name
Reply 5 years ago
Hi diy_bloke, thanks so much for the feedback. We use ENC28J60 in this project because it's so cheaper in our country. But, of course we will consider to use W5100 in the next project in regard to its advantage, and we will try to use the UIPethernet library by Norbert! Thanks also for Dentella's blog referring. We could use this as a base for our upcoming project. Have a good day. :)
Reply 5 years ago
please do not see my earlier remark as criticism. I have used and am still using the enc28j60 as well. I cannot judge the price difference in yr country but if you have access to aliexpress, check it out there. Ofcourse depending on where you are maybe aliexpress is not an option or still more expensive than locally.
Regardless, you already built your webserver so my comment was more aimed at those that maybe still need to buy a controller.
Nevertheless, great instructable on a very usefull chip
Reply 5 years ago
hi diy_bloke, of course, we didnt see your remark as criticsm.. :)
thanks for the feedback.. :)
5 years ago
Can I also politely refer to Luca Dentella'sblog who published a lot on the ENC28J60
http://www.lucadentella.it/category/enc28j60-ardui...