Getting Started with Vibration Sensor Module (Normally Off) (SN-VIBRATE-MOD)

This vibration sensor module is compatible with any microcontroller that has digital input. Of course popular microcontroller such and PIC, Arduino, Raspberry Pi is compatible. Direct interface is essential to use this sensor. This tutorial will show you the basic operation of how to use this sensor. with Arduino

Last Updated on 23 June 2017

This article is written by internship student Tan Khim Huang


INTRODUCTION

Vibration Sensor Module comes with SW-420 vibration sensor, integrated with adjustable sensitivity via on board potentiometer. There are also LED indicators for power and the digital output status on board. It has a simple and straight forward 3-pin interface, VCC, GND and the DO (digital output). It supports 3.3V or 5V power.

This vibration sensor module is compatible with any microcontroller that has a digital input, so of course any popular microcontroller such and PIC, Arduino and Raspberry Pi are compatible. A direct interface is essential to using this sensor.

The DO pin will be LOW when there is no vibration, and indicator LED will lit up.

FEATURES

  • The default state of the switch is close
  • Digital output
  • Supply voltage: 3.3V to 5V
  • On-board indicator LED to shows the results
  • On-board LM393 chip
  • Dimension of the board: 3.2cm x 1.4cm

HARDWARE REQUIREMENT

This tutorial is required the following items:

SOFTWARE REQUIREMENT

Arduino IDE

HARDWARE SETUP

Here are the connections between the Vibration Sensor Module and the Arduino/CT-UNO:

Vibration Sensor ModuleArduino Uno/CT-UNO
VCCVCC
GNDGND
DOPIN 3

Connect the LED to Arduino this way:

ARDUINO GND – Negative terminal of LED
ARDUINO PIN 13 – Positive terminal of LED

SAMPLE CODE

int LED_Pin = 13;
int vibr_Pin =3;

void setup(){
  pinMode(LED_Pin, OUTPUT);
  pinMode(vibr_Pin, INPUT); //set vibr_Pin input for measurment
  Serial.begin(9600); //init serial 9600
 // Serial.println("----------------------Vibration demo------------------------");
}
void loop(){
  long measurement =TP_init();
  delay(50);
 // Serial.print("measurment = ");
  Serial.println(measurement);
  if (measurement > 1000){
    digitalWrite(LED_Pin, HIGH);
  }
  else{
    digitalWrite(LED_Pin, LOW); 
  }
}
long TP_init(){
  delay(10);
  long measurement=pulseIn (vibr_Pin, HIGH);  //wait for the pin to get HIGH and returns measurement
  return measurement;
}

REFERENCES

VIDEO

Note: For further inquiry, please visit our technical forum as we seldom check the comment here. ?

1 thought on “Getting Started with Vibration Sensor Module (Normally Off) (SN-VIBRATE-MOD)”

  1. Hey I was trying to use CT UNO communication between Wireless Vibration sensor https://store.ncd.io/product/iot-long-range-wireless-vibration-and-temperature-sensor/ which has Wireless PAN module for secure network and by using Lora gateway for cellular internet services I am thinking to connect CT UNO with AWS cloud but after few days of hardworking we are still trying to do same thing again but progress.

    So It would be helpful for me If someone give expertise suggestion to implement this kind of solution

Leave a Comment

Your email address will not be published.

Share this Tutorial

Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest
Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest

Latest Tutorail

Display Temperature and Humidity on OLED using DHT22 and Arduino
Getting Started With Teensy Using Arduino IDE
Night Light
Arduino Device Tracker Using GSM GPS SIM7600E Module
Chocolate Box with Touch Sensor and Arduino
Scroll to Top