Ceramic Piezo Vibration Sensor [S133]



https://www.youtube.com/watch?v=YRrDOdgsokU


*GitHubhttps://github.com/rdiot/rdiot-s133.git



* Specs

his ALSRobotBase Ceramic Piezo Vibration Piece Sensor buffers a piezoelectric transducer that responds to strain changes by generating a measurable output voltage change which is propotional with the strength of vibration.So you can know the extent of vibration. Different from digital vibration sensor that only accounts times, this analog one can tell extent of vibration.

When the piezoelectric ceramic shocking will generate an electrical signal, Arduino Controller analog port can be perceived slight vibration signals, Also can be realized with vibration interactions related works, such as electronic drums.


Working Voltage: 3.3V or 5V

Working Current: <1mA

Operating Temperature Range: -10 ~ + 70

Interface Type: Analog Output

Item Size: 30mm x 23mm

Item Weight: 5g

GPIO: S; signal output, +; power supply (VCC), -; ground (GND)

Input: Positive electrode of the piezoelectric ceramic

Gnd: Negative electrode of the piezoelectric ceramic

S-port is connected with the controller\'s analog input pin

5V and GND are respectively connected the power supply of + 5V and GND

Input and Gnd are already connected with the piezoelectric ceramics\' positive and negative


* Contents

- Connect

S ----- D2

+ ----- 5V

- ----- GND


- Key Code

lcd.print("Value=" + (String)digitalRead(2) + " ");

Posted by RDIoT
|

Knock sensor module (KY-031) [S040]



https://www.youtube.com/watch?v=zUOMWfGgiZ0


*GitHubhttps://github.com/rdiot/rdiot-s040.git


* Specs

13 knock sensor module and a digital interface, built-in LED build a simple circuit to produce percussion flasher. 13 Interface comes with digital LED, will knock sensor connected digital 3 interface, when percussion sensor senses Measure To percussive signals, LED flashing light.


* Contents

- Connect

S ----- D3

middle ----- 5V

- ----- GND



- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

 

int pin = 3;

LiquidCrystal_I2C lcd(0x27,20,4);  // LCD2004

 

void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");

 

  pinMode(pin,INPUT);

  delay(1000);

 

  lcd.clear();

}

 

void loop()

{

 

  lcd.setCursor(0,0);

  lcd.print("S040:Knock sensor");

 

  int vibration = digitalRead(pin);

 

  lcd.setCursor(0,1);

  lcd.print("digital=" + (String)vibration + "  ");

 

  if(vibration == LOW)

  {

    lcd.setCursor(0,2);

    lcd.print("knock=detected");

  }

  else{

    lcd.setCursor(0,2);

    lcd.print("knock=NONE    ");

  }


  delay(500)

}

Posted by RDIoT
|

Vibration switch module (KY-002) [S039]



https://www.youtube.com/watch?v=W7pKNvCRH4w


*GitHub : https://github.com/rdiot/rdiot-s039.git


* Specs

This switch is OFF in the resting state, when the external force to touch and to achieve a proper vibration, meet the appropriate speed or from the (partial) heart, conductive pin will momentarily conduction (ON) status, make changes in electric property, and disappear when the external force electric property open (OFF) state is restored

Omnidirectional, any Angle can trigger job

Component model: SW-18015P



* Contents

- Connect

S ----- D2

middle ----- 5V

- ----- GND

 

- Key Code

int pin = 2;

int vibration = digitalRead(pin);


  if(vibration == LOW)

  {

    lcd.setCursor(0,2);

    lcd.print("vibration=detected");

    delay(100);

  }

  else{

    lcd.setCursor(0,2);

    lcd.print("vibration=NONE    ");

  }

Posted by RDIoT
|