HS-S31A Crash Sensor - Digital Collision Switch Module for Robot Bump and Limit DetectionThe HS-S31A Crash Sensor is a digital collision switch module for robot bumpers, limit detection, object-contact events,…
The HS-S31A Crash Sensor is a digital collision switch module for robot bumpers, limit detection, object-contact events, and simple mechanical input experiments. It converts a physical press or impact into a clean digital state that a microcontroller can read.
It is a practical match for the ELAB Nano V3, robot prototypes using an UNO R3 Prototype Expansion Board, and visual status projects with the RGB Full Color LED Module. Use software debouncing for stable event handling.
This module is better for direct contact detection than long-range proximity sensing. Mount it where a bumper or moving part can press the switch without damaging the PCB.
| Parameter | Value |
|---|---|
| SKU | HS-S31A |
| Product Type | Crash / collision switch module |
| Output | Digital switch signal |
| Sensing Method | Mechanical contact switch |
| Typical Supply | 3.3V / 5V controller systems |
| Host Interface | GPIO input |
| Use Cases | Robot bumpers, limit switches, object contact |
| Software Need | Debounce recommended |
| Mounting | Fixed near contact point |
| Not For | Non-contact distance measurement |
Read the crash sensor digital output.
const int sensorPin = 2;void setup() { Serial.begin(115200); pinMode(sensorPin, INPUT);}void loop() { Serial.println(digitalRead(sensorPin)); delay(100);}
Turn on an LED when the module is pressed.
const int sensorPin = 2;const int ledPin = 13;void setup() { pinMode(sensorPin, INPUT); pinMode(ledPin, OUTPUT);}void loop() { digitalWrite(ledPin, digitalRead(sensorPin));}
Monitor the digital output from a Pico-style board.
from machine import Pinimport timesensor = Pin(15, Pin.IN)while True: print(sensor.value()) time.sleep(0.1)
Q: What does it detect?
A: Physical collision or switch contact.
Q: Is it analog?
A: No, it is a digital switch-style sensor.
Q: Can it be used as a limit switch?
A: Yes, it is well suited for limit and bumper inputs.
Q: Does it need debounce?
A: Yes, use software debounce.
Q: Can it measure force?
A: No, it only detects switch state.
Q: Can I use it with Arduino?
A: Yes, connect the signal to a digital input.
Q: Why does it trigger multiple times?
A: Mechanical bounce or vibration can create repeated pulses.
Q: How should it be mounted?
A: Secure it so impact force presses the switch cleanly.
We offer fast and reliable shipping worldwide. All orders are carefully packaged and shipped within 1–3 business days after payment confirmation.
Standard shipping, expedited shipping and express delivery options are available at checkout. Delivery time depends on your destination country and local logistics.
Only logged in customers who have purchased this product may leave a review.
Add Related products to weekly line up
Special Ofers For Subscribers