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.

116 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
89 views

Fully Bit-Banged SPI

I would like to be able to run SPI over whatever GPIO pins are available on my Pi (2 and Zero mainly). Is there any decent full code example for SPI Read/Write using RPi.GPIO on arbitrary pins? Speed ...
0
votes
0answers
3k views

How to use two HC-SR04 Ultrasonic sensor modules with Raspberry Pi

I am doing a project with raspberry pi. In it, i use two ultrasonic sensors and two buzzers. When one sensor finds an obstacle, within 50 - 450cm range sensor will beep and print the distance to the ...
0
votes
0answers
1k views

PIL Module not found even though it is installed

I am able to run a program normally from the python IDLE, but unable to run the program as a sudo. (I need to work with the GPIOs, so I require to use sudo.) I get a error, that the PIL module is not ...
0
votes
0answers
673 views

Raspberry Pi Frequency Calculator

I'm trying to make a simple program that calculates the frequency at a pin on the board. I'm using Python for the programming. I wrote two different programs and they gave the same (wrong!) results. I ...
0
votes
1answer
552 views

Controlling High voltage devices with Raspberry Pi

Can I control high voltage (here 5V) to power a led lamp and a fan(both operating at 5v) from Raspberry Pi GPIO only using a transistor . Or should I isolate both the circuits using a relay or octo-...
0
votes
1answer
145 views

Weird behavior of Raspberry Pi GPIO ports

I am trying to manipulate the GPIO pins using python. I have used many examples from the web. However, I noticed weird behavior of GPIO ports. 1) If I make a port high, it becomes high momentarily ...
0
votes
1answer
59 views

Is there a piece of hardware which enables hotplugging sensors to the breadboard?

The idea is the following: I have a Raspberry PI connected to a breadboard. To this breadboard, I would like to connect (digital and analog) sensors and actuators while the PI is running. Or remove ...
0
votes
1answer
331 views

Why is my GPIO not switching my attached relay?

I have a relay attached to a Raspberry Pi B+ GPIO via two wires, one wire is attached to physical pin 6, a ground pin, the other is attached to physical pin 15 (GPIO. 3, BCM 22, wPi 3). I have a 2 ...
-1
votes
1answer
147 views

Modifying input of HID via GPIO of PI (unless there is a better way?)

Basically I want to control the input of a USB HID via one or more other HIDs. I know there are commercial options available to do this however they are closed source and expensive. I'd like to get ...
-1
votes
1answer
810 views

GPIO pins always set to high

I have many pins on my raspberry pi GPIO constantly set to high, and I can't seem to set them to low, even after GPIO.cleanup(). Is my Pi faulty? Some seem to be set to low, and I can't set them to ...
-1
votes
2answers
715 views

Why is my script running twice when i autostart through .bashrc?

I'm sure this has been answered before but I can't seem to find the solution that works. I am running the latest Raspbian on an RPi 3. I created a bash script named "loop.sh" that loops through two ...
-1
votes
2answers
163 views

Traditional Light Switch Triggered by RPi?

Does anyone know of a light switch which can be controlled using the RPi and also manually. Assuming that the RPi sends a signal thru a relay which connects to the light switch. The switch will turn ...
-1
votes
1answer
186 views

GPIO modes without breaking serial

I am using and Adafruit BNO055 IMU and using their provided modules to read the data, i have been able to do so. However i want to be able to turn some of the GPIO pins to high as i want to control ...
-1
votes
1answer
357 views

webiopi simple 3 wheeled robot, not functioning

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; ...
-1
votes
1answer
3k views

Touch functionality on 3.5" LCD Touchscreen not working

I have loaded the Raspbian image onto my LCD Touchscreen for the Rasp Pi. However, the touch facility does not work. The display is there but no touch. Can anyone help? I am using the Waveshare 3.5" ...
-1
votes
2answers
354 views

RPIO Module installation

I've been trying to install the RPIO module onto my pi. so far, no luck because my pi is without internet at the moment (I only have internet on my laptop through mobile tethering). Does anybody know ...