You are on page 1of 34

Network Control Unit

By:-Ujjwal Prakash Singh


Vidhan Bhandari
Virendra Singh Rathore
Vineet Jain
AIM
• The purpose of this project is to develop a
general purpose board that make use of
Microchip’s PIC18F97J60 microcontroller for
automation purposes.
Project Scope
The objectives of this project include:

• To develop schematic of a general purpose board for


automation that includes Ethernet controllability.
 
• The board must include 4 Opto-Isolated inputs, 2
Ana-log inputs, 4 Relay driven outputs, that can be
used for various control applications.
 
Picdem.net2
Cont…
• The PICDEM.net 2 Development Board has all the
features to begin developing Internet connectivity
applications over an Ethernet connection. The
preprogrammed firmware allows users to begin
evaluating the board right out of the box with no
additional programming or configuration. All that
is required to begin exploring the board is a
network-enabled computer with an Ethernet
adapter and Internet browser software.
Product Features
• This product is a powerful, aesthetic and user friendly
system that gives the user complete freedom to explore
various functionalities of automation. In order to do this,
we have developed our product on a platform called the
PICDEM.net 2 development board. With the great
expandability and versatility of the PICDEM.net 2 Board
and PIC18F97J60 processor, we have been able to
incorporate many external devices and create a system
that is capable of collecting, processing, displaying, and
controlling all of the information just with a touch of a
button.
Cont…
Functionalities incorporated from PICDEM.net 2 :

• Microchip PIC18F97J60 microcontroller.


• Web server with HTML support.
• Microchip free TCP/IP stack.
• Ethernet Interface(RJ-45 connector).
• Connector for future expansion(Like PIC tail)
• ICSP/MPLAB ICD2 interface connector for in circuit programming
and debugging.
• RS-232/RS-485 interface.
• Real Time clock.
Functional Analysis of Board
System Features
1.Microcontroller (PIC18F97J60)
It is a feature rich PIC18 Microcontroller with an
integrated 10Mbps Ethernet communications
peripheral. This single-chip solution is ideal for
applications requiring remote control and
monitoring. Target applications include
Industrial Automation, Building Automation,
Home control, Security and Instrumentation.
Features of PIC18F97J60

Features:-

 IEEE 802.3 compatible Ethernet Controller


 Fully Compatible with 10/100/1000Base-T networks
 Integrated MAC and 10BASE-T PHY
 Up to 128KB Flash Memory
 8 KB Ethernet Buffer
 Support for Unicast, Multicast and Broadcast packets
 Unicast, Multicast, Broadcast, specific packet match or any packet
 64/80/100-Pin TQFP Package
 Temperature Range: -45°C to + 85°C
Cont.…
 Parameter Name  Value

 Program Memory Type  Flash

 Program Memory (KB)  128

 CPU Speed (MIPS)  10.5

 RAM Bytes  3,808

 Capture/Compare/PWM Peripherals  2 CCP, 3 ECCP

 Timers  2 x 8-bit, 3 x 16-bit

 ADC  16 ch, 10-bit

 Comparators  2

 Ethernet  10 Base T

 Temperature Range (C)  -40 to 85

 Operating Voltage Range (V)  2 to 3.6

 Pin Count  100


2.Inputs

1.OPTO-ISOLATED INPUT
An opto-isolator (or optical isolator, optical coupling device,
optocoupler, photocoupler, or photoMOS) is a device that uses
a short transmission path to transfer an electrical signal between
elements of a circuit, typically a transmitter and receiver, while
keeping them electrically isolated—since the electrical signal is
converted to a light beam, transferred, then converted back to
an electrical signal, there is no need for electrical connection
between the source and destination circuits.
Cont.…

Schematic diagram of a very simple opto-


