• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Contact | Calculators-online
You are here: Home / Security and Alarm / Impact Collision Switch Sensor Module and Circuit Diagram

Impact Collision Switch Sensor Module and Circuit Diagram

Last Updated on April 28, 2025 by Swagatam Leave a Comment

Here we are going to learn about a very interesting small sensor called the Impact Collision Switch Sensor Module.

This module is super simple but very useful especially when we want to detect a shock, collision, hit or a sudden tap on a surface.

Now let us go step-by-step to understand everything about it.

Impact Collision Switch Sensor Module

What is an Impact Collision Switch Sensor?

So basically this module is nothing fancy.

It is just a mechanical switch sensor that can detect a sudden impact or physical touch vibration.

When you hit or tap it, even lightly then it closes the contacts inside and gives a signal, which is normally a logic HIGH or LOW depending on how you have connected it.

It behaves like a normal switch but it is very sensitive to shocks or small taps.

How It is Built Inside?

Ok now, inside the small cylindrical body of this sensor there is:

A very tiny spring or a metal wire.

One fixed metal contact.

When the sensor is at rest, the spring is not touching the contact.

But when you shake it or tap it, then spring vibrates and hits the metal contact.

This closes the circuit for a very tiny time.

After the impact stops, then spring comes back to its normal position and the switch becomes open again.

How the Module Looks Like?

Mostly the sensor module has:

  • The collision switch (the small metal sensor) mounted on PCB.
  • A pull-up or pull-down resistor already fitted.
  • 3 pins coming out:
  • Vcc (+ supply).
  • GND (ground).
  • Signal output (goes HIGH or LOW when hit detected).
  • Some modules also have a small LED that blinks when impact is detected, but not all versions.

Working Principle

It is super simple:

When idle, the output stays normally LOW (or HIGH, depends on wiring).

When you tap or strike the module lightly, then contacts touch inside.

Instantly, the output pin changes state (LOW to HIGH or HIGH to LOW) for a short time.

After the impact is over, then it goes back to its original idle state.

It can be used to trigger alarms, counters, robots or any system which needs to react to a physical hit.

Analogue Relay Driver Circuit

The following diagram shows how to integrate the impact collision switch sensor with a relay driver circuit with delay OFF:

collision impact switch Relay driver intefacing

Typical Connection Diagram

Here’s how you can connect it to a microcontroller like Arduino:

(+) Vcc ----> +5V Arduino
(-) GND ----> GND Arduino
(Signal) OUT ----> Any digital pin (example D2)

And in Arduino code, you just check if the pin becomes HIGH when impact happens.

Arduino Code Example for Impact Collision Switch Sensor

// Define pin numbers
const int impactPin = 2;  // Impact sensor output connected to digital pin 2
const int ledPin = 13;    // Built-in LED for indication

void setup() {
  // Set pin modes
  pinMode(impactPin, INPUT);
  pinMode(ledPin, OUTPUT);
  
  // Start Serial Monitor
  Serial.begin(9600);
  Serial.println("Impact Sensor Ready...");
}

void loop() {
  // Read the sensor output
  int sensorState = digitalRead(impactPin);
  
  // Check if impact is detected
  if (sensorState == HIGH) {
    Serial.println("Impact Detected!");
    digitalWrite(ledPin, HIGH);  // Turn ON LED
    delay(200);                  // Keep LED ON for 200 ms
  } else {
    digitalWrite(ledPin, LOW);   // Turn OFF LED if no impact
  }
}

How this code works:

  • impactPin is where you connect the signal output of the sensor (like pin D2).
  • It keeps reading the sensor output inside the loop().
  • If it sees HIGH (impact detected), then it will:
    • Print "Impact Detected!" in the Serial Monitor
    • Switch ON the onboard LED at pin 13
  • After a short delay (200ms), then it goes back to normal.

Wiring Summary Again:

Arduino PinModule Pin
5VVcc
GNDGND
D2Signal OUT

Important Features

  • Simple and Cheap: No complicated parts inside.
  • Very Sensitive: Even small taps can trigger it.
  • Fast Response: Almost instant switch ON when impact detected.
  • Low Power: Works directly with 3.3V or 5V supplies.

A Small Hint:

  • If your sensor is too sensitive and gives false hits, then you can add a small capacitor (like 0.1uF) across signal and GND to reduce noise.
  • You can also add a software debounce if needed to get a better stability.

Arduino Code Example (Flip-Flop / Toggle Mode)

