Keyestudio Darbe Sensör Modülü
152,07 TL
Kategori
Marka
Stok Kodu
KS0024
16,23 TL den başlayan taksitlerle!
Contents (Hızlı Menü)
Introduction / Tanıtım
This module is a knock sensor. When you knock it, it can send a momentary signal. You can combine it with Arduino to make some interesting experiments, e.g. electronic drum.
Bu modül bir darbe sensörüdür. Vurduğunuzda anlık bir sinyal gönderir. Bazı ilginç deneyler yapmak için Arduino ile birleştirebilirsiniz, örn. elektronik davul
Specifications / Özellikler
- Working Voltage: 5V
- Size: 30*20mm
- Weight: 3g
- Çalışma Gerilimi: 5V
- Ebatt: 30*20 mm
- Ağırlık: 3g
Connection Diagram / Bağlantı Şeması
![]()
Sample Code / Örnek Kod
int Led=13;//define LED interface
int Shock=3;//define knock sensor interface
int val;//define digital variable val
void setup()
{
pinMode(Led,OUTPUT);//define LED to be output interface
pinMode(Shock,INPUT);//define knock sensor to be output interface
}
void loop()
{
val=digitalRead(Shock);//read the value of interface3 and evaluate it to val
if(val==HIGH)//when the knock sensor detect a signal, LED will be flashing
{
digitalWrite(Led,LOW);
}
else
{
digitalWrite(Led,HIGH);
}
}
Resources / Kaynaklar
Video
https://drive.google.com/open?id=12voerfhN0VC5GShUagyO5XpwmPXDIcai
Bu ürüne ilk yorumu siz yapın!