isolator with an LED and phototransistor.
Cont.…
2.ANALOG INPUT
Analog input boards are useful for measuring variably changing
conditions in the real world. When we want to measure these variably
changing conditions, we need analog inputs to convert these changing real
world conditions to changing electrical quantities. In such cases, we can
use one of our analog input devices to convert the electrical data from a
sensor or transducer into binary data that can then be used by our board.
An analog input is a measurable electrical signal with a defined range. The
analog input changes continuously in a definable manner in relation to the
measured property. This data is very useful for process monitoring,
process control, or simple monitoring / data collection and acquisition.  
Cont.…
3. MAX 3232
 
The MAX3232 transceivers have a proprietary low-dropout transmitter output
stage enabling true RS-232 performance from a 3.0V to 5.5V supply with a dual
charge pump. The devices require only four small 0.1μF external charge pump
capacitors.
The MAX3232 have 2 receivers and 2 drivers. The MAX3232 is guaranteed to
run at data rates of 120kbps while maintaining RS-232 output and features a
1μA shutdown mode that reduces power consumption and extends battery life in
portable systems. Its receivers remain active in shutdown mode, allowing
external devices such as modems to be monitored using only 1μA supply
current.
Cont.…
4. MEMORY
The Microchip Technology Inc. 25AA256/25LC256 (25XX256*) are 256
Kbit Serial Electrically Erasable PROMs. The memory is accessed via a
simple Serial Peripheral Interface (SPI) compatible serial bus. The bus signals
required are a clock input (SCK) plus separate data in (SI) and data out (SO)
lines. Access to the device is controlled through a Chip Select (CS) input.
Communication to the device can be paused via the hold pin (HOLD). While
the device is paused, transitions on its inputs will be ignored, with the
exception of Chip Select, allowing the host to service higher priority
interrupts. The 25XX256 is available in standard packages including 8-lead
PDIP and SOIC, and advanced packaging including 8-lead DFN and 8-lead
TSSOP
Features Of Memory

 High Reliability: - Endurance: 1,000,000 erase/write cycles - Data retention: >


200 years - ESD protection: > 4000V
 Max. Clock 10 MHz
 Low-Power CMOS Technology: - Max. Write Current: 5 mA at 5.5V, 10 MHz
- Read Current: 6 mA at 5.5V, 10 MHz - Standby Current: 1 μA at 5.5V
 32,768 x 8-bit Organization
 64-Byte Page
 Self-Timed Erase and Write Cycles (5 ms max.)
 Block Write Protection: - Protect none, 1/4, 1/2 or all of array
 Built-In Write Protection: - Power-on/off data protection circuitry - Write
enable latch - Write-protect pin
Cont.…
 Parameter Name  Value

 Density  256 Kbit (x8)

 Max. Clock Freq.  10 MHz

 Page Size (bytes)  64

 Write Protect  Quarter, Half, Whole Array

 Endurance  1,000,000

 Op. Volt Range (V)  2.5 to 5.5

 Temp Range (°C)  -40°C to +150°C


FABRICATION
OF
PCB
PCB of required size

Imprint of PCB layout on transparent sheet

Exposure of photoresist

Development of film

DIP coating
UV Exposure

Developer

Etching

Scrubbing
Tin Coating

Drilling

Mounting/Soldering
LAYOUT
Memory

U 18

5 2
SD O 1 SI SO S D I1
6
SC K1 SC LK
7
3 H O LD
1 W P
3 .3 V C S
8
VC C
JP15
AT25256

C 72 2 1
R D 7
1u
R 50
3 .3 V 100K
0

0
MAX3232

U 14
13 12 1 2
8 R 1 IN R 1O U T 9 R xD
R 2 IN R 2O U T
JP18 10 14 JP19
1 2 11 T 2 IN T1O U T 7
TxD R 42 1B
T 1 IN T2O U T P1
1
3 C 1+ 5 10
C 68 4 C 1- 9
5 C 2+ 4
1u
2 C 2- 8 0
6 V + 3
V - 7
C 67 16 2
VC C 6
1u
1
C 66 C 65 M A X3232
1u 1u
C O N N EC TO R D B9
C 64
1u
3 .3 V
3 .3 V 0

0
PIC18F97J60
U 1
Ty pe

