rpi.gpio refers to the package name of a Python module for accessing the Raspberry Pi's GPIO pins. The module allows GPIO pins to be initialised, turned on, and turned off. It uses a functional programming style.
1
vote
3answers
162 views
PHP to execute Python scripts for GPIO
I found this code somewhere, that can execute Python scripts from PHP.
I've installed apache2 on the Pi and I'm able to access the PHP script. But when I press the HTML buttons, nothing happens! :(
...
7
votes
1answer
187 views
Using additional GPIOs as digital I/O?
hopefully this question is rather simple but my quick googling did not find the answer.
I know that the RPi has several GPIOs that I can use as well as specialized GPIOs (SPI, I2C, UART, etc). In my ...
2
votes
1answer
70 views
Is there a software block diagram that describes how a python call (e.g. GPIO) gets to the hardware?
Is there a software block diagram that describes how a python call (e.g. GPIO) gets to the hardware? I would assume there is a user/kernel interface. Maybe a kernel module that implements support ...
1
vote
2answers
217 views
GPIO input connected to garage door button
I would like to connect the garage door's button to a GPIO input on my Pi. I want to be able to trigger actions when someone pushes the button. I am able to read the status of a basic switch using ...
4
votes
4answers
299 views
Can I read the amount of light?
I'm not sure how to say it, but I would like to read the 'amount of light' with my Raspberry Pi. By the 'amount of light' I mean a number between 0 and 100 (for instance) where 0 is no light/dark and ...
0
votes
1answer
134 views
Read input from the GPIO
i was printing the input from a RF433 MHZ receiver.
I'm using this simple code, just to see what was coming in:
#!/usr/bin/python
# Hello world python
print "Gestart"
import RPi.GPIO as GPIO
...
1
vote
2answers
101 views
Is it possible to integrate RPi to a PC's GPIO? [closed]
What I mean to say I want to try something in the lines of sending a SMS to the RPi to activate my PC.
i.e. turn on the PC or turn off.
I understand there are of different architectures but is ...
4
votes
2answers
268 views
Controlling many LEDs with few GPIO pins
I successfully completed my hardware "hello world" using this guide:
http://www.raspberrypi-spy.co.uk/2012/06/control-led-using-gpio-output-pin/
Now I'd like to move on to bigger and brighter ...
0
votes
0answers
306 views
RPi.GPIO turns pin on at setup
I have an LED connected to a GPIO pin and am using RPi.GPIO to control it.
When setting up the GPIO pin, the LED blinks on ever so slightly when being initialized, which I don't want.
import ...
0
votes
1answer
228 views
“/dev/mem” — how to find GPIO mapping
I am interested to know how we can find out at which address are my hardware registers mapped on "/dev/mem".
Suppose if someone am interested to control GPIO using mmap command.
...
2
votes
3answers
766 views
Getting more than 26 GPIO pins
I would like to be able to output 75 digital out signals from the Rasberry Pi. However, the Rasberry Pi only has 26 GPIO pins. Precise timing is not critical as long as it is within 1 second. I ...
10
votes
3answers
2k views
How to include RPi.GPIO in a python CGI script with lighttpd
I've recently setup python to work with lighttpd via CGI (see here). But the minute I go to include RPi.GPIO, the script stops executing (I'm assuming because no HTML gets output), but there is no ...
