← back to catalog
// motion

SW-420 Vibration

Tilt/shock vibration switch

€1.00
avg eur
no image
Analog Digital
Pins
4
Specs
4
Libraries
1
Protocols
2
// wiring → esp32 devkit v1
VCC
3V3
EN
GPIO36 VP
GPIO39 VN
AO
GPIO34
GPIO35
GPIO32
GPIO33
GPIO25
GPIO26
GPIO27
GPIO14
GPIO12
GND
GND
DO
GPIO13
ESP32
WROOM-32
devkit v1
USB
VIN 5V
GND
GPIO23
GPIO22 SCL
GPIO1 TX0
GPIO3 RX0
GPIO21 SDA
GPIO19 MISO
GPIO18 SCK
GPIO5 SS
GPIO17 TX2
GPIO16 RX2
GPIO4
GPIO2
GPIO15
sensor pin (left)
sensor pin (right)
unused
// pinout → esp32
Sensor Pin ESP32 Connection
VCC 3.3V
GND GND
DO GPIO 13
AO GPIO 34 (opt)
// technical specs
Type Spring contact
Output Digital + Analog
Adjust potentiometer threshold
Voltage 3.3–5V
// github libraries
// notes & warnings
Bouncy and binary — fine for impact/tamper detection. For real vibration analysis use MPU6050 + FFT.
// related sensors · motion