Your position: Home / Sensors

Free shipping!Keyestudio Vibration Sensor Module for arduino

KS0037
Price:
Wholesale:
5+
$2.38
    Please select the information you wantX
Quantity:
-
+
(941 available)
Shipping Cost:
to
Estimated Delivery Time:
Please select the country you want to ship from
  • Description
  • Reviews(65)
KS0037 (1) KS0037 (2) KS0037 (3) KS0037 (4) KS0037 (5) KS0037 (6)
Introduction
 
What's the simplest way to check vibration with Aduino? Well, use a vibration sensor from keyestudio. You can directly plug it on our sensor Shield V5, vibrate this sensor, and Aduino can receive a digital signal, making it easy to make computation and programs in Aduino.
 
Despite its simplicity, you can make full use of it with creative thinking, step counting, and crash warning light etc.
 
Specification
  • IO Type: Digital
  • Supply Voltage: 3.3V to 5V
Sample code:
#define SensorLED 13
#define SensorINPUT 3 //Connect the sensor to digital Pin 3 which is Interrupts 1.
unsigned char state = 0;
void setup()
{
pinMode(SensorLED, OUTPUT);
pinMode(SensorINPUT, INPUT);
attachInterrupt(1, blink, FALLING);// Trigger the blink function when the falling edge is detected
}
void loop()
{ if(state!=0)
{
state = 0;
digitalWrite(SensorLED,HIGH);
delay(500);
}
else
digitalWrite(SensorLED,LOW);
}
void blink()//Interrupts function
{ state++;
}
 
See product video: https://youtu.be/x0Zhf5AnzK4

 

Average rating: 4.0 based on 65 reviews
Share your thoughts with other customers
Write a review
Product reviews can be carried out after the member login, please click here to login