Arduino enc28j60 ethernet shield on ubuntu
From Cryptolife
I recently bought a enc28j60 ethernet shield for Arduino. At the beginning I had some problems to comunicate to the shield via tcp because the enc28j60 module isn't supported by the original Arduino Ethernet libraries. Recently I came across a solution which works, and i'd like to share with everyone. Thanks toJonathan Oxer for the etherShield library.
Comments and feedbacks are welcome by email at:
1) Ubuntu packages and libraries installation.
sudo apt-get install sun-java6-jre sun-java6-bin sun-java6-jdk \ sun-java6-fonts sun-java6-plugin gcc-avr avr-libc git-core
2) Arduino software installation. http://www.arduino.cc/en/Main/Software
wget http://arduino.googlecode.com/files/arduino-0018.tgz tar xvfz arduino-0018.tgz rm -rf arduino-0018/libraries/Ethernet/ cd arduino-0018/libraries/
3) EtherShield library installation.
git clone http://github.com/jonoxer/etherShield.git
check the new library.
ls -la etherShield/
ls -la etherShield/
total 100
drwxr-xr-x 4 user user 4096 2010-05-16 10:29 .
drwxr-xr-x 12 user user 4096 2010-05-16 10:29 ..
-rw-r--r-- 1 user user 363 2010-05-16 10:29 CHANGELOG
-rw-r--r-- 1 user user 10777 2010-05-16 10:29 enc28j60.c
-rw-r--r-- 1 user user 9740 2010-05-16 10:29 enc28j60.h
-rw-r--r-- 1 user user 2703 2010-05-16 10:29 etherShield.cpp
-rw-r--r-- 1 user user 2396 2010-05-16 10:29 etherShield.h
drwxr-xr-x 8 user user 4096 2010-05-16 10:29 examples
drwxr-xr-x 8 user user 4096 2010-05-16 10:29 .git
-rw-r--r-- 1 user user 23414 2010-05-16 10:29 ip_arp_udp_tcp.c
-rw-r--r-- 1 user user 1931 2010-05-16 10:29 ip_arp_udp_tcp.h
-rw-r--r-- 1 user user 1114 2010-05-16 10:29 keywords.txt
-rw-r--r-- 1 user user 4546 2010-05-16 10:29 net.h
-rw-r--r-- 1 user user 2831 2010-05-16 10:29 README
-rw-r--r-- 1 user user 81 2010-05-16 10:29 TODO
4) Start Arduino
cd .. ./arduino
Configure the usb port to comunicate with Arduino.
Load the example called etherShield_web_switch
Change the ip settings accordign to your local network, compile and upload the example to Arduino.
Point your web browser to the ip address previously configured and enjoy Arduino.






