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
26 views

Why are my motors not working with my Raspberry Pi?

I'm trying to follow this tutorial on how to build a buggy with a Raspberry Pi. I'm using all the same parts except for the Pi and the battery. I am using a Raspberry Pi 4B and an 8.4v battery from ...
0 votes
1 answer
102 views

Can't drive GPIO_12 on Pi Zero 2

I'm having trouble driving GPIO12_PWM on a PI 2 Zero high (physical pin 32 on 40 pin connector). I can drive other GPIO pins low or high but not this one. I see that it is a PWM pin, so maybe that is ...
0 votes
0 answers
10 views

Issues with manipulating dtoverlays at runtime

while trying to write some code for controlling a pwm fan i ran into the problem of not being able to refresh my dtoverlay. Meaning this set of commands leads to a broken terminal: sudo dtoverlay gpio-...
0 votes
1 answer
86 views

Does GPIO27 need special handling when used as digital input?

I have three rotary encoders (with switch) connected to GPIOs (16,17,18), (19,20,21), (22,26,27). For quick testing of working I/O, I put all of them to input mode, with internal pull-up, and watch ...
0 votes
1 answer
57 views

Toggle 240v motor load with raspberry pi

I am working on a project where I would like to power on and off a 240v industrial fan with the raspberry pi. Basically the idea is to tap into the 240v line and add a relay that the pi can control ...
0 votes
0 answers
18 views

RPi.GPIO works on one Pi Zero 2, but not the other

I've got a python script that uses RPi.GPIO to exercise some solenoids connected to two Pi Zero 2Ws. Both are running 64 bit Raspberry PI OS and both are up-to-date (bookworm). On one of them, ...
1 vote
1 answer
840 views

LIRC sending error transmission failed [closed]

I am trying to set up and send IR-Signals with my Pi using LIRC I was already able to receive signals and to configure them as a remote device. I followed this tutorial : https://gist.github.com/...
1 vote
1 answer
214 views

Best Way To Power Raspberry Pi Zero and External 4.5 - 36v Circuit

I am creating a drone where I have a Raspberry Pi Zero, and a Motozero. I need to supply the Motozero with power from 4.5 to 36 volts as well as the Raspberry Pi Zero. What is the best way to do ...
1 vote
1 answer
3k views

Rpi3b+ to Rpi3b+ jtag/SWD connection and OpenOCD

I'd like to hook together two Raspberry pi 3b+ to use jtag/SWD with OpenOCD. I learned it can be done, but implementing it has proven challenging. I have two questions: How to connect the Rpi's. If I'...
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 ...
0 votes
2 answers
35 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 ...
1 vote
1 answer
62 views

I2C Interfacing with HIH6130

I'm trying to read data from sparkfun's HIH6130 Breakout for measuring humidity and temp data. Following this instructable (though without the i2c shield for the pi), the provided python code just ...
0 votes
1 answer
18 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 ...
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 ...
2 votes
1 answer
67 views

magnetic field generated by the engine alternator affects gpio value

I am working on a dashboard for a motorcycle. I created a Qt application on my raspberry pi 4 on a raspberry pi os lite. I have configured one of my GPIO as interrupt using the wiringPi library. ...
1 vote
1 answer
2k views

libgpiod read value Operation not permitted

Trying to read the values from gpio chips in a Python script using the gpiod python module. When calling get_value() we are getting "Operation not permitted". Have tried running the python ...
0 votes
1 answer
300 views

force_eeprom_read=0, but RPi4 still stuck at rainbow screen

