Skip to main content

Menu

Knock Module Arduino Compatible

ARD2-2231
Arduino Compatible ARD2 Knock Module

$3.95

QTYPrice
1 $3.95

Description

This Arduino compatible knock sensor module can detect knocks and impacts. It can work as a switch. It can be used to build a simple LED circuit that lights up when an impact is detected. It has potential applications wherever you might want your project to respond to sudden impacts for safety purposes or simply as a unique input method.

This knock module consists of a 10 kΩ resistor and a spring-based sensor that sends a high signal when a vibration is detected.

Note: If your project requires a more sensitive module, see the ARD2-2202.

Test 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

// When the percussion when the sensor detects a signal, LED flashes
if (val == HIGH) {
digitalWrite(Led, LOW);
}
else {
digitalWrite (Led, HIGH);
}
}

Features

  • Make an external LED light up when the sensor detects a knock/impact
  • Add a unique input to your project or respond to sudden impacts as a safety feature

Specifications

Colour

Black

Material

PCB

Resources

You Might Also Like

All prices are in Australian Dollars and include GST. GST will be removed from your order if you are ordering from outside Australia.
Products may differ from pictured.
All trademarks and trade names are the properties of their respective owners. Wiltronics disclaims any proprietary interest in trademarks and trade names other than its own.

Knock Module Arduino Compatible

ARD2-2231

$3.95

We use cookies to ensure you have the best experience on our site. If you continue to use this site you consent to the use of these cookies. OK

Find out more in our Privacy Policy