SlideShare a Scribd company logo
1 of 19
Zanjan University
Department of Electrical Engineering
Bachelor Thesis
Title
Making PLC (Programmable logic controller) by FPGA and
microcontroller
By
Mojtaba Hajimiri
Ali nilechi
Supervisor
Dr. Siroos Toofan
 PLC (Programmable logic controller) is one of the important
parts in industry. So our purpose in this project were making a
PLC. Towards this end, an electrical circuit is designed based
on FPGA and other microcontrollers. Then, a PCB is designed
using altium designer, and the functionality of the board is
tested.
 Our PLC in here contains 2 boards :
 1- main board: this board consist of altera cyclone ii
EP2C8T144C8 FPGA and atmega128. we used this board as
our main board. We writes the PLCs main program in quartus
software (by graphical language-like FBD in PLC) on FPGA
and then we sends our commands to atmega128 microcontroller
that can be connected to our power board (by rs232 or ...).
 2-power board: this board consists of atmega128
microcontroller as main processor and can been connected to
our main board (by rs232 or ...). We used this board as our
input-output board. this board consists of some protection
circuits in his inputs that can be acquire different types of
inputs. in this board we used relays to control automation
systems.
 Power board
 Power board schematic:
 Input circuits:
 Output relay circuit:
 lcd & hmtr & mmc circuit:
1
2
3
4
5
6
HMTR
Header
6
V
C
C
V
C
C
G
N
D
G
N
D
rx0
tx0
V
C
C
G
N
D
V
C
C
3
1
2
1
0
K
R_LCD
RPot
G
N
D
1
2
3
4
5
6
7
8
eeprom
Header
4X2
G
N
D
G
N
D
1
VCC
2
V
O
3
R
S
4
R/W
5
E
6
DB0
7
DB1
8
DB2
9
DB3
1
0
DB4
1
1
DB5
1
2
DB6
1
3
DB7
1
4
A
1
5
K
1
6
LCD
1
2
3
4
5
6
7
8
9
1
0
m
m
c
Header
10
1
K
rmmc1
Res1
1
K
rmmc2
Res1
s
s
o
mosio
v
3
3
scko
v
3
3
v
3
3
G
N
D
misoo
c
4
c
5
c
6
c
7
c
0
c
1
c
2
V
C
C
G
N
D
V
C
C
SDA
 DAC circuits:
V
C
C
-vcc
1
K
Res1
G
N
D
1
K
rdac11
Res1
1
K
rdac1
Res1
1
0
0
p
F
cdac1
Cap
1
2
3
out_pin
Header
3H
1
2
con_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m_T/R
41_m_N_OE
42_m_I
43_m_I
44_m_I
45_m_I
125_m_T/R
G
N
D
+3V3
+3V3
+3V3
+3V3
+3V3
+3V3
+3V3
+3V3
3_m_I
4_m_I
7_m_I
8_m_I
9_m_I
25_m_N_OE
28_m_I
30_m_I
31_m_I
32_m_I
126_m_I
129_m_I
132_m_I
133_m_I
134_m_I
135_m_I
136_m_I
137_m_I
141_m_N_OE
142_m_I
143_m_I
144_m_I
42_m_I
43_m_I
44_m_I
45_m_I
41_m_N_OE
 USB circuits:
