Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use ENC28J60 Ethernet Module: Examples, Pinouts, and Specs

Image of ENC28J60 Ethernet ModuleDesign with ENC28J60 Ethernet Module in Cirkit Designer

Introduction

The ENC28J60 Ethernet Module is a versatile network communication module that allows microcontrollers to connect to an Ethernet network. It is based on the ENC28J60, a standalone Ethernet controller with an industry-standard Serial Peripheral Interface (SPI). This module is commonly used in embedded systems for network communication, enabling devices to access the Internet or communicate on a local network. It is particularly popular in the DIY and hobbyist community for its ease of use with platforms like Arduino.

Explore Projects Built with ENC28J60 Ethernet Module

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of ESP32-Based Environmental Monitoring System with Ethernet Connectivity: A project utilizing ENC28J60 Ethernet Module in a practical application
ESP32-Based Environmental Monitoring System with Ethernet Connectivity

This circuit features an ESP32 microcontroller interfaced with a W5500 Ethernet module for network connectivity, a DHT22 sensor for measuring temperature and humidity, and an Adafruit SHTC3 sensor for additional temperature and humidity readings. The ZMPT101B module is connected to the ESP32 for voltage measurement in an AC power line. The ESP32 manages data collection from the sensors and communicates with the Ethernet module, likely for data logging or remote monitoring purposes.

Open Project in Cirkit Designer
Image of ESP32-Based Environmental Monitoring and Home Automation System with Ethernet Connectivity: A project utilizing ENC28J60 Ethernet Module in a practical application
ESP32-Based Environmental Monitoring and Home Automation System with Ethernet Connectivity

This circuit is designed for environmental monitoring and home automation, featuring an ESP32 microcontroller connected to a W5500 Ethernet module, DHT22 and Adafruit SHTC3 sensors for temperature and humidity readings, a ZMPT101B module for voltage sensing, and a 4-channel relay for controlling external devices. Network connectivity enables remote data access and control functions.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

Pin Number Pin Name Description
1 VCC 3.3V power supply input
2 GND Ground
3 INT Interrupt output (active low)
4 WOL Wake on LAN input (active low)
5 SCK SPI clock input
6 SI SPI data input
7 SO SPI data output
8 CS SPI chip select (active low)
9 RESET Reset input (active low)

Usage Instructions

How to Use the Component in a Circuit

  1. Power Supply: Connect the VCC pin to a 3.3V source and the GND pin to the ground.
  2. SPI Interface: Connect the SCK, SI, SO, and CS pins to the corresponding SPI pins on your microcontroller.
  3. Reset: Connect the RESET pin to a digital pin on your microcontroller for software reset capability.
  4. Interrupts: (Optional) Connect the INT pin to an interrupt-capable pin on your microcontroller if you wish to use interrupt-driven communication.
  5. Wake on LAN: (Optional) Connect the WOL pin if you require the Wake on LAN feature.

Important Considerations and Best Practices

Example Code for Arduino UNO

#include <SPI.h>
#include <Ethernet.h>

// MAC address for the Ethernet shield
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };

// Initialize the Ethernet client library
EthernetClient client;

void setup() {
  // Start the Ethernet connection
  Ethernet.begin(mac);
}

void loop() {
  // Code to handle Ethernet communication
}

Code Comments

Troubleshooting and FAQs

Common Issues

Solutions and Tips for Troubleshooting

FAQs

Q: Can the ENC28J60 module be used with a 5V microcontroller? A: Yes, but a level shifter is required for the SPI lines to ensure proper logic level conversion.

Q: Is it possible to use multiple ENC28J60 modules with one microcontroller? A: Yes, you can use multiple modules by assigning different chip select (CS) pins for each module.

Q: How do I assign a static IP address to the ENC28J60 module? A: You can assign a static IP using the Ethernet.begin(mac, ip) function, where ip is the desired static IP address.

Q: What library should I use for the ENC28J60 with an Arduino? A: The standard Ethernet library may not support the ENC28J60. Use a compatible library like UIPEthernet or EtherCard for Arduino.