============================================================
MotoSecure – Smart Bike Lock System
============================================================
MotoSecure is a smart bike security system using fingerprint authentication,
mobile app control, theft detection and ignition control built using ESP32,
R307 sensor, ADXL345 accelerometer and Blynk IoT.
============================================================
Project Features
============================================================
Fingerprint unlocking
- Unlocks bike only for authorized fingerprints
- Unauthorized attempt triggers error sound
Mobile app ignition control
- Lock or unlock the bike through Blynk app
- Shows rider identity and bike status
Auto lock timer
- Unlocks bike for a selected duration
- Automatically re-locks after time expires
Anti-theft movement detection
- Detects vibration and movement while bike is locked
- Repeated motion activates alarm
Smart WiFi functionality
- Auto connects and reconnects to WiFi
- System still runs offline
Sound feedback system
- Success beeps
- Error tone
- Lock tone
- Theft alarm pattern
Relay ignition control
- Relay controls bike ignition line
- Default state is locked when powered on
Layered security model
- Fingerprint
- Cloud control
- Timer based unlock
- Motion detection
============================================================
Hardware Components
============================================================
ESP32 development board
R307 fingerprint sensor
ADXL345 accelerometer sensor
Relay module
Buzzer module
Blynk IoT mobile app
============================================================
Pin Mapping (ESP32)
============================================================
Buzzer -> GPIO 18
Relay -> GPIO 5
Fingerprint RX -> GPIO 16
Fingerprint TX -> GPIO 17
============================================================
Blynk App Virtual Pins
============================================================
V0 -> Rider identity or status
V1 -> Lock/unlock status
V2 -> Manual unlock/lock
V3 -> Anti-theft enable/disable
V4 -> Alarm control
V5 -> Unlock timer duration
V6 -> Remaining timer feedback
============================================================
System Logic Summary
============================================================
Fingerprint valid -> Unlock ignition
Fingerprint invalid -> Play error tone
App unlock -> Unlock ignition
Timer unlock -> Unlock for set minutes -> auto re-lock
Movement detected while locked -> Theft alarm
============================================================
Folder Structure
============================================================
MotoSecure/ │ ├── src/ │ └── MotoSecure.ino │ ├── docs/ │ ├── circuit_diagram.png │ ├── flowchart.png │ └── block_diagram.png │ ├── images/ │ ├── prototype.jpg │ └── app_ui.png │ ├── README.md ├── LICENSE └── .gitignore
============================================================
Setup Instructions
============================================================
-
Assemble hardware and connections
-
Upload program into ESP32
-
Configure Blynk template and widget pins
-
Enroll fingerprints
-
Install relay in bike ignition circuit
-
Test fingerprint unlock, app unlock, timer unlock and movement detection
============================================================
License – Apache 2.0
============================================================
This project is licensed under **Apache License 2.0**.
You may use, modify, or distribute this project commercially or privately,
but **proper credit to the original author (Sammed)** is required.
Full license text is available in the LICENSE file.
© 2025 Sammed. All rights reserved under Apache 2.0 terms.
============================================================
Author
============================================================
Developed by ~Sammed 101
Smart IoT & Embedded Systems (2025)
============================================================
End of Document
============================================================