EESK
1
EEDATA
2
V
C
C
3
RESET#
4
RSTOUT#
5
3V3OUT
6
USBDP
7
USBDM
8
G
N
D
9
PWREN#
1
0
SI
/
WU
1
1
RXF#
1
2
VCCIO
1
3
TXE#
1
4
W
R
1
5
RD#
1
6
G
N
D
1
7
D
7
1
8
D
6
1
9
D
5
2
0
D
4
2
1
D
3
2
2
D
2
2
3
D
1
2
4
D
O
2
5
V
C
C
2
6
XTIN
2
7
XTOUT
2
8
A
G
N
D
2
9
A
V
C
C
3
0
TEST
3
1
E
E
C
S
3
2
FT245BM
FT245BM
C
S
1
D
O
4
D
I
3
N
C
7
VSS
5
CLK
2
N
C
6
V
C
C
8
93C46
93C46A-I/P
G
N
D
2
7
p
F
C47
Cap
Semi
2
7
p
F
C48
Cap
Semi
G
N
D
G
N
D
3
3
n
F
C45
Cap
Semi
G
N
D
2
7
R
R19
Res3
2
7
R
R20
Res3
D
+
D
+
D
-
D
-
E
E
C
S
EESK
EEDATA
EECS
E
E
S
K
EEDATA
2K2
R25
Res3
1
0
K
R26
Res3
G
N
D
G
N
D
1.5K
R21
Res3
99_USB0
100_USB1
101_USB2
103_USB3
104_USB4
112_USB5
113_USB6
114_USB7
115_USB_RD#
118_USB_WR
119_USB_TXE#
120_USB_RXF
V
C
C
1
5
_
3
3
n
F
C46
Cap
Semi
4
7
0
R22
Res3
V
C
C
G
N
D
4K7
R17
Res3
1
0
K
R18
Res3
G
N
D
1
0
K
R23
Res3
1
0
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IO_3
IO_4
IO_5
IO_6
IO_7
IO_8
IO_9
IO_10
IO_11
IO_12
IO_13
IO_14
IO_15
IO_0
IO_1
IO_2
IO_3
IO_4
IO_5
IO_6
IO_7
IO_8
IO_9
IO_10
IO_11
IO_12
IO_13
IO_14
IO_15
IO_16
IO_17
IO_18
IO_19
IO_20
IO_21
IO_22
IO_23
IO_16
IO_17
IO_18
IO_19
IO_20
IO_21
IO_22
IO_23
99_USB0
100_USB1
101_USB2
103_USB3
104_USB4
112_USB5
113_USB6
114_USB7
115_USB_RD#
118_USB_WR
119_USB_TXE#
120_USB_RXF
1
2
3
4
5
6
7
8
9
1
0
F_IO_2
Header
5X2H
G
N
D
G
N
D
1
2
3
4
5
A_RES_1K
TCK
TDO
TMS
TDI
1
K
Res3
G
N
D
1
K
R12
Res3
G
N
D
1
0
K
R16
Res3
1
0
K
R13
Res3
1
0
K
R14
Res3
1
0
K
R15
Res3
G
N
D
1
2
3
4
5
6
7
8
9
1
0
F_programer_1
Header
5X2
G
N
D
DCLK
CONF_DONE
nCONFIG
nSTATUS
nCE
nCE
CONF_DONE
nCONFIG
DATA
ASDI
nCE
nCS
nSTATUS
CONF_DONE
nCONFIG
G
N
D
16MHZ
27MH
EXT_CLOCK0
EXT_CLOCK1
EXT_CLOCK2
EXT_CLOCK3
EXT_CLOCK4
EXT_CLOCK5
79_I/O
86_I/O
87_I/O
92_I/O
93_I/O
94_I/O
96_I/O
97_I/O
76_N_OE
75_T/R
47_T/R
48_N_OE
51_I/O
52_I/O
53_I/O
55_I/O
57_I/O
58_I/O
59_I/O
60_I/O
63_T/R
64_N_OE
65_I/O
67_I/O
69_I/O
70_I/O
71_I/O
72_I/O
73_I/O
74_I/O
42_m_I
43_m_I
44_m_I
45_m_I
40_m_T/R
41_m_N_OE
24_m_T/R
25_m_N_OE
28_m_I
30_m_I
31_m_I
32_m_I
125_m_T/R
126_m_I
129_m_I
132_m_I
133_m_I
134_m_I
135_m_I
136_m_I
137_m_I
139_m_T/R
141_m_N_OE
142_m_I
143_m_I
144_m_I
3_m_I
4_m_I
7_m_I
8_m_I
9_m_I
1
2
MSEL1
10mH
L
1
Inductor
Iron
10mH
L
2
Inductor
Iron
1
0
0
n
F
C43
Cap
Semi
1
0
0
n
F
C44
Cap
Semi
G
N
D
G
N
D
F_UART_TXD
F_UART_RXD
+3V3
+3V3
+3V3
+3V3
+3V3
+3V3
+3V3
+3V3
+3V3
+3V3
+3V3
+3V3
+3V3
+1V2
+1V2
+1V2
99_USB0
100_USB1
101_USB2
103_USB3
104_USB4
42_m_I
43_m_I
44_m_I
45_m_I
112_USB5
113_USB6
114_USB7
115_USB_RD#
118_USB_WR
119_USB_TXE#
120_USB_RXF
3_m_I
4_m_I
7_m_I
8_m_I
9_m_I
24_m_T/R
25_m_N_OE
28_m_I
30_m_I
31_m_I
32_m_I
F_UART_TXD
F_UART_RXD
125_m_T/R
126_m_I
129_m_I
132_m_I
133_m_I
134_m_I
135_m_I
136_m_I
137_m_I
139_m_T/R
141_m_N_OE
142_m_I
143_m_I
144_m_I
40_m_T/R
41_m_N_OE
27MH
16MHZ
EXT_CLOCK0
EXT_CLOCK5
EXT_CLOCK1
EXT_CLOCK4
EXT_CLOCK2
EXT_CLOCK3
1
0
0
n
F
C42_1
Cap
Semi
G
N
D
 Power board:
 Main board:

