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
![](https://www.sg-electronic-systems.com/wp-content/uploads/2021/01/ethernet_bottom.jpg)
![](https://www.sg-electronic-systems.com/wp-content/uploads/2021/01/enc60_simple.png)
On Raspberry Pi connector we have the following connection:
![](https://www.sg-electronic-systems.com/wp-content/uploads/2021/01/EthernetDual_pi_conn-1.png)
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
![](https://www.sg-electronic-systems.com/wp-content/uploads/2021/01/EthernetDual_pi_U1.png)
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
![](https://www.sg-electronic-systems.com/wp-content/uploads/2021/01/EthernetDual_pi_U2.png)
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.
![](https://www.sg-electronic-systems.com/wp-content/uploads/2021/01/RJ45_connector.png)
From J0011D01BNL Datasheet
![](https://www.sg-electronic-systems.com/wp-content/uploads/2021/01/RJ45_implementation.png)
From J0011D01BNL Datasheet
![](https://www.sg-electronic-systems.com/wp-content/uploads/2021/01/Ethernet-Dual-V-1.1.2_sch-pdf-1024x724.jpg)
Ethernet Dual V1.1 Schematic PDF
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.zip to your Raspberry.
Uncompress the archive:
pi@raspberrypi ~ $ tar zxvf conf_sgs_eth2.tar.gz
![](https://www.sg-electronic-systems.com/wp-content/uploads/2021/01/soft1.png)
Wait that uncompressed process finished…
![](https://www.sg-electronic-systems.com/wp-content/uploads/2021/01/soft2.png)
Goto to directory:
pi@raspberrypi ~ $ cd conf_sgs_eth2
![](https://www.sg-electronic-systems.com/wp-content/uploads/2021/01/soft3.png)
Check the presence of files: conf_sgs_eth2.sh and sgs_enc28j60-spi1.dtbo with ls.
![](https://www.sg-electronic-systems.com/wp-content/uploads/2021/01/soft5.png)
Run the bash script:
pi@raspberrypi ~/conf_sgs_eth2 $ sudo sh conf_sgs_eth2.sh
![](https://www.sg-electronic-systems.com/wp-content/uploads/2021/01/soft6.png)
Wait excution script finished…
![](https://www.sg-electronic-systems.com/wp-content/uploads/2021/01/soft7.png)
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.
![](https://www.sg-electronic-systems.com/wp-content/uploads/2021/01/soft9.png)
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
Leave a Reply