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
0 answers
50 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
0 votes
0 answers
20 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
58 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
35 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
30 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
0 votes
1 answer
29 views

compiler linking error GPIO libraries no longer initialising

I am working on a private project and have run into a linking error described below: undefined reference to `gpioSetMode' collect2: error: ld returned 1 exit status I am using g++ and the terminal to ...
winterx0's user avatar
0 votes
1 answer
57 views

RPi Pico: Is it dangerous to set GPIO drive strength of 12mA on all the UART-related pins

I'm working on a project with the RPi Pico that makes use of both the UARTs and has two LEDs attached to other random-ish GPIO pins. The LEDs will probably be turned on for the majority of time that ...
HackerDaGreat57's user avatar
0 votes
0 answers
37 views

Accurate PWM pulse length with PIGPIO

EDIT: Added details/clarity I’m using the PIGPIO library on an RPi4, using the monitor_pwm/read_pwm example to get the time signal from the WWVB AM radio broadcast. (http://abyz.me.uk/rpi/pigpio/code/...
Arlo's user avatar
  • 21
0 votes
1 answer
50 views

Is there a gpio readall utility for Pi5?

Is there a workable replacement for the gpio readall utility for Pi5?
Milliways's user avatar
  • 59.5k
0 votes
0 answers
44 views

Raspberry stuck with red light (no green light) after trying to connect with 7inch display and GPIO

I bought a Raspberry 5: I run the first configuration and everything seems to work. in the past, I had purchased the official 7-inch display for a Raspberry 3: however the display cable (the flexible ...
Danilo's user avatar
  • 1
0 votes
2 answers
61 views

Multiple (ramped) square waves, independently controlled (multi stepper motor control)

TLDR; how to smoothly run two or more independent stepper-motors from a raspberry? I have been reading, testing, monitoring and finally now asking to figure this out. I am attempting to control two ...
anrola's user avatar
  • 1
0 votes
0 answers
8 views

LIRC can not load conf file, irsend returns "unknown remote"

Pi-5 GPIO I am getting error while sending irsend command.' $$$: irsend SEND_ONCE monitor menu unknown remote "monitor" Error running command: Input/output error in my lircd.conf: include &...
Crisps's user avatar
  • 1
0 votes
0 answers
30 views

Save 3.3V + 5V short circuit [duplicate]

I am very new to Raspberry Pi, and I believe I may have accidentally shorted my 3.3V GPIO pin by connecting it to the 5V one, while using a multimeter. My Pi won't boot and only shows a red light when ...
idontknowwhattoputhere's user avatar
0 votes
1 answer
41 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 ...
Logan Holmes's user avatar
0 votes
1 answer
29 views

sysfs pwm: corresponding pins and LED driving

Using a Raspberry Pi 3B+ with Linux raspberrypi 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux I would like to drive an LED with pwm. There are two couples of GPIO pins which ...
BowPark's user avatar
  • 101
0 votes
1 answer
77 views

I think I shorted my pi's gpio pins

I think I fried my raspberry pi 4B ( revision 1.5 I think ). I was powering it via the gpio pins ( pin 2 and 6 ). Unfortunately since I was using crocodile clips I think I have touched GND with pin 8. ...
Daniel Zaprev's user avatar
0 votes
0 answers
27 views

I'm trying to drive a neopixel from my raspberry pi, but am unsure what the maxiumum length of my data cable would be

So I'm trying to run some neopixels off of my raspberry pi (which is possible through using the sound chip for a real time signal), my raspberry pi will be located some distance from the led strip, so ...
Brendan Mesters's user avatar
0 votes
1 answer
31 views

How can I use a RPi interfacing with a Python program to count PWM pulses in the 0-40 khz range?

How can I use a RPi interfaced with a Python program to count PWM pulses in the 0-40 khz range? The Pi would not be generating the pulses. I don't see any similar questions. I am a total newbee to ...
MORTIMER SCHNERD's user avatar
0 votes
3 answers
1k views

Raspberry Pi 5 GPIO library questions

This Q reflects some of the reservations expressed in another Question here. I too have questions re "The future of GPIO access on Pi 5"; hopefully, the questions here are answerable ...
Seamus's user avatar
  • 21.7k
0 votes
0 answers
21 views

Missing light sensor events but hardware seems to see them

My configuration is a a red laser (5V) and a light sensor (Dollatek) which outputs a HIGH signal if no light is detected. Using a potentiometer the sensitivity can be adjusted. I set it so that the ...
Krumelur's user avatar
  • 101
0 votes
0 answers
14 views

Diagnosing / Debugging I2C comms on the command line

This is sort of a vague question, and I apologize for that. I am trying to gain enough understanding and context to ask a more detailed one. But here goes: Q: To what extent is the I2C bus self ...
jojo hohanon's user avatar
0 votes
0 answers
22 views

Connecting 40+ transmitter coils to Raspberry Pi

I am currently working on a school project to make the wireless charging platform from scratch but with more surface for originality. My current design requires 42 transmitter coils and these coils ...
Martin's user avatar
  • 1
0 votes
1 answer
51 views

It is safe to connect the PWM pin of a 4-wire FAN directly to the Raspi PWM output?

I have a 4-wire PWM FAN. The PWM pin it seems to be pulled-up to 12V with a 47k ohm resistor. Now, with this pin floating, it has almost 12V on it. And this pin must be connected to the Raspi PWM ...
Marus Gradinaru's user avatar
1 vote
2 answers
45 views

GPIO input pins high at 3V, and detect when ground is connected when I want it to detect when 3V is connected

This is on a Raspberry Pi Zero 2 W The physical pin 3 and 5 (gpio2 and gpio3) are the input pins I am using and for whatever reason, they are at default 3V and detect a change when they are connected ...
prestonferry's user avatar
0 votes
1 answer
36 views

Undervotage detected while using UPS hat (b) on wheel robot

I am doing a mecanum wheel robot project included 2 motor drivers l298n. I use raspberry pi 4 GPIO to control the motor drivers and my power supply for rpi is an UPS hat (b). I keep receiving ...
Phạm Phương Nam's user avatar
0 votes
2 answers
1k views

Problems connecting a servo to raspberry pi 5

I have recently tried to use a servo on a raspberry pi 5 using import RPi.GPIO as GPIO from time import sleep GPIO.setmode(GPIO.BOARD) GPIO.setup(17,GPIO.OUT) p = GPIO.PWM(17, 50) p....
laurits's user avatar
0 votes
2 answers
153 views

Slow pigpio, much slower than RPi.GPIO

I'm developing a system based on Raspberry pi 4B, with a 32-bit Bullseye OS. I'm using pigpio for SPI and GPIO, and I have observed that the delay between command executions is huge. I have run a ...
kubajed's user avatar
  • 21
0 votes
0 answers
81 views

Using an i2C OLED display with lgpio and a kernel newer than 5.11

I'm on Ubuntu 23.10 on a RPI 4 and the kernel used here is not compatible with RPI.GPIO because -- as far as I understand -- RPI.GPIO cannot see if multiple processes are trying to use the same pins. ...
JensOtto's user avatar
0 votes
0 answers
65 views

RPi Zero as 4-pin-fan-controller: Faulty RPM readings on open collector with gpiozero

Introduction and Goal Disclaimer: I do not have profound but basic knowledge in electronics and hardware and my python is a bit rusty. For tl;dr, jump to the problem section below. Hello, I'm trying ...
ArmoredGoat's user avatar
1 vote
0 answers
34 views

When I put a bit in GPSET to 1, what is the actual mechanism that "reads" this register and put the electric line to HIGH Voltage? Who does this? How?

I don't know what is the actual mechanism. When the CPU sets that register(GPSET)'s bit to 1, what entity/element reads that and is responsible to activate the electric line to HIGH? How is this done?
Allexj's user avatar
  • 111
0 votes
2 answers
3k views

wiringPi giving "Unable to determine board revision from /proc/cpuinfo" error after kernel 6.1 update

I was using wiringPi to to control the GPIO pins on a Raspberry Pi model 3 and 4b (these originally had Buster installed on them) successfully until today when I did a rpi-update to get kernel 6.1. ...
Baxter's user avatar
  • 11
0 votes
1 answer
1k views

Future of GPIO access on Pi5

I should make it clear that I do not have a Pi5 (all the authorised resellers in Australia are out of stock - and I can't even preorder - my normal supplier got a few in late November, but they sold ...
Milliways's user avatar
  • 59.5k
0 votes
1 answer
51 views

Can I use the Adafruit PiOLED while using the fan pins on the RP4?

I have a feeling I'm not unable to do this but I would still rather ask the more knowledgeable folks just in case I'm either wrong or you happen to have an alternative suggestion. I have my RP4 on a ...
bakashinji's user avatar
0 votes
1 answer
38 views

Sonic Pi control

I would like to control Sonic Pi via the Rasberry Pi GPIO pins. For example if a pin goes high, a tone starts playing. It appears that Sonic Pi can only be controlled on the local machine using OSC ...
Mike Breytenbach's user avatar
5 votes
1 answer
743 views

Turn off GPIO fan when the temperature lowers by more than 5 degrees

I am able to trigger my Raspberry Pi 3B's fan to turn on at 50 °C with the following line in /boot/config.txt: dtoverlay=gpio-fan,gpiopin=3,temp=50000 However, it automatically turns off again when ...
Paradox's user avatar
  • 153
0 votes
1 answer
48 views

GPIO 2 Shut Down Not Working

I have a Pi 3B+ with an adafruit matrix bonnet. Im trying to shutdown the Pi with a single pole double throw switch I had laying around. I'm currently able to get the power on working through GPIO 3. ...
VictorC's user avatar
-1 votes
2 answers
53 views

Flash a LED at 27kHz with Precise Timing

I'm trying to flash a LED at 27kHz for a project and using the general GPIO the fastest I can get is around 3kHz. Any library's that would be suitable for this? # Import the libraries import RPi.GPIO ...
Stuart Brody's user avatar
0 votes
0 answers
81 views

Can't read temperature from Adafruit RTD 3 wire sensor and max31865 chip

I'm trying to read temperature from a 3-wire PT100 sensor and max31865 chip. The chip has the correct jumpers soldered to define it as 3 wire. I have tried to follow these instructions as closely as ...
tomh's user avatar
  • 135
0 votes
1 answer
201 views

Connecting Two SPI LCD to raspberry pi GPIO pins

I am doing my NEA project right now and I have a problem using 2 TFT LCD. Here are more details about the LCD 2.8" LCD SPI, Driver: ili9341 with touch version 1.2, this a picture of it: I have ...
Mohamed Ahmed's user avatar
0 votes
1 answer
50 views

Raspberry Pi GPIO ports extension

I would like to control a large number (hundreds) of GPIO ports with a Rapberry Pi for high voltage applications such as controlling Nixie tubes (but this woulbe be applicable to any kind of GPIO ...
mannaroth's user avatar
  • 111
0 votes
0 answers
35 views

Trying to make a small games device with Raspberry Pi Zero, help with battery?

I'm trying to make a small retropie emulator with a Raspberry Pi Zero. I would preferable like to make it as small as possible. I am thinking of using this premade HAT for the Pi, as I am not very ...
Rishi Sampath's user avatar
0 votes
0 answers
157 views

Failed to add edge detection - Raspberry Pi 4 GPIO

I am trying to run a LoRa receiver using python from time import sleep from SX127x.LoRa import * from SX127x.board_config import BOARD BOARD.setup() class LoRaRcvCont(LoRa): def __init__(self, ...
Guilherme Gomes Zucco's user avatar
0 votes
1 answer
42 views

Can I do PiFM, just on 13.56mhz?

I want to broadcast on 13.56mhz from the GPIO pins, just like with PiFM (except PiFM is like 85-105mhz). Is there a simple way to do this? Thank you!
Kovy Jacob's user avatar
0 votes
1 answer
45 views

Many piezo crystals driven by Pi? [closed]

I'm considering starting a new RPI project that will end up being a haptic feedback suit for video games. My thought process so far is that I can embed a lot of piezo crystals inside a vest / jacket ...
Blue Herring's user avatar
0 votes
1 answer
27 views

how do i run a script when the cpu gets too hot [duplicate]

i need to send commands to my hats that control fans and a little warning LED if the cpu goes above or below a specified state of temperature https://unix.stackexchange.com/questions/756721/raspberry-...
Robert Cotterman's user avatar
0 votes
1 answer
68 views

GPIO.event_detected not working though an edge is detected

I am trying to count number of edges detected in a minute. My code: global future_time future_time = (take_present_time()+pd.Timedelta('1m')).strftime('%Y-%m-%d %H:%M:%S:%f') global ...
Mainland's user avatar
  • 101
0 votes
0 answers
59 views

Raspberry Pi 4 - hwclock DS3231 RTC delay at boot

Running a Raspberry Pi 4 with a DS3231 RTC setup. Everything is setup correctly and working fine and the hwclock is synced correctly. The unit is running without any internet connection. The problem ...
William's user avatar
-1 votes
2 answers
68 views

Can a gpio pin be read as an input without voltage going through? [duplicate]

I have pi 3 and I want to use one of the pin as an input. It will be connected to tapped off wires from a switch that has 2 volts going through it when it is closed. So I want to feed this 2 volts as ...
ThN's user avatar
  • 1,053
0 votes
0 answers
55 views

TFT HSD - 9190J-D1 connection to Raspberry Pi model B

I have Raspberry Pi 4 Model B I want to connect SPI TFT 4" LCD HSD-9190J-D1 using GPIO pins. Kindly help me up with proper connections and necessary drivers required for the LCD to work as ...
Jiwan Rai's user avatar
0 votes
1 answer
193 views

How to access GPIO pins status within freepascal or Lazarus?

I wrote a program using Lazarus and it checks for GPIO2 pin's status every 3 seconds using TProcess component to run a terminal command for retrieving GPIO pin status as follows... procedure TForm1....
ThN's user avatar
  • 1,053

1
2 3 4 5
68