More Related Content

What's hot

PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSPIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSVISHNU KP
 
Stepper motor movement design based on FPGA
Stepper motor movement design based on FPGA  Stepper motor movement design based on FPGA
Stepper motor movement design based on FPGA IJECEIAES
 
Tutorial dec0604(print24) Programming a PIC
Tutorial dec0604(print24) Programming a PICTutorial dec0604(print24) Programming a PIC
Tutorial dec0604(print24) Programming a PICMuhammad Khan
 
Fpga optimus main_print
Fpga optimus  main_printFpga optimus  main_print
Fpga optimus main_printSushant Burde
 
Programmable Hardware - An Overview
Programmable Hardware - An OverviewProgrammable Hardware - An Overview
Programmable Hardware - An OverviewS Yousuf Imam
 
Pic 16f877 a
Pic 16f877 aPic 16f877 a
Pic 16f877 abmsjh
 
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerAmandeep Alag
 
FPGA TECHNOLOGY AND FAMILIES
FPGA TECHNOLOGY AND FAMILIESFPGA TECHNOLOGY AND FAMILIES
FPGA TECHNOLOGY AND FAMILIESrevathilakshmi2
 
Ladder logic fundamentals plc tutorial
Ladder logic fundamentals plc tutorialLadder logic fundamentals plc tutorial
Ladder logic fundamentals plc tutorialMavuri Malleswara Rao
 
Delta ia plc-dvp_tp_c_en_20160922
Delta ia plc-dvp_tp_c_en_20160922Delta ia plc-dvp_tp_c_en_20160922
Delta ia plc-dvp_tp_c_en_20160922truongnhan1985
 
FPGAs : An Overview
FPGAs : An OverviewFPGAs : An Overview
FPGAs : An OverviewSanjiv Malik
 
Implementation of Soft-core processor on FPGA (Final Presentation)
Implementation of Soft-core processor on FPGA (Final Presentation)Implementation of Soft-core processor on FPGA (Final Presentation)
Implementation of Soft-core processor on FPGA (Final Presentation)Deepak Kumar
 

What's hot (20)

PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSPIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
 
Fpg as 11 body
Fpg as 11 bodyFpg as 11 body
Fpg as 11 body
 
Stepper motor movement design based on FPGA
Stepper motor movement design based on FPGA  Stepper motor movement design based on FPGA
Stepper motor movement design based on FPGA
 
Tutorial dec0604(print24) Programming a PIC
Tutorial dec0604(print24) Programming a PICTutorial dec0604(print24) Programming a PIC
Tutorial dec0604(print24) Programming a PIC
 
Fpga optimus main_print
Fpga optimus  main_printFpga optimus  main_print
Fpga optimus main_print
 
Programmable Hardware - An Overview
Programmable Hardware - An OverviewProgrammable Hardware - An Overview
Programmable Hardware - An Overview
 
Pic 16f877 a
Pic 16f877 aPic 16f877 a
Pic 16f877 a
 
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontroller
 
FPGA TECHNOLOGY AND FAMILIES
FPGA TECHNOLOGY AND FAMILIESFPGA TECHNOLOGY AND FAMILIES
FPGA TECHNOLOGY AND FAMILIES
 
AT89 S52
AT89 S52AT89 S52
AT89 S52
 
PLC Basics
PLC BasicsPLC Basics
PLC Basics
 
89s52 2
89s52 289s52 2
89s52 2
 
Ladder logic fundamentals plc tutorial
Ladder logic fundamentals plc tutorialLadder logic fundamentals plc tutorial
Ladder logic fundamentals plc tutorial
 
FPGA Introduction
FPGA IntroductionFPGA Introduction
FPGA Introduction
 
