Tilt Sensor (Raspberry Pi)

1,369

16

1

Posted

Introduction: Tilt Sensor (Raspberry Pi)

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

Step 1: Parts

RPI 3 – https://goo.gl/CdVNoH

4 Amp Power Adapter – https://goo.gl/js4Uc7

16GB Micro SD – https://goo.gl/js4Uc7

120 pcs jumper cable: https://goo.gl/js4Uc7

Tilt Sensor: https://goo.gl/js4Uc7

(ALT) Tilt Sensor: https://goo.gl/Jq7WDr

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

    • Science of Cooking

      Science of Cooking
    • Microcontroller Contest

      Microcontroller Contest
    • Spotless Contest

      Spotless Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    Comments

    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/