Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Manufacturing process

Master Vibration Detection with Arduino: A Simple Sensor & LED Setup

Components and supplies

Vibration Sensor Module
×1
Master Vibration Detection with Arduino: A Simple Sensor & LED Setup
Male/Female Jumper Wires
×3
Master Vibration Detection with Arduino: A Simple Sensor & LED Setup
LED (generic)
×1
Master Vibration Detection with Arduino: A Simple Sensor & LED Setup
Arduino UNO
Or Arduino Mega
×1

Apps and online services

Master Vibration Detection with Arduino: A Simple Sensor & LED Setup
Arduino IDE

About this project

In this project, we will connect Arduino with Vibration sensor and LED. When no vibration is detected, Vibration sensor output is 0 (low voltage),otherwise its output is 1(high voltage)。 If Arduino get 0 (no vibration) from vibration sensor it will turn on green LED and turn off Red LED. If Arduino get 1 from vibration sensor, it will turn on Red LED and turn off green LED.

Code

  • Vibration Sensor Module (Code)
Vibration Sensor Module (Code)Arduino
int vib_pin=7;
int led_pin=13;
void setup() {
  pinMode(vib_pin,INPUT);
  pinMode(led_pin,OUTPUT);
}

void loop() {
  int val;
  val=digitalRead(vib_pin);
  if(val==1)
  {
    digitalWrite(led_pin,HIGH);
    delay(1000);
    digitalWrite(led_pin,LOW);
    delay(1000);
   }
   else
   digitalWrite(led_pin,LOW);
}

Schematics

Master Vibration Detection with Arduino: A Simple Sensor & LED Setup

Manufacturing process

  1. Vibration Sensors: Principles, Types, and Industrial Applications
  2. How PIR Sensor Circuits Work: Design, Operation, and Real‑World Applications
  3. Understanding the Oxygen (O2) Sensor: Role, Placement, and Failure Signs
  4. Build a Robust Temperature & Sensor API on Raspberry Pi Using the GY‑91 Module
  5. Build a Raspberry Pi Home Temperature Monitor with MCP9808, InfluxDB & Grafana
  6. Emotion Sensor & EEG: Low-Cost Hardware for Real-Time Emotion Detection
  7. UnifiedWater v1 – Complete Arduino Water Quality Sensor Kit
  8. Arduino PIR Sensor Halloween Prank: Motion-Triggered Scare with LED Lights & MP3 Audio
  9. Smart 3D Printed Pet Feeder Powered by Arduino Nano
  10. SW 420 Vibration Sensor Module: Comprehensive Guide for Arduino & Security Applications