How karan-nevage/electronic-safe works
This is an Arduino-based electronic safe: a user enters a code or chooses an action on the keypad, the sketch checks or updates safe state, and the servo locks or unlocks the mechanism while the LCD reports status. The README documents these interactions, and SafeState.h confirms the state API. The main sketch and hardware wiring are not sampled, so wiring details and internal call order beyond the documented workflow are not shown.
Main entry points: safe_arduino.ino Safe controller · SafeState.h SafeState
Components 9
User interface
- 4x4 Keypad
- 16x2 LCD
Safe control
- Safe controller
Using Arduino Uno/safe_arduino.ino - Code entry
Using Arduino Uno/safe_arduino.ino - Code setup
Using Arduino Uno/safe_arduino.ino - SafeState
Using Arduino Uno/lib/SafeState.h
Safe hardware
- Servo motor
- Lock mechanism
Other components
- User
Connections 12
- User → 4x4 Keypad: enters choices
- 4x4 Keypad → Safe controller: provides input
- Safe controller → Code entry: prompts for code
- Code entry → 4x4 Keypad: reads digits
- Safe controller → SafeState: checks code and state
- SafeState → Safe controller: returns result
- Safe controller → Code setup: starts code change
- Code setup → 4x4 Keypad: reads new codes
- Code setup → SafeState: sets matching code
- Safe controller → 16x2 LCD: displays prompts and status
- Safe controller → Servo motor: sets position
- Servo motor → Lock mechanism: moves mechanism