You are on page 1of 7

HANOI UNIVERSITY OF SCIENCE AND TECHNOLOGY

School of Electrical Engineering


***

Topic: Rolling door System

Lecture : MR. LÊ HẢI SÂM

Student : Đỗ Tuấn Khanh 20176590

Subject : Digital System Design EE3756


Class code : 12309 –

Hanoi, 10 June 2021


.
Contents
Introduction ........................................................................................................................... 2
Chapter 1: Project Motivations ........................................................................................... 3
Chapter 2: Requirements and specification of the system ................................................ 3
2.1. Requirements of the system: ..................................................................................... 3
2.2. Specifications of the system: ...................................................................................... 3
Chapter 3: Designing procedure .......................................................................................... 4
3.1. Hardware connection explanation: .......................................................................... 4
3.2. Hardware designing procedure: ............................................................................... 4
3.3. Software designing procedure: ................................................................................. 5
Chapter 4: Results and conclusions ..................................................................................... 7

Introduction
In this project, I will show a simple rolling door system on FPGA by using knowledge in
Digital system design. The system will be a simulation of real system to control the operation
of rolling door , which will be implemented on Zedboard. Result of the project is a program
can be imported to a Zedboard FPGA, we can see the operation of button and leds to know how
does it work . The project is implemented by using VHDL language, Vivado program, and SDK
program.

The report is a summary of my working process through completing the project. The report
contains four main part. The first part is the project motivations. Next is requirements and
specifications of the digital system. The third is designing procedure, include both Hardware
and software designing process. Also in this chapter, the explanation of how the system works
and how to control the system will be shown. Finally, I will have some comments and
conclusions on the result of my project. These conclusions include what I have done, what is
left for the system to be improved.

This project although not too complex , so I think it is a good exercise to practice and cover
what I have learnt in the subject.

2
Chapter 1: Project Motivations
Digital system design is a useful and important subject for an engineer. This course deals
with principles of complex digital system design by means of development environments,
which allow design automation based on hardware description languages. The different
modelling levels and approaches to digital system design are considered based on complex
digital components. Digital system design also provides several advantages as: It is cheaper
and easier to design, easier to store, transmit and manipulate information, devices become
smaller and faster.
Rolling door is very popular in the real life but to design real product very difficult
instead I will simulate the operation of rolling door by using a digital system on Zedboard.
Almost feature of this system can be represent by operation of leds and button on board.

Chapter 2: Requirements and specification


of the system
2.1. Requirements of the system:
For evaluation of the final product of project, we need some ground requirements for the
system :
• Board : Zedboard Evaluation
• Input : button on board
• Output : 8 leds on board and 2 leds connect with Pmod JA
• It should simulate the working principle of a real rolling door system
• The program should be execute in VHDL, using Vivado and SDK.

2.2. Specifications of the system:


Along with requirements, the overall design of the system in brain storming step give
some specifications for the system, which will determine how the system be implemented
in the detail designing step:
• The system will be implemented on Zynq Zedboard
• Input of the system include on-board buttons. Output include onboard LEDs and
2 leds connect to Pmod .
• The hardware connection is done by using GPIO IP provided in Vivado, while
software is done in SDK.
• Use external LEDs to represent the state of motors in the system ( open door,
close door or stop )
• On-board LEDs will represent position of door

3
• Buttons on borard will represent the operation of door ( open door, close door,
stop,etc…)
• Sensor to realize when the door collision with the barrier can be represent by
press right button.

Chapter 3: Designing procedure


3.1. Hardware connection explanation:
The final system using 5buttons, 8 on-board LEDs, and 2 external LEDs for represent
motor.
Among those components, 5 buttons control state of door. The up button is open the
door, the down button is close the door, left button is lock the door, right button is warning
when the door collision with the barrier, center button is the stop door.
Next, 8 on-board LEDs are simulate the process close/open of the door. That leds operate
based on the operation of buttons. When up button is pressed all of 8 leds on board turn off
one by one , down button is pressed all of 8 leds on board turn on one by one, when center
button is pressed leds stay at the same state as before, left button is pressed other button
don’t work and press one more time for the door to get back to normal, right button is
pressed leds will blink.
The addition of 2 external LEDs is represent the operation of motor. When the door is
open the led connect with Pmod JA1 turn on, when the door close led connect with Pmod
JA2 turn on and when door finish the open or close door external connect with Pmod off.
For connection, the external leds connect with JA1 and JA2 of Pmod A
Finally when the rolling door work as usual,the opration of it work as a above
description.

3.2. Hardware designing procedure:


The project is quite similar with Lab 3: LED controller.We need to hardware design .
First, we create a new Vivado project and create a block design. From the hardware require
connection, we add the board IP Zynq Zedboard and 2 AXI GPIO IP. The first GPIO IP is
used for input signal of buttons. The second GPIO IP is used for output signal with on-
board LED and external LED.

4
After that press F6 to validate design and create the HDL wrapper, we add the constraint
for connection of external leds with Pmod pins as follow:

After finished all set up, generate the bitstream and launch SDK for software design step.

3.3. Software designing procedure:


The operation of rolling door follow some step :

 Step 1: Initialize the GPIO

 Step 2:If the door isn’t the lock status it return the status of button
which already was pressed and if the door is the lock status after that
press one more time the status change from lock to stop.

 Step 3: When the door is not locked, read input button from GPIO to
determine the operation of door

5
 Step 4: Based on the status is determined to operate suitable
controlling

 Step 5 : Update value of leds on board when door operate work ( close
door all of 8 leds turn on one by one , open door all of 8 leds turn off one
by one , ….)

6
 Step 6: Simulate operation of motor base on status of door ( when door
is opened the external leds connect with Pmod pin JA1 turn on, door
is closed the external leds connect with Pmod pin JA2 turn on after
finish open or close two leds will turn off )

Chapter 4: Results and conclusions

The result of the project is a program can be uploaded and run on FPGA Zynq Zedboard.
The program is done by using Vivado and VHDL with all system provided IP. The program
successfully simulate operation of rolling door. Characteristics that successful being
simulated are up – down operation, lock ,stop, warring feature and motors state.
The simulated of project quiet similar to the operation of real rolling door. But we can
some benefit if use the sensor and a external led instead of right button and leds on board.
So, I hope that the project can be improve to have the good application.
Among with the imperfection, the final product still a good example to practice Vivado
and VHDL and thank you Mr. LÊ HẢI SÂM help me some knowledge to complete this
project.

You might also like