http://www.amazon.com/ENC28J60-Ethernet ... rnet+board Can you get ethernet by connecting this board to the raspberry pi's gpio?
What about software?
Thanks.
-
- Posts: 258
- Joined: Sat Oct 24, 2015 1:50 pm
Re: ENC28J60 RJ45 Ethernet LAN Network Module on raspberry p
Although this is advertised as an Arduino board, and Amazon do not seem to provide instructions, there are Arduino instructions here: http://www.instructables.com/id/Add-Eth ... ess-than-/
You will have to translate the Arduino Pins to Pi GPIO pins, and modify the code shown to work with the Pi libraries. All the Arduino code required should be available with a bit of looking on the internet.
Now, whether it is a good idea to try this - translating Arduino stuff - is a different question. Luckily someone else has worked this out here: http://raspi.tv/2015/ethernet-on-pi-zer ... on-your-pi
There may be other solutions - try looking on the internet
You will have to translate the Arduino Pins to Pi GPIO pins, and modify the code shown to work with the Pi libraries. All the Arduino code required should be available with a bit of looking on the internet.
Now, whether it is a good idea to try this - translating Arduino stuff - is a different question. Luckily someone else has worked this out here: http://raspi.tv/2015/ethernet-on-pi-zer ... on-your-pi
There may be other solutions - try looking on the internet

Re: ENC28J60 RJ45 Ethernet LAN Network Module on raspberry p
viewtopic.php?p=853109#p853109
DougieLawson wrote:There's already an overlay in /boot/overlays for the ENC28J60.
Addto /boot/config.txtCode: Select all
dtoverlay=enc28j60,int_pin=25,speed=12000000
That uses CE0 on /dev/spidev0
https://github.com/raspberrypi/linux/bl ... verlay.dts
If you change things around you'll need to build a new DTS/DTB.
Doug.
Building Management Systems Engineer.
Building Management Systems Engineer.
- DougieLawson
- Posts: 42217
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
Re: ENC28J60 RJ45 Ethernet LAN Network Module on raspberry p
It only runs at 10Mbps but it supports IPv6. It does work. They're cheaper from eBay.fjr wrote:http://www.amazon.com/ENC28J60-Ethernet ... B00QEX5YUS Can you get ethernet by connecting this board to the raspberry pi's gpio?
What about software?
Thanks.
Languages using left-hand whitespace for syntax are ridiculous
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
Re: ENC28J60 RJ45 Ethernet LAN Network Module on raspberry p
Yes, I have this working on a RPi 2 running Jessie. I will try it on a zero in a few days. No additional software is needed. The board uses the SPI interface and the wiring is:
Board -> RPi
GND -> GND (Pin 20)
VCC -> 3.3V (Pin 17)
CS -> CE0 (Pin 24)
SCK -> SCLK (Pin 23)
SI -> MOSI (Pin 19)
SO -> MISO (Pin 21)
INT -> GPIO 25 (Pin 22)
To load the driver edit /boot/config.txt:
> sudo nano /boot/config.txt
and add at the bottom of the file:
# ENC28J60 Ethernet module
dtoverlay=enc28j60
Save and exit, reboot. After the reboot, execute ifconfig, you should see eth1 with a IPV4 and IPV6 address.
That's it!
Board -> RPi
GND -> GND (Pin 20)
VCC -> 3.3V (Pin 17)
CS -> CE0 (Pin 24)
SCK -> SCLK (Pin 23)
SI -> MOSI (Pin 19)
SO -> MISO (Pin 21)
INT -> GPIO 25 (Pin 22)
To load the driver edit /boot/config.txt:
> sudo nano /boot/config.txt
and add at the bottom of the file:
# ENC28J60 Ethernet module
dtoverlay=enc28j60
Save and exit, reboot. After the reboot, execute ifconfig, you should see eth1 with a IPV4 and IPV6 address.
That's it!
Last edited by GaryH on Thu Jan 21, 2016 1:53 pm, edited 1 time in total.
Re: ENC28J60 RJ45 Ethernet LAN Network Module on raspberry p
Not necessary on the Zero. Which makes configuring it easy, since you only need to edit config.txtNext, add the ethernet interface, edit /etc/network/interfaces:
> sudo nano /etc/network/interfaces
and add:
# ENC28J60 module
iface eth1 inet dhcp
after the iface eth0 inet dhcp line.
Re: ENC28J60 RJ45 Ethernet LAN Network Module on raspberry p
Removed interfaces edit from post.