Learn how to build a smart Vibration Alert System using Arduino, HC-05 Bluetooth, and MIT App Inventor. Get real-time vibration notifications on your Android phone using this low-cost DIY project. Includes Proteus simulation, hardware setup, Arduino code, and .aia app file.
In this project tutorial, we will show you how to build a Vibration Detection and Alert System using an Arduino Uno, a vibration sensor (SW-420), the HC-05 Bluetooth module, and an Android App created using MIT App Inventor. This system detects vibrations and sends a real-time notification to your smartphone via Bluetooth.
This is an ideal project for engineering students, DIY electronics enthusiasts, and anyone interested in IoT (Internet of Things).
Project Overview
What You Will Learn:
How to simulate the vibration sensor circuit in Proteus
How to write Arduino code to detect vibration
How to connect HC-05 Bluetooth module to Arduino
How to build an Android app using MIT App Inventor
How to get real-time phone notifications for vibration
Components Used:
- Arduino Uno
- Vibration Sensor Module (SW-420)
- HC-05 Bluetooth Module
- Android Phone – Use any Android device
- 9V Battery
- USB Cable for Arduino
- Jumper Wires (Male-to-Male / Male-to-Female)
- MIT App Inventor (Free Tool) – https://appinventor.mit.edu
Circuit Diagram & Proteus Simulation
You can first simulate the circuit using Proteus to test how the vibration sensor will behave. Connect the SW-420 vibration sensor to the Arduino’s digital pin and connect the HC-05 module to the TX/RX pins.
Once simulated successfully, replicate the same on actual hardware.
Arduino Code
The Arduino code continuously checks the vibration sensor status. When vibration is detected, it sends the message "Vibration Detected" to the serial port (and HC-05), which is then picked up by the Android App.
#include <SoftwareSerial.h>
// Create SoftwareSerial on pins 10 (RX), 11 (TX)SoftwareSerial bluetooth(10, 11); // RX, TX
const int vibrationPin = 2; // Vibration sensor connected to D2const int buzzerPin = 8; // Buzzer connected to D8
bool vibrationDetected = false; // To track state
void setup() { pinMode(vibrationPin, INPUT); pinMode(buzzerPin, OUTPUT);
Serial.begin(9600); // Serial Monitor bluetooth.begin(9600); // HC-05 Bluetooth module
}
void loop() { int sensorValue = digitalRead(vibrationPin);
if (sensorValue == HIGH && !vibrationDetected) { vibrationDetected = true; digitalWrite(buzzerPin, HIGH); Serial.println("Vibration Detected"); bluetooth.print("Vibration Detected\n"); delay(500); digitalWrite(buzzerPin, LOW); delay(500); } else if (sensorValue == LOW) { vibrationDetected = false; // Reset state when no vibration }
delay(200); // Small delay for stability}
Android App using MIT App Inventor
Using MIT App Inventor, you can create a simple app that:
Connects to the HC-05 Bluetooth module
Listens for incoming messages from Arduino
Shows a pop-up alert when "Vibration Detected" is received
The .aab file and APK can be downloaded from the link below.
Download Arduino Code + Proteus File + MIT App (.aab + APK)
Applications of This Project
Home Security Systems
Tamper Detection in Machinery
Earthquake Detection Systems
Smart Lab Equipment Safety
Locker/door movement detection
Video Tutorial
Watch the full video tutorial with all steps covered including:
Proteus simulation
Real hardware setup
MIT App Inventor tutorial
Final testing and result
Watch Now on YouTube:
https://youtu.be/oI1oVC7OzYw
