Transform any door into a smart, secure gateway with ESP32 magic!
Welcome to the future of home security! This hybrid smart lock system combines the reliability of physical keypads with the convenience of remote control, creating a seamless bridge between traditional security and modern IoT innovation.
Ever locked yourself out? Forgotten your keys? Wanted to let someone in while you're away? This smart lock system solves real problems with elegant technology:
- Never get locked out again - Remote unlock from anywhere
- No more hiding spare keys - Secure PIN-based access
- Grant temporary access - Change PINs remotely for visitors
- Peace of mind - Always know your door's status
- 4x4 Matrix Keypad - Enter your PIN like a pro
- Instant Feedback - LCD displays status, buzzer confirms actions
- Offline Operation - Works even without internet
- Next-js Web Dashboard - Beautiful, intuitive interface
- One-Click Unlock - Open your door from anywhere in the world
- Dynamic PIN Management - Update access codes on the fly
- Real-time Status - See if your door is locked or unlocked
- Servo-Powered Lock - Smooth, reliable mechanical action
- Visual Feedback - Clear LCD status messages
- Audio Alerts - Buzzer notifications for every action
- Rock-Solid Connectivity - ESP32 Wi-Fi keeps you connected
graph TB
A[π± Nextjs- Dashboard] --> B[β‘ Flask Backend]
B --> C[βοΈ PythonAnywhere Cloud]
C --> D[π Internet]
D --> E[π‘ ESP32 WiFi]
E --> F[π Servo Controlled Lock]
E --> G[β¨οΈ Keypad Input]
E --> H[πΊ LCD Display]
E --> I[π Buzzer Alert]
| Component | Role | Why It's Perfect |
|---|---|---|
| ESP32 | π§ Brain | Built-in WiFi, powerful processing, Arduino-friendly |
| 4x4 Keypad | π’ Input | Tactile, reliable, familiar interface |
| Servo Motor | πͺ Muscle | Precise control, strong torque, easy integration |
| I2C LCD | ποΈ Eyes | Clear status display, low pin usage |
| Buzzer | π Voice | Instant audio feedback, simple implementation |
| Power Supply | β‘ Heart | Stable 5V keeps everything running smooth |
Your door's digital brain that:
- Monitors keypad input continuously
- Controls the servo motor with precision
- Manages LCD display and buzzer feedback
- Maintains WiFi connection for remote commands
The command center that:
- Receives requests from your web dashboard
- Validates security credentials
- Sends commands to your ESP32
- Handles all the heavy lifting in the cloud
Your control panel that:
- Provides a beautiful, responsive web interface
- Enables one-click door control
- Manages PIN changes securely
- Shows real-time system status
βββ firmware/ # ESP32 firmware code
β βββ firmware.ino
βββ nextjs-ui/ # Web interface (Nextjs)
βββ api_server/ # PythonAnywhere API backend
| βββ test/
| | βββ one.py
| | βββ api_client.py
β βββ main.py
βββ circuit_prototyping/ # Fritzing or schematic files
βββ README.md
- PIN-based authentication
- Secure API endpoints
- Encrypted communication
- No sensitive data stored locally
- Intuitive web interface
- Instant feedback on all actions
- Clear status indicators
- Responsive design for mobile
- Clean, modular code structure
- Well-documented APIs
- Easy to extend and customize
- Open source and hackable
- Flask for lightning-fast APIs
- Render for reliable cloud hosting
- Next-Js for Web deployment
- Seamless CI/CD integration
Ready to secure your space? Jump into the installation guide and have your smart lock running in minutes!
- ESP32 development board
- Basic electronics components (see hardware list)
- Python 3.8+ for local development
- PythonAnywhere account for deployment
- Clone this repository
- Set up your hardware (wiring diagrams included)
- Deploy the API to Render
- Configure the ESP32 with your WiFi credentials
- Launch the Next-js dashboard
- Start unlocking doors like a tech wizard! π§ββοΈ
Found a bug? Have a cool feature idea? Want to add support for fingerprint sensors?
We'd love your contributions! This project thrives on community input and creative enhancements.
This project is open source and available under the MIT License. Build amazing things!
π― Ready to revolutionize your door security? Let's build the future, one smart lock at a time!