User Manual

48
Lesson 8 Vibration Switch
Introduction
A vibration switch, also called spring switch or shock sensor, is an electronic switch which
induces shock force and transfers the result to a circuit device thus triggering it to work. It
contains the following parts: conductive vibration spring, switch body, trigger pin, and
packaging agent.
Components
- 1 * Raspberry Pi
- 1 * Breadboard
- 1 * Network cable (or USB wireless network adapter)
- 1 * Dual-color LED module
- 1 * Vibration switch module
- 2 * 3-Pin anti-reverse cable
Experimental Principle
In a vibration switch module, the conductive vibration spring and trigger pin are precisely
placed in the switch and fixed by adhesive. Normally, the spring and the trigger pin are
separated. Once the sensor detects shock, the spring will vibrate and contact with the trigger
pin, thus conducting and generating trigger signals.
In this experiment, connect a dual-color LED module to the Raspberry Pi to indicate the
changes. When you knock or tap the vibration sensor, it will get turned on and the dual-color
LED will flash red. Tap it again and the LED will change to green just between the two colors
for each tap or knock.