Sw 18015P Vibration Sensor Switch Tilt Sensor For Arduino
Rs. 35.00 Rs. 42.00
- Product Code: SEN-VIB
- SKU -
- Availability: In Stock
- For Bulk Order 9962060070
Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
SPECIFICATIONS:
Operating Voltage(VDC) :3.3 to 5
Shipment Weight : 0.085 kg
Shipment Dimensions :5 × 5 × 1 cm
OVERVIEW:
-Operating voltage: 3.3 to 5VDC
-Ball Rolling type of tilt sensor.
-This small module is easy to use.
-A fixed bolt hole for easy installation
-Wide voltage LM393 comparator
-₹ 99.00 (inc GST)
-₹ 83.9 (+18% GST extra)
PACKAGE INCLUDES:
1 PCS x Sw 18015P Vibration Sensor
//SOURCE CODE TAKEN FROM BELOW LINK
//https://www.instructables.com/How-to-use-a-vibration-sensor-shake-switch-Arduino/
/* Vibration Sensor (Shake Switch) - Testing with buzzer
In this tutorial we will use one vibration sensor (or shake switch)
to make a beep sound from a buzzer while we shake our breadboard.
Find more info and video here: http://bit.ly/1iDbc2Q
Dev: Michalis Vasilakis - Date: 9/9/2015 - www.ardumotive.com */
const int buzzer = 8; //Buzzer connected to pin 8 of Arduino uno / mega
int sensor; //Variable to store analog value (0-1023)
void setup()
{
Serial.begin(9600); //Only for debugging
pinMode(buzzer, OUTPUT);
}
void loop()
{
sensor = analogRead(A0);
//While sensor is not moving, analog pin receive 1023~1024 value
if (sensor<1022){
tone(buzzer, 500);
Serial.print("Sensor Value: ");
Serial.println(sensor);
}
else{
noTone(buzzer);
Serial.print("Sensor Value: ");
Serial.println(sensor);
}
https://youtu.be/kiDQTBkPmpY
15 days