RPI4 Documentation

Securing the ENC28J60 Module to your RPI4:

For many applications there is no need to add any extra support to the Ethernet module on your RPI4 but if you want a more secure fixing you have a few options.

You can use a small cable tie round the module through the two 3mm holes on the PCB, you can use a small double sided sticky pad between the RJ45 socket on the Ethernet module and the PCB or you can use a small amount of glue between the RJ45 socket and the PCB.

Mounting the RPI4 on you Raspberry Pi:

Your RPI4 comes complete with two spacer sets to allow you to mount it onto your Raspberry Pi.

If you are fitting it to a Raspberry Pi Zero you can choose which two corners to fit the spacers to but we would recommend the two at the bottom edge. If you are mounting it to any other Raspberry Pi you will have to use the holes adjacent to the GPIO connector as the bottom ones won't line up.

To mount the RPI4 first insert the M2.5x6mm screws from the underside of the Raspberry Pi with a washer on each and then on the top side of the Raspberry Pi place on each a washer and then screw on the M2.5x12mm spacer provided. Onto the top of each spacer then place two washers. Now carefully push your RPI4 onto your Raspberry Pi. You should then have left a washer and nut to put on top of each mount.

Do not overtighten these spacers, they can normally be done up by hand without the need for any tools but if you do decide to use tools then be gentle as they are easily damaged.

Software Configuration:

To configure the RPI4 to work on your Raspberry Pi you must first enable the SPI interface on your Pi.

You can either do this using the "raspi-config" tool on the command line or using the configuration tool in the graphical interface. Click here for full information on either method.

Next you need to tell your Pi to load the driver module for the ENC28J60 Ethernet module that is on the RPI4. To do this you need to edit /boot/config.txt and add to the end the line "dtoverlay=enc28j60".

Now reboot your Pi and you should have a new Ethernet interface. If you plug it into your network then it will obtain an IP address from your network's DHCP server and you're good to go.

Setting a Static IP Address:

The ENC28J60 Ethernet IC used on the RPI4 does not have a fixed MAC address in the hardware. This means that it will be allocated a different MAC in software each time you reboot your Raspberry Pi. For this reason if you want your Pi to have a static/fixed IP address you can't use the usual method of allocating it on your DHCP server.

In order to set a static IP on the Raspberry Pi itself you need to edit the file /etc/dhcpcd.conf and add something similar to the following:

interface eth0
static ip_address=
static routers=
static domain_name_servers=

If you have more than one Ethernet interface on your Pi (i.e. the built in one on a B+, 2, 3 or 4) then the interface name might be something other than eth0. Adjust the IP address, router and name server to suit your network. Reboot and the Pi will use the IP you have configured.

Go to RPI4 Shop Page
Go to Documentation Overview Page
Quick Find
Use keywords to find the product you are looking for.
Advanced Search
0 items