d8888888b    888 .d8888b.888888888888888888888Y88b   d88P  .d8888b. 8888b
	       d888888888b   888d88P  Y88b   888    888        Y88b d88P  d88P  Y88b88888b
	      d88P88888888b  888Y88b.        888    888         Y88o88P   888    888888?88b
	     d88P 888888Y88b 888 "Y888b.     888    8888888      Y888P    888       888 ?88b
	    d88P  888888 Y88b888    "Y88b.   888    888           888     888       888  ?8bb
	   d88P   888888  Y88888      "888   888    888           888     888    888888   ?8bb
	  d8888888888888   Y8888Y88b  d88P   888    888           888  d8bY88b  d88P8888888888b
	 d88P     888888    Y888 "Y8888P"    888    8888888888    888  Y8P "Y8888P" 888     ?88b

Raspberry Pi ENC28J60 Ethernet

If you need to add an ethernet interface to a Raspberry Pi model without onboard Ethernet, the obvious approach is to use a USB-ethernet adapter (NB the RPI model B ethernet just uses a USB-ethernet chip anyway). However, if you're using an Raspberry Pi Zero and the only USB port is used by something else, or you need a lower-cost option, you can try the the low-cost Microchip ENC28j60 ethernet controller, which with a few components easily connects to the SPI port on the RPI. The RPI also handily includes a built-in driver for this chip, making this an easy project.

ENC28j60 Pin RPI Pin Name RPI Pin #
3v3 17
sudo vim /boot/config.txt

Add the following line:


Then reboot.

When the RPi finishes booting, your new ethernet interface should be active!

lsmod | grep enc28j60

enc28j60               18413  0
dmesg | grep enc28j60

[    3.254954] enc28j60 spi0.0: enc28j60 Ethernet driver 1.02 loaded
[    3.262417] net eth1: enc28j60 driver registered

And of course, your new interface will be listed when you run ifconfig.

 Previous Page1 Next Page

Home - Geocaching - PHP Scripts - Articles - Music - Programming - Hot Sauce Review
About This Site - Site Search - About Me - Link Directory - Contact Me

This site was constructed entirely by hand { more info }
Modified Tuesday, January 3rd 2017 UTC

(C) Copyright 2000-2021 Marty Anstey ~~ I didn't rip you off, so don't rip me off.
server: ca-to-1