Ks0037 keyestudio Vibration Sensor: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<br>
==Introduction==
==Introduction==
What's the simplest way to check vibration with Arduino? Well, use a vibration sensor from keyestudio. You can directly plug it on our sensor Shield V5, vibrate this sensor, and Arduino can receive a digital signal, making it easy to make computation and programs in Arduino.
What's the simplest way to check vibration with Arduino? Well, use a vibration sensor from keyestudio. <br>
Despite its simplicity, you can make full use of it with creative thinking, step counting, and crash warning light etc.
You can directly plug it on our sensor Shield V5, vibrate this sensor, and Arduino can receive a digital signal, making it easy to make computation and programs in Arduino.<br>
<br>[[File:Joystick.png|500px|frameless|thumb]]<br>
Despite its simplicity, you can make full use of it with creative thinking, step counting and crash warning light, etc. 
 
<br>[[File:KS0037 (2).jpg|500px|frameless|thumb]]<br>


<br>
==Specification==
==Specification==
*IO Type: Digital
*IO Type: Digital
*Supply Voltage: 3.3V to 5V
*Supply Voltage: 3.3V to 5V
*Size: 40.7*16.7mm
*Weight: 5g


<br>
==Connection Diagram ==
==Connection Diagram ==
<br>[[File:Ks0037.png|700px|frameless|thumb]]<br>


<br>[[File:372.png|500px|frameless|thumb]]<br>
<br>
 
==Sample Code ==
==Sample Code ==
<pre>
<pre>
#define SensorLED     13
#define SensorLED     13
Line 40: Line 40:
void blink()//Interrupts function
void blink()//Interrupts function
{  state++;
{  state++;
}</pre>
}
</pre>


<br>
==Resources ==
==Resources ==


'''Video'''
* '''Video'''<br>
http://video.keyestudio.com/ks0037/


http://www.keyestudio.com/wp/2016/05/ks0037-keyestudio-vibration-sensor/
* '''PDF and Code'''<br>
https://fs.keyestudio.com/KS0037


'''Datasheet'''


http://www.keyestudio.com/files/index/download/id/1463650958/
<br>


==Buy from ==
==Buy from ==


http://www.keyestudio.com/keyestudio-vibration-sensor-for-arduino.html
*[https://www.keyestudio.com/free-shippingkeyestudio-vibration-sensor-module-for-arduino-p0155.html  '''Official Website''' ]
 
*[https://www.aliexpress.com/store/product/Free-shipping-Robot-801S-vibration-sensor-vibration-model-analog-output-sensitivity-adjustable-2-pieces-lot/1452162_2051498162.html?spm=2114.12010612.8148356.57.29bd7498iQQUVn  '''Shop on aliexpress''']


https://www.amazon.com/Keyestudio-Vibration-Sensor-Arduino-raspberry/dp/B0172UX49O/ref=sr_1_1?ie=UTF8&qid=1479957104&sr=8-1&keywords=keyestudio+Vibration+Sensor+for+Arduino


[[Category: Sensor]]
[[Category: Sensor]]

Latest revision as of 14:55, 7 January 2021


Introduction

What's the simplest way to check vibration with Arduino? Well, use a vibration sensor from keyestudio.
You can directly plug it on our sensor Shield V5, vibrate this sensor, and Arduino can receive a digital signal, making it easy to make computation and programs in Arduino.
Despite its simplicity, you can make full use of it with creative thinking, step counting and crash warning light, etc. 
thumb


Specification

  • IO Type: Digital
  • Supply Voltage: 3.3V to 5V


Connection Diagram


thumb


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++;
}



Resources

  • Video

http://video.keyestudio.com/ks0037/

  • PDF and Code

https://fs.keyestudio.com/KS0037



Buy from