Delta ia plc-dvp_tp_c_en_20160922
Delta ia plc-dvp_tp_c_en_20160922Delta ia plc-dvp_tp_c_en_20160922
Delta ia plc-dvp_tp_c_en_20160922
 
FPGAs : An Overview
FPGAs : An OverviewFPGAs : An Overview
FPGAs : An Overview
 
An introdution to MPLAB
An introdution to MPLABAn introdution to MPLAB
An introdution to MPLAB
 
Implementation of Soft-core processor on FPGA (Final Presentation)
Implementation of Soft-core processor on FPGA (Final Presentation)Implementation of Soft-core processor on FPGA (Final Presentation)
Implementation of Soft-core processor on FPGA (Final Presentation)
 
At89s52
At89s52At89s52
At89s52
 
SoC FPGA Technology
SoC FPGA TechnologySoC FPGA Technology
SoC FPGA Technology
 

Similar to payan1

FPGA Board (Xilinx Arty A7 -35 T) User Guide.pdf
FPGA Board (Xilinx Arty A7 -35 T) User Guide.pdfFPGA Board (Xilinx Arty A7 -35 T) User Guide.pdf
FPGA Board (Xilinx Arty A7 -35 T) User Guide.pdfssuser6a66ac2
 
Altera UP2 Education Kit Manual
Altera UP2 Education Kit ManualAltera UP2 Education Kit Manual
Altera UP2 Education Kit ManualScott Donald
 
Industrial Automation EMERSON EDUARDO RODRIGUES
Industrial Automation EMERSON EDUARDO RODRIGUESIndustrial Automation EMERSON EDUARDO RODRIGUES
Industrial Automation EMERSON EDUARDO RODRIGUESEMERSON EDUARDO RODRIGUES
 
Part 3 block diagram of PLC.
Part 3 block diagram of PLC.Part 3 block diagram of PLC.
Part 3 block diagram of PLC.KuldeepMakwana6
 
Field programable gate array
Field programable gate arrayField programable gate array
Field programable gate arrayNeha Agarwal
 
programmable logical controller(PLC)
programmable logical controller(PLC)programmable logical controller(PLC)
programmable logical controller(PLC)hemadri sharma
 
Introduction_to_Mechatronics_Chapter67.pdf
Introduction_to_Mechatronics_Chapter67.pdfIntroduction_to_Mechatronics_Chapter67.pdf
Introduction_to_Mechatronics_Chapter67.pdfBereket Walle
 
Everything about PLC programming Practical lessons on PLC EMERSON EDUARDO ROD...
Everything about PLC programming Practical lessons on PLC EMERSON EDUARDO ROD...Everything about PLC programming Practical lessons on PLC EMERSON EDUARDO ROD...
Everything about PLC programming Practical lessons on PLC EMERSON EDUARDO ROD...EMERSON EDUARDO RODRIGUES
 
Everything about PLC programming Practical lessons on PLC EMERSON EDUARDO RO...
Everything about PLC programming Practical lessons on PLC  EMERSON EDUARDO RO...Everything about PLC programming Practical lessons on PLC  EMERSON EDUARDO RO...
Everything about PLC programming Practical lessons on PLC EMERSON EDUARDO RO...EMERSON EDUARDO RODRIGUES
 
PLC Introduction Details
PLC Introduction DetailsPLC Introduction Details
PLC Introduction Detailssuhaskhadake
 
Programmable logic controller (plc)
Programmable logic controller (plc)Programmable logic controller (plc)
Programmable logic controller (plc)Ujjwal Choubey
 
Fpga architectures and applications
Fpga architectures and applicationsFpga architectures and applications
Fpga architectures and applicationsSudhanshu Janwadkar
 
FPGA Architecture and application
FPGA Architecture and application FPGA Architecture and application
FPGA Architecture and application ADARSHJKALATHIL
 
Summer Internship Report For PLC Programming of Traffic light through Ladder ...
Summer Internship Report For PLC Programming of Traffic light through Ladder ...Summer Internship Report For PLC Programming of Traffic light through Ladder ...
Summer Internship Report For PLC Programming of Traffic light through Ladder ...Aman Gupta
 

Similar to payan1 (20)

FPGA Board (Xilinx Arty A7 -35 T) User Guide.pdf
FPGA Board (Xilinx Arty A7 -35 T) User Guide.pdfFPGA Board (Xilinx Arty A7 -35 T) User Guide.pdf
FPGA Board (Xilinx Arty A7 -35 T) User Guide.pdf
 
