Go to advanced search

by mckaycr
Mon Jun 20, 2016 12:23 pm
Forum: Automation, sensing and robotics
Topic: Detect when magnetic door sensor is open/closed
Replies: 21
Views: 33879

Re: Detect when magnetic door sensor is open/closed

Hey all, So I'm doing the same project right? Got pretty much the same setup you all have described above. A door switch, connected to ground and GPIO03. I'm reading open and closed fine. My next task is to place a resistor in series, but not for the safety of the RPI, but to detect tampering. Basic...
by mckaycr
Mon Feb 15, 2016 2:00 pm
Forum: Automation, sensing and robotics
Topic: Parallax PING))) ?
Replies: 21
Views: 12138

Re: Parallax PING))) ?

Hey all, so I borrowed the code you all provided above, made a couple adjustments. #!/usr/bin/python # speed of sound 1126 feet per second #13512 inches per second # import time module import time # import gpio module import RPi.GPIO as GPIO # GPIO.setmode(GPIO.BOARD) count = 0 #loop used to check v...

Go to advanced search