Introduction: Vibration Sensor SW-420 (Raspberry Pi)

Picture of Vibration Sensor SW-420 (Raspberry Pi)

Basic tutorial of how to setup a SW-420 Vibration sensor with the Raspberry Pi.

Step 1: Parts

Picture of Parts

RPI 3 –

4 Amp Power Adapter –

16GB Micro SD –

120 pcs jumper cable:

Vibration Sensors:

Step 2: SETUP

Picture of SETUP

1. Wire VCC to 5v, Ground to ground, and D0 to gpio 17

2. Upload python script to Raspberry Pi