Altera UP2 Education Kit Manual
Altera UP2 Education Kit ManualAltera UP2 Education Kit Manual
Altera UP2 Education Kit Manual
 
PLC-converted.pdf
PLC-converted.pdfPLC-converted.pdf
PLC-converted.pdf
 
Industrial Automation EMERSON EDUARDO RODRIGUES
Industrial Automation EMERSON EDUARDO RODRIGUESIndustrial Automation EMERSON EDUARDO RODRIGUES
Industrial Automation EMERSON EDUARDO RODRIGUES
 
Part 3 block diagram of PLC.
Part 3 block diagram of PLC.Part 3 block diagram of PLC.
Part 3 block diagram of PLC.
 
Field programable gate array
Field programable gate arrayField programable gate array
Field programable gate array
 
Nexys2 rm
Nexys2 rmNexys2 rm
Nexys2 rm
 
Dr.D.RUKMANIDEVI PPT.ppt
Dr.D.RUKMANIDEVI PPT.pptDr.D.RUKMANIDEVI PPT.ppt
Dr.D.RUKMANIDEVI PPT.ppt
 
programmable logical controller(PLC)
programmable logical controller(PLC)programmable logical controller(PLC)
programmable logical controller(PLC)
 
Introduction_to_Mechatronics_Chapter67.pdf
Introduction_to_Mechatronics_Chapter67.pdfIntroduction_to_Mechatronics_Chapter67.pdf
Introduction_to_Mechatronics_Chapter67.pdf
 
n5acb0f1c011fb.pdf
n5acb0f1c011fb.pdfn5acb0f1c011fb.pdf
n5acb0f1c011fb.pdf
 
Plc 131022133632-phpapp02
Plc 131022133632-phpapp02Plc 131022133632-phpapp02
Plc 131022133632-phpapp02
 
Everything about PLC programming Practical lessons on PLC EMERSON EDUARDO ROD...
Everything about PLC programming Practical lessons on PLC EMERSON EDUARDO ROD...Everything about PLC programming Practical lessons on PLC EMERSON EDUARDO ROD...
Everything about PLC programming Practical lessons on PLC EMERSON EDUARDO ROD...
 
Everything about PLC programming Practical lessons on PLC EMERSON EDUARDO RO...
Everything about PLC programming Practical lessons on PLC  EMERSON EDUARDO RO...Everything about PLC programming Practical lessons on PLC  EMERSON EDUARDO RO...
Everything about PLC programming Practical lessons on PLC EMERSON EDUARDO RO...
 
PLC Introduction Details
PLC Introduction DetailsPLC Introduction Details
PLC Introduction Details
 
Programmable logic controller (plc)
Programmable logic controller (plc)Programmable logic controller (plc)
Programmable logic controller (plc)
 
Fpga architectures and applications
Fpga architectures and applicationsFpga architectures and applications
Fpga architectures and applications
 
FPGA Architecture and application
FPGA Architecture and application FPGA Architecture and application
FPGA Architecture and application
 
Summer Internship Report For PLC Programming of Traffic light through Ladder ...
Summer Internship Report For PLC Programming of Traffic light through Ladder ...Summer Internship Report For PLC Programming of Traffic light through Ladder ...
Summer Internship Report For PLC Programming of Traffic light through Ladder ...
 
Cpld fpga
Cpld fpgaCpld fpga
Cpld fpga
 

More from Mojtaba Hajimiri

More from Mojtaba Hajimiri (9)

brief explanation on my MSc Thesis
brief explanation on my MSc Thesisbrief explanation on my MSc Thesis
brief explanation on my MSc Thesis
 
hmi.Hajimiri.Ahmadi
hmi.Hajimiri.Ahmadihmi.Hajimiri.Ahmadi
hmi.Hajimiri.Ahmadi
 
hmi.Hajimiri.Ahmadi
hmi.Hajimiri.Ahmadihmi.Hajimiri.Ahmadi
hmi.Hajimiri.Ahmadi
 
report
reportreport
report
 
final_robotic_roject_with mov
final_robotic_roject_with movfinal_robotic_roject_with mov
final_robotic_roject_with mov
 
final robotic project with appendix
final robotic project with appendixfinal robotic project with appendix
final robotic project with appendix
 
Labview front panel
Labview front panelLabview front panel
Labview front panel
 
main
mainmain
main
 
ladder plc
ladder plcladder plc
ladder plc
 

payan1