2217

All programs should be associated with appropriate flowcharts and comments, marks will be given
to the explanations of your algorithms and program. All programs should be made to work on the
provided CQU PIC Development board and the sensor/actuator board.
All programs must be developed in MPLABX IDE with MCC18 C compiler. You should use
CQU_LCD_Ver2.h or CQU_LCD_Ver3.h without any modification to them. Your own header files for
the LCD display are not allowed for this assessment. No Assembly Language subroutines are allowed.
You can attach screenshots of running program as well.
Q1. (100marks)
(a) Write a program to read a 6-digit password from the sensor board keypad and validate it.
Should display a welcome or error message on LCD depending on the password entered.
(Every student must provide the correct 6-digit password to test. If not provided, it will be
considered as a non-working program)
(50/100 marks)
(b) Write a program to measure the distance from the on board ultrasonic sensor(of the
sensor and actuator board) to an obstacle in front of it and display the distance in
centimetres on your computer display every time when you press S2 on PIC development
board. (hint: you need to connect PIC board and your laptop using the USB to RS232 cable)
(50/100 marks)

Attachments:

ENEX-20001-T2….pdf