How hanumanthreddykamanuru/smart-building-security-access-control-and-iot-monitoring-system works
This is LPC2129 embedded firmware for building access control and security monitoring. Its main loop waits for PIR motion, authenticates by RFID and then keypad fallback, operates the door servo, and records successful-entry timestamps. The README also describes EEPROM event storage, RTC, LCD, UART, keypad, and PIR capabilities. The shown entry log writes timestamp fields to EEPROM; source excerpts do not show EEPROM reads or an RFID-specific driver, so those relationships are limited to what the main loop and README establish.
Main entry points: main.c Access controller · delay.c Peripheral initialization · i2c_driver.c I2C bus driver · keypad_driver.c Keypad scanning
Components 15
Access workflow
- Access controller
main.c - Door servo
servo_driver.c
Inputs and authentication
- PIR motion input
main.c - RFID reader input
- Keypad scanning
keypad_driver.c
Time and event storage
- RTC timekeeping
rtc_driver.c - Event log storage
eeprom.c
Device interfaces
- I2C bus driver
i2c_driver.c - LCD status display
lcd_4bit_driver.c - UART communication
uart0_driver.c - Peripheral initialization
delay.c - Timer delays
delay.c - Firmware declarations
header.h
Other components
- Building user
- Security hardware
Connections 22
- Building user → PIR motion input: triggers
README.md - Access controller → PIR motion input: checks
main.c - Access controller → RFID reader input: reads tag
main.c - Access controller → Keypad scanning: reads fallback
main.c - Access controller → Door servo: controls
main.c - Access controller → RTC timekeeping: gets timestamp
main.c - Access controller → Event log storage: logs entry
main.c - Access controller → LCD status display: displays status
main.c - Access controller → UART communication: reports status
main.c - Peripheral initialization → UART communication: initializes
delay.c - Peripheral initialization → I2C bus driver: initializes
delay.c - Peripheral initialization → LCD status display: initializes
delay.c - Peripheral initialization → Door servo: initializes
delay.c - Peripheral initialization → Keypad scanning: initializes
delay.c - Peripheral initialization → RTC timekeeping: sets clock
delay.c - RTC timekeeping → I2C bus driver: reads and writes
rtc_driver.c - Event log storage → I2C bus driver: writes timestamp
eeprom.c - Keypad scanning → Timer delays: debounces with
keypad_driver.c - LCD status display → Timer delays: waits using
lcd_4bit_driver.c - I2C bus driver → UART communication: reports errors
i2c_driver.c - Security hardware → RFID reader input: provides tag input
README.md - Firmware declarations → Access controller: declares interfaces
header.h