Ethernet

From ElectroDragon
Jump to: navigation, 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

Description Connection Devkitc Devkitc 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 MDIO -
- RXD0 IO25 IO18 - -
- RXD1 IO26 IO5 TXD0 -
- CRS_DV IO27 IO17 PHY_PWR NC, control on/off crystal of PYH ethernet board
- - IO14 IO16 - -
- - IO12 IO4 - -
- GND GND IO0 CLK common clock pin
- - IO13 IO2 - -
- - SD2 IO15 - -
- - SD3 SD1 - -
- - CMD SD0 - -
- - 5V CLK - -