Tilt Sensor (Raspberry Pi)

by piddlerintheroot in Circuits > Raspberry Pi

12233 Views, 19 Favorites, 0 Comments

Tilt Sensor (Raspberry Pi)

Tilt.png

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

Parts

vlcsnap-7613-10-29-02h50m09s324.png

Setup

schem.PNG

VCC -> 5V

GND -> GND

DO -> GPIO 21

Code

vlcsnap-7719-03-05-19h52m18s760.png

1. Upload Script to RPI

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

Downloads

Additional Info

vlcsnap-piddler.png
Tilt Sensor (Raspberry Pi)