Professional Documents
Culture Documents
Assignment
Trimester 1, 2017/2018
2
General Information
IMPORTANT DATES:
• Each group must submit the name, student ID & email address of all
group members to Madam Miskiah at Microprocessor Lab (AR2006,
FOE Building) by 4pm, 25 July 2017.
• Students without groups by 28 July 2017 will be deemed as failing the
assignment.
• Interim assessment: Basic system demonstration (Week 10)
• Report submission: (4pm, 25 Sep 2017)
• Final demonstration with Q&A: (between 27 and 29 Sep 2017)
• NOTE :
➢ Excuses will not be attended and marks will be deducted for late submission or not
attending presentation.
➢ Exact date and time for demonstrations will be announced later.
3
Problem Statement
✓ Finding available parking space is a persistent problem
especially in the urban areas.
✓ To overcome this problem, numerous parking space
information systems have been deployed to inform the
drivers on the availability of parking spaces
✓ As the information is usually displayed at the entrance
or inside the parking zones, it is usually too late for the
drivers as they are already arriving at the parking
zones.
✓ As a result, the drivers have to either wait for parking
spaces at the car park or they have to go to other
parking zones which may still leads to the same
problem.
4
Objectives
✓ To design and develop a working prototype (hardware
and software) of an 8051 microcontroller based parking
space information system to provide drivers with a real-
time indication of available parking spaces at multiple
zones of parking area.
✓ Apply and integrate the microcontroller & interfacing
principles taught in ECE2216.
✓ Gain experience of assembly language programming &
hardware construction.
✓ Appreciate the importance of coordinated teamwork
and project management.
✓ Appreciate the nature of systems design.
5
Operations
▪ The system should have the following:
i. 4 sensors
ii. 2 dual-digit 7-segment display
▪ There are two parking zones to be monitored:
i. Zone A has 60 parking spaces
ii. Zone B has 40 parking spaces
6
▪ A car has to pass through Zone A before it can go into Zone B.
▪ If a car has passed through Entrance A, the available parking
spaces in Zone A are reduced by 1.
▪ If a car has passed through Exit A, the available parking spaces
in Zone A are increased by 1.
▪ If a car has passed through Entrance B, the available parking
spaces are increased by 1 for Zone A and reduced by 1 for Zone
B.
▪ If a car has passed through Exit B, the available parking spaces
are increased by 1 for Zone B and reduced by 1 for Zone A.
▪ The system is connected to a computer via serial communication
(UART)
▪ When a car has passed through any of the entrances or exits
(detected by sensors), the system will update and display the
available parking spaces in both zones on the 7-seg displays
▪ It will also send this data to the computer which will then be
published on the Internet via dweet.io and freeboard.io
7
Project activities
• Hardware design and construction :
✓8051 microcontroller (AT89S51 or AT89S52 is recommended)
✓Push-button (micro-tact switch)
✓2N2222 Transistor
✓Dual-digit 7-segment display
✓Optical sensor
✓LM7805 voltage regulator
✓Resistors
✓Capacitors
✓etc.
Notes:
• Buy your own components.
• AT89S51/52 programmers are available at Microprocessor Lab.
8
Project activities
• Software development
Basic operations:
✓ Detect car at entrances and exits.
✓ Display the updated available parking spaces.
✓ Send the available parking spaces to the computer via
UART
Additional features:
✓ Additional parking zones
✓ Boom barriers
✓ etc
9
Project activities
10
Assessment Scheme
(30 marks)
Report: 20 %
Individual Assessment: 10%
Interim Assessment: 15%
Basic requirement (hardware & software) : 30 %
Additional features (hardware & software) : 15 %
Q&A and team-work: 10%
**Total: 100 %
Note:
➢ 10% (per day) will be deducted out of the total 100% for any late
submission for report or demonstration.
➢ 16% deduction for no basic demonstration on the designated date.
11
Individual Assessment
12
Report
EVERYONE must submit a hardcopy report. The report should be the same for all
members from the same assignment group. It must contain the following items:
• Name, student ID and major of the student submitting the report (cover)
• Name, student ID and major of the remaining group members (cover)
• Subject code and title of assignment (cover)
• Discussion of the developed system (basic & advanced features)
• Hardware block diagram & electrical schematic diagrams
• Flow chart to describe the assembly program
• Bill of materials (list of hardware components & their price)
• Conclusion (achievement, limitations & suggestion for future works)
• Minutes of at least 3 face-to-face meeting (dates, times, places, attendees, a
summary of discussions during each meeting)
• ONE page per group member, individually authored, outlining that person’s
reflections on what he/she has contributed to the team effort and what he/she
has gained from his/her participation.
• Report should be between 10 – 15 pages of A4 paper (print on single sided,12pt
font, Times New Romans, 1.5 line spacing)
• Do not include any datasheet in the report 13
Things to Submit with Report
EACH GROUP needs to submit:
14
Hardware
• The arrangement of components and wirings should be neat.
• The prototype must have all the basic hardware listed.
• Extra marks will be given if all components are soldered on the
vero/strip board.
Software
• The program must be written in MCS-51 assembly language
• The system should be user friendly.
• System reaction must be acceptable.
• The prototype should at least consist of all the functionalities
stated in the software basic requirement.
15
Interim Assessment (week 9)
16
Additional features
✓ Additional features / functionalities will be given marks.
✓ Complexity/ creativity of the additional features will determine
how many marks to be given.
7-segment
displays
AT89S51
Sensors or
AT89S52
USB-TTL UART
Converter
18
Design Tip:
minimal connections for 8051 to run
5V
P1.0 1 40 VCC
P1.1 2 39 P0.0 (AD0)
P1.2 3 380 P0.1 (AD1)
5V P1.3 4 37 P0.2 (AD2)
P1.4 5 36 P0.3 (AD3)
P1.5 6 35 P0.4 (AD4)
100R 10uF
P1.6 7 34 P0.5 (AD5)
P1.7 8 33 P0.6 (AD6)
RESET 9 32 P0.7 (AD7)
Push
(RxD) P3.0 10 31 EA
Button 8051
(TxD) P3.1 11 30 ALEE
8K2 (INT0) P3.2 12 29 PSEN
(INT1) P3.3 13 28 P2.7 (A15)
(T0) P3.4 14 27 P2.6 (A14)
(T1) P3.5 15 26 P2.5 (A13)
(WR) P3.6 16 25 P2.4 (A12)
12MHz (RD) P3.7 17 24 P2.3 (A11)
XTAL2 18 23 P2.2 (A10)
XTAL1 19 22 P2.1 (A9)
22pF VSS 20 21 P2.0 (A8)
19
Design Tip: 9V to 5V
voltage regulation
7805
IN4002
+5V, Regulated
1 3
9V Battery
2
7805
22