Tilt Sensor

Basic tutorial of how to setup a Tilt sensor with the Raspberry Pi. PARTS: RPI 3 – https://amzn.to/2VA9pQY 4 Amp Power Adapter – https://amzn.to/2CTptWu 16GB micro SD – https://amzn.to/2SFMwd3 120 pcs jumper cable: https://ebay.to/2VAb9cY Tilt Sensor: https://amzn.to/2FHIGw4 SCHEMATIC:   CODE: #!/usr/bin/env python import RPi.GPIO as GPIO channel = 21 GPIO.setmode(GPIO.BCM) GPIO.setup(channel, GPIO.IN, pull_up_down=GPIO.PUD_UP) def alert(ev=None): print("Tilt Detected") def … Read moreTilt Sensor

Accelerometer (ADXL345)

Basic tutorial of how to setup a ADXL345 Accelerometer with the Raspberry Pi. PARTS: RPI 3 – https://amzn.to/2VA9pQY 4 Amp Power Adapter – https://amzn.to/2CTptWu 16GB micro SD – https://amzn.to/2SFMwd3 120 pcs jumper cable: https://ebay.to/2VAb9cY ADXL345 Accelerometer: https://amzn.to/2TUEHjO SCHEMATIC: CODE: GITHUB LINK: https://github.com/adafruit/Adafruit_Python_ADXL345 Slightly Modified Script: # Simple demo of of the ADXL345 accelerometer library. Will print the X, … Read moreAccelerometer (ADXL345)