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.
3,395 questions
-1
votes
0
answers
34
views
How to get my RPi4 Trixie to send a parting pulse on GPIO23 at the end of a soft shutdown?
I’m told (thanks,Grok) that at the end of a “shutdown -h now” at the very end, the kernel can send a low pulse about 100msec long out the GPIO23 pin. I will use this to have a relay then cut power ...
0
votes
0
answers
18
views
Getting inverted display when interfacing ILI9341 with Raspberry Pi 3B
I am running Raspberry Pi OS Lite (without GUI) on a Raspberry Pi 3B and have connected a generic ILI9341 display to the GPIO. I am getting inverted display, and I reckon that I am going wrong ...
0
votes
1
answer
53
views
RPi5 power using buck converter
I am using a Raspberry Pi 5 for our project. I wish to power the Pi through USB-C but without a dedicated power adapter.
I am using a XL4016 9A buck converter at 5 volts. Can i cut a USB-C cable then ...
0
votes
0
answers
58
views
How can multiple Python programs simultaneously access GPIO on Pi 5
I'm quite new to Pi programming. I know this question has been asked before but things do seem to have changed with Pi 5 and the latest Python libraries.
What is a way for 2 Python programs to access ...
0
votes
1
answer
89
views
Is this I2C setup going to fry my Raspberry?
I own a Raspberry Pi 4B and I decided to turn it into a NAS.
I recently bought a Geekworm NASPi v2.0 kit, which includes a PWM-controllable fan (X823-A3), a 2.5" SATA shield (X823), an adapter ...
0
votes
1
answer
122
views
How do I protect a Zero 2 W from improperly connecting a 12 V Power Supply?
I acquired a few Zero 2 Ws, and wired up my Zero 2 W to a L298N controller, alongside four 3-6V DC Motors. I also wired a 12V power supply to the controller.
I ended up frying a few of my Zero 2 Ws ...
0
votes
1
answer
90
views
Connecting RPI 4B to Adafruit FeatherWing RFM95W 433MHz
I wanted to connect the Adafruit LORA module to my RPI 4B.
I connected it this way:
RFM9x FeatherWing
Raspberry Pi 4B (GPIO)
3.3V
3.3V
GND
GND
SCK
GPIO11 (SCLK, pin 23)
MOSI
GPIO10 (MOSI, pin 19)
MISO
...
2
votes
4
answers
363
views
Keyboard Matrix And Pull Up Resistors
I have a question about pull-up/pull-down resistors on the Raspberry Pi Pico.
To be as brief as possible - I am trying to create my own keyboard for the learning experience and I wanted to use the ...
0
votes
2
answers
610
views
How to read a PWM signal via GPIO on PI 5?
I have custom-made a compact push-type PWM signal generator that operates on 3.3V power and outputs a 50Hz PWM signal with a duty cycle ranging from 0% to 100%. I power it using the Raspberry Pi 5's 3....
1
vote
0
answers
97
views
Asynchronously Detect and act on a GPIO OUTPUT pin change
It's easy to detect a GPIO INPUT pin state change with bash or python scripts. However I need to detect a state change of an OUTPUT pin (gpio 22) being controlled asynchronously by a different script ...
1
vote
3
answers
158
views
Need one more 5V pin for my Raspberry Pi 5
I have two vibration motor specifically this: Easy To Use PWM Vibrating Motor Module, Vibration Module, 1 Pcs Mobile Phone Vibrator Module for Electronic DIY Kit
Could I just split the 5V and connect ...
1
vote
0
answers
61
views
Realtime waveforms on a RasPi5 using python?
Is there a way (over in STM32-land, I would use double-buffered DMA banks) to output waveforms (4 pins in my case, though I'd like to do more) on a Raspberry Pi 5 in a continuous mode that won't go ...
0
votes
0
answers
71
views
The DS18B20 temperature sensor not visible by the Raspberry Pi in the Proteus
I do the laboratory work from the site of the University of Cambridge (https://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/temperature/), but using the Proteus only.
I did the schematic (VCC = 3....
0
votes
1
answer
263
views
Modbus RTU serial communications
Is it possible to connect up a rasp pi to communicate to a generic ModBus industrial control board using serial communications I think with GPIO pinning and UART? Or would you recommend using some ...
-1
votes
1
answer
178
views
Raspberry Pi Pico OLED SSD1306 - No I2C Devices Found & AttributeError
"I'm trying to get my SSD1306 OLED display working with my Raspberry Pi Pico using MicroPython, but I keep running into this error:
Traceback (most recent call last):
File "<stdin>&...
1
vote
1
answer
103
views
how do you import Rpi.GPIO as a unit test?
Im developing some code to run on the Raspberry Pi using GPIO, but most of the time Im on my desktop, where calling GPIO will break the code. I just learned about unit testing, but Im not sure how to ...
0
votes
0
answers
62
views
Waveshare rs485 Pi HAT causing high CPU usage
I am working on getting a 2 CH RS485 HAT functioning correctly on my Raspberry PI 4B. My steps I have followed are:
newly formatted SD card
install 64 bit bookworm with no desktop
sudo apt update
...
0
votes
0
answers
389
views
Qualcomm QCA7000 over SPI on Raspberry Pi 4b
I'm attempting to connect a RED BEET Qualcomm QCA7000 board over SPI to a Raspberry Pi 4B. I've added the dtoverlay=qca7000 to the config.txt and wired up the board with the Pi GPIO pins according to ...
1
vote
1
answer
252
views
No sclk with pi 5 spi0 and spidev
I'm trying to write to a spi device using a pi-5. The actual device doesn't matter - it's not working and i've simplified everything so my logic analyser is connected directly to the gpio pins (spi0). ...
0
votes
1
answer
583
views
Why does GPIO.add_event_detect fail with 'RuntimeError: Failed to add edge detection' on Raspberry Pi?
I'm working on a Raspberry Pi project using Python and the rpi-lgpio library to monitor GPIO events. My setup involves connecting a RadiationD-v1.1 (CAJOE) module to GPIO pin 11 (physical pin 23) on ...
1
vote
1
answer
2k
views
How to manage GPIOs on the Raspberry Pi using the command line? And other clarifications
TLDR; doubts:
When using CLI, what is the easiest way to manage GPIOs on the Pi? What is the more correct (official) way?
Is there some official documentation about this topic for the Pi and ...
1
vote
0
answers
140
views
Interrupt number for the device requesting irq
I have difficulty understanding how can I chose the right value for the interrupt property in my device tree.
Suppose that I connected RTC RV3028 to my Raspberry PI 4, in particular RV3028's INT pin ...
-1
votes
1
answer
100
views
GPIO.setup(BOARD.LED, GPIO.OUT)
I want to send a message using LoRa SX1278 using raspberry pi 4 as a receiver and LoRa SX1278 with raspberry pi 5 as its transmitter. we have downloaded git clone from the following link: https://...
0
votes
0
answers
255
views
Using two Pi 5s together to handle four cameras
I am not sure how to do this, but what I wanted to do is:
Using two Raspberry Pi 5 with each connecting two cameras.
The four cameras should be able to simultaneously recording 4k or HD video at at ...
0
votes
2
answers
3k
views
lgpio: 'can not open gpiochip' lgpio seems unable to open gpiochip devices
I'm trying to run a GPIO program on my rpi5 using gpiozero, but I am unable to because of the error:
Unable to load any default pin factory!
and the warning above is:
Falling back from lgpio: 'can not ...