The Knock Sensor Module

Product Description Both knock sensor module and digital interface 13 carries LED for the build-up of a simple circuit and a knock flasher. Connect knock sensor to digital interface 3 with the LED carried by digital interface 13. When knock sensor detects a knock signal, the LED will flash....

Send InquiryChat Now
Product Details

Product Description

Both knock sensor module and digital interface 13 carries LED for the build-up of a simple circuit and a knock flasher. 


Connect knock sensor to digital interface 3 with the LED carried by digital interface 13. When knock sensor detects a knock signal, the LED will flash. 


Sample code 

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 as output interface 

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

void loop() 

val=digitalRead(Shock);//read and assign the value of digital interface 3 to val   

if(val==HIGH)//When knock sensor detects any signal , the LED will flash 

{ digitalWrite(Led,LOW); 

}e 

lse 

{ digitalWrite(Led,HIGH); 

}} 


Kuongshun Electronic, one of the international well-known manufacturers and suppliers of the knock sensor module which is situated in China, now has quality products for sale. We are equipped with a group of professional and experienced workers, as well as advanced equipment. You can rest assured to buy discount and low price the knock sensor module made in China from us and check the pricelist with us.

Hot Tags: the knock sensor module suppliers China, manufacturers, low price, buy discount, pricelist, price, made in China
Related Products
Inquiry