Differences

This shows you the differences between two versions of the page.

Link to this comparison view

pm:prj2026:jan.vaduva:mihai.paunescu1801 [2026/05/22 19:15]
mihai.paunescu1801
pm:prj2026:jan.vaduva:mihai.paunescu1801 [2026/05/22 20:01] (current)
mihai.paunescu1801
Line 456: Line 456:
   * PIN confirmation mismatch   * PIN confirmation mismatch
   * EEPROM PIN persistence after restart   * EEPROM PIN persistence after restart
 +
 +==== Sensor Calibration ====
 +
 +The project does not use analog sensors that require numerical calibration,​ such as temperature,​ light or distance sensors. However, the RFID reader and keypad required practical validation and calibration.
 +
 +For the RFID module, I tested the reading distance and the orientation of the RFID cards. The card was placed at different distances and angles from the RC522 reader in order to determine a position where the UID is read consistently. The final placement of the RFID reader was chosen so that the card can be scanned reliably without requiring physical contact with the module.
 +
 +The authorized RFID cards were calibrated through an enrollment-like process. Each card was scanned, and its UID was printed through UART. After that, the UID values were added in the program as authorized cards. During operation, every scanned UID is compared with these stored values.
 +
 +For the keypad, calibration consisted of verifying that each physical key corresponds to the correct character in the software matrix. I used UART debug messages to print every pressed key and checked that the detected values matched the real keypad layout.
 +
 +The keypad also required debounce handling. A short delay is used after detecting and releasing a key, so that a single physical press is not interpreted as multiple presses.
 +
 +For the electromagnetic lock, I tested the activation time and selected a duration long enough for the locker to be opened, but short enough to avoid keeping the solenoid powered unnecessarily.
  
 ==== Optimizations ==== ==== Optimizations ====
Line 505: Line 519:
 ==== Demo Video ==== ==== Demo Video ====
  
 +The first demo video presents the main functionality of the Smart Locker system.
 +
 +In this video, I first demonstrate the normal unlocking flow. The locker starts in the initial state and waits for an RFID card. After scanning an authorized RFID card, the system asks for the PIN code. When the correct PIN is entered, the electromagnetic lock is activated, the green LED turns on, the buzzer gives a success sound and the OLED display shows that the locker is unlocked.
 +
 +The video also demonstrates the PIN change functionality. This mode is entered by pressing the D key. After that, the system asks for an authorized RFID card, then for the old PIN code. If the old PIN is correct, the user enters a new PIN and then confirms it. If the confirmation matches, the new PIN is saved and the display shows that the PIN was successfully changed.
 +
 +At the end of the demo, I confirm that the PIN was changed successfully by using the new PIN for authentication.
 +
 +[[https://​drive.google.com/​file/​d/​1yjfFrMsylPaND1jU6PLwlV5uNAcqbV_M/​view?​usp=sharing|Smart Locker Main Demo]]
 +
 +The second demo video presents the security warning mechanism. After three consecutive wrong PIN attempts, the system activates the alarm behavior using the buzzer and red LED, then blocks access for a short waiting period.
 +
 +[[https://​drive.google.com/​file/​d/​1yvxkDKo3Rw6DNS0Kf5T5cH0UWKtEfO21/​view?​usp=sharing|Smart Locker Alarm and Lockout Demo]]
  
 ===== References ===== ===== References =====
pm/prj2026/jan.vaduva/mihai.paunescu1801.txt · Last modified: 2026/05/22 20:01 by mihai.paunescu1801
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0