Ethernet Dual Shield V 1.1 for Raspberry

Ethernet Dual Shield V 1.1 is an Ethernet Shield for RaspBerry Pi. It is an Open Hardware Design. It has two functionalities: a dual Ethernet interface and an on board Real Time clock powered by a 12 mm battery. The Ethernet is based on ENC28J60 a SPI controller, it is a stand-alone Ethernet controller with an industry standard Serial Peripheral Interface (SPI). The real time clock is based on DS3231 an I2C controller with internal oscillator. The ENC28J60 meets all of the IEEE 802.3 specifications and it is full integrated in linux kernel.

Raspberry Boards Compatibility

On Raspberry Pi connector we have the following connection:

Power:

  • 3.3V from PIN 1
  • 3.3V from PIN 17
  • GND from PIN 6
  • GND from PIN 9
  • GND from PIN 14
  • GND from PIN 20
  • GND from PIN 25
  • GND from PIN 30
  • GND from PIN 34
  • GND from PIN 39

U1 is connected on SPI.0 :

  • MOSI.0 from PIN 19
  • MISO.0 from PIN 21
  • SCLK.0 from PIN 23
  • SPI0.CE0 from PIN 24
  • INT from PIN 15

U2 is connected on SPI.1 :

  • MOSI.1 from PIN 38
  • MISO.1 from PIN 35
  • SCLK.1 from PIN 40
  • SPI1.CE0 from PIN 12
  • INT from PIN 22

The X1 and X2 are classical transformer isolated ethernet connectors, for our project we have selected the J0011D01BNL by Pulse Electronics.

From J0011D01BNL Datasheet

From J0011D01BNL Datasheet

Ethernet Dual V1.1 Schematic PDF

EagleCAD files

It’s possible to order this board on our Shop.

Software configuration

Install RASPBIAN JESSIE (kernel 4.4 or newer) from raspberry official website for Rpi B3 and B2.
Download and copy Ethernet Dual Shield configuration tools conf_sgs_eth2.tar.gz to your Raspberry.

Uncompress the archive:

pi@raspberrypi ~ $ tar zxvf conf_sgs_eth2.tar.gz

Wait that uncompressed process finished…

Goto to directory:

pi@raspberrypi ~ $ cd conf_sgs_eth2

Check the presence of files: conf_sgs_eth2.sh  and sgs_enc28j60-spi1.dtbo with ls.

Run the bash script:

pi@raspberrypi ~/conf_sgs_eth2 $ sudo sh conf_sgs_eth2.sh

Wait excution script finished…

Reboot Raspberry:

pi@raspberrypi ~/conf_sgs_eth2 $ sudo reboot

After Raspberry Reboot check the network interfaces available with the command ifconfig, in the list of the network interfaces will be available the eth1 and eth2 network interfaces provided by Ethernet Dual Shield board.

For example: to set the static ip on the networks interfaces, edit the interfaces file with the command:

pi@raspberrypi ~ $ sudo nano /etc/network/interfaces

Add the lines reported below with your settings and save:

auto eth1
iface eth1 inet static
    address 192.168.16.10
    netmask 255.255.255.0
    network 192.168.16.0
    broadcast 192.168.16.254
    post-up route add default gw 192.168.16.1 metric 2
    pre-down route del default gw 192.168.16.1

auto eth2
iface eth2 inet static
    address 192.168.16.13
    netmask 255.255.255.0
    network 192.168.16.0
    broadcast 192.168.16.254
    post-up route add default gw 192.168.16.1 metric 2
    pre-down route del default gw 192.168.16.1

How to use RTC DS1307Z (DS3231)

Certification Disclaimer

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.