Skip to product information
1 of 4

Vibration Switch

Vibration Switch

SKU:AX22-0025

Shake it, tilt it, or tap it this AX22-sized board puts a cylindrical roll-ball vibration switch on a compact 22 × 22 mm PCB so your project can sense motion without MEMS sensors or ADC maths. Inside the sealed metal can a loose steel ball shorts two electrodes whenever the board is jostled (roughly ±15 ° from level or any sharp knock). An on-board 10 kΩ pull-up and 0.1 µF RC filter with a series 100Ω resistor, gives a microcontroller a debounced, logic-level pulse that’s readable on a single GPIO pin. Drop it into any AX22 backplane and you’ve added wake-on-shake, knock detection, or simple orientation sensing in one shot whether you’re coding in the Arduino IDE, MicroPython, or MicroBlocks.
Regular price $4.48
Regular price Sale price $4.48
Sale Sold out
View full details

Technical Details

- 22 mm × 22 mm square
- 4× ⌀2.7 mm Mounting Holes
- Integrated hardware debounce
- Typical trigger angle ≈ ±15 ° or abrupt acceleration
- Side to side shaking detection
- 1.8 V, 3.3 V, 5.0 V
- Arduino IDE Compatible
- MicroPython Compatible
- MicroBlocks Compatible

Material Datasheet →

Pinout

Technical Resources

Vibration Switch - (AX22-0025)
🖱️ Click & drag to rotate
#define SWITCH_PIN 14

void setup() {
  Serial.begin(9600);
  pinMode(SWITCH_PIN, INPUT);
}

void loop() {
  int switchValue = digitalRead(SWITCH_PIN);

  if (switchValue == HIGH) {
    Serial.println("SHAKING !!!");
  } else {
    Serial.println("Still...");
  }

  delay(5);
}