Questions tagged [gpio]

A versatile General Purpose Input/Output (GPIO) pin, found on a chip, can be customized by the user during operation to serve either as an input or output based on their programming.

Unexpected loss of RPi GPIO control occurs when executing script from PHP with no apparent errors

I've been working on a small program to manage the GPIO pins with Python. It was running smoothly until I tried executing the python script from PHP. Strangely, it seems like the ability to control the GPIO pins gets lost and the script crashes without any ...

Utilizing WebIOPi in Your Current Website

I'm currently navigating the complexities of WebIOPi and struggling to integrate it into my project. Here's some background information: I am utilizing a Raspberry Pi B+ with Wheezy installed. My focus is on developing a web-based application that will be ...

Execute shutdown command through terminal upon detection of a rising edge signal from GPIO input

Looking to automate the shutdown of my Raspberry Pi with GPIO #4. I want to set up a script that will run on startup. The python code is saved in file test1.py located at /home/pi #!/usr/bin/python print("Initializing") import RPi.GPIO as GPIO GPIO.setmo ...

Using Python to control the GPIO to activate an LED by pressing a push

My goal is to control an LED using a Raspberry Pi. The LED should turn on when I press a button and stay in that state until I press the button again. I've written the code below, which works fine. However, I encounter issues when I don't press the butto ...

I am having trouble running a Python script within an Express application

I have a Python script that turns on an LED on my Raspberry Pi, and I want to execute it when a button is clicked on my Express app. I've tested the script and it works fine, but for some reason, when I try to run it from the server, it doesn't work at all ...

I'm curious if it's possible to utilize Raspberry Pi GPIO pins within a JavaScript frontend

Is it possible to utilize Raspberry Pi's GPIO pins in Javascript? Specifically, I am interested in reading the values of the Raspberry Pi PIR sensor without having separate Python and Javascript applications. Ideally, I would like a solution that inte ...