Zum Inhalt springen

9536 – Tilt Sensor/en

Aus JW Tech Wiki
Version vom 6. September 2026, 00:32 Uhr von JWTechPublisher (Diskussion | Beiträge) (Freigegebene technische Dokumentation veröffentlicht; Text-only und noindex)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)

Documentation notice: This technical documentation was independently rewritten from an archived supplier source. Check technical details and commands against the product version and manufacturer documentation before use.

Summary

The Waveshare tilt sensor (part no. 9536 / WSAL9536) is a simple ball switch that closes or opens when the device tilts or vibrates. It provides a TTL digital output and can be wired directly to a microcontroller’s digital input.

Related products at JW Tech

Technical overview

  • Supply voltage: 3.0 V to 5.5 V; output type: TTL.
  • Module dimensions: approximately 19.0 mm × 16.0 mm.
  • Operating principle: A ball switch closes on tilt or vibration and reopens once the motion subsides.
  • Applications listed in the source: shake detection, guard alarms, smart cars/toys, electric bricks.
  • Pinout: VCC to 3.0–5.5 V, GND to ground, DOUT to a digital MCU input.
  • The wiki documents example projects for Raspberry Pi Pico (MicroPython, C/C++ via VS Code, Arduino IDE), STM32, and generic Arduino boards.
  • For Pico/MicroPython, Thonny is recommended as the IDE; firmware flashing uses the BOOT method with a USB mass-storage interface.
  • C/C++ development uses the official Raspberry Pi Pico VS Code extension plus an offline SDK package.
  • Sample code is available in the wiki under “Examples” (C, MicroPython).
  • Version note: Documented steps refer to specific firmware/extension versions (e.g., Pico2 firmware, VS Code extension v0.15.2); current releases may differ.

Commands and examples – verify before use: 

set(PICO_BOARD pico CACHE STRING "Board type")

Notes and version constraints

  • The exact threshold sensitivity and contact gap of the ball switch are not specified in the source.
  • Compatibility with MCUs other than Pico/STM32/Arduino must be verified separately.
  • Flashing Pico2 firmware may cause the device to become unrecognized; the source recommends using the bundled firmware rather than the standard MicroPython firmware.
  • The documented IDE, SDK, and extension versions may be outdated; consult the latest official guides before use.
  • Safety notes regarding overvoltage or reverse polarity are absent from the source; verify correct polarity and supply voltage before connection.

Source and revision record

  • Tilt Sensor - Waveshare Wiki
  • Source revision: 69217
  • Captured: 2026-08-29T09:48:27+00:00
  • SHA-256: 082cebc5cd04af50487f22f9d2e1cfe831eefda6330d70d49ff491ba15f48fb5