Introduction: Tilt Sensor (Raspberry Pi)
Basic tutorial of how to setup a Tilt sensor with the Raspberry Pi.
Step 1: Parts
RPI 3 - https://amzn.to/2VA9pQY
4 Amp Power Adapter - https://amzn.to/2CTptWu
16GB micro SD - https://amzn.to/2SFMwd3
120 pcs jumper cable: https://ebay.to/2VAb9cY
Tilt Sensor: https://amzn.to/2FHIGw4
Step 2: Setup
VCC -> 5V
GND -> GND
DO -> GPIO 21
Step 3: Code
1. Upload Script to RPI
2. To run script type: "python tilt.py"
Step 4: Additional Info
Online Guide: https://www.piddlerintheroot.com/tilt-sensor/