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
1
vote
0answers
29 views

GPIO input, keep high after button press

Hi was just wondering if there was a way of making a GPIO INPUT (connected to a momentary switch) stay high (for a certain amount of time), no matter how long the switch has been pressed for? The ...
1
vote
1answer
35 views

Power multiple add-ons on one 5v pin

I have multiple add-ons connected to my Pi that currently use all of the 5v pins. I want to run more add-ons to the Pi that need 5v power. The 5v pins are connected using male to female GPIO jumper ...
1
vote
2answers
39 views

Controlling Raspberry Pi GPIO with c and Python

I was searching for C and Python Libraries which support Pi4.
0
votes
0answers
20 views

How can I know the serial port of the device of outside (UART). Not USB

I want to ask. How do I know the serial port of the external UART from raspberry pi. This is a sensor. I connected the wire to the raspberry pi. But I can't find which is activate port. I searched ...
3
votes
1answer
30 views

GPIO stuck high after shutdown/halt

I'm new to the world of Raspberry Pi, I'm setting one up as a little PC for a kid. I have a RPi 4 running Raspberry Pi OS, and I've build a case around this heatsink. I have created a simple circuit ...
0
votes
0answers
35 views

Raspberry Pi 3 b+ not booting

I've raspberry Pi 3 b+ which is 2 years old since I purchased it. Recently it has started behaving very strangely. I've installed new rated power supply (5V 2A) for pi board. The board runs fines for ...
1
vote
2answers
48 views

How to measure raspberry pi energy consumption through programs

Is any Device available in the market that can measure the raspberry pi energy consumption and has a mechanism to read that information from my own program? I explored the specifications of USB meter ...
0
votes
1answer
47 views

Send GPIO trigger(s) at specific video timecode(s)?

Just starting out in the wonderful world of RPi maker projects, scored a Model 2b v.1.1, installed the latest Raspbian and now ready for my first project :-) What I want to build is a video player for ...
1
vote
2answers
35 views

GPIOZero- How to double button press?

I am new to Python, used my Python common sense but did not get any results. I am trying to learn how to do x-times of button presses and in x-amount of time to trigger something. In the below code, I ...
2
votes
2answers
38 views

Serial (RS232) Controled Projector

I have a raspberry pi zero W and a NEC PA500U projector, and am attempting to set up a semi-permanent slideshow installation. My main sticking point right now is getting the pi to communicate with the ...
1
vote
1answer
16 views

Bitbang I²C to multiple slaves with same address

I want to use I²C to read several identical sensors with hardcoded addresses. Reading sequential is not an option. Neither is a multiplexer. Both for reading speed reasons. Is there any issue with bit-...
0
votes
0answers
18 views

Pi running Web App and GPIO - receiving data through GPIO direct into Web App

Hi any help would be appreciated I am planning to use the Pi to run(not host) a Web App. I am wondering if the Web app can automatically read data sent into the GPIOs. ie can I automatically pull a ...
0
votes
2answers
30 views

UART and AP Question [closed]

I have a wifi access point that I need to connect to via UART/SERIAL as the console rj45 is broken. I have a USB UART cable on the way but it’s going to take a while to get here. Is there any way I ...
-1
votes
1answer
29 views

Odd results when using RPi.GPIO's event_detected() function

I've recently been experimenting with RPi.GPIO's event_detected() function, to check if a button (connected to the gpio) has been presssed. However, for some reason events would randomly be detected. ...
-1
votes
1answer
33 views

How can I use a GPIO input pin for a 12v circuit?

