Professional Documents
Culture Documents
Volume: 4 Issue: 3
ISSN: 2321-8169
256 - 259
_______________________________________________________________________________________
AbstractThis paper presents very intelligible and economical method to provide Ethernet connectivity to microcontroller based controlled
embedded systems. This system uses TCP/IP stack as a very essential element of the system software and also uses ATmega328p as a host
microcontroller to store the main application source code, web pages. An Ethernet controller chip, ENC 28J60 is used to handle the Ethernet
communications which is interfaced with the host microcontroller using SPI pins. There are many I/O pins available at the microcontroller which
is used to interface with relays for controlling operations remotely.
Nowadays, most of the internet connections use Ethernet as media for data transfer. Most of the time we need to control different home
appliances using microcontrollers. If we enable Ethernet interface to such systems then we can communicate with them remotely over the
internet with wired by means of wired or wirelessly.
Keywords- TCPI/P stack; ATmega328p; Ethernet controller; serial peripheral interface (SPI).
__________________________________________________*****_________________________________________________
I. INTRODUCTION
Early, Ethernet was available only to desktop
computers and other large computers. To exchange
information with other computers embedded systems had
limited interfaces with low speed, limited range, or lack of
standard application protocols. There is misconception that
ethernet is available for processors only.
In recent times, developments in technology now
make it feasible for embedded systems to communicate in
local Ethernet networks as well as on the Internet. Network
communication enabled embedded system are now more
powerful and easier to monitor and control [1].
The Internet has been widely used to connect
personal computers so far, but shortly all kinds of appliances
with embedded advanced controller will exchange
information over the Internet. Many numbers of
microcontrollers are available in todays devices which can
have ability to link with the Internet.
In this paper, we present the principles and to
design a system for Internet-based controlled system by
using ATmega328p as a host microcontroller and ethernet
controller chip. Web access functionality is embedded in a
system to enable low cost widely accessible and enhanced
user interface functions. Through a device web page, a web
server in the device provides access to the user interface
functions for the device. An embedded web server in any
appliance is connected to the Internet so the appliance can
be controlled from remote places through the browser in a
computer.
The aim of this project is to control the devices
especially home appliances from the remote place through a
web page. The devices which are to be controlled are
connected to the relays on the circuit board. The web-server
circuit is connected to LAN. The client or a person on the
PC is also connected to same LAN or Internet. By entering
the IP-addressof system on the web browser, the user gets a
web page on screen and this predesigned webpage contains
all the controlling information of the devices. The user can
SYSTEM COMPONENTS
_______________________________________________________________________________________
ISSN: 2321-8169
256 - 259
_______________________________________________________________________________________
B. Ethernet Controller Chip
The ENC2SJ60 is a stand-alone Ethernet controller
with capability of Serial Peripheral Interface (SPI).The chip
consists of on-chip 10 Mbps Ethernet Physical Layer (PHY)
and Medium Access Controller (MAC), providing reliable
data transmission and reception based on standard Ethernet
protocol.
The PHY contains analog circuitry on the twisted
pair interface used to encode and decode the data. The MAC
contains digital circuitry to control different tasks such as
when to transmit, handle automatic retransmission when a
collision is detected, calculates and validates CRCs
(Cyclical Redundancy Check).A total of 8 kilobytes of
RAM is present on the device.
SCLK
MOSI
MISO
SS
SCLK
MOSI
MISO
SS
B. Ethernet transformer
On the TPIN+/TPIN- and TPOUT+/TPOUT- pins
of ENC28J60, 1:1 center taped pulse transformers, used for
Ethernet operations, are required. When the Ethernet module
isactivated, current is continually sunk through both
TPOUTpins. When the PHY is effectively transmitting, a
distinctive voltage is produced on the Ethernet cable by
varying the relative current sunk by TPOUT+ compared to
TPOUT-.
SPI
SLAVE
257
IJRITCC | March 2016, Available @ http://www.ijritcc.org
_______________________________________________________________________________________
ISSN: 2321-8169
256 - 259
_______________________________________________________________________________________
It is not recommended to place a common-mode choke
on the TPOUT interface, between the TPOUT pins and the
Ethernet transformer. It should be placed between the
Ethernet transformer and pins I and 2 of the RJ-45 connector
if a common-mode choke is used to reduce EMI emissions,.
Many Ethernet transformer modules include common-mode
chokes inside the same device package [5].
C. ENC28J60
The ENC28J60 is a stand-alone Ethernet controller
with an industry standard Serial Peripheral Interface (SPI). It
is designed to fulfill as an Ethernet network interface for any
controller equipped with SPI. The ENC28J60 meets all of the
IEEE 802.3 level specifications. It consists of a number of
packet filtering schemes to limit incoming packets.For fast
data throughput and hardware assisted checksum calculation
an internal DMA module is used.An interrupt pinand the SPI
is used to communicate with the host controller, with clock
rates of up to 20 MHz. For LED link and network activity
indication two dedicated pins are used [5]. A typical
application using the device (lC) is shown in Figure 4. With
the ENC28J60, two pulse transformers and a few passive
components are required to connect a microcontroller to an
Ethernet network.
D. MCU ATmega328p
The ATmega328 is 28 pin microcontroller from
Atmel AVR family. It has 32 Kbytes of flash memory which
is sufficient to accommodate our configured TCP/IP stack
(explained later) as well as our main application source code.
It is 8-bit microcontrollerbased on the AVR enhanced RISC
architecture with low-power CMOS design [4]. By executing
powerful instructions in a single clock cycle, the
ATmega328p have throughputs nearly 1 MIPS per MHz
allowing the system designer to optimize power consumption
versus processing speed.
E. I/O Control system
This is a simple circuitry to control
differentparameters and devices on the field. It is interfaced
withmicrocontroller using different I/O ports. Driving
circuitryconsist of relay drivers, signal conditioners etc. At
the end ofthe system, relays are used to switch ONor OFF
different devices connected to them. Differentsensors can be
used to sense the physical data such astemperature, light etc.
_______________________________________________________________________________________
ISSN: 2321-8169
256 - 259
_______________________________________________________________________________________
existing system. There is no limit for future scope in the
control and monitoringoperation. Home automation is no
longer limited by the walls of the accessing appliance
facility. Further advanced thinking in automation is being
handled and implemented via remote communication. This
Ethernet Embedded system ways to numerous applications
to be developed in the area of monitoring and automation.
REFERENCES
[1] Andrew Tanenbaum, "Computer Networks", 4th Edition,
2003.
[2] Richard H. Barnett, Larry O'CuII, Sarah Cox, "Embedded C
Programming and The Amel AVR", 2007. pp. 249-253.
[3] Microchip Technology Inc.,"ENC 28J60 Data Sheet", 2008.
[4] www.microchip.com
[5] AVR
Studio
4,
for
AVR
micro
controllers
http://www.atme1.com/dyn/products/tools_card.asp?tool_id=
2725
259
IJRITCC | March 2016, Available @ http://www.ijritcc.org
_______________________________________________________________________________________