Shock Sensor Module - SW-18015P Vibration Trigger Board for Alarms, Robotics, and Smart Devices The TB-Shock sensor module detects vibration, impact, and shaking events using a vibration switch and LM393-style comparator circuit. It outputs a clean digital signal, making it useful for tamper alarms, smart cars, electronic building blocks, impact counters, and motion-triggered prototypes. The current listing specifies a SW-18015P vibration sensor by default, 3.3V-5V operation, digital switch output, strong drive capability above 15mA, and a compact 3.2 x 1.4cm PCB. Pair it with the ELAB Nano V3, RGB Full Color LED Module, or 5V/12V Relay Module for event-response projects. This module is best for detecting whether vibration occurred, not for measuring calibrated acceleration magnitude. Set thresholds and debounce timing in software according to the mechanical mounting and expected shock profile. Technical Specifications Parameter Value SKU TB-Shock Sensor Element SW-18015P vibration switch by default Comparator LM393-style wide-voltage comparator Working Voltage 3.3V-5V Output Digital switch output 0/1 Drive Capability More than 15mA per current listing PCB Size 3.2cm x 1.4cm Interface VCC, GND, DO Mounting Fixed bolt holes Applications Alarms, robots, impact detection, electronic blocks Board Layout & Label Guide VCC - Connect to 3.3V or 5V supply. GND - Common ground. DO - Digital vibration event output. Vibration Switch - Detects shock or shaking. Comparator Circuit - Cleans up the switching signal. Indicator LED - Shows output state on many boards. Mounting Holes - Secure the PCB to the object being monitored. Debounce Note - Vibration events may produce multiple pulses. Application Scenarios 1. Arduino Digital Input Test Read the DO output and print its state. const int sensorPin = 2; void setup() { Serial.begin(115200); pinMode(sensorPin, INPUT); } void loop() { Serial.println(digitalRead(sensorPin)); delay(100); } 2. LED Event Indicator Turn on an LED when the module output is triggered. const int sensorPin = 2; const int ledPin = 13; void setup() { pinMode(sensorPin, INPUT); pinMode(ledPin, OUTPUT); } void loop() { digitalWrite(ledPin, digitalRead(sensorPin)); } 3. MicroPython GPIO Monitor Monitor the digital signal from a Pico-style board. from machine import Pin import time sensor = Pin(15, Pin.IN) while True: print(sensor.value()) time.sleep(0.1) Packing List 1 x Shock Sensor Module FAQ Q: What does this module detect?A: It detects vibration, shock, or shaking events. Q: Does it measure acceleration?A: No, it is a digital event sensor, not a calibrated accelerometer. Q: What voltage can I use?A: The listing specifies 3.3V-5V. Q: What is DO?A: DO is the digital output signal. Q: Can it trigger an alarm?A: Yes, it is well suited for alarm triggers. Q: Why do I see multiple triggers?A: Mechanical vibration can bounce, so debounce in software. Q: Can I adjust sensitivity?A: Some comparator modules include adjustment; check the actual board. Q: How should I mount it?A: Mount it firmly to the object whose vibration you want to detect.