DIY Bike Theft Alarm with Vibration Sensor | Easy & Affordable Security Project!

🎯 Project Overview

Goal: Create a compact, rechargeable touch alarm that activates a buzzer when someone tries to steal your bike
Level: Beginner – Intermediate
Estimated Time: 1 hour
Ideal Use: Bicycle security, vibration-triggered alert systems


🧰 Components Required

ComponentDescription
Arduino NanoMicrocontroller for logic
Vibration Sensor (SW-402)Detects motion or vibration
BuzzerSounds the alarm
LED (Optional)Visual indicator
2x 18650 Batteries + HolderPortable power source
Power Bank Module (T6845-C)Converts battery output to 5V
Plastic Enclosure BoxProtects the circuit
SwitchTurn the alarm on/off
USB CablePower connection

📥 Download Code & Diagram

  • 📁 Code & Circuit Diagram- Click Download Now Below
    (Ensure to upload the code using Arduino IDE and check the port/board settings.)


🛠️ Step-by-Step Instructions

🔌 Step 1: Connect the Components

  1. Vibration Sensor

    • VCC → 5V (Nano)

    • GND → GND

    • OUT → D2

  2. Buzzer

    • Positive → D3

    • Negative → GND

  3. LED (Optional)

    • Positive → D4

    • Negative → GND (via 220Ω resistor)

  4. Power the Nano via USB from the power bank module connected to 18650 batteries.

💡 TIP: Use a switch between the battery and power bank module to turn the system ON/OFF easily.


💻 Step 2: Upload the Arduino Code

  1. Open the Arduino IDE.

  2. Select Arduino Nano as the board.

  3. Upload the provided code.

  4. Open Serial Monitor (optional) to test sensor outputs.


🔋 Step 3: Assemble Inside a Box

  • Mount all components inside a compact plastic case.

  • Drill holes for the sensor, buzzer, and switch.

  • Secure the components with glue or double-sided tape.

  • Keep wiring tidy and safe from shorts.


🚲 Step 4: Install on Your Bicycle

  1. Attach the box under your bike seat or frame using zip ties or Velcro.

  2. Make sure the vibration sensor faces inward to detect touch or movement.

  3. Turn ON the switch to arm the alarm.

  4. If someone touches or moves your bike, the buzzer will go off instantly!


✅ Final Testing

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top