Skip to main content

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
15 views

Image Display System [closed]

I am using a Raspberry Pi 4 processor running python code. I have a Pi camera. My code takes a photo, processes the image and displays it over HDMI to my Desktop screen. It is an interrupt driven ...
Robert Reese's user avatar
0 votes
2 answers
30 views

Raspberry Pi 4B and Ubuntu 22.04 GPIO

I am running Ubuntu 22.04LTS in order to use ROS-humble on my RPi, however I am running into some issues. How do I configure the GPIO pins and also is there some things that I should note. I plan on ...
msalaz03's user avatar
0 votes
1 answer
25 views

How to send 5v signal from pi?

I am using a raspberry pi 4b. I am attepting to send a signal to a motor controller that requires a 5v input. Is that possible with the pi or will i need to purchase a part. If so please advise an ...
Colin Foster's user avatar
0 votes
0 answers
22 views

Square signal generated by Pico has unexpected waveform

I developed a small program for the Raspberry Pico using the Wokwi online simulator but when I tried to use the actual device it didn't work. I started by debugging the signal generated with a logical ...
EliaB's user avatar
  • 1
0 votes
0 answers
41 views

Using Adafruit PiTFT 2.4" and I2S Amplifier MAX98357A at the same time

I built my own "Gameboy" with a Rapberry Zero, the Adafruit Display (https://www.adafruit.com/product/2455) and Adafruit Soundamplifier (https://www.adafruit.com/product/3006) running ...
Micha's user avatar
  • 1
0 votes
1 answer
18 views

Receiving String Data From Secondary Arduino on Main Raspberry PI I2C

I am working on a project where I'm trying to implement 14 RDM630 RFID sensors that will send any recorded RFID tags to the Main RPi. Unfortunately, these sensors use RS232 communication, and it seems ...
user3670842's user avatar
1 vote
2 answers
65 views

Using SPI and GPIO in Pi OS Bookworm on Pi 3b v1.2

How can I control GPIO from the CLI when I have SPI enable. I need to add a Reset signal to an application that issues the reset via a shell script, prior to launching the application. ( the ...
Andys's user avatar
  • 11
0 votes
1 answer
36 views

Using DMA + PIO to write function sample points to a DAC chip periodically

I'm attempting to make a function-generator (or AWG) with a Raspberry Pi Pico. For that, I'd like to utilize the DMA and PIO capabilities of the chip. On a DMA channel I would copy and direct sample ...
Peter Lenkefi's user avatar
0 votes
0 answers
21 views

RDP/Thony: No access to /dev/mem. Try running as root!

I am using RDP acces to Raspberry 4 Pi and Thonny to run simple code (user rdp): import board import neopixel # NeoPixels must be connected to D10, D12, D18 or D21 to work. ...
Николай Невзоров's user avatar
0 votes
0 answers
21 views

Fast way to charlieplex 7 pin on Pi Pico

I am starting a project with the Raspberry Pi Pico W in Arduino IDE. I will need to charlieplex 36 LED with 7 uC pins (LEDs= 7 * (7-1)), what I am doing for every LED every time I need to turn it on ...
user avatar
0 votes
1 answer
21 views

Connecting RPi 4 to Cyclone II

How can I connect Raspberry Pi 4 to Cyclone II ep2c5t144 via GPIO? As I understood, I need to connect RPi GPIO TX (GPIO14) and RPi GPIO RX (GPIO15) to Cyclone GPIOs RX and TX. I'm not sure which pins ...
user avatar
0 votes
1 answer
24 views

Unable to use Uart and Bluetooth in Rpi3 with audio output simulatneously

I am using Rpi 3b+ and I am trying to use the Bluetooth and UART simultaneously. with ls -l /dev: Serial 0- ttyAMA0 Serial 1 - ttyS0 I had to use the UART(for reading coordinates in gps) and ...
Aryan's user avatar
  • 1
0 votes
1 answer
25 views

Is it possible to supply power to Raspberry Pi 4 using gnd on pin 9?

I need to power the Raspberry Pi 4 using GPIO pins. In most cases, people do this using 2 or 4 pins for 5V and 6 pins for GND. But the 6th pin is already occupied for cooling, and it is difficult to ...
iamstive's user avatar
0 votes
2 answers
65 views

RPi not turning GPIO pin off causing the relay to remain on

I am a complete newbie here. I bought RPi, flashed the OS. I also bought 5v relay. I have connected the 2nd pin to VCC of the relay, 6th pin to GND of the relay, 40th pin to the 'IN' point of the ...
LearneriOS's user avatar
-1 votes
2 answers
54 views

Can I sink the 5V+ pin into a GPIO in open drain mode? [closed]

I just discovered 'open drain' mode in the libgpiod documentation and was wondering if a raspberry pi open drain pin can sink the current / handle the voltage from its own 5V pin via a pullup resistor,...
cmc's user avatar
  • 101
0 votes
1 answer
102 views

RuntimeError: Failed to add edge detectionRuntimeError: Failed to add edge detection in rpi-rf code

Thats the code to receive #!/usr/bin/env python3 import argparse import signal import sys import time import logging from rpi_rf import RFDevice rfdevice = None # pylint: disable=unused-argument ...
YDT Antone on YT's user avatar
0 votes
0 answers
104 views

Not able to access GPIO pins on my Pi5

So, I've been writing this device driver program in C to access GPIO pins. Whenever I try to install the module onto the board I get an error at gpio_request. The part I'm not able to understand is ...
Lochan R's user avatar
0 votes
2 answers
47 views

How to Control a 12V DC Siren with Raspberry Pi GPIO?

I'm currently working on a project where I need to control a 12V DC Siren (link to product: https://amzn.to/44rHsi7) using my Raspberry Pi's GPIO pins. I want to be able to play and pause the siren ...
aman kumar chagti's user avatar
1 vote
1 answer
51 views

RPi4 / BCM2711 Startup GPIO timing

I have a question related to What is the power on state of the GPIOs? I am aware that GPIO lines on the Raspberry Pi have a defined Pull-Up/-Down state at power up. However, there seems to be an ...
sAm_vdP's user avatar
  • 113
0 votes
0 answers
20 views

CQRobot Ocean: MCP23017 IO Expansion Board - "No pull up found"

I've got an IO Expansion board made by CQRobot that I'm trying to get working, but I can't get i2c to initialize. Here's the board: http://www.cqrobot.wiki/index.php/MCP23017_IO_Expansion_Board_SKU:...
Psyferre's user avatar
0 votes
0 answers
11 views

Pi4B: picamera2 and gpiozero compatibility?

I am using a Raspberry Pi 4B with a Raspberry Pi Camera Module 2 to take pictures. As a control, I made a program that just detects button presses and prints out that the button has been pressed: from ...
Gabriel Da Silva's user avatar
0 votes
1 answer
124 views

Raspberry Pi 4: Python - RuntimeError: Error waiting for edge

I am trying to get the falling edge of a HB100 doppler radar with a Lm358 amplifier module. The error is RuntimeError: Error waiting for edge It was working great and stopped suddenly. I have already ...
GuiDupas's user avatar
  • 117
0 votes
2 answers
39 views

Operation of GPIO pin affected by which HDMI moniotor I use

I have a Raspberry Pi 3B+, with a keyboard, mouse, and HDMI monitor connected to the Pi. It's being powered by a CanaKit power supply that came with the Pi. I have a string of ws2811 pixels that ...
user3629081's user avatar
0 votes
3 answers
50 views

20mhz GPIO signal: possible on Raspberry Pi models?

I am wondering whether any model of the Raspberry Pi can reliably output an 8-bit 20mhz signal into 8 GPIO pins at the same time. Basically I am trying to read 8-bits from a file at a time out to 8 ...
Patrick Hennessey's user avatar
0 votes
3 answers
254 views

GPIO not working on Debian kernel

Years ago, I installed Debian with UEFI on a Raspberry Pi 4 8Gio by following this tutorial. I never got the GPIO to work, but now I need them. I'm currently on Debian Bookworm. There is no GPIO chip ...
Cl00e9ment's user avatar
0 votes
0 answers
23 views

Maximum allowed current sink for an Output low GPIO, and the 3.3v pinouts

I'm using a TXB10x level shifter to translate 3.3 GPIOs to 5V. I plan on supplying the 5V from a DCDC power converter to the peripherals, including the RPI, and the 3.3 V I plan on sourcing from the 3....
user162459's user avatar
0 votes
1 answer
45 views

adafruit_platformdetect board.py pin mapping

Simply: I'm trying to find what physical pin on the Raspberry PI 4B that attributes like board.D5 map to. QUESTIONS: Can I simply get or create a mapping of the board.py pin attributes to actual ...
BurningKrome's user avatar
0 votes
0 answers
24 views

Problem when testing module DAC MCP4922 with Raspberry Pi

I'm encountering an issue while testing a custom-designed DAC module that utilizes an MCP4922 chip as its primary processor. The vendor provided C language test code for ESP32-S3, but I intend to test ...
Hien_lee's user avatar
0 votes
1 answer
61 views

Pico: GPIO pin need to be high at power up to ensure correct behaviour against connected 8-bit computer

I am experimenting with creating a replacement for the 8048-based keyboard for an old 8-bit Z80 computer over a parallel port, where the value is read when a strobe pin goes from high to low. I have ...
Thorbjørn Ravn Andersen's user avatar
0 votes
1 answer
219 views

Working code example for a button using GPIOd and Python

I am attempting to rewrite a bit of code that used gpiozero for a Raspberry Pi that no longer works on the Raspberry Pi 5 due to the GPIO changes in the Raspi 5. I need it to be backwards compatible ...
utdream's user avatar
  • 113
0 votes
1 answer
62 views

Gpio export fails

Trying to build Blink application from Visual Studio sample for PI. Build system runs command sudo gpio export 17 out Command return error: gpio: Unable to open GPIO direction interface for pin 17: No ...
vico's user avatar
  • 163
0 votes
0 answers
22 views

I want to use NRF24L01 transceiver with raspberry pi but some GPIO pins are already occupied by 3.5 inch display how do i connect transceiver

26 GPIO pins are already used by 3.5 inch display some of these occupied pins are needed to connect transceiver. I am using NRF24L01 for wireless communication between raspberryPi and arduino can i ...
Anuragverma2804's user avatar
0 votes
0 answers
21 views

Background process capture GPIO input

This question suggests it is doable - Script Running in Background GPIO.cleanup() on shutdown? In a desktop environment with another process displaying its window, is it possible for a background ...
kellogs's user avatar
  • 101
0 votes
2 answers
54 views

RPi randomly shutting down, maybe due to GPIO?

I am running a Rpi 3b+ headless, mostly for Pi-Hole now. Nothing external connected, not even a monitor, a mouse or a keyboard. But because it runs PiHole, and my DHCP clients use it as domain server, ...
unsafe_where_true's user avatar
1 vote
2 answers
272 views

Current proper way to interface GPIO from C code?

I've done a lot of googling and it's only confused me further; the old /sys/class/gpio way is deprecated and there's a rag-tag bunch of libraries that appear to have sprung up, none of which have much ...
John U's user avatar
  • 181
2 votes
2 answers
2k views

RPi.GPIO RuntimeError: Failed to add edge detection

I ran a python script on a Raspberrypi 4 on Raspbian Bookworm for a ups (uninterruptible power supply) quite a while. Since the latest update of bookworm the script fails. Since the script of the ups ...
uenz's user avatar
  • 89
0 votes
1 answer
221 views

Bookworm GPIO pins 8 and 17 busy

I would like to use a Waveshare e-paper display but running their test software gives this error. When I check with gpioinfo pins 17 and 8 are already being used by something and this giving this ...
Jeroen Oudshoorn's user avatar
0 votes
1 answer
145 views

How does gpiod number the GPIO pins?

With gpiod installed on a Raspberry Pi 5, you can use gpioinfo to list all the GPIO lines: $ sudo gpioinfo gpiochip4 gpiochip4 - 54 lines: line 0: "ID_SD" unused input ...
rgov's user avatar
  • 223
0 votes
0 answers
42 views

Rotary encoder noise with MCP23017 chips

I want to use multiple rotary encoders with my Raspberry Pi Zero so I have connected two MCP23017 port exander chips liked to addresses 0x20 and 0x21, and I am using the MCP23017-python library. These ...
WebDeveloper2021's user avatar
0 votes
1 answer
202 views

How to power a Raspberry Pi 4 through usb c or gpio pins?

Hello everyone I am running into some kind of problem. I want to power my Pi 4B+ through the GPIO pins via a buck converter but it just wont work. I used the LM2596 non adj 5V buck. In its typical ...
Luuk Benningshof's user avatar
0 votes
0 answers
16 views

Extend GPIO ports or another options for use an HAT en 2" LCD SCREEN

I have a project to make a small robot based on Raspberry Pi 4. I am using an Adeept Motor V2 HAT that uses all the GPIO ports to control all the elements of the robot. I would like to add a 2" ...
Xellha's user avatar
  • 1
0 votes
2 answers
34 views

Pico W GPIO seems to be not working when under load

I can blink the built-in LED using the standard code, but when running my moderately resource-intensive code, I cannot get the led to blink. I am connecting my Pico with WLAN. I interrupted the loop ...
poloPlaya's user avatar
0 votes
0 answers
24 views

GPIO pins with pijuice hat

I am currently building a website controlled bb8 based on a raspberry pi 4b, and 2 12v motors controlled by a wma4000 relays module(4 relays, 2 for each motor are used to move forward and backwards). ...
Claus de la Guardia's user avatar
0 votes
1 answer
270 views

Had to bridge the PCM5102A in order to get audio output with volumio

I’m working on a project with volumio so I decided to use this DAC for better Output. However I stumbled across a problem. I mostly followed this guide: https://raspberrypi.stackexchange.com/questions/...
TheHardwareduck's user avatar
0 votes
1 answer
89 views

What resistors do I need to connect with a rotary encoder

I have purchased some Jopto ‎JY-3DP-234 rotary encoders but have no idea what resistors to use to connect with the raspberry PI zero, if any. I am using three of the encoder pins, one to ground and ...
WebDeveloper2021's user avatar
0 votes
1 answer
96 views

Why did my servo motor break when controlling it from a raspberry pi?

I was trying to control a Tower Pro SG-5010 servo motor using a Raspberry Pi 4, with the python code below, but after working for a minute or so, the servo started not turning for some of the commands,...
guest1253's user avatar
1 vote
0 answers
37 views

MCP23017 connected to raspberry pi not showing up until I remove and reconnect SDA cable

I am testing an MCP23017 I2C port extender connected to a Raspberry Pi Zero 2w. I can get i2cdetect to detect the extender only after I remove and reconnect the cable going to SDA (GPIO2). I have to ...
joe_coolish's user avatar
-1 votes
1 answer
80 views

Connecting 12V doorbell signal to GPIO input

I'm trying to connect the signal from a doorbell to a Raspberry Pi Zero 2W to modernize the existing system with IoT capabilities. I did some measurements and I found that the terminal that powers the ...
SierraJuliettMike's user avatar
0 votes
0 answers
39 views

Connecting multiple sensors, servos, etc. to Raspberry Pi 4 B

Hello everyone 👋 I recently got a bunch of sensors, servos, transmitters, etc. (like literally I have now a hundred of different sensors) But now, how to connect it all to Raspberry Pi (in my case ...
bbybunny's user avatar
0 votes
0 answers
52 views

Trying to build a museum-like system, where a button press triggers some video and audio. Have absolutely no idea where to start with the buttons

I want to place around 20 buttons onto a wall, which will then make the Raspberry Pi send a signal to a laptop, to start playing a certain video and audio file. I've had very little experience with ...
Oskar Pärsim's user avatar

1
2 3 4 5
68