You are on page 1of 26

ARJUN C.

R (EPAHEIT011)
JESITHA C (EPAHEIT024)
NEETHU.K.PUSHKARAN
(EPAHEIT033)
WYSH.K.S (EPAHEIT062)
GIMISH.P.G (EPAHEIT067)

Mr. SHOWKATHALI
 A web server was designed using PIC based micro
controller.

 The microcontroller was interfaced to an Ethernet


network using an Ethernet controller.

 User connect to the micro controller using a


standard web browser.
 HARDWARE USED
Microcontroller-PIC18F452.
Ethernetcontroller-ENC28J60.
RJ45 with built in Ethernet transformer.
Temperature sensor-LM35.
Power supply using LM2575T ADJ.
 SOFTWARE USED
 Compiler –MicroC
(C language is used) 
 The goal of this project is to design a web
server based on a pic18f452 microcontroller to
monitor and control devices through a web
page.
 User at a PC can connect to the pic18f452
microcontroller using a web browser and
receive a web page with data from the
microcontroller.
 To operate as a web server, the software on the
microcontroller must implement a subset of the
TCP/IP (Transmission Control
Protocol/Internet Protocol) protocol stack.
 A connection is established with a question and
answer communication. Then data is
transferred, with a response. If a packet is not
received, it can be retransmitted.
 An Ethernet Controller (ENC28J60) provides
the interface from the microcontroller Ethernet
network.
 Data acquisition and external system control
will be done using the inputs and outputs
available to the pic18f452 microcontroller
board.
 The microcontroller will decode packets from
Ethernet Transceiver then process them and
send a response.
 I/O are packets to the Ethernet network and
information/control signals to
microcontroller interfaces.
 Operates in two modes: Listening and
Responding.
 Packet types supported: Internet Control
Message Protocol(ICMP), Address
Resolution Protocol(ARP), Transmission
Control Protocol(TCP), and User Datagram
Protocol(UDP).
 TCP/IP is the protocol
used over the Internet
to allow communication
between computers.
 It is a layered protocol
based on
Open Systems
Interconnection.
 Each layer adds a
header to the data
(encapsulation)

 Software must
create and decode
these headers
 TCP/IP is reliable, connection oriented and data
transfer protocol that transmits data using packets
of information.
 TCP is the protocol that a web browser uses to
send and receive data with a web server.
 The IP protocol provides the Network-addressing
scheme and allows end-to-end connectivity.
 ICMP - Internet Control Message Protocol,
allows for testing of connectivity
 ARP - Address Resolution Protocol, used to
retrieve Ethernet address for a certain IP address
 UDP - User Datagram Protocol, connectionless
data transfer protocol
 TCP - Transmission Control Protocol,
connection-based reliable data transfer protocol
 Hypertext Transport Protocol(HTTP) is the
protocol used by web browsers to
communicate with web servers.
 Web browser asks the web server for a
document, and the web server sends the
document back.
 Hypertext Markup Language(HTML) is the
type of document used, uses tags to format
data.
 Description
An embedded web server based on PIC Serves
small web pages with information collected
from on-board peripherals.
 User Interface
Users connect to the system using a standard
web browser.
 System Testing
System can be tested for network connectivity
by 'pinging' the system. Also, Link and
Activity LEDs are available on the system to
provide network link and activity status.
 MikroC, mikroElektronika C compiler for
Microchip PIC microcontrollers is used.
 The firmware is written in higher-level
language Embedded C.
 Since they are supported to perform only
specific task, these programs are stored in Read
Only Memories (ROMs).
PIC18F452 – Microcontroller
 This microcontroller is exceptionally powerful
and ideal for C programming.
 The pic18F452 has 32KB of program memory,
1536 Bytes of RAM and 34 i/o ports.
 It is packaged in a 40 pin DIP.
 Analog features include10-bit Analog-to-
Digital Converter(ADC).
 Source code is PIC16 compatible
 The PIC 18F452 is pin compatible with 40-pin
PIC16C7X device
 PIC18 family offers a highly flexible solution
for complex embedded applications
 Most PIC18 devices will operating from 2.0 to
5.5 volts
ENC28J60
 An Ethernet Controller (ENC28J60) provides
the interface from the microcontroller Ethernet
network.
 IEEE 802.3 compatible, 28-pin Ethernet
controller
 Stand-alone Ethernet controller with on board
MAC & PHY, 8 Kbytes of buffer RAM and
SPI interface.
 Supports Full and Half-Duplex modes
 low-pin count, cost-effective, easy-to-use
solution for remote communication with
embedded applications.
 Operating voltage range of 3.14V to 3.45V
 Communication with the host controller is
implemented via two interrupt pins and the
SPI, with data rates of up to 10 Mb/s
 SPI(Serial Peripheral Interface ) interface that
serves as a communication channel between
the host controller and the ENC28J60
 dual port RAM buffer for received and
transmitted data packets.
 The PHY (Physical Layer) module that
encodes and decodes the analog data that is
present on the twisted pair interface.
 Implemented software using high level
language
 Wrote software to receive packet and
determine what type it is.
 Wrote software to process TCP packets.
 Wrote web server software to process HTTP
packets and construct HTML pages.
 Constructed and tested hardware.
 In the development of the
embedded web server we dealt with
the following issues:
 1. Definition of user requirement
specification,
 2. Selection of software environment.
 3. Selection of supporting hardware
platform and availability of
associated cores.
 4. Programming of target application.
 Embedded web server is a good media to
attach device to Internet
 Used in the field of remote monitoring and
controlling.
 We can build this system with low cost and
easy to install.

 Issues: Selection of supporting hardware,


software environment , programming,
development tools.
 Expand code to be usable with other micro
controllers.

 Make TCP/IP stack more robust, support more


of the options defined in standards.

 Industrial applications - monitor machinery,


remote control.

 Robotics applications - replace laptops used for


remote control.

You might also like