I want to know with the raspberry pi if the button is clicked. I want ot use the button of the GPIOZERO python library. The power plug is a 12v power plug. Can this circuit work? (I'm a beginner.) ...
-1
votes
0answers
25 views

Connect a Vandal Switch with Raspberry-Pi and register an Input/Output with a click

I want to connect a Vandal Switch(CPS) with an Raspberry Pi, there i want to register via an Python program when the Button is Pressed and change the Led light from blue to Red. How i connected the ...
0
votes
0answers
29 views

OpenOCD samd51 SWD programming

I have hooked up my pi to a SAMD51 regarding this guide. I have also powered the samd51 according to the datasheet which can be found here. When I enter sudo openocd, it only shows me this: Open On-...
0
votes
2answers
39 views

GPIO 3.3 V signal still readable after inputting high resistance values

I recently obtained a raspberry pi 4 (8GB) and I am trying to understand the GPIO behavior and ran into an event that I don't understand. I have set-up a simple script that allows pin 36 (GPIO 16) to ...
2
votes
2answers
89 views

Raspberry Pi 4 B GPIO boot and shutdown

I've been doing some research on power buttons for the Raspberry Pi, but I'm having quite a hard time finding information. Right now, I have button working on GPIO5, and when I connect it to the ...
1
vote
0answers
12 views

Connect RTC while TFT Display is attached via gpio

I have an raspi zero and it is connected with a RB TFT 3,2" Touchscreen (I dont use the Touch function). Is it possible that I connect a rtc even if gpio 1 to 26 is already used by the screen? ...
1
vote
1answer
57 views

gpiozero on a pi4?

Working on getting some working samples setup for my son on his RPI4 so he can play with the GPIO's, breadboard, and some various pieces to use with the breadboard. Right now we're trying to test out ...
1
vote
1answer
85 views

connect raspberry pi to fax machine

I want to connect raspberry to fax machine , because I want cypher message before transmit via landline phone . how can do it , how can interface between rasp and fax machine ?
-1
votes
1answer
45 views

Detect when LED is on

I'm trying to get the status of a LED (being controlled from another Pi, but on the same breadboard). If the LED is on, to get the other Pi (GPIO 25) status to be on and vice versa. Here is the code ...
1
vote
1answer
50 views

High Impedance state for GPIO

I've not used GPIO on RPi much. On other hardware, the GPIO pins can be configured in software to be in a "High Impedance" state (Hi-Z). I have assumed that it's possible to place most of ...
0
votes
0answers
33 views

start LED lights by GPIO

I wrote a script that works so far. If GPIO4 gets contact the LEDs go on, if the contact is interrupted the LED back value goes out again. Now the GPIO 17 should also switch the LEDs on and off in the ...
0
votes
2answers
49 views

What happens if I connect +5 V input to rasberry GPIO ports?

I've read that Raspberry GPIO ports can't withstand +5v and works only with +3.3 v, and that +5v could potentially permanently damage the port? But what does it mean exactly? Is that specific channel ...
1
vote
2answers
48 views

Another illuminated LED button question

I am completely new to Raspberry Pi and electronics so please forgive my lack of knowledge but I am trying really hard to learn something new. I have tried searching the forum but things said in any ...
2
votes
1answer
219 views

Enabling of I2C-0 via “dtparam=i2c_vc=on” on Pi 3B+ causes “I2C-10” & “I2C-11” to appear and disables GPIO 10 GPIO 11

For reference: I am using the latest release Pi OS Lite, Aug 2020 version. I am developing an application using Pi4J. I am referring to pins via this Pinout: https://pi4j.com/1.2/pins/model-3b-plus-...
1
vote
0answers
47 views

Schedule for Raspi OS upgrades to 5.5 kernel & libgpiod 1.5

Several months ago, this blog post appeared in a search. In summary, this post outlines the new char device-based GPIO interfaces. It further states that a full complement of features will be ...
0
votes
0answers
48 views

How to Disable Hardware SPI Chip Enable/Chip Select?

I'm setting up a Raspberry Pi 4b with a number of Adafruit chips, and thus have used their CircuitPython library to control SPI communication. They've conveniently set up a way to use any GPIO pins as ...
1
vote
1answer
37 views

How to Verify I/O on MyPi

I need to figure out how to force the relay outputs on/off manually using Pi command prompts. How can i check for a high/low output on each GPIO pin?
2
votes
1answer
57 views

Is joining NEO6MV2 module and RC 522 module together to Raspberry Pi possible?

I am new to this but from my initial project requirements, I will need to join GPS Module and RFID Module to a Raspberry Pi 4. Do the GPIO pins support the required output? Is there any guide on how ...
0
votes
1answer
39 views

does a rotary encoder with 4096 CPR, rotated once in ~2 seconds, send too many signals?

We have a US Digital S5-4096-250-IE-S-D rotary quadrature encoder. I use the following standard snip of Python to count signals from it: from RPi import GPIO PIN1 = 16 PIN2 = 18 pos = 0 state = 0 # ...
0
votes
2answers
28 views

pigpio.write doesn't properly set the output

I am currently trying to control an air conditioner via GPIO pins on the raspberry pi. For that I need to send a command with a length of 24 bytes via one pin (self.sendPin). I use the following code ...
0
votes
2answers
30 views

Very new to scripts, is it possible to loop a script in the background looking for a button press?

I'm trying to build a camera with the new HQ Camera module, but am running into some trouble. I don't want to have to run my little camera.py script (that just opens preview, waits, takes a photo, and ...
0
votes
2answers
49 views

How to control raspberry pi (gpio and peripherals) using an app from anywhere in the world [closed]

For a school project I am undertaking, I need to send commands to a raspberry pi device wirelessly far away from the Raspberry Pi itself. The goal is to send commands which will: i) Control a motor ...
1
vote
2answers
58 views

Is it ok to power L298N 5V from Raspberry Pi 4 5V GPIO? (or use 6V for L298N power supply?)

Disclaimer: I am a very beginner in electronics and experiencing it's first steps into Raspberry Pi and its functionalities. So, please forgive me any rookie mistakes and correct me if I have any ...
0
votes
1answer
80 views

writing to GPIO [closed]

Is there a way using python (Raspberry PI 4) to write a nibble to the GPIO in one write operation. I have done a project which would benefit from that. Project details here. https://sites.google.com/...
0
votes
0answers
12 views

RPI Stops Reading Micro SD Card If I Plugin PI Fans before it and Vice-versa

facing issues with the heat sink casing that I bought it got 2 fans. So, if I connect the fans before the boot RPI doesn't read the micro SD card and no green light. But, if I remove the fans ...
0
votes
1answer
33 views

Python script to listen for additional GPIO events

I'm working on a simple script that detects a voltage drop on a circuit. Specifically, when a doorbell is pressed. I've wired the doorbell up to GPIO pins. The below Python script works, however, it ...
0
votes
0answers
32 views

Load cell changing over time

I'm using a 1kg load cell beam (see example at bottom) connected to a HX711 board then connected to the Raspberry GPIO. I'm running this Python3 code: https://github.com/gandalf15/HX711/blob/master/...
0
votes
1answer
36 views

Two unrelated GPIO scripts interfere with each other

I have two completely seperate python scripts involving the GPIO that runs on startup. The issue i'm having is that when I call the turn fan on or off it sometimes triggers the halt script I have and ...
1
vote
1answer
68 views

Connecting 12V LED to Raspberry Pi GPIO (3.3V)

Currently I am working on RPI GPIO with a breadboard, some LED's and buttons. My next step is to add a bigger button and LED to de GPIO. I would like to connect an Eaton 216557 LED-module to the GPIO ...
2
votes
1answer
110 views

How to use GPIO interrupts without going to multi-threading [closed]

Using a Pi 3+ in an animated display. The servos in the display are run from a 16 channel "bonnet" on the Pi. I am using RPI.GPIO to deal with GPIO issues. What I want is for one set of ...
0
votes
0answers
34 views

PIR sensor connection to the Raspberry Pi not working

I'd like to connect a PIR sensor (HC-SR501) to the Raspberry Pi, namely GPIO BCM 4. But the pin level always reads as 0. If I assemble a standalone circuit with PIR (its OUT pin - resistor - LED - GND)...
0
votes
1answer
34 views

Use static or Dynamic IP based on GPIO Pin

I have a switch on my PI and I want to be able to use a static ip or dynamic ip based on the switches position. Is it possible to get GPIO pin data in dhcpcd.conf?
0
votes
1answer
51 views

Show boot info on character LCD

Is it possible to show boot log or info on a character LCD that the Raspberry Pi is still booting? I'm using a generic 16x2 character LCD
0
votes
1answer
56 views

Converting from RPi.GPIO to circuit python digitalio

I didn't write this code (just made some modifications) but it was using a depreciated library so I'm trying to update to the official circuit python libraries and update everything for python3. This ...
0
votes
0answers
22 views

How to control GPIO pins using python CGI library

I am trying to create a web app with python cgi, cgitb libraries that would be able to interact with the GPIO pins. The application has an html form with a textbox and a submit button. The script can ...
2
votes
1answer
103 views

GPIO inputs don't work on Raspberry 4 running Ubuntu

I have several RasPIs set up with Ubuntu Server 18.04 64Bit. One freshly setup up RasPIs 3B+ and two 4Bs. On all I can run the following minimum script without any error messages: #!/usr/bin/env ...

1
2 3 4 5
57