EthernetBerry Dual V 1.1

EthernetBerry Dual Pi V 1.1 is an extension board 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.

 

 

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

 

EthernetBerry V 1.1 schematic pdf

EthernetBerryDual V1.1 Datasheet

It’s possible to order this board for only 40€ (Two channels) on Industrialberry contact form or our shop.

Software configuration

 

Install RASPBIAN JESSIE (kernel 4.4 or newer) from raspberry official website for Rpi B3 and B2.
Download and copy EtherBerry 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 EthernetBerry 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)

It is possible to confugure the RTC IC with the terminal

  1. Login as root
  2. install i2c-tools apt-get install i2c-tools
  3. install libi2c-dev apt-get install libi2c-dev
  4. edit blacklist file nano /etc/modprobe.d/raspi-blacklist.conf
  5. Add # before blacklist spi-bcm2708
  6. Add # before blacklist i2c-bcm2708
  7. Edit nano /etc/modules
  8. Add rtc-ds1307
  9. Edit nano /etc/rc.local
  10. Add echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-0/new_device (Rasp Pi Revision 1) or echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device (Rasp Pi Revision 2 and B+)
  11. Add hwclock -s
  12. reboot

or with a compiled program. The DS1307Z (DS3231) is a device I2C, and then we must install i2c-tools and libi2c-dev before use it.

Certification Disclaimer

Leave a Reply

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