pi-pico-enc28j60 icon indicating copy to clipboard operation
pi-pico-enc28j60 copied to clipboard

Bring Ethernet to the Pi Pico via SPI

Pico Ping

Uses lwIP in combination with the ENC28J60 SPI ethernet module to bring a TCP/IP stack to the Pi Pico!

Packets are read from SPI and then fed to lwIP which is running in "NO_SYS" mode - because the Pi Pico has no operating system! Pseudo code for this approach can be found here.

Code to interact with the ethernet module was adapted from an @turicas's Arduino driver.

Image of Pico responding to ping over local IP address

Wiring Diagram

Wiring Diagram

Thank you to @tobiasvogel for providing the wiring diagram

Future Improvements

  • [x] diagram of wiring
  • [ ] format code
  • [ ] get DHCP discovery working