ENC28J60 ETHERNET LAN NETWORK MODULE

Login to See Prices

Category:

Description

The ENC28J60 Ethernet Module utilizes the new Microchip ENC28J60 Stand-Alone Ethernet Controller IC featuring a host of features to handle most of the network protocol requirements. The board connects directly to most microcontrollers with a standard SPI interface.

Specification

ENC28J60 Ethernet chips, SOP28 package
SPI Interface
2X5 connector, can be easily mounted with the MCU
Power indicator
Single Supply: +3.3 V

Additional information

Weight 15 g
Dimensions 56 x 34 x 35 mm

CODE

// This is a demo of the RBBB running as webserver with the Ether Card

#include

// ethernet interface mac address, must be unique on the LAN
static byte mymac[] = { 0x74,0x69,0x69,0x2D,0x30,0x31 };
static byte myip[] = { 192,168,1,203 };

byte Ethernet::buffer[500];
BufferFiller bfill;

void setup () {
if (ether.begin(sizeof Ethernet::buffer, mymac) == 0)
Serial.println( “Failed to access Ethernet controller”);
ether.staticSetup(myip);
}

static word homePage() {
long t = millis() / 1000;
word h = t / 3600;
byte m = (t / 60) % 60;
byte s = t % 60;
bfill = ether.tcpOffset();
bfill.emit_p(PSTR(
“HTTP/1.0 200 OKrn”
“Content-Type: text/htmlrn”
“Pragma: no-cachern”
“rn”
“”
“RBBB server”

$D$D:$D$D:$D$D

“),
h/10, h%10, m/10, m%10, s/10, s%10);
return bfill.position();
}

void loop () {
word len = ether.packetReceive();
word pos = ether.packetLoop(len);

if (pos) // check if valid tcp data is received
ether.httpServerReply(homePage()); // send web page data
}

With a bit of hacking, you can easily add code to display analog values read off the analog pins for instance

Reviews

There are no reviews yet.

Be the first to review “ENC28J60 ETHERNET LAN NETWORK MODULE”

Questions and answers of the customers

There are no questions yet, be the first to ask something for this product.