You are on page 1of 22

ECE2216

Microcontroller and Microprocessor Systems

Assignment
Trimester 1, 2017/2018

Connected Parking Space Information


System
General Information

• Group assignment (4 - 5 students per group)


• Each group should elect a capable leader
• Deliverables:
i. Basic system demonstration with Q&A (group)
ii. Final system demonstration with Q&A (group)
iii. Printed source code (group)
iv. CD/DVD with report, video & source codes(group)
v. Printed report (individual)

• Assessment Marks : 30%

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

• Report Writing, Video and Demonstrations


✓ Technical report
✓ Video (showcasing the basic & advanced features)
✓ Demonstration on system functionality & features

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

✓ Workload must be distributed equally among team members


✓ Each team member will be assessed during presentation based
on their workload.
✓ Non-technical aspect (e.g. report writing) would not be
considered as a contribution.

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:

1. One CD/DVD containing the video (demonstrating the developed


system), full source codes and editable final report of group members.
2. One print-out of the full source codes. Comment the important lines.
(print on double-sided,10pt font, Courier New, 1.0 line spacing)
The number of pages for the source code is excluded in the number of
pages specified for the report.
3. The items above must be submitted together with the report. Hence, all
group members must submit their reports at the same time.

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)

✓ In this assessment, each group is required to demonstrate the


following minimum functionality:
i. When an object is detected by the sensor, the 7-segment
display will turn on.
ii. When no object is detected, the 7-segment display will turn
off.

16
Additional features
✓ Additional features / functionalities will be given marks.
✓ Complexity/ creativity of the additional features will determine
how many marks to be given.

Final demonstration (Week 13)


• All group members must be present during presentation.
• Brief presentation (oral) should be given to describe the work
done.
• Demonstrate the functionality of the prototype and attend to the
Q&A.
• Most importantly, the prototype should work!
17
17
Functional Block Diagram
DC adapter
5V voltage
or
regulator
batteries

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

10uF 0.1uF 10uF 0.1uF

7805

DC socket Diode Capacitor


20
Design Tip: Part List
No Items Qty
1 Crystal 11.0592MHz 1
2 Micro tact switch 1
3 1k 9-way resistor network 1
4 100 1
5 8.2K 1
6 22pF 2
7 0.1uF 2
8 10uF 3
9 7805 1
10 AT89S51 or AT89S52 1
11 Breadboard 2
12 Duo-digit 7-segment display 2
13 1.5k 4
14 2N2222 transistor 5
15 TCRT5000 optical sensor 4
16 CP2102 USB-TTL UART Converter 1 21
END

22

You might also like