Questions tagged [rpi.gpio]

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.

Filter by
Sorted by
Tagged with
2
votes
1answer
9k views

GPIO pin output stays high after setting to low

I'm working on a project in which I have to set a GPIO pin of the Raspberry Pi to high/low in order to signal a transponder which in turn communicates with a lock and opens it when it receives a high ...
16
votes
3answers
84k views

How to correctly install the python RPi.GPIO library

I downloaded RPi.GPIO 5.3a from here: https://pypi.python.org/pypi/RPi.GPIO I extracted the tar file, cd into the folder and ran: sudo python setup.py install It ran through a bunch of stuff and ...
0
votes
2answers
3k views

Relay working at 3.3V for RPi?

I need to use my RPi to control a relay which switches on/off an electrical circuit. I got a relay board but it seems that works only when used at 5V. I'm a noob so please go a bit easy on me.:P ...
0
votes
2answers
1k views

Does anyone know of any Accelerometers that are easy to use in Python

I'm fairly new to GPIO programming and robotics with the Raspberry Pi, and was wondering what I should look out for to avoid pitfalls later when buying an accelerometer. I've heard that the GPIO pins ...
3
votes
1answer
2k views

Attaching /Detaching interrupt in C Programming

How do I attach/detach interrupts in C language. I am currently working with GPIO Pins of Raspberry Pi and want to convert statements which I used for arduino: attachInterrupt(); detachInterrupt(...
0
votes
2answers
559 views

Can I use this bridge with Raspberry Pi to drive 2 servos and a stepper motor?

I found this SainSmart L293D in amazon. I need to run 2 motors and a stepper motor for my project, the description says it can but I am not clear if they can do all the three at the same time. ...
1
vote
2answers
2k views

RF Module input is random

I have a attached a RF Transceiver to GPIO 24 and a receiver to GPIO 26. I setup a program: import RPi.GPIO as GPIO # to use Raspberry Pi board pin numbers GPIO.setmode(GPIO.BOARD) # set up the ...
1
vote
1answer
2k views

raspberry pi django and RPi

Did anyone installed RPi and use it in the django Python framework? I've tried to wire up a motion sensor with the django but I'm stuck while trying to use RPi.GPIO inside django view and I get:
4
votes
3answers
5k views

Thermostat using wireless relay

I want to create a thermostat with my Pi to control (also remotely) my heating boiler, using python if possible. Unfortunately I don't know much about electronics, so I'm asking your help just to ...
3
votes
1answer
2k views

Security issues in PHP executing PYTHON scrips

So I've got a PHP script thats capable of executing Python commands (to control GPIO), thanks to the users of StackExchange. My previous question here. Now I'm able to control the GPIO pins from a ...
4
votes
3answers
50k 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! :( ...
11
votes
1answer
2k 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
429 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 (for example, GPIO) gets to the hardware? I would assume there is a user/kernel interface. Maybe a kernel module that implements ...
2
votes
2answers
2k 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 ...
12
votes
5answers
14k 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 ...
1
vote
1answer
8k 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 GPIO....
1
vote
2answers
163 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 ...
12
votes
2answers
30k 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 things,...
0
votes
1answer
3k 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 RPi....
0
votes
1answer
2k 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. http://elinux.org/...
16
votes
7answers
44k views

Getting more than 26 GPIO pins

I would like to be able to output 75 digital out signals from the Raspberry Pi. However it has only 26 GPIO pins. Precise timing is not critical as long as it is within 1 second. I need to be able ...
13
votes
4answers
6k 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 ...