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 module that enables Ethernet connectivity for microcontrollers and embedded systems. Utilizing the ENC28J60, a standalone Ethernet controller with an industry-standard Serial Peripheral Interface (SPI), it is particularly suitable for applications where network connection is required for data exchange, remote control, or monitoring purposes. Common applications include home automation systems, IoT devices, and networked sensors.

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

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

Pin Number Pin Name Description
1 VCC 3.3V power supply input
2 GND Ground connection
3 CLKOUT Clock output (can be left unconnected)
4 INT Interrupt output (active low)
5 WOL Wake on LAN input (active low)
6 SO SPI Serial Output (MISO)
7 SI SPI Serial Input (MOSI)
8 SCK SPI Clock Input
9 CS SPI Chip Select (active low)
10 RESET Reset input (active low)
11-28 NC No Connection (reserved for internal use)

Usage Instructions

Integration with a Microcontroller 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 SO, SI, SCK, and CS pins to the corresponding SPI pins on the microcontroller.
  3. Reset: Connect the RESET pin to a digital output pin on the microcontroller for hardware reset control.
  4. Interrupts (Optional): Connect the INT pin to an interrupt-capable pin on the microcontroller if interrupt-driven operation is desired.

Important Considerations and Best Practices

Troubleshooting and FAQs

Common Issues

Solutions and Tips

FAQs

Q: Can the ENC28J60 be used with a 5V microcontroller? A: Yes, but level shifters should be used for SPI lines, and the VCC must be supplied with 3.3V.

Q: Is it possible to connect multiple ENC28J60 modules to a single microcontroller? A: Yes, by using separate chip select (CS) lines for each module.

Q: Does the ENC28J60 support full-duplex Ethernet communication? A: No, it supports half-duplex 10 Mbps Ethernet.

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
EthernetClient client;

void setup() {
  // Start the Ethernet connection
  Ethernet.begin(mac);
  Serial.begin(9600);
  while (!Serial) {
    ; // Wait for serial port to connect
  }
  Serial.println("Ethernet ready");
  // Print the IP address
  Serial.println(Ethernet.localIP());
}

void loop() {
  // Your code here to handle Ethernet communication
}

Note: This example assumes the use of the standard Ethernet library compatible with the ENC28J60 module. Make sure to include the correct library for the ENC28J60 if you're not using a standard Ethernet shield.