Shenzhen Chipskey Technology CO.,LTD.5180000About Us16H Block A,Duhui 100 Building,Huaqiangbei, Futian, Shenzhen, Guangdong, China 518031We mainly at Raspberry PI series accessories, Board&shield for arduino, Sensor module For Arduino, Smart Car Robot, Smart DOF Robot, DIY toys, Educational toys, and 3D printer series We also professional at IC , Capacitor , Resistor , Inductor and diode troide series electronic components!Shenzhen Chipskey Technology CO.,LTD.5180000About Us16H Block A,Duhui 100 Building,Huaqiangbei, Futian, Shenzhen, Guangdong, China 518031We mainly at Raspberry PI series accessories, Board&shield for arduino, Sensor module For Arduino, Smart Car Robot, Smart DOF Robot, DIY toys, Educational toys, and 3D printer series We also professional at IC , Capacitor , Resistor , Inductor and diode troide series electronic components!Shenzhen Chipskey Technology CO.,LTD.Shenzhen Chipskey Technology CO.,LTD.Shenzhen Chipskey Technology CO.,LTD.Shenzhen Chipskey Technology CO.,LTD.Shenzhen Chipskey Technology CO.,LTD.Shenzhen Chipskey Technology CO.,LTD.Shenzhen Chipskey Technology CO.,LTD.Shenzhen Chipskey Technology CO.,LTD.Shenzhen Chipskey Te

Knock Sensor Hit sensor module KY-031
Knock Sensor Hit sensor module KY-031

Knock Sensor Hit sensor module KY-031

Model NO.
28030
Minimum order quantity
1 piece
Country of Origin
HK/Shenzhen
Quantity:
  • Model Number:28030
  • Type:Sensor Development Boards and Kits
  • Place of Origin:China
  • Delivery Time:24hours
  • Quality:New&Original
  • Application:Great for DIY project
  • SKU:28030
  • Stock:In Stock ,Can Ship out Immedicate

Knock Sensor Hit sensor module KY-031

 

 

Product features

100% brand new

Product description

Product Description :

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

Size: 30x18x6mm (approx)

Routines source code:

int Led = 13;// define LED Interface

int Shock = 3;// define the percussion Sensor Interface

int val;// define numeric variables val

void setup 

 

pinMode (Led, OUTPUT) ;// define LED as output interface

pinMode (Shock, INPUT) ;// define knock sensor output interface

void loop 

val = digitalRead (Shock) ;// read digital interface is assigned a value of 3 val

if (val == HIGH) // When the percussion when the sensor detects a signal, LED flashes

digitalWrite(Led, LOW);

else

digitalWrite(Led, HIGH);

 

Send Message

* clear input
*
Preview on Mobile
X
customer-service Customer Service
whatsapp WhatsApp
skype Skype
wechat WeChat
message Message
go top Top
WeChat Close
qr code
+8613715126889
qrcode

Send Message

* clear input
*
Choose language