1 1 00
R H 2 2 R H 2 /A 1 8 R H 1 /A 1 7 9 9 R H 1
R H 3 3 R H 3 /A 1 9 R H 0 /A 1 6 9 8 R H 0
R E 1 4 R E 1 /A D 9 /W R /P 2 C R E 2 /A D 1 0 /C S /P 2 B 9 7 R E 2
R E 0 5 R E 0 /A D 8 /R D /P 2 D R E 3 /A D 1 1 /P 3 C 9 6 R E 3
R B 0 6 R B 0 /IN T 0 /F L T 0 R E 4 /A D 1 2 /P 3 B 9 5 R E 4
R B 1 7 R B 1 /IN T 1 R E 5 /A D 1 3 /P 1 C 9 4 R E 5

+3V 3
R B 2 8 R B 2 /IN T 2 R E 6 /A D 1 4 /P 1 B 9 3 R E 6
R B 3 9 R B 3 /IN T 3 /E C C P 2 /P 2 A R E 7 /A D 1 5 /E C C P 2 /P 2 A 9 2 R E 7
1 0 N C R D 0 /A D 0 /P S P 0 9 1 R D 0
R G 6 1 1 R G 6 R D 1 /A D 1 /P S P 1 9 0 R D 1
R G 5 1 2 R G 5 R D 2 /A D 2 /P S P 2 8 9 R D 2
R F 0 R D 3 C 22
1 3 R F 0 /A N 5 R D 3 /A D 3 /P S P 3 8 8 .1 u
MCLR 1 4 M C LR R D 4 /A D 4 /P S P 4 /S D O 2 8 7 S D O 2
0 1 5 R G 4 /C C P 5 /P 1 D R D 5 /A D 5 /P S P 5 /S D I2 /S D A 2 8 6 S D I2 0
1 6 V SS VD D _4 8 5
1 7 V D D C O R E /V C A P VSS_5 8 4
1 8 V D D R D 6 /A D 6 /P S P 6 /S C K 2 /S C L 2 8 3 SC K2
C 33 R F 7 1 9 R F 7 /S S 1 R D 7 /A D 7 /P S P 7 /S S 2 8 2 R D 7
C 34 R F 6
.1 u .1 u 2 0 R F 6 /A N 1 1 VSSPLL 8 1 R 20 0
R F 5 2 1 R F 5 /A N 1 0 /C V R E F VD D PLL 8 0
+3V3 R F 4 2 2 R F 4 /A N 9 R B IA S 7 9

+3V 3
R F 3 2 3 R F 3 /A N 8 V S S TX 7 8 2 .2 6 K
R F 2 R F 2 /A N 7 /C 1 O U T TP O U T+ TP O U T+
2 4 7 7

+3V 3
0 R H 7 R H 7 /A N 1 5 /P 1 B TP O U T- TP O U T- 0
2 5 7 6
R H 6 2 6 R H 6 /A N 1 4 /P 1 C V D D TX 7 5

+3V 3
R H 5 2 7 R H 5 /A N 1 3 /P 3 B VD D R X 7 4
C 38 R H 4 T P IN + C 23
+3V3 2 8 R H 4 /A N 1 2 /P 3 C T P IN + 7 3 .1 u
.1 u R F 1 R F 1 /A N 6 /C 2 O U T TP IN - T P IN -
2 9 7 2 C 20
0 +3V 3 3 0 E N VR EG VSSR X 7 1 .1 u 0
3 1 A VD D R G 0 /E C C P 3 /P 3 A 7 0 R G 0
C 21
C 43 3 2 A VSS R G 1 /T X2 /C K 2 6 9 R G 1 0 .1 u

