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,338
questions
0
votes
0
answers
38
views
Designing a relay circuit to control power using the IC555 timer and GPIO from Raspberry Pi
I'm a newbie and I need help designing a circuit that achieves the following functionality using a Raspberry Pi:
When GPIO 17 on the Raspberry Pi goes high, I want to keep a relay powered on.
When ...
0
votes
0
answers
25
views
Can the PIO perform 888 RGB to 565 RGB?
In my latest RP2040 project I'm using a little ST7789 based LCD screen, who's pixel format is 565 RGB, and I would like to run this screen as fast as possible. It's capable of 60 FPS, which requires ...
0
votes
1
answer
38
views
RS485 RTS on pin
I accidentally connected the wrong pin (GPIO21) as RTS to uart to MAX3485 IC on my PCB. Is it possible to control this pin via software for half duplex data flow for RS485?
It only needs to read ...
0
votes
0
answers
25
views
Connect Foot and palm switch to Raspberry pi
We made a project using a raspberry pi and 4 arcade buttons (https://thepihut.com/products/massive-arcade-button-with-led-100mm-white) sadly there were not robust enough, it is used inside a ...
0
votes
0
answers
90
views
How would I connect and control this linear actuator to my raspberry pi 4 b+
So I have 2 questions for you guys, girls, or whatever you may be, this is the actuator I am planing on buying:
https://www.robotshop.com/products/kitronik-linear-actuator-micro-servo-kit?...
0
votes
0
answers
18
views
Raspberry pi zero video playback running too fast [duplicate]
Pls help. It is sooo urgent. I am experiencing issues with video playback running too fast on your Raspberry Pi Zero. I use VNC video player. And when i save bvideo it displays so fast.
-1
votes
1
answer
37
views
Connect Raspberry Pi 4 GPIO output pins to Arduino Uno
I want my Raspberry Pi4 to give 4 unique outputs, not necessarily at the same time, which will be four different inputs to the Arduino Uno.
I want to know how to proceed as I think by connecting them ...
0
votes
1
answer
39
views
GPIO pin fan out limits?
I want to simultaneously trigger 4 DAQ nodes from a 5th control node (each node is a Raspberry Pi) see below. I have a number of solutions in mind with issues for each,
Naïve solution, just connect ...
-2
votes
1
answer
217
views
turning on or off a gpio pin
Is there someone that knows how to simply turn on or off a gpio pin? I don't understand why rpi have to make it so hard. I hope someone gives me an answer, ask me if you don't understand the question. ...
0
votes
0
answers
16
views
Building a LIRC configuration from RemoteMaster project files
I'd like to use an RPi to send IR codes to an old Balboa hot tub that doesn't support a Wifi module. I've bought the original IR receiver that plugs into the hot tub's motherboard. However, I don't ...
0
votes
0
answers
84
views
pigpio, gpiozero, and remote control
I'm struggling to get some reliability out of the aforementioned packages. Here are my problems:
When I want to toggle a single output, all outputs reset and change into their new state
Outputs don'...
0
votes
0
answers
37
views
Is there a way to have 8 audio inputs on the raspberry PI4?
Maybe it's kind of a weird question, but I have a small project for which I need 8 audio inputs (not outputs) on the Raspberry Pi 4, without using USB.
Are there any ways to achieve this on the ...
0
votes
0
answers
21
views
halt the raspberry when power supply connected but not when GPIO3 is shorted to ground
For context I am using a raspberry PI3 but in the end might use a PI4 (but docs says they should behave the same).
I changed config.txt to allow my raspberry to wake from a halt state (with GPIO3). ...
0
votes
2
answers
72
views
Turn on raspberry PI from an input GPIO pin without ground
For context, I am using a raspberry PI 4 connected with it's charger (edit : I meant power supply, not charger). I wish to be able to turn it on when it receive a high value on a pin (for example,...
0
votes
0
answers
14
views
Implementing RS485 with PIO pulls 8 bits instead of 32
Working on an RP2040, the PIO application below is designed to output 32bits from the output shift register. One of the pins is designed to output the actual data data. While the side set pin operates ...
1
vote
1
answer
81
views
Raspberry Pi trigger signal time stamps
I need to generate a trigger signal (square wave) with up to 200 Hz for a sensor. For every rising edge of the signal I need to save (ideally publish as a ROS msg) the UTC time stamp. For this I want ...
1
vote
2
answers
60
views
set new Low value threshold GPIO
This can of course be done by using a resistor and in that way changing the actual voltage for the GPIO digital input pins on the RPi. But is it possible to set/change the actual threshhold on the RPi ...
0
votes
0
answers
27
views
Raspberry Pi that reads discreet 24v from I/O controller and adds to a counter?
Totally new to Raspberry PI but have an application for work where id like to beable to read discreet 24 volt power and add to a counter on a small display is this possible if so any insight to any ...
0
votes
0
answers
122
views
Rotary encoder on gpio pins in node.js vs python
I have a project where I'm connecting three small rotary encoders like these https://cdn-shop.adafruit.com/datasheets/pec11.pdf to a rpi 3 A+. I'm not using the button function of them, just the ...
0
votes
0
answers
36
views
Momentary button on Web Page
I have a program (on a Pi Zero W) that uses Flask to host a web page, that serves as a controller for some motors. I want a button on the page to act as a momentary button, but I'm not sure how to ...
0
votes
3
answers
521
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 ...
1
vote
0
answers
50
views
If anything is connected to pin 39 Pi wont boot [closed]
Raspberry Pi 3 B+, Raspbian GNU/Linux 11 (bullseye)
I'm doing some DAQ with a stack of MCC172 hats. The hats have a trigger to start acquisition but not to stop. So I set up GPIO21 (pin 40) as input ...
0
votes
1
answer
43
views
Pi code stops running after several minutes with no error message
As stated above the PI stops running the code after several minutes and gives no error at all. The PI is perfectly fine and the code will work as soon as I stop it and restart it. This code needs to ...
0
votes
0
answers
75
views
How to generate proper pulse with python (with RPi.GPIO or pigpio) and GPIO pins to count with 4026 IC?
How to generate proper pulse with python (with RPi.GPIO or pigpio) and GPIO pins to count with 4026 IC? At this question it seems it is solved, but it isn't clear how:
How can I control a 4026 counter ...
-1
votes
1
answer
42
views
Trouble coding test program to turn LED on and off
I'm trying to code a button to turn and LED on and off.
from machine import Pin
led = Pin(16, Pin.OUT)
button = Pin(17, Pin.IN)
while True:
if button.value()==1:
led.high()
print(...
0
votes
2
answers
140
views
Max current on GPIO
I have 20 ldr photoresistors that I will connect to GPIO.
They are connected pretty much like this (but without led):
I have also a Hifiberry Dac2Pro connected as a hat.
https://www.hifiberry.com/...
0
votes
0
answers
32
views
How to run 2 python scripts parallely based on priority?
I am trying to run script1 which detects an object and actuates an output and another script (script2) for establishing connection using http to actuate the same output through web.
I want to run both ...
1
vote
2
answers
923
views
How to reboot/restart a Raspberry Pi using its GPIO pins through another Pi?
I have a cluster of Pis that sometimes one of them fails and I cannot access it remotely until I come to the device and unplug and plug it again. I want a solution that if a Pi fails, I can remotely ...
2
votes
2
answers
474
views
How can I use 12 Buttons with one Raspberry Pi Zero W?
I am trying to take input from twelve different buttons with my Raspberry Pi Zero W.
I have enough GPIO Pins for this, but not enough GND pins, so I decided to make some of the pins pulled low by ...
0
votes
2
answers
111
views
gpio-poweroff configured as input: how can I read the input pin?
I am developing a power supply with a supercapacitor to give around 30 seconds of reserve power so the pi can safely shut itself down on power loss.
I have a working gpio-poweroff definition in /boot/...
0
votes
1
answer
44
views
What sort of order of magnitude in time does it take from code like GPIO.output(led_pin, GPIO.LOW) to be executed to led being lighted up?
So I am lighting up an through hole led using 5V and an GPIO pin. I have code in python and I’m trying to get a precise timestamp of when the LED lights up with something like this:
GPIO.output(...
0
votes
0
answers
113
views
Sending Integer Value From Arduino Transmitter to Raspberry Pi Receiver Using NRF24L01+pa
I am currently stuck in getting the integer value from Arduino to Raspberry Pi using NRF24L01+pa. Here are my codes
arduino.ino (transmitter)
#include <RF24Network.h>
#include <RF24.h>
#...
1
vote
2
answers
84
views
Gap with GPIO pin
I want to blink a simple led, here's the code :
#include <stdint.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/mman.h>
#include <stdlib.h>
#include <fcntl.h&...
1
vote
0
answers
18
views
2 LCD screens 1 raspberry3B+
I got a raspberry pi 3 B+ and two small LCD screens, this one and this one
The first is attached on the gpio pins, the second one on the hdmi port
the problem is they are just mirroring each other, ...
0
votes
0
answers
42
views
DHT-11 doesn't work
I connected a DHT-11 to the GPIO04 pin and wrote this code down.
import Adafruit_DHT
sensor = Adafruit_DHT.DHT22
pin = 7
while True:
humidity, temperature = Adafruit_DHT.read_retry(sensor, pin)
...
0
votes
0
answers
48
views
How to set GPIO pin that requires 5v HIGH with 3v input?
I have a circuit block (Let's name it as block A) with a set of GPIO pins. The HIGH state of these GPIOs are 3v.
I have a motor bridge that requires 5v input to set its (motor bridge's) GPIO to HIGH.
...
1
vote
3
answers
86
views
DC Motor not responding to GPIO Motor
I want to control 4 DC Motors from a Raspberry Pi. I am just starting by making sure that 1 motor can be controlled. I am following this guide: https://projects.raspberrypi.org/en/projects/physical-...
2
votes
1
answer
34
views
Motor Controller Board Uncertainty for Raspberry Pi
I have a Raspberry Pi 4 Model B. I am trying to build a small car with 4 motors by using the GPIO pins to control the motors. I would like to be able to make the motor go forward, reverse, and ...
1
vote
1
answer
105
views
Problem with reading 433MHz RF receiver
I have problem with reading 433MHz signal. Not receiving it!
I want to read it or clone it to send it with my sender hardware.
My whole idea is to clone signals sent by my radio remote of windows ...
1
vote
3
answers
316
views
Checking angle of servo motor with a Raspberry Pi 3B+
I was trying to check the angle of a servo motor using my Raspberry Pi 3B+. Although when i run the code the servo motor jumps to 90 degrees (physically) and returns an angle of 0.0 in the terminal. ...
2
votes
1
answer
401
views
RPi 4: What happens when reverse voltage is supplied to the GPIO header?
Does the RPi 4 have any kind of protection against reverse voltage when the GPIO header is used?
1
vote
0
answers
47
views
How to wire SIM900A SP+ and SP- with Raspberry Pi to record incoming call
I have a "Raspberry Pi (2 Model B rev 1.1)" wired with "SIM900A using a "USB to TTL module". Send/recv SMS, make/accept/hang calls functionalities are working as expected ...
2
votes
1
answer
111
views
how to connect to GPIO connectors if they are already occupied
I want to connect 2 wires to the connectors to put pysical shutdown button,
like showed here
But the connector will be already occpuied by e-paper driver.
What would be a recommendation here?
Just to ...
0
votes
1
answer
193
views
Upgraded RPi and lost my functionality using gpio zero
Recently upgraded my RPi and lost my LED functionality
I've installed all kinds of things to attempt to resolve this and no success
Thanks
pi@JASPER:~/controls $ python controlscript.py
Traceback (...
2
votes
1
answer
62
views
Phantom events on Pull-Down Button
I’m the author of this project, an automated feeding device controlled by a custom 4-button keypad.
The device is in use 24/7, since over a year. In rare cases I‘ve noticed fake button events.
To be ...
2
votes
0
answers
111
views
spi overlay driver don't run due to shared pin11
I'm trying to run old FLIR Lepton driver on Raspberry Pi 3 Model B v1.2 (2015).
FLIR SW driver here: https://www.flir.eu/developer/lepton-integration/lepton-integration-raspberry-pi/.
PDF guide here: ...
0
votes
0
answers
47
views
Raspberry Pi 4B (5.15 kernel) not receiving IR codes (Vs1838b)
I had the same problem as the one described in this link:
Infrared Receiver for remote controll not working
I have the same environment (Raspberry pi 4B with bullseye, kernel 5.15.84-v8+, and I have ...
2
votes
2
answers
73
views
Pi 2 getting incredibly hot
My raspberry pi 2 CPU is getting burning hot, even when just starting up. It first wouldn't display aswell, but I rewrote the 32 bit os onto the SD card and now it does display.
But it still is ...
2
votes
2
answers
158
views
Is there a way I can use the HC-SR04 (ultrasonic sonar) along with the LCD display?
I have a Raspberry Pi4 Model B, with a 3.5" LCD display attached:
Since the display occupies the first 26 pins, and therefore also the power supply ones, is there a way I could use the HC-SR04 ...
1
vote
1
answer
63
views
DS18B20 not showing up Pi 400
I have a raspberry pi 400 running ubuntu server.
I have a DS18B20 with a 4.7k resistor connected from the power to the data wire.
I boot up the pi and run the sudo modprobe w1-gpio and sudo modprobe ...