πŸ“³

SW-420 Vibration

One tap, one count

Page 48 of 64 MCP / API open OTA updates

Page 48 reads a SW-420 on GPIO17: normally closed at rest, flipping on vibration. The screen shows both the current state and a cumulative count, which separates a one-off knock from continuous shaking.

Sensitivity is set by the trimmer on the module β€” turn it until it stops false-triggering.

Screen

On-screen interface

A recreation of this page on the 2.41-inch AMOLED display (600 Γ— 450). Actual interaction and layout follow the latest firmware.

Peripheral SW-420 Β· GPIO17
Count12times Β· last 21:04:12
Stateidle (NC)
PinGPIO 17
Sensitivitytrimmer tuned to avoid false triggers
Health90
Detects vibration only β€” no amplitude
Screen Β· Page 48
May differ from the actual interface; the screen of the real device is the final reference.
Highlights

Key capabilities

πŸ“³

Vibration count

Cumulative hits plus the last timestamp.

🎚

Adjustable

On-board trimmer sets the threshold.

πŸ”Œ

One wire

Only GPIO17 is needed.

🩺

Health score

Missing, always-on and never-triggering are distinguished.

Specifications

Technical specs

PinGPIO 17
OutputDigital, NC β€” flips on vibration
Supply3.3–5 V
Firmware pagePage 48
Use Cases

Typical scenarios

Tamper sensing

Stick it on a drawer or door.

Machine check

Spot abnormal shaking on a fan or motor.

Commands

Related commands

page 48  Open the SW-420 page
sw  Read state and count

Read the full API & command reference β†’

⚠ Boundaries & notes
  • Yes/no only β€” no amplitude or frequency.
  • Too sensitive means constant triggering; too dull misses small knocks.

Other feature pages