+3V 3
AN 3 3 3 R A 3 /A N 3 /V R E F + R B 4 /K B I0 6 8 R B4
.1 u AN 2 3 4 R A 2 /A N 2 /V R E F - R B 5 /K B I1 6 7 R B5 0
0 0 0 LED B 3 5 R A 1 /L E D B /A N 1 R B 6 /K B I2 /P G C 6 6 R B6 0
LED A 3 6 R A 0 /L E D A /A N 0 R J 2 /W R L 6 5 R J2
+3V3 3 7 V SS_1 VSS_4 6 4 C 32
V D D _1 O S C 2 /C L K O O SC 2
C 44 3 8 6 3 .1 u
R G 7 3 9 R G 7 O S C 1 /C L K I 6 2 O SC 1 0
.1 u
4 0 R J 7 /U B VD D _3 6 1 0
4 1 V SS_2 R J 3 /W R H 6 0 R J3
0 R A5 4 2 R A 5 /A N 4 VSS_3 5 9
JP16
2 1 0 R F4 4 3 R A 4 /T 0 C K I VD D _2 5 8
X1 R C 1 4 4 R C 1 /T 1 O S I/E C C P 2 /P 2 A R J 6 /L B 5 7 0
R C 1 4 5 R C 0 /T 1 O S O /T 1 3 C K I R B 7 /K B I3 /P G D 5 6 R B7

+3V3
TxD R C 6 /T X1 /C K 1 R C 5 /S D O 1 SD O 1
2 1 4 6 5 5
R xD 4 7 R C 7 /R X1 /D T 1 R C 4 /S D I1 /S D A 1 5 4 S D I1
Y 3 JP17 SC K1
C 45 4 8 R J 4 /B A 0 R C 3 /S C K 1 /S C L 1 5 3
4 9 R J 5 /C E R C 2 /E C C P 1 /P 1 A 5 2 R C 2
C 46 22p
R ELAY _0 5 0 R J 0 /A L E R G 2 /R X 2 /D T 2 5 1 R G 2
C 36
R ELAY _1 R J 1 /O E R G 3 /C C P 4 /P 3 D R G 3
.1 u
0 0
Power supply

D 21
R 61
180K
U 16
3 .3 V
Ty pe
1 N 6 2 6 4 /T O
1 4 0 0
2 V IN TA B 3
G N D VO U T
C 58 C 59
0

1
1u 1u

0 0 TP 2
T E S T P O IN T
5V
R 48
2
U 15 TP 5
D 22
J7 1 1 3 1 T E S T P O IN T
R 49 IN O U T
R C A JAC K D 1N 4006 2 C 57
2

C 56

1
1u
L M 2 9 4 0 /S O T 1u
C 54 C 55 1
0 1u 1u
0 0 TP 4 TP 3
T E S T P O IN T
0 T E S T P O IN T
0 0
Input

• Analog input

470K
A IN 2
R 60
1 1 2
AN 2

JP21
Application
• Home automation in the field of lighting
system , temperature sensing , humidity
sensing and various other types of sensing as
per industrial needs.
Future Advancements
• We are looking forward to transform the
ethernet based board into a wireless enabled
board.
CONCLUSION

• Automation is undeniably a resource which can make a


home/industrial environment automated. People can
control their devices IN INDUSTRY OR HOME via this
generalised board and set up the controlling actions in the
computer. This board is capable of sensing the
environment, scheduling the equipments, sending alerts.
The board is provided with Ethernet controllability which
can be utilized to control the system remotely.
• Further expansion of the device will surely be able to
withstand the needs of the future and may include
wireless capabilities.
REFERENCES

• [1] PICDEM.net 2 Development Board


• http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en028217
•  
• [2] TCP/IP Solutions
•  http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1489

• [3] TC1262 - 500mA Fixed Output CMOS LDO


• ww1.microchip.com/downloads/en/devicedoc/21373b.pdf

• [4] LM2940 - 1A Low Dropout Regulator


• www.national.com/ds/LM/LM2940.pdf

• [5] 25LC256 MICROCHIP - 256K SPI Bus Serial EEPROM


• ww1.microchip.com/downloads/en/DeviceDoc/21822F.pdf

• [6] Chalmer’s home automation


• http://web.student.chalmers.se/groups/uc081/document/HomeAutomation%20Report.pdf
• [7] PIC18F97J60
• ww1.microchip.com/downloads/en/DeviceDoc/39762a.pdf

You might also like