Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 103665

GPIO stands for General Purpose Input Output and can be used to receive and send digital signals to and from simple electronics from the Raspberry Pi.

1 vote
1 answer
191 views

How Can I Determine Why My Python Script Is Terminating?

I cobbled together a basic python script to monitor a GPIO pin and send a network signal to a remote application and made two copies of the script to correlate to two different GPIO pins and network signals … /usr/bin/env python import RPi.GPIO as GPIO import signal import socket import time #Define GPIO pin here: thiscontact = 2 GPIO.setmode(GPIO.BCM) GPIO.setup(thiscontact, GPIO.IN, pull_up_down=GPIO.PUD_UP …
rpseu's user avatar
  • 357
1 vote
1 answer
521 views

False Contact Closures - Do I Need Physical Pull Up Resistors to Resolve?

I cobbled together a basic python script to monitor a GPIO pin and send a network signal to a remote application, made two copies of the script to monitor two different GPIO pins for two different network … /usr/bin/env python import RPi.GPIO as GPIO import signal import socket import time #Define GPIO pin here: thiscontact = 2 GPIO.setmode(GPIO.BCM) GPIO.setup(thiscontact, GPIO.IN, pull_up_down=GPIO.PUD_UP …
rpseu's user avatar
  • 357
4 votes
1 answer
2k views

How to Monitor GPIO Input Indefinitely Without Recursion

Over time, I've cobbled together a fairly basic python script to monitor a GPIO pin and send a network signal to a remote application. … /usr/bin/env python import RPi.GPIO as GPIO import signal import socket import time import requests #Define GPIO pin here: thiscontact = 2 GPIO.setmode(GPIO.BCM) GPIO.setup(thiscontact, GPIO.IN, pull_up_down …
rpseu's user avatar
  • 357