How amaljohnreddy61/smart-exam-hall works
This LPC2148 firmware manages an exam-hall session. The principal workflow is: an administrator enters through a password check, configures a duration, starts the exam, and the firmware tracks remaining minutes until it records the end time and sounds an alert. The main loop also refreshes the clock, temperature and displays; hardware interrupts provide pause/edit requests. The README documents RTC persistence, LED thresholds and interrupt-driven display refresh, but unsampled implementation details limit some links.
Main entry points: main.c Main loop and menu · exam.c Exam state and logs · rtc.c Clock and date · interrupt.c Pause/edit interrupts
Components 12
Application control
- Main loop and menu
main.c - Password check
password.c
Exam lifecycle
- Exam state and logs
exam.c
Hardware interfaces
- Clock and date
rtc.c - LM35 sampling
adc.c - Keypad scan
keypad.c - LCD display
lcd.c - Countdown display
sevenseg.c - Status LEDs
led.c - End alert
buzzer.c - Pause/edit interrupts
interrupt.c
Other components
- Hall administrator
Connections 20
- Hall administrator → Main loop and menu: uses menu
README.md - Main loop and menu → Password check: verifies password
main.c - Main loop and menu → Clock and date: reads and edits
main.c - Main loop and menu → LM35 sampling: samples temperature
main.c - Main loop and menu → Keypad scan: reads keys
main.c - Main loop and menu → LCD display: renders screens
main.c - Main loop and menu → Countdown display: refreshes display
main.c - Main loop and menu → Exam state and logs: initializes and processes
main.c - Main loop and menu → Pause/edit interrupts: initializes
main.c - Main loop and menu → Status LEDs: initializes
main.c - Main loop and menu → End alert: initializes
main.c - Exam state and logs → Clock and date: reads exam times
exam.c - Exam state and logs → Countdown display: updates countdown
exam.c - Exam state and logs → Status LEDs: sets status
exam.c - Exam state and logs → End alert: sounds at end
exam.c - Exam state and logs → LCD display: renders logs
exam.c - Clock and date → LCD display: renders edit prompts
rtc.c - Clock and date → Keypad scan: reads edit keys
rtc.c - Pause/edit interrupts → Main loop and menu: sets edit request
- Pause/edit interrupts → Exam state and logs: sets pause request