The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [gpio]

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.

492 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
210 views

GPIO 17 and 18 not working as inputs using Scratch2, OK with ScratchGPIO8plus

We've built a simple controller circuit for operating a 12v mechanical valve and some Scratch code to control it. We are running this system using a Pi3. We use GPIO (not physical pins) 4 and 24 to ...
1
vote
1answer
258 views

Programming RPi Hub module with EEPROM to use pins as GPIO output?

I have been working on a project recently that is going to require more GPIO pins than the Raspberry Pi can provide. In order to add more I purchased a RPI-Hub module, though the data sheet says it ...
1
vote
0answers
24 views

Lighting Issue On Snapshots

I'm creating a proof of concept project for my Pi 3. The concept is to take a photo using a USB webcam when a button is pressed. That part was simple using OpenCV. However, the lighting is fairly ...
1
vote
0answers
438 views

Sockets stopped working

I have set up a home automation using a raspberry pi b+ V3 as the brains main part and raspberry pi zero's located around the house at different points. I have one pi zero beside my heating, this is ...
1
vote
0answers
262 views

Segmentation fault using PWM with RPi.GPIO?

I have some simple code that plays tones on a piezo buzzer. I thought it would make sense to use the PWM support in RPi.GPIO rather than rolling my own; my resulting code looks like this: def ...
1
vote
0answers
535 views

IR Tracking Sensor (TCRT 5000 ) always gives led off as output

I am using a Raspberry PI3 Model B and TCRT 5000 sensor to monitor movement. I am using a Python script(Python3) to read the data from the sensor. Script used - #!/usr/bin/env python import RPi.GPIO ...
1
vote
0answers
144 views

How to configure pigpiod to prevent being affected by aplay

I'm using the pigpiod daemon and Python to output IR signals. I'm using raspbian jessie and rpi 3 model b gpio22 to output to leds. After starting the daemon by sudo pigpiod, it works fine and ...
1
vote
1answer
59 views

Power supply issues - reboots continuously but GPIO power working

My Raspberry Pi 2 was working with OpenELEC os properly. Suddenly it had stopped working. I don't know whether it had updated anything automatically. It is continuously rebooting. I could see the ...
1
vote
0answers
122 views

Send a command from one raspberry pi to another to begin a bash script

I would like to be able to initiate a bash script on a raspberry pi 3 that tells another raspberry pi to initiate its own bash script (to run sensors). Here is my setup: I am communicating to the ...
1
vote
0answers
989 views

How can I get my raspberry pi 3 to work with SK6812 LEDs without a screen?

I have a raspberry pi 3 and am trying to get it to run the SK6812 LEDs with no screen. When I have my ASUS monitor connected, the LEDs work fine, and when I disconnect the screen and reboot, the LEDs ...
1
vote
0answers
533 views

Raspberry Pi 3 16x2 LCD display issue

I am trying to run code to output to my 16x2 display, but when I try to run the python file, there is no visible output to the display, and the following is returned: "/usr/local/lib/python2.7/dist-...
1
vote
1answer
730 views

Connect TFT Display with jumper instead of ribbon cable?

I wanted to rebuild this RPi Zero Project: https://learn.adafruit.com/pigrrl-zero/overview But instead of paying 50(!) Dollars for a 2.8 Inch TFT i wanted to get some other lcd... I do still need ...
1
vote
2answers
705 views

Interfacing with a 24V IO device

I have a UR10 industrial robot arm that I'd like to communicate with using it's IO board with my Pi 3B. I would like the arm to perform a pick and place routine after I detect that some operation is ...
1
vote
0answers
564 views

Sense Hat import error

I made a python program for my Raspberry Pi a while back and it uses my sense hat and motion sensor both connect via gpio by using a TriGpio expansion board and it worked for a while until recently ...
1
vote
0answers
150 views

Issue calling commands behind Tkinter

I'm trying to get an audio playback system on a Raspberry Pi to play back a selected sample in Python when the GPIO detects an input from an Arduino, (stepped down to 3.3V). Here a simplified section ...
1
vote
0answers
145 views

moding a hozelock water valve with raspi

I am new to electronics and could use some pointers from you good people. I am wanting to modfiy a hozelock AC1 water control valve (i have one hanging around) so i can control the valve using a ...
1
vote
0answers
185 views

Signals Over Long Wires using raspberry pi 3 model b