// Define pin numbers
const int impactPin = 2;  // Impact sensor output connected to digital pin 2
const int ledPin = 13;    // Built-in LED for output

// Define a variable to store toggle state
bool ledState = false;

void setup() {
  pinMode(impactPin, INPUT);
  pinMode(ledPin, OUTPUT);
  
  Serial.begin(9600);
  Serial.println("Impact Sensor Toggle Mode Ready...");
}

void loop() {
  // Check for impact
  if (digitalRead(impactPin) == HIGH) {
    // Change the ledState to opposite
    ledState = !ledState;
    
    // Set the LED accordingly
    digitalWrite(ledPin, ledState);
    
    // Print current state
    if (ledState) {
      Serial.println("Impact Detected: LED ON");
    } else {
      Serial.println("Impact Detected: LED OFF");
    }
    
    // Wait for impact to settle (debounce delay)
    delay(300);  
  }
}

How this code works:

  • ledState variable holds whether LED is currently ON or OFF.
  • Each time a tap is detected, it inverts the ledState (!ledState flips it).
  • Then it writes the new state to the LED.
  • It also prints a message to Serial Monitor showing LED ON or OFF after each tap.
  • Small delay added (300ms) after a tap to avoid multiple triggers from a single hard tap.

Small Tip:

  • If you want more stable behavior, then you can use longer debounce delay (like 500 ms).
  • You can even add a buzzer instead of the LED if you want sound feedback, ok...

Summary Function:

One Tap (Impact)Result
1st TapLED Turns ON
2nd TapLED Turns OFF
3rd TapLED Turns ON again
4th TapLED Turns OFF again

and so on... like a real flip-flop.

So guys, now you can use your Impact Sensor like a real physical ON/OFF switch for any project like controlling lights, buzzers, motors, just simply by tapping on the contacts...

Arduino Code Example (Relay Control Flip-Flop)

Let us now make the Relay Control Version of our Impact Collision Switch Sensor Module project so that you can control AC bulbs, fans, anything just by tapping on the switch.

// Define pin numbers
const int impactPin = 2;   // Impact sensor output connected to digital pin 2
const int relayPin = 8;    // Relay module control pin connected to Arduino pin 8

// Define a variable to store toggle state
bool relayState = false;

void setup() {
  pinMode(impactPin, INPUT);
  pinMode(relayPin, OUTPUT);
  
  Serial.begin(9600);
  Serial.println("Impact Sensor Relay Control Ready...");
}

void loop() {
  // Check for impact
  if (digitalRead(impactPin) == HIGH) {
    // Change the relayState to opposite
    relayState = !relayState;
    
    // Set the relay output accordingly
    digitalWrite(relayPin, relayState ? HIGH : LOW);
    
    // Print current state
    if (relayState) {
      Serial.println("Impact Detected: Relay ON (Load ON)");
    } else {
      Serial.println("Impact Detected: Relay OFF (Load OFF)");
    }
    
    // Debounce delay
    delay(300);
  }
}

How to Wire Everything:

Arduino PinConnects to
5VSensor Vcc and Relay Vcc
GNDSensor GND and Relay GND
D2Sensor OUT pin
D8Relay Module IN pin

