Ethernet

From ElectroDragon
Jump to navigation Jump to search

ENC28J60 Breakout

Pin definition

1 CS 2 RST
3 SI 4 SCK
5 INT 6 SO
7 NC 8 CLK
9 VIN / VCC 10 GND


Use with Arduino

  • Wiring
172004eierrfwri9xsfamq-1.jpg

Arduino as Ethernet Web Server

  • Download the ENC28J60 library. Unzip the library to IDE library.
  • Connect the ENC28J60 Mini Ethernet Module to Arduino, notice the switch is choosing 3.3V or 5V. The IO as below: CS - 10 , SI - 11 , SO - 12 , SCK - 13
  • Select the IDE arduino-xxx/example/etherShield/etherShield_webserver.
  • Plugin the USB to Arduino , and then input the IP such as : http://192.168.1.15/. It will show as below informaion.


Schematic

Demo Code

Pending

  • DM9000CEP
  • DM9161AEP
  • RTL8201CP-VD-LF 10/100m - 2.2

LAN8720 Ethernet with ESP

Jumper setup

  • ESP32 IO0 to CLK pin - default closed (connected)
  • 10K pull up to CLK pin - default open
  • ESP32 IO17 three-way jumper - default open (not used)
Description Connection Devkitc-left side Devkitc-right side Connection Description
- 3.3V 3.3V GND2 - -
- - EN IO23 MDC -
- - SVP IO22 TXD1 -
- - SVN TXD0 - -
- - IO34 RXD0 - -
- - IO35 IO21 TX_EN -
- - IO32 GND3 GND -
- - IO33 IO19 TXD0 -
- RXD0 IO25 IO18 MDIO -
- RXD1 IO26 IO5 - -
- CRS_DV IO27 IO17 PHY_PWR control the ON/OFF of the crystal power
- - IO14 IO16 - -
- - IO12 IO4 - -
- GND GND IO0 CLK crystal clock pin
- - IO13 IO2 - -
- - SD2 IO15 - -
- - SD3 SD1 - -
- - CMD SD0 - -
- - 5V CLK - -