Hi everyone.
I begin my project for a little home automation. I have a problem when used Mega 2560 china clone with ethernet ENC28J60. I already connected pin from Mega 2560 to ENC28J60 as below:
SO --- 51 or ICSP-4
S1 --- 50 or ICSP-1
SCK --- 52 or ICSP-3
CS -- 53
VCC-- VCC
GND --GND
and already set IP address: #include <SPI.h> #include <UIPEthernet.h>
Hi Juraj,
Thanks for your reply. for ethernet ENC library i used UIPEthernet but actually I also found njh/EtherCard, which I should used ? or do you have an update for EthernetENC library as well ?
Hi Juraj,
Yes I already change the wiring right now is:
ENC28J60 | MEGA
SO -----> 50
S1 -----> 51
SCK -----> 52
CS -----> 53
VCC -----> VCC (3.3V)
GND -----> GND
but i still can not ping the destination IP 192.168.1.11.
action have been done:
add and install: #include <SPI.h> #include <UIPEthernet.h> #include <Ethernet.h>
tested with LED for each pin (50,51,52,53) --> result OK