I have a pi 3 b with me, The task is to control relay modules to switch on and off the lights for my entire building from my office . In my building I have almost 16 rooms and far most room is about ...
1
vote
0answers
41 views

RPi3/B DC characteristics

I'm looking on page 13 of this datasheet for the Raspberry Pi's compute modules (CM1, CM3, and CM3L), and in Table 5 "DC Characteristics" under the "Conditions" column there is an undefined condition ...
1
vote
0answers
155 views

Can I enable a HDMI auto detect to substitute a GPIO screen

Ok so I am running raspbian jessie pixel on a pi 3 b and I have installed adafruits 3.5' piTFT and it uses the GPIO pins and I would like to know if I can cause it to auto detect HDMI on boot and oly ...
1
vote
0answers
52 views

How to determine from hardware, when I can shut off a Raspberry Pi 3

I am wiring up a raspberry pi to use a battery supply and I would like it to be a single switch controlling its power. Obviously, I don't want to cut power when its running, but I also don't want two ...
1
vote
0answers
279 views

Raspberry Pi 16X2 LCD wrong output

I want to display some text on my 16x2 LCD display with my Raspberry Pi 3 with Windows IoT, but the output is completly unreadable. My wiring should be good so I don't know what is the problem. I ...
1
vote
1answer
281 views

Parallax RFID Serial Not reading tags

I am a complete newbie with Raspberry Pi and any type of hardware prototyping. I have been trying to get a Parallax RFID working with my Pi 3. I currently have it wired to the GPIO using BCM and the ...
1
vote
0answers
144 views

Multiple push buttons act as one

