Tilt Sensor (Raspberry Pi)

3,473

17

2

About: the Raspberry Pi is Awesome!

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

Step 1: Parts

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

Share

    Recommendations

    • Arduino Contest 2019

      Arduino Contest 2019
    • Tape Contest

      Tape Contest
    • Trash to Treasure

      Trash to Treasure

    2 Discussions

    0
    None
    Glumgad

    1 year ago

    Yes, you can make a lot of fun toys with a tilt sensor.

    Like that for example https://www.instructables.com/id/Make-Your-Vampire-Robot-Dance/