Important Note for Relay Module:

  • Relay modules normally activate when Arduino output is HIGH.
  • But some relay modules are active LOW. (In that case, little code change might be needed.
  • Be careful when connecting AC mains. Use proper insulation and relay modules that have opto-coupler protection.

How this Full Setup Will Work:

EventWhat Happens
1st TapRelay turns ON - Bulb ON
2nd TapRelay turns OFF - Bulb OFF
3rd TapRelay turns ON - Bulb ON
4th TapRelay turns OFF - Bulb OFF
And so on...

Safety Tips for Relay and AC:

  • Always use ready-made relay modules with isolation.
  • Do not touch AC parts when you are testing.
  • Use fuse if possible in AC line for increased safety.

Hints for Practical Projects:

  • Touch/Impact controlled Table Lamp.
  • Impact triggered Fan Control.
  • Tap to switch ON/OFF Decorative Lights.
  • Security System where you want shock impact can toggle ON a siren.

Analog Flip Flop bistable circuit Interfacing using IC 4017

If you want to interface the Impact collision switch circuit with a discretely built 4017 based flip flop circuit using IC 4017, then you can try the following concept:

Impact Collision Switch Sensor Module interfacing with 4017 IC flip flop

Main Applications

So friends, you can use this sensor in many interesting ways:

  • Anti-theft alarms (if someone moves your device, it can detect it)
  • Robot collision detection
  • Smart toys (react when shaken or tapped)
  • Smart furniture (tap to switch ON lights)
  • Industrial machines (vibration alarms)

Pros and Cons

ProsCons
Very simple and low costNot accurate for very light vibration
Easy to connectCan false trigger if environment too shaky
Good for DIY beginnersCannot detect exact strength of impact

Conclusion

Ok so in simple words, the Impact Collision Switch Sensor Module is like a sensitive tap sensor.

When you hit it, it closes a switch for a short moment and that can be used by a microcontroller or alarm system to know that "something has hit me."

If you want cheap and easy collision detection without using heavy complex accelerometers, then this module is the best buddy.

Just solder 3 wires, little bit coding and you are ready to go!

You'll also like:

  • 1.  Make this SleepWalk Alert Circuit – Protect yourself from Sleepwalking Dangers
  • 2.  Earthquake Sensor Circuit [Seismic Sensor]
  • 3.  Anti Spy RF Detector Circuit – Wireless Bug Detector
  • 4.  Ultrasonic Burglar Alarm Circuit
  • 5.  Earth Leakage Indicator Circuit for Detecting Current Leakages in Ground Wires
  • 6.  Reed Switch Sensor Module Explained with Circuit Diagram

About Swagatam

I am an electronics engineer with over 15 years of hands-on experience. I am passionate about inventing, designing electronic circuits and PCBs, and helping hobbyists bring their projects to life. That is why I founded homemade-circuits.com, a website where I share innovative circuit ideas and tutorials. Have a circuit related question? Leave a comment.... I guarantee a reply!

Previous Post: « The Perfect FM Radio Circuit using TDA7000 IC
Next Post: Reed Switch Sensor Module Explained with Circuit Diagram »

Reader Interactions

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Subscribe to New Circuit Ideas

Categories

  • Arduino Projects (87)
  • Audio and Amplifier Projects (132)
  • Automation Projects (17)
  • Automobile Electronics (101)
  • Battery Charger Circuits (82)
  • Datasheets and Components (102)
  • Electronics Theory (143)
  • Free Energy (37)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (19)
  • Health related Projects (25)
  • Home Electrical Circuits (12)
  • Indicator Circuits (14)
  • Inverter Circuits (87)
  • Lamps and Lights (142)
  • Meters and Testers (69)
  • Mini Projects (46)
  • Motor Controller (64)
  • Oscillator Circuits (27)
  • Pets and Pests (15)
  • Power Supply Circuits (108)
  • Remote Control Circuits (50)
  • Security and Alarm (64)
  • Sensors and Detectors (100)
  • Solar Controller Circuits (59)
  • Temperature Controllers (42)
  • Timer and Delay Relay (49)
  • Transmitter Circuits (29)
  • Voltage Control and Protection (37)
  • Water Controller (36)

Calculators

  • Battery Back up Time Calculator
  • Capacitance Reactance Calculator
  • IC 555 Astable Calculator
  • IC 555 Monostable Calculator
  • Inductance Calculator
  • LC Resonance Calculator
  • LM317, LM338, LM396 Calculator
  • Ohm’s Law Calculator
  • Phase Angle Phase Shift Calculator
  • Power Factor (PF) Calculator
  • Reactance Calculator
  • Transistor Astable Calculator
  • Transistor base Resistor Calculator
  • Voltage Divider Calculator
  • Wire Current Calculator
  • Zener Diode Calculator
  • Filter Capacitor Calculator
  • Buck Converter Calculator
  • Boost Converter Calculator
  • Solar Panel, Inverter, Battery Calculator
  • Wire Current Calculator
  • SMPS Transformer Calculator
  • IC SG3525, SG3524 Calculator
  • Inverter LC Filter Calculator

People Also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |

Recent Comments

  • Swagatam on Simple Delay Timer Circuits Explained
  • Swagatam on The Role of Inductor Coil in SMPS
  • Swagatam on 7 Modified Sine Wave Inverter Circuits Explored – 100W to 3kVA
  • Swagatam on 7 Modified Sine Wave Inverter Circuits Explored – 100W to 3kVA
  • Victor on 7 Modified Sine Wave Inverter Circuits Explored – 100W to 3kVA

Company

  • Privacy Policy
  • Cookie Policy
  • About Me
  • Contact
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Quora
  • Stack Exchange
  • Linkedin
  • © 2025 · Swagatam Innovations