I know that the question from the title isn't quite new but any question before answer really to the problem I'm having. I have manage to make different push buttons to work on the RPi (it's a RPi3 ...
1
vote
0answers
327 views

Python GPIO Script does not work in background

I have written a script to open/close my roller shutter using two buttons and a relay. One button to open, one button to close. Here is my script : import RPi.GPIO as GPIO import time relay_pin = ...
1
vote
2answers
333 views

Pi3 Model B reaching 100+ degree Celsius immediately after boot

Have a Pi3 Model B, was playing around with GPIO and trying to integrate a PIRO sensor (IR). Must have done something wrong with the circuit as now the Pi immediately reaches 100+ degree Celsius ...
1
vote
0answers
72 views

Can't turn on Sense Hat

I was trying to disable Sense Hat's function of IMU by writing python code. GPIO.setmode(GPIO.BCM) GPIO.setup(2,GPIO.OUT) GPIO.output(2,GPIO.HIGH) This was very successful because now when I try to ...
1
vote
0answers
477 views

PHP Doesn't Execute Python Code

led.py #!/usr/bin/env python import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(7,GPIO.OUT) GPIO.output(7,1) time.sleep(5) GPIO.output(7,0) GPIO.cleanup() index.html: (these 2 ...
1
vote
0answers
295 views

GPIO.wait_for_edge misbehaving in a loop

I have square signal attached to the pin 23 and am running the following code to detect how long does the pulse width last: import RPi.GPIO as GPIO import time SENSOR_PIN = 23 GPIO.setmode(GPIO.BCM)...
1
vote
0answers
327 views

Why did my Raspberry pi blow up?

Thanks in advance for reading guys. Last night I set up a circuit to see if I could heat up a resistor to about 60(ish) degrees C but do it with the resistor part of the circuit on paper. This ...
1
vote
1answer
61 views

How do i plug my rpi3 into this type of l293d?

I bought an l293d from amazon and it came like this with no enable pins or ground for either the rpi or the battery pack for the motor.
1
vote
0answers
596 views

Raspberry Pi Zero 433mhz transmitter fails but works on raspberry Pi 2

So I am using some 433mhz modules. I had them setup on my raspberry Pi2 and everything worked perfect. They could transmit and receive signals. I switched the entire configuration over to a raspberry ...
1
vote
0answers
226 views

Accidentally shorted my Pi

I made a little "montage" where I could control LEDs with my Pi and accidentally shorted the 5 V with a 12 V 7 A. Now, the Pi won't even start, no red LED or anything. Is it broken or is there a way ...
1
vote
0answers
170 views

How to connect RPi 2B with SM900?

I have a Raspberry Pi 2B and a SM900 module and I want to make a UART connect with jumpers using raspberry GPIO and the shield pins. My problem is how could I make it? How to power up the SM900? I ...
1
vote
0answers
2k views

Testing 433 MHz Receiver- Data Pin Indicating Constant Signal

I'm trying to understand what's happening with the 443 MHz receiver I've plugged into a Raspberry Pi3. When I plug the data pin into GPIO 21 and I run a simple python sniffer script to plot the ...
1
vote
0answers
219 views

Using several sensors at the same time, e.g. 1wire and regular GPIO input

I'm doing my first Raspberry Pi project, in which I want to get input from several sensors at the same time. I bought a DS18B20 temperature sensor, which is 1wire, and am able to get input with the ...
1
vote
0answers
1k views

Cannot get pigpio PWM to work with an AC dimmer module

I am using an AC dimmer module to dim a 240V light. I would like to use node.js so I am using the pigpio module. The script is not working as expected as the light bulb goes straight to 100% when I ...
1
vote
0answers
160 views

how to expand GPIO pin for raspberry but still can use pigpio library

If I want to expand GPIO pin that can use as input/output on raspberry via I2C is whether I can use these pin with pigpio library?
1
vote
0answers
97 views

Why was my last AT command routine is not viewed in the output?

As I was using pigpio ,so that I can use the GPIO pins as UART or bit banging the serial. I am using a SIM900 gsm module. Here is the code: import pigpio import time import sys TX=23 RX=18 baudrate=...
1
vote
1answer
349 views

Access GPIO pins through a Flask + Apache/mod_wsgi

I get an internal server error when I import the gpio pins library in my simple __init__.py file. And the debugger doesn't show up. As I understand it, the server doesn't have the permission to ...
1
vote
0answers
117 views

What will happen if I Power-ON RPI simultaneously from GPIO Header Power pins and Micro USB?

What will happen if I Power-ON RPI simultaneously from GPIO Power pins and Micro USB? For RPI1,RPI2 & RPI3
1
vote
0answers
161 views

Raspberry Pi Model B+ pins not working with Ubuntu 14.04

I installed Ubuntu 14.04 on Raspberry Pi Model B+ and everything worked fine. However I found out that the pins are not functioning. I tested it with a multimeter, and even the Vcc pins (5v, 3.3v) do ...
1
vote
0answers
298 views

Using three SPI channels with wiring pi?

I was wondering if there is a way to use three different channels for SPI through the wiring pi library. I mean I know that a chip/slave/channel select pin can be any pin capable of sending a high or ...
1
vote
0answers
165 views

Connecting angular encoder to an INTERRUPT to count cycles

I'm building a Robotic Car, the 4 DC Motors are working perfectly. I need to know the speed of its moving using an Encoder. Encoder that I use: has two edges (transmitter & receiver) and a ...
1
vote
0answers
475 views

DHT22 not working on Raspberry Pi2

I have DHT22 sensor hooked up to my Raspberry Pi2 running default Raspbian image. I have similar setup on Raspberry Pi B and it is working. I am using Adafruit library for DH22. However when I try ...
1
vote
0answers
306 views

Raspberry + Breadboard externally powered: issue on logic

I have this kind of trouble. I'm working on a project that implements several load (some relays, or motors, etc). Or, more simple, I would light 6 LEDs in series, all togethers, with only a GPIO (let'...
1
vote
3answers
299 views

How to display gpsd.utc using paint or similar method

I am receiving reliable gps data from my Adafruit gps sensor. I would like to to show the gpsd.utc data across the screen so that it appears like a regular clock. I have the following code which shows ...
1
vote
0answers
127 views

Need help using Bus Pirate SPI with Rspberry pi

I am using a Pi 3 I recently acquired for a project at work. I am pretty new to most of this electronics, so a large pool of ignorance may follow. Also, if you are not familiar with the tool i used on ...
1
vote
0answers
1k views

Execute I2C functions from web page on Pi running LAMP

I know these type of "what's the best way" questions are frowned upon on StackExchange, but I will try to fit it within the guidelines. I have tried several methods and can't figure out which is the ...
1
vote
0answers
108 views

Thermometer no longer working

I am running the below lines to try to load my two therms. sudo modprobe w1-gpio sudo modprobe w1-therm ls /sys/bus/w1/devices All I am getting is 00- instead of 28- I have checked wiring, works ...
1
vote
0answers
283 views

LED button doesn't work

I have tried connecting a LED with a button like this (from "Adventures in RPi"), but with the far end of the button plugged at G (instead of F). And I ran it with the following Python program (by ...