I have made a custom PCB/Hat for a Raspberry Pi and I need to use ID_SD and ID_SC as general GPIOs. At the moment Raspberry Pi 4 gets stuck at Rainbow screen when booting (with Raspberry Pi 3B+ ...
0 votes
1 answer
113 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 ...
1 vote
1 answer
201 views

DHT11 Temprature sensor makes raspberry pi go crazy!

I am trying to use the DHT11 sensor temprature and humidity sensor with my Raspberry Pi 4B. When I connect the sensor with my Raspberry Pi and turn it on, the red LED on it starts blinking and it can'...
0 votes
1 answer
27 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 ...
0 votes
1 answer
246 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 ...
2 votes
1 answer
667 views

Solved GPIO pin PULL_DOWN would

I have set up a Arduino to send a 3.3V signal to my RPi if an object is detected in front of the UltraSonic sensor. I have measured the signal at 3.26V. But it does not work. Since the signal from ...
0 votes
3 answers
286 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 ...
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 ...
0 votes
3 answers
429 views

RPi pin state on startup not default

I have 2 Raspberry Pis a model 3B+ and a model 2. Both are loaded with identical software (I cloned the SD card using the raspberry SD card copier). They are running PRETTY_NAME="Raspbian GNU/...
0 votes
2 answers
2k views

Raspberry pi and microbit working together

Can I do a pin out from raspberry pi onto a breadboard and have a microbit setup to receive that pin out and have the microbit run a command on pin in? Or can I have the raspberry pi send a signal to ...
0 votes
1 answer
163 views

Detecting connections between non-GPIO and GPIO pins in Pico?

XY-problem I have a keyboard that consists of two halves. Each half uses 16 pins. The pins in each half are aligned in a 8x8 matrix yielding 64 key presses that can be detected, and two times 64=128 ...
0 votes
0 answers
45 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 ...
2 votes
2 answers
275 views

Stepper Motor Not Responding. Wiring Issue?

I am following the tutorial: But I am using a pi t-cobbler and a Pi 2. I am also using the ULN2803 driver. When plugging a button into the appropriate gpio spots on the breadboard, I am able to run a ...
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 ...
2 votes
1 answer
91 views

fork() Process Issue on Channel Switching via Rotary Encoder

I have KY040 rotary switcher(encoder) as shown below picture. It is the scenario that there are 5 radio stations(simple html url) in urls.txt which are read into stations list in radyoCS.py, at every ...
2 votes
1 answer
131 views

Javascript pm2 fails to persist my scripts at RPI boot time

I do this to make my scripts run on Raspbian start: sudo pm2 startup ubuntu sudo pm2 start my_script.js sudo pm2 start another_script.js Yet, RPi starts without them, what can be wrong?
1 vote
2 answers
76 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 ...
0 votes
1 answer
38 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 ...
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 ...
0 votes
1 answer
334 views

RaspberryPi 2 GPIO stopped working

I have RaspberryPI with Arch Linux and everything was going well, until this morning when I tried to do my usual work on it, it sounds like nothing happening at all, I have checked with pintest (I use ...
0 votes
3 answers
1k views

How to turn off the Raspberry Pi fan when shutdown

I purchased the official raspberry pi 4 fan and follow the documentation to setup the fan. The fan turned on in the beginning when power on my raspberry pi 4 then it's off after finish boot up. When I ...
0 votes
0 answers
22 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. ...
0 votes
1 answer
106 views

How can I connect an EasyADC board mikroe340?

I've got a 4-channel 12-bit ADC "Mikroe340" from Mikroelektronika (datasheet). I'm wondering how to wire it with GPIO.
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 ...
0 votes
1 answer
2k views

Connecting Hifiberry Digi+ clone (PiFi Digi+ V1.0) to an Raspberry Pi 1 B (26Pin Header)

Hi I wanted to make use of an older Raspberry Pi and build an Volumio Music Player. I ordered Hifiberry Digi+ clone (PiFi Digi+ V1.0), unfortunately I forgot I own an older Raspberry Pi 1 B with the ...
0 votes
1 answer
2k views

How to hook up multiple devices with sda pins?

I am building something with raspberry pi. I am using the 16x32 led matrix as well as the port expander (MCP23017). Both use the SDA and SCL pins. I am having trouble hooking it up. I realize this may ...
0 votes
1 answer
847 views

DHT22 code not working (datasheet instruction and xenomai)

I'm trying to read temperature form DHT22 using Raspbian patched with xenomai real time system. I'm following steps of datasheet page 4 using gpio4. . the circuit is correctly wired(I can read with ...
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 ...
8 votes
5 answers
38k views

Raspberry Pi 3 model B "dtoverlay=gpio-shutdown"

To my /boot/config.txt on Raspberry Pi Model B I added: dtoverlay=gpio-shutdown,gpio_pin=3,active_low=1,gpio_pull=up Right now nothing happens when i shorten GPIO#3 with ground. What else needs to ...
11 votes
4 answers
17k views

LIRC won't transmit (irsend: hardware does not support sending)

I’m trying to control an IR HVAC unit in my house with a Raspberry Pi 2 and an infrared shield (see here: http://bit.ly/29iC0lr). I followed the instructions on the IR shield product page with tips ...
0 votes
2 answers
876 views

Unable to power on Raspberry Pi 400 by shorting GPIO pins 5 and 6 (WAKE_ON_GPIO)

I have a Raspberry Pi 400 and am unable to get my Pi to wake when I short GPIO pins 5 and 6. I tried installing the latest version of the bootloader using raspi-config and checked my eeprom file to ...
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 ...
0 votes
1 answer
302 views

Controlling multiple servo motors on rpi 4

Do I need a hat module for my raspberry pi to control 6 servos? I’ll be using an external power source.
2 votes
1 answer
723 views

Controlling stepper motor with Raspberry pi

I am building a sorting machine for a project where I want to sort the balls based on their color. For the actual sorting mechanism I am using a stepping motor (NEMA 17 with Driver DRV8825). I ...

1
2 3 4 5
69