Tilt Sensor (Raspberry Pi)

5,598

17

2

Introduction: Tilt Sensor (Raspberry Pi)

About: the Raspberry Pi is Awesome!

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

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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"

Attachments

Step 4: Additional Info

Be the First to Share

    Recommendations

    • Backyard Contest

      Backyard Contest
    • Silly Hats Speed Challenge

      Silly Hats Speed Challenge
    • Arduino Contest 2020

      Arduino Contest 2020

    2 Discussions

    0
    Glumgad
    Glumgad

    2 years 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/