Tilt Sensor (Raspberry Pi)

by piddlerintheroot in Circuits > Raspberry Pi

13126 Views, 19 Favorites, 0 Comments

Tilt Sensor (Raspberry Pi)

Basic tutorial of how to setup a Tilt sensor with the Raspberry Pi.

Parts

Setup

VCC -> 5V

GND -> GND

DO -> GPIO 21

Code

1. Upload Script to RPI

2. To run script type: "python tilt.py"

Downloads

Additional Info